/* =====================================================================
   LIVENING — Interiors • Spaces • Stories
   Design system & styles
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bone:        #ECE3D6;
  --bone-soft:   #F4EFE6;
  --bone-deep:   #E2D5C3;
  --ink:         #1A1511;
  --ink-soft:    #4A4036;
  --ink-faint:   #6d6253;
  --espresso:    #1B1611;
  --gold:        #A97B45;
  --gold-light:  #CFA468;
  --gold-deep:   #875C32;
  --gold-grad:   linear-gradient(150deg, #D8B074 0%, #A9763F 48%, #7E552E 100%);
  --gold-accent: #9b6a2d;
  --gold-text:   #7a5320;

  --line:        rgba(26, 21, 17, 0.14);
  --line-strong: rgba(26, 21, 17, 0.30);
  --line-light:  rgba(236, 227, 214, 0.18);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout:  cubic-bezier(0.83, 0, 0.17, 1);

  --pad-x: clamp(1.25rem, 5vw, 7rem);
  --maxw: 1680px;

  --nav-h: 84px;
}

/* ---------- Dark-context token swap (kills the specificity arms race) ---------- */
.on-dark {
  --ink: var(--bone-soft);
  --ink-soft: rgba(236,227,214,0.82);
  --line: var(--line-light);
  --gold-text: var(--gold-light);
  --ink-faint: rgba(236,227,214,0.6); /* keep faint labels AA on espresso */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: clamp(15px, 1.05vw, 17px);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--bone-soft); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); font-weight: 400; line-height: 0.98; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow .dot { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.0; letter-spacing: -0.01em; }
em, .it { font-style: italic; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
section { position: relative; }
section[id] { scroll-margin-top: var(--nav-h); }
.section-pad { padding-block: clamp(5rem, 12vw, 11rem); }

/* ---------- Accessibility ---------- */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ===================================================================
   PRELOADER
   =================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bone);
  display: grid; place-items: center;
  overflow: hidden;
}
.pre-inner { text-align: center; position: relative; }
.pre-mark { display: flex; align-items: baseline; justify-content: center; position: relative; }
/* letter groups need inline-block so the assembly transforms apply */
.pre-mark .wm, .pre-mark .wm-i { display: inline-block; }
/* the floor line the mark stands on */
.pre-line { display: block; width: min(320px, 58vw); height: 1px; background: var(--gold); margin: 1.7rem auto 0; transform: scaleX(0); }
.pre-tag {
  margin-top: 1.4rem; opacity: 0;
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink-soft);
}
.preloader .curtain {
  position: absolute; inset: 0; background: var(--espresso); transform: scaleY(0); transform-origin: bottom;
}

/* ===================================================================
   CUSTOM CURSOR
   =================================================================== */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor {
  width: 38px; height: 38px; border: 1px solid rgba(236,227,214,0.85);
  transform: translate(-50%, -50%); transition: width .4s var(--ease), height .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  display: grid; place-items: center;
}
.cursor-dot { width: 5px; height: 5px; background: var(--bone-soft); transform: translate(-50%, -50%); }
.cursor .c-label {
  font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: scale(0.6); transition: opacity .3s, transform .3s; mix-blend-mode: normal;
}
.cursor.is-hover { width: 64px; height: 64px; background: rgba(236,227,214,0.9); border-color: transparent; }
.cursor.is-view  { width: 96px; height: 96px; background: var(--gold); border-color: transparent; mix-blend-mode: normal; }
.cursor.is-view .c-label { opacity: 1; transform: scale(1); color: var(--bone-soft); }
.cursor.is-down { transform: translate(-50%, -50%) scale(0.82); }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button { cursor: none; }
@media (hover: none), (max-width: 900px) { .cursor, .cursor-dot { display: none !important; } body.cursor-on { cursor: auto; } }

/* ===================================================================
   WORDMARK (recreated logo)
   =================================================================== */
