/* Remy Sato, Field Journal demo. Fonts: Alegreya and Courier Prime (SIL OFL 1.1), self-hosted. */
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --forest: #1d3527;
  --forest-2: #24412f;
  --forest-3: #2f5240;
  --moss: #6f8b5e;
  --sand: #e6d8bd;
  --sand-2: #ddcca9;
  --paper: #f4ecdc;
  --bark: #5a3f2b;
  --ink: #2b2016;
  --ink-soft: #5b4a3a;
  --night: #14241a;
  --sun: #e86a2c;
  --sun-soft: #f2a46b;
  --sun-ink: #9a3a10;
  --sky: #7c9aa6;
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, Menlo, monospace;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 44px);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--sun); color: var(--night); padding: 10px 16px; font-family: var(--mono); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 2; }
section { position: relative; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .7em 1.35em; border: 0; border-radius: 3px; font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 4px; border: 1.5px dashed currentColor; border-radius: 2px; opacity: .35; pointer-events: none; transition: opacity .25s, inset .25s var(--ease); }
.btn:hover::after { inset: 6px; opacity: .55; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--night); }
.btn-sun:hover { background: #f07c40; }
.btn-ghost { background: transparent; color: var(--sand); box-shadow: inset 0 0 0 1.5px rgba(230,216,189,.55); }
.btn-ghost::after { display: none; }
.btn-ghost:hover { background: rgba(230,216,189,.1); box-shadow: inset 0 0 0 1.5px var(--sand); }
.btn-ink { background: var(--forest); color: var(--sand); }
.btn-ink:hover { background: var(--forest-3); }
.btn-ghost-ink { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-ghost-ink::after { display: none; }
.btn-ghost-ink:hover { background: rgba(29,53,39,.08); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--sand); transition: background-color .35s, box-shadow .35s, transform .4s var(--ease); }
.nav.is-solid { background: rgba(20,36,26,.9); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 1px 0 rgba(230,216,189,.12); }
.nav-in { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); height: var(--nav-h); max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.brandmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brandmark-seal { width: 46px; height: 46px; color: var(--sun); transition: transform .8s var(--ease); }
.brandmark:hover .brandmark-seal { transform: rotate(-40deg); }
.brandmark-seal svg { width: 100%; height: 100%; }
.brandmark-seal text { font-family: var(--mono); font-size: 7.2px; letter-spacing: .7px; fill: currentColor; font-weight: 700; }
.brandmark-seal .seal-rs { font-family: var(--serif); font-size: 13px; font-weight: 800; fill: var(--sand); letter-spacing: 0; }
.brandmark-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.odometer { font-family: var(--mono); font-size: .8rem; color: rgba(230,216,189,.75); padding: 4px 10px; border: 1px solid rgba(230,216,189,.25); border-radius: 3px; white-space: nowrap; }
.odo-label { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.odo-val { color: var(--sun-soft); font-weight: 700; display: inline-block; min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.nav-links a { position: relative; font-family: var(--mono); font-size: .9rem; text-decoration: none; padding: 12px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-here::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; font-size: .85rem; padding: .55em 1.1em; }
.menu-btn { display: none; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 14px; background: transparent; border: 1.5px solid rgba(230,216,189,.5); border-radius: 3px; color: var(--sand); font-family: var(--mono); font-weight: 700; font-size: .85rem; cursor: pointer; }
.menu-btn-lines { display: grid; gap: 5px; width: 18px; }
.menu-btn-lines i { display: block; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--forest); color: var(--sand); padding: calc(var(--nav-h) + 12px) var(--gut) 28px; overflow-y: auto; }
.menu::before { content: ""; position: absolute; inset: 0; background: url("img/topo-light.svg") center / cover; opacity: .09; pointer-events: none; }
.menu-sheet { position: relative; display: flex; flex-direction: column; gap: 22px; max-width: 560px; margin: 0 auto; }
.menu-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .85rem; color: var(--sun-soft); }
.menu-list { counter-reset: none; border-top: 1px dashed rgba(230,216,189,.3); }
.menu-list a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(230,216,189,.3); text-decoration: none; font-size: clamp(1.8rem, 8vw, 2.4rem); font-weight: 800; line-height: 1.1; }
.menu-wp { font-family: var(--mono); font-weight: 400; font-size: .78rem; color: rgba(230,216,189,.8); min-width: 6.2em; }
.menu.is-open .menu-list li { animation: menuIn .5s var(--ease) both; }
.menu.is-open .menu-list li:nth-child(2) { animation-delay: .04s; } .menu.is-open .menu-list li:nth-child(3) { animation-delay: .08s; }
.menu.is-open .menu-list li:nth-child(4) { animation-delay: .12s; } .menu.is-open .menu-list li:nth-child(5) { animation-delay: .16s; }
.menu.is-open .menu-list li:nth-child(6) { animation-delay: .2s; } .menu.is-open .menu-list li:nth-child(7) { animation-delay: .24s; }
@keyframes menuIn { from { opacity: 0; transform: translateX(-14px); } }
.menu-cta { align-self: flex-start; }
.menu-foot { font-family: var(--mono); font-size: .8rem; color: rgba(230,216,189,.8); }

