/* =========================================================
   DESIGNASAURUS REX — V2 "THE DIG SITE"
   Shared stylesheet for every V2 page.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --basalt: #15110E;
  --basalt-2: #1C1612;
  --s1: #231B16;
  --s2: #2E231B;
  --s3: #3A2C21;
  --s4: #4A3827;
  --s5: #6B5440;
  --bone: #EDE4D3;
  --bone-2: #D9CDB9;
  --muted: #A8998A;
  --ochre: #E8A33D;
  --ochre-ink: #9A5F12;
  --tag: #FF3D6E;

  --f-disp: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-body: 'Archivo', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --rail: 88px;
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-l: calc(var(--rail) + clamp(24px, 3.4vw, 48px));
  --section-y: clamp(64px, 9vw, 120px);
  --max: 1320px;

  --assets: '/assets';
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body {
  margin: 0;
  background: var(--basalt);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ochre); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 18px; background: var(--ochre); color: var(--basalt); font-weight: 600; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type roles ---------- */
.mono { font-family: var(--f-mono); }
.disp { font-family: var(--f-disp); text-transform: uppercase; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
}
.h-mega { font-family: var(--f-disp); font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 11.5vw, 172px); line-height: 0.84; letter-spacing: -0.01em; }
.h-xl   { font-family: var(--f-disp); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 7.2vw, 104px); line-height: 0.88; }
.h-l    { font-family: var(--f-disp); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 5vw, 72px); line-height: 0.9; }
.h-mega, .h-xl, .h-l { overflow-wrap: anywhere; }
.h-m    { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 36px); line-height: 0.95; }
.lede   { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--bone-2); max-width: 620px; }
.body-2 { color: var(--bone-2); }
.small  { font-size: 14px; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--bone); }
.ochre { color: var(--ochre); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad-x) 0 28px;
  background: rgba(21, 17, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s3);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { display: block; height: 52px; width: auto; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand img { height: 36px; width: auto; }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.06); }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-family: var(--f-disp); font-weight: 800; font-size: 21px; letter-spacing: 0.04em; }
