/* ============================================================
   Royal Lime LLC — Design System
   Warm, earthy luxury palette inspired by Venetian plaster itself.
   ============================================================ */

:root {
  /* Palette */
  --color-cream:      #F6F0E6;
  --color-cream-2:    #EFE5D3;
  --color-plaster:    #E4D6BE;
  --color-taupe:      #C9B593;
  --color-bronze:     #A9834F;
  --color-terracotta: #B0552E;
  --color-terracotta-dark: #8C4020;
  --color-espresso:   #2A2119;
  --color-espresso-2: #1C1712;
  --color-ink:        #2B2620;
  --color-ink-soft:    #55483B;
  --color-white:      #FFFCF7;

  /* Semantic */
  --bg-page:      var(--color-cream);
  --bg-alt:       var(--color-plaster);
  --bg-dark:      var(--color-espresso);
  --text-body:    var(--color-ink);
  --text-soft:    var(--color-ink-soft);
  --text-on-dark: var(--color-cream);
  --accent:       var(--color-terracotta);
  --brand-lime:   #cdea6e; /* the LIME wordmark in the logo */
  --brand-gold:   #DDBB5C; /* mid-tone of the ROYAL gold gradient */
  --accent-dark:  var(--color-terracotta-dark);
  --accent-gold:  var(--color-bronze);
  --border-soft:  rgba(42, 33, 25, 0.12);

  /* Type */
  --font-head: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;
  --radius: 2px;
  --header-height: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-page);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--color-espresso-2);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.02em; }
p { margin: 0 0 var(--space-2); color: var(--text-soft); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.section {
  padding: var(--space-6) 0;
}
.section--tight { padding: var(--space-5) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: rgba(246, 240, 230, 0.78); }

.text-center { text-align: center; }
.lede {
  font-size: 1.2rem;
  max-width: 640px;
}
.lede.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 2.1em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  background: transparent;
}
.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-white);
}
.btn--solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--outline { color: var(--color-espresso-2); border-color: var(--color-espresso-2); }
.btn--outline:hover { background: var(--color-espresso-2); color: var(--color-white); }
.btn--on-dark { color: var(--color-white); border-color: rgba(255,255,255,0.6); }
.btn--on-dark:hover { background: var(--color-white); color: var(--color-espresso-2); border-color: var(--color-white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(42, 33, 25, 0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--color-espresso-2);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75em;
  color: var(--color-white);
}
.logo-svg { height: 40px; width: auto; overflow: visible; display: block; }
.logo-royal {
  font-size: 100px;
  font-family: 'Bodoni Moda', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  fill: url(#royal-gold); /* champagne-gold metallic gradient (def in the SVG) */
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4)); /* soft gold glow */
}
.logo-lime {
  font-size: 46px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  fill: #cdea6e;
  /* Same-colour luminous glow: makes LIME read brighter and lifts it off the
     gold letters behind it — without changing its hue. */
  filter: drop-shadow(0 0 2px rgba(205, 234, 110, 0.9))
          drop-shadow(0 0 7px rgba(205, 234, 110, 0.5));
}
/* transform must live on a <g> wrapper — CSS transform on SVG <text> itself
   is unreliable across browsers */
.logo-lime-wrap {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover .logo-lime-wrap { transform: scale(1.1) rotate(-4deg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links {
  display: flex;
  gap: var(--space-3);
}
.nav-links a {
  position: relative;
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55em 1.1em;
  transition: opacity 0.2s ease, letter-spacing 0.4s cubic-bezier(.25, .46, .45, .94);
  opacity: 0.85;
  z-index: 1;
}
.nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
  z-index: -1;
  pointer-events: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  letter-spacing: 0.18em;
}
.nav-links a:hover::before,
.nav-links a[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
}
.nav-toggle {
  position: relative;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  z-index: 1;
}
.nav-toggle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
  z-index: -1;
  pointer-events: none;
}
.nav-toggle:hover::before,
.nav-toggle[aria-expanded="true"]::before {
  opacity: 1;
  transform: scale(1);
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,18,13,0.55) 0%, rgba(24,18,13,0.45) 45%, rgba(24,18,13,0.78) 100%);
  z-index: -1;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; padding: var(--space-3); }
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero .eyebrow { color: var(--color-white); opacity: 0.85; }
.hero h1 { color: var(--color-white); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(246, 240, 230, 0.88);
  margin: var(--space-2) auto var(--space-4);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}
.hero--small { min-height: 48vh; }

/* ---------- Dark stage variant for inner-page heroes ---------- */
.hero--stage {
  background: #171717;
  background-image: radial-gradient(circle at 50% 42%, #262626 0%, #1a1a1a 45%, #101010 100%);
}
.hero--stage::before { background: none; }

/* ---------- Intro hero (dark stage + particle globe) ---------- */
.hero--intro {
  min-height: 100vh;
  background: #171717;
  background-image:
    radial-gradient(circle at 50% 42%, #262626 0%, #1a1a1a 45%, #101010 100%);
}
.hero--intro::before {
  /* the radial-gradient stage already sets the mood — drop the photo darkening overlay */
  background: none;
}
.hero--intro h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero--intro .hero-sub { color: rgba(235, 235, 235, 0.82); }
.hero--intro .eyebrow { color: rgba(220, 220, 220, 0.7); }
.hero-scan-transition {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(22, minmax(0, 1fr));
  pointer-events: none;
}
.hero-scan-transition span {
  background:
    repeating-linear-gradient(90deg, rgba(52,41,32,.12) 0 1px, transparent 1px 8px),
    #ded0ba;
  transform: scaleY(0);
  will-change: transform;
}
.hero-scan-transition span + span {
  border-left: 1px solid rgba(52,41,32,.1);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(196, 118, 78, 0.85);
}
.scroll-cue-text {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.scroll-cue-line {
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, rgba(196,118,78,0.7), rgba(196,118,78,0));
  overflow: hidden;
  position: relative;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -54px; left: 0;
  width: 100%; height: 54px;
  background: linear-gradient(180deg, rgba(214,140,100,0), rgba(214,140,100,1));
  animation: scroll-cue-run 1.9s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes scroll-cue-run {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(108px); }
}
#intro-next { display: block; height: 0; }

/* ---------- Featured / Grid ---------- */
.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.section-head .lede { margin: 0; }

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--color-taupe);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.tile:hover img { transform: scale(1.06); }
.tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0) 45%, rgba(20,15,10,0.82) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
}
.tile-label {
  color: var(--color-white);
  font-family: var(--font-head);
  font-size: 1.3rem;
}
.tile-link { position: absolute; inset: 0; z-index: 2; }
/* Circular "view project" badge — scales in from nothing on hover */
.tile::after {
  content: "\2197";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(20, 15, 10, 0.3);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.tile:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Craft gallery (editorial masonry) ---------- */
.craft-gallery {
  columns: 3;
  column-gap: var(--space-3);
}
.g-item {
  position: relative;
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 var(--space-3);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-taupe);
  box-shadow: 0 14px 34px -20px rgba(42, 33, 25, 0.55);
  cursor: pointer;
  transform: translateZ(0); /* clip the image scale to rounded corners */
}
.g-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.96) brightness(0.98);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.g-item:hover img,
.g-item:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.06) brightness(1.03);
}
/* warm gradient wash rising on hover */
.g-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,15,10,0) 38%, rgba(20,15,10,0.78) 100%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.g-item:hover::before,
.g-item:focus-visible::before { opacity: 1; }
/* gold hairline frame that draws in — echoes the brand medallion motif */
.g-frame {
  position: absolute;
  inset: 15px;
  z-index: 2;
  border: 1px solid rgba(221, 187, 92, 0.85);
  border-radius: 1px;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.g-item:hover .g-frame,
.g-item:focus-visible .g-frame { opacity: 1; transform: scale(1); }
/* caption slides up */
.g-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.g-item:hover .g-cap,
.g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1.1;
}
.g-sub {
  font-family: var(--font-body);
  color: var(--brand-gold);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
/* zoom "+" badge — scales in from nothing on hover */
.g-item::after {
  content: "+";
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-white);
  background: rgba(20, 15, 10, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .4s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.g-item:hover::after,
.g-item:focus-visible::after { opacity: 1; transform: scale(1); }
/* scroll-reveal (enabled only when JS adds .is-reveal) */
.craft-gallery.is-reveal .g-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.craft-gallery.is-reveal .g-item.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .g-item img, .g-frame, .g-cap, .g-item::before, .g-item::after,
  .craft-gallery.is-reveal .g-item { transition: none; }
  .craft-gallery.is-reveal .g-item { opacity: 1; transform: none; }
}

/* ---------- Craft slider (horizontal drag showcase) ---------- */
.craft-showcase .section-head { margin-bottom: var(--space-4); }

.slider {
  --edge: max(var(--space-3), calc((100% - var(--max-width)) / 2 + var(--space-3)));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--edge);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider.is-dragging { scroll-snap-type: none; cursor: grabbing; }

.slider-track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  padding: 12px var(--edge) 30px;
}

.slide {
  flex: 0 0 auto;
  width: clamp(300px, 38vw, 460px);
  scroll-snap-align: start;
  position: relative;
  display: block;
  color: inherit;
}
.slide-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--color-taupe);
  box-shadow: 0 22px 48px -26px rgba(42, 33, 25, 0.6);
}
.slide-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.14); /* headroom for parallax drift */
  will-change: transform;
  filter: saturate(0.97) brightness(0.96);
  transition: filter 0.6s ease;
}
.slide:hover .slide-media img,
.slide.is-active .slide-media img { filter: saturate(1.06) brightness(1.03); }
/* bottom gradient so captions always read */
.slide-media::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,15,10,0) 40%, rgba(20,15,10,0.74) 100%);
  pointer-events: none;
}
/* gold hairline frame — brightens on the active/hovered slide */
.slide-frame {
  position: absolute; inset: 14px;
  z-index: 2;
  border: 1px solid rgba(221, 187, 92, 0);
  transition: border-color 0.5s ease;
  pointer-events: none;
}
.slide:hover .slide-frame,
.slide.is-active .slide-frame { border-color: rgba(221, 187, 92, 0.82); }
/* caption */
.slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: var(--space-3);
  pointer-events: none;
}
.slide-no {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--brand-gold);
  letter-spacing: 0.06em;
  padding-bottom: 5px;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}