.wordmark { display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: 0.005em; position: relative; }
.wordmark .wm { letter-spacing: -0.005em; }
/* the "v" — real gold-leaf triangle lifted from the logo */
.wordmark .wm-tri {
  display: inline-block;
  width: 0.5em; height: 0.52em;
  margin: 0 0.008em;
  vertical-align: -0.075em;          /* dips just below the baseline, as in the logo */
  background: linear-gradient(135deg, #553717 0%, #a6783d 25%, #dfc588 50%, #ad7f43 75%, #4e3012 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);   /* vector-crisp edges */
  transform-origin: top center;
}
/* the gold tittle of the second "i" — mathematically centered over stem at 53.5% */
.wordmark .wm-i { display: inline-block; position: relative; }
.wordmark .wm-i .wm-idot {
  position: absolute; left: 53.5%; bottom: 0.68em;
  width: 0.09em; height: 0.09em; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 38% 32%, #fae8bc, #dcb873 35%, #9a6c33 70%, #503314 100%);
}
/* on dark sections — .on-dark handled by --ink token swap; keep .light helper */
.wordmark.light { color: var(--bone-soft); }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  height: var(--nav-h); display: flex; align-items: center;
  transition: transform .6s var(--ease), background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav.scrolled { background: rgba(236,227,214,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav.hidden { transform: translateY(-110%); }
.nav-brand .wordmark { font-size: 1.7rem; }
.nav-links { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 3rem); }
.nav-links a {
  position: relative; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
  padding: 0.4rem 0; color: var(--ink-soft); transition: color .4s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 0.7rem 1.4rem; color: var(--ink);
  overflow: hidden; position: relative; transition: color .5s var(--ease), border-color .5s;
}
.nav-cta span { position: relative; z-index: 2; }
.nav-cta::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); z-index: 1; }
.nav-cta:hover { color: var(--bone-soft); border-color: var(--ink); }
.nav-cta:hover::before { transform: scaleX(1); transform-origin: left; }
/* override generic .nav-links a rules so the pill CTA keeps its padding + light text on hover
   (.nav-links a outranks .nav-cta — it was zeroing the pill's horizontal padding) */
.nav-links a.nav-cta { color: var(--ink); padding: 0.7rem 1.5rem; }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { color: var(--bone-soft); }

/* burger (mobile) */
.burger { display: none; width: 34px; height: 18px; position: relative; z-index: 950; }
/* invisible hit-area extender: 34x18 visual -> ~44x44 target (WCAG 2.5.8) */
.burger::before { content: ""; position: absolute; inset: -13px -5px; }
.burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 50%; transform: translateY(-50%); } .burger span:nth-child(3) { bottom: 0; }
.menu-open .burger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 880; background: var(--espresso); color: var(--bone-soft); --ink-faint: rgba(236,227,214,0.6);
  display: flex; flex-direction: column; justify-content: center; padding: var(--pad-x);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-inout); pointer-events: none;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
body.menu-open { overflow: hidden; } /* hard scroll lock while menu is open */
.mobile-menu { overscroll-behavior: contain; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 4.5rem); line-height: 1.15; color: var(--bone-soft); }
.mobile-menu a .idx { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--gold-light); vertical-align: super; margin-right: 0.6rem; }
.mobile-menu .mm-foot { margin-top: 3rem; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--ink-faint); text-transform: uppercase; }

/* ===================================================================
   BUTTONS / LINKS
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.85rem; position: relative;
  font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400;
  padding: 1.05rem 2.1rem; border-radius: 100px; overflow: hidden; isolation: isolate;
}
.btn span { position: relative; z-index: 2; transition: color .5s var(--ease); }
.btn .arrow { width: 18px; height: 10px; position: relative; z-index: 2; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 1; transform: scale(1.02) translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: scale(1.02) translateY(0); }
/* NOTE: hover overlays/text below use --espresso (never swapped by .on-dark),
   NOT --ink (which .on-dark redefines to bone) — else text goes invisible on hover */