/* ---------- Route line (signature) ---------- */
main { position: relative; }
.route { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.route path { fill: none; }
.route-ghost { stroke: rgba(232,106,44,.18); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.route-line { stroke: var(--sun); stroke-width: 2.6; stroke-dasharray: 10 9; stroke-linecap: round; }
.route-reveal { stroke: #fff; stroke-width: 14; }
.route-walker { opacity: 0; transition: opacity .3s; }
.route-walker.is-on { opacity: 1; }
.walker-dot { fill: var(--sun); stroke: var(--paper); stroke-width: 2.5; }
.walker-halo { fill: rgba(232,106,44,.22); animation: halo 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 50% { transform: scale(1.6); opacity: .3; } }

/* Waypoint labels */
.wp { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; color: var(--ink-soft); margin-bottom: 18px; }
.wp-pin { position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--sun); }
.wp-pin::after { content: ""; position: absolute; inset: 5.5px; border-radius: 50%; background: var(--sun); transform: scale(0); transition: transform .5s var(--ease); }
.wp.is-reached .wp-pin::after { transform: scale(1); }
.wp-light { color: rgba(230,216,189,.78); }
.wp-light .wp-pin { background: var(--forest); }

.sec-head { margin-bottom: clamp(32px, 5vw, 60px); max-width: 760px; }
.sec-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; flex-wrap: wrap; }
.sec-head-split > div { max-width: 680px; }
.sec-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); color: var(--forest); text-wrap: balance; }
.sec-lede { margin-top: 18px; max-width: 58ch; font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Media fallback ---------- */
.media { position: relative; overflow: hidden; background:
  url("img/topo-light.svg") center / 260% auto,
  radial-gradient(120% 80% at 80% 110%, rgba(232,106,44,.65), transparent 60%),
  linear-gradient(165deg, #2f5240 0%, #24412f 45%, #5a3f2b 100%); background-blend-mode: soft-light, normal, normal; }
.media > video, .media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.is-missing > video, .media.is-missing > img { visibility: hidden; }
.media.is-missing::after { content: "Footage still developing"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--sand); border: 1px dashed rgba(230,216,189,.5); white-space: nowrap; }
@media (max-width: 700px) { .media.is-missing::after { white-space: normal; width: 72%; text-align: center; font-size: .66rem; } }
.plate-media.is-missing::after, .snap-media.is-missing::after { content: "Print still developing"; }

/* ---------- Hero ---------- */
.hero { background: var(--forest); color: var(--sand); padding: calc(var(--nav-h) + clamp(36px, 7vw, 90px)) 0 0; overflow: hidden; }
.hero-topo { position: absolute; inset: 0; background: url("img/topo-light.svg") 60% 40% / cover no-repeat; opacity: .13; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(20,36,26,.6)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-entry { font-family: var(--mono); font-size: .9rem; color: var(--sun-soft); margin-bottom: 8px; }
.hero-title { font-size: clamp(4.6rem, 15vw, 12.5rem); line-height: .84; letter-spacing: -.035em; color: var(--paper); font-weight: 800; margin: 6px 0 26px; }
.ht-line { display: block; }
.ht-indent { padding-left: .55em; font-style: italic; font-weight: 700; color: var(--sun); }
.hero-lede { font-size: clamp(1.2rem, 1.8vw, 1.45rem); max-width: 34ch; line-height: 1.45; color: rgba(244,236,220,.92); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 32px; font-family: var(--mono); font-size: .88rem; color: rgba(230,216,189,.85); }
.hero-tags li { display: inline-flex; align-items: center; gap: 7px; }
.hero-tags li:last-child { color: var(--sun-soft); font-weight: 700; }
.hero-tags .ico { color: var(--sun-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cards { position: relative; min-height: clamp(440px, 50vw, 640px); }
.pc { position: absolute; margin: 0; background: var(--paper); padding: 10px 10px 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 2px 0 rgba(0,0,0,.08); }
.pc-media { aspect-ratio: 9 / 16; }
.pc-cap { font-family: var(--mono); font-size: .75rem; color: var(--ink-soft); padding: 9px 2px 11px; line-height: 1.3; }
.pc-front { width: min(300px, 62%); right: 4%; top: 2%; --r: -3.5deg; transform: rotate(var(--r)); z-index: 2; }
.pc-back { width: min(220px, 46%); left: 0; top: 18%; --r: 6deg; transform: rotate(var(--r)); opacity: .96; }
.pc-stamp { position: absolute; top: 10px; right: 10px; }
.pc-postmark { position: absolute; left: -8px; bottom: 14px; width: 62%; }
.postmark circle, .postmark path { fill: none; stroke: rgba(244,236,220,.85); stroke-width: 1.6; }
.postmark text { font-family: var(--mono); font-weight: 700; font-size: 8.4px; letter-spacing: .6px; fill: rgba(244,236,220,.9); }
.postmark .pm-mid { font-size: 11px; }
.hero-note { position: absolute; left: 4%; bottom: 0; font-family: var(--mono); font-size: .75rem; color: rgba(230,216,189,.8); max-width: 22ch; }
.drift-a { animation: driftA 9s ease-in-out infinite; }
.drift-b { animation: driftB 11s ease-in-out infinite; }
@keyframes driftA { 50% { transform: rotate(calc(var(--r) + 1deg)) translate(-4px, -10px); } }
@keyframes driftB { 50% { transform: rotate(calc(var(--r) - 1.2deg)) translate(6px, 8px); } }
.hero-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 26px; font-family: var(--mono); font-size: .72rem; color: rgba(230,216,189,.78); }
.hero-foot .wp { margin: 0; }
.hero-scale { display: flex; align-items: center; gap: 14px; }
.scale-bar { display: flex; height: 6px; width: 120px; border: 1px solid rgba(230,216,189,.6); }
.scale-bar i { flex: 1; }
.scale-bar i:nth-child(odd) { background: rgba(230,216,189,.6); }

/* ---------- Stamps ---------- */
.stamp { --hole: 3.4px; --tile: 11px; display: inline-block; padding: 7px; background: radial-gradient(circle at center, transparent var(--hole), var(--paper) calc(var(--hole) + .5px)) calc(var(--tile) / -2) calc(var(--tile) / -2) / var(--tile) var(--tile) round; filter: drop-shadow(0 6px 10px rgba(43,32,22,.2)); }
.stamp-in { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; height: 100%; padding: 10px 12px; background: var(--forest); color: var(--paper); outline: 1px solid rgba(244,236,220,.5); outline-offset: -5px; }
.stamp-in i { font-style: normal; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.stamp-in b { font-weight: 800; font-size: 1.25rem; line-height: 1; }
.stamp-in small { font-family: var(--mono); font-size: .66rem; opacity: .8; }
.stamp-sm { --hole: 2.6px; --tile: 8px; padding: 5px; }
.stamp-sm .stamp-in { padding: 6px 8px; gap: 2px; background: var(--sun); color: var(--night); outline-color: rgba(20,36,26,.35); outline-offset: -3px; }
.stamp-sm .stamp-in b { font-size: 1rem; }
.stamp-sm .stamp-in i { font-size: .55rem; }
.s-green { background: var(--forest); }
.s-sun { background: var(--sun); color: var(--night); outline-color: rgba(20,36,26,.35); }
.s-bark { background: var(--bark); }
.s-sky { background: #3f5f6b; }

/* ---------- Proof ---------- */
.log { background: var(--sand); padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 9vw, 120px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--forest); }
.stat { display: flex; flex-direction: column; padding: 22px clamp(12px, 2vw, 26px) 10px; border-right: 1px dashed rgba(43,32,22,.3); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat dt { order: 2; font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--forest); margin-top: 10px; }
.stat-num { order: 1; margin: 0; font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 800; line-height: .9; color: var(--forest); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.stat-num small { font-size: .38em; margin-left: 6px; letter-spacing: 0; color: var(--sun-ink); font-weight: 700; }
.stat-note { order: 3; margin: 6px 0 0; font-size: 1rem; color: var(--ink-soft); line-height: 1.4; }
.brands { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 24px; }
.brands-label { font-family: var(--mono); font-size: .85rem; color: var(--ink-soft); }
.stamps { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 34px); }
.stamp-brand { transform: rotate(var(--rot, 0deg)); transition: transform .45s var(--ease); }
.stamp-brand:hover { transform: rotate(0deg) translateY(-6px) scale(1.04); }
.stamp-brand .stamp-in { width: 168px; height: 128px; }

/* ---------- Reels ---------- */
.reels { background: var(--forest-2); color: var(--sand); padding: clamp(80px, 10vw, 140px) 0 clamp(90px, 11vw, 160px); }
.reels::before { content: ""; position: absolute; inset: 0; background: url("img/topo-light.svg") 20% 30% / 140% auto; opacity: .07; }
.reels .sec-title { color: var(--paper); }
.reels .sec-lede { color: rgba(230,216,189,.85); }
.reels .wp { color: rgba(230,216,189,.78); }
.reels .wp-pin { background: var(--forest-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(230,216,189,.4); border-radius: 3px; background: transparent; color: var(--sand); font-family: var(--mono); font-size: .88rem; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.chip:hover { border-color: var(--sand); }
.chip.is-on { background: var(--sand); color: var(--forest); border-color: var(--sand); font-weight: 700; }
.chip-n { font-size: .72rem; opacity: .7; }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 48px) clamp(16px, 3vw, 44px); }
.tile { transform: rotate(var(--tilt)); transition: transform .5s var(--ease), opacity .4s; }
.tile:nth-child(3n+2) { margin-top: clamp(0px, 5vw, 70px); }
.tile.is-hidden { display: none; }
.tile-btn { display: block; width: 100%; padding: 10px 10px 0; background: var(--paper); border: 0; text-align: left; cursor: pointer; box-shadow: 0 24px 50px -22px rgba(0,0,0,.6); transition: box-shadow .4s var(--ease), transform .5s var(--ease); }
.tile:hover { transform: rotate(0deg) translateY(-8px); }
.tile:hover .tile-btn { box-shadow: 0 40px 70px -26px rgba(0,0,0,.7); }
.tile-media { display: block; aspect-ratio: 9 / 16; }
.tile-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, rgba(20,36,26,.45)); pointer-events: none; }
.tile-pm { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34%; max-width: 92px; transform: rotate(-12deg); opacity: .92; transition: transform .6s var(--ease); }
.tile-pm svg, .pc-postmark { filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.tile-pm circle { fill: none; stroke: rgba(244,236,220,.9); stroke-width: 1.8; stroke-dasharray: 3 2; }
.tile-pm text { font-family: var(--mono); font-weight: 700; font-size: 8.6px; letter-spacing: .5px; fill: rgba(244,236,220,.95); }
.tile-pm .pm-mid { font-family: var(--serif); font-size: 18px; font-weight: 800; letter-spacing: 0; }
.tile:hover .tile-pm { transform: rotate(8deg) scale(1.06); }
.tile-play { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); color: var(--night); transform: scale(.85); opacity: .9; transition: transform .35s var(--ease), opacity .3s; }
.tile-play .ico { width: 20px; height: 20px; margin-left: 2px; }
.tile:hover .tile-play, .tile-btn:focus-visible .tile-play { transform: scale(1); opacity: 1; }
.tile-cap { display: grid; gap: 3px; padding: 12px 4px 14px; color: var(--ink); }
.tile-brand { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-ink); }
.tile-title { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 800; line-height: 1.12; color: var(--forest); }
.tile-meta { font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); }
.tile-btn:focus-visible { outline-offset: 5px; }

/* ---------- Stills ---------- */
.kit { background: var(--sand); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.kit-topo { position: absolute; inset: 0; background: url("img/topo-dark.svg") center / cover; opacity: .09; }
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); }
.plate:nth-child(even) { margin-top: clamp(0px, 6vw, 80px); }
.plate figure { margin: 0; background: var(--paper); padding: 12px 12px 0; box-shadow: 0 1px 0 rgba(43,32,22,.15), 0 22px 40px -28px rgba(43,32,22,.6); position: relative; transition: transform .5s var(--ease); }
.plate figure::before { content: ""; position: absolute; z-index: 3; top: -10px; left: 50%; width: 76px; height: 22px; transform: translateX(-50%) rotate(-2deg); background: rgba(221,204,169,.85); box-shadow: 0 1px 2px rgba(43,32,22,.15); }
.plate:nth-child(even) figure::before { transform: translateX(-50%) rotate(3deg); }
.plate figure:hover { transform: translateY(-6px) rotate(-.6deg); }
.plate-media { aspect-ratio: 4 / 5; }
.plate-media img { transition: transform 1.2s var(--ease); }
.plate figure:hover .plate-media img { transform: scale(1.05); }
.plate figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 2px 14px; border-top: 0; }
.plate-no { grid-row: span 2; align-self: start; font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--paper); background: var(--forest); padding: 3px 6px; border-radius: 2px; }
.plate-name { font-size: 1.15rem; font-weight: 800; color: var(--forest); line-height: 1.15; }
.plate-note { font-family: var(--mono); font-size: .74rem; color: var(--ink-soft); line-height: 1.35; }