.slide.is-active .slide-no { opacity: 1; }
.slide-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--color-white);
  font-size: 1.55rem;
  line-height: 1.1;
}
.slide-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  color: rgba(246, 240, 230, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* UI row: progress + counter + arrows */
.slider-ui {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.slider-progress {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--border-soft);
  overflow: hidden;
  border-radius: 2px;
}
.slider-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--brand-gold);
  transition: width 0.15s ease;
}
.slider-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.slider-hint {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.slider-count {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text-body);
  min-width: 58px;
  text-align: center;
}
.slider-count b { color: var(--accent-gold); font-weight: 600; }
.slider-count i { color: var(--border-soft); font-style: normal; margin: 0 5px; }
.slider-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-body);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.slider-btn:hover {
  background: var(--color-espresso-2);
  color: var(--color-cream);
  border-color: var(--color-espresso-2);
}
.slider-btn:disabled { opacity: 0.28; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .slide-media img { transition: none; }
  .slider { scroll-behavior: auto; }
}

/* ---------- Craft cinematic stage (auto-transitions + Ken Burns) ---------- */
.stage {
  position: relative;
  --sg-t: 1.15s;                        /* transition duration */
  --sg-e: cubic-bezier(.76, 0, .24, 1); /* premium ease-in-out */
}
.stage-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 76vh;
  overflow: hidden;
  border-radius: var(--radius);
  background: #16110d;
  box-shadow: 0 34px 80px -34px rgba(20, 15, 10, 0.7);
  cursor: zoom-in;
}
.stage-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: clip-path, transform, opacity;
}
.stage-layer.is-active { opacity: 1; } /* displayed frame is completely still */
.stage-bg,
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-bg { object-fit: cover; transform: scale(1.16); filter: blur(30px) brightness(0.45) saturate(1.15); }
.stage-photo { object-fit: contain; }

/* --- premium directional transitions ---------------------------------
   The incoming frame is uncovered by a clip-wipe from one of the four
   sides while its photo glides in (parallax); the outgoing frame gently
   recedes and darkens beneath it. Direction rotates every advance. */
.stage-layer.fx-revL { animation: sgRevL var(--sg-t) var(--sg-e) both; }
.stage-layer.fx-revR { animation: sgRevR var(--sg-t) var(--sg-e) both; }
.stage-layer.fx-revT { animation: sgRevT var(--sg-t) var(--sg-e) both; }
.stage-layer.fx-revB { animation: sgRevB var(--sg-t) var(--sg-e) both; }
.stage-layer.fx-revL .stage-photo { animation: sgPhL var(--sg-t) var(--sg-e) both; }
.stage-layer.fx-revR .stage-photo { animation: sgPhR var(--sg-t) var(--sg-e) both; }
.stage-layer.fx-revT .stage-photo { animation: sgPhT var(--sg-t) var(--sg-e) both; }
.stage-layer.fx-revB .stage-photo { animation: sgPhB var(--sg-t) var(--sg-e) both; }
.stage-layer.fx-fade { animation: sgFade var(--sg-t) ease both; }
.stage-layer.fx-out  { animation: sgOut var(--sg-t) var(--sg-e) both; z-index: 1; }

@keyframes sgRevL { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sgRevR { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes sgRevT { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sgRevB { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sgPhL { from { transform: translateX(-5%) scale(1.06); } to { transform: none; } }
@keyframes sgPhR { from { transform: translateX(5%) scale(1.06); } to { transform: none; } }
@keyframes sgPhT { from { transform: translateY(-5%) scale(1.06); } to { transform: none; } }
@keyframes sgPhB { from { transform: translateY(5%) scale(1.06); } to { transform: none; } }
@keyframes sgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sgOut  { from { transform: scale(1); filter: brightness(1); } to { transform: scale(0.94); filter: brightness(0.55); } }
@media (prefers-reduced-motion: reduce) {
  .stage-layer, .stage-layer .stage-photo { animation: none !important; }
}

.stage-shade {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(20,15,10,0) 55%, rgba(20,15,10,0.72) 100%);
  pointer-events: none;
}
.stage-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: flex-end; gap: 14px;
  padding: var(--space-4);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stage-cap.is-swap { opacity: 0; transform: translateY(10px); }
.stage-no {
  font-family: var(--font-head);
  color: var(--brand-gold);
  font-size: 1.15rem; line-height: 1;
  padding-bottom: 6px;
}
.stage-title {
  display: block;
  font-family: var(--font-head); font-weight: 600;
  color: var(--color-white);
  font-size: 2rem; line-height: 1.05;
}
.stage-sub {
  display: block; margin-top: 4px;
  font-family: var(--font-body);
  color: rgba(246, 240, 230, 0.72);
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
}
.stage-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 15, 10, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity 0.4s ease, background 0.3s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.stage-viewport:hover .stage-arrow,
.stage-viewport:focus-within .stage-arrow { opacity: 1; }
.stage-arrow:hover { background: rgba(20, 15, 10, 0.6); }
.stage-prev { left: 18px; }
.stage-next { right: 18px; }
.stage-open {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 15, 10, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff; font-size: 1.15rem; cursor: pointer;
  opacity: 0; transition: opacity 0.4s ease, background 0.3s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.stage-viewport:hover .stage-open,
.stage-viewport:focus-within .stage-open { opacity: 1; }
.stage-open:hover { background: rgba(20, 15, 10, 0.6); }
.stage-progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  height: 3px; background: rgba(255, 255, 255, 0.14);
}
.stage-progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: var(--brand-gold);
}
.stage-film {
  display: flex; gap: 12px;
  margin-top: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.stage-film::-webkit-scrollbar { display: none; }
.film-thumb {
  flex: 0 0 auto;
  width: 92px; height: 68px;
  padding: 0; border: none;
  border-radius: 2px; overflow: hidden;
  background: var(--color-taupe);
  position: relative; cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}
.film-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-thumb::after {
  content: ""; position: absolute; inset: 0;
  border: 2px solid var(--brand-gold); border-radius: 2px;
  opacity: 0; transition: opacity 0.35s ease;
}
.film-thumb:hover { opacity: 0.82; }
.film-thumb.is-current { opacity: 1; }
.film-thumb.is-current::after { opacity: 1; }

/* ---------- Value props / icons row ---------- */
.props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.prop-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 0.2em;
}

/* ---------- Quote / CTA banner ---------- */
.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  color: var(--color-white);
  line-height: 1.5;
}
.cta-banner {
  text-align: center;
}
.cta-banner .btn { margin-top: var(--space-2); }

/* ---------- About page content ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--space-4); }
.prose ul { margin: var(--space-2) 0; }
.prose li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.6em;
  color: var(--text-soft);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* FAQ accordions (native <details> — accessible, no JS) */
.faq { margin-top: var(--space-3); }
.faq details {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-2) 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border-soft); }
.faq summary {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--color-espresso-2);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: var(--space-2) 0 0; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.split img { border-radius: var(--radius); }

/* ---------- Projects grid page ---------- */
.filter-note {
  color: var(--text-soft);
  margin-bottom: var(--space-4);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

/* Finishes showcase (informational cards — not links) */
.finishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4) var(--space-3);
}
.finish-tile { margin: 0; cursor: default; }
.finish-tile::after { content: none; } /* no "view" arrow — these aren't links */
.finish-desc {
  margin: var(--space-2) 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* ---------- Project detail ---------- */
.project-hero {
  padding-top: calc(var(--header-height) + var(--space-5));
  padding-bottom: var(--space-4);
  background: var(--bg-alt);
}
.project-hero .eyebrow { color: var(--accent-dark); }
.back-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: var(--space-3);
}
.back-link:hover { color: var(--accent-dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid a::after {
  content: "\26F6";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(20, 15, 10, 0.3);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.gallery-grid a:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 15, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-3);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.contact-info h3 { margin-top: var(--space-4); }
.contact-info h3:first-child { margin-top: 0; }
.contact-info a { color: var(--accent-dark); }
.map-frame {
  width: 100%;
  aspect-ratio: 4/3;
  border: 0;
  border-radius: var(--radius);
  filter: sepia(8%) saturate(90%);
}

.form { display: grid; gap: var(--space-2); }
.form-row { display: grid; gap: var(--space-2); grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.4em; }
.field label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid var(--border-soft);
  background: var(--color-white);
  border-radius: var(--radius);
  color: var(--text-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 85, 46, 0.16);
}
/* Send button picks up a subtle accent focus ring for keyboard users */
#contact-form button[type="submit"] {
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
#contact-form button[type="submit"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(176, 85, 46, 0.35);
}
.form-status {
  font-size: 0.9rem;
  margin-top: var(--space-1);
}
.form-status[data-state="success"] { color: #3f7a4d; }
.form-status[data-state="error"] { color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-espresso-2);
  color: rgba(246, 240, 230, 0.75);
  padding: var(--space-5) 0 var(--space-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-top h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-top a { display: block; padding: 0.3em 0; color: rgba(246,240,230,0.75); }
.footer-top a:hover { color: var(--color-white); }
.footer-brand .logo-svg { height: 42px; margin-bottom: var(--space-2); }

/* Footer signature: created progressively by interactions.js so the static
   logo remains untouched when motion is reduced or scripting is unavailable. */
.footer-logo-stage {
  position: relative;
  display: inline-grid;
  width: max-content;
  max-width: 100%;
  margin-bottom: var(--space-2);
  padding: .25rem .9rem .6rem 0;
  overflow: hidden;
  isolation: isolate;
}

.footer-logo-stage .logo-svg {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.footer-logo-sheen,
.footer-logo-line {
  position: absolute;
  pointer-events: none;
}

.footer-logo-sheen {
  z-index: 2;
  top: -42%;
  bottom: -42%;
  left: 0;
  width: 18%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 201, .82), rgba(205, 234, 110, .46), transparent);
  filter: blur(4px);
  mix-blend-mode: screen;
  transform: skewX(-18deg);
}

.footer-logo-line {
  z-index: 3;
  right: .9rem;
  bottom: .18rem;
  left: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, rgba(221, 187, 92, .95), rgba(205, 234, 110, .68) 58%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
  .footer-logo-stage {
    clip-path: none !important;
  }

  .footer-logo-sheen,
  .footer-logo-line {
    display: none;
  }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.footer-credit {
  color: rgba(255,255,255,.52);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .3s ease;
}
.footer-credit strong {
  color: var(--brand-gold);
  font-weight: 500;
}
.footer-credit:hover { color: rgba(255,255,255,.9); }
.social-row { display: flex; gap: var(--space-2); }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Responsive: all width-based media queries live at the END of
   this file so they reliably override the base rules above regardless of
   where those base rules are declared. ---------- */

/* ============================================================
   Interactive layer — preloader, cursor, reveals, marquee,
   stats, magnetic buttons, page transitions.
   ============================================================ */

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-espresso-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: visibility 0.6s ease;
  /* Safety net: self-dismiss even if JS never runs or a script fails to load */
  animation: preloader-failsafe 0.01s linear 6s forwards;
}
.preloader > :not(.preloader-blinds) {
  position: relative;
  z-index: 2;
}
.preloader-blinds {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(22, minmax(0, 1fr));
  pointer-events: none;
}
.preloader-blinds span {
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 24%),
    var(--color-espresso-2);
  transform: scaleY(1);
  will-change: transform;
}
.preloader-blinds span + span {
  border-left: 1px solid rgba(221,187,92,.055);
}
@keyframes preloader-failsafe {
  to { opacity: 0; visibility: hidden; }
}
.preloader-mark {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  color: rgba(246, 240, 230, 0.62);
}
.preloader-bar {
  width: 220px;
  max-width: 60vw;
  height: 1px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}