.btn-dark { background: var(--espresso); color: var(--bone-soft); }
.btn-dark::before { background: var(--gold); }
.btn-dark:hover span { color: var(--bone-soft); }
.btn-gold { background: var(--gold-deep); color: var(--bone-soft); }
.btn-gold::before { background: var(--espresso); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost::before { background: var(--espresso); }
.btn-ghost:hover span { color: var(--bone-soft); }
.on-dark .btn-ghost { border-color: var(--line-light); color: var(--bone-soft); }
.on-dark .btn-ghost::before { background: var(--bone-soft); }
.on-dark .btn-ghost:hover span { color: var(--espresso); }

.link-underline { position: relative; display: inline-block; padding-bottom: 2px; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===================================================================
   HERO
   =================================================================== */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-top: var(--nav-h); position: relative; overflow: hidden; }
.hero .wrap { width: 100%; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero-copy { max-width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero-eyebrow .rule { width: clamp(40px, 6vw, 90px); height: 1px; background: var(--gold); transform-origin: left; }
.hero-title { font-size: clamp(3.2rem, 8.5vw, 8.5rem); line-height: 0.92; }
.hero-title em { color: var(--gold-accent); }
.hero-sub { margin-top: clamp(1.6rem, 3vw, 2.4rem); max-width: 42ch; font-size: clamp(1rem, 1.2vw, 1.15rem); color: var(--ink-soft); }
.hero-actions { margin-top: clamp(2rem, 3.5vw, 3rem); display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

.hero-visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.hero-figure { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
/* .js-gated: covers are only ever cleared by GSAP — without JS they must not hide imagery */
.js .hero-figure .reveal-cover { position: absolute; inset: 0; background: var(--bone); z-index: 2; transform-origin: top; }
.hero-cap { position: absolute; left: -1.5rem; bottom: 2rem; z-index: 3; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.scroll-cue { position: absolute; bottom: clamp(1.2rem,3vw,2rem); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.scroll-cue .txt { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }
.scroll-cue .bar { width: 1px; height: 46px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--gold); animation: cueMove 2.2s var(--ease) infinite; }
@keyframes cueMove { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: clamp(1.1rem, 2vw, 1.8rem); display: flex; justify-content: center; }
.marquee-track { display: inline-flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.5rem); }
.marquee-track span { font-family: var(--font-display); font-style: normal; font-size: clamp(1.1rem, 3.4vw, 3rem); color: var(--ink); letter-spacing: 0.04em; }
.marquee-track .sep { width: clamp(10px, 1.2vw, 16px); height: clamp(10px, 1.2vw, 16px); background: var(--gold-grad); clip-path: polygon(0 0, 100% 0, 50% 100%); display: inline-block; }

/* ===================================================================
   SECTION TITLE
   =================================================================== */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-index { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.72rem; color: var(--gold-text); font-weight: 400; }
.sec-title { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.0; max-width: 18ch; }
.sec-title em { color: var(--gold-accent); }
.sec-lead { max-width: 38ch; color: var(--ink-soft); font-size: 1.02rem; }

/* ===================================================================
   MANIFESTO (dark)
   =================================================================== */
.manifesto { background: var(--espresso); color: var(--bone-soft); }
.manifesto .statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.9vw, 3.6rem); line-height: 1.22; letter-spacing: -0.01em; max-width: 22ch; }
.manifesto .statement .word { display: inline-block; }
.manifesto .statement em { color: var(--gold-light); }
.manifesto .pull { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; align-items: baseline; gap: 1.2rem; }
.manifesto .pull .q { font-family: var(--font-display); font-style: italic; color: var(--gold-light); font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* ===================================================================
   STATS
   =================================================================== */
.stats { background: var(--espresso); color: var(--bone-soft); border-top: 1px solid var(--line-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(2.5rem,5vw,4rem) clamp(1rem,2vw,2rem); text-align: center; border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; font-weight: 400; font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; }
.stat .num .suf { color: var(--gold-light); }
.stat .lbl { margin-top: 0.8rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(236,227,214,0.82); }

/* ===================================================================
   SERVICES
   =================================================================== */
.services { background: var(--bone); }
.svc-list { border-top: 1px solid var(--line); position: relative; }
.svc {
  display: grid; grid-template-columns: 4rem minmax(0, 28rem) minmax(0, 1fr) 3rem; align-items: center; gap: clamp(1rem,2.5vw,2.5rem);
  padding: clamp(1.6rem, 3.2vw, 2.8rem) 0; border-bottom: 1px solid var(--line); position: relative; cursor: pointer;
}
.svc .svc-no { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--gold-deep); }
.svc .svc-name { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1; text-wrap: balance; transition: transform .6s var(--ease), color .6s var(--ease); }
.svc .svc-desc { max-width: 36ch; color: var(--ink-soft); font-size: 0.96rem; opacity: 0.9; }
.svc .svc-plus { width: 26px; height: 26px; position: relative; }
.svc .svc-plus::before, .svc .svc-plus::after { content:""; position: absolute; background: var(--ink); transition: transform .5s var(--ease), background .5s; }
.svc .svc-plus::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.svc .svc-plus::after  { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.svc:hover .svc-name { transform: translateX(1.2rem); color: var(--gold-deep); }
.svc:hover .svc-plus::before { background: var(--gold); transform: translateY(-50%) rotate(180deg); }
.svc:hover .svc-plus::after  { background: var(--gold); transform: translateX(-50%) rotate(180deg); opacity: 0; }
/* floating hover image — JS (gsap.quickSetter) writes inline translate(x,y) to the
   cursor each tick, stomping any CSS transform. The clearance offset therefore lives
   in MARGINS (GSAP never touches them): centered on the pointer's x, bottom edge
   ~110px above the pointer's y, so the hovered row's .svc-name/.svc-desc glyphs under
   and around the cursor are never occluded (audit: 61% name-glyph occlusion). */
.svc-hover-img {
  position: fixed; top: 0; left: 0; width: 300px; height: 380px; z-index: 600; pointer-events: none;
  margin-left: -150px;  /* center on pointer x */
  margin-top: -490px;   /* height (380px) + 110px text clearance above pointer y */
  overflow: hidden; border-radius: 2px; opacity: 0; transform: scale(0.85); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.svc-hover-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-hover-img.show { opacity: 1; }
@media (max-width: 900px) { .svc-hover-img { display: none; } }

/* ===================================================================
   PROJECTS
   =================================================================== */
.projects { background: var(--bone-soft); }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 5.5rem) clamp(1.5rem, 4vw, 4rem); }
.proj { position: relative; }
.proj:nth-child(even) { margin-top: clamp(0rem, 8vw, 7rem); }
.proj-fig { position: relative; overflow: hidden; aspect-ratio: 4/5; border-radius: 2px; }
.proj-fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.1s var(--ease); will-change: transform; }
.proj:hover .proj-fig img { transform: scale(1.1); }
.js .proj-fig .pcover { position: absolute; inset: 0; background: var(--bone-deep); z-index: 2; transform-origin: bottom; }
.proj-tag { position: absolute; top: 1rem; left: 1rem; z-index: 3; background: rgba(27,22,17,0.62); color: var(--bone-soft); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.45rem 0.9rem; border-radius: 100px; }
.proj-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.3rem; gap: 1rem; }
.proj-name { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; }
.proj-loc { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); text-align: right; white-space: nowrap; }
.proj-year { font-size: 0.72rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.proj-line { margin-top: 0.7rem; height: 1px; background: var(--line); transform-origin: left; }
.js .proj-line { transform: scaleX(0); } /* GSAP grows it back; no-JS keeps the underline */

/* ===================================================================
   PROCESS
   =================================================================== */
.process { background: var(--espresso); color: var(--bone-soft); }
.proc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1.2rem, 2.2vw, 2.4rem); position: relative; }
.proc-line { position: absolute; top: 38px; left: 0; height: 1px; width: 100%; background: var(--line-light); }
.proc-line .fill { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.proc { position: relative; }
.proc .proc-no { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; background: var(--espresso); position: relative; z-index: 2; transition: border-color .5s, background .5s, color .5s; }
.proc.active .proc-no { border-color: var(--gold); color: var(--gold-light); }
.proc .proc-name { margin-top: 1.8rem; font-family: var(--font-display); font-size: clamp(1.4rem, 1.8vw, 1.9rem); line-height: 1.12; }
.proc .proc-txt { margin-top: 0.9rem; color: rgba(236,227,214,0.82); font-size: 0.96rem; max-width: 30ch; }

/* ===================================================================
   WHY LIVENING
   =================================================================== */
.why { background: var(--bone-soft); }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.why-head { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
.why-list { border-top: 1px solid var(--line); }
.why-item {
  display: grid; grid-template-columns: 3.4rem minmax(0,1fr); gap: 1.1rem; align-items: start;
  padding: clamp(1.5rem, 2.8vw, 2.2rem) 0; border-bottom: 1px solid var(--line);
}
.why-item .w-no { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--gold-text); padding-top: 0.5rem; }
.why-item h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.1; }
.why-item p { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.96rem; max-width: 50ch; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-head { position: static; }
}

