/* Path to Asteria, v5. Night paper, watercolor edges, one living sky.
   Palette: night #050508 · ink #141a36 · indigo #2a2f63 · violet #8a76c8 · teal (the cold rim) #8fe0d6
            lamp (the only warm note) #f5c56b · bone (gouache white) #efe8d8 · mist #aab2cc
   Type: Cormorant SC (the name, labels) · Cormorant Garamond (headings, the lyrical lines) · Nunito Sans (reading) */

@font-face { font-family: "Cormorant SC"; font-weight: 600; font-display: swap; src: url(../assets/fonts/cormorant-sc-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant SC"; font-weight: 700; font-display: swap; src: url(../assets/fonts/cormorant-sc-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url(../assets/fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url(../assets/fonts/cinzel-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 400; font-display: swap; src: url(../assets/fonts/cinzel-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(../assets/fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(../assets/fonts/nunito-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url(../assets/fonts/nunito-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(../assets/fonts/nunito-sans-latin-700-normal.woff2) format("woff2"); }

@property --bloom { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  --night: #050508;
  --night-2: #09090e;
  --ink: #141a36;
  --indigo: #2a2f63;
  --violet: #8a76c8;
  --teal: #8fe0d6;
  --teal-deep: #2b6d70;
  --sky: #93b6ff;
  --moss: #9fcb8c;
  --ember: #f09a6b;
  --lamp: #f5c56b;
  --lamp-hot: #ffe6ad;
  --bone: #efe8d8;
  --mist: #aab2cc;
  --mist-2: #7f87a4;
  --caps: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* a faint field of stars behind the whole page, two scales so the tile never shows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url(../assets/fx/stars.webp) 0 0 / 1024px repeat,
    url(../assets/fx/stars.webp) 317px 529px / 620px repeat;
  opacity: .55;
}
/* the tooth of the paper over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: url(../assets/fx/paper.webp) repeat;
  background-size: 384px;
  mix-blend-mode: overlay;
  opacity: .16;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(143, 224, 214, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--bone); color: var(--night); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.eyebrow {
  font: 700 1rem/1 var(--caps);
  letter-spacing: .34em;
  text-transform: lowercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}
h2 {
  font: 700 clamp(2.1rem, 4.1vw, 3.7rem)/1.08 "Cinzel", var(--caps);
  letter-spacing: .03em;
  color: var(--bone);
  text-wrap: balance;
}
.lede {
  max-width: 62ch;
  margin: 1.25rem auto 0;
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  color: var(--mist);
  text-wrap: pretty;
}
.sec-head { max-width: 980px; margin: 0 auto clamp(44px, 6vw, 80px); text-align: center; }

/* ---------- watercolor edges ---------- */
.wc {
  --wash: url(../assets/fx/wash-wide.webp);
  -webkit-mask: var(--wash) center / 100% 100% no-repeat;
  mask: var(--wash) center / 100% 100% no-repeat;
}
.wc-ui { --wash: url(../assets/fx/wash-ui.webp); }
/* paint spreading on first sight: the frame's own wash, intersected with a ragged blot that grows */
.js .reveal-bloom {
  -webkit-mask-image: var(--wash), url(../assets/fx/blot.webp);
  mask-image: var(--wash), url(../assets/fx/blot.webp);
  -webkit-mask-size: 100% 100%, 0% 0%;
  mask-size: 100% 100%, 0% 0%;
  -webkit-mask-position: center, 50% 55%;
  mask-position: center, 50% 55%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: -webkit-mask-size 2.2s var(--ease), mask-size 2.2s var(--ease);
}
.js .reveal-bloom.in { -webkit-mask-size: 100% 100%, 290% 290%; mask-size: 100% 100%, 290% 290%; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: 1.05em 1.75em 1.05em 1.5em;
  font: 700 1.02rem/1 var(--sans);
  letter-spacing: .015em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask: url(../assets/fx/btn.webp) center / 100% 100% no-repeat;
  mask: url(../assets/fx/btn.webp) center / 100% 100% no-repeat;
  transition: filter .35s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: -40% -18%;
  z-index: -2;
  border-radius: 50%;
  filter: blur(16px);
  opacity: .55;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.btn-steam { color: #23180a; }
.btn-steam::before { background: radial-gradient(130% 160% at 28% 18%, var(--lamp-hot) 0%, var(--lamp) 42%, #d79a3c 78%, #b97a28 100%); }
.btn-steam::after { background: radial-gradient(closest-side, rgba(245, 197, 107, .55), transparent); }
.btn:hover::before, .btn:focus-visible::before { filter: brightness(1.1) saturate(1.05); }
.btn:hover::after, .btn:focus-visible::after { opacity: 1; transform: scale(1.06); }
.btn-sm { padding: .8em 1.25em .8em 1.05em; font-size: .9rem; }
/* the Watch button: Wishlist's painted shape in night ink, a cool glow */
.btn-watch { color: #f4eee2; }
.btn-watch::before { background: radial-gradient(130% 160% at 28% 18%, #4a5288 0%, #2c3263 45%, #1b1f42 100%); }
.btn-watch::after { background: radial-gradient(closest-side, rgba(143, 224, 214, .32), transparent); }
.btn-watch svg { width: 1.1em; height: 1.1em; }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding: .4em .2em;
  color: var(--bone);
  text-decoration: none;
  font: 700 1.12rem/1 var(--caps);
  letter-spacing: .14em;
  text-transform: lowercase;
}
.ring {
  display: grid;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  border: 1px solid rgba(239, 232, 216, .45);
  box-shadow: 0 0 0 0 rgba(143, 224, 214, 0);
  transition: border-color .3s, box-shadow .4s var(--ease), background .3s;
}
.ring svg { width: 1.05em; height: 1.05em; }
.btn-quiet:hover .ring, .btn-quiet:focus-visible .ring { border-color: var(--teal); background: rgba(143, 224, 214, .08); box-shadow: 0 0 22px 2px rgba(143, 224, 214, .22); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 14px var(--gut);
  transition: background .5s, backdrop-filter .5s, padding .4s var(--ease);
}
.nav.solid { background: rgba(5, 5, 8, .74); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); padding-block: 10px; }
.nav-mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.2rem/1 var(--caps); letter-spacing: .08em; }
.nav-star { width: 18px; height: 18px; color: var(--lamp); filter: drop-shadow(0 0 6px rgba(245, 197, 107, .7)); }
.nav-links { display: flex; gap: 1.9rem; margin-left: auto; }
.nav-links a { text-decoration: none; font: 700 1.02rem/1 var(--caps); letter-spacing: .12em; text-transform: lowercase; color: var(--mist); transition: color .25s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--bone); }
.nav .btn { margin-left: .5rem; }

/* ---------- I. hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--night);
}
.hero-art {
  position: absolute;
  inset: 0 0 -2px 0;
  -webkit-mask: url(../assets/fx/foot.png) bottom / 100% 150px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 149px) no-repeat;
  mask: url(../assets/fx/foot.png) bottom / 100% 150px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 149px) no-repeat;
}
.hero-img, .hero-gl, .hero-motes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}
.hero-img { transform-origin: 60% 30%; }
.js .hero-img { animation: hero-in 2.6s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.06); filter: blur(6px) brightness(.6); } to { opacity: 1; transform: none; filter: none; } }
.hero-gl { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-gl.on { opacity: 1; }
.hero-motes { pointer-events: none; }
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 46% at 22% 52%, rgba(6, 8, 18, .62), rgba(6, 8, 18, 0) 100%),
    linear-gradient(to top, rgba(5, 5, 8, .85) 0%, rgba(5, 5, 8, 0) 22%),
    linear-gradient(to bottom, rgba(5, 5, 8, .55), rgba(5, 5, 8, 0) 16%);
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-56%);
  width: min(900px, calc(100% - 2 * var(--gut)));
  margin: 0 auto;
  text-align: center;
}
.hero-copy .cta-row { justify-content: center; }
.hero-copy::before { content: ""; position: absolute; inset: -14% -18%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(5, 5, 8, .62), rgba(5, 5, 8, .32) 55%, rgba(5, 5, 8, 0)); }
.kicker {
  display: inline-block;
  font: 700 clamp(.78rem, .9vw, .92rem)/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f1ebdd;
  text-shadow: 0 1px 2px #000, 0 0 12px #05060d, 0 0 26px #05060d;
}
/* the game's own title lockup (ui/src/front/Title.tsx): Cinzel, "Path to" small in bone over a big gold ASTERIA, the
   subtitle spaced wide beneath, a diamond flourish; left-aligned like the title screen */
.wordmark { display: block; margin: 0 0 1.5rem; font-weight: 400; line-height: 1; }
.hero-copy .kicker { display: block; margin-top: 1.1rem; font-size: clamp(.72rem, .8vw, .82rem); opacity: .9; }
.wm-path, .wm-asteria, .wm-sub { display: block; font-family: "Cinzel", var(--caps); font-weight: 400; text-transform: uppercase; }
.wm-path {
  margin-left: .1em;
  font-size: clamp(1.1rem, 2.3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .36em;
  background: linear-gradient(178deg, #f4e7c3 0%, #dfc48d 55%, #c9a96a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)) drop-shadow(0 0 16px rgba(5, 6, 13, .9));
}
.wm-asteria {
  margin: .02em 0 0 -.04em;
  font-size: clamp(4.1rem, 9vw, 9.6rem);
  line-height: .96;
  letter-spacing: .06em;
  background:
    url(../assets/fx/paper.webp) 0 0 / 220px,
    linear-gradient(178deg, #f4e7c3 0%, #dfc48d 48%, #c9a96a 100%);
  background-blend-mode: soft-light, normal;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .5)) drop-shadow(0 0 28px rgba(5, 6, 13, .8));
}
.wm-sub {
  margin: .5em 0 0 .12em;
  font-size: clamp(.8rem, 1.55vw, 1.6rem);
  letter-spacing: .48em;
  color: #e6decb;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 0 16px rgba(5, 6, 13, .9);
}
.wm-flourish {
  display: block;
  width: min(320px, 55%);
  height: 10px;
  margin-top: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1 9 5 5 9 1 5z' fill='none' stroke='%23DFC48D' stroke-width='1.2'/%3E%3C/svg%3E") left center / 10px 10px no-repeat,
    linear-gradient(90deg, rgba(223, 196, 141, .85), rgba(223, 196, 141, 0)) 18px center / calc(100% - 18px) 1px no-repeat;
}
.hero-line {
  font: italic 500 clamp(1.25rem, 1.75vw, 1.6rem)/1.38 var(--serif);
  color: var(--bone);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
  text-wrap: balance;
}
@media (min-width: 900px) { .hero-line { white-space: nowrap; } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.8rem; margin-top: 2rem; }
.hero .reveal:nth-child(1) { --d: .5s; }
.hero .reveal:nth-child(2) { --d: .75s; }
.hero .reveal:nth-child(3) { --d: 1.05s; }
.hero .reveal:nth-child(4) { --d: 1.3s; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(239, 232, 216, .35);
  border-radius: 13px;
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; border-radius: 1px; background: var(--bone); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ---------- III. film ---------- */
.film { padding: 0 var(--gut) clamp(90px, 12vw, 170px); }
.film-frame {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #08080c;
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(closest-side, rgba(5, 5, 8, .35), rgba(5, 5, 8, 0));
  color: var(--bone);
  cursor: pointer;
  transition: opacity .5s;
}
.film-play .ring { width: 88px; height: 88px; font-size: 1.6rem; background: rgba(5, 5, 8, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.film-play:hover .ring { border-color: var(--teal); box-shadow: 0 0 34px 4px rgba(143, 224, 214, .3); }
.film.playing .film-play { opacity: 0; }
.film.playing .film-play:hover, .film.playing .film-play:focus-visible { opacity: 1; }
.film-play:focus-visible { outline: none; }
.film-play:focus-visible .ring { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal); }
.caption { margin-top: 1.1rem; text-align: center; font: italic 500 1.08rem/1.4 var(--serif); color: var(--mist-2); }

/* ---------- IV. battles ---------- */
.battles { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(100px, 13vw, 190px); }
.battles::before {
  content: "";
  position: absolute;
  inset: 8% -10% 0;
  z-index: -1;
  background: none;
  opacity: 0;
  -webkit-mask: radial-gradient(60% 50% at 30% 45%, #000 20%, transparent 75%);
  mask: radial-gradient(60% 50% at 30% 45%, #000 20%, transparent 75%);
}
/* the battle shots: one large, three beneath */
.battle-main { max-width: 1300px; margin: 0 auto; aspect-ratio: 16 / 9; }
.battle-row { max-width: 1300px; margin: clamp(14px, 1.8vw, 26px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.battle-row li { aspect-ratio: 16 / 9; }
.battle-main img, .battle-row img { width: 100%; height: 100%; object-fit: cover; }

/* the places: one large, the rest beneath */
.explore { position: relative; padding: clamp(90px, 12vw, 170px) var(--gut); }
.explore-main { position: relative; max-width: 1300px; margin: 0 auto; aspect-ratio: 16 / 9; }
.explore-main figcaption { position: absolute; left: 6%; bottom: 8%; font: 700 clamp(1.1rem, 1.6vw, 1.5rem)/1 var(--caps); letter-spacing: .06em; color: var(--bone); text-shadow: 0 1px 2px #000, 0 0 18px #070912; }
.explore-row { max-width: 1300px; margin: clamp(14px, 1.8vw, 26px) auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.explore-row .wc { aspect-ratio: 16 / 9; }
.explore-row p { margin-top: .6rem; text-align: center; font: 700 1.05rem/1.2 var(--caps); letter-spacing: .06em; color: var(--mist); }
.explore-main img, .explore-row img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .explore-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .battle-row, .explore-row { grid-template-columns: 1fr; } }

/* ---------- V. jobs ---------- */
.jobs {
  position: relative;
  padding: clamp(90px, 12vw, 170px) var(--gut);
  isolation: isolate;
}
.jobs::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: none;
  opacity: 0;
  -webkit-mask: radial-gradient(75% 60% at 50% 55%, #000 25%, transparent 78%);
  mask: radial-gradient(75% 60% at 50% 55%, #000 25%, transparent 78%);
  transform: scaleX(-1);
}

/* ---------- VII. fenhold ---------- */
.fenhold { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 12vw, 170px); }
.rain-stage {
  position: relative;
  height: min(108vh, 72vw);
  min-height: 560px;
  overflow: hidden;
  -webkit-mask:
    url(../assets/fx/head.png) top / 100% 160px no-repeat,
    linear-gradient(#000, #000) center / 100% calc(100% - 318px) no-repeat,
    url(../assets/fx/foot.png) bottom / 100% 160px no-repeat;
  mask:
    url(../assets/fx/head.png) top / 100% 160px no-repeat,
    linear-gradient(#000, #000) center / 100% calc(100% - 318px) no-repeat,
    url(../assets/fx/foot.png) bottom / 100% 160px no-repeat;
}
.rain-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 5, 8, .86) 0%, rgba(5, 5, 8, .55) 32%, rgba(5, 5, 8, 0) 62%);
}
.rain-img, .rain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rain { z-index: 1; pointer-events: none; }
.fen-copy {
  position: absolute;
  z-index: 2;
  left: var(--gut);
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, calc(100% - 2 * var(--gut)));
}
.fen-copy p:not(.eyebrow) { margin-top: 1.2rem; font-size: clamp(1.06rem, 1.35vw, 1.22rem); color: var(--mist); text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.fen-copy h2 { text-shadow: 0 2px 22px rgba(0, 0, 0, .7); }

/* ---------- X. the road ---------- */
.road {
  position: relative;
  min-height: min(112vh, 76vw);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gut) clamp(70px, 9vw, 130px);
}
.road-art {
  position: absolute;
  inset: 0;
  -webkit-mask: url(../assets/fx/head.png) top / 100% 200px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 199px) no-repeat;
  mask: url(../assets/fx/head.png) top / 100% 200px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 199px) no-repeat;
}
.road-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.road-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 8, .96) 0%, rgba(5, 5, 8, .6) 30%, rgba(5, 5, 8, 0) 58%),
    radial-gradient(60% 50% at 18% 85%, rgba(5, 5, 8, .7), transparent 70%);
}
.road-copy { position: relative; width: min(820px, 100%); }
.road-copy > p { margin-top: 1rem; font-size: clamp(1.06rem, 1.35vw, 1.22rem); color: var(--bone); text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.signup { margin-top: 2.4rem; }
.signup label { display: block; font: italic 500 1.12rem/1.3 var(--serif); color: var(--mist); margin-bottom: .7rem; }
.signup-row { display: flex; max-width: 460px; border-bottom: 1px solid rgba(239, 232, 216, .35); transition: border-color .3s; }
.signup-row:focus-within { border-color: var(--teal); }
.signup input {
  flex: 1;
  min-width: 0;
  padding: .75rem .1rem;
  border: 0;
  background: transparent;
  color: var(--bone);
  font: 400 1.05rem var(--sans);
}
.signup input::placeholder { color: var(--mist-2); }
.signup input:focus { outline: none; }
.signup button {
  border: 0;
  background: none;
  color: var(--teal);
  font: 700 1.05rem/1 var(--caps);
  letter-spacing: .14em;
  text-transform: lowercase;
  padding: 0 .2rem 0 1rem;
  cursor: pointer;
}
.signup button:hover { color: var(--bone); }
.note { min-height: 1.5em; margin-top: .6rem; font-size: .95rem; color: var(--mist-2); }

/* ---------- footer ---------- */
.foot { padding: 70px var(--gut) 60px; text-align: center; color: var(--mist-2); font-size: .95rem; }
.foot-mark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--bone); font: 700 1.4rem/1 var(--caps); letter-spacing: .08em; }
.foot-mark svg { width: 18px; height: 18px; color: var(--lamp); }
.foot > p { margin-top: .8rem; }
.foot-links { display: flex; justify-content: center; gap: 1.6rem; }
.foot-links a { text-decoration: none; font: 700 1.02rem/1 var(--caps); letter-spacing: .14em; text-transform: lowercase; color: var(--mist); }
.foot-links a:hover { color: var(--bone); }
.foot-small { font-size: .85rem; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 760px) {
  .kicker { font-size: .78rem; letter-spacing: .16em; }
  .hero-copy { top: auto; bottom: 74px; transform: none; }
  .hero-line { font-size: 1.05rem; max-width: 30ch; margin-inline: auto; }
  .hero .cta-row { gap: .8rem; margin-top: 1.4rem; }
  .hero .cta-row .btn { min-width: 15.5rem; justify-content: center; }
  .hero-shade { background: linear-gradient(to top, rgba(5, 5, 8, .94) 0%, rgba(5, 5, 8, .55) 36%, rgba(5, 5, 8, 0) 62%), linear-gradient(to bottom, rgba(5, 5, 8, .5), rgba(5, 5, 8, 0) 16%); }
  .rain-stage { height: 128vw; min-height: 620px; }
  .rain-stage::after { background: linear-gradient(to top, rgba(5, 5, 8, .92) 0%, rgba(5, 5, 8, .5) 45%, rgba(5, 5, 8, .1) 75%); }
  .fen-copy { top: auto; bottom: 120px; transform: none; }
  .road { min-height: 0; padding-top: 62vw; }
  .road-art::after { background: linear-gradient(to top, rgba(5, 5, 8, .97) 0%, rgba(5, 5, 8, .92) 55%, rgba(5, 5, 8, 0) 80%); }
  .road-art img { object-position: 70% 40%; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- V. jobs: the job select ---------- */
.deck {
  display: flex;
  gap: clamp(6px, .7vw, 12px);
  height: clamp(480px, 44vw, 660px);
  max-width: 1440px;
  margin: 0 auto;
}
.card {
  --tint: var(--teal);
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: #0a0a10;
  -webkit-mask: url(../assets/fx/wash-tall.webp) center / 100% 100% no-repeat;
  mask: url(../assets/fx/wash-tall.webp) center / 100% 100% no-repeat;
  transition: flex-grow .8s var(--ease);
}
.card.open { flex-grow: 5.4; }
.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(.55) brightness(.5);
  transform: scale(1.08);
  transition: filter .8s var(--ease), transform 1.4s var(--ease);
}
.card:hover .card-art { filter: saturate(.8) brightness(.72); }
.card.open .card-art { filter: none; transform: none; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 5, 8, .95) 0%, rgba(5, 5, 8, .55) 26%, rgba(5, 5, 8, 0) 52%),
              linear-gradient(to top, color-mix(in oklab, var(--tint) 22%, transparent), transparent 40%);
}
.card-tab {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 0 30px;
  border: 0;
  background: none;
  color: var(--bone);
  cursor: pointer;
  transition: opacity .4s var(--ease);
}
.card-tab img { width: 40px; height: 40px; filter: drop-shadow(0 0 8px color-mix(in oklab, var(--tint) 70%, transparent)); }
.card-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 1.25rem/1 var(--caps); letter-spacing: .14em; text-shadow: 0 0 10px #05060d; }
.card.open .card-tab { opacity: 0; pointer-events: none; }
.card-tab:focus-visible { outline: none; }
.card:has(.card-tab:focus-visible)::before { content: ""; position: absolute; inset: 12px; z-index: 4; border: 2px solid var(--teal); border-radius: 4px; pointer-events: none; }
.card-body {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(22px, 2.4vw, 36px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  pointer-events: none;
  min-width: 300px;
}
.card.open .card-body { opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.card-sigil { width: 52px; height: 52px; margin-bottom: 12px; filter: drop-shadow(0 0 12px color-mix(in oklab, var(--tint) 80%, transparent)); }
.card-body h3 { font: 700 clamp(1.6rem, 2.2vw, 2.1rem)/1.05 "Cinzel", var(--caps); letter-spacing: .04em; }
.card-body p { margin-top: .55rem; max-width: 36ch; color: var(--bone); opacity: .88; text-shadow: 0 1px 8px #000; }
@media (max-width: 900px) {
  .deck { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; scrollbar-width: none; }
  .card, .card.open { flex: 0 0 76vw; height: 118vw; max-height: 620px; scroll-snap-align: center; }
  .card .card-art { filter: none; transform: none; }
  .card .card-tab { display: none; }
  .card .card-body { opacity: 1; transform: none; pointer-events: auto; min-width: 0; }
}

/* ---------- the job web under the deck ---------- */
.web {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  max-width: 1300px;
  margin: clamp(70px, 9vw, 130px) auto 0;
}
.web-shot { margin: 0; aspect-ratio: 1920 / 1608; }
.web-shot img { width: 100%; height: 100%; object-fit: cover; }
.web-copy h3 { font: 700 clamp(1.7rem, 2.6vw, 2.5rem)/1.12 "Cinzel", var(--caps); letter-spacing: .02em; color: var(--bone); text-wrap: balance; }
.web-copy p { margin-top: 1rem; font-size: clamp(1.06rem, 1.35vw, 1.22rem); color: var(--mist); }

/* ---------- V b. one world ---------- */
.living { position: relative; isolation: isolate; padding: clamp(100px, 13vw, 190px) var(--gut); }
.living::before {
  content: "";
  position: absolute;
  inset: 0 -10%;
  z-index: -1;
  background:
    url(../assets/art/wash_ember-1536.webp) center 6% / min(1500px, 150vw) auto no-repeat,
    url(../assets/art/wash_indigo-1536.webp) center 70% / min(1700px, 170vw) auto no-repeat;
  opacity: .6;
  -webkit-mask: radial-gradient(60% 55% at 50% 40%, #000 30%, transparent 85%);
  mask: radial-gradient(60% 55% at 50% 40%, #000 30%, transparent 85%);
}
.living .sec-head h2 { text-shadow: 0 0 30px rgba(5, 5, 8, .9), 0 2px 18px rgba(0, 0, 0, .6); }
.living .lede { color: var(--bone); opacity: .88; text-shadow: 0 0 12px #050508, 0 0 26px #050508; }
.living-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(24px, 3.4vw, 56px);
  max-width: 1260px;
  margin: 0 auto;
}
.tile h3 { margin-top: 1.2rem; font: 700 1.3rem/1.2 "Cinzel", var(--caps); letter-spacing: .04em; color: var(--bone); }
.tile p { margin-top: .55rem; max-width: 46ch; font-size: 1.08rem; color: var(--mist); }
@media (max-width: 900px) {
  .web, .living-grid { grid-template-columns: 1fr; }
}
