/* =========================================================
   Rolling Stock — rebrand concept
   Palette from rollingstock.uk: navy #003049, sand #D9C8AE,
   racing green #154734, mustard #F1B434, oxblood #571600
   ========================================================= */

:root {
  --navy: #003049;
  --navy-deep: #001d2c;
  --navy-ink: #00141f;
  --sand: #D9C8AE;
  --sand-soft: #E9DECB;
  --cream: #F5EFE4;
  --paper: #FBF8F2;
  --green: #154734;
  --green-deep: #0d2f22;
  --mustard: #F1B434;
  --mustard-deep: #d99a14;
  --oxblood: #571600;
  --mint: #A8D5B5;
  --text: #13222c;
  --muted: #5b6770;
  --line: rgba(0, 48, 73, .14);
  --line-light: rgba(217, 200, 174, .22);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Space Mono', ui-monospace, 'Courier New', monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(0, 29, 44, .45);
  --shadow-soft: 0 18px 40px -24px rgba(0, 29, 44, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mustard); color: var(--navy); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--mustard); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.container { width: min(1280px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--f-display); font-weight: 500; font-variation-settings: 'SOFT' 50, 'opsz' 120;
  font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: .98; letter-spacing: -.025em; margin: .2em 0 .35em;
  color: var(--navy);
}
.h2 em { font-style: italic; font-weight: 400; color: var(--green); }
.h2--light { color: var(--cream); }
.h2--light em { color: var(--mustard); }
.eyebrow {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); margin: 0; display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--sand); }
.eyebrow--mustard { color: var(--mustard); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 0 0 rgba(241,180,52,.6); animation: pulse 2.2s infinite; }
.eyebrow--light::before { display: none; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--muted); max-width: 56ch; margin: 0; }
.lede--light { color: rgba(245, 239, 228, .78); }
.fine { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }
.fine--light { color: rgba(245, 239, 228, .55); }
.mustard { color: var(--mustard); }
.italic { font-style: italic; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; gap: 12px; } }

/* word reveal */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.reveal-words.in .w > span { transform: none; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: var(--cream);
  display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  background: var(--bg); color: var(--fg); text-decoration: none; border: 0;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: .95em 1.5em; border-radius: 999px; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::after { /* shine sweep */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--mustard { --bg: var(--mustard); --fg: var(--navy); box-shadow: 0 10px 30px -12px rgba(241,180,52,.7); }
.btn--mustard:hover { box-shadow: 0 16px 36px -12px rgba(241,180,52,.85); }
.btn--navy { --bg: var(--navy); --fg: var(--cream); }
.btn--ghost-light { --bg: rgba(245,239,228,.06); --fg: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(245,239,228,.35); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn--outline { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: var(--cream); }
.btn--lg { padding: 1.1em 1.8em; font-size: 1.02rem; }
.btn--sm { padding: .7em 1.2em; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--mustard); padding-bottom: 2px; }
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--navy); display: grid; place-items: center; transition: transform 1s var(--ease) .1s, visibility 0s 1.2s; }
.preloader__inner { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.preloader__wheel, .preloader__ast { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader__wheel { fill: var(--sand); }
.preloader__ast { fill: var(--mustard); animation: spin 1.2s linear infinite; }
.preloader__text { position: absolute; top: 130px; white-space: nowrap; font-family: var(--f-display); font-style: italic; color: var(--cream); font-size: 1.3rem; margin: 0; }
.preloader__text span { animation: blink 1.2s infinite; }
.preloader__text span:nth-child(2) { animation-delay: .2s; }
.preloader__text span:nth-child(3) { animation-delay: .4s; }
body:not(.is-loading) .preloader { transform: translateY(-100%); visibility: hidden; }

/* ---------- Road progress ---------- */
.road { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; transition: top .5s var(--ease); }
body.nav-solid:not(.nav-hidden) .road { top: 64px; }
.road__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--mustard), var(--sand)); }
.road__trailer { position: absolute; top: 3px; left: calc(var(--p, 0) * (100% - 34px)); width: 34px; height: 18px; color: var(--mustard); transition: opacity .3s; opacity: 0; }
body.scrolled .road__trailer { opacity: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: var(--cream);
  transition: transform .5s var(--ease), background .4s, color .4s, height .4s, box-shadow .4s;
}
.nav.is-solid { background: rgba(251, 248, 242, .86); color: var(--navy); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); height: 64px; box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { position: relative; width: 44px; height: 44px; }
.brand__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand__ring { fill: currentColor; }
.brand__ast { fill: var(--mustard); transform: rotate(var(--spin, 0deg)); transform-origin: 50% 50%; }
.brand__word { font-weight: 700; font-size: 1.02rem; line-height: 1.02; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 14px; border-radius: 999px; position: relative; transition: background .3s; }
.nav__links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--mustard); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.nav__phone svg { width: 16px; height: 16px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(245,239,228,.12); position: relative; }
.nav.is-solid .burger { background: rgba(0,48,73,.08); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1180px) { .nav__links { display: none; } .burger { display: block; } }
@media (max-width: 640px) { .nav__phone span { display: none; } .nav__phone { width: 44px; height: 44px; border-radius: 50%; justify-content: center; background: rgba(245,239,228,.12); } .nav.is-solid .nav__phone { background: rgba(0,48,73,.08); } .nav__cta .btn { display: none; } }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--cream); padding: 100px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: circle(0 at calc(100% - 40px) 38px); transition: clip-path .8s var(--ease); }
.mobile-menu.open { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--f-display); font-size: clamp(1.8rem, 7vw, 2.6rem); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line-light); display: flex; gap: 16px; align-items: baseline; }
.mobile-menu nav a em { font-family: var(--f-mono); font-size: .8rem; font-style: normal; color: var(--mustard); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.mobile-menu__foot a { text-decoration: none; color: var(--sand); }
body.menu-open .nav { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; background: radial-gradient(120% 90% at 75% 40%, #0a4666 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--cream); overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
}
.hero::after { /* film grain */
  content: ''; position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
.hero__names { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-38%); pointer-events: none; overflow: hidden; }
.hero__names-track { display: flex; gap: .4em; width: max-content; animation: marquee 60s linear infinite; }
.hero__names span { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(8rem, 22vw, 20rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(217, 200, 174, .13); white-space: nowrap; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 20px; width: min(1400px, 100%); margin: 0 auto; flex: 1; }
.hero__title { font-family: var(--f-display); font-weight: 500; font-variation-settings: 'SOFT' 100, 'opsz' 144; font-size: clamp(3rem, 7.4vw, 7.2rem); line-height: .92; letter-spacing: -.035em; margin: .35em 0 .4em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero__title .line:nth-child(2) .word { transition-delay: .1s; }
.hero__title .line:nth-child(3) .word { transition-delay: .2s; }
.hero__title .italic { font-weight: 400; color: var(--sand); }
body.loaded .hero__title .word { transform: none; }
.hero__lede { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: rgba(245,239,228,.78); max-width: 46ch; margin: 0 0 2em; opacity: 0; transform: translateY(20px); transition: all 1s var(--ease) .45s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; transform: translateY(20px); transition: all 1s var(--ease) .6s; }
body.loaded .hero__lede, body.loaded .hero__actions { opacity: 1; transform: none; }

.hero__stage { position: relative; aspect-ratio: 1.35; perspective: 1400px; }
.hero__glow { position: absolute; inset: 10% 5% 15%; background: radial-gradient(closest-side, rgba(241,180,52,.28), transparent 70%); filter: blur(20px); opacity: 0; transition: opacity 2s ease 1.2s; }
body.loaded .hero__glow { opacity: 1; }
.hero__trailer { position: absolute; inset: 0; z-index: 2; transform: translateX(-120vw); will-change: transform; }
body.loaded .hero__trailer { animation: rollIn 2.1s var(--ease) .35s forwards; }
.hero__trailer img { width: 100%; height: auto; filter: drop-shadow(0 40px 40px rgba(0,0,0,.35)); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .6s var(--ease); }
.hero__shadow { position: absolute; left: 12%; right: 8%; bottom: 7%; height: 9%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); z-index: 1; opacity: 0; transition: opacity 1s 1.8s; }
body.loaded .hero__shadow { opacity: 1; }
.hero__road { position: absolute; left: -30vw; right: -10vw; bottom: 8%; height: 2px; overflow: hidden; z-index: 0; }
.hero__road span { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(217,200,174,.35) 0 40px, transparent 40px 80px); animation: road .5s linear infinite; animation-iteration-count: 5; }
.price-tag { position: absolute; top: 3%; left: 60%; z-index: 3; text-decoration: none; transform-origin: 50% 0; animation: swing 3.6s ease-in-out infinite; opacity: 0; transition: opacity .6s 2.3s; }
body.loaded .price-tag { opacity: 1; }
.price-tag__string { display: block; width: 2px; height: 48px; margin: 0 auto; background: linear-gradient(var(--sand), rgba(217,200,174,.4)); }
.price-tag__card { display: flex; flex-direction: column; align-items: center; background: var(--mustard); color: var(--navy); padding: 10px 16px 12px; border-radius: 8px 8px 10px 10px; position: relative; box-shadow: 0 16px 28px -10px rgba(0,0,0,.5); line-height: 1.1; }
.price-tag__card::before { content: ''; position: absolute; top: 6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--navy); }
.price-tag__card small { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 8px; }
.price-tag__card small:last-child { margin-top: 0; }
.price-tag__card strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; }
.price-tag:hover { animation-play-state: paused; }

