/* ============================================
   Suraj Mishra Architects
   Warm black + gold aesthetic
   ============================================ */

:root {
  --bg: #0c0b0a;          /* near-black, warm */
  --bg-deep: #000000;     /* pure black — loader, feature */
  --surface: #141210;     /* raised panels */
  --ink: #f3ede1;         /* warm off-white — primary text */
  --ink-soft: #9a9081;    /* muted body text */
  --line: rgba(200, 161, 90, 0.18);   /* gold-tinted hairline */
  --line-soft: rgba(243, 237, 225, 0.10);
  --gold: #c8a15a;        /* metallic gold */
  --gold-soft: #e6cf9c;   /* highlight */
  --white: #ffffff;
  --gold-grad: linear-gradient(115deg, #9c7738 0%, #e8d29a 38%, #c8a15a 62%, #8a6a35 100%);

  --f-serif: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;  /* architectural display grotesque */
  --f-sans: "Inter", -apple-system, sans-serif;                     /* body / UI */
  --f-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace; /* technical numerals */
  --f-script: "Cormorant Garamond", Georgia, serif;                 /* signature accent only */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
em, i, cite, dfn, address, var, blockquote, q { font-style: normal; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ---------- Lenis smooth scroll ---------- */
/* When Lenis is active it drives scroll itself, so native smooth must yield. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Never let a headline or media push past the viewport on small screens */
h1, h2, h3, p, a, blockquote, li { overflow-wrap: break-word; }
.hero__title, .pitch__title, .invite__title, .page-hero__title, .contact__title { overflow-wrap: break-word; }

::selection { background: var(--gold); color: #000; }

/* Reusable gold text */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ease);
}
.loader.done { transform: translateY(-100%); }
.loader__inner { text-align: center; }
/* Transparent PNG floats on the loader's black backdrop. */
.loader__logo {
  display: block; margin: 0 auto 1.8rem;
  width: clamp(280px, 62vw, 520px); height: auto;
  filter: contrast(1.08) saturate(1.12) brightness(1.06);
}
.loader__bar {
  width: 180px; height: 1px; background: rgba(255,255,255,0.14);
  margin: 0 auto; overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0; background: var(--gold);
  transition: width 1.6s var(--ease);
}
.loader.fill .loader__bar span { width: 100%; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 999;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease);
  mix-blend-mode: difference;
}
.cursor.hover { width: 46px; height: 46px; background: var(--white); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1.6rem var(--gutter);
  transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* The blurred bar lives on a pseudo-element so .nav never becomes a containing
   block for the fixed mobile menu (backdrop-filter would otherwise clip it). */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(12, 11, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .5s var(--ease);
}
.nav.scrolled { padding: 1rem var(--gutter); }
.nav.scrolled::before { opacity: 1; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
}
.nav__logo {
  display: inline-flex; align-items: center; line-height: 0;
}
/* logo-mark.png is the signature cropped tight to its ink and rendered at 2x,
   so every pixel of the box is artwork — sizing by WIDTH gives the wordmark a
   predictable footprint instead of letting empty canvas eat the height budget. */
.nav__logo-img {
  width: clamp(168px, 16vw, 240px); height: auto; display: block;
  transition: width .5s var(--ease), opacity .4s var(--ease);
  /* Gentle lift only — the mark is large enough now to read on its own. The
     soft dark shadow keeps it separated from bright patches of the hero image. */
  filter:
    contrast(1.1) saturate(1.12) brightness(1.06)
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}
.nav.scrolled .nav__logo-img { width: clamp(142px, 13vw, 194px); }
.nav__logo:hover .nav__logo-img { opacity: 0.82; }
.nav__links { display: flex; gap: 2.4rem; }
.nav__links a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 400; position: relative; padding: 0.2rem 0; color: var(--ink);
}
.nav__links a.is-active { color: var(--gold); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
/* Padding — not the bars — supplies the tap target. Two 1.5px rules with a 6px
   gap are only 9px tall on their own; the negative margin pulls the button back
   so the bars stay optically flush with the gutter. */
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; gap: 6px;
  padding: 1.1rem 0.7rem; margin: -1.1rem -0.7rem -1.1rem 0;
}
.nav__toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: .4s var(--ease); }
.nav__contact { display: none; }  /* only appears inside the mobile menu */

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  /* Top padding reserves room for the fixed nav so that on short/landscape
     viewports the bottom-aligned content can't ride up under the logo. */
  padding: clamp(7rem, 16vh, 9rem) var(--gutter) clamp(2.5rem, 6vh, 5rem);
  overflow: hidden;
}
/* isolation:isolate contains the child mix-blend-mode layers to this element,
   so they compose only against the hero image and can never leak above the
   content (an iOS/mobile Safari blend + negative-z-index bug). */
.hero__media { position: absolute; inset: 0; z-index: -1; isolation: isolate; }
.hero__media img { transform: scale(1.15); transition: transform 2s var(--ease); filter: grayscale(0.35) brightness(0.72); }
.loaded .hero__media img { transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,5,4,0.55) 0%, rgba(6,5,4,0.25) 42%, rgba(6,5,4,0.85) 100%),
    radial-gradient(120% 80% at 50% 120%, rgba(200,161,90,0.14), transparent 60%);
}
/* Own stacking context above the media layers. The effect layers (sky, sun,
   weather, sunbeam) use mix-blend-mode; on iOS/mobile Safari a blended element
   inside a negative-z-index parent can composite *above* static siblings and
   cover the text. An explicit positive z-index here keeps content on top. */
