/* ==========================================================================
   Sable & Stone : QUIET LUXE DARK design system
   Instrument Sans (display + body) with Fraunces italic accent words.
   Sable near-black canvas, champagne gold signal, alabaster text.
   Fictional demo site. Generated assets: edit here, then rebuild.
   ========================================================================== */

:root {
  /* palette */
  --sable: #0b0b0c;          /* canvas, near-black */
  --basalt: #121214;         /* raised band */
  --smoke: #1a1a1e;          /* cards, panels */
  --seam: rgba(242, 237, 228, 0.1);       /* neutral hairline */
  --seam-gold: rgba(198, 161, 91, 0.28);  /* gold hairline */
  --champagne: #c6a15b;      /* accent gold */
  --champagne-hi: #dcbf8a;   /* brighter gold for small text */
  --alabaster: #f2ede4;      /* warm off-white text */
  --fog: #aaa69d;            /* muted text on sable (7.5:1+) */
  --fog-dim: #8b877f;        /* fine print (4.9:1) */
  --ink-on-gold: #0b0b0c;

  /* type */
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --fs-hero: clamp(2.5rem, 1.1rem + 5.4vw, 4.9rem);
  --fs-h1: clamp(2.2rem, 1.2rem + 3.4vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 1.15rem + 2vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1.02rem + 0.5vw, 1.35rem);
  --fs-quote: clamp(1.5rem, 1rem + 2.2vw, 2.4rem);
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-small: 0.875rem;

  /* spacing: generous air is the brand */
  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --sec: clamp(112px, 8vw + 64px, 176px);

  /* shape + motion */
  --r-pill: 999px;
  --r-card: 4px;
  --t-fast: 160ms ease-out;
  --t-base: 260ms ease-out;
  --t-slow: 900ms cubic-bezier(0.19, 1, 0.22, 1);
  --ease-luxe: cubic-bezier(0.19, 1, 0.22, 1); /* long soft ease-out, house curve */
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sable);
  color: var(--alabaster);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--champagne-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 {
  margin: 0 0 var(--s5); line-height: 1.14; text-wrap: balance;
  font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.004em;
  color: var(--alabaster);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--champagne-hi); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--champagne); color: var(--ink-on-gold); padding: 10px 18px; font-weight: 600;
}
.skip:focus { left: 0; }
::selection { background: var(--champagne); color: var(--ink-on-gold); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 3.4vw, 32px); }
.section { padding: var(--sec) 0; position: relative; }
.band { background: var(--basalt); border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam); }
.prose { max-width: 66ch; }
.prose h2 { margin-top: var(--s8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s6); }
.prose p { color: var(--fog); }
.prose strong, .prose b { color: var(--alabaster); font-weight: 600; }

/* ---------- type helpers ---------- */
.gold-i {
  font-family: var(--font-serif); font-style: italic; font-weight: 420;
  color: var(--champagne); letter-spacing: 0.01em;
  padding-right: 0.06em; /* italic overhang */
}
.kicker {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--champagne-hi); margin: 0 0 var(--s6);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--seam-gold); flex-shrink: 0; }
.lead { font-size: 1.2rem; line-height: 1.7; color: var(--fog); max-width: 58ch; font-weight: 400; }
.small { font-size: var(--fs-small); color: var(--fog); }
.fineprint { font-size: 0.8125rem; color: var(--fog-dim); }
.rule-gold { border: 0; height: 1px; background: linear-gradient(to right, var(--seam-gold), transparent); margin: var(--s7) 0; }

/* chip: hairline pill label */
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border: 1px solid var(--seam-gold); border-radius: var(--r-pill);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--champagne-hi); background: rgba(198, 161, 91, 0.05);
  margin: 0 0 var(--s6);
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); }

