/* =========================================================
   aiyo! — v005 "The story"
   Night asphalt · LED amber · red tape · buff file · violet stamp ink
   ========================================================= */

/* ---------- fonts (local) ---------- */
@font-face { font-family: "Gemunu"; src: url(fonts/gemunu-sinhala-sub.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0964-0965, U+0D81-0DF4, U+1CF2, U+200C-200D, U+25CC, U+111E1-111F4; }
@font-face { font-family: "Gemunu"; src: url(fonts/gemunu-libre-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gemunu"; src: url(fonts/gemunu-libre-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anek"; src: url(fonts/anek-latin-trim.woff2) format("woff2"); font-weight: 400 800; font-stretch: 100% 105%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anek"; src: url(fonts/anek-latin-ext-trim.woff2) format("woff2"); font-weight: 400 800; font-stretch: 100% 105%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anek Tamil"; src: url(fonts/anek-tamil-sub.woff2) format("woff2"); font-weight: 400 800; font-stretch: 80% 100%; font-display: swap;
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }

/* ---------- tokens ---------- */
:root {
  --night: #141012;
  --night-2: #1D171A;
  --night-3: #2B2327;
  --paper: #F3EBD8;
  --paper-2: #E7DAC0;
  --muted: #B8AC97;
  --amber: #FFAE2B;
  --amber-2: #F08C00;
  --tape: #D3271F;
  --buff: #D9B87A;
  --buff-2: #BF9A57;
  --ink: #45289A;
  --green: #36D86C;
  --green-ink: #138A3B;
  --baize: #2C4436;
  --baize-2: #22382C;

  --display: "Gemunu", "Anek Tamil", "Iskoola Pota", system-ui, sans-serif;
  --body: "Anek", "Gemunu", "Anek Tamil", system-ui, sans-serif;

  --g: clamp(16px, 4vw, 64px);
  --hdr: 72px;
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--night); color: var(--paper);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.5;
  overflow-x: clip;
}
[lang="ta"] { font-family: "Anek Tamil", var(--body); }
[lang="si"] { font-family: "Gemunu", var(--body); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .92; letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
canvas { display: block; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--amber); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus-visible { top: 16px; } /* keyboard users only — mouse and touch never see it */
.placeholder { outline: 1.5px dashed currentColor; outline-offset: 3px; border-radius: 4px; }
.note { font-size: .9375rem; color: var(--muted); }

/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: -6%; z-index: 300; pointer-events: none; opacity: .07; will-change: transform;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -4%) } 60% { transform: translate(-4%, -1%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1.0625rem; font-stretch: 105%; text-decoration: none; line-height: 1;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-amber { background: var(--amber); color: #1A1206; box-shadow: 0 0 0 0 rgba(255, 174, 43, .0), 0 10px 30px -12px rgba(255, 160, 30, .7); }
.btn-amber:hover { background: #FFC15A; box-shadow: 0 0 0 6px rgba(255, 174, 43, .16), 0 14px 36px -12px rgba(255, 160, 30, .8); }
.btn-line { color: var(--paper); border-color: rgba(243, 235, 216, .45); }
.btn-line:hover { border-color: var(--paper); background: rgba(243, 235, 216, .06); }
.btn-big { min-height: 64px; font-size: 1.25rem; width: 100%; }
.btn svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--g);
  transition: background-color .3s, backdrop-filter .3s, box-shadow .3s;
}
.hdr.is-solid { background: rgba(20, 16, 18, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.logo { justify-self: start; display: inline-flex; align-items: flex-end; gap: 3px; text-decoration: none; color: var(--paper); padding: 6px 2px; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 2.25rem; line-height: .8; letter-spacing: -0.01em; }
.logo-bang { color: var(--amber); }
.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--muted); padding: 10px 2px; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover, .nav a.is-current { color: var(--paper); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.hdr-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.hdr-cta { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.menu { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; align-content: center; gap: 6px; }
.menu span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet { position: fixed; inset: var(--hdr) 0 auto 0; z-index: 99; background: var(--night-2); padding: 8px var(--g) 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sheet nav { display: grid; }
.sheet a { padding: 16px 0; font-family: var(--display); font-size: 1.75rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sheet a.btn { margin-top: 16px; border: 0; font-family: var(--body); font-size: 1.125rem; }

/* =========================================================
   1. HERO
   ========================================================= */
/* the bus front */
.bus { position: relative; }
.bus-lights { display: flex; justify-content: center; gap: clamp(14px, 3vw, 44px); margin-bottom: 12px; }
.bus-lights i { width: 14px; height: 8px; border-radius: 6px; background: #3A2410; transition: background-color .2s, box-shadow .2s; }
.bus-lights i.on { background: var(--amber); box-shadow: 0 0 10px var(--amber), 0 0 24px rgba(255, 150, 20, .55); }
.bus-green .bus-lights i.on { background: var(--green); box-shadow: 0 0 10px var(--green), 0 0 24px rgba(40, 220, 100, .5); }
.bus-board {
  position: relative; display: flex; gap: clamp(8px, 1.2vw, 16px); padding: clamp(8px, 1.2vw, 14px);
  border-radius: 18px;
  background: linear-gradient(180deg, #0B0809, #050404);
  box-shadow:
    0 0 0 3px #2b2b2c,
    0 0 0 5px #8d8f92,
    0 0 0 6px #d9dbdd,
    0 0 0 9px #4a4b4d,
    0 30px 80px -30px rgba(255, 140, 20, .35),
    inset 0 2px 0 rgba(255, 255, 255, .06);
}
.bus-board::after { /* glass glare */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .04) 70%, rgba(255, 255, 255, 0) 78%);
}
.route { position: relative; flex: none; display: grid; justify-items: center; align-content: center; padding: 0 6px; border-right: 1px solid rgba(255, 255, 255, .06); }
.route-l { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-family: var(--body); font-size: .625rem; font-weight: 700; letter-spacing: .12em; color: #6B4A28; }
.dest { flex: 1; min-width: 0; }
.dest canvas, .route canvas { width: 100%; }
.route canvas { width: auto; }
.bus-reflect { width: 100%; height: 90px; margin-top: 6px; opacity: .55; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); }


/* =========================================================
   1. THE STORY — the island
   ========================================================= */
.story { position: relative; background:
    radial-gradient(60% 70% at 72% 55%, rgba(255, 150, 30, .08), transparent 70%), var(--night); }
.story-pin { position: relative; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding: calc(var(--hdr) + 12px) var(--g) 24px; overflow: hidden; }
.story-text { position: relative; z-index: 2; height: 100%; }
.st { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 22px; opacity: 0; visibility: hidden; }
.st.is-on { opacity: 1; visibility: visible; }
.loading .st-0 > :not(h1), .loading .story-map { opacity: 0; }
.anim .st-0 h1 { animation: h1-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes h1-rise { from { transform: translateY(22px); } }
.story h1 { font-size: clamp(3rem, 1rem + 4.4vw, 6.4rem); line-height: .94; max-width: 13ch; }
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.story-cue { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; margin-top: 10px; }
.story-cue i { width: 4px; height: 30px; border-radius: 4px; background: linear-gradient(var(--amber), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }
.fact b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 1rem + 4vw, 5.6rem); line-height: .95; }
.fact:nth-child(2) b { color: var(--paper-2); }
.fact:nth-child(3) b { color: var(--amber); }
.fact-note { color: var(--muted); font-size: 1.2rem; max-width: 30ch; }
.moment { gap: 14px; }
.m-place { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); color: var(--amber); }
.m-local { font-weight: 800; font-size: clamp(2.6rem, 1rem + 3.8vw, 5rem); line-height: 1.05; color: var(--paper); }
.m-local[lang="ta"] { font-stretch: 85%; font-size: clamp(2rem, 1rem + 2.6vw, 3.6rem); line-height: 1.15; }
.m-line { font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); color: var(--paper-2); max-width: 26ch; }
.big-line { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1rem + 3.6vw, 5rem); line-height: .95; }
.big-line.dim { color: var(--muted); }
.big-line.amber { color: var(--amber); }
.story-map, .green-map { position: relative; height: calc(100svh - var(--hdr) - 36px); display: grid; place-items: center; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .dist { fill: #1E171A; stroke: rgba(243, 235, 216, .16); stroke-width: .8; vector-effect: non-scaling-stroke; }
.map .dist.hl { fill: rgba(255, 174, 43, .16); stroke: rgba(255, 174, 43, .7); }
.map .coast { fill: none; stroke: rgba(243, 235, 216, .8); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map .core { fill: #FFD58A; }
.map .tw { animation: twinkle 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
.map .ping { fill: none; stroke: var(--amber); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; }
.map .ping { animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { opacity: .9; r: 4; } 100% { opacity: 0; r: 28; } }
.map .town { fill: var(--amber); }
.map .office { fill: none; stroke: var(--paper); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; }

/* =========================================================
   3. WHY NOTHING CHANGES
   ========================================================= */
.why { padding: clamp(90px, 14vh, 160px) var(--g); background: var(--paper); color: var(--night); }
.why h2 { font-size: clamp(3rem, 1.2rem + 5vw, 6.5rem); max-width: 12ch; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); margin-top: clamp(40px, 6vh, 72px); }
.beat { display: grid; align-content: start; gap: 14px; }
.beat h3 { font-size: clamp(1.9rem, 1.2rem + 1.4vw, 2.8rem); line-height: .95; }
.beat p { font-size: 1.1rem; color: #4A3B30; max-width: 34ch; }
.beat-art { position: relative; height: 170px; border-radius: 18px; overflow: hidden; background: var(--night); color: var(--paper); margin-bottom: 8px; }
.art-alone i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: twinkle 2.4s ease-in-out infinite; }
.art-desks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; align-items: end; }
.art-desks span { display: grid; place-items: end center; height: 64%; padding-bottom: 8px; border-radius: 8px 8px 0 0; background: var(--night-3); font-size: .8rem; font-weight: 700; color: var(--muted); }
.art-desks i { position: absolute; left: calc(12.5% - 15px); top: 16%; width: 30px; height: 38px; border-radius: 3px; background: var(--buff); box-shadow: 0 6px 12px rgba(0, 0, 0, .5); animation: hop 5.2s var(--ease) infinite; }
@keyframes hop {
  0%, 12% { left: calc(12.5% - 15px); transform: translateY(0) }
  18% { transform: translateY(-16px) } 25%, 37% { left: calc(37.5% - 15px); transform: translateY(0) }
  43% { transform: translateY(-16px) } 50%, 62% { left: calc(62.5% - 15px); transform: translateY(0) }
  68% { transform: translateY(-16px) } 75%, 87% { left: calc(87.5% - 15px); transform: translateY(0) }
  93% { transform: translateY(-16px) } 100% { left: calc(12.5% - 15px); transform: translateY(0) }
}
.art-record { display: grid; place-items: center; align-content: center; gap: 2px; }
.art-record span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.art-record b { font-family: var(--display); font-size: 5.5rem; line-height: .9; color: #FF5A3C; text-shadow: 0 0 22px rgba(255, 80, 40, .45); }
.punch { display: grid; gap: 6px; margin-top: clamp(56px, 9vh, 110px); font-family: var(--display); font-weight: 800; line-height: .95; font-size: clamp(2.6rem, 1rem + 4.6vw, 6.2rem); }
.punch .p1 { color: #6A5A4C; }
.punch .p2 b { background: linear-gradient(transparent 62%, rgba(255, 174, 43, .65) 62%); }
.why-source { margin-top: 36px; font-size: .95rem; color: #5A4A3E; max-width: 70ch; }
.why-source a { color: #7A2E18; text-underline-offset: 3px; }

/* =========================================================
   5. THE ISLAND AGAIN
   ========================================================= */
.green { position: relative; background:
    radial-gradient(55% 65% at 70% 55%, rgba(40, 220, 100, .09), transparent 70%), var(--night); }
.green-pin { height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding: calc(var(--hdr) + 12px) var(--g) 24px; overflow: hidden; }
.green-text { display: grid; gap: 22px; }
.green h2 { display: grid; gap: 14px; }
.g-a { font-weight: 500; font-size: clamp(1.4rem, .9rem + 1.6vw, 2.6rem); color: var(--muted); line-height: 1; }
.g-b { font-size: clamp(3.2rem, 1rem + 5.4vw, 7.4rem); line-height: .9; }
.green-text > p { color: var(--paper-2); font-size: 1.15rem; max-width: 40ch; }
.tally { display: flex; gap: 40px; }
.tally div { display: grid; }
.tally b { font-family: var(--display); font-size: clamp(3rem, 2rem + 2.4vw, 4.6rem); line-height: .9; color: var(--amber); font-variant-numeric: tabular-nums; }
.tally .t-ok b { color: var(--green); }
.tally span { color: var(--muted); }

/* =========================================================
   6. HOW IT WORKS — plain
   ========================================================= */
.how { padding: clamp(90px, 14vh, 150px) var(--g); background: var(--paper-2); color: var(--night); }
.how h2 { font-size: clamp(3rem, 1.2rem + 5vw, 6.5rem); }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(36px, 6vh, 64px); }
.how-steps li { display: grid; align-content: start; gap: 12px; border-top: 3px solid var(--night); padding-top: 18px; }
.how-n { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 2rem + 4vw, 7rem); line-height: .8; color: #B4502F; }
.how-steps h3 { font-size: clamp(1.9rem, 1.2rem + 1.4vw, 2.8rem); }
.how-steps p { font-size: 1.1rem; color: #4A3B30; max-width: 34ch; }

/* =========================================================
   2. THE FILE
   ========================================================= */
.file-scene { position: relative; background:
    radial-gradient(90% 70% at 70% 50%, rgba(255, 255, 255, .05), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 7px),
    var(--baize); }
.file-pin { overflow: hidden; min-height: 100svh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: calc(var(--hdr) + 24px) var(--g) 40px; }
.file-copy { display: grid; gap: 28px; max-width: 36rem; }
.file-copy h2 { font-size: clamp(3rem, 1.2rem + 5vw, 6.5rem); color: var(--paper); }
.clock { display: grid; gap: 2px; border-radius: var(--r); overflow: hidden; background: rgba(0, 0, 0, .25); }
.clock-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 20px; background: rgba(0, 0, 0, .22); }
.clock-row span { color: #C9D4C4; font-size: 1rem; }
.clock-row b { font-family: var(--display); font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.6rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-bad b { color: #FF6B4A; text-shadow: 0 0 18px rgba(255, 80, 40, .35); }
.days { display: grid; gap: 12px; }
.days li { font-size: 1.125rem; color: #DCE3D6; padding-left: 16px; border-left: 3px solid rgba(255, 255, 255, .18); }
.days li b { color: var(--paper); }
.file-end { font-family: var(--display); font-size: clamp(1.6rem, 1rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1; color: var(--amber); }

.desk { position: relative; height: min(78svh, 720px); display: grid; place-items: center; perspective: 1400px; }
.file {
  position: relative; z-index: 2; width: min(440px, 80%); aspect-ratio: 3 / 4; border-radius: 6px 10px 10px 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 6%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .1  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"),
    var(--buff);
  box-shadow: 0 2px 0 #b08b48, 0 40px 60px -28px rgba(0, 0, 0, .65), 0 12px 24px -12px rgba(0, 0, 0, .4);
  color: #3A2A12;
}
.file-cover { position: absolute; inset: 0; padding: 9% 9% 0; display: grid; align-content: start; gap: 14px; font-family: var(--body); }
.fc-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid rgba(58, 42, 18, .5); padding-bottom: 8px; font-size: .95rem; }
.fc-top b { font-family: var(--display); font-size: 1.5rem; letter-spacing: .02em; }
.fc-line { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; border-bottom: 1px dashed rgba(58, 42, 18, .45); padding-bottom: 6px; font-size: .95rem; }
.fc-line span { color: rgba(58, 42, 18, .75); }
.fc-line b { font-weight: 600; font-family: "Anek", cursive; font-style: italic; color: #1F2B6B; }
.redact { color: #1A1A1A !important; letter-spacing: -1px; font-style: normal !important; }
.fc-rule { height: 1px; background: rgba(58, 42, 18, .3); margin-top: 14px; }
.tape { position: absolute; background: linear-gradient(90deg, #A3150F, var(--tape) 30%, #E2463A 50%, var(--tape) 70%, #A3150F); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.tape-v { left: 58%; top: -2%; bottom: -2%; width: 22px; }
.tape-h { top: 56%; left: -3%; right: -3%; height: 22px; background: linear-gradient(180deg, #A3150F, var(--tape) 30%, #E2463A 50%, var(--tape) 70%, #A3150F); }
.tape-knot { position: absolute; left: calc(58% + 11px); top: calc(56% + 11px); width: 0; height: 0; }
.tape-knot i { position: absolute; width: 46px; height: 26px; border-radius: 50%; border: 9px solid var(--tape); top: -13px; box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.tape-knot i:first-child { right: 2px; transform: rotate(-20deg); }
.tape-knot i:last-child { left: 2px; transform: rotate(20deg); }

.stamps { position: absolute; inset: 0; pointer-events: none; }
.stamp { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r)); color: var(--ink); opacity: .9; filter: url(#ink); mix-blend-mode: multiply; }
.st-rect { display: grid; justify-items: center; padding: 8px 16px 7px; border: 4px solid currentColor; border-radius: 6px; outline: 2px solid currentColor; outline-offset: -9px; }
.st-rect span { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); line-height: .9; letter-spacing: .04em; }
.st-rect small { font-family: var(--body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; margin-top: 3px; }
.st-red { color: #B3170F; }
.st-round { width: clamp(130px, 13vw, 180px); }
.st-round svg { width: 100%; height: auto; }
.st-ring { font-family: var(--body); font-weight: 800; font-size: 15px; letter-spacing: 3px; fill: currentColor; }
.st-si { font-family: "Gemunu", sans-serif; font-weight: 800; font-size: 32px; fill: currentColor; }

.pile { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pile-file { position: absolute; left: 50%; bottom: 6%; width: min(440px, 80%); height: 34px; margin-left: calc(min(440px, 80%) / -2); border-radius: 4px;
  background: linear-gradient(180deg, #E2C58C, var(--buff) 40%, #B48F50); box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .55), inset 0 -3px 0 rgba(0,0,0,.12); }
.pile-file::after { content: ""; position: absolute; top: 8px; bottom: 8px; left: 55%; width: 14px; background: var(--tape); opacity: .9; }

/* =========================================================
   3. THE SNAP
   ========================================================= */
.snap { position: relative; background: var(--night); }
.snap-pin { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.snap-grid { position: absolute; inset: -2%; display: grid; gap: 10px; padding: 10px; pointer-events: none; }
.mini { border-radius: 10px; padding: 10px; display: grid; align-content: space-between; font-family: var(--display); font-weight: 800; line-height: .9; overflow: hidden; opacity: 0; }
.mini b { font-size: clamp(.9rem, .6rem + .7vw, 1.35rem); }
.mini small { font-family: var(--body); font-weight: 600; font-size: .7rem; opacity: .8; }
.mini.m-a { background: var(--amber); color: #1A1206; }
.mini.m-r { background: var(--tape); color: #FFF3EA; }
.mini.m-b { background: var(--buff); color: #2A1E0C; }
.mini.m-v { background: #3B2A80; color: #EDE6FF; }
.mini.m-p { background: var(--paper); color: #1A1206; }
.mini.m-n { background: var(--night-3); color: var(--paper); }

.tape-band { position: absolute; left: 0; right: 0; top: 50%; height: clamp(70px, 9vw, 120px); margin-top: calc(clamp(70px, 9vw, 120px) / -2); z-index: 3; display: flex; }
.tb { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center;
  background: linear-gradient(180deg, #A3150F, var(--tape) 25%, #E54A3D 50%, var(--tape) 75%, #A3150F); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.tb span { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1rem + 2vw, 3rem); color: rgba(255, 236, 225, .92); letter-spacing: .02em; }
.tb-l { justify-content: flex-end; clip-path: polygon(0 0, 100% 0, 97% 22%, 100% 41%, 96% 63%, 100% 82%, 98% 100%, 0 100%); margin-right: -1px; }
.tb-r { justify-content: flex-start; clip-path: polygon(2% 0, 100% 0, 100% 100%, 0 100%, 3% 80%, 0 61%, 4% 40%, 0 20%); }
.tb-r span { animation: tape-run 22s linear infinite; }
.tb-l span { animation: tape-run-r 22s linear infinite; }
@keyframes tape-run { to { transform: translateX(-30%); } }
@keyframes tape-run-r { from { transform: translateX(-30%); } to { transform: translateX(0); } }

.snap-h { position: absolute; z-index: 4; top: calc(var(--hdr) + 5vh); left: var(--g); right: var(--g); text-align: center; font-size: clamp(2.6rem, 1rem + 5vw, 6rem); color: var(--paper); }

.post { position: relative; z-index: 5; width: min(380px, 78vw); border-radius: 22px; background: #FBF7EE; color: #1A1416; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.post-h { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; }
.post .av, .hear-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--amber); font-family: var(--display); font-weight: 800; font-size: 1.5rem; box-shadow: inset 0 0 0 2px var(--amber); }
.post-who { display: grid; line-height: 1.15; }
.post-who b { font-size: .95rem; }
.post-who small { font-size: .78rem; color: #6B6066; }
.post-tag { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #EDE3D0; color: #5A4A2E; }
.post-media { aspect-ratio: 1 / 1; background:
    radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, .28), transparent 60%),
    var(--amber);
  padding: 9%; display: grid; align-content: space-between; }
.pm-big { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); line-height: .86; color: #1A1206; }
.pm-small { font-size: .9rem; font-weight: 600; color: rgba(26, 18, 6, .78); }
.post-stats { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; font-size: .82rem; color: #5D5258; }
.post-stats b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: #1A1416; font-variant-numeric: tabular-nums; }

.comments { position: absolute; z-index: 6; left: 50%; top: 50%; width: 0; height: 0; }
.cm { position: absolute; left: 0; top: 0; transform: translate(var(--x), var(--y)); width: max-content; max-width: 260px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #2B2327; color: var(--paper); font-size: 1rem; line-height: 1.25; box-shadow: 0 14px 30px -12px rgba(0,0,0,.7); }
.cm:nth-child(even) { border-radius: 16px 16px 4px 16px; background: #3A2E33; }

.snap-line { position: absolute; z-index: 7; left: var(--g); right: var(--g); top: 50%; transform: translateY(-50%); display: grid; justify-items: center; text-align: center; gap: 6px; pointer-events: none; }
.snap-line span { display: block; font-family: var(--display); font-weight: 800; line-height: .9; font-size: clamp(2.4rem, 1rem + 4.8vw, 6.4rem); color: var(--paper); text-shadow: 0 6px 40px rgba(0, 0, 0, .8), 0 2px 0 rgba(0,0,0,.4); padding: 2px 18px; background: rgba(20, 16, 18, .88); border-radius: 6px; }
.snap-line span:last-child { background: var(--paper); color: var(--night); text-shadow: none; }

.fixed { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; pointer-events: none; }
.fixed-in { display: grid; justify-items: center; padding: 18px 44px 16px; border: 10px solid currentColor; border-radius: 16px; outline: 4px solid currentColor; outline-offset: -22px; color: var(--green); background: rgba(10, 30, 16, .15); filter: url(#ink-light); transform: rotate(-8deg); text-shadow: 0 0 40px rgba(40, 220, 100, .35); }
.fixed-in span { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 2rem + 13vw, 15rem); line-height: .82; letter-spacing: .04em; }
.fixed-in small { font-family: var(--body); font-weight: 800; letter-spacing: .14em; font-size: clamp(.8rem, .6rem + .6vw, 1.2rem); }

/* =========================================================
   6. GUIDES — queue tokens
   ========================================================= */
.guides { padding: clamp(80px, 12vh, 140px) var(--g); background: var(--night); }
.guides-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 64px; align-items: end; margin-bottom: 44px; }
.guides-head h2 { grid-row: span 2; font-size: clamp(2.8rem, 1.2rem + 4.4vw, 6rem); }
.guides-head p { color: var(--paper-2); max-width: 44ch; }
.tokens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.token { display: grid; gap: 14px; padding: 20px; border-radius: 18px; background: linear-gradient(180deg, #221B1E, #191416); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.token h3 { font-size: 1.6rem; font-weight: 700; line-height: 1; min-height: 2em; }
.tk-row { display: grid; gap: 6px; }
.tk-row span { font-size: .85rem; color: var(--muted); }
.tk-row canvas { width: 100%; border-radius: 8px; background: #080606; box-shadow: inset 0 0 0 2px #2C2427; }
.token a { justify-self: start; font-weight: 700; color: var(--amber); text-underline-offset: 4px; padding: 6px 0; }

/* =========================================================
   7. SEND
   ========================================================= */
.send { position: relative; padding: clamp(80px, 12vh, 140px) var(--g) 60px; background:
    radial-gradient(60% 40% at 50% 10%, rgba(40, 220, 100, .12), transparent 70%), var(--night); }
.send-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: 24px; }
.send h2 { font-size: clamp(3rem, 1.2rem + 5.2vw, 7rem); }
.send-card { display: grid; gap: 16px; padding: 26px; border-radius: 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.send-num { text-align: center; color: var(--muted); }
.hear { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }
.hear p { display: grid; line-height: 1.3; }
.hear p > span { color: var(--muted); font-size: .95rem; }
.send-points { display: grid; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }
.send-points li { position: relative; padding-left: 20px; color: var(--paper-2); font-size: 1rem; }
.send-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { padding: 40px var(--g) 40px; background: var(--night); border-top: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.foot-word { position: relative; height: clamp(120px, 24vw, 380px); }
.fw { position: absolute; inset: 0; display: flex; align-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(7rem, 2rem + 22vw, 24rem); line-height: .8; color: var(--paper); letter-spacing: -0.02em; opacity: 0; transform: translateY(30%); transition: opacity .6s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.fw[lang="ta"] { font-family: "Anek Tamil", sans-serif; font-stretch: 80%; font-size: clamp(5rem, 1.5rem + 16vw, 18rem); }
.fw.is-on { opacity: 1; transform: none; }
.fw.is-off { opacity: 0; transform: translateY(-30%); }
.foot-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; margin-top: 28px; color: var(--muted); font-size: 1rem; }
.foot-small { justify-self: end; text-align: right; font-size: .9rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .tokens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  :root { --hdr: 64px; }
  body { font-size: 1.0625rem; }
  .hdr { grid-template-columns: 1fr auto; }
  .nav, .hdr-cta { display: none; }
  .menu { display: grid; }
  .logo-word { font-size: 2rem; }

  .file-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; padding-top: calc(var(--hdr) + 12px); align-content: start; min-height: 100svh; }
  .file-copy { gap: 14px; }
  .file-copy h2 { font-size: 2.6rem; }
  .clock-row { padding: 10px 14px; }
  .clock-row b { font-size: 1.6rem; }
  .days { gap: 6px; }
  .days li { font-size: .95rem; }
  .file-end { font-size: 1.4rem; }
  .desk { height: 44svh; min-height: 300px; }
  .file { width: auto; height: 92%; }
  .file-cover { gap: 8px; font-size: .8rem; }
  .fc-top b { font-size: 1.05rem; }
  .fc-line { font-size: .78rem; grid-template-columns: 6.2em 1fr; }
  .st-rect span { font-size: 1.05rem; }
  .st-rect small { font-size: .55rem; }
  .st-round { width: 100px; }
  .pile-file { width: 60%; margin-left: -30%; height: 22px; }

  .snap-h { top: calc(var(--hdr) + 3vh); }
  .post { width: min(300px, 76vw); }
  .cm { font-size: .85rem; max-width: 190px; padding: 8px 11px; }
  .cm:nth-child(1) { transform: translate(calc(-50vw + 16px), 196px); }
  .cm:nth-child(2) { transform: translate(calc(50vw - 16px - 100%), 244px); }
  .cm:nth-child(3) { transform: translate(calc(-50vw + 16px), 292px); }
  .cm:nth-child(n+4) { display: none; }
  .snap-h { font-size: 2.2rem; top: calc(var(--hdr) + 10px); }
  .post { width: min(264px, 70vw); }
  .pm-big { font-size: 2.6rem; }


  .story-pin, .green-pin { grid-template-columns: 1fr; grid-template-rows: 42svh 1fr; gap: 8px; padding-top: calc(var(--hdr) + 6px); }
  .story-map, .green-map { height: 42svh; order: -1; }
  .story h1 { font-size: clamp(2.1rem, .9rem + 5.4vw, 3.2rem); }
  .st { top: 0; transform: none; gap: 14px; }
  .story-cue { display: none; }
  .fact b { font-size: 2.4rem; }
  .m-local { font-size: 2.4rem; }
  .big-line { font-size: 2.2rem; }
  .green-text { gap: 12px; align-self: start; }
  .g-b { font-size: 2.6rem; }
  .tally b { font-size: 2.6rem; }
  .green-text > p { font-size: 1rem; }
  .why-grid, .how-steps { grid-template-columns: 1fr; }
  .guides-head { grid-template-columns: 1fr; }
  .guides-head h2 { grid-row: auto; }
  .send-grid { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr; }
  .foot-small { justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  .tokens { grid-template-columns: 1fr; }
  .story-actions { display: grid; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  body::after { display: none; }
  .snap-grid { display: none; }
}

/* =========================================================
   STATIC MODE (no JS, or reduced motion): the story reads top to bottom
   ========================================================= */
html:not(.anim) .snap-pin { height: auto; overflow: visible; display: grid; justify-items: center; gap: 32px; padding: 110px var(--g) 90px; }
html:not(.anim) .snap-grid, html:not(.anim) .tape-band, html:not(.anim) .comments { display: none; }
html:not(.anim) .snap-h, html:not(.anim) .snap-line, html:not(.anim) .fixed { position: static; transform: none; inset: auto; }
html:not(.anim) .fixed-in span { font-size: clamp(4rem, 2rem + 8vw, 9rem); }

/* static mode for the story scenes */
html:not(.anim) .story-pin, html:not(.anim) .green-pin { height: auto; min-height: 100svh; overflow: visible; }
html:not(.anim) .story-text { height: auto; display: grid; gap: 48px; padding: 24px 0; }
html:not(.anim) .st { position: static; transform: none; opacity: 1; visibility: visible; }
html:not(.anim) .story-map { position: sticky; top: calc(var(--hdr) + 12px); align-self: start; }

/* v003: keep story text clean when the zoomed map spills left */
@media (min-width: 900px) {
  .story-pin::before { content: ""; position: absolute; inset: 0 45% 0 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--night) 0%, rgba(20, 16, 18, .9) 55%, transparent 100%); }
}
@media (max-width: 899px) {
  .story-map { overflow: hidden; }
}

/* =========================================================
   v004
   ========================================================= */
/* hero: the list of everyday problems */
.hero-list { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); color: var(--paper-2); max-width: 34ch; line-height: 1.4; }
.m-big { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 1rem + 3.8vw, 5rem); line-height: .98; color: var(--paper); max-width: 12ch; }

/* nav: Guides is its own page, so it looks different from the in-page links */
.nav a.nav-page { display: inline-flex; align-items: center; gap: 6px; color: var(--paper); padding: 8px 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 174, 43, .55); transition: background-color .2s, box-shadow .2s; }
.nav a.nav-page::after { display: none; }
.nav a.nav-page svg { width: 15px; height: 15px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.nav a.nav-page:hover { background: rgba(255, 174, 43, .1); box-shadow: inset 0 0 0 1.5px var(--amber); }
.nav a.nav-page:hover svg { transform: translateX(3px); }
.nav a.nav-page.is-here { background: var(--amber); color: #1A1206; box-shadow: none; }
.nav a.nav-page.is-here svg { stroke: #1A1206; }

/* the travelling complaint: one dot from the map to the desk */
.traveller { position: fixed; left: 0; top: 0; z-index: 50; width: 0; height: 0; pointer-events: none; visibility: hidden; }
.traveller i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #FFE2A8;
  box-shadow: 0 0 0 4px rgba(255, 174, 43, .35), 0 0 22px 6px rgba(255, 174, 43, .75), 0 0 60px 18px rgba(255, 140, 20, .35); }
.traveller .ring { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--amber); opacity: 0; }
.traveller .spark { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); opacity: 0; }

/* guides: honest about what works, and a way to the full list */
.guides-good { display: flex; gap: 10px; align-items: baseline; color: var(--paper-2); max-width: 44ch; }
.guides-good::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); transform: translateY(-1px); }
.token-ok { box-shadow: inset 0 0 0 1px rgba(54, 216, 108, .35); }
.tk-ok { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); padding: 6px 0; }
.tk-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.token a { text-decoration: underline; }
.guides-more { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border-radius: 18px;
  text-decoration: none; background: linear-gradient(90deg, rgba(255, 174, 43, .1), rgba(255, 174, 43, .02)); box-shadow: inset 0 0 0 1.5px rgba(255, 174, 43, .35); transition: background-color .25s, box-shadow .25s; }
.guides-more span { display: grid; gap: 6px; }
.guides-more b { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 2vw, 3.2rem); line-height: .9; }
.guides-more small { color: var(--muted); font-size: 1rem; max-width: 60ch; }
.guides-more i { flex: none; display: grid; place-items: center; width: clamp(56px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%; background: var(--amber); transition: transform .3s var(--ease); }
.guides-more svg { width: 46%; fill: none; stroke: #1A1206; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.guides-more:hover { box-shadow: inset 0 0 0 1.5px var(--amber); }
.guides-more:hover i { transform: translateX(6px); }

/* send: copy + complaint form */
.send-grid { align-items: start; }
.send-copy { display: grid; gap: 28px; }
.send-copy .send-points { border-top: 0; padding-top: 0; gap: 12px; }
.send-copy .send-points li { font-size: 1.15rem; }
.cform { display: grid; gap: 20px; padding: clamp(20px, 2.4vw, 30px); border-radius: 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.f-block { display: grid; gap: 8px; }
.f-label { font-weight: 700; font-size: 1.05rem; }
.f-opt { font-weight: 500; color: var(--muted); font-size: .9rem; margin-left: 6px; }
.f-hint { color: var(--muted); font-size: .9rem; }
.cform textarea, .cform input[type="text"] { width: 100%; font: inherit; font-size: 1.05rem; color: var(--paper); background: #120E10; border: 1.5px solid rgba(243, 235, 216, .16); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.cform textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.cform textarea::placeholder, .cform input::placeholder { color: #8C8273; }
.cform textarea:focus, .cform input[type="text"]:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 174, 43, .15); }
.voice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.voice-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(243, 235, 216, .3); transition: box-shadow .2s, background-color .2s; }
.voice-btn:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.voice-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF4D3A; box-shadow: 0 0 0 3px rgba(255, 77, 58, .25); }
.voice-btn[aria-pressed="true"] { background: rgba(255, 77, 58, .14); box-shadow: inset 0 0 0 1.5px #FF4D3A; }
.voice-btn[aria-pressed="true"] .voice-dot { animation: rec 1s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .3; } }
.voice-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.voice-audio { height: 40px; max-width: 100%; }
.voice-del { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; border: 1.5px dashed rgba(243, 235, 216, .3); cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.is-over { border-color: var(--amber); background: rgba(255, 174, 43, .06); }
.drop:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 174, 43, .15); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop span { display: grid; }
.drop small { color: var(--muted); }
.files { display: grid; gap: 6px; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: #120E10; font-size: .95rem; }
.files li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li small { color: var(--muted); margin-left: 8px; }
.files button { flex: none; color: var(--muted); text-decoration: underline; min-height: 32px; }
.f-check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.f-check input { width: 22px; height: 22px; accent-color: var(--amber); }
.f-error { color: #FF8A73; font-weight: 600; }
.f-done { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: rgba(54, 216, 108, .1); box-shadow: inset 0 0 0 1.5px rgba(54, 216, 108, .4); }
.f-done b { color: var(--green); }
.f-done span { color: var(--paper-2); }

@media (max-width: 899px) {
  .hero-list { font-size: 1.05rem; }
  .m-big { font-size: 2.3rem; }
  .guides-more { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .traveller { display: none; } }

/* guides page */
.gpage { padding: calc(var(--hdr) + clamp(40px, 8vh, 90px)) var(--g) clamp(60px, 10vh, 120px); }
.g-hero { display: grid; gap: 18px; max-width: 62rem; }
.g-hero h1 { font-size: clamp(3rem, 1.2rem + 5.6vw, 7.4rem); line-height: .9; }
.g-hero > p:not(.note) { font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); color: var(--paper-2); max-width: 52ch; }
.g-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: clamp(36px, 6vh, 60px) 0 22px; }
.g-search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 420px; padding: 0 16px; min-height: 52px; border-radius: 999px; background: var(--night-2); box-shadow: inset 0 0 0 1.5px rgba(243, 235, 216, .16); }
.g-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 0 4px rgba(255, 174, 43, .15); }
.g-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.g-search input { flex: 1; min-width: 0; font: inherit; color: var(--paper); background: none; border: 0; outline: none; }
.g-search input::placeholder { color: #8C8273; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; color: var(--paper-2); box-shadow: inset 0 0 0 1.5px rgba(243, 235, 216, .2); transition: background-color .2s, box-shadow .2s, color .2s; }
.g-chips button:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.g-chips button[aria-pressed="true"] { background: var(--paper); color: var(--night); box-shadow: none; }
.g-count { color: var(--muted); margin-left: auto; }
.gcard h2 { font-size: 1.6rem; font-weight: 700; line-height: 1; min-height: 2em; }
.g-office { font-size: .85rem; color: var(--muted); min-height: 2.6em; }
.g-empty { margin-top: 20px; color: var(--paper-2); }
.g-empty a { color: var(--amber); }
.g-back { margin-top: 40px; }
.foot-slim { padding-top: 32px; }
.foot-slim .foot-row { margin-top: 0; }
@media (max-width: 899px) { .g-count { margin-left: 0; width: 100%; } }

/* =========================================================
   v005 — performance
   ========================================================= */
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
/* stamps and the FIXED stamp have ink filters: give them their own layer so the filter is
   drawn once, and the slam animation only moves a finished picture */
.stamp, .fixed-in, .post, .file { will-change: transform; }
/* lite mode (slower devices): same story, fewer expensive extras */
html.lite body::after { display: none; }
html.lite .hdr.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 16, 18, .96); }
html.lite .stamp { filter: none; }
html.lite .fixed-in { filter: none; }
html.lite .bus-reflect { opacity: .4; }
.flood-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* v007: menu jumps fade through instead of scrolling through every scene */
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--night); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.curtain.on { opacity: 1; }

/* =========================================================
   v008 — real guides: the list and one page per guide
   ========================================================= */
.g-tools .g-chips { flex: 1 1 100%; }
.g-chips button small { margin-left: 7px; font-size: .8em; font-weight: 700; opacity: .6; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.gl { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; padding: 20px 20px 18px; border-radius: 18px; text-decoration: none; color: var(--paper);
  background: linear-gradient(180deg, #221B1E, #191416); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: box-shadow .2s, transform .2s var(--ease); }
.gl:hover { box-shadow: inset 0 0 0 1.5px var(--amber); transform: translateY(-2px); }
.gl[hidden] { display: none !important; }
.gl-cat { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.gl h2 { font-size: 1.55rem; font-weight: 700; line-height: 1.02; min-height: 0; }
.gl-office { font-size: .9rem; color: var(--muted); }
.gl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .9rem; color: var(--paper-2); }
.gl-meta i { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 174, 43, .12); transition: background-color .2s, transform .25s var(--ease); }
.gl-meta svg { width: 15px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gl:hover .gl-meta i { background: var(--amber); transform: translateX(3px); }
.gl:hover .gl-meta svg { stroke: #1A1206; }
.gl-badge { padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #1A1206; background: #D9B87A; }

/* one guide */
.gd { max-width: 1240px; margin: 0 auto; }
.gd-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.gd-crumb a { color: var(--paper-2); text-underline-offset: 4px; padding: 6px 0; }
.gd-crumb a:hover { color: var(--amber); }
.gd-head { display: grid; gap: 14px; max-width: 56rem; }
.gd-head .g-office { min-height: 0; font-size: 1rem; }
.gd-head h1 { font-size: clamp(2.6rem, 1.2rem + 4.4vw, 5.6rem); line-height: .92; }
.gd-who { font-size: 1.15rem; color: var(--paper-2); max-width: 52ch; }
.gd-who b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.gd-state { display: flex; gap: 10px; align-items: baseline; max-width: 62ch; padding: 12px 16px; border-radius: 12px; background: rgba(255, 174, 43, .08); color: var(--paper-2); font-size: .98rem; }
.gd-state i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); transform: translateY(-1px); }
.gd-state.is-hold { background: rgba(211, 39, 31, .14); }
.gd-state.is-hold i { background: #FF5A4E; }
.gd-state.is-people { background: rgba(217, 184, 122, .12); }
.gd-state.is-people i { background: #D9B87A; }
.gd-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(32px, 6vh, 56px); }
.gd-steps > h2, .gd-box h2 { font-size: 1.9rem; margin-bottom: 18px; }
.gd-list { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; }
.gd-list li { counter-increment: st; position: relative; display: grid; align-content: start; gap: 8px; min-height: 46px; padding: 6px 0 30px 70px; }
.gd-list li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #1A1206; background: var(--amber); }
.gd-list li::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; width: 2px; background: rgba(255, 174, 43, .25); }
.gd-list li:last-child::after { display: none; }
.gd-list p { font-size: 1.15rem; line-height: 1.45; max-width: 60ch; }
.gd-src { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); text-underline-offset: 3px; padding: 4px 0; }
.gd-src:hover { color: var(--amber); }
.gd-src svg, .gd-from svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gd-hold { font-size: 1.15rem; color: var(--paper-2); max-width: 52ch; }
.gd-side { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 14px; }
.gd-box { padding: 22px; border-radius: 18px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.gd-box h2 { font-size: 1.5rem; margin-bottom: 14px; }
.gd-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gd-box li { position: relative; padding-left: 26px; color: var(--paper-2); line-height: 1.4; }
.gd-bring li::before { content: ""; position: absolute; left: 0; top: .2em; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--green); }
.gd-warn { background: rgba(211, 39, 31, .1); box-shadow: inset 0 0 0 1px rgba(255, 90, 78, .25); }
.gd-warn li::before { content: "!"; position: absolute; left: 0; top: .05em; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #1A1206; background: #FF8A7A; }
.gd-from li { padding-left: 0; display: grid; gap: 2px; }
.gd-from a { color: var(--paper); text-underline-offset: 3px; font-weight: 600; }
.gd-from a:hover { color: var(--amber); }
.gd-from small { color: var(--muted); font-size: .85rem; }
.gd-pns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.gd-pn { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; text-decoration: none; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(243, 235, 216, .14); transition: box-shadow .2s; }
.gd-pn:hover { box-shadow: inset 0 0 0 1.5px var(--amber); }
.gd-pn small { color: var(--muted); }
.gd-pn b { font-family: var(--display); font-size: 1.35rem; line-height: 1; }
.gd-next { text-align: right; }
@media (max-width: 899px) {
  .gd-body { grid-template-columns: 1fr; }
  .gd-side { position: static; }
  .gd-list li { padding-left: 58px; }
  .gd-list li::before { width: 40px; height: 40px; font-size: 1.3rem; }
  .gd-list li { min-height: 40px; padding-top: 4px; }
  .gd-list li::after { left: 19px; top: 46px; }
  .gd-pns { grid-template-columns: 1fr; }
  .gd-next { text-align: left; }
  .g-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--g) * -1); padding: 2px var(--g); scrollbar-width: none; }
  .g-chips button { flex: none; }
}

/* v009 — topic filter dropdown */
.g-filter { position: relative; display: inline-flex; align-items: center; }
.g-filter select { appearance: none; -webkit-appearance: none; min-height: 52px; padding: 0 48px 0 20px; border: 0; border-radius: 999px; font: inherit; font-weight: 600;
  color: var(--paper); background: var(--night-2); box-shadow: inset 0 0 0 1.5px rgba(243, 235, 216, .16); cursor: pointer; transition: box-shadow .2s; }
.g-filter select:hover { box-shadow: inset 0 0 0 1.5px rgba(243, 235, 216, .45); }
.g-filter select:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 0 4px rgba(255, 174, 43, .15); }
.g-filter select option { background: #1E1719; color: var(--paper); }
.g-filter svg { position: absolute; right: 20px; width: 16px; height: 16px; pointer-events: none; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) { .g-filter { flex: 1 1 100%; } .g-filter select { width: 100%; } }

/* v010 — guides list: queue tokens + office directory board */
.pop { margin-top: clamp(40px, 7vh, 72px); }
.pop h2 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); margin-bottom: 22px; }
.tickets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.ticket { position: relative; display: grid; align-content: start; gap: 10px; padding: 30px 18px 20px; border-radius: 4px 4px 10px 10px; text-decoration: none;
  color: #231A12; background: var(--paper); transform: rotate(var(--tilt, -1.4deg)); transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.ticket:nth-child(even) { --tilt: 1.1deg; }
.ticket:nth-child(3n) { --tilt: -.6deg; }
/* torn-off perforation along the top */
.ticket::before { content: ""; position: absolute; left: 6px; right: 6px; top: -5px; height: 10px; background: radial-gradient(circle, var(--night) 4px, transparent 4.5px) 0 0 / 14px 10px repeat-x; }
.ticket:hover, .ticket:focus-visible { transform: rotate(0) translateY(-6px); box-shadow: 0 18px 34px rgba(0, 0, 0, .45); }
.ticket:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.tk-stamp { justify-self: start; font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: #C2261E; padding: 4px 10px 2px;
  box-shadow: inset 0 0 0 2.5px #C2261E; border-radius: 6px; transform: rotate(-3deg); filter: url(#ink-light); }
.ticket b { font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.02; }
.ticket small { font-size: .82rem; color: #6E5E48; line-height: 1.3; }

.gx { display: grid; }
.gx-sec { display: grid; grid-template-columns: minmax(200px, 28%) minmax(0, 1fr); gap: 12px clamp(20px, 4vw, 56px); padding: 34px 0 30px; border-top: 1px solid rgba(243, 235, 216, .14); }
.gx-head { align-self: start; position: sticky; top: calc(var(--hdr) + 18px); }
.gx-head h2 { font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.3rem); line-height: 1; }
.gx-head p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.gx-rows { display: grid; }
.gx-row { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) minmax(0, 15rem); gap: 18px; align-items: baseline; padding: 13px 14px; margin: 0 -14px;
  border-radius: 10px; text-decoration: none; color: var(--paper); transition: background-color .15s; }
.gx-row + .gx-row { box-shadow: 0 -1px 0 rgba(243, 235, 216, .07); }
.gx-row:hover, .gx-row:focus-visible { background: rgba(255, 174, 43, .08); }
.gx-row:focus-visible { outline: 2px solid var(--amber); outline-offset: 0; }
.gx-code { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--amber); }
.gx-name { font-size: 1.12rem; font-weight: 500; line-height: 1.35; transition: color .15s; }
.gx-row:hover .gx-name { color: var(--amber); }
.gx-name .gl-badge { margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
.gx-off { font-size: .88rem; color: var(--muted); text-align: right; line-height: 1.3; }
@media (max-width: 1199px) { .tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; } }
@media (max-width: 899px) {
  .gx-sec { grid-template-columns: 1fr; padding-top: 26px; }
  .gx-head { position: static; }
  .gx-row { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .gx-off { display: none; }
}
@media (max-width: 599px) {
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .ticket { padding: 26px 14px 16px; }
  .tk-stamp { font-size: 1.6rem; }
  .ticket b { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .ticket, .ticket:hover { transition: none; } }
/* v010: the code already names the office; the full name was repeating it */
.gx-row { grid-template-columns: 7.2rem minmax(0, 1fr); }
.gx-off { display: none; }
@media (max-width: 899px) { .gx-row { grid-template-columns: 5.6rem minmax(0, 1fr); } }
.tk-stamp { white-space: nowrap; max-width: 100%; }
@media (max-width: 599px) { .tk-stamp { font-size: 1.3rem; padding: 3px 8px 1px; } }

/* v012 — bot check above the Send button */
.f-bot { min-height: 65px; margin: 6px 0 2px; }
.f-bot:empty { min-height: 0; margin: 0; }
[data-send][disabled] { opacity: .7; cursor: progress; }

/* ---------- v013: footer links, form note, privacy + terms pages ---------- */
.foot-links { margin-top: 12px; }
.foot-links a { display: inline-block; margin-left: 20px; padding: 6px 0; color: var(--paper-2); text-underline-offset: 4px; }
.foot-links a:first-child { margin-left: 0; }
.foot-links a:hover { color: var(--amber); }
.f-legal { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.f-legal a { color: var(--paper-2); text-underline-offset: 3px; }
.f-legal a:hover { color: var(--amber); }
.legal .gd-head { max-width: 48rem; }
.legal-lead { max-width: 46ch; color: var(--paper-2); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.45; }
.legal-body { display: grid; gap: clamp(28px, 4vh, 40px); max-width: 46rem; margin-top: clamp(32px, 6vh, 56px); }
.legal-body > section > h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 12px; }
.legal-body p, .legal-body li { color: var(--paper-2); line-height: 1.55; }
.legal-body p + p { margin-top: 12px; }
.legal-body > section > ul { list-style: disc; margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body b { color: var(--paper); }
.legal-body a { color: var(--amber); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-sum h2 { margin-bottom: 14px; }
.legal-body > section.legal-sum > ul { padding-left: 1.1em; gap: 10px; }
.legal-sum li { padding-left: 4px; }

/* =========================================================
   v015: responsiveness clean-up
   ========================================================= */
/* bigger tap targets (44px is the comfortable size for a finger) */
.f-check { min-height: 44px; }
.f-check input { width: 24px; height: 24px; }
.g-search input { align-self: stretch; }
.gd-src { padding: 10px 0; }
.gd-from a { display: inline-block; padding: 6px 0; }
.foot-links a { padding: 10px 0; }
.post-tag { font-size: .75rem; }

/* phones: less empty space above page headings */
@media (max-width: 599px) {
  .gpage { padding-top: calc(var(--hdr) + 28px); }
}

/* phones held sideways (and other short, wide screens): the stacked phone layout cuts the story off,
   so put the words beside the map again and size everything to the screen's height */
@media (orientation: landscape) and (max-height: 540px) {
  :root { --hdr: 56px; }
  .hdr { grid-template-columns: 1fr auto; }
  .nav, .hdr-cta { display: none; }
  .menu { display: grid; }
  .logo-word { font-size: 1.8rem; }
  .sheet { max-height: calc(100svh - var(--hdr)); overflow-y: auto; padding-bottom: 14px; }
  .sheet a { padding: 10px 0; font-size: 1.35rem; }
  .sheet a.btn { margin-top: 10px; min-height: 44px; }

  .story-pin, .green-pin { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: none; gap: 20px;
    padding: calc(var(--hdr) + 4px) var(--g) 8px; }
  .story-map, .green-map { order: 0; height: calc(100svh - var(--hdr) - 16px); }
  .st { gap: 8px; }
  .story h1 { font-size: clamp(1.5rem, 7.2svh, 2.4rem); max-width: 20ch; }
  .hero-list { font-size: .95rem; max-width: 40ch; }
  .story-actions { display: flex; margin-top: 2px; }
  .story-actions .btn { min-height: 44px; padding: 0 16px; font-size: .95rem; }
  .story-cue { display: none; }
  .fact b { font-size: clamp(1.5rem, 9svh, 2.4rem); }
  .fact-note { font-size: .95rem; }
  .moment { gap: 8px; }
  .m-place { font-size: 1.1rem; }
  .m-local, .m-big { font-size: clamp(1.5rem, 9svh, 2.4rem); max-width: 18ch; }
  .m-local[lang="ta"] { font-size: clamp(1.25rem, 7svh, 1.9rem); }
  .m-line { font-size: 1rem; max-width: 34ch; }
  .big-line { font-size: clamp(1.5rem, 9svh, 2.4rem); }
  .green-text { gap: 8px; align-self: center; }
  .g-a { font-size: 1.1rem; }
  .g-b { font-size: clamp(2rem, 11svh, 3rem); }
  .green-text > p { font-size: .9rem; }
  .tally { gap: 24px; }
  .tally b { font-size: 2rem; }
  .note { font-size: .85rem; }

  .file-pin { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); grid-template-rows: none; gap: 16px; align-items: center; align-content: center;
    padding: calc(var(--hdr) + 6px) var(--g) 8px; min-height: 100svh; }
  .file-copy { gap: 8px; }
  .file-copy h2 { font-size: 1.8rem; }
  .clock-row { padding: 6px 12px; }
  .clock-row b { font-size: 1.2rem; }
  .days { gap: 4px; }
  .days li { font-size: .85rem; }
  .file-end { font-size: 1.1rem; }
  .desk { height: calc(100svh - var(--hdr) - 24px); min-height: 0; }
  .file { width: auto; height: 88%; }

  .snap-h { font-size: 1.7rem; top: calc(var(--hdr) + 8px); }
  .post { width: min(210px, 32vw); margin-top: 110px; border-radius: 14px; }
  .post-media { aspect-ratio: 16 / 10; padding: 7%; }
  .post-h { grid-template-columns: auto minmax(0, 1fr) auto; }
  .post-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .post-tag { padding: 3px 7px; }
  .post-h { padding: 8px 10px; gap: 6px; }
  .post .av { width: 26px; height: 26px; font-size: 1rem; }
  .pm-big { font-size: 1.7rem; }
  .pm-small { font-size: .75rem; }
  .post-stats { padding: 8px 10px; font-size: .75rem; }
  .post-stats b { font-size: 1.05rem; }
  .comments { display: none; }
  .snap-line span { font-size: clamp(1.6rem, 9svh, 2.6rem); }
  .tape-band { height: 56px; margin-top: -28px; }
  .tb span { font-size: 1.3rem; }
}

/* every story step centred in its column (the animation resets the old translate-based centring, which pushed later steps down) */
.anim .st { top: 0; bottom: 0; transform: none; align-content: center; }
@media (max-width: 899px) and (min-height: 541px), (max-width: 899px) and (orientation: portrait) {
  .anim .st { align-content: start; }
}

/* ---------- v016: cookie notice ---------- */
.cc { position: fixed; z-index: 300; left: 16px; right: 16px; bottom: 16px; max-width: 440px; display: grid; gap: 14px; padding: 18px 18px 16px;
  border-radius: 18px; background: var(--night-2); color: var(--paper-2); font-size: .98rem; line-height: 1.45;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .09); }
.cc[hidden] { display: none; }
.cc b { color: var(--paper); }
.cc a { color: var(--amber); text-underline-offset: 3px; }
.cc-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cc .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }
@media (min-width: 900px) { .cc { left: auto; right: 24px; bottom: 24px; } }
.foot-cc { margin-left: 20px; padding: 10px 0; border: 0; background: none; font: inherit; color: var(--paper-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.foot-cc:hover { color: var(--amber); }

/* ---------- v019: cookie notice at the bottom of the screen, centred ---------- */
.cc { left: 50%; right: auto; top: auto; bottom: max(16px, env(safe-area-inset-bottom)); width: min(440px, calc(100vw - 32px)); max-width: none; transform: translateX(-50%);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .09); }
@media (min-width: 900px) { .cc { bottom: 24px; } }
.cc p { font-size: 1.02rem; }
.cc-btns { justify-content: stretch; }
.cc-btns .btn { flex: 1 1 0; }