.brand-name span { font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); font-size: 15px; }
.nav a[aria-current="page"] { color: var(--ochre); }
.nav-top, .nav .btn { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1599px) {
  .brand-name { display: none; }
  .brand, .brand-logo { flex-shrink: 0; }
  .nav-list { gap: 14px; }
  .nav .btn { padding-left: 14px; padding-right: 16px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .brand, .brand-logo { flex-shrink: 0; }
  .brand-logo { width: 64px; }
  .nav-list { gap: 10px; }
  .nav-top { font-size: 13.5px; }
  .has-drop > .drop-toggle { width: 22px; }
  .nav .btn--raptor .rx-icon { width: 34px; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .nav-list { gap: 8px; }
  .nav-top { font-size: 13px; }
  .nav .btn--raptor { gap: 6px; padding-left: 10px; padding-right: 12px; }
  .nav .btn--raptor .rx-icon { width: 28px; }
}
@media (min-width: 1024px) and (max-width: 1099px) {
  .brand-logo { width: 50px; }
  .nav-list { gap: 5px; }
  .has-drop > .drop-toggle { width: 18px; }
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.has-drop { position: relative; display: flex; align-items: center; gap: 2px; }
.drop-toggle { display: grid; place-items: center; width: 24px; height: 36px; color: var(--muted); }
.drop-toggle svg { transition: transform .2s; }
.has-drop:hover .drop-toggle, .drop-toggle[aria-expanded="true"] { color: var(--ochre); }
.drop-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-top:hover { color: var(--ochre); }
.drop { position: absolute; top: 100%; left: -16px; min-width: 230px; list-style: none; margin: 0; padding: 8px 0; background: var(--s1); border: 1px solid var(--s4); border-top: 3px solid var(--ochre); box-shadow: 0 20px 40px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .drop-toggle[aria-expanded="true"] + .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop.is-dismissed .drop { opacity: 0; visibility: hidden; }
.drop::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.drop a { display: block; padding: 10px 18px; font-size: 14px; color: var(--bone-2); }
.drop a:hover, .drop a:focus-visible { background: var(--s3); color: var(--ochre); }
.crumbs { position: sticky; top: 72px; z-index: 48; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 var(--pad-x) 0 var(--pad-l); background: rgba(28, 22, 18, .96); border-bottom: 1px solid var(--s3); font-size: 13px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.crumbs li { display: flex; align-items: center; white-space: nowrap; min-width: 0; }
.crumbs li[hidden] { display: none; }
.crumbs li + li::before { content: '›'; margin: 0 10px; color: var(--s5); font-size: 16px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-height: 40px; }
.crumbs a:hover { color: var(--ochre); }
.crumbs a .shovel { width: 15px; height: 15px; color: var(--ochre); transform: rotate(-20deg); }
.crumbs [aria-current="page"] { color: var(--bone); font-weight: 600; }
.crumb-live span { color: var(--ochre); overflow: hidden; text-overflow: ellipsis; }
.crumbs-hint { flex-shrink: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--s5); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--bone);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { border-color: var(--ochre); color: var(--ochre); }
.btn--fill { background: var(--ochre); border-color: var(--ochre); color: var(--basalt); }
.btn--fill:hover { background: var(--bone); border-color: var(--bone); color: var(--basalt); }
.btn--bone { background: var(--bone); border-color: var(--bone); color: var(--basalt); }
.btn--bone:hover { background: var(--ochre); border-color: var(--ochre); color: var(--basalt); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--s4); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--bone); margin: 5px auto; transition: transform .2s; }

/* ---------- Depth rail ---------- */
.rail {
  position: fixed; left: 0; top: 112px; bottom: 0; width: var(--rail); z-index: 40;
  border-right: 2px solid var(--s5);
  background:
    repeating-linear-gradient(180deg, var(--bone-2) 0 2px, transparent 2px 200px) left top / 30px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--s5) 0 1px, transparent 1px 40px) left top / 18px 100% no-repeat,
    rgba(21, 17, 14, .92);
  pointer-events: none;
}
.rail::after { content: 'DEPTH'; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.rail-fill { position: absolute; right: -2px; top: 0; width: 5px; height: 0; background: var(--ochre); box-shadow: 0 0 12px rgba(232, 163, 61, .55); }
.rail-read {
  position: absolute; left: 8px; right: 10px; top: 20px;
  padding: 7px 8px 8px; background: var(--ochre); color: var(--basalt);
  font-family: var(--f-mono); font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transition: top .15s linear;
}
.rail-read::after { content: ''; position: absolute; right: -10px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left-color: var(--ochre); border-right: 0; }
.rail-lbl { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid rgba(21,17,14,.35); font-size: 8.5px; font-weight: 500; line-height: 1.15; letter-spacing: .06em; text-align: center; }
.rail-lbl .shovel { flex-shrink: 0; width: 22px; height: 22px; transform-origin: 50% 90%; transform: rotate(-18deg); }
.rail.is-digging .rail-lbl .shovel { animation: rail-dig .5s ease-in-out infinite alternate; }
@keyframes rail-dig { from { transform: rotate(-30deg) translateY(-1px); } to { transform: rotate(12deg) translateY(2px); } }
.rail-read b { display: block; font-family: var(--f-disp); font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: 0; color: var(--basalt); text-transform: none; }
.progress { display: none; }

/* ---------- Layout ---------- */
main { display: block; }
.section { padding: var(--section-y) var(--pad-x) var(--section-y) var(--pad-l); position: relative; }
.section--alt { background: var(--basalt-2); border-top: 6px solid var(--s2); }
.section--deep { background: #2A2019; }
.wrap { max-width: var(--max); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; row-gap: 20px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head > .lede { grid-column: 1; max-width: 560px; font-size: 17px; }
.sec-head > .btn { grid-column: 2; grid-row: 1; justify-self: end; }
.sec-head .eyebrow { margin-bottom: 10px; }

/* ---------- Strata ---------- */
.strata { display: flex; flex-direction: column; }
.strata i { display: block; }
.strata i:nth-child(1) { height: 34px; background: var(--s1); }
.strata i:nth-child(2) { height: 40px; background: var(--s2) repeating-linear-gradient(90deg, rgba(21,17,14,.35) 0 2px, transparent 2px 11px); }
.strata i:nth-child(3) { height: 36px; background: var(--s3); }
.strata i:nth-child(4) { height: 40px; background: var(--s4) repeating-linear-gradient(90deg, rgba(21,17,14,.3) 0 3px, transparent 3px 17px); }

/* Designasaurus guides — two-tone SVGs recoloured to the Dig Site palette (assets/dino/) */
.guide { margin: 0; display: grid; gap: 8px; justify-items: end; width: clamp(120px, 12vw, 176px); flex-shrink: 0; }
.guide img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; filter: none; border: 0; }
.guide figcaption { font-family: var(--f-mono); font-size: 10px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.guide--left { justify-items: start; }
.guide--left figcaption { text-align: left; }
.sec-head .guide { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.tag { display: inline-block; padding: 6px 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; border: 1px solid var(--s5); }
.tag--fill { background: var(--ochre); border-color: var(--ochre); color: var(--basalt); }
.tag--hot { background: var(--tag); border-color: var(--tag); color: var(--basalt); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 72px); padding-top: clamp(48px, 7vw, 88px); padding-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
.hero-name { display: block; margin-bottom: 10px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(26px, 2.8vw, 40px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: var(--bone); }
.hero-name span { color: var(--ochre); }
.hero-intro { display: grid; grid-template-columns: clamp(260px, 32vw, 480px) minmax(0, 1fr); gap: clamp(24px, 3.2vw, 56px); align-items: center; }
.hero-mark { position: relative; margin: 0; padding-bottom: 26px; }
.hero-mark img { display: block; width: 100%; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 22px 34px rgba(0,0,0,.55)) drop-shadow(0 0 46px rgba(232,163,61,.22)); transition: transform .4s cubic-bezier(.3,1.4,.5,1), filter .4s; }
.hero-mark:hover img { transform: rotate(0) scale(1.045); filter: drop-shadow(0 26px 40px rgba(0,0,0,.55)) drop-shadow(0 0 60px rgba(232,163,61,.34)); }
.hero-mark .tag { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; font-size: clamp(10px, 1vw, 13px); }
.spec-feature + .spec-feature, .spec-feature + .spec-grid { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 600px) {
  .hero-intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-mark { width: min(340px, 82%); }
  .hero-intro > div { text-align: left; }
}
.hero-title--strata { font-size: clamp(46px, 8.6vw, 136px); line-height: 1.12; }
.t-line { display: block; opacity: 0; transform: translateY(24px); animation: t-rise .8s cubic-bezier(.2,.9,.3,1) forwards; }
.t-years { animation-delay: .1s; } .t-craft { animation-delay: .35s; } .t-velocity { animation-delay: .6s; }
@keyframes t-rise { to { opacity: 1; transform: none; } }
.t-count { font-variant-numeric: tabular-nums; }
.t-small { font-size: .52em; vertical-align: .32em; color: var(--muted); letter-spacing: .04em; }
.t-meets { font-size: .42em; vertical-align: .5em; color: var(--muted); letter-spacing: .06em; }
.t-box { position: relative; display: inline-block; padding: 0 .06em; margin: .06em 0; }
.t-box::before { content: ''; position: absolute; inset: -.05em -.08em; opacity: 0; animation: t-sel .5s 1.1s forwards, t-ants .9s 1.1s linear infinite;
  background-image: linear-gradient(90deg, var(--ochre) 50%, transparent 50%), linear-gradient(90deg, var(--ochre) 50%, transparent 50%), linear-gradient(0deg, var(--ochre) 50%, transparent 50%), linear-gradient(0deg, var(--ochre) 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y; background-size: 12px 2px, 12px 2px, 2px 12px, 2px 12px; background-position: 0 0, 0 100%, 0 0, 100% 0; }
@keyframes t-ants { to { background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px; } }
.t-h { position: absolute; width: 12px; height: 12px; background: var(--basalt); border: 2px solid var(--ochre); opacity: 0; transform: scale(0); animation: t-pop .35s cubic-bezier(.3,1.6,.5,1) forwards; }
.t-h1 { left: calc(-.08em - 6px); top: calc(-.05em - 6px); animation-delay: 1.25s; }
.t-h2 { right: calc(-.08em - 6px); top: calc(-.05em - 6px); animation-delay: 1.35s; }
.t-h3 { left: calc(-.08em - 6px); bottom: calc(-.05em - 6px); animation-delay: 1.45s; }
.t-h4 { right: calc(-.08em - 6px); bottom: calc(-.05em - 6px); animation-delay: 1.55s; }
@keyframes t-sel { to { opacity: .85; } }
@keyframes t-pop { to { opacity: 1; transform: none; } }
.t-velocity { position: relative; }
.t-vel { position: relative; display: inline-block; overflow: hidden; padding-right: .06em; vertical-align: bottom; }
.t-vel .t-streak { z-index: -1; }
.t-fast { display: inline-block; animation: t-dash 1s .6s cubic-bezier(.15,.85,.25,1) both; }
@keyframes t-dash { 0% { transform: translateX(-60px) skewX(-14deg); filter: blur(6px); opacity: 0; } 70% { transform: translateX(6px) skewX(-3deg); filter: blur(0); opacity: 1; } 100% { transform: none; } }
.t-streak { position: absolute; left: 0; height: .05em; min-height: 3px; background: linear-gradient(90deg, transparent, var(--ochre)); opacity: 0; animation: t-zip 3.2s 1.6s ease-in infinite; }
.t-streak:nth-of-type(1) { top: 26%; width: 55%; } .t-streak:nth-of-type(2) { top: 50%; width: 80%; animation-delay: 1.75s; } .t-streak:nth-of-type(3) { top: 74%; width: 40%; animation-delay: 1.9s; }
@keyframes t-zip { 0% { transform: translateX(160%); opacity: 0; } 10% { opacity: .9; } 34%, 100% { transform: translateX(-110%); opacity: 0; } }
.hero-quote { position: relative; margin: 30px 0 0; max-width: 980px; padding: 6px 0 6px clamp(22px, 2.4vw, 36px); border-left: 4px solid var(--ochre); }
.hero-quote::before { content: '“'; position: absolute; left: clamp(22px, 2.4vw, 36px); top: -.42em; font-family: var(--f-disp); font-weight: 900; font-size: clamp(70px, 7vw, 120px); line-height: 1; color: var(--ochre); opacity: .22; pointer-events: none; }
.hero-quote p { position: relative; font-size: clamp(19px, 2vw, 28px); line-height: 1.7; color: var(--bone-2); }
.hero-quote p > span { display: inline-block; opacity: 0; transform: translateY(12px); animation: q-rise .7s cubic-bezier(.2,.9,.3,1) forwards; }
.hero-quote p > span:nth-child(1) { animation-delay: 1s; } .hero-quote p > span:nth-child(2) { animation-delay: 1.15s; }
.hero-quote p > span:nth-child(3) { animation-delay: 1.6s; } .hero-quote p > span:nth-child(4) { animation-delay: 1.75s; }
.hero-quote p > span:nth-child(5) { animation-delay: 2.2s; } .hero-quote p > span:nth-child(6) { animation-delay: 2.35s; }
@keyframes q-rise { to { opacity: 1; transform: none; } }
.q-vec { position: relative; color: var(--bone); font-weight: 600; line-height: 1.15; }
.q-ai { font-weight: 600; background: linear-gradient(100deg, var(--bone) 0 38%, #FFD89A 46%, var(--ochre) 52%, var(--bone) 60% 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: q-rise .7s 1.6s cubic-bezier(.2,.9,.3,1) forwards, q-shine 3.6s 2.4s ease-in-out infinite !important; }
@keyframes q-shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
.q-epoch { position: relative; font-weight: 600; color: var(--ochre); line-height: 1.15; }
@media (max-width: 600px) {
  .hero-quote p > span { display: inline; transform: none; }
    .t-h { width: 8px; height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-line, .t-fast, .hero-quote p > span, .q-ai { opacity: 1; transform: none; filter: none; animation: none !important; }
  .t-box::before { opacity: .85; animation: none; } .dig-stamp .shovel { animation: none; } .t-h { opacity: 1; transform: none; animation: none; }
  .t-streak { animation: none; display: none; }
}
.hero { position: relative; isolation: isolate; }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
.hero-welcome { font-family: var(--f-disp); font-weight: 800; font-size: clamp(24px, 2.6vw, 38px); line-height: 1; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--s3); max-width: max-content; }
.hero-welcome { display: flex; flex-wrap: wrap; align-items: center; column-gap: .3em; row-gap: 14px; }
.hero-welcome .nw { white-space: nowrap; }
.dig-stamp {
  position: relative; display: inline-block; margin-left: .15em;
  padding: .16em .38em .1em; font-size: 1.55em; line-height: .95; white-space: nowrap;
  color: var(--basalt); background: var(--ochre);
  transform: rotate(-3deg);
  box-shadow: 5px 5px 0 var(--basalt), 5px 5px 0 2px var(--bone);
  animation: dig-stamp .7s cubic-bezier(.2, 1.6, .4, 1) .35s both;
}
.dig-stamp { display: inline-flex; align-items: center; gap: .18em; }
.dig-stamp .shovel { width: .8em; height: .8em; transform: rotate(-24deg) translateY(-.02em); transform-origin: 50% 20%; animation: shovel-dig 2.4s 1.2s ease-in-out infinite; }
@keyframes shovel-dig { 0%, 55%, 100% { transform: rotate(-24deg) translateY(-.02em); } 64% { transform: rotate(-36deg) translate(-.02em, -.08em); } 74% { transform: rotate(-4deg) translate(.02em, .06em); } 82% { transform: rotate(-30deg) translateY(-.04em); } 90% { transform: rotate(-18deg) translateY(.02em); } }
.dig-stamp::before, .dig-stamp::after {
  content: ''; position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--basalt) 0 6px, var(--ochre) 6px 12px);
}
.dig-stamp::before { top: -6px; }
.dig-stamp::after { bottom: -6px; }
@keyframes dig-stamp {
  0% { opacity: 0; transform: rotate(-12deg) scale(1.8); }
  60% { opacity: 1; transform: rotate(-1deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-3deg) scale(1); }
}
.hero-title { --w: 900; font-variation-settings: 'wght' var(--w); margin-top: 18px; }
.hero-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-top: 36px; }
.hero-data { font-family: var(--f-mono); font-size: 12px; color: var(--muted); border-left: 1px solid var(--s4); padding-left: 20px; display: grid; gap: 8px; }
.hero-data .hot { color: var(--tag); }
.hero-ground { position: relative; margin: 48px calc(var(--pad-x) * -1) 0 calc(var(--pad-l) * -1); }
.hero-ground .strata { height: 240px; }
.hero-ground .strata i { height: auto; flex: 1; }

/* ---------- Specimens (work) ---------- */
.spec { display: block; background: var(--s1); border: 1px solid var(--s4); transition: border-color .2s, transform .2s; }
a.spec:hover { border-color: var(--ochre); color: inherit; transform: translateY(-3px); }
.spec-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding: clamp(28px, 4vw, 48px); }
.spec-feature .copy { display: flex; flex-direction: column; gap: 18px; }
.spec-cta { margin-top: auto; font-weight: 600; color: var(--ochre); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.spec-card { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.spec-card > img { margin: -32px -32px 8px; width: calc(100% + 64px); max-width: none; height: 220px; object-fit: cover; filter: sepia(.3) contrast(1.05); }
.spec-card > img.spec-shot { margin: auto 0 0; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; filter: none; border: 1px solid var(--s4); transition: transform .3s; }
.spec-card:hover > img.spec-shot { transform: translateY(-2px); }
.spec-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: auto; }
.spec-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.4) brightness(.85); background: var(--s3); }
.spec-small { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px 32px; margin-top: 24px; }

/* phone mock */
.phone { flex-shrink: 0; width: 230px; height: 400px; margin: auto; border-radius: 34px; border: 8px solid #0F0C0A; background: var(--bone); color: var(--basalt); display: flex; flex-direction: column; overflow: hidden; }
.phone-top { padding: 22px 18px 10px; display: grid; gap: 4px; }
.phone-top .mono { font-size: 10px; color: var(--s5); }
.phone-top .count { font-family: var(--f-disp); font-weight: 900; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.phone-card { margin: 0 14px; height: 92px; background: var(--s2); border-radius: 12px; }
.phone-line { margin: 12px 14px 0; height: 12px; border-radius: 6px; background: #C9BBA5; }
.phone-tabs { margin-top: auto; display: flex; border-top: 1px solid #C9BBA5; }
.phone-tabs span { flex: 1; padding: 12px 0; text-align: center; font-family: var(--f-mono); font-size: 10px; }
.phone-tabs span:first-child { background: var(--ochre); }
.phone-note { font-family: var(--f-mono); font-size: 11px; line-height: 1.5; color: var(--muted); max-width: 170px; }

/* ---------- AI stratum ---------- */
.stratum { display: grid; grid-template-columns: 140px repeat(4, minmax(0, 1fr)); border: 1px solid var(--s4); }
.stratum > * { padding: 20px 18px; border-left: 1px solid var(--s4); border-top: 1px solid var(--s4); }
.stratum > :nth-child(5n+1) { border-left: 0; }
.stratum > :nth-child(-n+5) { border-top: 0; }
.stratum .col { font-family: var(--f-disp); font-weight: 800; font-size: 26px; text-transform: uppercase; background: var(--basalt); display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.stratum .col small { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--ochre); letter-spacing: .1em; }
.stage-art { display: block; width: 100%; height: auto; max-height: 150px; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.6,0,.2,1) .25s; }
.reveal.is-in .draw { stroke-dashoffset: 0; }
.nodig-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 36px; }
.nodig-list li { display: flex; align-items: center; gap: 12px; }
.stratum .row-ai { font-family: var(--f-mono); font-size: 12px; background: var(--ochre); color: var(--basalt); }
.stratum .row-me { font-family: var(--f-mono); font-size: 12px; background: var(--bone); color: var(--basalt); }
.stratum .ai { background: var(--s2); font-size: 15px; line-height: 1.55; }
.stratum .me { background: var(--s3); font-size: 15px; line-height: 1.55; }
.nodig { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 32px; padding: 24px 28px; border: 2px dashed var(--tag); background: repeating-linear-gradient(135deg, rgba(255,61,110,.07) 0 10px, transparent 10px 20px); }
.nodig .mono { font-size: 12px; letter-spacing: .12em; color: var(--tag); }
.nodig .h-m { font-size: clamp(22px, 2.3vw, 32px); text-transform: none; font-family: var(--f-disp); }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tool { padding: 24px; background: var(--basalt); border: 1px solid var(--s4); display: flex; flex-direction: column; gap: 10px; }
.tool p { font-size: 15px; color: var(--bone-2); }
.tool-icon { width: 76px; height: 76px; margin-bottom: 6px; }
.tool { transition: border-color .2s; }
.tool:hover { border-color: var(--ochre); }

/* Tool strata — AI tools weighted by use */
.toolstrata { margin-top: 48px; display: grid; gap: 10px; }
.toolstrata .eyebrow { margin-bottom: 6px; }
.ts-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 24px; align-items: center; }
.ts-bar { display: block; background: var(--s1); }
.ts-bar i { display: block; height: 100%; }
.ts-1 .ts-bar { height: 44px; } .ts-1 .ts-bar i { width: 100%; background: var(--ochre) repeating-linear-gradient(90deg, rgba(21,17,14,.18) 0 2px, transparent 2px 12px); }
.ts-2 .ts-bar { height: 20px; } .ts-2 .ts-bar i { width: 42%; background: var(--bone-2); }
.ts-3 .ts-bar { height: 6px; }  .ts-3 .ts-bar i { width: 12%; background: var(--s5); }
.ts-3 .h-m { color: var(--muted); font-size: 22px; }
.ts-note { font-family: var(--f-mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.ts-note b { font-weight: 500; color: var(--bone); }
@media (max-width: 760px) {
  .ts-row { grid-template-columns: 1fr; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--s2); }
}

/* ---------- Proof ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.quotes blockquote { font-family: var(--f-disp); font-weight: 600; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; }
.quotes figcaption { margin-top: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }

/* ---------- Field reports: tags hanging on a moving line ---------- */
.ref-belts { display: grid; gap: 8px; margin: 24px calc(var(--pad-x) * -1) 0 calc(var(--pad-l) * -1); }
.ref-belt { position: relative; overflow: hidden; padding: 34px 0 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ref-belt::before { content: ''; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--s5) 0 10px, var(--s4) 10px 14px); }
.ref-track { display: flex; width: max-content; animation: ref-belt 70s linear infinite; }
.ref-belt--rev .ref-track { animation-direction: reverse; animation-duration: 82s; }
.ref-set { display: flex; gap: 28px; padding-right: 28px; }
.refs.is-paused .ref-track, .ref-belt:hover .ref-track, .ref-belt:focus-within .ref-track { animation-play-state: paused; }
@keyframes ref-belt { to { transform: translateX(-50%); } }

.ref-tag {
  position: relative; flex: 0 0 auto; width: 300px; min-height: 250px; padding: 34px 24px 22px;
  display: flex; flex-direction: column; gap: 14px; text-align: left; cursor: pointer;
  --paper: var(--bone); color: var(--basalt);
  background:
    linear-gradient(135deg, transparent 13px, var(--paper) 13px) top left / 51% 60% no-repeat,
    linear-gradient(225deg, transparent 13px, var(--paper) 13px) top right / 51% 60% no-repeat,
    linear-gradient(var(--paper), var(--paper)) bottom / 100% 41% no-repeat;
  transform: rotate(var(--tilt, -1.2deg)); transform-origin: 50% -30px;
  transition: transform .35s cubic-bezier(.3,1.4,.5,1);
}
.ref-tag:nth-child(even) { --tilt: 1.4deg; }
.ref-tag:nth-child(3n) { --tilt: -0.4deg; }
.ref-tag--1 { --paper: #E6D6B8; }
.ref-tag--2 { --paper: #F1E3C4; }
.ref-tag:hover, .ref-tag:focus-visible { transform: rotate(0) translateY(-6px); --paper: var(--ochre); }
.ref-tag:focus-visible { outline: 3px solid var(--bone); outline-offset: 4px; }
.ref-tag::before { content: ''; position: absolute; left: 50%; top: -20px; width: 2px; height: 32px; margin-left: -1px; background: var(--bone-2); }
.ref-hole { position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--basalt); box-shadow: 0 0 0 3px rgba(21,17,14,.18); }
.ref-no { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--ochre-ink); }
.ref-tag:hover .ref-no, .ref-tag:focus-visible .ref-no { color: var(--basalt); }
.ref-quote { font-family: var(--f-disp); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; }
.ref-who { margin-top: auto; display: grid; gap: 2px; font-size: 14px; }
.ref-who b { font-weight: 600; }
.ref-who span { font-family: var(--f-mono); font-size: 11px; color: #5B4A3A; }
.ref-read { font-family: var(--f-mono); font-size: 11px; font-weight: 500; border-top: 1px dashed rgba(21,17,14,.35); padding-top: 10px; }
.ref-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.ref-bar .mono { font-size: 12px; color: var(--muted); }
.ref-bar a { color: var(--ochre); text-decoration: underline; text-underline-offset: 3px; }

.ref-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; background: transparent; overflow: visible; }
.ref-dialog::backdrop { background: rgba(10, 8, 6, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ref-dialog[open] .ref-paper { animation: ref-in .45s cubic-bezier(.2,1.2,.4,1); }
@keyframes ref-in { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } to { opacity: 1; transform: none; } }
.ref-paper { background: var(--bone); color: var(--basalt); max-height: calc(100svh - 48px); overflow-y: auto; padding: 0 clamp(22px, 5vw, 44px) 26px; border-top: 10px solid var(--ochre); box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.ref-paper-head { position: sticky; top: 0; display: flex; align-items: center; gap: 16px; padding: 16px 0; background: var(--bone); border-bottom: 1px dashed rgba(21,17,14,.3); font-size: 11px; color: var(--ochre-ink); z-index: 1; }
.ref-paper-head .mono + .mono { color: #5B4A3A; }
.ref-x { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--basalt); font-size: 24px; line-height: 1; color: var(--basalt); }
.ref-x:hover { background: var(--basalt); color: var(--bone); }
.ref-d-name { margin-top: 22px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(34px, 5vw, 52px); line-height: .92; text-transform: uppercase; }
.ref-d-role { margin-top: 8px; font-size: 12px; color: #5B4A3A; }
.ref-d-body { margin-top: 22px; font-size: 17px; line-height: 1.7; }
.ref-d-body mark { background: var(--ochre); color: var(--basalt); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ref-paper-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px dashed rgba(21,17,14,.3); }
.ref-paper-foot .mono { font-size: 11px; color: #5B4A3A; }
.ref-nav { min-height: 44px; padding: 0 16px; border: 1px solid var(--basalt); font-weight: 600; font-size: 14px; color: var(--basalt); }
.ref-nav:hover { background: var(--basalt); color: var(--bone); }
.ref-dialog :focus-visible { outline: 2px solid var(--ochre-ink); outline-offset: 2px; }

@media (max-width: 760px) {
  .ref-tag { width: 260px; min-height: 230px; }
  .ref-quote { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ref-track { animation: none; }
  .ref-belt { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; scroll-padding-inline-start: var(--pad-l); }
  .ref-tag { scroll-snap-align: start; }
  .ref-set--dup, .ref-pause { display: none; }
  .ref-belt .ref-set { padding-left: var(--pad-l); }
  .ref-dialog[open] .ref-paper { animation: none; }
}

/* ---------- Bedrock slabs ---------- */
.slabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.slabs > .slab { grid-column: span 2; }
.slabs > .slab:nth-child(-n+2) { grid-column: span 3; }
.slabs--3 > .slab, .slabs--3 > .slab:nth-child(-n+2) { grid-column: span 2; }
.slab { position: relative; display: flex; align-items: flex-end; aspect-ratio: 1200 / 622; padding: 0; overflow: hidden; background: var(--s3); border: 1px solid var(--s4); text-align: left; color: var(--bone); cursor: pointer; transition: border-color .2s, transform .3s; }
.slab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) saturate(.9) brightness(.9); transition: filter .3s, transform .5s; }
button.slab:hover, button.slab:focus-visible { border-color: var(--ochre); transform: translateY(-4px); }
button.slab:hover img, button.slab:focus-visible img { filter: none; transform: scale(1.05); }
.slab-name { position: relative; width: 100%; padding: 48px 18px 14px; font-family: var(--f-disp); font-weight: 800; font-size: 24px; line-height: .95; text-transform: uppercase; background: linear-gradient(transparent, rgba(21,17,14,.92)); }
.slab-view { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 6px 9px; font-size: 10px; background: var(--ochre); color: var(--basalt); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
button.slab:hover .slab-view, button.slab:focus-visible .slab-view { opacity: 1; transform: none; }
.slab--pending { cursor: default; border-style: dashed; border-color: var(--s5); flex-direction: column; justify-content: space-between; align-items: stretch; }
.slab-pending { padding: 14px 16px; font-size: 10px; color: var(--muted); }
.ig-caption { margin-top: 44px; max-width: 760px; }
.ig-caption .lede { margin-top: 12px; }

.gal-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; background: transparent; color: var(--bone); overflow: visible; }
.gal-dialog::backdrop { background: rgba(10, 8, 6, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gal-dialog[open] .gal-box { animation: ref-in .4s cubic-bezier(.2,1.2,.4,1); }
.gal-box { background: var(--basalt); border: 1px solid var(--s5); border-top: 8px solid var(--ochre); display: flex; flex-direction: column; max-height: calc(100svh - 32px); }
.gal-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--s3); }
.gal-head .mono { font-size: 11px; color: var(--ochre); }
.gal-head h3 { font-family: var(--f-disp); font-weight: 900; font-size: 28px; text-transform: uppercase; line-height: 1; }
.gal-x { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--bone); font-size: 24px; line-height: 1; }
.gal-x:hover { background: var(--bone); color: var(--basalt); }
.gal-media { flex: 1; min-height: 0; display: grid; place-items: center; background: #000; }
.gal-media video, .gal-media img { width: 100%; max-height: calc(100svh - 190px); object-fit: contain; }
.gal-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--s3); }
.gal-nav { min-height: 44px; padding: 0 18px; border: 1px solid var(--bone); font-weight: 600; font-size: 14px; }
.gal-nav:hover { background: var(--ochre); border-color: var(--ochre); color: var(--basalt); }

/* ---------- Timeline ---------- */
.fossils { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; border-top: 2px solid var(--s5); padding-top: 24px; }
.fossils div { display: grid; gap: 6px; align-content: start; }
.fossils .mono { font-size: 12px; color: var(--ochre); }
.fossils b { font-family: var(--f-disp); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.fossils span:last-child { font-size: 14px; color: #BCAE99; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; }
.about .portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--s4); }
.about .portrait--tall { aspect-ratio: 9 / 16; object-fit: contain; }
.portrait-pic { display: block; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.facts div { padding: 20px; border-top: 3px solid var(--ochre); background: var(--s1); }
.facts b { display: block; font-family: var(--f-disp); font-weight: 900; font-size: 44px; line-height: 1; }
.facts span { font-size: 14px; color: var(--bone-2); }
.facts--9 div { transition: transform .25s, border-color .2s, background .2s; }
.facts--9 div:hover { transform: translateY(-3px); background: var(--s2); }
.facts--9 span { display: block; margin-top: 8px; line-height: 1.4; }
@media (max-width: 1100px) { .facts--9 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.game-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.game-notes > div { padding: 20px 22px; background: var(--s1); border-top: 4px solid var(--ochre); }
.game-notes .mono { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); margin-bottom: 10px; }
.game-notes p { font-size: 15px; color: var(--bone-2); }
.game-notes b { color: var(--bone); font-weight: 600; }
.figma-frame { position: relative; aspect-ratio: 16 / 9; background: var(--s1); border: 1px solid var(--s4); }
.figma-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.edge-study { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 24px; padding: 26px 28px; background: var(--s3); border-left: 5px solid var(--ochre); }
.edge-study > div { max-width: 640px; }
@media (max-width: 1100px) { .game-notes { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .figma-frame { aspect-ratio: 9 / 16; max-height: 80svh; } }

.mini-map { display: flex; align-items: center; justify-content: center; padding: 12px; background: var(--basalt); border: 1px solid var(--s4); }
.mini-map svg { width: 100%; max-width: 460px; height: auto; }
.mm-order { animation: mm-travel 9s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes mm-travel { 0% { cx: 20px; } 12.5% { cx: 74px; } 25% { cx: 129px; } 37.5% { cx: 183px; } 50% { cx: 237px; } 62.5% { cx: 291px; } 75% { cx: 346px; } 88%, 100% { cx: 400px; } }
.mm-l { stroke-dashoffset: 0; animation: mm-pulse 9s linear infinite; animation-delay: var(--d); opacity: .35; }
@keyframes mm-pulse { 0%, 100% { opacity: .35; } 8% { opacity: 1; stroke: #E8A33D; } 20% { opacity: .35; } }
.px { margin-top: 8px; }
.px-spine { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.px-spine::before { content: ''; position: absolute; left: 4%; right: 4%; top: 21px; height: 3px; background: var(--s5); }
.px-step { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 14px; text-align: center; color: var(--muted); border: 1px solid transparent; }
.px-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--basalt); border: 3px solid var(--s5); transition: transform .2s, background .2s, border-color .2s; }
.px-n { font-size: 10px; }
.px-label { font-size: 13px; line-height: 1.25; }
.px-step:hover { color: var(--bone); }
.px-step:hover .px-dot { border-color: var(--ochre); }
.px-step[aria-pressed="true"] { color: var(--bone); background: var(--s2); border-color: var(--s4); }
.px-step[aria-pressed="true"] .px-dot { background: var(--tag); border-color: var(--tag); transform: scale(1.25); box-shadow: 0 0 0 6px rgba(255,61,110,.18); }
.px-now { margin: 22px 0 14px; font-size: 18px; }
.px-now .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); margin-right: 8px; }
.px-lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.px-lane { padding: 16px; background: var(--s1); border-top: 4px solid var(--s5); min-height: 180px; }
.px-lane h4 { margin: 0 0 12px; font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.px-lane--customer { border-top-color: #D9CDB9; } .px-lane--store { border-top-color: #BCA58A; } .px-lane--platform { border-top-color: #8C7358; }
.px-lane--money { border-top-color: var(--ochre); background: #241A10; } .px-lane--infra { border: 1px dashed var(--s4); border-top: 4px dashed var(--s5); }
.px-always { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.px-lane ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.px-lane li { padding: 9px 11px; background: var(--s3); font-size: 14px; animation: px-in .35s cubic-bezier(.2,1.3,.4,1) both; }
.px-lane--money li { background: var(--ochre); color: var(--basalt); font-weight: 600; }
.px-lane li.px-empty { background: transparent; border: 1px dashed var(--s4); color: var(--s5); font-size: 13px; animation: none; }
@keyframes px-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.edge-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.edge-sticky { padding: 26px 24px 30px; background: #F2D06B; color: var(--basalt); box-shadow: 0 16px 30px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.edge-sticky:nth-child(2) { transform: rotate(1deg); }
.edge-sticky--grey { background: var(--s3); color: var(--bone); transform: rotate(-.6deg); }
.edge-sticky .mono { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; opacity: .75; }
.edge-sticky p { font-size: 16px; line-height: 1.5; }
@media (max-width: 1100px) {
  .px-spine { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; }
  .px-spine::before { display: none; }
  .px-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edge-notes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .px-spine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-lanes { grid-template-columns: 1fr; }
  .px-lane { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .mm-order, .mm-l, .px-lane li { animation: none; } }

.struct-wrap { overflow-x: auto; border: 1px solid var(--s4); }
.struct { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.struct th, .struct td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--s3); }
.struct thead th { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--s1); }
.struct thead th.is-pick { color: var(--basalt); background: var(--ochre); }
.struct thead th.is-pick span { margin-left: 8px; }
.struct tbody th { font-weight: 600; width: 24%; }
.struct td:last-child { background: rgba(232,163,61,.07); }
.pips { display: flex; gap: 4px; margin-bottom: 6px; }
.pips i { width: 14px; height: 6px; background: var(--s4); }
.pips i.on { background: var(--bone-2); }
.struct td:last-child .pips i.on { background: var(--ochre); }
.struct .struct-note { display: block; font-size: 13px; color: var(--muted); }
.struct td b { display: block; margin-bottom: 4px; }
.scenario-chips { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scenario-chips li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--s1); border: 1px solid var(--s4); font-size: 14px; }
.scenario-chips .mono { font-size: 10px; color: var(--ochre); }
.walk-frame { position: relative; height: min(760px, 80svh); border: 1px solid var(--s4); background: var(--basalt); }
.walk-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.walk-mobile { display: none; margin-top: 16px; }
.artefacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.artefact { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--s1); border: 1px solid var(--s4); border-top: 4px solid var(--ochre); transition: transform .25s, border-color .2s; }
.artefact:hover { transform: translateY(-4px); border-color: var(--ochre); }
.artefact .mono { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); }
.artefact b { font-family: var(--f-disp); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; }
.artefact p { font-size: 14px; color: var(--bone-2); }
.artefact-go { margin-top: auto; font-weight: 600; color: var(--ochre); }
@media (max-width: 1100px) { .artefacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .artefacts { grid-template-columns: 1fr; } .walk-frame { display: none; } .walk-mobile { display: block; } }

.map-frame { height: auto; aspect-ratio: 1920 / 1080; }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.map-frame iframe { transform-origin: 0 0; }
.proto-frame { aspect-ratio: 1440 / 967; margin-top: 24px; }
@media (max-width: 760px) { .map-frame { display: none; } }

.nda { position: relative; overflow: hidden; min-height: 380px; display: grid; place-items: center; background: var(--s1); border: 1px solid var(--s4); isolation: isolate; }
.nda-board { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); filter: blur(7px) saturate(.8); opacity: .55; z-index: -2; }
.nda::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(21,17,14,.35), rgba(21,17,14,.85)); }
.nda-tape { position: absolute; left: -10%; right: -10%; top: 34px; transform: rotate(-4deg); background: repeating-linear-gradient(-45deg, var(--basalt) 0 14px, var(--ochre) 14px 28px); padding: 7px 0; box-shadow: 0 8px 20px rgba(0,0,0,.4); z-index: 1; }
.nda-tape span { display: block; white-space: nowrap; overflow: hidden; margin: 0 auto; width: max-content; padding: 4px 12px; background: var(--ochre); font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .18em; color: var(--basalt); animation: nda-slide 22s linear infinite; }
@keyframes nda-slide { from { transform: translateX(0); } to { transform: translateX(-25%); } }
.nda-card { position: relative; z-index: 2; display: grid; justify-items: center; gap: 8px; margin: 90px 20px 36px; padding: 32px clamp(24px, 4vw, 48px); max-width: 520px; text-align: center; background: rgba(21,17,14,.92); border: 1px solid var(--s5); border-top: 5px solid var(--ochre); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.nda-lock { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; background: var(--ochre); color: var(--basalt); }
.nda-sub { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tag); }
.nda-cta { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .nda-tape span { animation: none; } }

.spec-thumbs.spec-thumbs--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: start; }
.spec-thumbs.spec-thumbs--5 img { grid-column: span 2; width: 100%; height: auto; aspect-ratio: 1200 / 622; object-fit: cover; filter: none; transition: transform .3s; }
.spec-thumbs.spec-thumbs--5 img:nth-child(-n+2) { grid-column: span 3; }
.spec-card:hover .spec-thumbs--5 img { transform: translateY(-2px); }

.nda-veiled { position: relative; overflow: hidden; isolation: isolate; }
.nda-veiled > iframe { filter: blur(9px) saturate(.85); pointer-events: none; user-select: none; }
.nda-veiled::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(21,17,14,.25), rgba(21,17,14,.8)); }
.nda-veiled > .nda-tape { z-index: 3; }
.nda-veiled > .nda-card { position: absolute; z-index: 4; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -44%); width: min(520px, calc(100% - 40px)); }
.nda-veiled > .nda-card .h-l { font-size: clamp(30px, 3.4vw, 48px); }
@media (max-width: 760px) {
  .proto-frame.nda-veiled { display: block; aspect-ratio: auto; height: 520px; }
  .nda-veiled > .nda-card { padding: 24px 20px; }
}