/* ---------- Boarding passes ---------- */
.passes { background: var(--bark); color: var(--sand); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.passes::before { content: ""; position: absolute; inset: 0; background: url("img/topo-light.svg") 70% 50% / 160% auto; opacity: .06; }
.passes .sec-title { color: var(--paper); }
.passes .sec-lede { color: rgba(230,216,189,.85); max-width: 46ch; margin-top: 0; }
.passes .wp-pin { background: var(--bark); }
.pass-list { display: grid; gap: clamp(20px, 3vw, 32px); }
.pass { --notch: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; color: var(--ink); filter: drop-shadow(0 24px 30px rgba(20,14,8,.35)); transition: transform .5s var(--ease); }
.pass:hover { transform: translateY(-4px) rotate(-.3deg); }
.pass-main, .pass-stub { background: var(--paper); position: relative; }
.pass-main { border-radius: 8px 0 0 8px; padding: clamp(20px, 3vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; grid-template-areas: "top top top" "name desc fields" "route incl fields"; gap: 12px clamp(20px, 3vw, 44px); -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat; mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat; }
.pass-stub { border-radius: 0 8px 8px 0; padding: clamp(20px, 3vw, 30px) 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background-image: linear-gradient(to bottom, rgba(43,32,22,.4) 50%, transparent 0); background-size: 1.5px 10px; background-repeat: repeat-y; background-position: 0 0; -webkit-mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat; mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat; }
.pass-top { grid-area: top; display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); padding-bottom: 12px; border-bottom: 1px dashed rgba(43,32,22,.3); }
.pass-class { color: var(--sun-ink); font-weight: 700; }
.pass-route { grid-area: route; display: flex; align-items: center; gap: 14px; align-self: end; }
.pass-route > span:not(.pass-plane) { display: grid; }
.pass-route b { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1; color: var(--forest); }
.pass-route small { font-family: var(--mono); font-size: .7rem; color: var(--ink-soft); }
.pass-plane { position: relative; flex: 1; min-width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--sun) 0 6px, transparent 6px 11px); }
.pass-plane i { position: absolute; right: -2px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--sun); border-right: 2px solid var(--sun); transform: translateY(-50%) rotate(45deg); }
.pass-name { grid-area: name; font-size: clamp(2.2rem, 3.6vw, 3rem); color: var(--forest); align-self: start; }
.pass-desc { grid-area: desc; font-size: 1.08rem; line-height: 1.45; color: var(--ink); }
.pass-incl { grid-area: incl; display: grid; gap: 4px; font-family: var(--mono); font-size: .82rem; color: var(--ink); }
.pass-incl li { display: flex; gap: 8px; }
.pass-incl li::before { content: "+"; color: var(--sun-ink); font-weight: 700; }
.pass-fields { grid-area: fields; margin: 0; display: grid; align-content: start; gap: 12px; padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid rgba(43,32,22,.15); }
.pass-fields dt { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.pass-fields dd { margin: 0; font-weight: 800; font-size: 1.15rem; color: var(--forest); line-height: 1.1; }
.pass-fare { display: grid; font-weight: 800; font-size: 1.45rem; line-height: 1.1; color: var(--forest); }
.pass-fare span { font-family: var(--mono); font-weight: 400; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: 4px; }
.barcode { display: block; height: 46px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); opacity: .85; }
.pass-btn { width: 100%; }
.pass-feature .pass-main, .pass-feature .pass-stub { background-color: #fbf3e2; }
.pass-feature { position: relative; }
.pass-feature .pass-main { box-shadow: inset 6px 0 0 var(--sun); }
.pass-extra { margin-top: 28px; font-family: var(--mono); font-size: .85rem; color: rgba(230,216,189,.92); max-width: 80ch; }

/* ---------- About ---------- */
.about { background: var(--paper); padding: clamp(80px, 10vw, 150px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.about-photo { position: relative; max-width: 460px; }
.snap { margin: 0; background: #fffaf0; padding: 14px 14px 0; transform: rotate(-2.5deg); box-shadow: 0 30px 50px -30px rgba(43,32,22,.7), 0 1px 0 rgba(43,32,22,.12); }
.snap-media { aspect-ratio: 4 / 5; }
.snap figcaption { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); padding: 12px 2px 16px; }
.snap::before, .snap::after { content: ""; position: absolute; z-index: 3; width: 34px; height: 34px; border: 3px solid var(--bark); }
.snap::before { top: 2px; left: 2px; border-right: 0; border-bottom: 0; }
.snap::after { bottom: 2px; right: 2px; border-left: 0; border-top: 0; }
.about-stamp { position: absolute; right: -24px; bottom: 40px; transform: rotate(8deg); z-index: 4; }
.about-stamp .stamp-in { width: 108px; height: 120px; }
.about-stamp .stamp-in b { font-size: 2rem; }
.about-copy .sec-title { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.about-text { margin-top: 26px; display: grid; gap: 16px; max-width: 60ch; }
.about-text p:first-child::first-letter { float: left; font-size: 4.2em; line-height: .82; font-weight: 800; color: var(--sun-ink); padding: 6px 10px 0 0; }
.about-aside { font-family: var(--mono); font-size: .86rem; line-height: 1.55; color: var(--ink-soft); padding: 14px 16px; border: 1px dashed rgba(43,32,22,.35); background: rgba(230,216,189,.35); }
.facts { margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--forest); }
.facts div { padding: 12px 12px 12px 0; border-bottom: 1px dashed rgba(43,32,22,.3); }
.facts dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 700; color: var(--forest); line-height: 1.3; }

/* ---------- Process ---------- */
.process { background: var(--sand); padding: clamp(80px, 10vw, 140px) 0; }
.profile { position: relative; height: clamp(120px, 16vw, 210px); margin-bottom: 18px; }
.profile-svg { width: 100%; height: 100%; }
.profile-fill { fill: rgba(29,53,39,.12); }
.profile-line { fill: none; stroke: var(--forest); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.profile.is-in .profile-line { stroke-dashoffset: 0; }
.profile-pt { position: absolute; left: var(--x); top: var(--y); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--sand), 0 0 0 5.5px var(--forest); }
.profile-pt::after { content: ""; position: absolute; left: 50%; top: 100%; width: 0; height: 400px; border-left: 1.5px dashed rgba(29,53,39,.35); }
.profile { overflow: hidden; }
.legs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.leg { background: var(--paper); padding: 22px 20px 24px; border-top: 3px solid var(--forest); position: relative; }
.leg-km { font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--sun-ink); }
.leg h3 { font-size: 1.5rem; color: var(--forest); margin: 6px 0 10px; }
.leg p { font-size: 1.02rem; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Hut register ---------- */
.register { background: var(--sand-2); padding: clamp(80px, 10vw, 140px) 0; }
.book { background: var(--paper); border-left: 4px double rgba(154,58,16,.55); padding: 0 clamp(18px, 3vw, 40px) 24px; box-shadow: 0 30px 50px -36px rgba(43,32,22,.8); position: relative; }
.book::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(clamp(18px, 3vw, 40px) + 96px); border-left: 1px solid rgba(154,58,16,.35); }
.book-head, .entry { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 2.2fr); gap: 0 clamp(16px, 3vw, 40px); }
.book-head { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); padding: 18px 0 12px; border-bottom: 2px solid var(--forest); }
.book-head span:first-child, .entry-date { padding-left: 0; }
.book-head span:nth-child(2), .entry-who { padding-left: 14px; }
.entry { margin: 0; padding: 26px 0; border-bottom: 1px dashed rgba(43,32,22,.25); align-items: start; }
.entry-date { font-family: var(--mono); font-size: .86rem; font-weight: 700; color: var(--sun-ink); padding-top: 6px; }
.entry-who { display: grid; gap: 2px; padding-top: 2px; }
.entry-who b { font-size: 1.2rem; color: var(--forest); }
.entry-who span { font-family: var(--mono); font-size: .76rem; color: var(--ink-soft); line-height: 1.4; }
.entry blockquote { margin: 0; font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-style: italic; line-height: 1.4; color: var(--ink); }
.entry blockquote p::before { content: "\201C"; color: var(--sun-ink); }
.entry blockquote p::after { content: "\201D"; color: var(--sun-ink); }
.book-foot { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); padding-top: 18px; text-align: right; }