.preloader-bar-fill {
  position: relative;
  height: 100%;
  width: 0%;
  overflow: hidden;
  background: var(--accent);
  transition: width 0.25s ease;
}
.preloader-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: preloader-shimmer 1.3s linear infinite;
}
@keyframes preloader-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.preloader-pct {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums; /* digits keep equal width — no jiggle while counting */
  color: rgba(255, 252, 247, 0.92);
}
.preloader.is-done {
  pointer-events: none;
}

/* ---------- Custom cursor (fine-pointer devices only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--brand-lime); /* lime — echoes the LIME wordmark */
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(205, 234, 110, 0.7);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(221, 187, 92, 0.7); /* glowing gold — echoes ROYAL */
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(221, 187, 92, 0.35);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(221, 187, 92, 0.08);
  border-color: var(--brand-gold);
  box-shadow: 0 0 16px rgba(221, 187, 92, 0.5);
}
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: var(--space-3) 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--space-5);
  animation: marquee-scroll 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--text-soft);
  white-space: nowrap;
  opacity: 0.7;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #c4764e; /* warm-ember terracotta — a lighter accent tint for legibility on charcoal */
  line-height: 1;
}
.stat-label {
  margin-top: 0.5em;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,240,230,0.65);
}

/* ---------- Magnetic buttons ---------- */
.btn { will-change: transform; }

/* ---------- Reduced motion / touch fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .preloader-bar-fill::after { animation: none; }
  .preloader { animation: preloader-failsafe 0.01s linear 0.3s forwards; }
  .scroll-cue-line::after { animation: none; }
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ========================================================================== 
   Gallery page — editorial surface archive
   ========================================================================== */
body[data-page="gallery"] {
  background: #17130f;
}

.gallery-page {
  overflow: clip;
  background: #17130f;
}

.gallery-hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(9rem, 13vw, 12rem) max(5vw, 1.5rem) clamp(6rem, 10vw, 10rem);
  color: #f6f0e7;
  background:
    radial-gradient(circle at 72% 12%, rgba(196, 151, 71, .13), transparent 27rem),
    linear-gradient(145deg, #211a14 0%, #15110e 58%, #0f0c0a 100%);
}

/* Gallery introduction stays compact when the featured photo collage is omitted. */
body[data-page="gallery"] .gallery-hero {
  min-height: auto;
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

/* Keep the Gallery fully image-led: no photo-name or lightbox captions. */
body[data-page="gallery"] .gallery-card-title,
body[data-page="gallery"] .lightbox-caption {
  display: none;
}

body[data-page="gallery"] .gallery-wall .gallery-card::after {
  display: none;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 12.5vw 12.5vw;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

.gallery-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 94rem;
  margin: 0 auto clamp(3rem, 6vw, 6rem);
}

.gallery-hero-copy .eyebrow,
.gallery-collection .eyebrow,
.gallery-closing .eyebrow {
  color: var(--accent-light);
}

.gallery-hero h1 {
  display: flex;
  flex-direction: column;
  margin: .35em 0 .28em;
  font-size: clamp(4.4rem, 10.5vw, 11rem);
  line-height: .73;
  letter-spacing: -.055em;
  color: #f7f1e8;
}

.gallery-hero h1 span:last-child {
  margin-left: clamp(1.25rem, 10vw, 12rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 241, 232, .74);
}

.gallery-hero-copy > p {
  max-width: 38rem;
  margin: 0 0 0 auto;
  color: rgba(247, 241, 232, .66);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}

.gallery-hero-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 94rem;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.gallery-hero-meta span {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: 1rem 1.5rem;
  color: rgba(247, 241, 232, .55);
  font-size: .67rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-hero-meta span + span { border-left: 1px solid rgba(255,255,255,.18); }
.gallery-hero-meta b {
  font: 500 1.05rem/1 var(--font-head);
  color: var(--accent-light);
}

.gallery-feature {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(12rem, 1fr) minmax(12rem, .78fr);
  gap: clamp(.65rem, 1.2vw, 1.25rem);
  max-width: 94rem;
  height: clamp(34rem, 62vw, 54rem);
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background: #2a231d;
  isolation: isolate;
}

.gallery-feature .gallery-card--lead { grid-column: 1 / 8; grid-row: 1 / 3; }
.gallery-feature .gallery-card--portrait { grid-column: 8 / 13; grid-row: 1; }
.gallery-feature .gallery-card--detail { grid-column: 8 / 13; grid-row: 2; }

.gallery-feature .gallery-card img,
.gallery-wall .gallery-card img {
  display: block;
  width: 100%;
  transition: transform 1.15s cubic-bezier(.2,.72,.2,1), filter .65s ease;
}

.gallery-feature .gallery-card img {
  height: 100%;
  object-fit: cover;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8,6,5,.72), transparent 44%);
  opacity: .64;
  transition: opacity .55s ease;
}

.gallery-card-title {
  position: absolute;
  left: clamp(1rem, 2vw, 1.75rem);
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: 500 clamp(1.15rem, 1.65vw, 1.55rem)/1 var(--font-head);
  letter-spacing: .01em;
}

.gallery-card-title::after {
  content: "View";
  font: 500 .62rem/1 var(--font-body);
  letter-spacing: .17em;
  text-transform: uppercase;
  opacity: .72;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-card:hover img { transform: scale(1.035); filter: saturate(1.04); }
  .gallery-card:hover::after { opacity: .86; }
}

.gallery-scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  max-width: 94rem;
  margin: 2rem auto 0;
  color: rgba(247,241,232,.58);
  font-size: .67rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-scroll-cue i,
.finish-gallery-link i {
  position: relative;
  display: block;
  width: 3.5rem;
  height: 1px;
  background: currentColor;
}

.gallery-scroll-cue i::after,
.finish-gallery-link i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.gallery-collection {
  position: relative;
  padding: clamp(6rem, 11vw, 11rem) max(5vw, 1.5rem);
  background: #f1ece3;
  color: var(--text);
}

.gallery-collection-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, .65fr);
  align-items: end;
  gap: 3rem;
  max-width: 94rem;
  margin: 0 auto clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(37,29,23,.24);
}

.gallery-collection h2 {
  max-width: 13ch;
  margin: .22em 0 0;
  font-size: clamp(3.1rem, 6.8vw, 7.2rem);
  line-height: .82;
  letter-spacing: -.045em;
}

.gallery-collection-head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.gallery-wall {
  column-count: 3;
  column-gap: clamp(.8rem, 1.4vw, 1.4rem);
  max-width: 94rem;
  margin: 0 auto;
}

.gallery-wall .gallery-card {
  margin: 0 0 clamp(.8rem, 1.4vw, 1.4rem);
  break-inside: avoid;
  vertical-align: top;
}

.gallery-wall > .gallery-material-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(.8rem, 1.4vw, 1.4rem);
  break-inside: avoid;
  overflow: hidden;
  vertical-align: top;
  color: #f6f0e6;
  background: #211b16;
}

.gallery-material-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}

.gallery-material-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(18,14,11,.44), transparent 40%);
}

.gallery-material-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.72,.2,1), filter .8s ease;
}

.gallery-material-label {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  color: rgba(255,255,255,.88);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gallery-material-copy { padding: clamp(1.25rem, 2.2vw, 2rem); }

.gallery-material-copy h3 {
  margin: 0 0 .65rem;
  color: inherit;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.025em;
}

.gallery-material-copy p {
  margin: 0;
  color: rgba(246,240,230,.7);
  font-size: .92rem;
  line-height: 1.65;
}

.gallery-material-card .finish-uses { margin-top: 1.25rem; }
.gallery-material-card .finish-uses span {
  color: rgba(246,240,230,.7);
  border-color: rgba(246,240,230,.2);
}

.gallery-wall .gallery-card img { height: auto; }

@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  body[data-page="gallery"] .gallery-wall .gallery-card img {
    transform: translate3d(0, var(--gallery-parallax, 0px), 0) scale(1.025);
    transition: transform .16s linear, filter .55s ease;
  }

  body[data-page="gallery"] .gallery-wall .gallery-card:hover img {
    transform: translate3d(0, var(--gallery-parallax, 0px), 0) scale(1.055);
  }
}

.gallery-wall .gallery-card-title {
  opacity: 0;
  transform: translateY(.65rem);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.72,.2,1);
}

.gallery-wall .gallery-card::after { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .gallery-wall .gallery-card:hover .gallery-card-title { opacity: 1; transform: none; }
  .gallery-wall .gallery-card:hover::after { opacity: .82; }
  .gallery-material-card:hover .gallery-material-media img {
    filter: saturate(1.04);
    transform: scale(1.035);
  }
}

.gallery-card.gallery-reveal,
.gallery-material-card.gallery-reveal {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0) scale(.995);
  transition: opacity .85s cubic-bezier(.2,.72,.2,1), transform .95s cubic-bezier(.2,.72,.2,1);
}

.gallery-material-card.gallery-reveal { transform: translate(1.75rem, 3rem); }