.hero__content { position: relative; z-index: 2; color: var(--ink); max-width: 1100px; }
.hero__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 400; margin-bottom: 1.6rem; color: var(--gold);
}
.hero__title {
  font-family: var(--f-serif); font-weight: 300;
  font-size: clamp(3rem, 11vw, 9.5rem); line-height: 0.95;
  letter-spacing: -0.01em; margin-bottom: 2.6rem;
  /* Now that lines aren't hardcoded, even out the rag instead of leaving a
     one-word last line. */
  text-wrap: balance;
}
.hero__title em {
  font-family: inherit; font-style: normal; font-weight: inherit;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The heading text flows and wraps naturally, so it rises into place as one
   block. (The old per-line clipping mask required hardcoded <span class="line">
   breaks in the markup, which forced a fixed number of lines at every width
   and clipped any descender that reached past the 0.95 line box.) */
.hero__title {
  opacity: 0; transform: translateY(0.3em);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.loaded .hero__title { opacity: 1; transform: none; }

.hero__meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.hero__meta p { max-width: 34ch; font-size: 0.95rem; color: var(--ink-soft); font-weight: 300; }

.btn-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; color: var(--gold);
}
.btn-link svg { transition: transform .4s var(--ease); }
.btn-link:hover svg { transform: translateX(6px); }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 6vh, 5rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  color: var(--ink);
}
.hero__scroll span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; writing-mode: vertical-rl; opacity: 0.7; }
.hero__scroll-line { width: 1px; height: 60px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold); animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60%,100% { top: 100%; } }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--surface); color: var(--gold);
  padding: 1.4rem 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.marquee__track { display: inline-flex; align-items: center; gap: 2.4rem; animation: marquee 32s linear infinite; }
.marquee__track span {
  font-family: var(--f-serif); font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  font-weight: 400; font-style: normal; letter-spacing: 0.01em;
}
.marquee__track i { font-style: normal; opacity: 0.5; font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro { padding: clamp(5rem, 12vh, 10rem) var(--gutter); }
.intro__grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(2rem, 6vw, 6rem); }
.intro__label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.idx { color: var(--gold); font-weight: 500; }
.intro__lead {
  font-family: var(--f-serif); font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.22;
  letter-spacing: -0.01em; margin-bottom: 2.8rem; color: var(--ink);
}
.intro__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; max-width: 720px; }
.intro__cols p { color: var(--ink-soft); font-weight: 300; font-size: 0.98rem; }
.intro .btn-link { color: var(--gold); }

/* ---------- Stats ---------- */
.stats { padding: 0 var(--gutter) clamp(4rem, 10vh, 8rem); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { background: var(--bg); padding: 2.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.stat__num {
  font-family: var(--f-serif); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 300; line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Section head ---------- */
.section-head { padding: 0 var(--gutter); margin-bottom: clamp(2.5rem, 6vh, 4.5rem); display: flex; flex-direction: column; gap: 1.6rem; }
.section-head__label { display: flex; gap: 1rem; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.section-head__title { font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.01em; color: var(--ink); }

/* ---------- Work ---------- */
.work { padding: clamp(4rem, 10vh, 8rem) 0; }
.work--full { padding-top: clamp(2rem, 5vh, 4rem); }
.work__list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 0 var(--gutter); }
.project__inner { display: block; }
.project__media { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--surface); }
/* WebGL liquid-ripple overlay (fades in on hover, sits over the photo) */
.ripple-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none; z-index: 1;
}
.project:nth-child(even) { margin-top: clamp(0rem, 8vw, 6rem); }
.project__media img { transform: scale(1.05); transition: transform 1.2s var(--ease); filter: brightness(0.9); }
.project__inner:hover .project__media img { transform: scale(1); filter: brightness(1); }
.project__info { padding-top: 1.4rem; }
.project__top { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; }
.project__top h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--ink); }
.project__year { font-size: 0.82rem; color: var(--gold); letter-spacing: 0.05em; }
.project__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; }
.project__arrow { font-size: 1.1rem; color: var(--gold); transition: transform .4s var(--ease); }
.project__inner:hover .project__arrow { transform: translate(4px, -4px); }
.work__more { display: flex; justify-content: center; margin-top: clamp(3rem, 7vh, 5rem); }
.work__empty { display: none; text-align: center; color: var(--ink-soft); padding: 4rem var(--gutter); font-family: var(--f-script); font-style: normal; font-size: 1.5rem; }
.work__empty.show { display: block; }