/* ---------- buttons: gold-outline pills, champagne sweep fill ---------- */
.btn {
  position: relative; overflow: hidden; z-index: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 34px; min-height: 54px;
  border: 1px solid var(--champagne); border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  background: transparent; color: var(--champagne-hi);
  transition: color 320ms ease 90ms, border-color var(--t-fast), transform var(--t-fast);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--champagne); border-radius: inherit;
  transform: translateX(-102%);
  transition: transform 620ms var(--ease-luxe);
}
.btn svg { width: 17px; height: 17px; transition: transform var(--t-base); }
.btn:hover, .btn:focus-visible { color: var(--ink-on-gold); text-decoration: none; }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--champagne); color: var(--ink-on-gold); }
.btn--solid::before { background: var(--champagne-hi); }
.btn--solid:hover { border-color: var(--champagne-hi); }
.btn--quiet {
  border-color: var(--seam); color: var(--alabaster);
  background: transparent;
}
.btn--quiet::before { content: none; }
.btn--quiet:hover, .btn--quiet:focus-visible { border-color: var(--champagne); background: transparent; color: var(--champagne-hi); }
.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--champagne-hi);
}
.textlink svg { width: 16px; height: 16px; transition: transform var(--t-base); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 20px 0;
  transition: background var(--t-base), padding var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: rgba(11, 11, 12, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--seam); padding: 12px 0;
}
.hdr .wrap { display: flex; align-items: center; gap: var(--s6); }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1.05; color: var(--alabaster); }
.wordmark:hover { text-decoration: none; }
.wm-main { font-size: 1.06rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.wm-main .amp { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--champagne); letter-spacing: 0; }
.wm-sub { font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--fog); margin-top: 4px; }

.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; }
.nav a {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fog); padding: 8px 2px; position: relative;
}
.nav a:hover { color: var(--alabaster); text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 2px; right: 100%; bottom: 2px; height: 1px;
  background: var(--champagne); transition: right 520ms var(--ease-luxe);
}
.nav a:hover::after, .nav a[aria-current]::after { right: 2px; }
.nav a[aria-current] { color: var(--alabaster); }
.hdr-cta { padding: 12px 26px; min-height: 44px; font-size: 0.75rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--seam); border-radius: var(--r-pill);
  color: var(--alabaster); padding: 10px 14px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.mobile-panel {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(11, 11, 12, 0.97); overflow-y: auto; padding: 110px 0 var(--s8);
}
.mobile-panel a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--seam);
  font-size: 1.15rem; color: var(--alabaster); letter-spacing: 0.06em;
}
.mobile-panel a:hover { color: var(--champagne-hi); text-decoration: none; }
.mobile-panel .btn { display: inline-flex; margin-top: var(--s6); border-bottom: 1px solid var(--champagne); }
body.nav-open .mobile-panel { display: block; }
body.nav-open { overflow: hidden; }
@media (max-width: 900px) {
  .nav, .hdr-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 94vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 11, 12, 0.5) 0%, rgba(11, 11, 12, 0.08) 34%, rgba(11, 11, 12, 0.24) 62%, rgba(11, 11, 12, 0.94) 100%),
    linear-gradient(to right, rgba(11, 11, 12, 0.42), transparent 55%);
}
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--sable); opacity: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(72px, 9vh, 120px); }

/* load choreography (html.anim-boot is added by JS only when motion is allowed) */
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes veil-lift { from { opacity: 0.45; } to { opacity: 0; } }
@keyframes fade-up-soft { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-soft { from { opacity: 0; } to { opacity: 1; } }
@keyframes chip-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.anim-boot .hero-media img { animation: hero-settle 2.2s var(--ease-luxe) both; }
.anim-boot .hero-media::before { animation: veil-lift 2s ease-out both; }
.anim-boot .hero .hero-kicker,
.anim-boot .case-hero .crumbs { animation: fade-up-soft 1.1s var(--ease-luxe) 0.35s backwards; }
.anim-boot .case-hero .chip { animation: chip-in 1.2s var(--ease-luxe) 1.55s backwards; }
.anim-boot .hero .hero-sub,
.anim-boot .case-hero .hero-sub { animation: fade-up-soft 1.2s var(--ease-luxe) 1.5s backwards; }
.anim-boot .hero .hero-actions { animation: fade-up-soft 1.2s var(--ease-luxe) 1.75s backwards; }
.anim-boot .scroll-label { animation: fade-soft 1.4s ease-out 2.1s backwards; }
.hero-kicker {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--champagne-hi); margin: 0 0 var(--s5); display: flex; align-items: center; gap: 16px;
}
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: var(--seam-gold); }
.hero h1 { font-size: var(--fs-hero); font-weight: 450; margin-bottom: var(--s6); max-width: 15ch; }
.hero h1 .gold-i { font-weight: 380; }
.hero-sub { max-width: 46ch; color: rgba(242, 237, 228, 0.82); font-size: 1.1rem; margin-bottom: var(--s7); }
.hero-actions { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; }