.gallery-card.gallery-reveal.is-visible,
.gallery-material-card.gallery-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.gallery-closing {
  display: flex;
  min-height: 62svh;
  padding: clamp(5rem, 10vw, 10rem) max(5vw, 1.5rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f7f1e8;
  background:
    radial-gradient(circle at 50% 115%, rgba(197,151,67,.24), transparent 45%),
    #17130f;
}

.gallery-closing h2 {
  max-width: 13ch;
  margin: .35em auto .65em;
  color: inherit;
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  line-height: .82;
  letter-spacing: -.045em;
}

/* Minimal, image-led lightbox on the dedicated Gallery page. */
body[data-page="gallery"] .lightbox {
  padding: clamp(1rem, 3vw, 3rem);
  background: rgba(12, 9, 7, .96);
  backdrop-filter: blur(12px);
}

body[data-page="gallery"] .lightbox img {
  max-width: min(92vw, 112rem);
  max-height: 84svh;
  border-radius: 0;
  box-shadow: 0 2rem 8rem rgba(0,0,0,.55);
}

body[data-page="gallery"] .lightbox-prev,
body[data-page="gallery"] .lightbox-next { display: none; }

body[data-page="gallery"] .lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  background: rgba(20,16,13,.42);
}

.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255,255,255,.82);
  font: 500 1.05rem/1.2 var(--font-head);
  letter-spacing: .03em;
  white-space: nowrap;
}

/* Finishes-to-Gallery bridge */
.finish-gallery-bridge {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  color: #f7f1e8;
  background: #211a15;
}

.finish-gallery-bridge-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

.finish-gallery-bridge h2 {
  max-width: 9ch;
  margin: .25em 0 0;
  color: inherit;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: .86;
  letter-spacing: -.04em;
}

.finish-gallery-bridge p {
  max-width: 31rem;
  margin: 0;
  color: rgba(247,241,232,.62);
  line-height: 1.75;
}

.finish-gallery-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: .65rem;
  color: var(--accent-light);
  border-bottom: 1px solid rgba(220,183,92,.32);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1020px) {
  .gallery-feature {
    height: clamp(35rem, 76vw, 48rem);
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .gallery-feature .gallery-card--lead { grid-column: 1 / 6; }
  .gallery-feature .gallery-card--portrait,
  .gallery-feature .gallery-card--detail { grid-column: 6 / 9; }
  .gallery-wall { column-count: 2; }
  .finish-gallery-bridge-inner { grid-template-columns: 1fr 1fr; }
  .finish-gallery-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 700px) {
  .gallery-hero { padding-inline: 1rem; padding-top: 8.5rem; }
  .gallery-hero h1 { font-size: clamp(4rem, 20vw, 6.5rem); }
  .gallery-hero h1 span:last-child { margin-left: 0; }
  .gallery-hero-copy > p { margin-left: 0; max-width: 31rem; }
  .gallery-hero-meta { grid-template-columns: 1fr; }
  .gallery-hero-meta span + span { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .gallery-feature {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 58svh 38svh;
  }
  .gallery-feature .gallery-card--lead { grid-column: 1 / 3; grid-row: 1; }
  .gallery-feature .gallery-card--portrait { grid-column: 1; grid-row: 2; }
  .gallery-feature .gallery-card--detail { grid-column: 2; grid-row: 2; }
  .gallery-scroll-cue { justify-content: flex-start; }
  .gallery-collection { padding-inline: 1rem; }
  .gallery-collection-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-collection h2 { font-size: clamp(3.2rem, 15vw, 5.25rem); }
  .gallery-wall { column-count: 1; }
  .gallery-wall .gallery-card,
  .gallery-wall > .gallery-material-card { margin-bottom: 1rem; }
  .gallery-wall .gallery-card-title { opacity: 1; transform: none; }
  .gallery-wall .gallery-card::after { opacity: .7; }
  .gallery-card-title::after { content: "Open"; }
  .finish-gallery-bridge-inner { grid-template-columns: 1fr; }
  .finish-gallery-link { grid-column: 1; }
  .lightbox-caption { bottom: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .gallery-card img,
  .gallery-card.gallery-reveal,
  .gallery-material-card.gallery-reveal,
  .gallery-material-media img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Width-based responsive rules — kept LAST so they win over the
   base declarations above regardless of source order.
   ============================================================ */

/* Safety net: never allow sideways scroll on any device */
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .props { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .craft-gallery { columns: 2; }
  .slide { width: 54vw; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-espresso-2);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links a {
    padding: 1em var(--space-3);
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links a::before { content: none; }
  .nav-toggle { display: flex; }
  .grid, .grid--4, .projects-grid, .finishes-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .props { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; gap: var(--space-3); }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .slider-hint { display: none; }
}

@media (max-width: 480px) {
  .grid, .grid--4, .projects-grid, .gallery-grid { grid-template-columns: 1fr; }
  .craft-gallery { columns: 1; }
  .slide { width: 82vw; }
  .stage-viewport { aspect-ratio: 4 / 5; max-height: none; }
  .stage-cap { padding: var(--space-3); }
  .stage-title { font-size: 1.5rem; }
  .stage-arrow { width: 44px; height: 44px; opacity: 1; }
  .stage-open { opacity: 1; }
  .film-thumb { width: 72px; height: 54px; }
  .hero { min-height: 100vh; }
  .container { padding: 0 var(--space-2); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ============================================================
   Our Craft / Surface Atlas
   A spatial 3 x 5 gallery with four-way motion and depth.
   ============================================================ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.craft-atlas-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(169, 131, 79, 0.13), transparent 31rem),
    radial-gradient(circle at 12% 84%, rgba(176, 85, 46, 0.09), transparent 34rem),
    #18130f;
  color: var(--color-cream);
}
.craft-atlas-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.craft-atlas-section .container { position: relative; z-index: 1; }
.craft-atlas-section .eyebrow { color: var(--brand-gold); }
.craft-atlas-head {
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem) !important;
}
.craft-atlas-head h2 {
  margin: 0;
  max-width: 720px;
  color: var(--color-white);
  font-size: clamp(3rem, 6.5vw, 6.2rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.045em;
}
.craft-atlas-intro {
  width: min(100%, 390px);
  padding-bottom: 0.3rem;
}
.craft-atlas-intro .lede {
  margin: 0 0 1.5rem;
  color: rgba(246, 240, 230, 0.62);
  font-size: 1rem;
  line-height: 1.65;
}
.craft-atlas-intro .btn { color: var(--color-cream); }

.craft-atlas {
  --atlas-line: rgba(246, 240, 230, 0.14);
  --atlas-soft: rgba(246, 240, 230, 0.56);
  --atlas-ease: cubic-bezier(.76, 0, .24, 1);
  position: relative;
  padding: 0;
  outline: none;
}
.craft-atlas:focus-visible::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(221, 187, 92, 0.72);
  pointer-events: none;
}
.atlas-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--atlas-line);
  color: rgba(246, 240, 230, 0.44);
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.atlas-topline span:last-child { text-align: right; color: var(--brand-gold); }

.atlas-layout {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(1.25rem, 2.7vw, 2.4rem);
  align-items: stretch;
  padding: clamp(1.25rem, 2.6vw, 2.2rem) 0 0;
}

.atlas-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.3rem 0 0.15rem;
}
.atlas-rail-label {
  color: rgba(246, 240, 230, 0.36);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.atlas-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: 100%;
}
.atlas-map-item {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--atlas-line);
  border-radius: 50%;
  background: transparent;
  color: rgba(246, 240, 230, 0.34);
  cursor: pointer;
  transition: color .35s ease, border-color .35s ease, background .35s ease, transform .35s ease;
}
.atlas-map-item span {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: 0.48rem;
  line-height: 1;
  letter-spacing: 0.04em;
}
.atlas-map-item:hover {
  color: var(--color-white);
  border-color: rgba(246, 240, 230, 0.5);
  transform: scale(1.08);
}
.atlas-map-item.is-current {
  color: #1b1510;
  border-color: var(--brand-gold);
  background: var(--brand-gold);
}

.atlas-stage {
  --rx: 0deg;
  --ry: 0deg;
  --cursor-x: 50%;
  --cursor-y: 50%;
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.atlas-stage.is-dragging { cursor: grabbing; }
.atlas-plane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0e0b09;
  border: 1px solid rgba(246, 240, 230, 0.12);
  box-shadow: 0 38px 90px -42px rgba(0,0,0,0.92);
  transform: perspective(1300px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.001);
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(.2,.7,.2,1);
}
.atlas-stage.is-tracking .atlas-plane { transition-duration: 0.14s; }
.atlas-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  will-change: clip-path, transform, filter;
}
.atlas-layer.is-active { z-index: 1; opacity: 1; }
.atlas-bg,
.atlas-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.atlas-bg {
  object-fit: cover;
  transform: scale(1.14);
  filter: blur(28px) brightness(0.43) saturate(1.15);
}
.atlas-depth {
  position: absolute;
  inset: clamp(1rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 28px 80px rgba(0,0,0,0.3);
  will-change: transform;
}
.atlas-photo {
  object-fit: contain;
  transform: scale(1.002);
  filter: saturate(0.94) contrast(1.02);
}
.atlas-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(255,255,255,0.08), transparent 22%),
    linear-gradient(180deg, rgba(14,11,9,0.08), transparent 42%, rgba(14,11,9,0.34));
}
.atlas-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.11;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 22% 37%, rgba(255,255,255,.34) 0 0.35px, transparent .5px 3px),
    repeating-radial-gradient(circle at 71% 63%, rgba(0,0,0,.28) 0 0.3px, transparent .5px 4px);
  background-size: 5px 7px, 7px 5px;
  mix-blend-mode: soft-light;
}

/* Incoming frame reveals from the exact direction used to navigate. */
.atlas-layer.enter-right { animation: atlas-in-right 1s var(--atlas-ease) both; }
.atlas-layer.enter-left  { animation: atlas-in-left 1s var(--atlas-ease) both; }
.atlas-layer.enter-up    { animation: atlas-in-up 1s var(--atlas-ease) both; }
.atlas-layer.enter-down  { animation: atlas-in-down 1s var(--atlas-ease) both; }
.atlas-layer.enter-right .atlas-depth { animation: atlas-depth-right 1s var(--atlas-ease) both; }
.atlas-layer.enter-left .atlas-depth  { animation: atlas-depth-left 1s var(--atlas-ease) both; }
.atlas-layer.enter-up .atlas-depth    { animation: atlas-depth-up 1s var(--atlas-ease) both; }
.atlas-layer.enter-down .atlas-depth  { animation: atlas-depth-down 1s var(--atlas-ease) both; }
.atlas-layer.leave-right { animation: atlas-out-left 1s var(--atlas-ease) both; }
.atlas-layer.leave-left  { animation: atlas-out-right 1s var(--atlas-ease) both; }
.atlas-layer.leave-up    { animation: atlas-out-down 1s var(--atlas-ease) both; }
.atlas-layer.leave-down  { animation: atlas-out-up 1s var(--atlas-ease) both; }

