/* ==========================================================================
   URIM — brand pass
   Deep black ground, charcoal and warm-gray surfaces, sandstone and ivory
   text, whiskey for accents and hairlines, burgundy held in reserve.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* brand palette */
  --black:      #0A0A0A;
  --charcoal:   #141414;
  --warm-gray:  #2A2724;
  --sandstone:  #D2C1A6;
  --whiskey:    #CB873A;
  --burgundy:   #8B1F2A;
  --ivory:      #FFFFFF;

  /* derived, kept close to the brand hue */
  --surface-0:  var(--black);
  --surface-1:  var(--charcoal);
  --surface-2:  #1B1916;                      /* between charcoal and warm gray */
  --rule:       #2E2A26;
  --rule-2:     #4A433C;
  --sand-dim:   #A8987F;                      /* tertiary labels: 6.9:1 on black */
  --whiskey-hi: #E1A05A;                      /* whiskey hover */
  --scrim:      10 10 10;                     /* rgb of the ground, for gradients */

  /* Neue Haas Grotesk Display via Adobe Fonts when the kit is linked; Helvetica Neue is the metric-compatible fallback */
  --sans: 'neue-haas-grotesk-display', 'Neue Haas Grotesk Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Literata', 'Iowan Old Style', 'Times New Roman', serif;

  --space-xs: 4px;  --space-sm: 8px;  --space-md: 12px; --space-lg: 16px;
  --space-xl: 24px; --space-2xl: 32px; --space-3xl: 48px; --space-4xl: 64px; --space-5xl: 96px;
  --gutter: clamp(20px, 4vw, 64px);

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.15rem, 1.1rem + 0.4vw, 1.4rem);
  --text-xl: clamp(1.8rem, 1.2rem + 2.3vw, 3.1rem);
  --text-2xl: clamp(2.6rem, 1.5rem + 4.6vw, 5.4rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --btn-h: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; background: var(--black); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: transparent; color: var(--sandstone);   /* html carries the black; body stays clear so #glow shows through */
  font-family: var(--sans); font-size: var(--text-base); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip; font-kerning: normal;
}
:focus-visible { outline: 2px solid var(--whiskey); outline-offset: 3px; }
canvas { display: block; }
a { color: inherit; }
::selection { background: var(--whiskey); color: var(--black); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- fixed layers, back to front ---------- */
/* warm horizon behind the field: whiskey low and left, dark amber fading up. Depth, not decoration. */
#glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--black);
  background-image:
    radial-gradient(ellipse 95% 62% at 22% 108%, rgba(203,135,58,0.42), rgba(203,135,58,0) 62%),
    radial-gradient(ellipse 70% 50% at 85% 0%,  rgba(42,39,36,0.9),   rgba(42,39,36,0) 60%),
    linear-gradient(to bottom, #121110 0%, #0A0A0A 55%);
}
#app { position: fixed; inset: 0; z-index: 0; transform-origin: 50% 0%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
#app.live { opacity: 1; }
#veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(var(--scrim), 0.55) 0%, rgba(var(--scrim), 0) 20%),
    linear-gradient(to top,    rgba(var(--scrim), 0.32) 0%, rgba(var(--scrim), 0) 30%);
}
/* film grain over everything, faint */
#grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.045;   /* no blend mode: Safari composites canvases under blended layers unreliably */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ---------- navigation ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: var(--space-2xl);
  padding: clamp(14px, 1.8vw, 24px) var(--gutter);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--scrim), 0.6), rgba(var(--scrim), 0));
}
.navbar > * { pointer-events: auto; }
/* once the page moves, the header becomes a solid band and content passes behind it (toggled by sections.js) */
.navbar { border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.navbar.scrolled { pointer-events: auto; background: rgba(10, 10, 10, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: rgba(210, 193, 166, 0.14); }
.on-light .navbar.scrolled { background: rgba(235, 228, 216, 0.88); border-bottom-color: rgba(42, 39, 36, 0.16); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--whiskey); }
.brand-mark { width: 52px; height: 52px; display: block; transition: transform .5s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(8deg); }
.brand-word { font-weight: 500; letter-spacing: 0.34em; font-size: 0.95rem; color: var(--ivory); padding-left: 2px; }
.nav-links { display: flex; gap: var(--space-xl); margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.02em; color: var(--sandstone);
  padding: 8px 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ivory); border-bottom-color: var(--whiskey); }