/* ===================================================================
   ABOUT
   =================================================================== */
.about { background: var(--bone); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-fig { position: relative; overflow: hidden; aspect-ratio: 4/5; border-radius: 2px; }
.about-fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.js .about-fig .acover { position: absolute; inset: 0; background: var(--bone-deep); z-index: 2; transform-origin: left; }
.about-fig .badge { position: absolute; right: -1px; bottom: -1px; z-index: 3; background: var(--bone); padding: 1.2rem 1.6rem; }
.about-fig .badge .b-num { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.about-fig .badge .b-lbl { display: block; margin-top: 0.35rem; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.about-body p { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.about-body p + p { margin-top: 1.4rem; }
/* the #studio eyebrow is a <p> inside .about-body — restore the gold eyebrow look */
.about-body p.sec-index { color: var(--gold-text); font-size: 0.72rem; }
.about-sign { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.2rem; }
.about-sign .sig { font-family: var(--font-display); font-style: italic; font-size: 1.8rem; }
.about-sign .sig-lbl { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.testi { background: var(--bone-deep); overflow: hidden; }
.testi-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
/* fixed rem, not ch: ch computed against the 15px Jost body font (~526px), not the 40px quote */
.testi-stage { position: relative; max-width: 44rem; margin-inline: auto; text-align: center; min-height: 16rem; }
/* visibility swap keeps inactive slides out of the a11y tree; delay preserves the crossfade */
.testi-item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease), visibility 0s .8s; pointer-events: none; }
.testi-item.active { opacity: 1; visibility: visible; transform: translateY(0); position: relative; pointer-events: auto; transition: opacity .8s var(--ease), transform .8s var(--ease), visibility 0s; }
.testi-q { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(1.4rem, 3vw, 2.5rem); line-height: 1.34; }
.testi-by { margin-top: 2rem; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text); } /* gold-deep is 4.01:1 on bone-deep — gold-text (4.71:1) keeps AA */
.testi-mark { font-family: var(--font-display); font-size: clamp(4rem, 9vw, 8rem); line-height: 0.9; color: var(--gold); opacity: 0.22; margin-top: 1.4rem; margin-bottom: -1.5rem; }
.testi-nav { display: flex; justify-content: center; align-items: center; gap: 0.7rem; margin-top: clamp(2rem,4vw,3rem); }
/* dots sit on bone-deep #E2D5C3: literal rgba (never token-swapped) composites to
   rgb(106,98,88) = 4.15:1, active gold-deep = 4.03:1 — both clear the 3:1 non-text bar
   (WCAG 1.4.11). Active paints thicker so state isn't conveyed by hue alone (1.4.1).
   Hit area is the full 30x24 box (2.5.8); only the content-box strip is painted, so the
   visual stays a 2px (active 4px) bar. */
.testi-dot { width: 30px; height: 24px; padding-block: 11px; background: rgba(26,21,17,0.6); background-clip: content-box; transition: background .4s, padding .4s; }
.testi-dot.active { background: var(--gold-deep); padding-block: 10px; }
.testi-dot:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.testi-pause { padding: 0.2rem 0.4rem; margin-left: 0.6rem; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.testi-pause:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }

/* ===================================================================
   CTA
   =================================================================== */
.cta { position: relative; color: var(--bone-soft); overflow: hidden; text-align: center; }
.cta .cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta .cta-bg img { width: 100%; height: 120%; object-fit: cover; transform: translateY(-8%); will-change: transform; }
.cta .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,0.78), rgba(20,16,12,0.86)); }
.cta .wrap { position: relative; z-index: 2; }
.cta .cta-tri { display: block; width: clamp(46px,4.4vw,72px); height: clamp(48px,4.6vw,74px); background: url("../img/tri-tex.jpg") center / cover; -webkit-clip-path: polygon(0 0,100% 0,50% 100%); clip-path: polygon(0 0,100% 0,50% 100%); margin: 0 auto clamp(1.5rem,3vw,2.5rem); }
.cta-title { font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 0.98; }
.cta-title em { color: var(--gold-light); }
.cta-sub { margin: 1.6rem auto 2.6rem; max-width: 40ch; color: rgba(236,227,214,0.8); font-size: 1.1rem; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--espresso); color: var(--bone-soft); padding-top: clamp(3rem,6vw,5rem); }
.foot-marquee { overflow: hidden; white-space: nowrap; display: flex; border-bottom: 1px solid var(--line-light); padding-bottom: clamp(2rem,5vw,4rem); }
.foot-marquee .ft-track { display: inline-flex; gap: 2rem; align-items: center; padding-right: 2rem; flex-shrink: 0; will-change: transform; }
.foot-marquee .ft-track span { font-family: var(--font-display); font-size: clamp(3.5rem, 11vw, 11rem); line-height: 0.9; color: var(--bone-soft); }
.foot-marquee .ft-track .sep { width: clamp(16px,2vw,30px); height: clamp(16px,2vw,30px); background: var(--gold-grad); clip-path: polygon(0 0,100% 0,50% 100%); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3rem,5vw,4.5rem); }
.foot-col h3 { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.4rem; font-family: var(--font-sans); font-weight: 400; }
.foot-col p, .foot-col a { color: rgba(236,227,214,0.72); font-size: 0.95rem; line-height: 1.9; display: block; transition: color .4s; }
.foot-col a:hover { color: var(--bone-soft); }
.foot-brand .wordmark { font-size: 2.4rem; margin-bottom: 1.2rem; }
.foot-brand p { max-width: 30ch; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 2rem; border-top: 1px solid var(--line-light); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-faint); text-transform: uppercase; }
/* UA button styles suppress inherited text-transform/letter-spacing — restate .foot-bot's treatment */
.to-top { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; }