@keyframes atlas-in-right { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes atlas-in-left  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes atlas-in-up    { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes atlas-in-down  { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes atlas-depth-right { from { transform: translateX(6%) scale(1.08); } to { transform: none; } }
@keyframes atlas-depth-left  { from { transform: translateX(-6%) scale(1.08); } to { transform: none; } }
@keyframes atlas-depth-up    { from { transform: translateY(-6%) scale(1.08); } to { transform: none; } }
@keyframes atlas-depth-down  { from { transform: translateY(6%) scale(1.08); } to { transform: none; } }
@keyframes atlas-out-left    { from { transform: none; filter: brightness(1); } to { transform: translateX(-3%) scale(.96); filter: brightness(.48); } }
@keyframes atlas-out-right   { from { transform: none; filter: brightness(1); } to { transform: translateX(3%) scale(.96); filter: brightness(.48); } }
@keyframes atlas-out-up      { from { transform: none; filter: brightness(1); } to { transform: translateY(-3%) scale(.96); filter: brightness(.48); } }
@keyframes atlas-out-down    { from { transform: none; filter: brightness(1); } to { transform: translateY(3%) scale(.96); filter: brightness(.48); } }

.atlas-direction {
  position: absolute;
  z-index: 8;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(246, 240, 230, 0.32);
  border-radius: 50%;
  background: rgba(20, 15, 10, 0.48);
  color: var(--color-white);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition: opacity .35s ease, color .3s ease, background .3s ease, transform .35s ease;
}
.atlas-stage:hover .atlas-direction,
.atlas-stage:focus-within .atlas-direction { opacity: 1; }
.atlas-direction:hover {
  color: #17120e;
  border-color: var(--brand-gold);
  background: var(--brand-gold);
}
.atlas-up { top: 15px; left: 50%; transform: translateX(-50%); }
.atlas-right { top: 50%; right: 15px; transform: translateY(-50%); }
.atlas-down { bottom: 15px; left: 50%; transform: translateX(-50%); }
.atlas-left { top: 50%; left: 15px; transform: translateY(-50%); }
.atlas-up:hover { transform: translate(-50%, -3px); }
.atlas-right:hover { transform: translate(3px, -50%); }
.atlas-down:hover { transform: translate(-50%, 3px); }
.atlas-left:hover { transform: translate(-3px, -50%); }

.atlas-open {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  background: rgba(20, 15, 10, 0.52);
  color: rgba(255,255,255,0.76);
  font-family: var(--font-body);
  font-size: 0.55rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color .3s ease, background .3s ease;
}
.atlas-open i { color: var(--brand-gold); font-size: 0.9rem; font-style: normal; }
.atlas-open:hover { color: #fff; background: rgba(20, 15, 10, 0.78); }
.atlas-drag-cue {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 240, 230, 0.46);
  border-radius: 50%;
  background: rgba(24, 19, 15, 0.2);
  color: #fff;
  font-size: 0.52rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: opacity .25s ease, transform .35s ease;
}
.atlas-stage:hover .atlas-drag-cue { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.atlas-stage.is-dragging .atlas-drag-cue { transform: translate(-50%, -50%) scale(.82); }

.atlas-story {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.3rem 0 0.15rem;
}
.atlas-story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--atlas-line);
}
.atlas-kicker {
  color: var(--brand-gold);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.atlas-count {
  flex: 0 0 auto;
  font-family: var(--font-head);
  color: rgba(246,240,230,.35);
  font-size: 1rem;
  letter-spacing: .04em;
}
.atlas-count b { color: var(--color-white); font-size: 1.4rem; font-weight: 500; }
.atlas-count i { margin: 0 .4em; color: rgba(246,240,230,.18); font-style: normal; }
.atlas-copy {
  padding: clamp(2rem, 5vh, 4.4rem) 0 clamp(1.5rem, 4vh, 3rem);
  transition: opacity .35s ease, transform .35s ease;
}
.atlas-copy.is-changing { opacity: 0; transform: translateY(10px); }
.atlas-copy h3 {
  margin: 0 0 1rem;
  color: var(--color-white);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.035em;
}
.atlas-copy p {
  margin: 0;
  color: rgba(246, 240, 230, 0.54);
  font-size: .9rem;
  line-height: 1.7;
}
.atlas-specs {
  margin: auto 0 2rem;
  padding: 0;
}
.atlas-specs div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--atlas-line);
}
.atlas-specs div:last-child { border-bottom: 1px solid var(--atlas-line); }
.atlas-specs dt {
  color: rgba(246,240,230,.32);
  font-size: .55rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.atlas-specs dd {
  margin: 0;
  color: rgba(246,240,230,.72);
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.2;
}
.atlas-story-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.atlas-play {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(246,240,230,.46);
  font-family: var(--font-body);
  font-size: .52rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.atlas-play-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(246,240,230,.25);
  border-radius: 50%;
}
.atlas-play.is-playing .atlas-play-icon::before,
.atlas-play.is-playing .atlas-play-icon::after {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: var(--brand-gold);
}
.atlas-play.is-playing .atlas-play-icon::before { left: 6px; }
.atlas-play.is-playing .atlas-play-icon::after { right: 6px; }
.atlas-play:not(.is-playing) .atlas-play-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--brand-gold);
}
.atlas-timer {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: var(--atlas-line);
}
.atlas-timer span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
}
.atlas-mobile-strip { display: none; }

@media (max-width: 1040px) {
  .atlas-layout {
    grid-template-columns: 76px minmax(0, 1fr) minmax(205px, 240px);
    gap: 1.25rem;
  }
  .atlas-stage { aspect-ratio: 1 / 1; }
  .atlas-map { gap: 5px; }
  .atlas-copy { padding-top: 2rem; }
}

@media (max-width: 820px) {
  .craft-atlas-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .craft-atlas-head { align-items: flex-start; }
  .craft-atlas-head h2 { font-size: clamp(3rem, 13vw, 5.5rem); }
  .craft-atlas-intro { margin-top: .5rem; }
  .atlas-topline { grid-template-columns: 1fr 1fr; }
  .atlas-topline span:nth-child(2) { display: none; }
  .atlas-layout {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
    gap: 1.4rem;
  }
  .atlas-rail { display: none; }
  .atlas-stage { aspect-ratio: 4 / 5; }
  .atlas-copy { padding-top: 2.4rem; }
  .atlas-copy h3 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
  .atlas-mobile-strip {
    display: flex;
    gap: .6rem;
    margin-top: 1.4rem;
    padding: 0 0 .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .atlas-mobile-strip::-webkit-scrollbar { display: none; }
  .atlas-thumb {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    background: #0e0b09;
    opacity: .42;
    cursor: pointer;
    scroll-snap-align: start;
    transition: opacity .3s ease, border-color .3s ease;
  }
  .atlas-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .atlas-thumb span {
    position: absolute;
    right: 4px;
    bottom: 3px;
    color: #fff;
    font-size: .48rem;
    line-height: 1;
  }
  .atlas-thumb.is-current { opacity: 1; border-color: var(--brand-gold); }
}

@media (max-width: 620px) {
  .craft-atlas-section .container { padding-left: var(--space-2); padding-right: var(--space-2); }
  .craft-atlas-head h2 { font-size: clamp(3rem, 18vw, 4.8rem); }
  .atlas-layout { display: flex; flex-direction: column; gap: 0; }
  .atlas-stage { width: 100%; aspect-ratio: 4 / 5; }
  .atlas-story { padding-top: 1.5rem; }
  .atlas-story-top { padding-bottom: 1rem; }
  .atlas-copy { padding: 1.7rem 0 1.4rem; }
  .atlas-copy h3 { font-size: 2.65rem; }
  .atlas-specs { margin: 0 0 1.5rem; }
  .atlas-direction { width: 42px; height: 42px; opacity: 1; }
  .atlas-up { top: 10px; }
  .atlas-right { right: 10px; }
  .atlas-down { bottom: 10px; }
  .atlas-left { left: 10px; }
  .atlas-open { right: .85rem; bottom: .75rem; }
  .atlas-drag-cue { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .atlas-drag-cue { display: none; }
  .atlas-direction { opacity: .86; }
  .atlas-plane { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-layer,
  .atlas-layer .atlas-depth { animation: none !important; }
  .atlas-plane,
  .atlas-copy,
  .atlas-direction,
  .atlas-map-item,
  .atlas-drag-cue { transition: none !important; }
}

/* ============================================================
   Our Craft / Automatic cinematic photo slideshow
   ============================================================ */
.craft-cinema-section {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(circle at 82% 18%, rgba(169, 131, 79, .17), transparent 32rem),
    #17120e;
  color: var(--color-cream);
}
body[data-page="home"] #our-craft { overflow: visible; }
.craft-cinema-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(255,255,255,.13) 50%, transparent 50.06%),
    linear-gradient(transparent 49.94%, rgba(255,255,255,.08) 50%, transparent 50.06%);
  background-size: 180px 180px;
}
.craft-cinema-section .container { position: relative; z-index: 1; }
.craft-cinema-section .eyebrow { color: var(--brand-gold); }
.craft-cinema-head {
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem) !important;
}
.craft-cinema-head h2 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(3rem, 7.2vw, 6.8rem);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.045em;
}
.craft-cinema-intro {
  width: min(100%, 390px);
  padding-bottom: .3rem;
}
.craft-cinema-intro .lede {
  margin: 0 0 1.5rem;
  color: rgba(246,240,230,.62);
  font-size: 1rem;
  line-height: 1.65;
}

.craft-cinema {
  --cinema-duration: 1.3s;
  --cinema-ease: cubic-bezier(.76, 0, .24, 1);
  position: relative;
  outline: none;
}
.craft-cinema:focus-visible {
  box-shadow: 0 0 0 1px var(--brand-gold), 0 0 0 7px rgba(221,187,92,.12);
}
.cinema-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.4;
  max-height: 78vh;
  overflow: hidden;
  background: #090705;
  border: 1px solid rgba(246,240,230,.14);
  box-shadow: 0 42px 100px -45px rgba(0,0,0,.95);
  isolation: isolate;
}
.cinema-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  will-change: transform, clip-path, opacity, filter;
}
.cinema-layer.is-active { z-index: 1; opacity: 1; }
.cinema-backdrop,
.cinema-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.cinema-backdrop {
  object-fit: cover;
  transform: scale(1.17);
  filter: blur(34px) brightness(.4) saturate(1.18);
}
.cinema-frame {
  position: absolute;
  inset: clamp(1rem, 3.4vw, 3rem);
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  will-change: transform;
}
.cinema-photo {
  object-fit: contain;
  filter: saturate(.96) contrast(1.02);
  will-change: transform;
}
.cinema-shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,6,5,.42), transparent 28%, transparent 72%, rgba(8,6,5,.25)),
    linear-gradient(180deg, transparent 50%, rgba(8,6,5,.66));
}
.cinema-lines {
  position: absolute;
  inset: clamp(1rem, 3.4vw, 3rem);
  z-index: 5;
  border: 1px solid rgba(255,255,255,.11);
  pointer-events: none;
}

