/* 888 Construction and Supplies Corp
   Architectural gallery at dusk: ink, warm gold light, Cabinet Grotesk + Satoshi.
   Shares its tokens with the /free-consultation landing page so both read as one brand.
   Radius rule: inputs and chips 6px, buttons 8px, cards 14px, framed media 20px outer / 13px inner. */

@font-face { font-family: 'Cabinet Grotesk'; src: url('/assets/fonts/cabinet-grotesk-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('/assets/fonts/cabinet-grotesk-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('/assets/fonts/cabinet-grotesk-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #100f0d;
  --paper-2: #14130f;
  --surface: #1e1b15;
  --surface-2: #191711;
  --deep: #0b0a08;
  --ink: #f8f5ec;
  --ink-2: #c3bfb2;
  --ink-3: #b3a994;
  --line: #423c30;
  --line-soft: rgba(215, 182, 110, .14);
  --input-line: #807665;
  --gold: #ddbf73;
  --gold-text: #d1b779;
  --gold-grad: linear-gradient(115deg, #f0d99b, #d6b566 65%, #c9a354);
  --on-gold: #251b09;
  --danger: #ffaba2;
  --danger-tint: #40241e;
  --glass: rgba(25, 23, 18, .8);
  --display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.65, 0, .25, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: max(clamp(20px, 5vw, 88px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --shell: 1400px;
  --section-y: clamp(88px, 11vw, 150px);
  --header-h: 82px;
  --r-input: 6px;
  --r-btn: 8px;
  --r-card: 14px;
  --r-frame: 20px;
  --r-frame-in: 13px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; scroll-padding-bottom: 96px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, h4, p, figure, blockquote, ul, fieldset { margin: 0; }
:where(ul[role="list"]) { list-style: none; padding: 0; }
p { color: var(--ink-2); text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(40px, 5vw, 72px); }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.03em; }
.hl { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: var(--gold); color: var(--on-gold); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 12px 18px; border-radius: var(--r-btn); background: var(--gold-grad); color: var(--on-gold); font-weight: 700; transform: translateY(-200%); transition: transform 200ms var(--ease-out); }
.skip-link:focus { transform: none; }

.shell { max-width: calc(var(--shell) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-y) 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 22px; }
.section-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-sub { font-size: 17px; line-height: 1.75; max-width: 56ch; margin-top: 22px; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 22px; border-radius: var(--r-btn); border: 1px solid transparent; font: 700 14px/1.2 var(--body); white-space: nowrap; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.btn > span[aria-hidden] { font-size: 20px; font-weight: 400; line-height: 1; }
.btn .icon { width: 18px; height: 18px; }
.btn-gold { background: var(--gold-grad); color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 24px rgba(199, 155, 36, .12); }
.btn-lg { min-height: 60px; padding: 18px 28px; gap: 34px; font-size: 15px; }
.btn:active { transform: scale(.97); }
.link-rule { display: inline-flex; align-items: center; gap: 22px; min-height: 48px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 500; color: var(--ink); transition: color 200ms ease; }
.link-rule .arw { font-size: 22px; line-height: 1; transition: transform 240ms var(--ease-out); }
.link-rule:active { color: var(--gold-text); }
.link-sm { font-size: 14px; min-height: 44px; gap: 16px; }
.round-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(25, 23, 18, .6); color: var(--ink); transition: transform 180ms var(--ease-out), border-color 200ms ease, color 200ms ease, opacity 200ms ease; }
.round-btn:active { transform: scale(.95); }
.round-btn:disabled, .round-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 36px rgba(199, 155, 36, .22); }
  .link-rule:hover { color: var(--gold-text); }
  .link-rule:hover .arw { transform: translate(3px, -3px); }
  .round-btn:not(:disabled):not([aria-disabled="true"]):hover { border-color: var(--gold); color: var(--gold); }
  .cf-pill:hover { border-color: var(--gold-text); color: var(--ink); }
  .viewer-close:hover { border-color: var(--gold); color: var(--gold); }
  .menu-toggle:hover, .viewer-original:hover, .contact-lines a:hover, .contact-phone:hover { color: var(--gold-text); }
}

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; padding: 14px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }
.header-inner { position: relative; max-width: var(--shell); min-height: 68px; margin: 0 auto; padding: 0 12px 0 20px; display: flex; align-items: center; gap: 26px; border: 1px solid rgba(230, 204, 150, .19); border-radius: var(--r-card); background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 32px rgba(0, 0, 0, .22); }
.logo { flex-shrink: 0; display: flex; align-items: center; min-height: 48px; }
.logo img { width: 190px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color 200ms ease; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.nav a:not(.btn):hover, .nav a:not(.btn):focus-visible { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav-cta { display: none; }
.header-cta { min-height: 44px; padding: 11px 18px; font-size: 13px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  background:
    linear-gradient(180deg, var(--paper) 0%, transparent 22%, transparent 70%, var(--paper) 100%),
    radial-gradient(ellipse 62% 72% at 73% 52%, #5c4520 0%, #33271a 36%, #1a1711 62%, var(--paper) 86%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 40% 45% at 72% 48%, rgba(228, 185, 91, .16), transparent 70%); transform-origin: 72% 50%; }
.hero-stage { width: 100%; max-width: calc(var(--shell) + var(--gutter) * 2); margin: 0 auto; padding: clamp(40px, 6vh, 80px) var(--gutter) clamp(56px, 8vh, 96px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-title { font-size: clamp(46px, 5.5vw, 88px); line-height: 1.02; letter-spacing: -.055em; }
.hero-title .line { display: block; }
.hero-title .word { display: inline-block; padding-bottom: .22em; margin-bottom: -.22em; }
.line-gold .word { color: #ead29a; background: linear-gradient(110deg, #f9eac7 10%, #e5c781 52%, #c09b51 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lede { margin-top: 28px; font-size: 17px; letter-spacing: .01em; color: var(--ink-2); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.hero-media { justify-self: end; width: 100%; max-width: 600px; }
.frame { position: relative; padding: 8px; border-radius: var(--r-frame); border: 1px solid rgba(233, 211, 161, .3); background: linear-gradient(135deg, rgba(248, 228, 181, .16), rgba(255, 255, 255, .02) 55%, rgba(248, 228, 181, .07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 90px rgba(0, 0, 0, .5); }
.frame img { width: 100%; height: auto; aspect-ratio: 1092 / 1060; object-fit: cover; border-radius: var(--r-frame-in); }
.frame::after { content: ''; position: absolute; inset: 8px; border-radius: var(--r-frame-in); pointer-events: none; background: linear-gradient(180deg, rgba(16, 15, 13, 0) 55%, rgba(16, 15, 13, .35)); }

/* ---------- Stats ---------- */
.stats { position: relative; background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stats-inner { max-width: calc(var(--shell) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
.stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: clamp(32px, 4vw, 56px) clamp(16px, 3vw, 44px); border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 6vw, 96px); line-height: .9; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-lead .stat-num { font-size: clamp(84px, 10.5vw, 164px); }
.count { display: inline-block; text-align: right; }
.stat-suf { color: var(--gold-text); }
.stat-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* ---------- Services ---------- */
.services { background: radial-gradient(ellipse 55% 45% at 10% 18%, rgba(73, 56, 28, .5), transparent 70%), var(--paper); }
.service-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.feature-panel { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(460px, 44vw, 640px); display: flex; align-items: flex-end; border-radius: var(--r-card); border: 1px solid var(--line-soft); background: var(--surface-2); }
.feature-media { position: absolute; inset: 0; z-index: -2; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease-out); }
.feature-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 15, 13, 0) 28%, rgba(16, 15, 13, .55) 56%, rgba(16, 15, 13, .95) 100%); }
.feature-panel::after { content: ''; position: absolute; inset: 0; z-index: 2; background: var(--paper); transform: scaleY(0); transform-origin: top; pointer-events: none; }
.feature-copy { padding: clamp(24px, 3vw, 40px); }
.feature-copy h3 { font-size: clamp(26px, 2.6vw, 38px); }
.feature-copy p { margin: 14px 0 20px; max-width: 46ch; color: #ddd6c6; }
.service-index { margin-top: clamp(16px, 2vw, 28px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service-col { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px) clamp(18px, 2vw, 28px) 4px; border-left: 1px solid var(--line-soft); }
.service-col:first-child { border-left: 0; padding-left: 0; }
.service-col .icon { width: 26px; height: 26px; color: var(--gold-text); margin-bottom: 24px; }
.service-col h3 { font-size: 22px; }
.service-col p { flex: 1; margin: 12px 0 18px; font-size: 15px; line-height: 1.7; }
.service-col .link-rule { align-self: flex-start; }
.services-cta { margin-top: clamp(40px, 5vw, 64px); }
@media (hover: hover) and (pointer: fine) { .feature-panel:hover .feature-media img { transform: scale(1.04); } }

/* ---------- About ---------- */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.about-media { position: sticky; top: calc(var(--header-h) + 40px); }
.about-photos { position: relative; aspect-ratio: 4 / 3; }
.about-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-card); opacity: 0; transform: scale(1.03); transition: opacity 700ms var(--ease), transform 1400ms var(--ease-out); }
.about-photo.is-active { opacity: 1; transform: none; }
.about-badge { position: absolute; right: -18px; bottom: -24px; z-index: 2; padding: 16px 22px; border-radius: var(--r-card); background: var(--gold-grad); color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 18px 44px rgba(0, 0, 0, .45); }
.badge-year { display: block; font: 800 36px/1 var(--display); letter-spacing: -.04em; }
.badge-txt { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.about-caption { margin-top: 40px; font-size: 13px; color: var(--ink-3); }
.about-story { display: flex; flex-direction: column; gap: clamp(72px, 14vh, 150px); padding-bottom: 8vh; }
.story-head h2 { font-size: clamp(40px, 4.6vw, 68px); }
.story-step h3 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 18px; }
.story-step p { font-size: 17px; line-height: 1.8; }
.story-quote { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.3 !important; letter-spacing: -.025em; color: var(--ink) !important; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-bottom: 36px; }
.highlights li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.highlights .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--gold-text); }
.highlights strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 700; color: var(--ink); }

/* ---------- Projects ---------- */
.projects { position: relative; padding: var(--section-y) 0; background: var(--paper); }
.projects-track { position: relative; }
.projects-intro { max-width: calc(var(--shell) + var(--gutter) * 2); margin: 0 auto clamp(32px, 4vw, 48px); padding: 0 var(--gutter); }
.projects-intro h2 { max-width: 12ch; }
.strip-controls { display: flex; gap: 10px; margin-top: 28px; }
.strip { display: flex; gap: clamp(14px, 2vw, 24px); margin: 0; padding: 8px var(--gutter) 24px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-item { flex: 0 0 auto; width: min(78vw, 420px); scroll-snap-align: start; }
.strip-frame { position: relative; display: block; width: 100%; padding: 6px; border-radius: 16px; border: 1px solid rgba(233, 211, 161, .22); background: linear-gradient(135deg, rgba(248, 228, 181, .1), rgba(255, 255, 255, .02)); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transition: transform 300ms var(--ease-out), border-color 300ms ease; }
.strip-frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 11px; background: #0c0b09; }
.strip-hint { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(16, 15, 13, .72); color: var(--ink); opacity: 0; transform: scale(.9); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.strip-hint .icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .strip-frame:hover { transform: translateY(-6px); border-color: rgba(233, 211, 161, .45); }
  .strip-frame:hover .strip-hint { opacity: 1; transform: none; }
}
@media (hover: none) { .strip-hint { opacity: 1; transform: none; width: 34px; height: 34px; } }

/* ---------- SLCC ---------- */
.slcc { overflow: hidden; text-align: center; background: radial-gradient(ellipse 50% 60% at 50% 55%, rgba(95, 70, 30, .38), transparent 70%), var(--paper); }
.slcc-ghost { position: absolute; left: 50%; top: 50%; z-index: 0; transform: translate(-50%, -50%); font: 800 clamp(150px, 30vw, 480px)/.8 var(--display); letter-spacing: -.06em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(221, 191, 115, .18); pointer-events: none; user-select: none; }
.slcc-inner { position: relative; z-index: 1; max-width: calc(880px + var(--gutter) * 2); }
.slcc-head .section-sub { margin-left: auto; margin-right: auto; }
.vault { margin-top: clamp(40px, 5vw, 64px); }
.vault-card { position: relative; padding: clamp(32px, 4vw, 52px); border-radius: var(--r-card); border: 1px solid rgba(215, 189, 132, .24); background: linear-gradient(160deg, rgba(244, 224, 179, .07), rgba(244, 224, 179, .015)), rgba(22, 20, 15, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .35); }
.vault-card::before { content: ''; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.vault-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 700; color: var(--gold-text); }
.vault-label .icon { width: 16px; height: 16px; }
.vault-card h3 { font-size: clamp(26px, 2.6vw, 36px); }
.vault-card p { margin: 16px auto 30px; max-width: 58ch; }
.vault-note { margin-top: 22px; font-size: 13px; color: var(--ink-3); }

/* ---------- Credentials ---------- */
.creds { background: var(--paper-2); }
.seal-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.seal { display: flex; flex-direction: column; gap: 10px; min-height: 210px; padding: clamp(24px, 3vw, 40px); background: var(--paper-2); }
.seal-code { font: 800 clamp(46px, 5vw, 76px)/.95 var(--display); letter-spacing: -.05em; color: var(--ink); }
.seal-name { max-width: 30ch; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.seal-status { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--gold-text); }
.seal-status .icon { width: 16px; height: 16px; stroke-width: 2.25; }
.docs { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.docs-note { max-width: 40ch; font-size: 16px; }
.docs-papers { display: flex; justify-content: flex-end; gap: clamp(20px, 3vw, 40px); padding-bottom: 24px; }
.paper { width: min(46%, 240px); padding: 0; border: 0; background: none; text-align: left; }
.paper img { width: 100%; height: auto; border-radius: 6px; background: #f4f1ea; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transform: rotate(-2deg); transition: transform 420ms var(--ease-out); }
.paper:nth-child(2) img { transform: rotate(2deg) translateY(18px); }
.paper-label { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--ink); }
.paper:nth-child(2) .paper-label { margin-top: 38px; }
.paper-label .arw { font-size: 18px; font-weight: 400; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .paper:hover img, .paper:nth-child(2):hover img { transform: rotate(0) translateY(-6px); }
  .paper:hover .arw { transform: translate(3px, -3px); }
}

/* ---------- Leadership ---------- */
.team { background: radial-gradient(ellipse 50% 55% at 85% 40%, rgba(158, 113, 36, .12), transparent 70%), var(--paper); }
.leaders { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .82fr) minmax(0, .82fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.leader:nth-child(2) { margin-top: clamp(64px, 9vw, 140px); }
.leader:nth-child(3) { margin-top: clamp(128px, 17vw, 260px); }
.portrait { position: relative; overflow: hidden; aspect-ratio: 1 / 1.08; border-radius: var(--r-card); background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.portrait::after { content: ''; position: absolute; inset: 0; background: var(--paper); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.leader-copy { padding-top: 22px; }
.leader h3 { font-size: clamp(24px, 2.2vw, 32px); }
.leader-lead h3 { font-size: clamp(30px, 3vw, 46px); }
.leader-role { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--gold-text); }
.leader p { margin-top: 14px; max-width: 44ch; font-size: 15px; line-height: 1.75; }
.jv { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-card); border: 1px solid rgba(215, 189, 132, .22); background: linear-gradient(120deg, rgba(244, 224, 179, .08), rgba(244, 224, 179, .015) 60%), #16140f; }
.jv h3 { font-size: clamp(28px, 3vw, 44px); }
.jv p { margin-top: 14px; max-width: 64ch; }

/* ---------- Testimonials ---------- */
.voices { background: var(--paper-2); }
.voices-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.voice-tabs { margin-top: 44px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.voice-tab { position: relative; min-height: 64px; padding: 16px 0 16px 22px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: 700 17px/1.3 var(--body); color: var(--ink-2); transition: color 200ms ease; }
.voice-tab span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.voice-tab::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 320ms var(--ease-out); }
.voice-tab[aria-selected="true"] { color: var(--ink); }
.voice-tab[aria-selected="true"]::before { transform: scaleY(1); }
@media (hover: hover) and (pointer: fine) { .voice-tab:hover { color: var(--ink); } }
.voice-stage { position: relative; display: grid; }
.voice { grid-area: 1 / 1; margin: 0; }
.voice[hidden] { display: block; visibility: hidden; }
.voice:focus-visible { outline-offset: 12px; }
.voice-mark { display: block; height: 58px; font: 800 128px/.72 var(--display); color: var(--gold-text); }
.stars { display: block; margin-top: 10px; font-size: 15px; letter-spacing: 4px; color: var(--gold); }
.voice blockquote { margin: 22px 0 30px; }
.voice blockquote p { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.3; letter-spacing: -.025em; color: var(--ink); }
.voice figcaption { font-size: 14px; color: var(--ink-2); }
.voice figcaption strong { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--paper), transparent 35%, var(--paper)), radial-gradient(ellipse 60% 70% at 15% 55%, #4a3719, #231c11 45%, var(--paper) 80%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.contact-lines { margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.contact-lines .icon { color: var(--gold-text); }
.contact-lines li:first-child { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 8px; }
.contact-lines a:not(.contact-phone) { min-height: 44px; display: inline-flex; align-items: center; }
.contact-kicker { font-size: 13px; color: var(--ink-3); }
.contact-lines, .footer-contact { overflow-wrap: anywhere; }
a[href^="tel:"] { white-space: nowrap; }
.contact-phone { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.contact-phone .icon { width: 22px; height: 22px; }
.form-card { padding: clamp(24px, 3vw, 40px); border-radius: 16px; border: 1px solid rgba(215, 189, 132, .24); background: linear-gradient(145deg, rgba(244, 224, 179, .06), rgba(244, 224, 179, .02)), #1b1812; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 80px rgba(0, 0, 0, .3); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.cf-label { padding: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.req { color: var(--gold-text); }
.cf-hint { font-weight: 400; color: var(--ink-3); }
.cf-input { width: 100%; min-height: 54px; padding: 13px 15px; border-radius: var(--r-input); border: 1px solid var(--input-line); background: #14120e; color: var(--ink); font-size: 16px; -webkit-appearance: none; appearance: none; transition: border-color 180ms ease, box-shadow 180ms ease; }
.cf-input::placeholder { color: #928878; opacity: 1; }
.cf-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(221, 191, 115, .2); }
.cf-input[aria-invalid="true"] { border-color: var(--danger); }
.cf-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 171, 162, .18); }
.cf-msg { font-size: 13px; line-height: 1.4; color: var(--danger); }
.cf-msg:empty { display: none; }
.cf-select { padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23DDBF73' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.cf-select:invalid { color: #928878; }
.cf-select option { background: #1b1812; color: var(--ink); }
.cf-textarea { min-height: 140px; line-height: 1.6; resize: vertical; }
.cf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-pill { min-height: 44px; padding: 10px 14px; border-radius: var(--r-input); border: 1px solid var(--input-line); background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.cf-pill[aria-pressed="true"] { border-color: var(--gold); background: rgba(221, 191, 115, .14); color: var(--ink); }
.cf-pill:active { transform: scale(.97); }
.cf-submit { width: 100%; min-height: 58px; margin-top: 4px; font-size: 15px; gap: 12px; }
.cf-submit:disabled { cursor: wait; opacity: .8; transform: none; }
.cf-spinner { display: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.is-busy .cf-spinner { display: inline-block; animation: soft-pulse 1s var(--ease) infinite; }
.cf-required { margin-top: 14px; text-align: center; font-size: 12px; color: var(--ink-3); }
.cf-error { display: none; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--r-input); border: 1px solid rgba(255, 171, 162, .5); background: var(--danger-tint); color: var(--danger); font-size: 14px; line-height: 1.5; scroll-margin-top: 120px; }
.cf-error.is-shown { display: block; }
.cf-error:focus { outline: none; }
.cf-success { padding: clamp(24px, 4vw, 48px) 0; text-align: center; }
.cf-success:focus { outline: none; }
.cf-success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 50%; background: var(--gold-grad); color: var(--on-gold); }
.cf-success-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.cf-success h3 { font-size: clamp(26px, 2.6vw, 34px); }
.cf-success p { margin: 14px auto 28px; max-width: 42ch; }
.cf-success strong { color: var(--gold-text); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 0; overflow: hidden; background: var(--deep); border-top: 1px solid var(--line-soft); }
.footer-inner { max-width: calc(var(--shell) + var(--gutter) * 2); margin: 0 auto; padding: clamp(64px, 8vw, 96px) var(--gutter) 24px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: clamp(32px, 5vw, 64px); }
.footer-logo { width: 190px; height: auto; }
.footer-brand p { max-width: 34ch; margin: 22px 0 24px; font-size: 14px; line-height: 1.75; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); transition: color 200ms ease, border-color 200ms ease, transform 180ms var(--ease-out); }
.social-btn .icon { width: 18px; height: 18px; }
.social-btn:active { transform: scale(.95); }
.footer-col h2 { margin: 0 0 16px; font: 700 15px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.footer-col ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer-col ul a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink-2); transition: color 200ms ease; }
.footer-contact li { display: flex; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-text); }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; margin-bottom: -10px; }
.footer-word { height: clamp(104px, 16.5vw, 262px); margin-top: clamp(36px, 5vw, 64px); overflow: hidden; pointer-events: none; user-select: none; }
.footer-word span { display: block; font: 800 clamp(150px, 24vw, 380px)/.8 var(--display); letter-spacing: -.07em; color: transparent; background: linear-gradient(180deg, rgba(221, 191, 115, .5), rgba(221, 191, 115, .04) 80%); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-3); }
.footer-bottom p { color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-3); transition: color 200ms ease; }
@media (min-width: 641px) { .footer-bottom { padding-right: 76px; } }
@media (hover: hover) and (pointer: fine) {
  .footer-col ul a:hover, .footer-contact a:hover, .footer-links a:hover { color: var(--ink); }
  .social-btn:hover { color: var(--gold); border-color: var(--gold); }
}
/* The page lifts away like a curtain to show the footer, only when the whole footer fits on screen. */
@media (min-width: 1024px) {
  .has-curtain main { position: relative; z-index: 1; background: var(--paper); box-shadow: 0 40px 80px rgba(0, 0, 0, .55); }
  .has-curtain .footer { position: sticky; bottom: 0; }
}

/* ---------- Legal pages ---------- */
.legal { padding: clamp(56px, 8vw, 104px) 0 var(--section-y); background: var(--paper); }
.legal-inner { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -.05em; }
.legal h2 { margin: 56px 0 16px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.legal p, .legal li { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal .legal-updated { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.legal .legal-lede { margin-top: 32px; font-size: 18px; color: var(--ink); }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--gold-text); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-contact { margin-top: 18px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); }
.legal .legal-contact p + p { margin-top: 6px; }
.cf-required a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .legal a:hover, .cf-required a:hover { color: var(--ink); } }

/* ---------- Floating dock ---------- */
.dock { position: fixed; z-index: 35; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.dock-cta { display: none; }
.dock-top { background: rgba(25, 23, 18, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms; }
.dock.show-top .dock-top { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }

/* ---------- Document and project viewer ---------- */
.viewer { transform-origin: 0 0; width: min(760px, calc(100vw - 24px)); max-width: none; max-height: 94dvh; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 30px 120px rgba(0, 0, 0, .6); }
.viewer::backdrop { background: rgba(8, 7, 5, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.viewer-title { font: 500 14px/1.4 var(--body); letter-spacing: 0; color: var(--ink-2); text-wrap: pretty; }
.viewer-count { margin-right: 12px; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.viewer-close { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-input); border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.viewer-close span { font-size: 22px; line-height: 1; }
.viewer-close, .viewer-original, .contact-lines a, .contact-phone, .menu-toggle { transition: color 200ms ease, border-color 200ms ease; }
.viewer-stage { display: grid; place-items: center; }
.viewer-stage img { width: min(100%, calc(74dvh * var(--r, .8))); height: auto; max-height: 74dvh; object-fit: contain; border-radius: 8px; background: #0c0b09; }
.viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.viewer-original { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.viewer.is-single .viewer-prev, .viewer.is-single .viewer-next { visibility: hidden; }

/* ---------- Motion ---------- */
@keyframes slide-right { from { opacity: 0; transform: translateX(var(--slide, -.55em)); } to { opacity: 1; transform: none; } }
@keyframes blur-in { from { opacity: .5; filter: blur(8px); } to { opacity: 1; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes frame-arrive { from { opacity: 0; transform: translateY(44px) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes glow-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes soft-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes recede { to { transform: translateY(8%) scale(.92); opacity: .45; } }
@keyframes copy-drift { to { transform: translateY(-56px); opacity: .25; } }
@keyframes pan { to { transform: translateX(calc(-1 * var(--pan, 0px))); } }
@keyframes develop { 0% { opacity: .38; transform: scale(.94); } 40%, 60% { opacity: 1; transform: none; } 100% { opacity: .38; transform: scale(.94); } }
@keyframes ghost-settle { from { opacity: 0; transform: translate(-50%, -42%) scale(1.14); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero choreography: the headline sweeps in from the left, its promise comes into focus, the frame arrives in warm light. */
  .hero-title .word { animation: slide-right 1000ms var(--ease-out) both; animation-delay: calc(160ms + var(--i) * 75ms); }
  .hero-eyebrow { --slide: -18px; animation: slide-right 800ms var(--ease-out) both; }
  .hero-lede { animation: blur-in 450ms var(--ease-out) 650ms both; }
  .hero-actions { animation: rise 800ms var(--ease-out) 800ms both; }
  .frame { animation: frame-arrive 1400ms var(--ease) 260ms both; }
  .hero::before { animation: glow-in 2200ms var(--ease) both; }

  /* Content arrives once, as the reader reaches it. */
  .motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 760ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .motion-ready .reveal.is-in { opacity: 1; transform: none; }
  /* Brag headlines: the words sweep in from the left, then the line beneath comes into focus. */
  .motion-ready .brag-word { display: inline-block; }
  .motion-ready [data-brag] .brag-word, .motion-ready [data-brag] .eyebrow { opacity: 0; transform: translateX(var(--slide, -.55em)); transition: opacity 700ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: var(--wd, 0ms); }
  .motion-ready [data-brag] .eyebrow { --slide: -18px; }
  .motion-ready [data-brag] .section-sub { opacity: .5; filter: blur(8px); transition: opacity 450ms var(--ease-out), filter 450ms var(--ease-out); transition-delay: var(--sd, 400ms); }
  .motion-ready [data-brag] .strip-controls { opacity: 0; transition: opacity 600ms var(--ease-out); transition-delay: var(--sd, 400ms); }
  .motion-ready [data-brag].is-bragging .brag-word, .motion-ready [data-brag].is-bragging .eyebrow, .motion-ready [data-brag].is-bragging .strip-controls { opacity: 1; transform: none; }
  .motion-ready [data-brag].is-bragging .section-sub { opacity: 1; filter: none; }
  .motion-ready .feature-panel:not(.is-in)::after { transform: scaleY(1); }
  .motion-ready .feature-panel.is-in::after { transition: transform 1100ms var(--ease); }
  .motion-ready .feature-panel:not(.is-in) .feature-media img { transform: scale(1.1); }
  .motion-ready .portrait:not(.is-in)::after { transform: scaleY(1); }
  .motion-ready .portrait.is-in::after { transition: transform 1100ms var(--ease); }
  .motion-ready .portrait img { transition: transform 1600ms var(--ease-out); }
  .motion-ready .portrait:not(.is-in) img { transform: scale(1.08); }
  .nav.is-open { animation: drop-in 220ms var(--ease-out); }
  .viewer[open]::backdrop { animation: fade-in 320ms var(--ease-out); }
  .viewer.is-closing::backdrop { animation: fade-out 380ms var(--ease) both; }

  @supports (animation-timeline: view()) {
    /* The hero recedes as you leave it; the copy lifts slightly faster than the frame. */
    .hero { view-timeline: --hero block; }
    .hero-media { animation: recede linear both; animation-timeline: --hero; animation-range: exit 0% exit 85%; }
    .hero-copy { animation: copy-drift linear both; animation-timeline: --hero; animation-range: exit 0% exit 75%; }

    /* Swipe strip: the frame in the centre is lit, its neighbours wait in shadow. */
    .strip-frame { animation: develop linear both; animation-timeline: view(inline); animation-range: cover 0% cover 100%; }

    .slcc { view-timeline: --slcc block; }
    .slcc-ghost { animation: ghost-settle linear both; animation-timeline: --slcc; animation-range: entry 10% cover 50%; }
  }
}

/* Desktop: vertical scroll walks you past the builds, one after another. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .projects { padding: 0; height: calc(100vh + var(--pan, 0px)); view-timeline: --projects block; view-timeline-inset: 0; }
    .projects-pin { position: sticky; top: 0; height: 100vh; overflow: clip; display: flex; align-items: center; }
    .projects-track { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 40px); padding: calc(var(--header-h) + 16px) var(--gutter) 16px; will-change: transform; animation: pan linear both; animation-timeline: --projects; animation-range: contain 0% contain 100%; }
    .projects-intro { flex: 0 0 clamp(340px, 30vw, 460px); max-width: none; margin: 0; padding: 0 clamp(8px, 2vw, 32px) 0 0; }
    .projects-intro h2 { font-size: clamp(44px, 4.6vw, 68px); }
    .strip-controls { display: none; }
    .strip { overflow: visible; padding: 0; gap: inherit; scroll-snap-type: none; }
    .strip-item { width: auto; }
    .strip-frame { animation: none; }
    .strip-frame img { width: auto; height: min(66vh, 620px); }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .nav { gap: 20px; }
  .logo img { width: 170px; }
}
@media (max-width: 1119px) {
  .menu-toggle { order: 3; display: flex; align-items: center; gap: 14px; min-height: 44px; margin-left: 12px; padding: 0 6px; border: 0; background: none; font-size: 14px; font-weight: 500; }
  .menu-toggle span { font-size: 24px; line-height: 1; transition: transform 250ms var(--ease); }
  .menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
  .header-cta { order: 2; margin-left: auto; }
  .nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { min-height: 50px; padding: 0 12px; font-size: 17px; color: var(--ink); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { display: inline-flex; margin-top: 10px; }
  .dock { left: auto; }
}
@media (max-width: 1023px) {
  :root { --header-h: 78px; }
  .hero { min-height: 0; }
  .hero-stage { grid-template-columns: 1fr; gap: 44px; padding-top: clamp(40px, 8vw, 72px); }
  .hero-title { font-size: clamp(42px, 8vw, 72px); }
  .hero-media { justify-self: stretch; max-width: 640px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-lead { grid-column: 1 / -1; padding-left: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(2) { border-left: 0; padding-left: 0; }
  .service-feature { grid-template-columns: 1fr; }
  .feature-panel { min-height: clamp(420px, 70vw, 560px); }
  .service-index { grid-template-columns: 1fr 1fr; }
  .service-col:nth-child(3) { border-left: 0; padding-left: 0; }
  .service-col:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-media { position: static; }
  .about-photos { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .about-photo { position: static; aspect-ratio: 4 / 3; opacity: 1; transform: none; border-radius: 10px; }
  .about-story { display: contents; }
  .story-head { order: -1; }
  .about-badge { position: static; grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 14px; margin-top: 4px; padding: 12px 18px; }
  .badge-year { font-size: 30px; }
  .badge-txt { margin-top: 0; }
  .about-caption { margin-top: 14px; }
  .seal-wall { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-papers { justify-content: flex-start; }
  .leaders { grid-template-columns: 1fr 1fr; }
  .leader-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
  .leader-lead .leader-copy { padding-top: 0; }
  .leader:nth-child(2) { margin-top: 0; }
  .leader:nth-child(3) { margin-top: 64px; }
  .jv { grid-template-columns: 1fr; }
  .jv .btn { justify-self: start; }
  .voices-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-copy { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 74px; }
  html { scroll-padding-top: 88px; }
  .header { padding: 10px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
  .header-inner { min-height: 60px; padding: 0 8px 0 14px; }
  .logo img { width: 156px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .section-sub { font-size: 16px; }
  .hero-stage { padding-bottom: 48px; }
  .hero-title { font-size: clamp(38px, 11.5vw, 52px); line-height: 1.04; }
  .hero-lede { margin-top: 22px; font-size: 16px; }
  .hero-actions { margin-top: 30px; gap: 14px 26px; }
  .btn-lg { min-height: 56px; padding: 16px 22px; gap: 24px; }
  .frame { padding: 6px; border-radius: 16px; }
  .frame img, .frame::after { border-radius: 10px; }
  .frame::after { inset: 6px; }
  .stat { padding: 28px 12px 28px 16px; }
  .stat-lead { padding: 32px 0 24px; }
  .stat-num { font-size: 52px; }
  .stat-lead .stat-num { font-size: 88px; }
  .stat-label { font-size: 13px; }
  .feature-panel { min-height: 520px; }
  .feature-copy { padding-top: 88px; background: linear-gradient(180deg, rgba(16, 15, 13, 0), rgba(16, 15, 13, .84) 88px, rgba(16, 15, 13, .95)); }
  .service-index { grid-template-columns: 1fr; }
  .service-col { border-left: 0; padding-left: 0; padding-right: 0; }
  .service-col + .service-col { border-top: 1px solid var(--line-soft); }
  .highlights { grid-template-columns: 1fr; gap: 20px; }
  .projects-intro h2 { max-width: none; }
  .seal { min-height: 170px; padding: 22px 18px; }
  .seal-code { font-size: 40px; }
  .seal-name { font-size: 13px; }
  .docs-papers { gap: 20px; }
  .paper { width: 50%; }
  .leaders { grid-template-columns: 1fr; gap: 48px; }
  .leader-lead { display: block; }
  .leader-lead .leader-copy { padding-top: 22px; }
  .leader:nth-child(3) { margin-top: 0; }
  .voice-mark { height: 44px; font-size: 100px; }
  .cf-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .footer-inner { padding-bottom: 96px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .dock { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .dock-cta { display: inline-flex; flex: 1; min-height: 54px; opacity: 0; visibility: hidden; transform: translateY(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 32px rgba(0, 0, 0, .45); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms; }
  .dock.show-cta .dock-cta { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .dock-top { width: 54px; height: 54px; }
}
@media (max-width: 380px) {
  .logo img { width: 140px; }
  .hero-title { font-size: 36px; }
  .stat-lead .stat-num { font-size: 76px; }
  .stat-num { font-size: 46px; }
}

@media (prefers-reduced-transparency: reduce) {
  .header-inner { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .vault-card { background: #1b1812; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .viewer::backdrop { background: rgba(8, 7, 5, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