/* ---------- Contact ---------- */
.contact { background: var(--forest); color: var(--sand); padding: clamp(80px, 10vw, 140px) 0 clamp(90px, 10vw, 140px); overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: url("img/topo-light.svg") 30% 70% / cover; opacity: .1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact .sec-title { color: var(--paper); }
.contact .sec-lede { color: rgba(230,216,189,.85); }
.contact-lines { margin-top: 34px; border-top: 1px dashed rgba(230,216,189,.3); }
.contact-lines li { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px dashed rgba(230,216,189,.3); }
.contact-lines span { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(230,216,189,.8); }
.contact-lines a { display: inline-flex; align-items: center; min-height: 48px; font-size: 1.15rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; text-align: right; transition: color .2s; }
.contact-lines a:hover { color: var(--sun-soft); }
.postcard { position: relative; background: var(--paper); color: var(--ink); padding: clamp(20px, 3vw, 36px); box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); transform: rotate(.8deg); border-radius: 2px; }
.postcard::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(43,32,22,.12); pointer-events: none; }
.pc-form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.pc-left { display: flex; flex-direction: column; gap: 18px; padding-right: clamp(20px, 3vw, 36px); border-right: 1.5px solid rgba(43,32,22,.25); }
.pc-label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--forest); padding: 0; }
.field textarea { width: 100%; resize: vertical; min-height: 180px; padding: 6px 2px; border: 0; background: transparent linear-gradient(transparent calc(100% - 1px), rgba(43,32,22,.28) 0) 0 0 / 100% 2em; line-height: 2em; font-size: 1.1rem; font-style: italic; color: var(--ink); }
.field textarea::placeholder { color: rgba(91,74,58,.6); }
.line input { width: 100%; min-height: 44px; padding: 6px 2px; border: 0; border-bottom: 1.5px solid rgba(43,32,22,.4); background: transparent; font-size: 1.15rem; transition: border-color .2s; }
.line input:focus, .field textarea:focus { outline: none; border-color: var(--sun); }
.field textarea:focus { background-color: rgba(232,106,44,.05); }
.line input:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 var(--sun); }
.field.has-err input, .field.has-err textarea { border-color: #b3261e; }
.field.has-err > span::after { content: " (needed)"; color: #b3261e; font-weight: 400; }
.pkg-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pkg-opts label { position: relative; cursor: pointer; }
.pkg-opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pkg-opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px dashed rgba(43,32,22,.4); border-radius: 3px; font-family: var(--mono); font-size: .84rem; transition: background-color .2s, border-color .2s; }
.pkg-opts input:checked + span { background: var(--forest); color: var(--paper); border-style: solid; border-color: var(--forest); }
.pkg-opts input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.pc-right { display: flex; flex-direction: column; gap: 14px; }
.pc-stampbox { align-self: flex-end; width: 94px; height: 104px; border: 1.5px dashed rgba(43,32,22,.35); display: grid; place-items: center; margin-bottom: 6px; }
.pc-stampbox .stamp { transform: rotate(4deg); }
.pc-send { margin-top: 12px; align-self: flex-start; }
.form-err { font-family: var(--mono); font-size: .8rem; color: #b3261e; min-height: 1.2em; }
.pc-done { text-align: left; padding: clamp(12px, 3vw, 30px); display: grid; gap: 14px; justify-items: start; }
.pc-done:focus { outline: none; }
.pc-done h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--forest); }
.pc-done p { max-width: 48ch; color: var(--ink-soft); }
.done-mark { width: 200px; }
.done-mark circle, .done-mark path { stroke: var(--sun-ink); }
.done-mark text { fill: var(--sun-ink); }
.pc-done:not([hidden]) .done-mark { animation: stampIn .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stampIn { from { transform: scale(1.8) rotate(-18deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: 1; } }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: rgba(230,216,189,.75); padding: 40px 0 calc(40px + 70px); font-family: var(--mono); font-size: .82rem; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 14px 32px; align-items: center; }
.foot-end { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem; color: var(--sand); grid-column: 1 / -1; }
.foot-end .ico { color: var(--sand); width: 26px; height: 26px; }
.foot-small span { display: inline-block; margin-left: 8px; }
.foot-credit a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sun-soft); text-decoration: none; border-bottom: 1px solid currentColor; }
.foot-credit a:hover { color: var(--paper); }