/* Directional transition set: horizontal, vertical, curtain, diagonal and zoom. */
.cinema-layer.fx-slide-left { animation: cinema-in-right var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-slide-left .cinema-frame { animation: cinema-frame-right var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-slide-left-out { animation: cinema-out-left var(--cinema-duration) var(--cinema-ease) both; }

.cinema-layer.fx-slide-up { animation: cinema-in-bottom var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-slide-up .cinema-frame { animation: cinema-frame-bottom var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-slide-up-out { animation: cinema-out-top var(--cinema-duration) var(--cinema-ease) both; }

.cinema-layer.fx-curtain-right { animation: cinema-curtain-left var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-curtain-right .cinema-frame { animation: cinema-frame-left var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-curtain-right-out { animation: cinema-out-right var(--cinema-duration) var(--cinema-ease) both; }

.cinema-layer.fx-curtain-down { animation: cinema-curtain-top var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-curtain-down .cinema-frame { animation: cinema-frame-top var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-curtain-down-out { animation: cinema-out-bottom var(--cinema-duration) var(--cinema-ease) both; }

.cinema-layer.fx-diagonal { animation: cinema-diagonal var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-diagonal .cinema-frame { animation: cinema-frame-diagonal var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-diagonal-out { animation: cinema-out-diagonal var(--cinema-duration) var(--cinema-ease) both; }

.cinema-layer.fx-zoom { animation: cinema-zoom-in var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-zoom .cinema-photo { animation: cinema-photo-zoom var(--cinema-duration) var(--cinema-ease) both; }
.cinema-layer.fx-zoom-out { animation: cinema-zoom-out var(--cinema-duration) var(--cinema-ease) both; }

@keyframes cinema-in-right {
  from { transform: translate3d(100%,0,0); }
  to { transform: translate3d(0,0,0); }
}
@keyframes cinema-out-left {
  from { transform: translate3d(0,0,0); filter: brightness(1); }
  to { transform: translate3d(-22%,0,0) scale(.96); filter: brightness(.46); }
}
@keyframes cinema-frame-right {
  from { transform: translate3d(-24%,0,0) scale(1.08); }
  to { transform: translate3d(0,0,0) scale(1); }
}
@keyframes cinema-in-bottom {
  from { transform: translate3d(0,100%,0); }
  to { transform: translate3d(0,0,0); }
}
@keyframes cinema-out-top {
  from { transform: translate3d(0,0,0); filter: brightness(1); }
  to { transform: translate3d(0,-20%,0) scale(.96); filter: brightness(.46); }
}
@keyframes cinema-frame-bottom {
  from { transform: translate3d(0,-22%,0) scale(1.08); }
  to { transform: translate3d(0,0,0) scale(1); }
}
@keyframes cinema-curtain-left {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes cinema-out-right {
  from { transform: none; filter: brightness(1); }
  to { transform: translate3d(13%,0,0) scale(.95); filter: brightness(.42); }
}
@keyframes cinema-frame-left {
  from { transform: translate3d(-8%,0,0) scale(1.1); }
  to { transform: none; }
}
@keyframes cinema-curtain-top {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
@keyframes cinema-out-bottom {
  from { transform: none; filter: brightness(1); }
  to { transform: translate3d(0,13%,0) scale(.95); filter: brightness(.42); }
}
@keyframes cinema-frame-top {
  from { transform: translate3d(0,-8%,0) scale(1.1); }
  to { transform: none; }
}
@keyframes cinema-diagonal {
  from { clip-path: polygon(0 0, 0 0, 0 0); transform: translate3d(-5%,-5%,0) scale(1.08); }
  to { clip-path: polygon(0 0, 200% 0, 0 200%); transform: none; }
}
@keyframes cinema-frame-diagonal {
  from { transform: translate3d(7%,7%,0) scale(1.08); }
  to { transform: none; }
}
@keyframes cinema-out-diagonal {
  from { transform: none; filter: brightness(1); }
  to { transform: translate3d(5%,5%,0) scale(.95); filter: brightness(.4); }
}
@keyframes cinema-zoom-in {
  from { opacity: 0; transform: scale(1.12); filter: blur(8px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes cinema-photo-zoom {
  from { transform: scale(1.2); }
  to { transform: scale(1); }
}
@keyframes cinema-zoom-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.88); }
}

.cinema-caption {
  position: absolute;
  left: clamp(1.8rem, 5vw, 5rem);
  bottom: clamp(1.8rem, 4vw, 3.8rem);
  z-index: 7;
  display: block;
  pointer-events: none;
  transition: opacity .35s ease, transform .45s ease;
}
.cinema-caption.is-changing { opacity: 0; transform: translateY(14px); }
.cinema-number {
  padding-bottom: .55rem;
  color: var(--brand-gold);
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1;
}
.cinema-material {
  display: block;
  margin-bottom: .35rem;
  color: rgba(255,255,255,.62);
  font-size: .58rem;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.cinema-caption h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.035em;
}
.cinema-effect-label {
  position: absolute;
  top: clamp(1.6rem, 4vw, 3.5rem);
  left: clamp(1.8rem, 5vw, 5rem);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.4);
  font-size: .5rem;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cinema-effect-label b { color: rgba(255,255,255,.82); font-weight: 400; }
.cinema-effect-label span::after { content: "/"; margin-left: .7rem; color: var(--brand-gold); }

.cinema-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: rgba(12,9,7,.36);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity .3s ease, background .3s ease, color .3s ease;
}
.cinema-viewport:hover .cinema-arrow,
.cinema-viewport:focus-within .cinema-arrow { opacity: 1; }
.cinema-arrow:hover { color: #17120e; border-color: var(--brand-gold); background: var(--brand-gold); }
.cinema-prev { left: 1.25rem; }
.cinema-next { right: 1.25rem; }
.cinema-expand {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3.5rem);
  top: clamp(1.5rem, 4vw, 3.25rem);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .85rem;
  border: 0;
  background: rgba(12,9,7,.42);
  color: rgba(255,255,255,.74);
  font-family: var(--font-body);
  font-size: .52rem;
  line-height: 1;
  letter-spacing: .17em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.cinema-expand span { color: var(--brand-gold); font-size: .85rem; }
.cinema-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  height: 3px;
  background: rgba(255,255,255,.12);
}
.cinema-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
}
.cinema-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.3rem 0 0;
}
.cinema-play {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(246,240,230,.56);
  font-family: var(--font-body);
  font-size: .55rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.cinema-play-mark {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(246,240,230,.28);
  border-radius: 50%;
}
.cinema-play.is-playing .cinema-play-mark::before,
.cinema-play.is-playing .cinema-play-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--brand-gold);
}
.cinema-play.is-playing .cinema-play-mark::before { left: 7px; }
.cinema-play.is-playing .cinema-play-mark::after { right: 7px; }
.cinema-play:not(.is-playing) .cinema-play-mark::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--brand-gold);
}
.cinema-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.35rem, .8vw, .7rem);
}
.cinema-dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(246,240,230,.25);
  cursor: pointer;
  transition: transform .3s ease, background .3s ease;
}
.cinema-dot:hover { background: rgba(246,240,230,.72); }
.cinema-dot.is-current { background: var(--brand-gold); transform: scale(1.8); }
.cinema-total {
  color: rgba(246,240,230,.36);
  font-family: var(--font-head);
  font-size: .95rem;
  text-align: right;
}
.cinema-total b { color: #fff; font-size: 1.3rem; font-weight: 500; }

/* ---------- Scroll-travel gallery ----------
   A long sticky scene: the rail crosses right-to-left while every frame
   independently rises through the viewport and reverses its tilt. */
.craft-travel {
  position: relative;
  width: 100vw;
  height: var(--travel-height-desktop, 760vh);
  margin: clamp(5rem, 10vw, 9rem) 0 calc(var(--space-6) * -1);
  margin-left: calc(50% - 50vw);
  color: #231c17;
  background: #d9cbb4;
}
.craft-travel-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.4), transparent 38%),
    linear-gradient(145deg, #e5d9c5 0%, #d2c1a7 100%);
}
.craft-travel-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .3;
  background:
    repeating-linear-gradient(90deg, rgba(48,38,29,.17) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, transparent 49.95%, rgba(48,38,29,.22) 50%, transparent 50.05%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 8%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 8%, transparent 76%);
}
.craft-travel-heading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  color: rgba(42,32,25,.88);
  font-family: var(--font-head);
  font-size: clamp(6rem, 18vw, 17rem);
  font-weight: 500;
  line-height: .68;
  letter-spacing: -.065em;
  text-transform: uppercase;
  pointer-events: none;
  will-change: transform, opacity;
}
.craft-travel-heading span:first-child { transform: translateX(-.28em); }
.craft-travel-heading span:last-child { transform: translateX(.28em); }
.craft-travel-kicker {
  position: absolute;
  top: clamp(1.4rem, 3.5vw, 3rem);
  left: clamp(1.4rem, 4vw, 4.5rem);
  right: clamp(1.4rem, 4vw, 4.5rem);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  padding-top: .8rem;
  border-top: 1px solid rgba(40,30,23,.4);
  color: rgba(40,30,23,.68);
  font-size: .55rem;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.craft-travel-rail {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(6rem, 11vw, 12rem);
  width: max-content;
  will-change: transform;
}
.craft-travel-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(270px, 34vw, 500px);
  height: clamp(350px, 62vh, 590px);
  margin: 0;
  overflow: hidden;
  background: #211a15;
  box-shadow: 0 40px 90px -38px rgba(39,29,21,.72);
  will-change: transform;
}
.craft-travel-card--wide {
  width: clamp(340px, 46vw, 650px);
  height: clamp(280px, 48vh, 460px);
}
.craft-travel-card--tall {
  width: clamp(250px, 29vw, 420px);
  height: clamp(390px, 68vh, 650px);
}
.craft-travel-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.12);
  filter: saturate(.88) contrast(1.03);
  will-change: transform;
}
.craft-travel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(16,12,9,.65));
  pointer-events: none;
}
.craft-travel-card figcaption {
  position: absolute;
  z-index: 2;
  left: 1.2rem;
  bottom: 1.05rem;
  color: rgba(255,255,255,.9);
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.craft-travel-rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.4rem, 3.5vw, 3rem);
  z-index: 2;
  height: 1px;
  background: rgba(40,30,23,.32);
  transform-origin: left;
  will-change: transform;
}