.btn-outline {
  display: inline-block; border: 1px solid var(--gold); border-radius: 100px;
  padding: 1rem 2.4rem; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-outline--light { border-color: var(--gold); color: var(--gold); }
.btn-outline--light:hover { background: var(--gold); color: #000; }

/* ---------- Feature ---------- */
.feature { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: clamp(2rem, 6vh, 5rem) 0; }
.feature__media { position: absolute; inset: 0; z-index: -1; }
.feature__media img { filter: grayscale(0.4) brightness(0.7); }
.feature__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,5,4,0.55), rgba(6,5,4,0.7)); }
.feature__quote { text-align: center; color: var(--ink); padding: 0 var(--gutter); }
.feature__quote p { font-family: var(--f-script); font-weight: 500; font-style: normal; font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1.15; }
.feature__quote footer { margin-top: 2rem; font-family: var(--f-sans); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ---------- Services ---------- */
.services { padding: clamp(4rem, 10vh, 8rem) 0; }
.services__list { padding: 0 var(--gutter); border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 4.5rem minmax(min-content, 1fr) minmax(0, 1.4fr); gap: clamp(1rem, 4vw, 4rem); align-items: baseline; padding: clamp(2rem, 4vh, 3rem) 0; border-bottom: 1px solid var(--line); transition: padding-left .5s var(--ease); }
.service:hover { padding-left: 1.2rem; }
.service__num { font-size: 0.82rem; color: var(--gold); letter-spacing: 0.1em; }
.service h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.08; color: var(--ink); text-wrap: balance; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.service p { color: var(--ink-soft); font-weight: 300; max-width: 44ch; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(9rem, 20vh, 14rem) var(--gutter) clamp(2.5rem, 6vh, 4rem); }
.page-hero__inner { max-width: 1100px; }
.page-hero__eyebrow { font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.page-hero__title {
  font-family: var(--f-serif); font-weight: 300;
  font-size: clamp(3rem, 12vw, 9rem); line-height: 0.95; letter-spacing: -0.01em;
  margin-bottom: 2rem;
  text-wrap: balance;
}
.page-hero__title em {
  font-family: inherit; font-style: normal; font-weight: inherit;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Same as .hero__title: natural wrapping, revealed as one block. */
.page-hero__title {
  opacity: 0; transform: translateY(0.3em);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.loaded .page-hero__title { opacity: 1; transform: none; }
.page-hero__lead { max-width: 46ch; color: var(--ink-soft); font-weight: 300; font-size: 1.05rem; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4rem); }
.filter {
  background: none; border: 1px solid var(--line); border-radius: 100px; cursor: pointer;
  padding: 0.6rem 1.5rem; font-family: var(--f-sans); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--gold); }
.filter.is-active { background: var(--gold); border-color: var(--gold); color: #000; }

/* ---------- CTA strip ---------- */
.cta-strip { padding: clamp(4rem, 12vh, 9rem) var(--gutter); }
.cta-strip__inner {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 8vh, 6rem) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-strip__inner h2 {
  font-family: var(--f-serif); font-weight: 300; letter-spacing: -0.01em;
  font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; color: var(--ink);
}

/* ---------- Contact ---------- */
.contact { padding: clamp(5rem, 14vh, 11rem) var(--gutter); background: var(--bg-deep); }
.contact__eyebrow { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.contact__title {
  font-family: var(--f-serif); font-weight: 300; font-size: clamp(3rem, 12vw, 9rem);
  line-height: 1; letter-spacing: -0.02em; margin-bottom: clamp(3rem, 8vh, 6rem);
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact__title a { display: inline-flex; align-items: flex-start; gap: 0.4rem; }
.contact__arrow { font-size: 0.4em; transition: transform .4s var(--ease); }
.contact__title a:hover .contact__arrow { transform: translate(8px, -8px); }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; border-top: 1px solid var(--line); padding-top: 2.6rem; }
.contact__k { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.contact__grid p { font-weight: 300; line-height: 1.9; color: var(--ink-soft); }
.contact__grid a { position: relative; color: var(--ink); }
.contact__grid a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .4s var(--ease); }
.contact__grid a:hover::after { width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: var(--ink); padding: clamp(3rem, 8vh, 5rem) var(--gutter) 2.4rem; border-top: 1px solid var(--line); }
.footer__top-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem;
  padding-bottom: clamp(2.5rem, 6vh, 4rem); border-bottom: 1px solid var(--line-soft);
  margin-bottom: 2rem;
}
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a { color: var(--ink-soft); font-size: 0.9rem; transition: color .3s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--gold); }
.footer__col p { color: var(--ink-soft); font-weight: 300; font-size: 0.9rem; line-height: 1.7; }
.footer__k { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
/* Transparent PNG on the black footer. */
.footer__logo {
  display: block; width: clamp(210px, 24vw, 300px); height: auto;
  filter: contrast(1.08) saturate(1.12) brightness(1.06);
}
.footer__tag { color: var(--ink-soft); font-weight: 300; font-size: 0.9rem; margin-top: 0.6rem; max-width: 26ch; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; }
.footer__meta { display: flex; gap: 2rem; align-items: center; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-soft); flex-wrap: wrap; }
.footer__top { text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }

/* ---------- Solid gold button ---------- */
.btn-solid {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--gold-grad); color: #14100a; border: none; border-radius: 100px;
  padding: 1.05rem 2.3rem; font-family: var(--f-sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 10px 40px -12px rgba(200,161,90,0.5);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -12px rgba(200,161,90,0.65); }
.btn-solid svg { transition: transform .4s var(--ease); }
.btn-solid:hover svg { transform: translateX(6px); }
.btn-solid--lg { padding: 1.25rem 2.8rem; font-size: 0.85rem; }

/* ---------- Pitch (dream home hook) ---------- */
.pitch {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem); padding: clamp(3rem, 9vh, 7rem) var(--gutter);
}
.pitch__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface); }
.pitch__media img { transform: scale(1.06); transition: transform 1.4s var(--ease); filter: grayscale(0.35) brightness(0.9); }
.pitch__media:hover img { transform: scale(1); filter: grayscale(0) brightness(1); }
.pitch__badge {
  position: absolute; left: 1.4rem; bottom: 1.4rem;
  background: rgba(12,11,10,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--gold);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.6rem 1.1rem; border-radius: 100px;
}
.pitch__eyebrow { font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.pitch__title {
  font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 1.8rem;
}
.pitch__title em {
  font-family: inherit; font-style: normal; font-weight: inherit;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pitch__lead { color: var(--ink-soft); font-weight: 300; font-size: 1.05rem; max-width: 48ch; margin-bottom: 2rem; }
.pitch__list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 2.4rem; }
.pitch__list li { display: flex; gap: 0.9rem; align-items: baseline; color: var(--ink); font-weight: 300; font-size: 0.98rem; }
.pitch__list li span { color: var(--gold); font-size: 0.8rem; }

/* ---------- Pillars (why us) ---------- */
.pillars { padding: clamp(4rem, 10vh, 8rem) 0; }
.pillars__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 var(--gutter);
}
.pillar { background: var(--bg); padding: 2.6rem clamp(1.4rem, 2vw, 2rem); display: flex; flex-direction: column; gap: 1rem; transition: background .5s var(--ease); }
.pillar:hover { background: var(--surface); }
.pillar__num { font-family: var(--f-serif); font-size: 1.4rem; color: var(--gold); }
.pillar h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.1; color: var(--ink); }
.pillar p { color: var(--ink-soft); font-weight: 300; font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testi { padding: clamp(4rem, 10vh, 8rem) 0; }
.testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.5vw, 2rem); padding: 0 var(--gutter); }
.testi__card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  padding: 2.6rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.6rem;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.testi__card:hover { transform: translateY(-6px); border-color: var(--gold); }
.testi__mark { font-family: var(--f-serif); font-size: 4rem; line-height: 0.5; color: var(--gold); opacity: 0.5; height: 1.2rem; }
.testi__card blockquote { font-family: var(--f-script); font-style: normal; font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.4; color: var(--ink); }
.testi__card figcaption { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.25rem; }
.testi__card figcaption strong { font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.testi__card figcaption span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }

/* ---------- Cinematic invite / CTA ---------- */
.invite { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.invite__media { position: absolute; inset: 0; z-index: -1; }
.invite__media img { filter: grayscale(0.35) brightness(0.55); transform: scale(1.05); }
.invite__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(6,5,4,0.86) 0%, rgba(6,5,4,0.55) 55%, rgba(6,5,4,0.35) 100%),
    radial-gradient(120% 90% at 0% 100%, rgba(200,161,90,0.18), transparent 55%);
}
.invite__content { padding: 0 var(--gutter); max-width: 920px; }
.invite__eyebrow { font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.invite__title {
  font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.02; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 1.8rem;
}
.invite__title em {
  font-family: inherit; font-style: normal; font-weight: inherit;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.invite__note { color: var(--ink-soft); font-weight: 300; font-size: 1.05rem; max-width: 52ch; margin-bottom: 2.6rem; }
.invite__actions { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }

/* ---------- Wide media ---------- */
.wide-media { height: clamp(42vh, 60vh, 70vh); overflow: hidden; }
.wide-media img { filter: grayscale(0.3) brightness(0.85); }
.wide-media--short { height: clamp(32vh, 42vh, 50vh); }

/* ---------- Process ---------- */
.process { padding: clamp(4rem, 10vh, 8rem) 0; }
/* The list owns the tracks so every row's title/description edge lines up;
   min-content on the title track guarantees the longest word never breaks. */
.process__list { padding: 0 var(--gutter); border-top: 1px solid var(--line); display: grid; grid-template-columns: 4.5rem minmax(min-content, 17ch) minmax(0, 1fr); column-gap: clamp(1rem, 4vw, 4rem); }
.process__row { grid-column: 1 / -1; display: grid; grid-template-columns: 4.5rem minmax(min-content, 17ch) minmax(0, 1fr); grid-template-columns: subgrid; column-gap: clamp(1rem, 4vw, 4rem); align-items: baseline; padding: clamp(2rem, 4vh, 3rem) 0; border-bottom: 1px solid var(--line); transition: padding-left .5s var(--ease); }
.process__row:hover { padding-left: 1.2rem; }
.process__num { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.1em; }
.process__row h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.18; color: var(--ink); text-wrap: balance; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.process__row p { color: var(--ink-soft); font-weight: 300; max-width: 52ch; }

/* ---------- Team ---------- */
.team { padding: clamp(4rem, 10vh, 8rem) 0; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); padding: 0 var(--gutter); }
.member__media { aspect-ratio: 3/4; overflow: hidden; background: var(--surface); margin-bottom: 1.2rem; }
.member__media img { transform: scale(1.05); transition: transform 1.2s var(--ease), filter .8s var(--ease); filter: grayscale(0.6) brightness(0.85); }
.member:hover .member__media img { transform: scale(1); filter: grayscale(0) brightness(1); }
.member figcaption h3 { font-family: var(--f-serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.member figcaption span { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* ---------- Awards ---------- */
.awards { padding: clamp(4rem, 10vh, 8rem) 0; }
.awards__list { list-style: none; padding: 0 var(--gutter); border-top: 1px solid var(--line); }
.award { display: grid; grid-template-columns: 5.5rem minmax(min-content, 1fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.award__year { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.06em; }
.award__name { font-family: var(--f-serif); font-size: clamp(1.1rem, 2.4vw, 1.6rem); line-height: 1.2; color: var(--ink); text-wrap: balance; overflow-wrap: normal; word-break: keep-all; }
.award__proj { color: var(--ink-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; text-align: right; }

/* ---------- Services detail (svc) ---------- */
.svc { padding: clamp(2rem, 5vh, 4rem) 0 clamp(4rem, 10vh, 8rem); }
.svc__block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2.5rem, 6vh, 5rem) var(--gutter); }
.svc__media { aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.svc__media img { transform: scale(1.04); transition: transform 1.3s var(--ease); filter: grayscale(0.4) brightness(0.88); }
.svc__block:hover .svc__media img { transform: scale(1); }
.svc__block--rev .svc__media { order: 2; }
.svc__num { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.14em; }
.svc__body h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; margin: 0.8rem 0 1.2rem; color: var(--ink); }
.svc__body p { color: var(--ink-soft); font-weight: 300; max-width: 48ch; margin-bottom: 1.8rem; }
.svc__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.svc__tags li { border: 1px solid var(--line); border-radius: 100px; padding: 0.4rem 1rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Contact page + form ---------- */
.contact-page { padding: clamp(2rem, 5vh, 4rem) var(--gutter) clamp(4rem, 10vh, 8rem); }
.contact-page__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.cform { display: flex; flex-direction: column; gap: 1.6rem; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.field__opt { text-transform: none; letter-spacing: 0.02em; opacity: 0.55; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 0.9rem 1rem; color: var(--ink); font-family: var(--f-sans); font-size: 0.95rem;
  transition: border-color .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(154,144,129,0.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field textarea { resize: vertical; }
/* iOS Safari zooms the viewport whenever a focused field is under 16px — and it
   never zooms back out. Touch input gets exactly 16px; pointer devices keep the
   smaller, more refined size. */
@media (pointer: coarse) {
  .field input, .field select, .field textarea { font-size: 16px; }
}
.btn-submit {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--gold); color: #000; border: none; cursor: pointer; border-radius: 100px;
  padding: 1rem 2.4rem; font-family: var(--f-sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-submit svg { transition: transform .4s var(--ease); }
.btn-submit:hover svg { transform: translateX(6px); }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -12px rgba(200,161,90,0.6); }
.cform__note { color: var(--gold); font-size: 0.9rem; }
.contact-aside { display: flex; flex-direction: column; gap: 2rem; }
.contact-aside__block p { color: var(--ink-soft); font-weight: 300; line-height: 1.8; }
.contact-aside__block a { color: var(--ink); }
.contact-aside__block a:hover { color: var(--gold); }

/* ---------- Interior pages — responsive ---------- */
@media (max-width: 900px) {
  .svc__block, .contact-page__grid { grid-template-columns: 1fr; }
  .svc__block--rev .svc__media { order: 0; }
  .process__list { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .process__row { grid-template-columns: 3.5rem minmax(0, 1fr); grid-template-columns: subgrid; row-gap: 0.6rem; }
  .process__row p { grid-column: 2; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .award { grid-template-columns: 4.5rem minmax(0, 1fr); row-gap: 0.5rem; }
  .award__proj { grid-column: 2; text-align: left; }
  .cform__row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team__grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro__cols { grid-template-columns: 1fr; gap: 1.4rem; }
  /* Three stats in two columns leaves an empty cell, which reads as a hole in
     the 1px hairline grid — let the last one run the full width. */
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid .stat:last-child { grid-column: 1 / -1; }
  .work__list { grid-template-columns: 1fr; }
  .project:nth-child(even) { margin-top: 0; }
  .service { grid-template-columns: 3rem minmax(0, 1fr); row-gap: 0.6rem; }
  .service p { grid-column: 2; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }

  .pitch { grid-template-columns: 1fr; }
  .pitch__media { max-height: 60vh; }
  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .testi__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* ---- Mobile menu: fullscreen panel ---- */
  .nav__links {
    position: fixed; inset: 0; z-index: 105;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 0.4rem; counter-reset: navi;
    padding: 6rem var(--gutter) 2.5rem;
    background:
      radial-gradient(120% 70% at 50% 118%, rgba(200,161,90,0.16), transparent 60%),
      #0c0b0a;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .45s var(--ease), visibility .45s var(--ease);
  }
  .nav__links.open { opacity: 1; visibility: visible; pointer-events: auto; }

  .nav__links a {
    display: flex; align-items: baseline; gap: 1rem; width: 100%;
    font-family: var(--f-serif); font-weight: 300; font-size: clamp(2rem, 11vw, 3rem);
    letter-spacing: -0.01em; text-transform: none; padding: 0.35rem 0;
    border-bottom: 1px solid var(--line-soft);
    /* staggered entrance */
    opacity: 0; transform: translateY(18px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
  }
  .nav__links a::before {
    counter-increment: navi; content: "0" counter(navi);
    font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em;
    color: var(--gold); opacity: 0.7; transform: translateY(-0.35em);
  }
  .nav__links a::after { display: none; }               /* drop the desktop underline */
  .nav__links a.is-active { color: var(--gold); }
  .nav__links.open a { opacity: 1; transform: translateY(0); }
  .nav__links.open a:nth-child(1) { transition-delay: .08s; }
  .nav__links.open a:nth-child(2) { transition-delay: .14s; }
  .nav__links.open a:nth-child(3) { transition-delay: .20s; }
  .nav__links.open a:nth-child(4) { transition-delay: .26s; }
  .nav__links.open a:nth-child(5) { transition-delay: .32s; }

  /* Contact footer inside the menu */
  .nav__contact {
    display: flex; flex-direction: column; gap: 0.4rem;
    position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2.5rem;
    padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
    opacity: 0; transform: translateY(18px);
    transition: opacity .5s var(--ease) .4s, transform .5s var(--ease) .4s;
  }
  .nav__links.open .nav__contact { opacity: 1; transform: translateY(0); }
  .nav__contact a {
    display: inline-flex; width: auto; padding: 0; border: none;
    font-family: var(--f-mono); font-weight: 400; font-size: 0.82rem;
    letter-spacing: 0.03em; text-transform: none; color: var(--ink-soft);
  }
  .nav__contact a::before, .nav__contact a::after { content: none; display: none; }
  .nav__contact a:first-child { color: var(--gold-soft); }

  /* Logo + toggle sit ABOVE the fullscreen overlay so they never disappear */
  .nav__logo { position: relative; z-index: 110; }
  .nav__toggle { display: flex; position: relative; z-index: 110; }
  .nav__toggle.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  /* Lock page scroll while the menu is open. `overflow: hidden` alone is not
     enough: html carries overflow-x:hidden, so body's overflow no longer
     propagates to the viewport and the page keeps scrolling behind the overlay.
     Pinning body instead takes it out of flow entirely; script.js parks the
     scroll offset in `top` and restores it on close. */
  body.menu-open {
    position: fixed; left: 0; right: 0; width: 100%; overflow: hidden;
  }
  .footer__top-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .pillars__grid { grid-template-columns: 1fr; }
  .invite__actions { flex-direction: column; align-items: flex-start; }
  .invite__actions .btn-solid, .invite__actions .btn-outline { width: 100%; text-align: center; justify-content: center; }
}

/* ---------- Touch devices: no sticky hover state ---------- */
@media (hover: none) {
  /* Images render at rest — full colour, no zoom — regardless of tap */
  .project__media img,
  .project__inner:hover .project__media img,
  .pitch__media img, .pitch__media:hover img,
  .svc__media img, .svc__block:hover .svc__media img,
  .member__media img, .member:hover .member__media img {
    transform: none; filter: none;
  }
  /* Cards/rows don't lift or shift on tap */
  .pillar:hover, .testi__card:hover, .service:hover,
  .process__row:hover, .award:hover, .svc__block:hover,
  .btn-solid:hover { transform: none; }
  .testi__card:hover { border-color: var(--line); }
  .pillar:hover { background: var(--bg); }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  /* Keep the wordmark generous but never crowding the burger toggle */
  .nav__logo-img { width: clamp(148px, 44vw, 190px); }
  .nav.scrolled .nav__logo-img { width: clamp(132px, 38vw, 168px); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.8rem 1.1rem; }
  .footer__meta { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .invite { min-height: 80vh; }
  .cta-strip__inner { align-items: stretch; }
  .marquee__track { gap: 1.4rem; }
  .pitch, .contact-page { padding-left: var(--gutter); padding-right: var(--gutter); }
  .svc__tags { gap: 0.4rem; }
}

/* ---------- Architectural typography refinements ---------- */
/* Monospaced, drafting-sheet numerals — the drawing-set annotation layer */
.idx,
.project__year,
.service__num,
.process__num,
.award__year,
.svc__num,
.pillar__num {
  font-family: var(--f-mono);
  font-weight: 400;
  font-feature-settings: "tnum" 1;
}

/* Precise, engineered display: tighten the big grotesque headings */
.hero__title,
.page-hero__title,
.contact__title,
.invite__title,
.section-head__title { letter-spacing: -0.02em; }

/* Space Grotesk carries weight well — nudge display down to a light,
   architectural line weight and open the leading a touch */
.stat__num { letter-spacing: -0.01em; }

/* ============================================================
   RESPONSIVE POLISH — cross-device refinements
   ============================================================ */

/* Small/dynamic viewport units: mobile URL bars no longer cause jumps.
   Browsers without svh support keep the 100vh declared earlier. */
.hero    { min-height: 100svh; }
.feature { min-height: 90svh; }
.invite  { min-height: 92svh; }

/* Cap content width on very large screens so line lengths stay readable.
   At 1760px the gutter equals the normal 5rem max, so the transition is seamless. */
@media (min-width: 1760px) {
  :root { --gutter: calc((100vw - 1600px) / 2); }

  /* Frame the full-bleed imagery to the same 1600px content column so nothing
     stretches edge-to-edge on ultrawide displays. Solid-colour bands (nav,
     marquee, contact, footer) intentionally stay full width, with their
     content aligned to the column via the same gutter. */
  .hero__media,
  .feature__media,
  .invite__media {
    left: var(--gutter); right: var(--gutter);
    overflow: hidden;          /* clip the slow image zoom to the framed column */
  }
  .wide-media { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* Custom caret for <select> (native arrow was removed via appearance:none) */
.field select {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8a15a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* Long unbroken strings (emails) must never force horizontal scroll */
.footer__col a, .contact-aside__block a, .contact__grid a { overflow-wrap: anywhere; }

/* Tablet: tighten nav spacing before the mobile menu takes over at 720px */
@media (max-width: 1024px) {
  .nav__links { gap: 1.6rem; }
}

/* ============================================================
   SIGNATURE FEATURES
   ============================================================ */

/* ---------- 1 · Golden-Hour light scrubber ---------- */
.hero__sky, .hero__sun { position: absolute; inset: 0; pointer-events: none; }
.hero__sky { mix-blend-mode: soft-light; opacity: 0.9; transition: background .25s linear; }
.hero__sun {
  mix-blend-mode: screen; transition: background-position .25s linear, background-color .25s linear;
  background-repeat: no-repeat;
}
/* JS drives the img filter, sky gradient and sun position from the visitor's real time of day */

/* ---------- Live weather — real conditions at the visitor's location ---------- */
/* Precipitation canvas (rain/snow) sits above the scene; overcast/fog is a tinted wash */
.hero__precip {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  /* The scene is an interior — rain across the whole room reads as if it's
     falling indoors. Clip the precipitation to the window on the right so the
     weather is only visible *outside*, through the glass. Coordinates track the
     window as the object-fit:cover image sits on a desktop hero. */
  clip-path: polygon(81% 7%, 100% 7%, 100% 92%, 81% 92%);
}
/* On narrow/portrait viewports the cover crop shifts the window; widen the
   clip so rain still lands over the glass rather than the wall. */
@media (max-width: 720px) {
  .hero__precip { clip-path: polygon(74% 10%, 100% 10%, 100% 88%, 74% 88%); }
}
.hero__precip.is-active { opacity: 1; }
.hero__weather {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.6s ease, background .6s linear;
  mix-blend-mode: multiply;
}
.hero__weather.is-active { opacity: 1; }
/* Clear skies: warm daylight pours in through the right-hand window and rakes
   across the room. A soft glow sits on the glass; an angled shaft fans inward.
   Uses screen blend so it brightens the scene like real sun rather than tinting. */
.hero__sunbeam {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.8s ease;
  mix-blend-mode: screen;
  background:
    radial-gradient(50% 62% at 92% 42%, rgba(255,232,178,0.62), rgba(255,222,158,0.16) 42%, transparent 70%),
    linear-gradient(252deg,
      rgba(255,231,175,0.42) 0%,
      rgba(255,224,162,0.20) 20%,
      rgba(255,220,155,0.06) 38%,
      transparent 52%);
}
.hero__sunbeam.is-active { opacity: 1; animation: sunbreathe 7s var(--ease) infinite; }
@keyframes sunbreathe {
  0%, 100% { opacity: 0.86; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__sunbeam.is-active { animation: none; }
}
/* Overcast: a cool grey wash that flattens the light */
.hero__weather[data-sky="overcast"] {
  background: radial-gradient(120% 90% at 50% 0%, rgba(150,158,170,0.42), rgba(60,66,78,0.30) 70%);
}
/* Fog: soft luminous haze drifting up from below */
.hero__weather[data-sky="fog"] {
  mix-blend-mode: screen;
  background: linear-gradient(to top, rgba(214,218,224,0.55), rgba(214,218,224,0.10) 55%, transparent 80%);
}

/* ---------- 2 · Blueprint draws itself ---------- */
.blueprint { padding: clamp(4rem, 10vh, 8rem) var(--gutter); }
.blueprint__stage {
  position: relative; aspect-ratio: 8/5.2; width: 100%; max-width: 1000px; margin: 0 auto;
  background: #0a0906; border: 1px solid var(--line); overflow: hidden;
}
.blueprint__grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
}
.blueprint__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.blueprint__svg path {
  stroke: var(--gold); stroke-width: 1.6; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.blueprint__svg .bp-dim { stroke: var(--ink-soft); stroke-width: 1; }
.blueprint__stage.drawn .blueprint__svg path { stroke-dashoffset: 0; }
.blueprint__stage.drawn .blueprint__svg path:nth-child(2) { transition-delay: .15s; }
.blueprint__stage.drawn .blueprint__svg path:nth-child(3) { transition-delay: .3s; }
.blueprint__stage.drawn .blueprint__svg path:nth-child(4) { transition-delay: .4s; }
.blueprint__stage.drawn .blueprint__svg path:nth-child(5) { transition-delay: .5s; }
.blueprint__stage.drawn .blueprint__svg path:nth-child(n+6) { transition-delay: .6s; }
.blueprint__photo {
  position: absolute; inset: 0; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s var(--ease) 1.6s, transform 2s var(--ease) 1.6s;
}
.blueprint__stage.drawn .blueprint__photo { opacity: 1; transform: scale(1); }
.blueprint__tag {
  position: absolute; z-index: 2; font-family: var(--f-mono); font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft);
  opacity: 0; transition: opacity .6s var(--ease) .3s;
}
.blueprint__stage.drawn .blueprint__tag { opacity: 0.9; }
.blueprint__stage.drawn .blueprint__tag { opacity: 0; } /* hide once photo shown */
.blueprint__tag--tl { top: 1rem; left: 1.1rem; }
.blueprint__tag--br { bottom: 1rem; right: 1.1rem; }
.blueprint__stage.drawn .blueprint__tag--tl,
.blueprint__stage.drawn .blueprint__tag--br { animation: bpTag 3s var(--ease) forwards; }
@keyframes bpTag { 0%,45% { opacity: 0.9; } 70%,100% { opacity: 0; } }
.blueprint__cap {
  text-align: center; margin-top: 1.6rem; font-family: var(--f-mono);
  font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink-soft);
}
/* A phone shrinks the 800-unit plan to ~280px wide, thinning the 1.6-unit walls
   to about half a device pixel. Scale the linework up so the drawing still
   reads, and tighten the grid so it doesn't become four huge squares. */
@media (max-width: 600px) {
  .blueprint__svg path { stroke-width: 3.4; }
  .blueprint__svg .bp-dim { stroke-width: 2.2; }
  .blueprint__grid { background-size: 22px 22px; }
}

/* ---------- 3 · 3D house explorer ---------- */
.house3d-sec { padding: clamp(3rem, 8vh, 7rem) var(--gutter) clamp(4rem, 10vh, 8rem); }
.house3d {
  position: relative; width: 100%; max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16/10; border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 10%, #17140f 0%, #0a0906 70%);
  overflow: hidden; cursor: grab;
}
.house3d:active { cursor: grabbing; }
.house3d canvas { display: block; width: 100% !important; height: 100% !important; }
.house3d__hint {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); pointer-events: none;
  background: rgba(12,11,10,0.4); padding: 0.45rem 1rem; border-radius: 100px; border: 1px solid var(--line-soft);
}
.house3d__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); }
@media (max-width: 600px) { .house3d { aspect-ratio: 4/5; } }
/* Touch gets a hands-off turntable (see script.js) — no grab affordance. */
@media (pointer: coarse) { .house3d, .house3d:active { cursor: default; } }

/* ---------- 4 · Dream-home configurator ---------- */
.config { padding: clamp(4rem, 10vh, 8rem) var(--gutter); }
.config__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.config__preview { position: relative; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.config__preview img { transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.config__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,5,4,0.7), transparent 55%); pointer-events: none; }
.config__palette { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.5rem; }
.config__palette span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 4px 14px rgba(0,0,0,0.35); transition: background .5s var(--ease); }
.config__caption {
  position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 2;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink);
}
.config__controls { display: flex; flex-direction: column; gap: 1.8rem; justify-content: center; }
.config__group { display: flex; flex-direction: column; gap: 0.8rem; }
.config__label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.config__opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.config__opt {
  background: none; border: 1px solid var(--line); border-radius: 100px; cursor: pointer;
  padding: 0.7rem 1.4rem; font-family: var(--f-sans); font-size: 0.82rem; color: var(--ink-soft);
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.config__opt:hover { color: var(--ink); border-color: var(--gold); }
.config__opt.is-active { background: var(--gold); border-color: var(--gold); color: #14100a; font-weight: 500; }
.config #cfgSend { align-self: flex-start; margin-top: 0.6rem; }
@media (max-width: 820px) {
  .config__grid { grid-template-columns: 1fr; }
  .config #cfgSend { align-self: stretch; justify-content: center; }
}

/* Reduced motion: reveal drawings/photos instantly */
@media (prefers-reduced-motion: reduce) {
  .blueprint__svg path { stroke-dashoffset: 0; transition: none; }
  .blueprint__photo { opacity: 1; transform: none; transition: none; }
}

/* Testimonials step down 3 → 2 → 1 rather than jumping straight to 1 */
@media (min-width: 641px) and (max-width: 1024px) {
  .testi__grid { grid-template-columns: 1fr 1fr; }
}

/* Comfortable tap targets on touch devices */
@media (hover: none) {
  .nav__links a { padding: 0.4rem 0.2rem; }
  .filter { padding: 0.7rem 1.4rem; }
}

/* Very small phones: rein in the largest display type and buttons */
@media (max-width: 400px) {
  .hero__title { font-size: clamp(2.4rem, 12vw, 3rem); }
  .page-hero__title, .contact__title { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .invite__title { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .section-head__title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .cta-strip__inner h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .marquee__track span { font-size: 1.05rem; }
  .btn-solid, .btn-outline, .btn-submit { width: 100%; justify-content: center; text-align: center; }
  .work__more .btn-outline { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .hero__title, .page-hero__title { opacity: 1; transform: none; }
}

/* Entrance states are gated on body.loaded, which only JS can add. Without
   scripting the headings would stay at opacity 0 forever, so show them. */
@media (scripting: none) {
  .hero__title, .page-hero__title, .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOUSE-REACTIVE DEPTH — 3D tilt · light sheen · magnetic
   ============================================================ */
.js-tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.js-tilt.tilting { transition: transform .12s ease-out; }
/* Cursor-tracked gold sheen across the surface */
.js-tilt::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(230, 207, 156, 0.18), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.js-tilt.tilting::after { opacity: 1; }

/* Give magnetic buttons + hero parallax layers their own compositing plane */
.btn-solid, .btn-outline, .hero__content, .hero__sun { will-change: transform; }

/* No pointer-3D on touch devices — keep everything flat and calm */
@media (hover: none) {
  .js-tilt { transform: none !important; transition: none; }
  .js-tilt::after { display: none; }
}

/* ============================================
   CASE STUDY — software portfolio gallery
   ============================================ */
.case { padding: clamp(3rem, 8vh, 6rem) var(--gutter) 0; }
.case--gallery { padding-top: clamp(2.5rem, 6vh, 4.5rem); padding-bottom: 0; }
.case__intro { max-width: 1100px; margin: clamp(1.5rem, 4vh, 3rem) auto 0; }
.case__lead {
  max-width: 62ch; color: var(--ink-soft);
  font-weight: 300; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.7;
}
.stack { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; padding: 0; }
.stack li {
  list-style: none; font-size: 0.78rem; letter-spacing: 0.05em;
  padding: 0.45rem 0.95rem; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-soft); background: var(--surface);
}
.shots {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem); max-width: 1400px; margin: 0 auto;
}
.shot {
  grid-column: 1 / -1; margin: 0; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .4s var(--ease);
}
.shot:hover { border-color: rgba(200, 161, 90, 0.4); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.3rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-soft);
}
.shot figcaption b { color: var(--ink); font-weight: 500; letter-spacing: 0.01em; }
.shot--half { grid-column: span 1; }
@media (max-width: 760px) { .shot--half { grid-column: 1 / -1; } }