/* vertical scroll label */
.scroll-label {
  position: absolute; right: clamp(18px, 2.6vw, 40px); bottom: clamp(72px, 10vh, 130px); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  writing-mode: vertical-rl;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--fog);
}
.scroll-label::after {
  content: ""; width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--champagne), transparent);
  animation: scrollhint 3.4s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 700px) { .scroll-label { display: none; } }

/* interior page hero */
.pagehead { position: relative; padding: calc(120px + var(--s9)) 0 var(--s9); overflow: hidden; }
.pagehead .crumbs { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog-dim); margin: 0 0 var(--s6); }
.pagehead .crumbs a { color: var(--fog); }
.pagehead h1 { max-width: 18ch; font-weight: 450; }
.pagehead .lead { margin-top: var(--s5); }
.anim-boot .pagehead .crumbs { animation: fade-up-soft 1s var(--ease-luxe) 0.1s backwards; }
.anim-boot .pagehead .chip { animation: chip-in 1.1s var(--ease-luxe) 0.25s backwards; }
.anim-boot .pagehead .lead { animation: fade-up-soft 1.2s var(--ease-luxe) 1.15s backwards; }

/* ---------- perspective grid floor (pure CSS signature) ---------- */
.grid-floor { position: relative; }
.grid-floor::before {
  content: ""; position: absolute; left: -12%; right: -12%; bottom: 0; height: min(46vh, 420px);
  pointer-events: none; z-index: 1;
  background-image:
    repeating-linear-gradient(to right, rgba(198, 161, 91, 0.16) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, rgba(198, 161, 91, 0.16) 0 1px, transparent 1px 56px);
  transform: perspective(760px) rotateX(58deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 88%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 88%);
}
.grid-floor > .wrap { position: relative; z-index: 2; }
/* barely-perceptible continuous drift, transform only, oscillating so it never pops */
@keyframes grid-drift {
  from { transform: perspective(760px) rotateX(58deg) translateY(0); }
  to { transform: perspective(760px) rotateX(58deg) translateY(18px); }
}
.anim-boot .grid-floor::before { animation: grid-drift 16s ease-in-out infinite alternate; }

/* ---------- split (chip-labeled who-we-are etc.) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 880px) { .split, .split--rev { grid-template-columns: 1fr; } }

.frame { position: relative; border-radius: var(--r-card); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(242, 237, 228, 0.08); border-radius: var(--r-card); pointer-events: none; }
.frame--tall { aspect-ratio: 4 / 4.6; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame-caption {
  display: flex; justify-content: space-between; gap: var(--s4);
  padding: 14px 4px 0; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog-dim);
}

/* ---------- works strip / portfolio grid ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.works-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .works-grid, .works-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .works-grid, .works-grid--home { grid-template-columns: 1fr; } }

.work-card { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; background: var(--smoke); }
.work-card:hover { text-decoration: none; }
.work-media { aspect-ratio: 4 / 3.4; overflow: hidden; }
.work-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1300ms var(--ease-luxe), filter 1300ms var(--ease-luxe);
  filter: brightness(0.92);
}
.work-card:hover .work-media img, .work-card:focus-visible .work-media img { transform: scale(1.04); filter: brightness(1.02); }
.work-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.18) 46%, transparent 70%);
  pointer-events: none;
}
.work-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 2.4vw, 28px); }
.work-meta h3 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 550; }
.work-meta .place { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne-hi); }
.work-meta .story {
  color: var(--fog); font-size: 0.92rem; line-height: 1.55; margin: 10px 0 0; max-width: 40ch;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 600ms cubic-bezier(0.19, 1, 0.22, 1), opacity 500ms ease, margin var(--t-base);
}
.work-card:hover .work-meta .story, .work-card:focus-visible .work-meta .story { max-height: 8em; opacity: 1; }
.work-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 0.6563rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--alabaster); background: rgba(11, 11, 12, 0.55); border: 1px solid rgba(242, 237, 228, 0.16);
  padding: 6px 13px; border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* section heading rows */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.sec-head h2 { margin: 0; max-width: 22ch; }
.sec-head .lead { margin: var(--s4) 0 0; }