.nav-toggle { display: none; }

/* thin-line section rail */
.side-nav {
  position: fixed; top: 50%; right: clamp(16px, 1.8vw, 34px); transform: translateY(-50%); z-index: 44;
  display: flex; flex-direction: column; align-items: flex-end; gap: 22px; pointer-events: none; transition: opacity .4s;
}
.side-nav.gone { opacity: 0; }
.side-link { display: flex; align-items: center; height: 14px; text-decoration: none; pointer-events: auto; }
.side-label {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; margin-right: 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sandstone);
  transition: max-width .4s var(--ease-out), opacity .3s, margin-right .4s var(--ease-out);
}
.side-line { width: 20px; height: 1px; background: var(--sandstone); opacity: .5; transition: width .38s var(--ease-out), opacity .3s, background .3s; }
.side-link:hover .side-label, .side-link.active .side-label { max-width: 140px; opacity: 1; margin-right: 12px; }
.side-link:hover .side-line, .side-link.active .side-line { width: 44px; opacity: 1; background: var(--whiskey); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 24px; text-decoration: none; white-space: nowrap;
  font-family: var(--sans); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.04em; line-height: 1;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn .arw { transition: transform .25s var(--ease-out); }
.btn:hover .arw { transform: translateX(4px); }
.btn-primary { background: var(--whiskey); color: var(--black); border-color: var(--whiskey); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--whiskey-hi); border-color: var(--whiskey-hi); }
.btn-secondary { background: transparent; color: var(--ivory); border-color: var(--rule-2); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--sandstone); }
.btn-sm { height: 42px; padding: 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-2xl); }
.text-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--whiskey); }
.text-link .arw { transition: transform .25s var(--ease-out); }
.text-link:hover .arw { transform: translateX(4px); }
.text-link:hover { color: var(--whiskey-hi); }

/* whiskey hairline: the brand's short rule under a statement */
.hair { display: block; width: 44px; height: 1px; background: var(--whiskey); margin: var(--space-xl) 0 0; }
.hair-center { margin-left: auto; margin-right: auto; }

/* ---------- scroll story ---------- */
#story { position: relative; z-index: 2; pointer-events: none; }
.chapter {
  min-height: 100vh; min-height: 100svh; position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 14vh var(--gutter) clamp(40px, 8vh, 88px);
}
.chapter.right { justify-content: flex-end; }
.copy {
  position: relative; isolation: isolate; max-width: 580px; pointer-events: auto;
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.copy.in { opacity: 1; transform: none; }
/* legibility scrim, darkest behind the text, gone before its own edge */
.copy::before {
  content: ""; position: absolute; inset: -22% -26%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse farthest-side at 50% 55%,
    rgba(var(--scrim), 0.88) 26%, rgba(var(--scrim), 0.62) 52%, rgba(var(--scrim), 0.26) 78%, rgba(var(--scrim), 0) 100%);
}
.hero-copy { max-width: 760px; }

.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: var(--space-lg);
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--whiskey);
}
.eyebrow .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; text-wrap: balance; color: var(--ivory); font-variation-settings: 'opsz' 72; }
h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.015em; color: var(--ivory); }
h1 { font-size: var(--text-2xl); line-height: 1.02; }
.chapter h2 { font-size: var(--text-xl); line-height: 1.1; }
.copy p { margin-top: var(--space-xl); max-width: 54ch; color: var(--sandstone); }
.copy p + p { margin-top: var(--space-md); }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--ivory) !important; font-weight: 400; }
.copy .hair + p { margin-top: var(--space-xl); }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 88px);
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand-dim); transition: opacity .5s;
}
.scroll-cue i { width: 36px; height: 1px; background: var(--whiskey); transform-origin: left; animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0%, 100% { transform: scaleX(.3); opacity: .5 } 50% { transform: scaleX(1); opacity: 1 } }