/* ---------- Ribbon (luggage tag) ---------- */
.ribbon { position: fixed; left: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 4px; padding: 0 4px 0 30px; min-height: 48px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: .78rem; border-radius: 4px 10px 10px 4px; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); box-shadow: inset 0 0 0 1px rgba(43,32,22,.15); filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); animation: tagIn .8s .6s var(--ease) both; }
.ribbon[hidden] { display: none; }
.ribbon-hole { position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 0 0 2.5px var(--paper), 0 0 0 1.5px var(--bark); }
.ribbon a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; padding-right: 4px; }
.ribbon a b { color: var(--sun-ink); text-decoration: underline; text-underline-offset: 3px; }
.ribbon a:hover b { color: var(--forest); }
.ribbon-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; border-left: 1px dashed rgba(43,32,22,.3); }
.ribbon-x:hover { color: var(--ink); }
.ribbon-x .ico { width: 16px; height: 16px; }
@keyframes tagIn { from { opacity: 0; transform: translateY(20px) rotate(-4deg); } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb-scrim { position: absolute; inset: 0; background: rgba(14,26,19,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .3s both; }
.lb-panel { position: relative; display: grid; grid-template-columns: auto 300px; align-items: stretch; background: var(--paper); padding: 14px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); box-shadow: 0 50px 100px -30px rgba(0,0,0,.8); animation: cardIn .5s var(--ease) both; }
.lb-stage { position: relative; }
.lb-media { height: min(78vh, 760px); height: min(78dvh, 760px); aspect-ratio: 9 / 16; }
.lb-media video { transition: opacity .25s; }
.lb-media.is-swapping video { opacity: 0; }
.lb-back { display: flex; flex-direction: column; gap: 10px; padding: 18px 10px 10px 26px; border-left: 1.5px solid rgba(43,32,22,.2); margin-left: 14px; }
.lb-count { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); }
.lb-brand { font-family: var(--mono); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sun-ink); margin-top: 18px; }
.lb-title { font-size: 2.1rem; color: var(--forest); }
.lb-meta { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); }
.lb-note { font-size: .98rem; color: var(--ink-soft); margin-top: auto; padding-top: 18px; border-top: 1px dashed rgba(43,32,22,.3); }
.lb-cta { margin-top: 8px; }
.lb-nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; border: 0; background: var(--paper); color: var(--forest); cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); transition: transform .3s var(--ease), background-color .2s; }
.lb-nav:hover { background: var(--sun); }
.lb-prev { left: -25px; }
.lb-prev .ico { transform: rotate(180deg); }
.lb-next { right: -25px; }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }
.lb-x { position: absolute; top: -18px; right: -18px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sun); color: var(--night); cursor: pointer; z-index: 4; transition: transform .3s var(--ease); }
.lb-x:hover { transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) rotate(-2deg) scale(.97); } }
body.is-locked { overflow: hidden; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tile.reveal { transform: translateY(30px) rotate(var(--tilt)); }
.js .tile.reveal.is-in { transform: rotate(var(--tilt)); }
.js .tile.reveal.is-in:hover { transform: rotate(0deg) translateY(-8px); }
.js .stamp-brand.reveal { transform: none; }
.js .stamps .stamp-brand { transform: rotate(var(--rot)); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .odometer { display: none; }
  .pass-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "top top" "route route" "name name" "desc incl" "fields fields"; }
  .pass-fields { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 32px; border-left: 0; padding-left: 0; padding-top: 12px; border-top: 1px dashed rgba(43,32,22,.3); }
  .legs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-pt::after { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cards { min-height: 0; height: clamp(420px, 92vw, 620px); max-width: 560px; width: 100%; margin: 12px auto 0; }
  .hero-note { display: none; }
  .brands { grid-template-columns: 1fr; }
  .stamp-brand .stamp-in { width: 142px; height: 116px; }
  .stamp-in b { font-size: 1.1rem; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate:nth-child(even) { margin-top: 0; }
  .plate:nth-child(2n) { transform: translateY(40px); }
  .plates { padding-bottom: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { margin: 0 auto; width: min(100%, 420px); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px dashed rgba(43,32,22,.3); padding-bottom: 22px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
}
@media (max-width: 700px) {
  :root { --nav-h: 64px; }
  body { font-size: 1.06rem; }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .tile:nth-child(3n+2) { margin-top: 0; }
  .tile:nth-child(even) { margin-top: 36px; }
  .tile-btn { padding: 6px 6px 0; }
  .tile-cap { padding: 9px 2px 11px; }
  .tile-title { font-size: 1.02rem; }
  .tile-meta { display: none; }
  .tile-brand { font-size: .64rem; letter-spacing: .04em; }
  .plate figcaption { grid-template-columns: 1fr; gap: 4px; }
  .plate-no { grid-row: auto; justify-self: start; }
  .plate-name { font-size: 1.02rem; }
  .hero-scale { display: none; }
  .wp { font-size: .7rem; align-items: flex-start; }
  .wp-pin { margin-top: -1px; }
  .tile-play { width: 40px; height: 40px; left: 8px; bottom: 8px; }
  .pass { grid-template-columns: 1fr; }
  .pass-main { border-radius: 8px 8px 0 0; grid-template-columns: 1fr; grid-template-areas: "top" "route" "name" "desc" "incl" "fields"; -webkit-mask: radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat; mask: radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat; }
  .pass-stub { border-radius: 0 0 8px 8px; background-image: linear-gradient(to right, rgba(43,32,22,.4) 50%, transparent 0); background-size: 10px 1.5px; background-repeat: repeat-x; -webkit-mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat; mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .pass-stub .barcode { display: none; }
  .pass-btn { width: auto; }
  .pass-top { flex-direction: column; gap: 2px; }
  .legs { grid-template-columns: 1fr; }
  .book::before { display: none; }
  .book-head { display: none; }
  .entry { grid-template-columns: 1fr; gap: 10px; }
  .entry-who { padding-left: 0; }
  .entry-date { padding-top: 0; }
  .pc-form { grid-template-columns: 1fr; }
  .pc-left { padding-right: 0; border-right: 0; padding-bottom: 20px; border-bottom: 1.5px solid rgba(43,32,22,.25); }
  .pc-right { position: relative; }
  .pc-stampbox { position: absolute; right: 0; top: 0; width: 76px; height: 86px; }
  .pc-right .line:first-of-type { margin-right: 92px; }
  .postcard { transform: none; }
  .facts { grid-template-columns: 1fr; }
  .stamp-brand .stamp-in { width: 142px; height: 112px; }
  .stamps { gap: 14px; justify-content: center; }
  .foot-in { grid-template-columns: 1fr; }
  .foot { padding-bottom: 120px; }
  .ribbon { left: 50%; bottom: 12px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); animation-name: tagInM; }
  .about-stamp { right: -6px; }
  .lb { padding: 0; }
  .lb-panel { grid-template-columns: 1fr; padding: 0; max-height: 100dvh; height: 100dvh; width: 100vw; background: var(--night); }
  .lb-stage { display: grid; place-items: center; min-height: 0; }
  .lb-panel { grid-template-rows: minmax(0, 1fr) auto; }
  .lb-media { height: calc(100vh - 150px); height: calc(100dvh - 150px); width: auto; max-width: 100vw; aspect-ratio: 9 / 16; }
  .lb-back { margin: 0; border: 0; padding: 14px 18px 18px; background: var(--paper); gap: 4px; }
  .lb-brand { margin-top: 0; }
  .lb-title { font-size: 1.5rem; }
  .lb-note, .lb-cta { display: none; }
  .lb-count { position: absolute; top: 18px; left: 18px; z-index: 4; color: var(--sand); background: rgba(20,36,26,.7); padding: 4px 8px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-x { top: 10px; right: 10px; }
}
@keyframes tagInM { from { opacity: 0; transform: translate(-50%, 20px); } }
@media (max-width: 420px) {
  .brandmark-name { font-size: 1.15rem; }
  .brandmark-seal { width: 40px; height: 40px; }
  .ribbon { font-size: .68rem; padding-left: 26px; }
  .ribbon a { white-space: nowrap; }
  .ribbon-hole { left: 10px; }
}

/* ---------- 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; }
  .js .reveal, .js .tile.reveal { opacity: 1; transform: none; }
  .js .tile.reveal { transform: rotate(var(--tilt)); }
  .drift-a, .drift-b { animation: none; }
}

/* 320px reflow only: keeps the ribbon close button full size and on screen; 360px and wider untouched */
@media (max-width: 359px) { .ribbon a { white-space: normal; min-width: 0; } .ribbon-x { flex: none; } }
