@font-face { font-family: "Grenze Gotisch"; src: url("../fonts/GrenzeGotisch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Grenze"; src: url("../fonts/Grenze-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Grenze"; src: url("../fonts/Grenze-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* The game's own colours (UITheme): teal-dark windows, a gold accent, rune teal, paper for reading. */
:root {
  --night: #070b0d;
  --deep: #0b1315;
  --window: #16211f;
  --window-edge: #6e8c87;
  --line: #1d302e;
  --ink: #f1ede0;
  --body: #c3cdc7;
  --muted: #8b9c97;
  --rune: #7fd0dc;
  --gold: #dfc06b;
  --gold-deep: #b8923c;
  --brass: #c58a3c;
  --paper: #ecdcb1;
  --paper-ink: #2e1f12;
  --display: "Grenze Gotisch", "Grenze", Georgia, serif;
  --text: "Grenze", Georgia, serif;
  --gutter: clamp(20px, 4vw, 56px);
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); }
body {
  margin: 0; background: var(--deep); color: var(--body);
  font: 400 clamp(18px, 1.25vw, 21px)/1.5 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--rune); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--paper-ink); border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

/* --- the bar ----------------------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  transition: background-color .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.bar.is-solid { background: rgba(9, 16, 18, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: rgba(127, 208, 220, .12); }
.wordmark { font: 700 30px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.wordmark--small { font-size: 24px; color: var(--muted); }
.bar__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-weight: 600; font-size: 18px; }
.bar__links a:not(.btn) { color: var(--body); text-decoration: none; opacity: .9; }
.bar__links a:not(.btn):hover { color: var(--ink); opacity: 1; }
@media (max-width: 560px) { .bar__links a:not(.btn) { display: none; } }

/* --- buttons ------------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 8px; cursor: pointer;
  font: 600 19px/1 var(--text); text-decoration: none; color: var(--ink);
  background: rgba(13, 22, 24, .55); border: 1px solid rgba(223, 192, 107, .5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(13, 22, 24, .75); }
.btn:active { transform: translateY(0); }
.btn--gold { background: linear-gradient(180deg, #ecd486, var(--gold) 55%, #c9a652); color: #24190a; border-color: #f3e2a6; box-shadow: 0 8px 28px -10px rgba(223, 192, 107, .65), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--gold:hover { background: linear-gradient(180deg, #f3dd96, #e6c976 55%, #d0ad58); box-shadow: 0 12px 34px -10px rgba(223, 192, 107, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 17px; }

/* --- a scene: a tall section with a stage pinned in it --------------------------------------- */
.scene { position: relative; height: calc(var(--span, 2) * 100vh); height: calc(var(--span, 2) * 100svh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--deep); }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.stage.is-live .stage__canvas { opacity: 1; }
.stage__fallback { position: absolute; inset: 0; background: linear-gradient(180deg, #0d2a36 0%, #2a5560 34%, #f0b96a 50%, #6f8f8d 52%, #14262a 100%); }
.stage.is-live .stage__fallback { opacity: 0; transition: opacity 1.2s ease; }
.stage__veil { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(7, 11, 13, .45) 0%, rgba(7, 11, 13, 0) 18%),
  linear-gradient(90deg, rgba(7, 11, 13, .5) 0%, rgba(7, 11, 13, .18) 36%, rgba(7, 11, 13, 0) 58%),
  linear-gradient(0deg, rgba(7, 11, 13, .35) 0%, rgba(7, 11, 13, 0) 22%);
  opacity: calc(1 - var(--p, 0) * 2.2);
}

/* --- the hero ------------------------------------------------------------------------------ */
.hero {
  position: absolute; left: var(--gutter); bottom: clamp(72px, 13vh, 150px); max-width: min(640px, calc(100% - 2 * var(--gutter)));
  opacity: calc(1 - var(--p, 0) * 5); transform: translate3d(0, calc(var(--p, 0) * -140px), 0);
  will-change: transform, opacity;
}
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 15px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: none; }
.hero__title { font: 700 clamp(84px, 13.5vw, 208px)/.86 var(--display); color: var(--ink); margin: 14px 0 20px -.04em; text-shadow: 0 6px 50px rgba(0, 0, 0, .45); }
.hero__pitch { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.42; color: var(--ink); max-width: 30em; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__hint { margin-top: 22px; font-size: 16px; color: var(--body); opacity: .75; }
@media (pointer: coarse) { .hero__hint { display: none; } }

.hero > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero > :nth-child(1) { animation-delay: .15s; } .hero > :nth-child(2) { animation-delay: .28s; }
.hero > :nth-child(3) { animation-delay: .46s; } .hero > :nth-child(4) { animation-delay: .6s; } .hero > :nth-child(5) { animation-delay: 1.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero > .hero__hint { animation-name: riseHint; }
@keyframes riseHint { to { opacity: .75; transform: none; } }

/* Lines a scene says as you scroll through it: one at a time, large, in the middle. */
.lines { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; padding: 0 var(--gutter); }
.line {
  grid-area: 1 / 1; max-width: 17em; text-align: center; text-wrap: balance;
  font: 700 clamp(40px, 5.6vw, 92px)/1.0 var(--display); color: var(--ink);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .4);
  opacity: var(--on, 0); transform: translate3d(0, calc((1 - var(--on, 0)) * 26px), 0);
  will-change: transform, opacity;
}
.line span { display: block; font: 600 clamp(18px, 1.5vw, 24px)/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .6em; }

.scrollcue { position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid rgba(241, 237, 224, .55); border-radius: 12px; opacity: calc(1 - var(--p, 0) * 12); }
.scrollcue i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* A line that sits low so the middle of the picture stays clear. */
.line--low { align-self: end; margin-bottom: clamp(60px, 12vh, 130px); font-size: clamp(34px, 4.4vw, 72px); }
.line--name { font-size: clamp(64px, 11vw, 190px); align-self: end; margin-bottom: clamp(50px, 9vh, 110px); }
.stage__fallback--day { background: linear-gradient(180deg, #2f78b8 0%, #bfe0ee 52%, #5f8f4a 53%, #2d4a2a 100%); }
.stage__fallback--dusk { background: linear-gradient(180deg, #1a1f3d 0%, #f08a4b 50%, #1d4a61 51%, #06202a 100%); }
.tally { position: absolute; right: var(--gutter); top: calc(var(--bar) + 18px); opacity: 0; font: 600 17px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.tally b { display: block; font: 700 clamp(44px, 5vw, 76px)/1 var(--display); letter-spacing: 0; color: var(--ink); text-transform: none; font-variant-numeric: tabular-nums; text-align: right; }

.tally--on { opacity: 1; }
/* A bar a scene fills as you scroll: trust, then holding on. */
.meter { position: absolute; right: var(--gutter); top: calc(var(--bar) + 22px); width: min(260px, 40vw); opacity: 0; }
.meter span { display: block; text-align: right; font: 600 17px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.meter b { display: block; height: 10px; border-radius: 5px; background: rgba(7, 11, 13, .55); border: 1px solid rgba(223, 192, 107, .5); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }

.stage__fallback--night { background: linear-gradient(180deg, #020409 0%, #0a1322 60%, #0f1c2c 100%); }
/* A label for something that is built but not in the first release. */
.chip { position: absolute; left: var(--gutter); top: calc(var(--bar) + 20px); z-index: 2; padding: 8px 14px 7px; border-radius: 6px; border: 1px solid rgba(127, 208, 220, .55); background: rgba(7, 11, 13, .6); color: var(--rune); font: 600 15px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* --- the lower page: plain sections under the scenes ------------------------------------------ */
.band { position: relative; padding: clamp(80px, 13vh, 160px) 0; background: var(--deep); }
.band--dark { background: linear-gradient(180deg, var(--night) 0%, #0a1113 100%); }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.band__head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 52px); }
.band__title { font: 700 clamp(44px, 5.4vw, 88px)/.96 var(--display); color: var(--ink); margin: 12px 0 18px; text-wrap: balance; }
.band__lead { font-size: clamp(19px, 1.45vw, 23px); line-height: 1.5; color: var(--body); max-width: 38em; }
.note { margin-top: 16px; font-size: 17px; color: var(--muted); }
.note a, .faq a { color: var(--gold); }

.film { border-radius: 12px; overflow: hidden; border: 1px solid rgba(223, 192, 107, .28); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); background: #000; margin-top: 26px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.2vw, 18px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--bosses { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--gallery[data-collapsed="true"] > li:nth-child(n + 13) { display: none; }
.grid li[hidden] { display: none; }
.shot { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #0d1517; border: 1px solid rgba(127, 208, 220, .1); text-decoration: none; color: var(--ink); transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s ease, box-shadow .25s ease; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.grid--screens .shot img { aspect-ratio: 720 / 385; }
.shot:hover, .shot:focus-visible { transform: translateY(-4px); border-color: rgba(223, 192, 107, .6); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.boss-cap, .grid--screens .shot span { position: absolute; inset: auto 0 0 0; padding: 34px 16px 13px; background: linear-gradient(0deg, rgba(7, 11, 13, .92), rgba(7, 11, 13, 0)); font-size: 16px; line-height: 1.3; color: var(--body); }
.boss-cap b { display: block; font: 700 27px/1.05 var(--display); color: var(--ink); margin-bottom: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { cursor: pointer; padding: 8px 14px 7px; border-radius: 999px; border: 1px solid rgba(127, 208, 220, .22); background: transparent; color: var(--body); font: 600 16px/1 var(--text); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.filter small { color: var(--muted); font-size: 14px; margin-left: 4px; }
.filter:hover { border-color: var(--gold); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #24190a; }
.filter[aria-pressed="true"] small { color: #5a4310; }
.more-row { margin-top: 26px; text-align: center; }

.split { display: grid; gap: clamp(26px, 4vw, 64px); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split__pic { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(223, 192, 107, .28); }
.split__pic img { width: 100%; height: auto; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid rgba(223, 192, 107, .3); }
.road li { position: relative; padding: 30px clamp(16px, 2vw, 30px) 0 0; }
.road li::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; background: var(--deep); border: 2px solid var(--gold); transform: rotate(45deg); }
.road li.now::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(223, 192, 107, .18); }
.road .when { font: 600 15px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.road h3 { font: 700 clamp(28px, 2.5vw, 40px)/1.05 var(--display); color: var(--ink); margin: 10px 0 10px; }
.road li.now h3 { color: var(--gold); }
@media (max-width: 760px) { .road { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid rgba(223, 192, 107, .3); gap: 30px; } .road li { padding: 0 0 0 26px; } .road li::before { left: -9px; top: 4px; } }

.faq details { border-bottom: 1px solid rgba(127, 208, 220, .16); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; position: relative; font: 600 clamp(20px, 1.5vw, 24px)/1.3 var(--text); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; max-width: 40em; }

.viewer { width: min(1500px, 96vw); max-height: 96vh; padding: 0; border: 1px solid rgba(223, 192, 107, .4); border-radius: 12px; background: #070b0d; color: var(--ink); overflow: hidden; }
.viewer::backdrop { background: rgba(3, 5, 6, .86); backdrop-filter: blur(6px); }
.viewer figure { margin: 0; }
.viewer img { display: block; width: 100%; max-height: calc(96vh - 120px); object-fit: contain; background: #000; }
.viewer figcaption { padding: 14px 20px 0; font-size: 19px; }
.viewer__bar { display: flex; align-items: center; gap: 10px; padding: 12px 20px 16px; }
.viewer__count { margin-right: auto; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .bar__links a[href^="#"]:not(.btn) { display: none; } }

/* --- closing sign-up ------------------------------------------------------------------------- */
.closing { position: relative; padding: clamp(90px, 16vh, 180px) var(--gutter); background: radial-gradient(120% 90% at 50% 0%, #12211f 0%, var(--deep) 55%, var(--night) 100%); text-align: center; }
.closing__inner { max-width: 620px; margin: 0 auto; }
.closing .eyebrow { justify-content: center; }
.closing__title { font: 700 clamp(48px, 6.4vw, 96px)/.95 var(--display); color: var(--ink); margin: 14px 0 30px; }
.notify { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.notify input[type=email] { min-height: 50px; padding: 0 18px; border-radius: 8px; border: 1px solid rgba(127, 208, 220, .3); background: rgba(7, 11, 13, .6); color: var(--ink); font: 400 19px var(--text); }
.notify input[type=email]::placeholder { color: var(--muted); }
.notify input[type=email]:focus { outline: none; border-color: var(--rune); box-shadow: 0 0 0 3px rgba(127, 208, 220, .18); }
.notify .hp { position: absolute; left: -9999px; }
.form-note { grid-column: 1 / -1; font-size: 16px; color: var(--muted); }
.notify.is-done .form-note { color: var(--gold); } .notify.is-error .form-note { color: #e79a83; }
@media (max-width: 520px) { .notify { grid-template-columns: 1fr; } }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 28px var(--gutter); background: var(--night); border-top: 1px solid var(--line); font-size: 17px; color: var(--muted); }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero > *, .scrollcue i { animation: none; opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