/* purpose */
.beliefs-copy { max-width: 640px; }
/* small type over the field gets a soft dark halo, so a label never has to fight a lit block behind it */
.chapter .eyebrow, .copy p { text-shadow: 0 0 2px rgba(var(--scrim), 1), 0 0 10px rgba(var(--scrim), 0.9), 0 0 24px rgba(var(--scrim), 0.7); }
.statement-copy { max-width: 760px; }
.statement-copy h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); }
.beliefs { list-style: none; display: flex; flex-direction: column; gap: var(--space-xl); margin-top: var(--space-xl); }
.beliefs li { display: grid; gap: 6px; opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
.copy.in .beliefs li { opacity: 1; transform: none; }
.beliefs strong { font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.01em; line-height: 1.25; color: var(--ivory); }
.beliefs span { color: var(--sandstone); max-width: 50ch; }

/* method steps */
.step-num { display: block; font-size: var(--text-xs); letter-spacing: 0.2em; color: var(--whiskey); margin-bottom: var(--space-md); font-variant-numeric: tabular-nums; }
.step-title { font-size: clamp(2.8rem, 1.6rem + 5.4vw, 6rem) !important; line-height: .98 !important; }
.step-sub { font-size: var(--text-xs) !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand-dim) !important; margin-top: var(--space-lg) !important; }
.step-copy .step-sub + p { margin-top: var(--space-lg); }

/* ---------- flat sections: shared ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
/* typewriter caret: a column of pixels in whiskey */
.ox-caret { display: inline-block; height: 1em; width: .23em; margin-left: .08em; vertical-align: -0.12em; color: var(--whiskey); animation: ox-blink 1s steps(1) infinite; }
.ox-caret svg { display: block; height: 100%; width: 100%; }
.ox-caret.tw-typing { animation: none; opacity: 1; }
@keyframes ox-blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }
.ink { color: var(--ivory); }
.mut { color: var(--sand-dim); }

/* ---------- Our Capabilities — horizontal accordion ---------- */
.sv { position: relative; z-index: 3; background: var(--surface-1); padding: clamp(88px, 13vh, 170px) var(--gutter) clamp(72px, 12vh, 150px); overflow: hidden; }
.sv::before { content: ""; position: absolute; inset: 0; pointer-events: none;   /* quiet depth: a warm rise low on the right, cooler and darker at the top */
  background:
    linear-gradient(to bottom, rgba(var(--scrim), 0.5), rgba(var(--scrim), 0) 120px),
    radial-gradient(ellipse 78% 62% at 80% 104%, rgba(203,135,58,0.22), rgba(203,135,58,0.06) 45%, rgba(203,135,58,0) 70%),
    radial-gradient(ellipse 60% 45% at 8% 30%, rgba(42,39,36,0.55), rgba(42,39,36,0) 70%); }