/* ---------- quote band ---------- */
.quoteband { text-align: center; }
.quoteband blockquote { margin: 0 auto; max-width: 26ch; }
.quoteband blockquote p {
  font-family: var(--font-serif); font-style: italic; font-weight: 380;
  font-size: var(--fs-quote); line-height: 1.4; color: var(--alabaster);
  margin: 0 0 var(--s6);
}
.quoteband blockquote p .plain { font-family: var(--font-sans); font-style: normal; font-weight: 450; }
.quoteband cite { font-style: normal; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fog); }
.quoteband .orn { color: var(--champagne); font-size: 1.6rem; display: block; margin-bottom: var(--s6); font-family: var(--font-serif); font-style: italic; }
/* ornament fades in oversized and settles; quote letter-spacing tightens slowly */
.anim-boot .quoteband .orn { opacity: 0; transform: scale(1.35); transition: opacity 1.4s ease, transform 1.6s var(--ease-luxe); }
.anim-boot .quoteband .reveal.in .orn { opacity: 1; transform: none; }
.anim-boot .quoteband blockquote p { letter-spacing: 0.022em; transition: letter-spacing 1.6s ease 0.2s; }
.anim-boot .quoteband .reveal.in blockquote p { letter-spacing: 0; }

/* ---------- process / numbered steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--s5); }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: var(--seam-gold); transform-origin: left;
}
.anim-boot .step.reveal::before { transform: scaleX(0); transition: transform 1.3s var(--ease-luxe) calc(var(--i, 0) * 120ms + 120ms); }
.anim-boot .step.reveal.in::before { transform: scaleX(1); }
.step .no {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.9rem; color: var(--champagne); display: block; margin-bottom: var(--s3);
}
.step h3 { font-size: 1.08rem; margin-bottom: var(--s3); }
.step p { color: var(--fog); font-size: 0.95rem; margin: 0; }

/* ---------- stats ---------- */
.statrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
@media (max-width: 880px) { .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--s6); } }
.stat { position: relative; padding-left: var(--s5); }
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--seam-gold); transform-origin: top;
}
.anim-boot .stat.reveal::before { transform: scaleY(0); transition: transform 1.2s var(--ease-luxe) calc(var(--i, 0) * 120ms + 120ms); }
.anim-boot .stat.reveal.in::before { transform: scaleY(1); }
.stat-num { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); font-weight: 450; color: var(--alabaster); line-height: 1.05; display: block; font-variant-numeric: tabular-nums; }
.stat-num .unit { font-family: var(--font-serif); font-style: italic; font-size: 0.52em; color: var(--champagne); margin-left: 2px; }
.stat-label { display: block; margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fog); }
.stat-sub { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--fog-dim); }

/* ---------- values / cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
@media (max-width: 940px) { .cards3 { grid-template-columns: 1fr; } }
.panel {
  background: var(--smoke); border: 1px solid var(--seam); border-radius: var(--r-card);
  padding: clamp(26px, 3vw, 40px);
}
.panel h3 { display: flex; align-items: baseline; gap: 12px; }
.panel h3 .g { font-family: var(--font-serif); font-style: italic; color: var(--champagne); font-weight: 400; }
.panel p { color: var(--fog); margin-bottom: 0; }
.panel .speclabel { margin-bottom: var(--s4); display: inline-block; }
.speclabel {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne-hi);
}

/* monogram (no face photos, house rule) */
.principals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
@media (max-width: 780px) { .principals { grid-template-columns: 1fr; } }
.monogram {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--seam-gold); display: grid; place-items: center;
  font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--champagne);
  background: radial-gradient(circle at 30% 25%, rgba(198, 161, 91, 0.14), transparent 70%);
}
.principal { display: flex; gap: var(--s5); align-items: flex-start; }
.principal h3 { margin-bottom: 2px; }
.principal .role { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne-hi); display: block; margin-bottom: var(--s3); }
.principal p { color: var(--fog); font-size: 0.95rem; margin: 0; }

/* ---------- timeline (history) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: clamp(28px, 5vw, 56px); }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(to bottom, var(--seam-gold), rgba(198, 161, 91, 0.06));
  transform-origin: top;
}
/* gold spine draws downward as the page scrolls (JS feeds --spine 0..1) */
.anim-boot .timeline::before { transform: scaleY(var(--spine, 0)); }
.tl-item { position: relative; padding-bottom: clamp(48px, 6vw, 80px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(8px - clamp(28px, 5vw, 56px)); top: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sable); border: 1px solid var(--champagne);
  transform: translateX(-4px);
}
.anim-boot .tl-item.reveal::before { transform: translateX(-4px) scale(0); transition: transform 0.9s var(--ease-luxe) 0.35s; }
.anim-boot .tl-item.reveal.in::before { transform: translateX(-4px) scale(1); }
.tl-year {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.7rem; color: var(--champagne); display: block; margin-bottom: var(--s3);
}
.tl-item h3 { margin-bottom: var(--s3); }
.tl-item p { color: var(--fog); max-width: 58ch; margin-bottom: 0; }