@media (max-width: 760px) {
  .craft-cinema-head { align-items: flex-start; }
  .craft-cinema-head h2 { font-size: clamp(3.2rem, 15vw, 5.6rem); }
  .craft-cinema-intro { margin-top: .5rem; }
  .cinema-viewport { aspect-ratio: 4 / 5; max-height: none; }
  .cinema-frame,
  .cinema-lines { inset: 1rem; }
  .cinema-caption { left: 1.5rem; bottom: 1.7rem; }
  .cinema-caption h3 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .cinema-effect-label { left: 1.5rem; top: 1.5rem; }
  .cinema-expand { top: 1rem; right: 1rem; }
  .cinema-arrow { width: 44px; height: 44px; opacity: 1; }
  .cinema-prev { left: .7rem; }
  .cinema-next { right: .7rem; }
  .cinema-dots { gap: .45rem; }
  .cinema-dot { width: 4px; height: 4px; }
  .craft-travel { height: var(--travel-height-mobile, 620vh); }
  .craft-travel-sticky { min-height: 520px; }
  .craft-travel-heading { font-size: clamp(5.4rem, 28vw, 9rem); line-height: .72; }
  .craft-travel-kicker span:last-child { display: none; }
  .craft-travel-rail { gap: 5.5rem; }
  .craft-travel-card {
    width: min(76vw, 390px);
    height: min(62vh, 520px);
  }
  .craft-travel-card--wide {
    width: min(84vw, 470px);
    height: min(48vh, 410px);
  }
  .craft-travel-card--tall {
    width: min(72vw, 360px);
    height: min(66vh, 560px);
  }
  .hero-scan-transition { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-scan-transition span:nth-child(n+13) { display: none; }
}

@media (max-width: 480px) {
  .craft-cinema-section .container { padding-left: var(--space-2); padding-right: var(--space-2); }
  .cinema-effect-label span { display: none; }
  .cinema-expand { font-size: 0; width: 40px; height: 40px; justify-content: center; padding: 0; }
  .cinema-expand span { font-size: 1rem; }
  .cinema-dots { gap: .38rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-layer,
  .cinema-frame,
  .cinema-photo { animation: none !important; }
  .cinema-caption,
  .cinema-dot { transition: none !important; }
  .craft-travel {
    height: auto;
    padding: 5rem 0;
  }
  .craft-travel-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  .craft-travel-heading { opacity: .18; }
  .craft-travel-rail {
    position: relative;
    top: auto;
    width: 100%;
    padding: 4rem 1.5rem 2rem;
    overflow-x: auto;
    transform: none !important;
  }
  .craft-travel-card { transform: none !important; }
  .craft-travel-card img { transform: none !important; }
  .hero-scan-transition { display: none !important; }
}

/* ============================================================
   Premium scroll choreography
   Masked type, directional media curtains and section wipes.
   ============================================================ */
.motion-heading {
  overflow: hidden;
}
.motion-heading > .motion-word {
  display: inline-block;
  will-change: transform;
}
.motion-copy-word {
  display: inline-block;
  will-change: opacity;
}
.motion-media,
.motion-media-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.motion-media-shell {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--color-taupe);
}
.motion-media-shell > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.motion-media > img,
.motion-media-shell > img {
  will-change: transform;
}
.motion-curtain {
  position: absolute;
  inset: -1px;
  z-index: 8;
  display: block;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.08), transparent 38%),
    var(--color-cream);
  will-change: transform;
}
.section--alt .motion-curtain {
  background:
    linear-gradient(115deg, rgba(255,255,255,.12), transparent 38%),
    var(--color-plaster);
}
.section--dark .motion-curtain,
.project-hero .motion-curtain {
  background:
    linear-gradient(115deg, rgba(221,187,92,.07), transparent 38%),
    var(--color-espresso);
}

@media (prefers-reduced-motion: reduce) {
  .motion-heading { overflow: visible; }
  .motion-heading > .motion-word,
  .motion-copy-word,
  .motion-media > img,
  .motion-media-shell > img {
    opacity: 1 !important;
    transform: none !important;
  }
  .motion-curtain { display: none !important; }
}

.craft-travel-card:nth-child(n + 13) { display: none; }

/* ============================================================
   Final responsive polish
   Device-safe viewport sizing, touch targets and narrow layouts.
   Kept at the end of the file so these rules remain authoritative.
   ============================================================ */
img,
video,
canvas,
svg {
  max-width: 100%;
}

.hero-inner,
.split > *,
.contact-grid > *,
.form-row > *,
.field {
  min-width: 0;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
}

.contact-info a,
.footer-top a,
.footer-bottom {
  overflow-wrap: anywhere;
}

@supports (height: 100svh) {
  .hero--intro { min-height: 100svh; }
  .craft-travel-sticky { height: 100svh; }
}