.sv > * { position: relative; }
.sv-head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 1.5rem; row-gap: .5rem; margin-bottom: 2.6rem; }
.sv-head .eyebrow { grid-column: 1 / -1; margin-bottom: .3rem; }
.sv-title { grid-column: 1; font-size: var(--text-xl); line-height: 1.1; max-width: 24ch; }
.sv-lede { grid-column: 1; max-width: 52ch; color: var(--sandstone); margin-top: .4rem; }
.sv-cta { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
.sv-kicker { font-size: var(--text-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--sand-dim); margin: 0 0 .9rem; }
.sv-cards { display: flex; gap: 12px; }
.sv-card {
  flex: 1 1 0; min-width: 0; background: var(--surface-2); padding: 28px; height: clamp(420px, 31vw, 560px);
  display: flex; flex-direction: column; overflow: hidden; cursor: default; border: 1px solid var(--rule);
  transition: flex-grow .55s cubic-bezier(.4,0,.12,1), border-color .4s;
 background-image: linear-gradient(to bottom, rgba(210,193,166,0.055), rgba(210,193,166,0) 48%);}
.sv-card:hover { flex-grow: 2.7; border-color: var(--rule-2); }
.sv-top { display: flex; justify-content: flex-end; }
.sv-tag { font-size: 0.68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--whiskey); border: 1px solid rgba(203,135,58,.35); padding: 7px 13px; white-space: nowrap; }
.sv-icon { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 8px 0 16px; }
.sv-canvas { width: clamp(130px, 58%, 175px); aspect-ratio: 1 / 1; height: auto; max-height: 100%; display: block; }
.sv-content { flex: 0 0 auto; }
.sv-name { font-size: clamp(1.05rem, 1.45vw, 1.4rem); line-height: 1.18; }
.sv-detail { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .55s cubic-bezier(.4,0,.12,1), opacity .4s ease; }
.sv-card:hover .sv-detail { max-height: 230px; opacity: 1; }
.sv-rule { display: block; height: 1px; background: var(--whiskey); width: 44px; margin: 15px 0; }
.sv-desc { font-size: 0.94rem; line-height: 1.55; color: var(--sandstone); max-width: 34ch; }
@media (max-width: 820px) {
  .sv-cards { flex-direction: column; }
  .sv-card { flex: none; height: auto; }
  .sv-card:hover { flex-grow: 0; }
  .sv-content { margin-top: 1.4rem; }
  .sv-detail { max-height: none; opacity: 1; }
  .sv-head { grid-template-columns: 1fr; }
  .sv-cta { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .4rem; }
}

/* ---------- Products — dithered tiles ---------- */
/* the one light surface on the page: warm stone paper, ink type, burgundy labels */
.su {
  --paper: #EBE4D8; --paper-ink: #0A0A0A; --paper-body: #3B352F; --paper-mut: #625A51; --su-dot: #2A2724;
  position: relative; z-index: 3; background: var(--paper); color: var(--paper-body); min-height: 100vh; display: flex; overflow: hidden;
  padding: clamp(72px, 11vh, 130px) var(--gutter) clamp(48px, 7vh, 96px);
  background-image: radial-gradient(rgba(42,39,36,0.14) 0.7px, transparent 0.8px); background-size: 32px 32px;
}
.su::before { content: ""; position: absolute; inset: 0; pointer-events: none;   /* stone: a little lighter top-left, warmer bottom-right */
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 45%, rgba(203,135,58,0.06) 100%); }
.su::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 72% 112%, rgba(203,135,58,0.22), rgba(203,135,58,0) 65%); }
.su .eyebrow, .su .ox-caret, .su .text-link { color: var(--burgundy); }
.su .ink { color: var(--paper-ink); }
.su .mut { color: var(--paper-mut); }
.su .btn-primary { background: var(--black); color: var(--ivory); border-color: var(--black); }
.su .btn-primary:hover, .su .btn-primary:focus-visible { background: var(--warm-gray); border-color: var(--warm-gray); }
.su :focus-visible { outline-color: var(--burgundy); }
.su-inner { position: relative; z-index: 1; flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(48px, 10vh, 120px); }
.su-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4vw; }
.su-head { flex: 0 1 34rem; }
.su-title { font-size: var(--text-xl); line-height: 1.12; }
.su-lede { margin-top: 1.5rem; max-width: 30rem; color: var(--paper-body); }
.su-head .btn { margin-top: 1.9rem; }
.su-tiles { position: relative; flex: 0 0 auto; align-self: center; width: min(44vw, 580px); aspect-ratio: 1 / 1.02; margin-right: clamp(16px, 7vw, 110px); }  /* keeps clear of the side rail and its open label */
.su-slot { position: absolute; }
.su-slot-1 { width: 53%; aspect-ratio: 1; top: 0; left: 0; transform: rotate(-5deg); }
.su-slot-2 { width: 40%; aspect-ratio: 1; top: 13%; right: 0; transform: rotate(4deg); }
.su-slot-3 { width: 44%; aspect-ratio: 1; bottom: 0; left: 17%; transform: rotate(-3deg); }
.su-tile { position: absolute; top: -35%; left: -35%; width: 170%; height: 170%; display: block; pointer-events: none; touch-action: none; }
.su-slot { cursor: crosshair; }
.su-cap { position: absolute; left: 6%; top: 100%; margin-top: 4px; font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); pointer-events: none; white-space: nowrap; }
.su-cap i { display: block; font-style: normal; letter-spacing: .06em; text-transform: none; color: var(--paper-mut); margin-top: 3px; }
.su-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 6vw; }
.su-big { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.3vw, 2.15rem); line-height: 1.18; max-width: 26ch; letter-spacing: -0.01em; }
.su-side { flex: 0 0 18rem; max-width: 18rem; font-size: var(--text-sm); line-height: 1.6; color: var(--paper-body); }