/* ---------- case study ---------- */
.case-hero { position: relative; min-height: 74vh; display: flex; align-items: flex-end; overflow: hidden; }
.case-hero .hero-media::after {
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0.1) 40%, rgba(11, 11, 12, 0.95) 100%);
}
.case-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 7vh, 96px); }
.specplate {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6);
  border-bottom: 1px solid var(--seam);
  padding: var(--s6) 0; margin: var(--s8) 0;
}
.specplate::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: var(--seam-gold); transform-origin: left;
}
.anim-boot .specplate.reveal::before { transform: scaleX(0); transition: transform 1.4s var(--ease-luxe) 120ms; }
.anim-boot .specplate.reveal.in::before { transform: scaleX(1); }
@media (max-width: 780px) { .specplate { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fog-dim); margin-bottom: 6px; }
.spec dd { margin: 0; font-size: 1.02rem; color: var(--alabaster); }
.gallery2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
@media (max-width: 720px) { .gallery2 { grid-template-columns: 1fr; } }
.craftlist { list-style: none; padding: 0; margin: 0; }
.craftlist li { border-top: 1px solid var(--seam); padding: var(--s5) 0; display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: var(--s5); }
.craftlist li:last-child { border-bottom: 1px solid var(--seam); }
@media (max-width: 640px) { .craftlist li { grid-template-columns: 1fr; gap: var(--s2); } }
.craftlist .cl-name { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne-hi); padding-top: 3px; }
.craftlist .cl-body { color: var(--fog); margin: 0; }

/* ---------- forms (demo only) ---------- */
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 680px) { .formgrid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog); }
.field input, .field select, .field textarea {
  background: var(--smoke); border: 1px solid var(--seam); border-radius: var(--r-card);
  color: var(--alabaster); font-family: var(--font-sans); font-size: 1rem;
  padding: 14px 16px; width: 100%;
  transition: border-color var(--t-fast);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaa69d' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--champagne); outline-offset: 0; outline-color: var(--champagne); }
.field input::placeholder, .field textarea::placeholder { color: var(--fog-dim); }
.form-note { font-size: 0.8125rem; color: var(--fog-dim); }
.form-success {
  display: none; border: 1px solid var(--seam-gold); border-radius: var(--r-card);
  background: rgba(198, 161, 91, 0.07); padding: var(--s6); margin-top: var(--s5);
}
.form-success h3 { color: var(--champagne-hi); margin-bottom: var(--s3); }
.form-success p { color: var(--fog); margin: 0; }
form.sent .form-success { display: block; }
form.sent .form-live { display: none; }

/* contact info list */
.infolist { list-style: none; padding: 0; margin: 0; }
.infolist li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--seam); color: var(--fog); }
.infolist li:first-child { border-top: 1px solid var(--seam); }
.infolist svg { width: 19px; height: 19px; color: var(--champagne); flex-shrink: 0; margin-top: 4px; }
.infolist a { color: var(--alabaster); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; overflow: hidden; }
.cta-band h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band .lead { margin: 0 auto var(--s7); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--seam); background: var(--basalt); position: relative; overflow: hidden; padding: var(--s9) 0 var(--s7); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); position: relative; z-index: 2; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne-hi); margin-bottom: var(--s5); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--fog); font-size: 0.95rem; }
.footer li a:hover { color: var(--alabaster); }
.footer p { color: var(--fog); font-size: 0.95rem; max-width: 34ch; }
.foot-contact li { display: flex; gap: 12px; color: var(--fog); font-size: 0.95rem; margin-bottom: 14px; }
.foot-contact svg { width: 17px; height: 17px; color: var(--champagne); flex-shrink: 0; margin-top: 4px; }
.foot-contact a { color: var(--fog); }
.footer-legal { position: relative; z-index: 2; border-top: 1px solid var(--seam); margin-top: var(--s8); padding-top: var(--s6); }
.footer-legal p { font-size: 0.8125rem; color: var(--fog-dim); max-width: none; margin-bottom: 8px; }
.ghost-wordmark {
  position: absolute; left: 50%; bottom: -0.24em;
  transform: translateX(calc(-50% + var(--gdrift, 0px))); /* JS feeds --gdrift on scroll */
  z-index: 1; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--font-serif); font-style: italic; font-weight: 380;
  font-size: clamp(5rem, 16vw, 15rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198, 161, 91, 0.13);
}