@media (max-width: 980px) {
  .section {
    padding-block: clamp(4.5rem, 10vw, 6rem);
  }

  .section--tight {
    padding-block: clamp(3.5rem, 8vw, 4.5rem);
  }

  .contact-grid {
    gap: clamp(3rem, 8vw, var(--space-5));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .site-header .container {
    padding-inline: max(var(--space-2), env(safe-area-inset-left));
  }

  .logo-svg {
    height: 34px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 9px;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    max-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open {
    max-height: calc(100vh - var(--header-height));
  }

  @supports (height: 100dvh) {
    .nav-links.is-open {
      max-height: calc(100dvh - var(--header-height));
    }
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 52px;
  }

  .hero-inner {
    width: min(100%, 46rem);
    padding: calc(var(--header-height) + var(--space-3)) var(--space-2) var(--space-4);
  }

  .hero--small {
    min-height: clamp(30rem, 68svh, 40rem);
  }

  .hero-sub {
    font-size: clamp(1rem, 3.8vw, 1.12rem);
    line-height: 1.65;
    margin-bottom: var(--space-3);
  }

  .hero--intro h1 {
    font-size: clamp(2.75rem, 13vw, 5rem);
    line-height: 1;
  }

  .section-head {
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }

  .contact-grid {
    gap: var(--space-4);
  }

  .craft-travel {
    margin-top: clamp(3.5rem, 12vw, 5rem);
  }

  .craft-travel-sticky {
    height: 100vh;
    min-height: 0;
  }

  .craft-travel-card {
    height: min(62svh, 520px);
  }

  .craft-travel-card--wide {
    height: min(48svh, 410px);
  }

  .craft-travel-card--tall {
    height: min(66svh, 560px);
  }

  .footer-top {
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: max(var(--space-2), env(safe-area-inset-left));
  }

  .section {
    padding-block: clamp(3.75rem, 18vw, 5rem);
  }

  .section--tight {
    padding-block: clamp(3rem, 14vw, 4rem);
  }

  .hero {
    min-height: auto;
  }

  .hero--intro {
    min-height: 100vh;
  }

  @supports (height: 100svh) {
    .hero--intro {
      min-height: 100svh;
    }
  }

  .hero--small {
    min-height: clamp(28rem, 72svh, 36rem);
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + var(--space-2));
    padding-bottom: var(--space-3);
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9.5vw, 2.4rem);
  }

  .eyebrow {
    max-width: 100%;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }

  .grid,
  .grid--4,
  .projects-grid,
  .gallery-grid,
  .finishes-grid,
  .props {
    grid-template-columns: minmax(0, 1fr);
  }

  .props {
    gap: var(--space-3);
  }

  .form .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

@media (max-width: 360px) {
  body {
    font-size: 15px;
  }

  .hero--intro h1 {
    font-size: clamp(2.45rem, 14vw, 3.25rem);
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding-inline: 1.25em;
  }

  .craft-travel-rail {
    gap: 4rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero--intro,
  .hero--small {
    min-height: 32rem;
  }

  .craft-travel-card,
  .craft-travel-card--wide,
  .craft-travel-card--tall {
    height: min(72svh, 330px);
  }
}

/* ============================================================
   Projects, process and inquiry refinements
   ============================================================ */
.nav-links {
  gap: clamp(.2rem, .8vw, 1rem);
  align-items: center;
}
.logo-svg--simple .logo-royal { fill: var(--brand-gold); }
.logo-svg--simple .logo-lime { fill: var(--brand-lime); }
.nav-links a {
  padding-inline: clamp(.55em, .9vw, 1em);
  font-size: clamp(.72rem, .72vw, .82rem);
}
.nav-links a.nav-cta {
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .78rem;
  min-height: 2.75rem;
  overflow: hidden;
  border: 1px solid rgba(221,187,92,.68);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(221,187,92,.08), rgba(255,255,255,.015));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 8px 24px rgba(0,0,0,.08);
  color: #f7dfa0;
  padding: .68em .74em .68em 1.3em;
  letter-spacing: .14em;
  opacity: 1;
  transition:
    color .42s cubic-bezier(.22,.75,.24,1),
    border-color .42s ease,
    box-shadow .42s ease,
    transform .42s cubic-bezier(.22,.75,.24,1),
    letter-spacing .4s cubic-bezier(.25,.46,.45,.94);
}
.nav-links a.nav-cta::before {
  content: "";
  inset: -1px;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(112deg, #b98729 0%, #e7c96f 48%, #f3dfa0 62%, #c29232 100%);
  opacity: 1;
  transform: translate3d(-102%,0,0);
  transition: transform .62s cubic-bezier(.2,.78,.2,1);
}
.nav-links a.nav-cta::after {
  content: "";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.72rem;
  height: 1.72rem;
  border: 1px solid rgba(247,223,160,.34);
  border-radius: 50%;
  background-color: rgba(221,187,92,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 12 12 4M6 4h6v6%27 fill=%27none%27 stroke=%27%23f7dfa0%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: .92rem .92rem;
  color: #f7dfa0;
  font-size: .9rem;
  line-height: 1;
  letter-spacing: 0;
  transition:
    transform .48s cubic-bezier(.22,.75,.24,1),
    color .35s ease,
    background .35s ease,
    border-color .35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a.nav-cta:hover {
    color: #241b13;
    border-color: rgba(243,223,160,.92);
    box-shadow: 0 12px 34px rgba(0,0,0,.2), 0 0 0 1px rgba(243,223,160,.1);
    letter-spacing: .14em;
    transform: translateY(-2px);
  }
  .nav-links a.nav-cta:hover::before { transform: translate3d(0,0,0); }
  .nav-links a.nav-cta:hover::after {
    color: #241b13;
    background-color: rgba(36,27,19,.11);
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 12 12 4M6 4h6v6%27 fill=%27none%27 stroke=%27%23241b13%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
    border-color: rgba(36,27,19,.2);
    transform: translate3d(.13rem,-.13rem,0);
  }
}

.nav-links a.nav-cta:focus-visible {
  color: #241b13;
  border-color: #f3dfa0;
  outline: 2px solid #f3dfa0;
  outline-offset: 4px;
  letter-spacing: .14em;
}
.nav-links a.nav-cta:focus-visible::before { transform: translate3d(0,0,0); }
.nav-links a.nav-cta:focus-visible::after {
  color: #241b13;
  background-color: rgba(36,27,19,.11);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 12 12 4M6 4h6v6%27 fill=%27none%27 stroke=%27%23241b13%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  border-color: rgba(36,27,19,.2);
}
.nav-links a.nav-cta:active { transform: translateY(0) scale(.985); }

.process-section { background: #eee5d7; }
.process-head {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .75fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.process-head h2 { max-width: 760px; font-size: clamp(2.5rem, 5.2vw, 5.25rem); line-height: .98; }
.process-head > p { max-width: 32rem; margin: 0; }
.process-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(42,33,25,.25); }
.process-list li { position: relative; padding: 2rem clamp(1rem, 2vw, 2rem) 0 0; border-right: 1px solid rgba(42,33,25,.15); min-height: 15rem; }
.process-list li:not(:first-child) { padding-left: clamp(1rem, 2vw, 2rem); }
.process-list li:last-child { border-right: 0; }
.process-number { display: block; color: var(--accent); font-size: .72rem; letter-spacing: .22em; margin-bottom: 2.8rem; }
.process-list h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.process-list p { font-size: .95rem; line-height: 1.65; }

.finish-uses { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.finish-uses span { border: 1px solid rgba(42,33,25,.18); border-radius: 999px; padding: .38rem .7rem; font-size: .67rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-ink-soft) 50%), linear-gradient(135deg, var(--color-ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.projects-page, .project-detail { background: #f1eadf; }
.projects-hero { min-height: 78vh; padding: calc(var(--header-height) + 8rem) 0 6rem; background: #17130f; color: var(--color-white); display: flex; align-items: flex-end; }
.projects-hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(18rem, .62fr); align-items: end; gap: clamp(3rem, 8vw, 9rem); }
.projects-hero h1 { color: var(--color-white); font-size: clamp(4rem, 8.7vw, 9rem); line-height: .82; letter-spacing: -.045em; margin: 0; }
.projects-hero-note { border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.4rem; }
.projects-hero-note > span, .project-location { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-gold); margin-bottom: 1.2rem; }
.projects-hero-note p { color: rgba(255,255,255,.68); margin: 0; }
.project-index { padding: clamp(5rem, 9vw, 10rem) max(var(--space-3), calc((100vw - 1440px)/2)); display: grid; gap: clamp(6rem, 12vw, 13rem); }
.project-card { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .68fr); align-items: center; gap: clamp(2.5rem, 7vw, 8rem); }
.project-card--compact {
  width: min(78%, 68rem);
  grid-template-columns: minmax(0, 1.18fr) minmax(15rem, .72fr);
  justify-self: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.project-card--compact .project-card-image { aspect-ratio: 1.3 / 1; }
.project-card--compact .project-card-copy h2 { font-size: clamp(2.2rem, 3.8vw, 4.1rem); }
.project-card--reverse .project-card-image { order: 2; }
.project-card--reverse .project-card-copy { order: 1; padding-left: clamp(0rem, 6vw, 6rem); }
@media (min-width: 981px) {
  .project-card--reverse.project-card--mirror { grid-template-columns: minmax(18rem, .68fr) minmax(0, 1.55fr); }
  .project-card--reverse.project-card--mirror .project-card-copy { padding-left: 0; }
}
.project-card-image { overflow: hidden; background: #d5c8b4; aspect-ratio: 1.38 / 1; }
.project-card--wide .project-card-image { aspect-ratio: 1.55 / 1; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.72,.2,1), filter .7s ease; }
.project-card:hover .project-card-image img { transform: scale(1.035); filter: saturate(1.04); }
.project-card-copy h2 { font-size: clamp(2.6rem, 5vw, 5.7rem); line-height: .92; margin-bottom: 1.5rem; }
.project-card-copy p { max-width: 34rem; }
.project-link { display: inline-flex; gap: .8rem; align-items: center; margin-top: 1.4rem; padding-bottom: .35rem; border-bottom: 1px solid currentColor; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.project-link i { font-style: normal; transition: transform .35s ease; }
.project-card:hover .project-link i { transform: translate(.2rem,-.2rem); }
.project-closing { min-height: 65vh; padding: 7rem var(--space-3); text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #17130f; color: white; }
.project-closing h2 { color: white; font-size: clamp(3rem, 7vw, 7rem); max-width: 980px; line-height: .92; }
.project-closing p { color: rgba(255,255,255,.66); max-width: 35rem; }
.project-closing .btn { margin-top: 1.5rem; }

.project-detail-hero { position: relative; height: 100svh; min-height: 42rem; overflow: hidden; background: #17130f; }
.project-detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,8,.15) 30%, rgba(14,11,8,.8) 100%); }
.project-detail-hero > img { width: 100%; height: 100%; object-fit: cover; }
.project-detail-title { position: absolute; z-index: 2; left: max(var(--space-3), calc((100vw - var(--max-width))/2)); right: var(--space-3); bottom: clamp(3rem, 8vh, 7rem); color: white; }
.project-detail-title > a { display: inline-block; color: rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.4); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 2rem; }
.project-detail-title .eyebrow { display: block; color: var(--brand-gold); }
.project-detail-title h1 { color: white; font-size: clamp(4rem, 9vw, 9rem); line-height: .84; margin: 0; max-width: 1000px; letter-spacing: -.04em; }
.project-story { padding-top: clamp(5rem, 11vw, 11rem); padding-bottom: clamp(5rem, 11vw, 11rem); display: grid; grid-template-columns: minmax(14rem, .62fr) minmax(0, 1.38fr); gap: clamp(3rem, 9vw, 10rem); }
.project-story-meta { display: grid; align-content: start; }
.project-story-meta span { padding: .9rem 0; border-bottom: 1px solid rgba(42,33,25,.2); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.project-story h2 { font-size: clamp(3rem, 6.4vw, 6.5rem); line-height: .92; max-width: 850px; }
.project-story p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 760px; }
.project-gallery-wrap { padding: 0 max(1rem, 2.5vw) clamp(5rem, 10vw, 10rem); }
.project-photo-grid.gallery-wall { column-gap: max(1rem, 2vw); }
.project-photo-grid.gallery-wall .gallery-card { margin-bottom: max(1rem, 2vw); }
.project-photo-grid .gallery-card::after, .project-photo-grid .gallery-card-title { display: none; }
.project-next { padding-top: 3rem; padding-bottom: clamp(5rem, 10vw, 9rem); border-top: 1px solid rgba(42,33,25,.2); display: flex; justify-content: space-between; gap: 2rem; }
.project-next a { font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 2.6rem); }
.project-next a:last-child { text-align: right; }
.project-next span { display: block; font-family: var(--font-body); color: var(--accent); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }

@media (max-width: 980px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li { border-bottom: 1px solid rgba(42,33,25,.15); }
  .projects-hero-grid, .project-card { grid-template-columns: 1fr; }
  .project-card--compact { width: min(88%, 46rem); }
  .projects-hero-note { max-width: 36rem; }
  .project-card--reverse .project-card-image, .project-card--reverse .project-card-copy { order: initial; }
  .project-card--reverse .project-card-copy { padding-left: 0; }
  .project-card-copy { max-width: 48rem; }
}

@media (max-width: 760px) {
  .nav-links a.nav-cta {
    width: 100%;
    min-height: 3.65rem;
    margin-top: .55rem;
    padding: .75rem .8rem .75rem 1.2rem;
    justify-content: space-between;
    border-color: rgba(221,187,92,.55);
  }
  .nav-links a.nav-cta::before { content: none; }
  .nav-links a.nav-cta:focus-visible { color: #f7dfa0; }
  .nav-links a.nav-cta:focus-visible::after {
    color: #f7dfa0;
    background-color: rgba(221,187,92,.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 12 12 4M6 4h6v6%27 fill=%27none%27 stroke=%27%23f7dfa0%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
    border-color: rgba(247,223,160,.34);
  }
  .process-head, .project-story { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li:not(:first-child) { padding: 1.6rem 0 2rem; min-height: 0; border-right: 0; }
  .process-number { margin-bottom: 1.5rem; }
  .projects-hero { min-height: 100svh; padding-top: calc(var(--header-height) + 5rem); }
  .projects-hero h1 { font-size: clamp(3.6rem, 19vw, 6.2rem); }
  .project-index { padding-inline: var(--space-2); gap: 6rem; }
  .project-card { gap: 2rem; }
  .project-card--compact { width: calc(100% - 1.5rem); }
  .project-card-image, .project-card--wide .project-card-image { aspect-ratio: 4 / 3; }
  .project-card--compact .project-card-image { aspect-ratio: 3 / 2; }
  .project-detail-hero { min-height: 36rem; }
  .project-detail-title { left: var(--space-2); right: var(--space-2); bottom: 3rem; }
  .project-detail-title h1 { font-size: clamp(3.4rem, 17vw, 6rem); }
  .project-story { padding-inline: var(--space-2); }
  .project-photo-grid.gallery-wall { column-count: 1; }
  .project-next { flex-direction: column; padding-inline: var(--space-2); }
  .project-next a:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a.nav-cta,
  .nav-links a.nav-cta::before,
  .nav-links a.nav-cta::after {
    transition-duration: .01ms !important;
  }
  .nav-links a.nav-cta:hover { transform: none; }
}
