/* Masaala Chai Studios: one stylesheet for the studio home, The Last Atlas and the press kit.
   The mood is a cup of spiced chai in misty hills at dawn: kulhad clay, cardamom green, turmeric gold, milky chai and
   steam that drifts into the mist. The Last Atlas page keeps the game's own night blue and warm window light.
   Fonts are the game's own OFL faces, served from this site. Every animation stops for "reduce motion". */

@font-face { font-family: "EB Garamond"; src: url("../fonts/ebgaramond.woff") format("woff"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/ebgaramond-italic.woff") format("woff"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans3.woff") format("woff"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff") format("woff"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --roast: #110b07;
  --brew: #18100b;
  --brew-2: #20160f;
  --panel: #231810;
  --panel-2: #2d1f15;
  --line: #3e2b1d;
  --cream: #f6ebd9;
  --milk: #e2cdb0;
  --milk-2: #bfa889;
  --muted: #9d8670;
  --kulhad: #b25d32;
  --kulhad-hi: #d27a49;
  --turmeric: #e3a73e;
  --cardamom: #9aab6e;
  --leaf: #55704d;
  --mist: #c7d1cb;
  --night: #0a0d1b;
  --night-2: #121836;
  --glow: #f4bb6a;
  --survey: #8fe6f2;
  --ink: #3a2717;
  --paper: #eadcbf;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--roast); color: var(--cream); font: 400 1.0625rem/1.68 var(--sans); overflow-x: hidden; }
img, svg, canvas { display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--turmeric); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--glow); }
:focus-visible { outline: 2px solid var(--turmeric); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--kulhad); color: var(--cream); }
button { font: inherit; color: inherit; }

/* a faint grain over everything, like paper or a clay cup */
body::before { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--roast); padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header: clear over the hero, brewed solid once you scroll ---- */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-head.solid, .site-head.always { background: rgba(17, 11, 7, .84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: rgba(62, 43, 29, .8); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; min-height: 66px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--cream); text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(210, 122, 73, .35); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-12deg); }
.brand span { font: 600 .8rem/1.1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav a { position: relative; color: var(--milk); text-decoration: none; font: 600 .78rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; padding: 9px 0; display: inline-block; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--kulhad-hi); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---- buttons ---- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 .9rem/1 var(--sans); letter-spacing: .05em; text-decoration: none; border: 1px solid rgba(210, 122, 73, .8); color: var(--cream); background: rgba(35, 24, 16, .55); backdrop-filter: blur(4px); transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; overflow: hidden; cursor: pointer; }
.btn:hover { background: var(--panel-2); color: var(--cream); border-color: var(--kulhad-hi); transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--kulhad-hi), var(--kulhad)); color: #fff5e8; border-color: transparent; box-shadow: 0 10px 30px -12px rgba(210, 122, 73, .9); }
.btn.primary:hover { color: #fff; box-shadow: 0 16px 36px -12px rgba(227, 167, 62, .9); }
.btn.primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 210, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn.primary:hover::before { transform: translateX(120%); }
.btn small { font-weight: 400; opacity: .85; letter-spacing: .02em; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---- type ---- */
.eyebrow { font: 600 .76rem/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--turmeric); margin: 0 0 14px; }
h2 { font: 500 clamp(1.9rem, 4.4vw, 3rem)/1.12 var(--serif); margin: 0 0 18px; letter-spacing: .005em; }
h2.caps { text-transform: uppercase; letter-spacing: .12em; font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font: 600 1.06rem/1.3 var(--sans); letter-spacing: .03em; margin: 0 0 8px; color: var(--cream); }
p { margin: 0 0 1em; max-width: 66ch; }
.muted { color: var(--muted); }
.hand { font-family: var(--hand); font-size: 1.7rem; color: var(--turmeric); line-height: 1.15; }
.prose p { color: var(--milk); }
.prose p strong { color: var(--cream); font-weight: 600; }
.lede { font: 400 clamp(1.18rem, 2.3vw, 1.5rem)/1.5 var(--serif); color: var(--cream); max-width: 36ch; margin: 18px 0 0; }
.lede em { color: var(--glow); }

section { position: relative; padding: clamp(64px, 10vw, 120px) 0; }
.alt { background: var(--brew); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 26px; }
.section-head p { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .split.flip > :first-child { order: 2; } }
.framed { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); width: 100%; }