/* ---------- reveals ----------
   Everything is gated behind html.anim-boot, which JS adds only when
   prefers-reduced-motion is off. No JS (or reduced motion) = instant finals. */
.anim-boot .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1100ms ease, transform 1300ms var(--ease-luxe);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.anim-boot .reveal.in { opacity: 1; transform: none; }

/* image reveals: clip-path inset rises from the bottom, image settles 1.06 -> 1 */
.reveal-img { overflow: hidden; }
.anim-boot .reveal-img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1200ms var(--ease-luxe) calc(var(--i, 0) * 120ms);
}
.anim-boot .reveal-img.in { clip-path: inset(0 0 0 0); }
.anim-boot .reveal-img img {
  transform: scale(1.06);
  transition: transform 1400ms var(--ease-luxe) calc(var(--i, 0) * 120ms), filter 1300ms var(--ease-luxe);
}
.anim-boot .reveal-img.in img { transform: scale(1); }
.anim-boot .work-card.reveal-img.in:hover img,
.anim-boot .work-card.reveal-img.in:focus-visible img { transform: scale(1.04); }
.anim-boot .frame.reveal-img.in:hover img { transform: scale(1.03); }

/* chips fade-scale in on entry (JS tags chips outside heroes/pageheads with .chip-r) */
.anim-boot .chip-r { opacity: 0; transform: scale(0.92); transition: opacity 900ms ease, transform 1s var(--ease-luxe); }
.anim-boot .chip-r.in { opacity: 1; transform: none; }

/* headline word-by-word reveal (JS wraps words in .hw, gold italics land last) */
.anim-boot .hw {
  display: inline-block; opacity: 0; transform: translateY(0.55em);
  transition: opacity 1s ease, transform 1.15s var(--ease-luxe);
}
.anim-boot h1.words-in .hw { opacity: 1; transform: none; }

/* staggered children inside single-reveal parents */
.anim-boot .craftlist.reveal li,
.anim-boot form[data-demo].reveal .field,
.anim-boot .specplate.reveal .spec {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s ease, transform 1.1s var(--ease-luxe);
}
.anim-boot .craftlist.reveal li:nth-child(2), .anim-boot form[data-demo].reveal .field:nth-child(2), .anim-boot .specplate.reveal .spec:nth-child(2) { transition-delay: 130ms; }
.anim-boot .craftlist.reveal li:nth-child(3), .anim-boot form[data-demo].reveal .field:nth-child(3), .anim-boot .specplate.reveal .spec:nth-child(3) { transition-delay: 260ms; }
.anim-boot .craftlist.reveal li:nth-child(4), .anim-boot form[data-demo].reveal .field:nth-child(4), .anim-boot .specplate.reveal .spec:nth-child(4) { transition-delay: 390ms; }
.anim-boot form[data-demo].reveal .field:nth-child(5) { transition-delay: 520ms; }
.anim-boot form[data-demo].reveal .field:nth-child(6) { transition-delay: 650ms; }
.anim-boot form[data-demo].reveal .field:nth-child(7) { transition-delay: 780ms; }
.anim-boot .craftlist.reveal.in li,
.anim-boot form[data-demo].reveal.in .field,
.anim-boot .specplate.reveal.in .spec { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img, .reveal-img img, .hw, .chip-r,
  .craftlist li, .formgrid .field, .specplate .spec, .quoteband .orn {
    opacity: 1 !important; transform: none !important; transition: none !important; clip-path: none !important;
  }
  .scroll-label::after, .hero-media img, .hero-media::before, .grid-floor::before,
  .hero-kicker, .hero-sub, .hero .hero-actions, .scroll-label,
  .pagehead .crumbs, .pagehead .chip, .pagehead .lead,
  .case-hero .crumbs, .case-hero .chip { animation: none !important; }
  .work-media img, .btn, .btn::before, .btn svg, .textlink svg, .nav a::after { transition: none !important; }
  .work-card:hover .work-media img { transform: none; }
  .step::before, .stat::before, .specplate::before, .timeline::before { transform: none !important; transition: none !important; }
  .tl-item::before { transform: translateX(-4px) !important; transition: none !important; }
  .quoteband blockquote p { letter-spacing: 0 !important; transition: none !important; }
  .ghost-wordmark { transform: translateX(-50%) !important; }
}