.hero__trust { position: relative; z-index: 2; list-style: none; margin: 10px auto 0; padding: 18px 0 0; width: min(1400px, 100%); display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid var(--line-light); font-size: .88rem; color: rgba(245,239,228,.75); opacity: 0; transition: opacity 1s 1s; }
body.loaded .hero__trust { opacity: 1; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--mustard); width: 18px; height: 18px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 28px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--sand); text-decoration: none; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue__wheel { width: 28px; height: 28px; fill: var(--mustard); animation: spin 6s linear infinite; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { order: -1; width: min(560px, 100%); margin: 0 auto -10px; }
  .price-tag { left: 64%; }
  .price-tag__string { height: 26px; }
  .scroll-cue { display: none; }
}

/* ---------- Departures ---------- */
.departures { background: var(--navy-ink); color: var(--cream); padding: clamp(80px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.departures::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, rgba(241,180,52,.08), transparent); }
.departures__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; position: relative; }
.departures__note { color: rgba(245,239,228,.7); margin: 0; max-width: 48ch; }
@media (max-width: 860px) { .departures__head { grid-template-columns: 1fr; gap: 10px; } }
.board { position: relative; background: #0b0f12; border-radius: 18px; padding: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 40px 80px -30px rgba(0,0,0,.8); font-family: var(--f-mono); }
.board__top { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 16px; color: var(--mustard); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.board__station { display: inline-flex; align-items: center; gap: 10px; }
.board__clock { font-size: 1.4rem; letter-spacing: .05em; color: var(--mustard); text-shadow: 0 0 12px rgba(241,180,52,.5); }
.board { --fs: clamp(.72rem, 1.18vw, 1.06rem); --cw: calc(1.25em + 3px); }
.board__row {
  display: grid; font-size: var(--fs); gap: 12px; align-items: center; padding: 10px 8px; border-radius: 10px;
  grid-template-columns: calc(8 * var(--cw)) calc(8 * var(--cw)) calc(8 * var(--cw)) calc(7 * var(--cw)) calc(12 * var(--cw) + 18px);
  justify-content: space-between;
}
.board__row--head { color: rgba(245,239,228,.45); letter-spacing: .16em; text-transform: uppercase; padding-bottom: 6px; }
.board__row--head span { font-size: .7rem; }
.board__row--head span:last-child { padding-left: 18px; }
.board__rows .board__row { cursor: pointer; transition: background .3s; position: relative; border: 0; background: none; width: 100%; text-align: left; font-family: inherit; color: inherit; }
.board__rows .board__row:hover, .board__rows .board__row:focus-visible { background: rgba(241,180,52,.08); }
.board__rows .board__row:hover .flaps .ch { color: var(--mustard); }
.flaps { display: flex; gap: 3px; }
.ch {
  position: relative; display: inline-grid; place-items: center; width: 1.25em; height: 1.7em;
  background: linear-gradient(#1c2328 0 49%, #11171b 51% 100%); border-radius: 3px; color: #f3ead9;
  font-weight: 700; font-size: 1em; box-shadow: inset 0 -1px 0 rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.03);
  transition: color .3s;
}
.ch::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.75); }
.ch.flip { animation: flip .09s linear; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status--go i { background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: pulseGreen 2s infinite; }
.status--soon i { background: var(--mustard); box-shadow: 0 0 10px var(--mustard); }
.status--deal i { background: #f87171; box-shadow: 0 0 10px #f87171; }
.status--go .ch { color: #bbf7d0; }
.status--soon .ch { color: #fde68a; }
.status--deal .ch { color: #fecaca; }
.status--hire i { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.status--hire .ch { color: #d1fae5; }
@media (max-width: 1100px) {
  .board__row { grid-template-columns: calc(8 * var(--cw)) calc(8 * var(--cw)) calc(8 * var(--cw)) calc(12 * var(--cw) + 18px); }
  .board__row > :nth-child(4) { display: none; }
}
@media (max-width: 700px) {
  .board { padding: 10px; --fs: clamp(.7rem, 3.3vw, .9rem); }
  .board__row--head { display: none; }
  .board__row { grid-template-columns: calc(8 * var(--cw)) calc(8 * var(--cw)); justify-content: start; gap: 8px 10px; padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.05); border-radius: 0; }
  .board__row > :nth-child(3) { display: none; }
  .board__row > .status { grid-column: 1 / -1; }
}
.family__track.is-scrollable { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 24px; }
.family__track.is-scrollable > * { scroll-snap-align: start; }

/* ---------- Ways / hatch cards ---------- */
.ways { padding: clamp(90px, 12vw, 160px) 0; background: var(--cream); }
.ways__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
@media (max-width: 900px) { .ways__grid { grid-template-columns: 1fr; } }
.hatch-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .6s var(--ease), box-shadow .6s var(--ease); outline: none; }
.hatch-card:hover, .hatch-card:focus-within, .hatch-card:focus { transform: translateY(-8px); box-shadow: var(--shadow); }
.hatch-card__window { position: relative; aspect-ratio: 4/3; overflow: hidden; perspective: 900px; background: #111; }
.hatch-card__window img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: brightness(.55); transition: transform 1.2s var(--ease), filter 1s; }
.hatch-card__light { position: absolute; left: 8%; right: 8%; top: 0; height: 6px; background: #fff7e0; border-radius: 0 0 8px 8px; box-shadow: 0 0 40px 18px rgba(255,220,150,.55); opacity: 0; transition: opacity .6s .35s; }
.hatch-card__flap {
  position: absolute; inset: 0 0 18%; transform-origin: 50% 0; transform: rotateX(0deg);
  transition: transform 1s var(--ease-back); display: flex; flex-direction: column; justify-content: space-between; padding: 22px; color: var(--cream);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); backface-visibility: hidden;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 28px);
}
.hatch-card__flap--navy { background-color: var(--navy); }
.hatch-card__flap--green { background-color: var(--green); }
.hatch-card__flap--oxblood { background-color: var(--oxblood); }
.hatch-card__label { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 3rem); font-style: italic; line-height: 1; }
.hatch-card__handle { align-self: center; width: 70px; height: 8px; border-radius: 6px; background: rgba(245,239,228,.5); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.hatch-card:hover .hatch-card__flap, .hatch-card:focus .hatch-card__flap, .hatch-card:focus-within .hatch-card__flap, .hatch-card.is-open .hatch-card__flap { transform: rotateX(-78deg); }
.hatch-card:hover .hatch-card__window img, .hatch-card:focus-within .hatch-card__window img, .hatch-card.is-open .hatch-card__window img { transform: scale(1); filter: brightness(1); }
.hatch-card:hover .hatch-card__light, .hatch-card:focus-within .hatch-card__light, .hatch-card.is-open .hatch-card__light { opacity: 1; }
.hatch-card__body { padding: 26px 26px 30px; }
.hatch-card__body h3 { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; margin: 0 0 .3em; color: var(--navy); }
.hatch-card__body p { margin: 0 0 1em; color: var(--muted); }
.hatch-card__meta { font-size: .95rem; }
.hatch-card__meta strong { color: var(--navy); font-size: 1.15rem; }

/* ---------- Family ---------- */
.family { background: var(--paper); position: relative; overflow: hidden; }
.family__pin { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 60px; }
.family__track { display: flex; gap: 28px; padding: 0 var(--gutter); will-change: transform; align-items: stretch; }
.family__intro { flex: 0 0 min(440px, 86vw); display: flex; flex-direction: column; justify-content: center; padding-right: 20px; }
.family__config-note { font-size: .92rem; color: var(--muted); margin: 14px 0 0; min-height: 3em; }
.family__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.family__hint svg { animation: nudge 1.6s var(--ease) infinite; }
.toggle { position: relative; display: inline-flex; background: var(--cream); border-radius: 999px; padding: 5px; margin-top: 26px; box-shadow: inset 0 0 0 1px var(--line); width: max-content; }
.toggle button { position: relative; z-index: 1; border: 0; background: none; font-weight: 700; padding: 10px 26px; border-radius: 999px; transition: color .4s; color: var(--muted); }
.toggle button[aria-checked="true"] { color: var(--cream); }
.toggle__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: var(--w, 80px); transform: translateX(var(--x, 0)); background: var(--navy); border-radius: 999px; transition: transform .5s var(--ease-back), width .5s var(--ease); }

.t-card {
  --accent: var(--sand);
  flex: 0 0 min(420px, 84vw); background: #fff; border-radius: 28px; padding: 26px 26px 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.t-card::before { content: ''; position: absolute; width: 360px; height: 360px; right: -120px; top: 60px; border-radius: 50%; background: var(--accent); opacity: .22; z-index: -1; transition: transform 1s var(--ease), opacity .6s; }
.t-card:hover { transform: translateY(-10px) rotate(-.4deg); box-shadow: var(--shadow); }
.t-card:hover::before { transform: scale(1.35); opacity: .38; }
.t-card__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--cream); color: var(--navy); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--go { background: #dcfce7; color: #166534; }
.pill--soon { background: #fef3c7; color: #92400e; }
.pill--deal { background: #fee2e2; color: #991b1b; }
.pill--hire { background: var(--mint); color: var(--green-deep); }
.t-card__name { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(3.2rem, 5vw, 4.4rem); line-height: .9; margin: 18px 0 4px; color: var(--navy); letter-spacing: -.03em; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.t-card__persona { font-weight: 700; color: var(--green); margin: 0; }
.t-card__stage { position: relative; height: 220px; margin: 10px -10px 4px; }
.t-card__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease), opacity .6s; filter: drop-shadow(0 24px 18px rgba(0,29,44,.22)); }
.t-card__stage img.is-out { opacity: 0; transform: translateX(-40%) scale(.9); }
.t-card__stage img.is-in-start { opacity: 0; transform: translateX(40%) scale(.9); }
.t-card:hover .t-card__stage img:not(.is-out) { transform: translateX(10px) scale(1.04); }
.t-card__stage.is-photo img { object-fit: cover; border-radius: 18px; filter: none; }
.ruler { margin: 6px 0 16px; }
.ruler__bar { position: relative; height: 8px; border-radius: 99px; background: var(--cream); overflow: hidden; }
.ruler__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--navy), var(--accent)); border-radius: 99px; transition: width 1.4s var(--ease); }
.t-card.in .ruler__fill { width: var(--len); }
.ruler__marks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .66rem; color: var(--muted); margin-top: 4px; }
.t-card__facts { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; color: var(--navy); }
.t-card__facts li { display: inline-flex; align-items: center; gap: 6px; }
.t-card__facts svg { width: 17px; height: 17px; color: var(--green); }
.t-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.t-card__price strong { font-family: var(--f-display); font-size: 2rem; font-weight: 600; color: var(--navy); }
.t-card__price small { color: var(--muted); }
.t-card__hire { font-size: .85rem; color: var(--green); font-weight: 700; margin: 2px 0 0; }
.t-card__actions { display: flex; gap: 10px; margin-top: 16px; }
.t-card__actions .btn { flex: 1; padding: .85em 1em; font-size: .92rem; }
@media (max-width: 1023px) {
  .family__pin { min-height: 0; display: block; padding: 90px 0 70px; }
  .family__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; flex-wrap: nowrap; scrollbar-width: none; }
  .family__track::-webkit-scrollbar { display: none; }
  .family__track > * { scroll-snap-align: center; }
  .family__intro { flex-basis: 86vw; }
  .family__hint { display: inline-flex; }
}