/* ---- reveal on scroll ---- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ==== the studio hero: hills at dawn, mist, a steaming kulhad ==== */
.hills { position: relative; min-height: max(640px, 100svh); overflow: hidden; isolation: isolate; display: grid; align-items: end; background: #1d1830; }
.hills svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hills .layer { will-change: transform; }
.hills canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hills .wrap { padding-top: 140px; padding-bottom: clamp(44px, 9vh, 96px); position: relative; }
.hills .copy { max-width: 620px; }
.title-studio { font: 500 clamp(2.5rem, 7.2vw, 5.2rem)/1.02 var(--serif); letter-spacing: .01em; margin: 0; text-shadow: 0 4px 30px rgba(10, 6, 4, .55); }
.title-studio .amp { font-style: italic; color: var(--turmeric); }
.hero-logo { width: clamp(84px, 11vw, 120px); margin-bottom: 20px; border-radius: 50%; box-shadow: 0 10px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(210, 122, 73, .4); }
.mist-band { animation: drift 38s linear infinite alternate; }
.mist-band.slow { animation-duration: 60s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }

/* the kulhad and its steam (used in the hero and the "pour a chai" box) */
.kulhad-wrap { position: absolute; right: clamp(12px, 6vw, 110px); bottom: clamp(30px, 7vh, 80px); width: clamp(150px, 20vw, 260px); z-index: 1; }
.kulhad-wrap .hint { position: absolute; left: -18%; top: -16%; transform: rotate(-8deg); font: 400 1.45rem/1 var(--hand); color: var(--cream); opacity: .85; white-space: nowrap; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
@media (max-width: 720px) { .kulhad-wrap { position: relative; right: auto; bottom: auto; width: 140px; margin: 28px 0 0 auto; } .kulhad-wrap .hint { display: none; } }
.steam path { fill: none; stroke: rgba(246, 235, 217, .55); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 60 140; animation: steam 4.2s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.3s; stroke-width: 5; }
.steam path:nth-child(3) { animation-delay: 2.6s; stroke-width: 4; }
@keyframes steam { 0% { stroke-dashoffset: 200; opacity: 0; transform: translateY(14px); } 25% { opacity: .9; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-26px); } }

/* ---- the recipe ---- */
.recipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.recipe li { position: relative; background: linear-gradient(180deg, var(--panel), var(--brew-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; transform-style: preserve-3d; transition: border-color .3s, box-shadow .3s; }
.recipe li:hover { border-color: rgba(210, 122, 73, .7); box-shadow: 0 24px 50px -28px rgba(210, 122, 73, .6); }
.recipe .ico { width: 54px; height: 54px; margin-bottom: 14px; }
.recipe .qty { position: absolute; top: 18px; right: 20px; font: 400 1.3rem/1 var(--hand); color: var(--turmeric); transform: rotate(-4deg); }
.recipe p { color: var(--milk); margin: 0; font-size: 1rem; }
.recipe-note { margin-top: 24px; font: 400 1.5rem/1.2 var(--hand); color: var(--milk-2); }

/* ---- the game on the stove ---- */
.feature-game { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); background: var(--night); text-decoration: none; color: inherit; position: relative; transform-style: preserve-3d; transition: border-color .3s, box-shadow .3s; }
.feature-game:hover { border-color: rgba(244, 187, 106, .6); color: inherit; box-shadow: 0 40px 80px -40px rgba(244, 187, 106, .45); }
@media (min-width: 860px) { .feature-game { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.feature-game .art { position: relative; min-height: 300px; overflow: hidden; }
.feature-game .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-game:hover .art img { transform: scale(1.05); }
.feature-game .body { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; background: radial-gradient(120% 90% at 100% 0%, rgba(244, 187, 106, .12), transparent 60%), var(--night); }
.feature-game .name { font: 400 clamp(2rem, 4.4vw, 2.9rem)/1.05 var(--serif); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; color: var(--cream); }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--turmeric); border: 1px solid rgba(227, 167, 62, .5); border-radius: 999px; padding: 7px 12px 7px 10px; margin-bottom: 16px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--turmeric); box-shadow: 0 0 0 0 rgba(227, 167, 62, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 167, 62, .7); } 70% { box-shadow: 0 0 0 10px rgba(227, 167, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 167, 62, 0); } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tags li { font: 600 .7rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--milk); border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: rgba(255, 255, 255, .02); }