/* fixed chrome flips to ink while a light section sits under it (toggled by sections.js) */
.on-light .navbar { background: none; }   /* ink on paper needs no scrim, and a gradient here banded in WebKit */
.on-light .brand-word { color: var(--black); }
.on-light .nav-links a { color: #3B352F; }
.on-light .nav-links a:hover, .on-light .nav-links a:focus-visible { color: var(--black); border-bottom-color: var(--burgundy); }
.on-light .nav-toggle { border-color: #A79C8C; }
.on-light .nav-toggle span { background: var(--black); }
.on-light-mid .side-label { color: #3B352F; }
.on-light-mid .side-line { background: #3B352F; }
.on-light-mid .side-link:hover .side-line, .on-light-mid .side-link.active .side-line { background: var(--burgundy); }
@media (max-width: 860px) {
  .su-top, .su-bottom { flex-direction: column; gap: 2.4rem; align-items: flex-start; }
  .su-head { flex: none; }
  .su-tiles { width: min(86vw, 430px); align-self: center; margin: .5rem 0 0; }
  .su-side { flex-basis: auto; max-width: 30rem; }
}
@media (max-width: 640px) {
  .su-tiles { width: 100%; aspect-ratio: auto; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: clamp(52px, 14vh, 108px); margin: 0; }
  .su-slot { position: relative; inset: auto; width: min(64vw, 280px); }
}

/* ---------- Founder — scroll-developed dithered portrait ---------- */
.px-scene { position: relative; z-index: 3; height: 320vh; background: var(--surface-1); }
.px-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.px-text { position: absolute; left: var(--gutter); top: clamp(92px, 16vh, 172px); max-width: min(480px, 34vw); z-index: 2; }
.px-portrait { position: absolute; right: -6vw; top: 6vh; height: 100%; display: flex; align-items: flex-start; justify-content: flex-end; z-index: 1; }
#px-cv { display: block; }
.px-role { font-size: var(--text-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--whiskey); margin-bottom: .85rem; }
.px-name-big { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -0.01em; margin-bottom: 1.4rem; }
.px-bio { color: var(--sandstone); max-width: 44ch; }
@media (max-width: 960px) {
  .px-scene { height: 240vh; }
  .px-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 0 var(--gutter); }
  .px-text { position: static; max-width: 100%; text-align: center; order: 2; }
  .px-text .hair { margin-left: auto; margin-right: auto; }
  .px-portrait { position: static; height: auto; order: 1; justify-content: center; }
}

/* ---------- Research & insights — full-bleed alternating panels ---------- */
.rs { position: relative; z-index: 3; background: var(--black); padding: clamp(120px, 16vh, 220px) 0 0; }
.rs-head { padding: 0 var(--gutter); margin-bottom: clamp(34px, 5vh, 60px); }
.rs-title { font-size: var(--text-xl); line-height: 1.12; max-width: 22ch; }
.rs-panels { display: grid; grid-template-columns: repeat(3, 1fr); }
.rs-panel { cursor: default; min-height: clamp(380px, 50vh, 540px); padding: clamp(26px, 2.6vw, 46px); display: flex; flex-direction: column; text-decoration: none; transition: filter .3s ease; }
.rs-panel:hover { filter: brightness(1.08); }
.rs-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rs-icon svg { width: clamp(52px, 5vw, 84px); height: auto; display: block; transition: transform .45s var(--ease-out); transform-origin: 50% 50%; }
.rs-panel:hover .rs-icon svg { transform: scale(1.06); }
.rs-icon rect { transform-box: fill-box; transform-origin: center; }
.rs-num { font-size: .8rem; letter-spacing: .12em; opacity: .7; transition: transform .45s var(--ease-out); }
.rs-panel:hover .rs-num { transform: translateX(-6px); }
.rs-body { margin-top: auto; transition: transform .5s var(--ease-out); }
.rs-panel:hover .rs-body { transform: translateY(-10px); }
.rs-date { display: block; font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-bottom: .9rem; }
.rs-name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.18; margin-bottom: .7rem; color: inherit; }
.rs-desc { font-size: var(--text-sm); line-height: 1.55; max-width: 34ch; opacity: .85; }
.rs-go { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; transition: opacity .3s; }
.rs-panel:hover .rs-go { opacity: 1; }
.rs-go .arw { transition: transform .3s; }
.rs-panel:hover .rs-go .arw { transform: translateX(7px); }
.rs-accent { background: var(--whiskey); color: var(--black); }
.rs-dark { background: var(--surface-2); color: var(--ivory); }
.rs-light { background: var(--sandstone); color: var(--black); }
@media (max-width: 820px) { .rs-panels { grid-template-columns: 1fr; } .rs-panel { cursor: default; min-height: 320px; } }

/* ---------- brand statement — centred serif over a whiskey horizon ---------- */
.stmt { position: relative; z-index: 3; background: var(--black); text-align: center; overflow: hidden;
  padding: clamp(110px, 16vh, 200px) var(--gutter) clamp(150px, 24vh, 280px); }
.stmt::before { content: ""; position: absolute; inset: 0; pointer-events: none;   /* the ground warms toward the horizon */
  background: linear-gradient(to bottom, var(--black) 0%, #100E0C 55%, #1A1410 100%); }
.stmt::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 62%; pointer-events: none;   /* the horizon itself */
  background: radial-gradient(ellipse 58% 100% at 50% 106%, rgba(203,135,58,0.62) 0%, rgba(203,135,58,0.30) 32%, rgba(203,135,58,0.08) 60%, rgba(203,135,58,0) 78%); }
.stmt-inner { position: relative; z-index: 1; }
.stmt-text { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; color: var(--ivory); text-wrap: balance; max-width: 26ch; margin: 0 auto;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1.16; font-variation-settings: 'opsz' 72; }
.stmt .hair { margin-top: var(--space-2xl); }

/* ---------- footer ---------- */
#contact { position: relative; z-index: 3; background: var(--black); color: var(--sandstone); padding: clamp(80px, 13vh, 160px) var(--gutter) clamp(32px, 5vh, 56px); overflow: hidden; }
#contact::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(203,135,58,0.16), rgba(203,135,58,0) 65%); }
#contact > * { position: relative; z-index: 1; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-2xl) var(--space-3xl); margin-bottom: clamp(48px, 7vh, 88px); }
.ft-headline { font-family: var(--serif); font-weight: 300; font-size: var(--text-xl); line-height: 1.15; letter-spacing: -0.01em; color: var(--ivory); max-width: 22ch; }
.ft-cta { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.ft-alt { font-size: var(--text-sm); color: var(--sandstone); text-decoration: none; border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.ft-alt:hover, .ft-alt:focus-visible { color: var(--ivory); border-bottom-color: var(--whiskey); }
.ft-rule { border: 0; border-top: 1px solid var(--rule-2); margin-bottom: clamp(32px, 5vh, 56px); }
.ft-cols { display: grid; grid-template-columns: 1.2fr 0.8fr 1.2fr; gap: var(--space-3xl); }
.ft-label { display: block; font-size: var(--text-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--whiskey); margin-bottom: var(--space-xl); }
.ft-brand { font-family: var(--serif); font-weight: 300; font-size: var(--text-lg); line-height: 1.3; color: var(--ivory); }
.ft-note { font-size: var(--text-sm); margin-top: var(--space-md); color: var(--sand-dim); }
.ft-col a { display: block; width: max-content; text-decoration: none; margin-bottom: var(--space-md); color: var(--sandstone); transition: color .2s; }
.ft-col a:hover, .ft-col a:focus-visible { color: var(--ivory); }
.ft-news-lede { font-size: var(--text-sm); line-height: 1.55; max-width: 34ch; margin-bottom: var(--space-lg); }
.news-form { display: flex; align-items: stretch; max-width: 380px; border-bottom: 1px solid var(--rule-2); transition: border-color .2s; }
.news-form:focus-within { border-bottom-color: var(--whiskey); }
.news-form input {
  flex: 1; min-width: 0; height: 46px; background: none; border: 0; outline: 0; color: var(--ivory);
  font-family: var(--sans); font-size: var(--text-base);
}
.news-form input::placeholder { color: var(--sand-dim); }
.news-form button { width: 46px; height: 46px; background: none; border: 0; color: var(--whiskey); font-size: 1.25rem; cursor: pointer; display: grid; place-items: center; }
.news-form button .arw { transition: transform .25s var(--ease-out); display: block; }
.news-form button:hover .arw { transform: translateX(4px); }
.ft-brandmark { margin-top: clamp(64px, 10vh, 130px); }
/* the closing field: an ordered grid of blocks that scatters near the cursor (drawn by the scene script) */
.ft-grid { display: block; width: 100%; aspect-ratio: 6 / 1; min-height: 120px; }
.ft-rule2 { border: 0; border-top: 1px solid var(--rule); margin: clamp(22px, 3.5vh, 44px) 0 clamp(16px, 2.2vh, 26px); }
.ft-legal { display: flex; justify-content: space-between; font-size: var(--text-xs); letter-spacing: .04em; color: var(--sand-dim); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ft-top { grid-template-columns: 1fr; align-items: start; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-col-news { grid-column: 1 / -1; }
  .side-nav { display: none; }
}
@media (max-width: 640px) {
  .nav-links, .navbar .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 42px; height: 42px; padding: 0 11px; background: none; border: 1px solid var(--rule-2); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--ivory); }
  .navbar.menu-open .nav-links {
    display: flex; flex-direction: column; gap: var(--space-sm);
    position: absolute; top: 100%; right: var(--gutter); min-width: 220px; padding: var(--space-md) var(--space-lg);
    background: var(--surface-2); border: 1px solid var(--rule-2);
  }
  .navbar.menu-open .nav-links a { padding: 10px 0; }
  .copy::before { inset: -18% -14%; }
  .chapter { padding-bottom: clamp(28px, 8vh, 64px); }
  .scroll-cue { display: none; }
  .ft-cols { grid-template-columns: 1fr; }
  .ft-cta { flex-wrap: wrap; }
  .actions .btn, .ft-cta .btn { width: 100%; }
  .ft-legal { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .copy, .reveal, .beliefs li { opacity: 1; transform: none; transition: none; }
  .scroll-cue i { animation: none; }
  #app, .brand-mark { transition: none; }
  .ox-caret { animation: none; }
  .sv-card, .sv-detail, .rs-panel *, .rs-body { transition: none; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.page-contact { color: var(--sandstone); }
.page-contact .navbar { position: sticky; }
.ct { position: relative; z-index: 2; min-height: 100vh; padding: clamp(120px, 16vh, 190px) var(--gutter) clamp(40px, 6vh, 72px); display: flex; flex-direction: column; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; flex: 1; }
.ct-title { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem); line-height: 1.08; max-width: 14ch; }
.ct-lede { margin-top: var(--space-xl); max-width: 42ch; color: var(--sandstone); font-size: var(--text-base); }
.ct-steps { list-style: none; margin-top: clamp(36px, 5vh, 56px); display: grid; gap: 22px; max-width: 46ch; }
.ct-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.ct-step-n { font-size: var(--text-xs); letter-spacing: .18em; color: var(--whiskey); padding-top: 5px; font-variant-numeric: tabular-nums; }
.ct-steps strong { display: block; font-weight: 500; color: var(--ivory); letter-spacing: -0.005em; }
.ct-steps span:not(.ct-step-n) { display: block; margin-top: 3px; font-size: var(--text-sm); line-height: 1.55; color: var(--sand-dim); }
.ct-alt { margin-top: clamp(32px, 5vh, 52px); font-size: var(--text-sm); color: var(--sand-dim); }
.ct-alt a { color: var(--sandstone); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-2); }
.ct-alt a:hover { color: var(--ivory); text-decoration-color: var(--whiskey); }

.ct-panel { position: relative; background: var(--surface-2); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 44px);
  background-image: linear-gradient(to bottom, rgba(210,193,166,0.05), rgba(210,193,166,0) 40%), radial-gradient(ellipse 70% 50% at 100% 100%, rgba(203,135,58,0.10), rgba(203,135,58,0) 65%); }
.ct-form { display: grid; gap: clamp(22px, 2.6vw, 30px); }
.ct-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); }
.ct-field { display: block; min-width: 0; border: 0; padding: 0; margin: 0; }
.ct-label { display: block; font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--sand-dim); margin-bottom: 8px; }
.ct-field input[type="text"], .ct-field input[type="email"], .ct-field textarea {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--rule-2); color: var(--ivory); font: inherit; font-size: var(--text-base);
  padding: 10px 0 12px; border-radius: 0; outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none; resize: vertical; }