/* ---------- Match ---------- */
.match { background: var(--green); color: var(--cream); padding: clamp(90px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.match::before { content: ''; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%; border: 1px solid rgba(217,200,174,.12); box-shadow: 0 0 0 80px rgba(217,200,174,.03), 0 0 0 160px rgba(217,200,174,.02); }
.match__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 90px); align-items: start; position: relative; }
@media (max-width: 900px) { .match__grid { grid-template-columns: 1fr; } }
.match__track { position: relative; margin-top: 40px; height: 40px; }
.match__track-line { position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: rgba(245,239,228,.15); border-radius: 3px; overflow: hidden; }
.match__track-line span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--mustard); transition: transform .8s var(--ease); }
.match__track-trailer { position: absolute; bottom: 8px; left: 0; width: 44px; height: 24px; color: var(--mustard); transition: left .8s var(--ease); }
.quiz { background: var(--paper); color: var(--text); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); min-height: 460px; position: relative; overflow: hidden; }
.quiz__step { animation: stepIn .7s var(--ease) both; }
.quiz__count { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.quiz__q { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; line-height: 1.1; margin: 8px 0 22px; color: var(--navy); }
.quiz__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 520px) { .quiz__opts { grid-template-columns: 1fr; } }
.quiz__opt { text-align: left; border: 0; background: #fff; border-radius: 18px; padding: 18px; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; gap: 14px; align-items: center; transition: transform .4s var(--ease), box-shadow .3s, background .3s; }
.quiz__opt:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--navy); }
.quiz__opt.is-picked { background: var(--navy); color: var(--cream); box-shadow: none; }
.quiz__emoji { font-size: 1.7rem; width: 48px; height: 48px; display: grid; place-items: center; background: var(--cream); border-radius: 14px; flex: none; transition: transform .5s var(--ease-back); }
.quiz__opt:hover .quiz__emoji { transform: rotate(-8deg) scale(1.1); }
.quiz__opt strong { display: block; font-size: 1.02rem; }
.quiz__opt small { color: var(--muted); font-size: .85rem; }
.quiz__opt.is-picked small { color: var(--sand); }
.quiz__back { margin-top: 18px; background: none; border: 0; font-weight: 700; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }
.quiz__back:hover { color: var(--navy); }
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
@media (max-width: 620px) { .result { grid-template-columns: 1fr; } }
.result__eyebrow { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.result__name { font-family: var(--f-display); font-style: italic; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; margin: 6px 0; color: var(--navy); }
.result__config { font-weight: 700; color: var(--green); margin: 0 0 12px; }
.result__why { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: .95rem; }
.result__why li { display: flex; gap: 10px; }
.result__why svg { color: var(--green); margin-top: 5px; }
.result__img { position: relative; }
.result__img img { width: 100%; filter: drop-shadow(0 30px 24px rgba(0,29,44,.25)); animation: popIn 1s var(--ease-back) both .15s; }
.result__img.is-photo img { border-radius: 18px; filter: none; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result__alt { margin-top: 16px; padding: 14px 16px; background: var(--cream); border-radius: 14px; font-size: .9rem; }
.result__alt strong { color: var(--navy); }
.confetti { position: absolute; top: -20px; width: 14px; height: 14px; pointer-events: none; z-index: 5; }

/* ---------- Calculator ---------- */
.calc { background: var(--cream); padding: clamp(90px, 12vw, 150px) 0; }
.calc__panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 50px); background: var(--paper); border-radius: 28px; padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow-soft); }
@media (max-width: 900px) { .calc__panel { grid-template-columns: 1fr; } }
.chips { border: 0; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; flex-direction: column; padding: 10px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; color: var(--navy); transition: all .3s var(--ease); line-height: 1.25; }
.chips span small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.chips input:checked + span { background: var(--navy); color: var(--cream); box-shadow: none; transform: translateY(-2px); }
.chips input:checked + span small { color: var(--sand); }
.chips input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }
.slider label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.slider output { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--navy); }
.slider output::after { content: ' days'; font-family: var(--f-body); font-size: .9rem; color: var(--muted); font-weight: 600; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--mustard) 0 var(--fill, 20%), #e7ddcc var(--fill, 20%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 97 97'%3E%3Cpath fill='%23F1B434' d='M45.1573 54.746L32.1191 64.6966L26.4624 55.0114L41.5269 48.6913L26.4624 42.3712L32.1191 32.6739L45.1573 42.6486L43.0104 26.4986H54.0465L51.8996 42.6486L64.9378 32.6739L70.5945 42.3712L55.518 48.6913L70.5945 55.0114L64.9378 64.6966L51.8996 54.746L54.0465 70.8961H43.0104L45.1573 54.746Z'/%3E%3C/svg%3E") center/80% no-repeat; border: 3px solid var(--paper); box-shadow: 0 6px 16px rgba(0,29,44,.35); cursor: grab; transform: rotate(var(--rot, 0deg)); }
input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); border: 3px solid var(--paper); box-shadow: 0 6px 16px rgba(0,29,44,.35); cursor: grab; }
.slider__ticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); margin-top: 8px; }
.rates { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: .92rem; }
.rates caption { text-align: left; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.rates th, .rates td { padding: 10px 6px; border-bottom: 1px dashed var(--line); text-align: left; }
.rates td:last-child, .rates th:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.rates tr.is-used td { background: rgba(241,180,52,.14); }
.bars { display: grid; gap: 22px; margin-bottom: 26px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.bar__label { font-weight: 700; color: var(--navy); grid-column: 1 / -1; }
.bar__track { height: 44px; background: var(--cream); border-radius: 12px; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 12px; transition: width .8s var(--ease); }
.bar__fill--hire { background: repeating-linear-gradient(-45deg, var(--mustard) 0 12px, #f5c455 12px 24px); }
.bar__fill--buy { background: var(--navy); }
.bar strong { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; color: var(--navy); min-width: 5ch; text-align: right; }
.verdict { background: var(--navy); color: var(--cream); border-radius: 20px; padding: 22px 24px; position: relative; overflow: hidden; }
.verdict h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; margin: 0 0 6px; line-height: 1.15; }
.verdict h3 em { color: var(--mustard); }
.verdict p { margin: 0; color: rgba(245,239,228,.78); font-size: .95rem; }
.verdict .btn { margin-top: 14px; }

/* ---------- Studio ---------- */
.studio { background: radial-gradient(90% 80% at 30% 50%, #0b4a6b, var(--navy) 50%, var(--navy-deep)); color: var(--cream); padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.studio__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 960px) { .studio__grid { grid-template-columns: 1fr; } }
.studio__stage { position: relative; }
.studio__canvas { position: relative; isolation: isolate; aspect-ratio: 1000/763; }
.studio__img { width: 100%; height: 100%; position: relative; z-index: 0; }
.studio__paint {
  position: absolute; inset: 0; z-index: 1; background: var(--paint, #003049); mix-blend-mode: multiply;
  -webkit-mask: url(../img/agnes-paint-mask.png) center / 100% 100% no-repeat; mask: url(../img/agnes-paint-mask.png) center / 100% 100% no-repeat;
  transition: background-color .8s var(--ease);
}
.studio__decal {
  position: absolute; z-index: 2; left: 13%; top: 26%; width: 35%; height: 28%;
  display: grid; place-items: center; text-align: center; pointer-events: none;
  transform: perspective(700px) rotateY(-16deg) skewY(-3deg); transform-origin: 100% 50%;
}
.studio__decal span { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: clamp(1rem, 2.8vw, 2.4rem); line-height: 1; color: var(--decal, #F5EFE4); mix-blend-mode: normal; opacity: .95; transition: color .6s, font-size .3s; text-shadow: 0 1px 0 rgba(0,0,0,.08); word-break: break-word; }
.studio__decal.f-sans span { font-family: var(--f-body); font-style: normal; font-weight: 800; letter-spacing: -.02em; text-transform: none; }
.studio__decal.f-mono span { font-family: var(--f-mono); font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.studio__decal.is-empty span { opacity: .35; }
.studio__floor { height: 40px; margin: -34px 8% 0; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); }
.studio__caption { text-align: center; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin: 10px 0 0; }
.swatches { border: 0; margin: 26px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend, .chips--dark legend { color: rgba(245,239,228,.6); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 6px 14px rgba(0,0,0,.3); position: relative; transition: transform .4s var(--ease-back); }
.swatch:hover { transform: translateY(-4px) scale(1.08); }
.swatch[aria-pressed="true"] { transform: scale(1.12); box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--mustard); }
.swatch[aria-pressed="true"]::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--tick, #fff); opacity: .9; }
.custom-colour { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; color: var(--sand); font-size: .92rem; }
.custom-colour input { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.custom-colour input::-webkit-color-swatch-wrapper { padding: 0; }
.custom-colour input::-webkit-color-swatch { border: 2px dashed var(--sand); border-radius: 50%; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--text); transition: border-color .3s, box-shadow .3s; width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(241,180,52,.35); }
.field__err { display: none; color: #b42318; font-size: .8rem; font-weight: 600; }
.field.is-invalid input { border-color: #b42318; }
.field.is-invalid .field__err { display: block; }
.field--dark { margin: 26px 0 18px; }
.field--dark label { color: var(--cream); }
.field--dark input { background: rgba(245,239,228,.07); border-color: rgba(245,239,228,.25); color: var(--cream); font-family: var(--f-display); font-size: 1.3rem; }
.field--dark input::placeholder { color: rgba(245,239,228,.35); }
.chips--dark span { background: rgba(245,239,228,.07); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(245,239,228,.22); }
.chips--dark input:checked + span { background: var(--mustard); color: var(--navy); }
.f-serif { font-family: var(--f-display); font-style: italic; }
.f-sans { font-family: var(--f-body); font-weight: 800; }
.f-mono { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Build route ---------- */
.build { background: var(--paper); padding: clamp(90px, 12vw, 160px) 0; }
.rotator { display: inline-block; position: relative; color: var(--navy); font-weight: 800; border-bottom: 3px solid var(--mustard); vertical-align: bottom; overflow: hidden; height: 1.6em; }
.rotator span { display: inline-block; animation: rotIn .6s var(--ease) both; white-space: nowrap; }
.route { position: relative; padding-left: 0; }
.route__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; height: 100%; margin-left: -5px; overflow: visible; }
.route__line path { fill: none; stroke: var(--sand); stroke-width: 3; stroke-dasharray: 8 10; vector-effect: non-scaling-stroke; }
.route__line::after { content: ''; }
.route__trailer { position: absolute; left: 50%; top: 0; width: 46px; height: 46px; margin-left: -23px; z-index: 3; transform: translateY(var(--ty, 0)); transition: transform .15s linear; filter: drop-shadow(0 6px 10px rgba(0,29,44,.35)); }
.route__trailer .rw-bg { fill: var(--navy); }
.route__trailer .rw-ring { fill: var(--sand); }
.route__trailer .rw-ast { fill: var(--mustard); transform-origin: 50% 50%; transform: rotate(var(--rot, 0deg)); }
.route__stops { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vw, 90px); }
.stop { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; position: relative; }
.stop__day { grid-column: 2; justify-self: center; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; background: var(--paper); color: var(--navy); padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--navy); position: relative; z-index: 2; white-space: nowrap; transition: background .5s, color .5s; }
.stop.is-passed .stop__day { background: var(--navy); color: var(--mustard); }
.stop__card { grid-column: 1; grid-row: 1; background: #fff; border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-soft); opacity: 0; transform: translateX(-40px); transition: all 1s var(--ease); }
.stop__img { grid-column: 3; grid-row: 1; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); opacity: 0; transform: translateX(40px) rotate(2deg); transition: all 1s var(--ease) .1s; }
.stop:nth-child(even) .stop__card { grid-column: 3; transform: translateX(40px); }
.stop:nth-child(even) .stop__img { grid-column: 1; transform: translateX(-40px) rotate(-2deg); }
.stop.in .stop__card, .stop.in .stop__img { opacity: 1; transform: none; }
.stop__card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; margin: 0 0 6px; color: var(--navy); }
.stop__card p { margin: 0; color: var(--muted); }
.stop--final .stop__day { background: var(--mustard); box-shadow: none; }
.spec-chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chips li { background: var(--cream); padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--navy); }
@media (max-width: 820px) {
  .route__line, .route__trailer { left: 22px; }
  .stop { grid-template-columns: 44px 1fr; gap: 14px 16px; }
  .stop__day { grid-column: 1; grid-row: 1; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 6px; }
  .stop__card, .stop:nth-child(even) .stop__card { grid-column: 2; grid-row: 1; transform: translateY(30px); }
  .stop__img, .stop:nth-child(even) .stop__img { grid-column: 2; grid-row: 2; transform: translateY(30px); }
}

/* ---------- Proof ---------- */
.proof { background: var(--sand-soft); padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border-top: 2px solid var(--navy); padding-top: 18px; }
.stat strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.stat span { display: block; color: var(--muted); font-size: .95rem; margin-top: 8px; max-width: 26ch; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
@media (max-width: 1000px) { .stamps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stamps { grid-template-columns: repeat(2, 1fr); } }
.stamp {
  --c: var(--navy); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--c); border: 3px solid var(--c); box-shadow: inset 0 0 0 6px var(--sand-soft), inset 0 0 0 8px var(--c);
  font-family: var(--f-mono); text-transform: uppercase; font-size: clamp(.62rem, .9vw, .78rem); line-height: 1.2; letter-spacing: .06em;
  padding: 12%; opacity: 0; transform: scale(1.8) rotate(-18deg); position: relative;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
}
.stamp b { font-family: var(--f-display); font-size: 1.5em; text-transform: none; letter-spacing: -.01em; display: inline-block; margin: 2px 0; }
.stamp small { font-size: .78em; margin-top: 6px; opacity: .8; }
.stamp--green { --c: var(--green); }
.stamp--oxblood { --c: var(--oxblood); }
.stamps.in .stamp { animation: stamp .55s cubic-bezier(.5, 0, .3, 1.4) forwards; animation-delay: calc(var(--i) * 140ms); }
.stamp:nth-child(odd) { --rot: -8deg; }
.stamp:nth-child(even) { --rot: 6deg; }

/* ---------- Stories / masonry ---------- */
.stories { background: var(--paper); padding: clamp(90px, 12vw, 150px) 0; }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
@media (max-width: 1000px) { .masonry { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 640px) { .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; } }
.tile { position: relative; overflow: hidden; border-radius: 18px; border: 0; padding: 0; background: var(--cream); cursor: zoom-in; opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.tile.in { opacity: 1; transform: none; }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.tile:hover img { transform: scale(1.08); }
.tile__cap { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(251,248,242,.92); backdrop-filter: blur(8px); color: var(--navy); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: .85rem; text-align: left; transform: translateY(calc(100% + 14px)); transition: transform .6s var(--ease); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; }
@media (hover: none) { .tile__cap { transform: none; font-size: .75rem; padding: 6px 10px; } }

/* ---------- Voices ---------- */
.voices { background: var(--navy); color: var(--cream); padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.voices .h2 { margin-bottom: 50px; }
.marquee { overflow: hidden; padding: 10px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: marquee 80s linear infinite; }
.marquee[data-dir="right"] .marquee__track { animation-direction: reverse; animation-duration: 95s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.voice {
  width: min(440px, 80vw); flex: none; background: var(--paper); color: var(--text); border-radius: 18px; padding: 26px 28px 22px 28px; position: relative;
  display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--ease), background .4s;
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) , radial-gradient(circle 12px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.voice:hover { transform: translateY(-6px) rotate(-1deg); }
.voice::before { content: '“'; position: absolute; right: 22px; top: -8px; font-family: var(--f-display); font-size: 6rem; color: var(--mustard); line-height: 1; opacity: .6; }
.voice p { margin: 0; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.45; color: var(--navy); }
.voice footer { display: flex; justify-content: space-between; align-items: end; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.voice cite { font-style: normal; font-weight: 800; font-size: .9rem; display: block; }
.voice small { color: var(--muted); font-size: .82rem; }
.voice .pill { cursor: pointer; border: 0; }
.voice .pill:hover { background: var(--mustard); }

/* ---------- Watch ---------- */
.watch { background: var(--cream); padding: clamp(90px, 12vw, 150px) 0; }
.watch__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
@media (max-width: 960px) { .watch__grid { grid-template-columns: 1fr; } }
.watch__player { position: relative; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.watch__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch__facade { position: absolute; inset: 0; border: 0; padding: 0; background: #000; width: 100%; }
.watch__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform 1.2s var(--ease), opacity .5s; }
.watch__facade:hover img { transform: scale(1.05); opacity: .95; }
.watch__play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--mustard); color: var(--navy); display: grid; place-items: center; font-size: 2rem; box-shadow: 0 0 0 0 rgba(241,180,52,.6); animation: ring 2.2s infinite; transition: transform .5s var(--ease-back); }
.watch__facade:hover .watch__play { transform: scale(1.12); }
.watch__title { position: absolute; left: 20px; bottom: 18px; color: #fff; font-family: var(--f-display); font-size: 1.4rem; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.playlist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; }
.playlist button { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; border: 0; background: #fff; border-radius: 14px; padding: 8px 14px 8px 8px; transition: transform .4s var(--ease), background .3s; }
.playlist button:hover { transform: translateX(6px); }
.playlist button[aria-current="true"] { background: var(--navy); color: var(--cream); }
.playlist img { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.playlist strong { display: block; font-size: .95rem; }
.playlist small { color: var(--muted); font-size: .78rem; }
.playlist button[aria-current="true"] small { color: var(--sand); }

/* ---------- Visit ---------- */
.visit { background: var(--paper); padding: clamp(90px, 12vw, 150px) 0; }
.visit__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
@media (max-width: 960px) { .visit__grid { grid-template-columns: 1fr; } }
.visit__media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/3.4; box-shadow: var(--shadow); }
.visit__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.visit__badge { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; gap: 12px; align-items: center; background: rgba(0,48,73,.88); backdrop-filter: blur(8px); color: var(--cream); padding: 14px 18px; border-radius: 16px; font-weight: 600; font-size: .92rem; }
.visit__badge svg { width: 26px; height: 26px; color: var(--mustard); }
.open-status { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 6px; padding: 10px 16px; border-radius: 999px; background: var(--cream); font-weight: 700; font-size: .92rem; color: var(--navy); }
.open-status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.open-status.is-open .open-status__dot { background: #22c55e; animation: pulseGreen 2s infinite; }
.open-status.is-closed .open-status__dot { background: var(--mustard); }
.visit__list { margin: 20px 0 30px; display: grid; gap: 16px; }
.visit__list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
@media (max-width: 520px) { .visit__list div { grid-template-columns: 1fr; gap: 2px; } }
.visit__list dt { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--navy); }
.visit__list dt svg { color: var(--green); }
.visit__list dd { margin: 0; color: var(--muted); }
.visit__list a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--mustard); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Enquire / ticket ---------- */
.enquire { background: var(--green); color: var(--cream); padding: clamp(90px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.enquire__grid { display: grid; grid-template-columns: .85fr 1.3fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
@media (max-width: 1000px) { .enquire__grid { grid-template-columns: 1fr; } }
.enquire__direct { display: grid; gap: 10px; margin-top: 30px; }
.enquire__direct a { display: inline-flex; gap: 12px; align-items: center; font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.6rem); text-decoration: none; color: var(--cream); width: max-content; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.enquire__direct a:hover { color: var(--mustard); border-color: var(--mustard); }
.enquire__direct svg { color: var(--mustard); }
.ticket { display: grid; grid-template-columns: 76px 1fr; background: var(--paper); color: var(--text); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); position: relative; min-height: 560px; transition: transform .6s var(--ease); }
.ticket.is-punched { animation: punch .6s var(--ease); }
.ticket__stub { background: var(--mustard); color: var(--navy); border-radius: 22px 0 0 22px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 20px 0; position: relative; border-right: 3px dashed rgba(0,48,73,.35); }
.ticket__stub::before, .ticket__stub::after { content: ''; position: absolute; right: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); }
.ticket__stub::before { top: -13px; }
.ticket__stub::after { bottom: -13px; }
.ticket__stub-brand svg { width: 34px; height: 34px; fill: var(--navy); }
.ticket__stub-text, .ticket__stub-no { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.ticket__body { padding: clamp(22px, 3.4vw, 40px); }
.ticket__tabs { display: inline-flex; background: var(--cream); padding: 5px; border-radius: 999px; gap: 4px; }
.ticket__tabs button { border: 0; background: none; padding: 10px 24px; border-radius: 999px; font-weight: 700; color: var(--muted); transition: all .35s var(--ease); }
.ticket__tabs button[aria-selected="true"] { background: var(--navy); color: var(--cream); }
.ticket__route { display: flex; align-items: center; gap: 16px; margin: 24px 0; padding: 16px 0; border-block: 1px dashed var(--line); }
.ticket__route small { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticket__route strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; color: var(--navy); }
.ticket__route svg { width: 50px; height: 26px; color: var(--green); flex: 1; max-width: 120px; animation: drive 3s ease-in-out infinite; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field--full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .ticket { grid-template-columns: 1fr; } .ticket__stub { flex-direction: row; border-radius: 22px 22px 0 0; border-right: 0; border-bottom: 3px dashed rgba(0,48,73,.35); padding: 12px 20px; } .ticket__stub-text, .ticket__stub-no { writing-mode: horizontal-tb; transform: none; font-size: .65rem; } .ticket__stub::before, .ticket__stub::after { right: auto; top: auto; bottom: -14px; } .ticket__stub::before { left: -13px; } .ticket__stub::after { right: -13px; } }
.ticket__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.ticket__foot .fine { margin: 0; }
.ticket__done { grid-column: 2; padding: clamp(28px, 4vw, 50px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; }
@media (max-width: 620px) { .ticket__done { grid-column: 1; } }
.ticket__done h3 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin: 0 0 10px; color: var(--navy); }
.ticket__done p { color: var(--muted); max-width: 46ch; margin: 0 0 24px; }
.ticket__stamp { font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--oxblood); border: 4px double var(--oxblood); padding: 10px 20px; border-radius: 8px; transform: rotate(-10deg); margin-bottom: 24px; animation: stampIn .5s cubic-bezier(.5,0,.3,1.4) both; font-size: 1.3rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-ink); color: var(--cream); padding: 90px 0 110px; position: relative; overflow: hidden; }
.footer__top { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--line-light); padding-bottom: 40px; }
.footer__mark { position: relative; width: clamp(70px, 10vw, 140px); aspect-ratio: 1; border: 0; background: none; padding: 0; flex: none; }
.footer__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer__ring { fill: var(--sand); }
.footer__ast { fill: var(--mustard); transition: transform 1.2s var(--ease); }
.footer__mark:hover .footer__ast { transform: rotate(180deg); }
.footer__word { font-family: var(--f-display); font-size: clamp(3rem, 12vw, 11rem); font-weight: 500; line-height: .9; margin: 0; letter-spacing: -.04em; color: var(--sand); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 44px 0; }
@media (max-width: 800px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }
.footer__cols h4 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mustard); margin: 0 0 14px; font-weight: 400; }
.footer__cols a { display: block; text-decoration: none; color: rgba(245,239,228,.78); padding: 4px 0; transition: color .3s, transform .3s var(--ease); width: max-content; max-width: 100%; }
.footer__cols a:hover { color: var(--mustard); transform: translateX(4px); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,239,228,.08); padding: 0; font-size: 1.2rem; }
.socials a:hover { background: var(--mustard); color: var(--navy); transform: translateY(-3px); }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: rgba(245,239,228,.5); border-top: 1px solid var(--line-light); padding-top: 24px; }
.footer__base p { margin: 0; }
.footer__egg kbd { font-family: var(--f-mono); background: rgba(245,239,228,.1); padding: 2px 6px; border-radius: 4px; color: var(--mustard); }
.convoy { position: fixed; left: 0; bottom: 70px; height: 70px; width: 100%; pointer-events: none; z-index: 150; }
.convoy img { position: absolute; bottom: 0; height: 70px; width: auto; left: 0; transform: translateX(-200px); filter: drop-shadow(0 8px 8px rgba(0,0,0,.3)); }

/* ---------- Dock (mobile) ---------- */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80; display: none; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; background: rgba(0,29,44,.92); backdrop-filter: blur(12px); border-radius: 20px; padding: 6px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .6s var(--ease); }
.dock.is-visible { transform: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: .88rem; padding: 12px 6px; border-radius: 14px; }
.dock a svg { width: 18px; height: 18px; fill: var(--mustard); color: var(--mustard); }
.dock__primary { background: var(--mustard); color: var(--navy) !important; }
@media (max-width: 760px) { .dock { display: grid; } .footer { padding-bottom: 130px; } }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 300; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,20,31,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--paper); overflow-y: auto; transform: translateX(100%); transition: transform .7s var(--ease); overscroll-behavior: contain; outline: none; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer.open .drawer__panel { transform: none; }
.drawer__close { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-size: 1.2rem; transition: transform .5s var(--ease-back); }
.drawer__close:hover { transform: rotate(90deg); }
.drawer__content { padding: 30px clamp(20px, 4vw, 44px) 60px; }
.d-hero { position: relative; }
.d-name { font-family: var(--f-display); font-style: italic; font-size: clamp(3.4rem, 9vw, 6rem); line-height: .9; margin: 10px 0 4px; color: var(--navy); letter-spacing: -.03em; }
.d-persona { font-weight: 700; color: var(--green); margin: 0 0 14px; font-size: 1.1rem; }
.d-blurb { color: var(--muted); margin: 0 0 20px; }
.carousel { position: relative; border-radius: 20px; overflow: hidden; background: var(--cream); aspect-ratio: 4/3; margin: 10px 0 12px; }
.carousel__track { display: flex; height: 100%; transition: transform .7s var(--ease); }
.carousel__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.carousel.is-cutouts .carousel__track img { object-fit: contain; padding: 20px; }
.carousel__btn { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(251,248,242,.92); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease); }
.carousel__btn:hover { transform: scale(1.08); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__dots { display: flex; gap: 6px; justify-content: center; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--line); padding: 0; transition: width .4s var(--ease), background .3s; }
.carousel__dots button[aria-current="true"] { width: 26px; background: var(--navy); }
.d-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.d-spec { background: #fff; border-radius: 16px; padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.d-spec small { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.d-spec strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.d-config { background: #fff; border-radius: 20px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); margin: 14px 0; }
.d-config h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; margin: 0 0 4px; color: var(--navy); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.d-config h3 span { font-size: 1.6rem; font-weight: 600; }
.d-config p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.d-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.d-list li { display: flex; gap: 10px; font-size: .95rem; }
.d-list svg { color: var(--green); margin-top: 5px; }
.d-hire { background: var(--navy); color: var(--cream); border-radius: 20px; padding: 22px; margin: 14px 0; }
.d-hire h3 { font-family: var(--f-display); font-weight: 500; margin: 0 0 12px; font-size: 1.4rem; }
.d-hire-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 520px) { .d-hire-grid { grid-template-columns: repeat(2, 1fr); } .d-cols { grid-template-columns: 1fr 1fr; } }
.d-hire-grid div { background: rgba(245,239,228,.08); border-radius: 12px; padding: 12px; text-align: center; }
.d-hire-grid small { display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--sand); letter-spacing: .1em; text-transform: uppercase; }
.d-hire-grid strong { font-family: var(--f-display); font-size: 1.4rem; }
.d-hire p { color: rgba(245,239,228,.7); font-size: .88rem; margin: 12px 0 0; }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; position: sticky; bottom: 0; padding: 16px 0; background: linear-gradient(transparent, var(--paper) 30%); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 320; background: rgba(0,14,22,.94); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; opacity: 0; transition: opacity .4s; }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 0; max-height: 100vh; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 12px; object-fit: contain; animation: popIn .6s var(--ease) both; }
.lightbox figcaption { color: var(--cream); font-family: var(--f-display); font-size: 1.2rem; font-style: italic; text-align: center; }
.lightbox__nav, .lightbox__close { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(245,239,228,.12); color: var(--cream); display: grid; place-items: center; font-size: 1.4rem; justify-self: center; transition: background .3s; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--mustard); color: var(--navy); }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; } .lightbox__nav { position: absolute; bottom: 24px; } .lightbox__nav--prev { left: 30%; } .lightbox__nav--next { right: 30%; } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 500; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--mustard); pointer-events: none; mix-blend-mode: normal; transform: translate3d(var(--x, -100px), var(--y, -100px), 0); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, opacity .3s; display: none; place-items: center; }
.cursor__label { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); opacity: 0; transition: opacity .2s; }
.cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(241,180,52,.35); }
@media (hover: hover) and (pointer: fine) { .cursor { display: grid; } }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 400; transform: translate(-50%, calc(100% + 60px)); background: var(--mustard); color: var(--navy); font-weight: 800; padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow); transition: transform .6s var(--ease-back); max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(241,180,52,.6); } 70% { box-shadow: 0 0 0 10px rgba(241,180,52,0); } 100% { box-shadow: 0 0 0 0 rgba(241,180,52,0); } }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(241,180,52,.55); } 80% { box-shadow: 0 0 0 26px rgba(241,180,52,0); } 100% { box-shadow: 0 0 0 0 rgba(241,180,52,0); } }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 5%); } 80% { transform: translate(6%, 2%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rollIn {
  0% { transform: translateX(-120vw); }
  70% { transform: translateX(2%); }
  80% { transform: translateX(-1%) translateY(-4px) rotate(-.6deg); }
  88% { transform: translateX(0) translateY(2px) rotate(.3deg); }
  100% { transform: none; }
}
@keyframes road { to { background-position: -80px 0; } }
@keyframes swing { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-6deg); } }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes rotIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-18deg); } 60% { opacity: 1; transform: scale(.94) rotate(var(--rot)); } 100% { opacity: 1; transform: scale(1) rotate(var(--rot)); } }
@keyframes stampIn { from { opacity: 0; transform: scale(2) rotate(-25deg); } to { opacity: 1; transform: scale(1) rotate(-10deg); } }
@keyframes punch { 0% { transform: none; } 30% { transform: scale(.97) rotate(-.6deg); } 60% { transform: scale(1.01) rotate(.3deg); } 100% { transform: none; } }
@keyframes drive { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__trailer { transform: none; }
  .reveal, .tile, .stop__card, .stop__img, .stamp { opacity: 1 !important; transform: none !important; }
  .reveal-words .w > span, .hero__title .word { transform: none !important; }
}