/* ---- pour a chai ---- */
.pour { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: center; background: radial-gradient(90% 120% at 15% 100%, rgba(178, 93, 50, .28), transparent 60%), linear-gradient(180deg, var(--panel), var(--brew)); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 5vw, 56px); overflow: hidden; }
@media (min-width: 820px) { .pour { grid-template-columns: 260px minmax(0, 1fr); } }
.pour-cup { position: relative; width: 220px; max-width: 70vw; margin: 0 auto; cursor: pointer; border: 0; background: none; padding: 0; }
.pour-cup svg { width: 100%; height: auto; overflow: visible; transition: transform .4s var(--ease); }
.pour-cup:hover svg { transform: rotate(-3deg) translateY(-4px); }
.pour-cup .surface { transform: translateY(26px); transition: transform 1.5s .25s var(--ease); }
.pour.poured .pour-cup .surface { transform: translateY(0); }
.pour-cup .stream { opacity: 0; transform-origin: 100px -60px; }
.pour.poured .pour-cup .stream { animation: stream 1.6s ease-out; }
@keyframes stream { 0% { opacity: 0; transform: scaleY(0); } 15% { opacity: 1; transform: scaleY(1); } 75% { opacity: 1; transform: scaleY(1) translateY(0); } 100% { opacity: 0; transform: scaleY(.2) translateY(140px); } }
.pour-cup .steam { opacity: 0; transition: opacity .8s 1.2s; }
.pour.poured .pour-cup .steam { opacity: 1; }
.pour .count { font: 400 1.5rem/1.2 var(--hand); color: var(--turmeric); min-height: 1.8em; margin: 6px 0 0; }
.pour .kofi-cta { transition: transform .4s var(--ease), box-shadow .4s; }
.pour.poured .kofi-cta { transform: scale(1.04); }

/* ---- channels ---- */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.channels a { display: flex; gap: 14px; align-items: center; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--cream); text-decoration: none; transition: border-color .25s, transform .25s var(--ease), background .25s; }
.channels a:hover { border-color: var(--kulhad-hi); color: var(--cream); transform: translateY(-3px); background: var(--panel-2); }
.channels svg { width: 28px; height: 28px; flex: none; fill: var(--turmeric); }
.channels b { display: block; font: 600 1rem/1.2 var(--sans); }
.channels span { font-size: .88rem; color: var(--muted); }