.btn--raptor { display: inline-flex; align-items: center; gap: 10px; padding-left: 14px; font-weight: 800; }
.rx-icon { width: 46px; height: auto; flex: none; transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.btn--raptor:hover .rx-icon { transform: rotate(-8deg) scale(1.1); }
.btn--li { display: inline-flex; align-items: center; gap: 10px; padding-left: 12px; background: #0A66C2; border-color: #0A66C2; color: #fff; transition: background .2s, border-color .2s, transform .25s, box-shadow .25s; }
.btn--li .li-icon { width: 22px; height: 22px; color: #fff; transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.btn--li:hover { background: #004182; border-color: #004182; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,102,194,.35); }
.btn--li:hover .li-icon { transform: scale(1.12); }
.li-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ochre); text-decoration: underline; text-underline-offset: 3px; }
.li-link .li-icon { width: 13px; height: 13px; color: #0A66C2; background: #fff; border-radius: 2px; }

/* Explanatory illustrations: one 4-second loop per section; each illustration starts 0.5s after the previous one */
.ex-play > :not(.draw):not(defs):not(title):not(style) { animation: ex-build 4s ease-in-out infinite both; animation-delay: calc(var(--g, 0) * .5s + var(--i, 0) * 45ms); }
.ex-play .draw { transition: none; animation: ex-draw 4s ease-in-out infinite both; animation-delay: calc(var(--g, 0) * .5s + var(--i, 0) * 45ms); }
@keyframes ex-build { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes ex-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 22% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ex-play > *, .ex-play .draw { animation: none !important; opacity: 1; stroke-dashoffset: 0; } }

/* ---------- About: clients, toolkit, timeline, certs ---------- */
.about-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(64px, 8vw, 104px); margin-top: clamp(64px, 8vw, 104px); }
.sub-block { border-top: 1px solid var(--s3); padding-top: 40px; }
.logo-belt { position: relative; overflow: hidden; margin: 8px calc(var(--pad-x) * -1) 0 calc(var(--pad-l) * -1); padding: 26px 0; background: var(--s1); border-top: 1px solid var(--s3); border-bottom: 1px solid var(--s3);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; width: max-content; animation: ref-belt 55s linear infinite; }
.logo-belt:hover .logo-track { animation-play-state: paused; }
.logo-set { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.logo-set img { height: 34px; width: auto; max-width: 170px; object-fit: contain; transition: transform .2s; }
.logo-set img:hover { transform: scale(1.12); }
.toolkit { display: grid; gap: 14px; }
.toolkit-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; padding: 18px 0; border-bottom: 1px dashed var(--s3); }
.toolkit-row h4 { margin: 10px 0 0; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); }
.toolkit-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tool-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--s1); border: 1px solid var(--s4); font-size: 14px; transition: border-color .2s, background .2s; }
.tool-chip:hover { border-color: var(--ochre); }
.tool-chip-icon { display: grid; place-items: center; width: 30px; height: 30px; }
.tool-chip-icon img, .tool-chip-icon svg { width: 28px; height: 28px; border-radius: 6px; transition: transform .2s; }
.tool-chip:hover .tool-chip-icon img, .tool-chip:hover .tool-chip-icon svg { transform: scale(1.18); }
.tool-chip--primary { background: var(--s3); border-color: var(--ochre); font-weight: 600; }
.tool-chip--low { opacity: .6; font-size: 13px; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl-row { display: grid; grid-template-columns: 170px 280px minmax(0, 1fr); gap: 28px; align-items: start; padding: 20px 24px; background: var(--s1); border-left: 4px solid var(--s5); }
.tl-row--1 { background: #201914; } .tl-row--2 { background: var(--s2); } .tl-row--3 { background: #291F18; }
.tl-row:first-child { border-left-color: var(--ochre); }
.tl-date { font-family: var(--f-mono); font-size: 12px; color: var(--ochre); padding-top: 3px; }
.tl-role b { display: block; font-family: var(--f-disp); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; }
.tl-role span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.tl-row p { font-size: 15px; color: var(--bone-2); }
.tl-more { margin-top: 12px; }
.tl-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--bone); font-size: 15px; }
.tl-more summary::-webkit-details-marker { display: none; }
.tl-more summary span { font-weight: 600; color: var(--ochre); }
.tl-more summary::before { content: '▾'; margin-right: 10px; color: var(--ochre); transition: transform .2s; }
.tl-more[open] summary::before { transform: rotate(180deg); }
.tl-more[open] summary { margin-bottom: 12px; }
.tl-more .tl-row { opacity: .9; }
.certs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; }
.certs-count { padding: 28px; background: var(--ochre); color: var(--basalt); }
.certs-count b { display: block; font-family: var(--f-disp); font-weight: 900; font-size: 140px; line-height: .8; }
.certs-count .h-m { display: block; margin-top: 12px; }
.cert-ticks { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-top: 22px; }
.cert-ticks span { aspect-ratio: 1; border: 2px solid var(--basalt); }
.cert-ticks span.on { background: var(--basalt); }
.cert-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cert-list li { padding: 14px 16px; background: var(--s1); border-left: 3px solid var(--ochre); font-size: 15px; }
.cert-list .cert-more { padding: 0; border-left-color: var(--ochre); }
.cert-toggle { width: 100%; min-height: 48px; padding: 14px 16px; text-align: left; font-family: var(--f-mono); font-size: 13px; color: var(--ochre); cursor: pointer; transition: background .2s; }
.cert-toggle:hover, .cert-toggle[aria-expanded="true"] { background: var(--s3); }
.cert-extra { margin-top: 10px; }
.cert-extra .cert-list { margin-top: 0; }
.cert-src { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.cert-rest { margin-top: 14px; font-size: 14px; color: var(--bone-2); }
.cert-rest a { color: var(--ochre); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .tl-row { grid-template-columns: 150px minmax(0, 1fr); }
  .tl-row p { grid-column: 2; }
  .certs { grid-template-columns: 1fr; }
  .toolkit-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-row p { grid-column: 1; }
  .cert-list { grid-template-columns: 1fr; }
  .logo-set { gap: 40px; padding-right: 40px; }
  .logo-set img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-belt { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logo-set[aria-hidden] { display: none; }
  .logo-set { padding-left: var(--pad-l); }
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: #0F0C0A repeating-linear-gradient(90deg, rgba(74,56,39,.25) 0 2px, transparent 2px 14px); }
.contact .h-mega { font-size: clamp(56px, 9.5vw, 140px); }
.contact .contact-dino { position: absolute; right: var(--pad-x); bottom: 40px; width: min(320px, 30vw); }
.hero-guide { position: absolute; right: var(--pad-x); top: 56px; width: min(340px, 30vw); }
.contact .mono { font-size: 13px; color: #BCAE99; margin-top: 28px; }

/* ---------- Case study template ---------- */
.cs-hero { padding-bottom: 0; overflow: hidden; }
.cs-hero .h-mega { font-size: clamp(64px, 13vw, 190px); margin-top: 12px; }
.cs-hero .lede { margin-top: 28px; }
.cs-hero .strata { margin: 56px calc(var(--pad-x) * -1) 0 calc(var(--pad-l) * -1); }
.cs-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--s3); padding-left: var(--pad-l); padding-right: var(--pad-x); }
.cs-meta div { padding: 28px 24px 28px 0; display: grid; gap: 6px; }
.cs-meta div + div { padding-left: 24px; border-left: 1px solid var(--s4); }
.cs-meta .mono { font-size: 11px; color: #C4B39E; }
.cs-meta b { font-size: 16px; font-weight: 600; }
.cs-split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; }
.cs-split .h-l { font-family: var(--f-disp); font-weight: 800; text-transform: none; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.04; }
.log { display: flex; flex-direction: column; }
.log-row { display: grid; grid-template-columns: 90px 220px minmax(0, 1fr) 260px; gap: 32px; align-items: center; padding: 22px 32px; background: var(--s1); }
.log-tray { margin: 0; padding: 10px; background: var(--basalt); border: 1px solid var(--s4); }
.log-art { display: block; width: 100%; height: auto; }
.log-row:nth-child(2) { background: var(--s2); }
.log-row:nth-child(3) { background: var(--s3); }
.log-row:nth-child(4) { background: var(--s4); }
.log-row.is-ai { outline: 2px solid var(--ochre); outline-offset: -2px; }
.log-row .n { font-family: var(--f-disp); font-weight: 900; font-size: 56px; color: var(--ochre); }
.log-row p { color: var(--bone-2); }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.note { display: flex; flex-direction: column; border: 1px solid var(--s4); }
@supports (grid-template-rows: subgrid) {
  .note { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}
.note-ai { padding: 20px 22px; font-size: 15px; background: var(--s1); color: var(--bone-2); }
.note-ai .mono { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.note-me { flex: 1; padding: 22px 22px 26px; background: var(--s3); border-top: 5px solid var(--ochre); position: relative; }
.note-me-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(28px, 2.6vw, 38px); line-height: .9; text-transform: uppercase; color: var(--ochre); }
.note-me-label svg { flex-shrink: 0; }
.note-me p { font-size: 17px; line-height: 1.5; color: var(--bone); font-weight: 500; }
.embed { min-height: 440px; border: 2px dashed var(--s5); display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding: 24px; text-align: center; }
.embed iframe { width: 100%; height: 640px; border: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.metrics div { padding: 28px; border-top: 3px solid var(--ochre); background: var(--basalt-2); }
.metrics b { display: block; font-family: var(--f-disp); font-weight: 900; font-size: 64px; line-height: 1; }
.metrics span { color: var(--bone-2); font-size: 15px; }
.next { display: inline-block; margin-top: 48px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(36px, 4.5vw, 64px); text-transform: uppercase; color: var(--ochre); }
.next-wrap { padding: var(--section-y) var(--pad-x) var(--section-y) var(--pad-l); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--s4); }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ba figure { display: grid; gap: 12px; }
.ba img { border: 1px solid var(--s4); }
.ba figcaption { font-size: 14px; color: var(--bone-2); }
.ba figcaption b { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--ochre); margin-bottom: 4px; }

/* ---------- Archive ---------- */
.subnav { position: sticky; top: 112px; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--pad-x) 14px var(--pad-l); background: rgba(28,22,18,.95); border-bottom: 1px solid var(--s3); }
.subnav a { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--s4); font-family: var(--f-mono); font-size: 12px; }
.reel video { width: 100%; background: #000; border: 1px solid var(--s4); }
.vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vids figure { display: grid; gap: 10px; }
.vids video { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--s4); }
.vids figcaption { font-family: var(--f-disp); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.anims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.anims figure { position: relative; background: #000; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--s4); }
.anims video { width: 100%; height: 100%; object-fit: cover; }
.anims figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-family: var(--f-mono); font-size: 11px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.art { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.art button { padding: 0; aspect-ratio: 1; overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.art button:hover img { transform: scale(1.06); }
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.doc { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px; background: var(--s1); border: 1px solid var(--s4); transition: border-color .2s; }
.doc:hover { border-color: var(--ochre); color: inherit; }
.doc .mono { font-size: 11px; color: var(--ochre); margin-top: 10px; }
.doc-thumb { position: relative; display: block; margin: 6px 10px 6px 0; }
.doc-img { position: relative; z-index: 2; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--basalt); border: 1px solid var(--s5); box-shadow: 0 10px 24px rgba(0,0,0,.35); transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
.doc-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) saturate(.85) brightness(.92); transition: filter .3s, transform .5s; }
.doc-thumb--stack::before, .doc-thumb--stack::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--s5); transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
.doc-thumb--stack::before { z-index: 1; background: var(--s3); transform: translate(5px, -5px); }
.doc-thumb--stack::after { z-index: 0; background: var(--s2); transform: translate(10px, -10px); }
.doc:hover .doc-img { transform: translateY(-4px) rotate(-1deg); }
.doc:hover .doc-img img { filter: none; transform: scale(1.03); }
.doc:hover .doc-thumb--stack::before { transform: translate(9px, -9px) rotate(1.5deg); }
.doc:hover .doc-thumb--stack::after { transform: translate(17px, -15px) rotate(3deg); }
.doc-open { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14px; color: var(--ochre); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(10,8,6,.94); padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 86vh; width: auto; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border: 1px solid var(--bone); font-size: 22px; }

/* ---------- Footer ---------- */
.site-footer { padding: 28px var(--pad-x) 28px var(--pad-l); border-top: 1px solid var(--s3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .spec-feature { grid-template-columns: minmax(0, 1fr); }
  .stratum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stratum > * { border-left: 1px solid var(--s4) !important; border-top: 1px solid var(--s4) !important; }
  .stratum .col--corner, .stratum .row-ai, .stratum .row-me { display: none; }
  .stratum .col { grid-column: 1 / -1; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 28px; }
  .stratum .col span { min-width: 110px; }
  .stratum .col .stage-art { width: min(260px, 55%); }
  .stratum .ai::before { content: attr(data-stage) ' · AI does'; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--ochre); display: block; margin-bottom: 4px; }
  .stratum .me::before { content: attr(data-stage) ' · I decide'; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--bone); display: block; margin-bottom: 4px; }
  .stratum > :nth-child(2) { order: 1; } .stratum > :nth-child(7) { order: 2; } .stratum > :nth-child(12) { order: 3; }
  .stratum > :nth-child(3) { order: 4; } .stratum > :nth-child(8) { order: 5; } .stratum > :nth-child(13) { order: 6; }
  .stratum > :nth-child(4) { order: 7; } .stratum > :nth-child(9) { order: 8; } .stratum > :nth-child(14) { order: 9; }
  .stratum > :nth-child(5) { order: 10; } .stratum > :nth-child(10) { order: 11; } .stratum > :nth-child(15) { order: 12; }
  .tools, .anims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slabs > .slab, .slabs > .slab:nth-child(-n+2) { grid-column: span 1; }
  .slabs > .slab:first-child { grid-column: 1 / -1; }
  .fossils { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-row { grid-template-columns: 70px 180px minmax(0, 1fr); }
  .log-tray { grid-column: 2 / -1; max-width: 420px; }
  .cs-meta div, .cs-meta div + div { padding: 20px 0; border-left: 0; }
  .art { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  :root { --pad-l: var(--pad-x); }
  .rail { display: none; }
  .progress { display: block; position: fixed; left: 0; top: 112px; height: 5px; width: 0; background: var(--ochre); box-shadow: 0 0 10px rgba(232, 163, 61, .6); z-index: 45; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad-x) 24px; background: var(--basalt); border-bottom: 1px solid var(--s3); display: none; }
  .nav.is-open { display: flex; }
  .nav { max-height: calc(100svh - 72px); overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .has-drop { flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--s2); }
  .has-drop .nav-top { flex: 1; padding: 14px 0; font-size: 18px; }
  .drop-toggle { width: 48px; height: 48px; border-left: 1px solid var(--s2); }
  .drop { position: static; width: 100%; min-width: 0; padding: 0 0 10px; border: 0; box-shadow: none; background: transparent; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-drop:hover .drop, .has-drop:focus-within .drop { display: none; }
  .drop-toggle[aria-expanded="true"] + .drop { display: block; }
  .drop a { padding: 10px 0 10px 16px; font-size: 16px; border-left: 2px solid var(--s4); }
  .nav-list > li > .nav-top:not(.has-drop *) { display: block; padding: 14px 0; border-bottom: 1px solid var(--s2); font-size: 18px; }
  .nav .btn { margin-top: 16px; width: 100%; }
  .crumbs-hint { display: none; }
  .hero-meta { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .spec-grid, .quotes, .about, .cs-split, .notes, .metrics, .vids, .docs, .ba, .gallery { grid-template-columns: 1fr; }
  .stratum, .tools { grid-template-columns: 1fr; }
  .slabs { grid-template-columns: minmax(0, 1fr); }
  .slabs > .slab, .slabs > .slab:first-child { grid-column: 1; }
  .slab:nth-child(even) { margin-top: 0; }
  .fossils { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: auto; }
.spec-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.4) brightness(.85); background: var(--s3); }
.spec-small { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; padding: 22px; }
  .log-row .n { font-size: 40px; grid-row: span 2; }
  .log-tray { grid-column: 1 / -1; margin-top: 10px; }
  .about .portrait { max-width: 220px; }
  .facts { grid-template-columns: 1fr; }
  .hero-guide { position: static; width: 180px; margin-top: 24px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .guide, .sec-head > .btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .guide { width: 120px; justify-items: start; }
  .guide figcaption { text-align: left; }
  .phone-note { display: none; }
  .contact .contact-dino { opacity: .25; }
  .brand-name span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail.is-digging .rail-lbl .shovel { animation: none; }
  .dig-stamp { animation: none; }
  .draw { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .crumbs, .rail, .progress, .site-footer, .no-print { display: none !important; }
}

/* ---------- Contact / base camp ---------- */
.cbc-hero { min-height: calc(100svh - 112px); }
.cbc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cbc-title { font-size: clamp(52px, 8vw, 128px); margin: 14px 0 20px; }
.cbc-radio { position: relative; width: 150px; height: 90px; margin: 28px 0 18px; }
.cbc-dish { position: absolute; left: 0; bottom: 0; width: 86px; color: var(--ochre); }
.cbc-dish .rx-icon { width: 86px; }
.cbc-dish .rx-eye { fill: var(--basalt); }
.cbc-radio i { position: absolute; left: 69px; top: 37px; width: 26px; height: 26px; border: 3px solid var(--ochre); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(45deg) scale(.5); opacity: 0; animation: cbc-signal 2.4s ease-out infinite; }
.cbc-radio i:nth-of-type(2) { animation-delay: .5s; } .cbc-radio i:nth-of-type(3) { animation-delay: 1s; }
@keyframes cbc-signal { 0% { transform: rotate(45deg) scale(.5); opacity: 0; } 20% { opacity: 1; } 100% { transform: rotate(45deg) scale(3); opacity: 0; } }
.cbc-direct { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.cbc-direct li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--s3); font-size: 16px; }
.cbc-direct .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); padding-top: 3px; }
.cbc-direct a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.cbc-tag { position: relative; display: grid; gap: 16px; padding: 46px clamp(22px, 3vw, 40px) 34px; background: var(--bone); color: var(--basalt); clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); transform: rotate(1.2deg); box-shadow: 0 30px 60px rgba(0,0,0,.45); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.cbc-tag:focus-within { transform: rotate(0); }
.cbc-hole { position: absolute; right: 30px; top: 30px; width: 18px; height: 18px; border-radius: 50%; background: var(--basalt); box-shadow: inset 0 0 0 4px var(--ochre); }
.cbc-tag-no { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ochre-ink); }
.cbc-tag-title { margin: -8px 0 4px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(34px, 3.4vw, 50px); line-height: .95; text-transform: uppercase; }
.cbc-tag label { display: grid; gap: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #5B4A3A; }
.cbc-opt { text-transform: none; letter-spacing: 0; color: #8C7358; }
.cbc-tag input, .cbc-tag select, .cbc-tag textarea { width: 100%; padding: 12px 14px; font: 16px/1.4 var(--f-body); color: var(--basalt); background: #F7F1E6; border: 1.5px solid #C9BBA5; border-radius: 0; letter-spacing: 0; text-transform: none; transition: border-color .2s, box-shadow .2s; }
.cbc-tag input:focus, .cbc-tag select:focus, .cbc-tag textarea:focus { outline: none; border-color: var(--ochre-ink); box-shadow: 0 0 0 3px rgba(232,163,61,.35); }
.cbc-tag textarea { resize: vertical; min-height: 130px; }
.cbc-tag select { -webkit-appearance: none; appearance: none; padding-right: 52px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239A5F12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 22px center; background-size: 12px 8px; cursor: pointer; }
.cbc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cbc-send { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; background: var(--basalt); border-color: var(--basalt); color: var(--bone); }
.cbc-send:hover { background: var(--ochre); border-color: var(--ochre); color: var(--basalt); }
.cbc-send .mail-icon { flex: none; transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.cbc-send:hover .mail-icon { transform: translate(3px, -2px) rotate(-8deg); }
.cbc-error { color: #B3261E; font-size: 14px; }
.cbc-ok { padding: 12px 14px; background: #E4EBD7; border-left: 4px solid #5E7F45; font-size: 15px; }
.cbc-ok a { color: var(--basalt); text-decoration: underline; }
@media (max-width: 960px) { .cbc-grid { grid-template-columns: 1fr; } .cbc-tag { transform: none; } }
@media (max-width: 560px) { .cbc-row { grid-template-columns: 1fr; } .cbc-direct li { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .cbc-radio i { animation: none; opacity: 0; } .cbc-tag { transition: none; } }

/* ---------- Hero: fit above the fold on desktop ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "welcome" "title" "quote" "mark" "copy" "data"; }
.hero-grid > .hero-welcome { grid-area: welcome; }
.hero-grid > .hero-title { grid-area: title; }
.hero-grid > .hero-quote { grid-area: quote; }
.hero-grid > .hero-mark { grid-area: mark; justify-self: center; width: min(340px, 82%); margin-top: 36px; }
.hero-grid > .hero-copy { grid-area: copy; margin-top: 28px; }
.hero-grid > .hero-data { grid-area: data; margin-top: 28px; }
.hero-copy .btn-row { margin-top: 24px; }
@media (min-width: 1024px) {
  .hero { padding-top: clamp(20px, 3.6vh, 56px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(280px, 29vw, 470px); grid-template-rows: auto auto auto 1fr; grid-template-areas: "welcome mark" "title mark" "quote mark" "copy data"; column-gap: clamp(32px, 4vw, 72px); }
  .hero-welcome { font-size: clamp(20px, min(2.1vw, 3.5vh), 36px); margin-bottom: 1.2vh; padding-bottom: 1.4vh; }
  .hero-title--strata { font-size: clamp(40px, min(5.6vw, 9.4vh), 118px); margin-top: 1.4vh; }
  .hero-quote { margin-top: 2.6vh; padding-top: 2px; padding-bottom: 2px; }
  .hero-quote p { font-size: clamp(15px, min(1.4vw, 2.3vh), 24px); line-height: 1.6; }
  .hero-quote::before { font-size: clamp(56px, 8vh, 110px); }
  .hero-grid > .hero-mark { align-self: center; justify-self: center; width: 100%; margin-top: 0; }
  .hero-grid > .hero-copy { margin-top: 2.6vh; }
  .hero-copy .lede { font-size: clamp(15px, min(1.25vw, 2.1vh), 20px); }
  .hero-name { font-size: clamp(22px, min(2.1vw, 3.5vh), 36px); margin-bottom: .8vh; }
  .hero-copy .btn-row { margin-top: 2.2vh; }
  .hero-grid > .hero-data { align-self: end; margin-top: 2.6vh; }
}

/* ---------- Hero: portrait tablets (768–1366 tall screens) ---------- */
@media (min-width: 600px) and (max-width: 1366px) and (orientation: portrait) {
  .hero { padding-top: clamp(28px, 3.5vh, 56px); }
  .hero-grid { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); grid-template-rows: none; grid-template-areas: "welcome welcome" "title title" "quote quote" "mark copy" "data copy"; column-gap: clamp(24px, 4vw, 48px); align-items: start; }
  .hero-welcome { font-size: clamp(22px, 3.3vw, 38px); margin-bottom: 14px; padding-bottom: 14px; }
  .hero-title--strata { font-size: clamp(52px, 9.2vw, 124px); margin-top: 14px; }
  .hero-quote { margin-top: 26px; }
  .hero-quote p { font-size: clamp(17px, 2.35vw, 26px); line-height: 1.6; }
  .hero-quote::before { font-size: clamp(64px, 9vw, 110px); }
  .hero-grid > .hero-mark { align-self: center; justify-self: center; width: 100%; margin-top: 30px; }
  .hero-grid > .hero-copy { align-self: center; margin-top: 30px; }
  .hero-name { font-size: clamp(24px, 3.4vw, 40px); margin-bottom: 10px; }
  .hero-copy .lede { font-size: clamp(16px, 2.1vw, 21px); }
  .hero-copy .btn-row { margin-top: 20px; }
  .hero-grid > .hero-data { align-self: start; justify-self: center; margin-top: 18px; font-size: clamp(11px, 1.35vw, 13px); }
}

/* ---------- Image viewer (site-wide) ---------- */
[data-vw] { cursor: zoom-in; }
[data-vw]:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.vw-sub { padding: 12px 20px 0; font-size: 15px; line-height: 1.5; color: var(--bone-2); }
.vw-sub:empty { display: none; }
.gal-media img.vw-tall { width: auto; max-width: 100%; }
.gal-foot .mono { align-self: center; font-size: 11px; color: var(--muted); }
.anims figure[data-vw] figcaption::after { content: ' ⤢'; color: var(--ochre); }