/* ===================================================================
   SCROLL PROGRESS
   =================================================================== */
.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 950; background: transparent; }
.scroll-prog .bar { height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* ===================================================================
   REVEAL UTILITIES (only active when JS ready)
   =================================================================== */
.js .reveal-up { opacity: 0; transform: translateY(38px); }
.js [data-fade] { opacity: 0; }
.js [data-split] { opacity: 0; }
/* padding gives descenders + italic overhang room; negative margin keeps line spacing identical */
.js [data-split] .line-mask { display: block; overflow: hidden; padding: 0.08em 0.06em 0.22em; margin: -0.08em -0.06em -0.22em; }
.js [data-split] .line { display: block; will-change: transform; }
.js [data-words] .word { display: inline-block; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  /* keep the hero image on mobile — a visual studio must lead with imagery */
  .hero-visual { order: 2; margin-top: clamp(2rem, 6vw, 3rem); }
  .hero-figure { aspect-ratio: 4 / 5; }
  .hero-cap { display: none; }
  .hero-copy { max-width: 100%; padding-top: clamp(2rem, 8vw, 4rem); }
  .about-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta.desktop { display: none; }
  .burger { display: block; }
  .scroll-cue { display: none; }
  .proc-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .proc-line { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  /* services: number | name over description | plus — description stays */
  .svc { grid-template-columns: 2.5rem minmax(0,1fr) 2rem; align-items: start; row-gap: 0.55rem; }
  .svc .svc-no { padding-top: 0.5rem; }
  .svc .svc-name { font-size: clamp(1.5rem, 6.5vw, 2.4rem); }
  .svc .svc-desc { display: block; grid-column: 2; grid-row: 2; font-size: 0.88rem; max-width: 100%; }
  .svc .svc-plus { grid-column: 3; grid-row: 1; justify-self: end; margin-top: 0.55rem; width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; gap: 3rem; }
  .proj:nth-child(even) { margin-top: 0; }
  .proc-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.8rem, 13vw, 5rem); }
  .hero-eyebrow { gap: 0.7rem; }
  .hero-eyebrow .rule { width: 26px; flex: none; }
  .hero-eyebrow .eyebrow { font-size: 0.6rem; letter-spacing: 0.26em; white-space: nowrap; }
  .hero-actions { gap: 1.2rem; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}

/* ===================================================================
   TOUCH FEEL — press feedback + staggered menu (no hover on mobile)
   =================================================================== */
html { -webkit-tap-highlight-color: transparent; }
.btn { white-space: nowrap; }
@media (hover: none) {
  .btn { transition: transform 0.25s var(--ease); }
  .btn:active, .nav-cta:active { transform: scale(0.96); }
  .svc:active .svc-name { color: var(--gold-deep); }
  .proj:active .proj-fig img { transform: scale(1.08); }
  .mobile-menu a:active { color: var(--gold-light); }
}
/* mobile menu links cascade in after the curtain opens */
.mobile-menu nav a { display: block; opacity: 0; transform: translateY(30px); transition: opacity 0.5s var(--ease), transform 0.65s var(--ease); }
.mobile-menu .mm-foot { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu .mm-foot { opacity: 1; transform: none; transition-delay: 0.62s; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: 0.28s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.35s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.42s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.49s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.56s; }
/* nav sits above the dark menu — flip brand + burger to bone while open */
.nav .wordmark, .burger span { transition: color 0.4s var(--ease), background 0.4s var(--ease); }
.menu-open .nav .wordmark { color: var(--bone-soft); }
.menu-open .nav.scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.menu-open .burger span { background: var(--bone-soft); }

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal-up, .js [data-fade] { opacity: 1 !important; transform: none !important; }
  .js [data-split], .js [data-words] { opacity: 1 !important; }
  .js [data-split] .line { transform: none !important; }
  .cursor, .cursor-dot { display: none !important; }
  .marquee-track, .ft-track { transform: none !important; }
  .scroll-cue .bar::after { animation: none; }
}

/* ===================================================================
   CONTACT
   =================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.contact-info { background: var(--espresso); color: var(--bone-soft); padding: clamp(2rem, 4vw, 3.2rem); --ink: var(--bone-soft); --ink-soft: rgba(236,227,214,0.82); --line: var(--line-light); }
.contact-info h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold-light); margin-bottom: 1.6rem; }
.contact-info .ci-address { font-style: normal; line-height: 1.7; color: var(--bone-soft); opacity: 0.86; }
.contact-info .ci-block { margin-top: 1.8rem; }
.contact-info .ci-block h4 { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.5rem; }
.contact-info .ci-block p { color: rgba(236,227,214,0.78); margin: 0; }
.contact-info .ci-block a { color: var(--bone-soft); font-size: 1.05rem; }
.contact-info .ci-block a:hover { color: var(--gold-light); }
.contact-info .ci-social { display: flex; gap: 1.4rem; }
.contact-info .ci-map { margin-top: 2.2rem; border: 1px solid var(--line-light); filter: grayscale(0.4) contrast(1.05); line-height: 0; }
.contact-info .ci-map iframe { display: block; }

.contact-form-wrap { background: var(--bone-soft); border: 1px solid var(--line); padding: clamp(1.8rem, 4vw, 3rem); }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.cf-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.4rem; }
.cf-field label {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint);
}
.cf-field input, .cf-field select, .cf-field textarea {
  font: inherit; font-size: 0.98rem; color: var(--ink); background: var(--bone);
  border: 1px solid var(--line-strong); border-radius: 0; padding: 0.9rem 1rem; width: 100%;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); appearance: none;
}
.cf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 1l8 8 8-8' fill='none' stroke='%234A4036' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.4rem; cursor: pointer;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold);
}
.cf-field textarea { resize: vertical; min-height: 140px; font-family: inherit; }
.cf-field input[aria-invalid="true"], .cf-field textarea[aria-invalid="true"] {
  border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep);
}
.cf-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cf-status { margin-top: 1rem; font-size: 0.85rem; letter-spacing: 0.02em; min-height: 1.2em; }
.cf-status.is-err { color: var(--gold-deep); }
.cf-status.is-ok { color: var(--gold-text); }

#cf-submit { width: 100%; justify-content: center; margin-top: 0.4rem; }
#cf-submit[disabled] { opacity: 0.55; pointer-events: none; }

.cf-success { text-align: center; padding: clamp(2.4rem, 6vw, 4.5rem) 0; }
.cf-success h3 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-accent); outline: none; }
.cf-success p { margin-top: 0.9rem; color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
}