/* ==== The Last Atlas: night village, rain, the brass instrument ==== */
.hero { position: relative; min-height: max(620px, 100svh); display: grid; align-items: end; overflow: hidden; isolation: isolate; background: var(--night); }
.hero > img.bg { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; z-index: -3; will-change: transform; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 13, 27, .25) 0%, rgba(10, 13, 27, .35) 45%, rgba(17, 11, 7, .97) 100%); }
.hero .wrap { padding-top: 140px; padding-bottom: clamp(44px, 9vh, 96px); position: relative; }
.hero .fog { position: absolute; left: -10%; right: -10%; bottom: 8%; height: 40%; z-index: -1; background: radial-gradient(60% 50% at 30% 70%, rgba(199, 209, 203, .16), transparent 70%), radial-gradient(50% 45% at 75% 60%, rgba(199, 209, 203, .12), transparent 70%); animation: drift 30s ease-in-out infinite alternate; pointer-events: none; }
.title-atlas { position: relative; display: inline-block; font: 400 clamp(2.7rem, 9vw, 6.6rem)/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; margin: 0; color: var(--cream); text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.title-atlas .t { display: inline-block; animation: remember 2.4s .3s var(--ease) both; }
@keyframes remember { 0% { opacity: .25; filter: blur(6px); letter-spacing: .3em; } 100% { opacity: 1; filter: none; letter-spacing: .14em; } }
.title-atlas .scratch { position: absolute; left: -2%; top: 18%; width: 104%; height: 64%; overflow: visible; pointer-events: none; }
.title-atlas .scratch path { fill: none; stroke: var(--glow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 0; opacity: .9; animation: unscratch 2s .6s var(--ease) forwards; vector-effect: non-scaling-stroke; }
@keyframes unscratch { 70% { opacity: .9; } 100% { stroke-dashoffset: 1400; opacity: 0; } }

.instrument { position: absolute; right: clamp(14px, 6vw, 110px); top: clamp(84px, 12vh, 140px); width: clamp(110px, 12vw, 168px); z-index: 1; }
@media (max-width: 1100px) { .instrument figcaption { display: none; } }
.instrument svg { width: 100%; height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55)); }
.instrument .needle { transform-origin: 100px 100px; transition: transform .25s linear; }
.instrument figcaption { font: 400 1.25rem/1.15 var(--hand); color: var(--milk); text-align: center; margin-top: 8px; transform: rotate(-3deg); }
@media (max-width: 720px) { .instrument { top: 124px; right: 14px; width: 88px; } }

/* ---- trailer: a still until it is clicked, so nothing loads from YouTube before then ---- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; transition: transform 1.2s var(--ease), filter .6s; }
.video:hover img { transform: scale(1.03); filter: brightness(1.12); }
.video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: none; color: var(--cream); }
.video button::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); }
.video .play { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; background: rgba(210, 122, 73, .94); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(244, 187, 106, .55), 0 10px 40px rgba(0, 0, 0, .55); animation: ring 2.6s infinite; transition: transform .25s var(--ease); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(244, 187, 106, .5), 0 10px 40px rgba(0, 0, 0, .55); } 80% { box-shadow: 0 0 0 26px rgba(244, 187, 106, 0), 0 10px 40px rgba(0, 0, 0, .55); } 100% { box-shadow: 0 0 0 0 rgba(244, 187, 106, 0), 0 10px 40px rgba(0, 0, 0, .55); } }
.video button:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video .play svg { width: 32px; height: 32px; margin-left: 5px; fill: #fff5e8; }
.video .label { position: absolute; left: 20px; bottom: 18px; z-index: 2; font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 8px #000; }
.video-note { font-size: .86rem; color: var(--muted); margin-top: 12px; }

/* ---- story ---- */
.story-quote { font: italic 400 clamp(1.4rem, 3vw, 2rem)/1.35 var(--serif); color: var(--cream); border-left: 2px solid var(--kulhad-hi); padding: 4px 0 4px 22px; margin: 0 0 26px; max-width: 30ch; }