.ct-field textarea { line-height: 1.55; min-height: 120px; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #6E6457; }
.ct-field input:focus, .ct-field textarea:focus { border-bottom-color: var(--whiskey); }
.ct-field.is-invalid input, .ct-field.is-invalid textarea { border-bottom-color: #C9553D; }
.ct-field.is-invalid .ct-label { color: #E0846E; }
.ct-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-pills label { position: relative; cursor: pointer; }
.ct-pills input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.ct-pills span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--rule-2); color: var(--sandstone); font-size: var(--text-sm); letter-spacing: .02em; transition: border-color .2s, color .2s, background .2s; white-space: nowrap; }
.ct-pills label:hover span { border-color: var(--sandstone); }
.ct-pills input:checked + span { background: var(--whiskey); border-color: var(--whiskey); color: var(--black); font-weight: 500; }
.ct-pills input:focus-visible + span { outline: 2px solid var(--whiskey); outline-offset: 3px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.ct-fine { font-size: var(--text-sm); color: var(--sand-dim); max-width: 30ch; line-height: 1.5; }
.ct-form .btn.is-busy { opacity: .7; cursor: progress; }
.ct-error { font-size: var(--text-sm); color: #E0846E; line-height: 1.5; }
.ct-error a { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; }
.ct-done .ct-done-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.18; color: var(--ivory); max-width: 24ch; margin-top: var(--space-lg); }
.ct-done .hair { margin-top: var(--space-xl); }
.ct-done-copy { margin-top: var(--space-xl); color: var(--sandstone); max-width: 44ch; }
.ct-done-copy a { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.ct-done .text-link { margin-top: var(--space-2xl); }
.ct-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: clamp(56px, 8vh, 96px); font-size: var(--text-xs); color: var(--sand-dim); letter-spacing: .02em; }
@media (max-width: 960px) {
  .ct-grid { grid-template-columns: 1fr; gap: 44px; }
  .ct-title { max-width: 18ch; }
}
@media (max-width: 640px) {
  .ct { padding-top: 104px; }
  .ct-row-2 { grid-template-columns: 1fr; }
  .ct-panel { margin: 0 calc(-1 * var(--gutter) + 12px); padding: 24px 18px; }
  .ct-actions .btn { width: 100%; }
  .ct-foot { flex-direction: column; gap: 6px; }
}