/* ---- the Atlas of Orthea ---- */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@media (min-width: 980px) { .atlas { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.atlas-sheet { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid #5a4630; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 0 80px rgba(80, 50, 20, .35); background: var(--paper); }
.atlas-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.atlas-scroll svg { width: 100%; min-width: 720px; height: auto; }
.atlas-hint { position: absolute; right: 12px; bottom: 10px; font: 400 1.15rem/1 var(--hand); color: #6b4f33; pointer-events: none; }
.atlas svg .paper { fill: url(#paperGrad); }
.atlas svg .road { fill: none; stroke: #4a3422; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease), stroke .4s, opacity .4s; }
.atlas svg .journey { fill: none; stroke: #6d5136; stroke-width: 1.4; stroke-dasharray: 5 6; opacity: 0; transition: opacity 1s 1.2s, stroke .4s; }
.atlas.drawn svg .road { stroke-dashoffset: 0; }
.atlas.drawn svg .journey { opacity: .9; }
.atlas svg .place circle { fill: #5a3d25; stroke: var(--paper); stroke-width: 2; transition: fill .3s, r .3s; }
.atlas svg .place text { font: italic 400 13px var(--serif); fill: #4a3422; transition: fill .3s; }
.atlas svg .place .strike { stroke: #8a5a34; stroke-width: 1.3; fill: none; stroke-dasharray: 80; stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease), opacity .6s; }
.atlas svg .place.remembered .strike, .atlas svg .place:hover .strike { stroke-dashoffset: 80; opacity: 0; }
.atlas svg .place:hover circle { fill: var(--kulhad); }
.atlas svg .region { cursor: pointer; }
.atlas svg .region .hit { fill: transparent; stroke: transparent; stroke-width: 1.5; rx: 18; transition: fill .3s, stroke .3s; }
.atlas svg .region:hover .hit, .atlas svg .region:focus .hit { fill: rgba(178, 93, 50, .07); stroke: rgba(178, 93, 50, .35); stroke-dasharray: 4 5; }
.atlas svg .region.on .hit { fill: rgba(143, 230, 242, .1); stroke: rgba(30, 120, 140, .55); stroke-dasharray: none; }
.atlas svg .region .rname { font: 600 15px var(--sans); letter-spacing: 3px; fill: #3a2717; transition: fill .3s; }
.atlas svg .region.on .rname { fill: #155a69; }
.atlas svg .region.on .place circle { fill: #1f7f92; }
.atlas svg .region:focus { outline: none; }
.atlas svg .compass-rose { opacity: .55; }
.atlas-panel { background: linear-gradient(180deg, var(--night-2), var(--night)); border: 1px solid #263055; border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; }
.atlas-panel figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.atlas-panel img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 6s linear; }
.atlas-panel img.swap { opacity: 0; }
.atlas-panel:hover img { transform: scale(1.06); }
.atlas-panel .body { padding: 22px 24px 26px; }
.atlas-panel .act { font: 600 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--survey); margin: 0 0 10px; }
.atlas-panel h3 { font: 400 1.6rem/1.15 var(--serif); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.atlas-panel p { color: var(--milk); margin: 0; font-size: 1rem; }
.atlas-panel .places { margin: 14px 0 0; font: italic 400 1rem/1.5 var(--serif); color: var(--milk-2); }
.region-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.region-chips button { border: 1px solid var(--line); background: var(--panel); color: var(--milk); border-radius: 999px; padding: 8px 13px; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.region-chips button:hover { border-color: var(--kulhad-hi); color: var(--cream); }
.region-chips button[aria-pressed="true"] { background: #15394a; border-color: #2f7f93; color: #dff8fc; }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.features li { position: relative; background: linear-gradient(180deg, var(--panel), var(--brew-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px; color: var(--milk); transition: border-color .3s, transform .3s var(--ease); overflow: hidden; }
.features li::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(244, 187, 106, .14), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.features li:hover { border-color: rgba(244, 187, 106, .45); transform: translateY(-3px); }
.features li:hover::before { opacity: 1; }
.features li svg { width: 34px; height: 34px; margin-bottom: 12px; stroke: var(--turmeric); fill: none; stroke-width: 1.6; }
.features li strong { display: block; color: var(--cream); font: 600 1.05rem/1.3 var(--sans); margin-bottom: 6px; }

/* ---- carousel ---- */
.carousel { position: relative; }
.carousel ul { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 18px; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.carousel li { flex: 0 0 min(86%, 620px); scroll-snap-align: start; }
.carousel a { display: block; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.carousel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.carousel a:hover img { transform: scale(1.04); }
.carousel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font: 400 1.1rem/1.2 var(--serif); color: var(--cream); }
.carousel .nav-btns { display: flex; gap: 10px; }
.carousel .nav-btns button, .round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.carousel .nav-btns button:hover { border-color: var(--kulhad-hi); background: var(--panel-2); }
.carousel .nav-btns svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(8, 5, 3, .93); backdrop-filter: blur(4px); }
dialog.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 8px; }
dialog.lightbox p { text-align: center; color: var(--milk); margin: 12px auto 0; font: 400 1.15rem/1.3 var(--serif); }
dialog.lightbox .close { position: fixed; top: 14px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--cream); font-size: 1.5rem; cursor: pointer; }
dialog.lightbox .prev, dialog.lightbox .next { position: fixed; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(35, 24, 16, .85); color: var(--cream); font-size: 1.4rem; cursor: pointer; }
dialog.lightbox .prev { left: 14px; } dialog.lightbox .next { right: 14px; }

/* ---- facts and the press kit ---- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.facts div { background: var(--panel); padding: 18px; }
.facts dt { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font: 500 1.03rem/1.35 var(--sans); color: var(--cream); }
.ticks { list-style: none; padding: 0; margin: 0 0 6px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--milk); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--turmeric); }
table.sheet { width: 100%; border-collapse: collapse; margin: 22px 0 0; font-size: 1rem; }
table.sheet th, table.sheet td { text-align: left; vertical-align: top; padding: 13px 14px; border-bottom: 1px solid var(--line); }
table.sheet th { width: 32%; color: var(--muted); font: 600 .76rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 560px) { table.sheet th, table.sheet td { display: block; width: 100%; padding: 4px 0; border: 0; } table.sheet tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); } }
.download { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.note { border-left: 3px solid var(--kulhad-hi); background: var(--panel); padding: 15px 18px; border-radius: 0 10px 10px 0; color: var(--milk); margin: 22px 0 0; max-width: 74ch; }
.credits { columns: 2 280px; column-gap: 34px; color: var(--milk); font-size: .96rem; padding-left: 1.1em; }
.credits li { break-inside: avoid; margin-bottom: 7px; }
.copyable { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px; margin: 0 0 14px; }
.copyable p { color: var(--milk); margin: 0; max-width: none; }
.copyable .lbl { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.copy-btn { border: 1px solid var(--line); background: var(--brew); color: var(--milk); border-radius: 999px; padding: 7px 12px; font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s; }
.copy-btn:hover { border-color: var(--kulhad-hi); color: var(--cream); }
.copy-btn.done { border-color: var(--cardamom); color: #e6f0cf; }
.press-hero { padding-top: clamp(120px, 16vw, 170px); background: radial-gradient(80% 120% at 85% 0%, rgba(178, 93, 50, .22), transparent 60%), var(--roast); overflow: hidden; }
.press-hero .steam-deco { position: absolute; right: 6%; top: 70px; width: 120px; opacity: .6; }
@media (max-width: 720px) { .press-hero .steam-deco { display: none; } }

/* things still to be filled in by the owner: plain to see in the preview, removed before publishing */
.todo { outline: 1px dashed var(--glow); outline-offset: 2px; color: var(--glow); border-radius: 3px; padding: 0 3px; }

/* ---- footer ---- */
.site-foot { position: relative; border-top: 1px solid var(--line); padding: 54px 0 60px; color: var(--muted); font-size: .92rem; background: var(--roast); }
.site-foot .wrap { display: grid; gap: 22px; }
@media (min-width: 780px) { .site-foot .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-foot nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--milk); text-decoration: none; }
.site-foot a:hover { color: var(--cream); }
.site-foot p { margin: 0 0 6px; max-width: 60ch; }
.site-foot .sign { font: 400 1.5rem/1 var(--hand); color: var(--turmeric); margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .title-atlas .scratch { display: none; }
}
