/* Nagori Studio
   Nahoře slonovina (Aetheria), dole tma Siltu. Tyrkys jen pro jiskry a akce.
   Výchozí styly = statická stránka (bez JS). Třída .is-pinned (přidává scenes.js)
   zapne pinnuté scény řízené scrollem. */

/* ---------- fonty ---------- */

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-tight-latin.woff2) format("woff2");
  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: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-tight-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokeny ---------- */

:root {
  --ivory: #F0EEE6;
  --ivory-2: #E6E3D8;
  --slate: #141413;
  --slate-muted: rgba(20, 20, 19, .6);
  --slate-line: rgba(20, 20, 19, .12);
  --silt: #070A09;
  --silt-2: #0D1412;
  --fog: #EEF2F0;
  --fog-muted: rgba(238, 242, 240, .62);
  --fog-line: rgba(238, 242, 240, .12);
  --spark: #3CC4FF;
  --spark-ink: #04131A;
  --brick: #C8553D;

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-kanji: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;

  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: clamp(16px, 1.8vw, 26px);
  --nav-h: 64px;
}

/* ---------- základ ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--slate);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--spark); color: var(--spark-ink); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--slate); color: var(--ivory);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 16px; }

.theme-light { background: var(--ivory); color: var(--slate); }
.theme-dark { background: var(--silt); color: var(--fog); }

.container { max-width: 1280px; margin: 0 auto; }
.container.narrow { max-width: 920px; text-align: center; }

/* ---------- typografie ---------- */

.wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark > span { display: inline; }
.baseline-probe { display: inline-block; width: 0; height: 0; vertical-align: baseline; }

.kanji { font-family: var(--font-kanji); font-weight: 500; letter-spacing: .14em; }

.kicker {
  font: 500 13px/1.2 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 18px;
}
.kicker .wordmark { font-size: 1.35em; letter-spacing: -.065em; text-transform: none; vertical-align: -.08em; }

.h-display {
  font: 600 clamp(48px, 8.2vw, 132px)/.95 var(--font-display);
  letter-spacing: -.05em;
  text-wrap: balance;
}
.h-section {
  font: 600 clamp(36px, 5.4vw, 80px)/1 var(--font-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h-small {
  font: 600 clamp(22px, 2vw, 28px)/1.15 var(--font-display);
  letter-spacing: -.03em;
}
.section-text {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  opacity: .66;
  max-width: 38em;
  margin-top: 22px;
  text-wrap: pretty;
}
.narrow .section-text { margin-left: auto; margin-right: auto; }

/* ---------- tlačítka ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.actions-center { justify-content: center; }
.actions:empty { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--font-body);
  text-decoration: none; cursor: pointer; background: none;
  transition: transform .4s var(--ease-out), background-color .25s, border-color .25s, box-shadow .4s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { margin-left: -2px; }
.btn-spark { background: var(--spark); color: var(--spark-ink); box-shadow: 0 0 0 0 rgba(60, 196, 255, 0); }
.btn-spark:hover { box-shadow: 0 8px 40px -8px rgba(60, 196, 255, .7); }
.btn-ghost { border-color: currentColor; border-color: color-mix(in srgb, currentColor 28%, transparent); }
.btn-ghost:hover { border-color: currentColor; }
.btn-ink { background: var(--slate); color: var(--ivory); }
.btn-meta { opacity: .55; font-size: 13px; letter-spacing: .02em; }

/* ---------- menu ---------- */

.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  color: var(--slate);
  transition: color .45s, background-color .45s, box-shadow .45s;
}
.site-nav.is-solid {
  background: rgba(240, 238, 230, .74);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--slate-line);
}
.site-nav.on-dark { color: var(--fog); }
.site-nav.on-dark.is-solid { background: rgba(7, 10, 9, .62); box-shadow: 0 1px 0 var(--fog-line); }

.nav-logo { font-size: 24px; text-decoration: none; line-height: 1; padding: 6px 0; }
.nav-links { display: flex; gap: clamp(14px, 2.6vw, 34px); }
.nav-links a {
  text-decoration: none;
  font: 500 14px/1 var(--font-body);
  opacity: .6;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }

/* Na úvodní stránce se logo v menu objeví až po zaparkování intro loga. */
.js .page-index .nav-logo { opacity: 0; transition: opacity .2s; }
.js .page-index .site-nav.is-docked .nav-logo { opacity: 1; }

@media (max-width: 420px) {
  .nav-logo { font-size: 21px; }
  .nav-links a { font-size: 13px; }
}

/* ---------- kal (canvas přes celou stránku) ---------- */

#silt {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 40;
  mix-blend-mode: difference;
}

/* ---------- scény ---------- */

.scene { position: relative; }
.scene.is-pinned { height: var(--len, 300vh); }
.scene.is-pinned > .pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

/* reveal při vjezdu do obrazovky */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.reduced [data-reveal] { transform: none; }

/* ---------- 1 · intro ---------- */

.intro .pin {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  position: relative;
}
.intro-mark {
  font-size: clamp(104px, 22vw, 380px);
  font-weight: inherit;
  line-height: 1;
  margin-top: -.06em;
}
.intro-mark .wordmark { transform-origin: 0 0; will-change: transform; }
.js .intro-mark .wordmark { opacity: 0; transition: opacity 1.1s var(--ease-out); }
.js .intro-mark .wordmark.is-on { opacity: 1; }

.intro-meta { position: absolute; inset: 0; pointer-events: none; opacity: 1; transition: opacity 1.2s var(--ease-out); }
.js .intro-meta { opacity: 0; }
.js .intro.is-ready .intro-meta { opacity: calc(1 - var(--p, 0) * 4); transition: none; }
.js .intro.is-ready.fading-in .intro-meta { transition: opacity 1.2s var(--ease-out); }

.intro-sub {
  position: absolute; left: 0; right: 0;
  top: calc(50% + clamp(64px, 12.5vw, 214px));
  text-align: center;
  font: 400 13px/1 var(--font-body);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--slate-muted);
}
.intro-sub .kanji { letter-spacing: .3em; font-size: 15px; }
.intro-sub .dot { margin: 0 .9em 0 .6em; }

.scroll-hint {
  position: absolute; left: 0; right: 0; bottom: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 11px/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase;
  color: var(--slate-muted);
}
.scroll-hint i {
  position: relative; width: 1px; height: 44px; overflow: hidden;
  background: rgba(20, 20, 19, .14);
}
.scroll-hint i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px;
  background: var(--slate);
  animation: hint 2.4s var(--ease-in-out) infinite;
}
@keyframes hint { from { transform: translateY(-14px); } to { transform: translateY(44px); } }

/* ---------- 2 · manifest ---------- */

.manifesto { padding: 18vh 0; }
.manifesto.is-pinned { padding: 0; }
.manifesto .pin { display: flex; align-items: center; }
.manifesto-text {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
  font: 500 clamp(30px, 4.7vw, 70px)/1.1 var(--font-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.js .manifesto.is-pinned .w { opacity: .13; transition: opacity .35s linear; }
.js .manifesto.is-pinned .w.on { opacity: 1; }

/* ---------- 3 · sestup ---------- */

.descent { background: var(--silt); color: var(--fog); }
.descent .pin { position: relative; }
.descent:not(.is-pinned) .pin { padding: 18vh var(--gutter); }

.descent-head { text-align: center; position: relative; z-index: 3; }
.descent-head .kicker { opacity: .55; }

.descent-window { position: relative; margin-top: 48px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1920 / 816; }
.descent-canvas { display: none; }
.descent-still { width: 100%; height: 100%; object-fit: cover; }
.descent-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 9, 0) 40%, rgba(7, 10, 9, .78) 100%);
}
.descent-lines {
  display: grid; gap: 14px;
  max-width: 640px; margin: 40px auto 0;
  font: 500 clamp(21px, 2.5vw, 36px)/1.2 var(--font-display);
  letter-spacing: -.025em;
}
.depth, .descent-end { display: none; }

.descent.is-pinned { background: var(--ivory); color: var(--slate); }
.descent.is-pinned .pin { padding: 0; }
.descent.is-pinned .descent-head { position: absolute; left: 0; right: 0; top: 17vh; padding: 0 var(--gutter); }
.descent.is-pinned .descent-window {
  position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; z-index: 1;
  clip-path: inset(40% 30% 20% 30% round 24px);
}
.descent.is-pinned .descent-canvas { display: block; width: 100%; height: 100%; }
.descent.is-pinned .descent-still { display: none; }
.descent.is-pinned .descent-shade { opacity: 0; }
.descent.is-pinned .descent-lines {
  position: absolute; z-index: 3;
  left: var(--gutter); right: var(--gutter); bottom: 13vh;
  margin: 0; max-width: 680px;
  color: var(--fog);
  display: block;
}
.descent.is-pinned .descent-lines li {
  position: absolute; left: 0; right: 0; bottom: 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.descent.is-pinned .descent-lines li.on { opacity: 1; transform: none; }
.descent.is-pinned .depth {
  display: block; position: absolute; z-index: 3;
  right: var(--gutter); top: 14vh; bottom: 14vh; width: 1px;
  opacity: 0; transition: color .6s;
}
.descent.is-pinned .descent-end {
  display: block; position: absolute; inset: 0; z-index: 2;
  background: var(--silt); opacity: 0; pointer-events: none;
}
.depth-cable { position: absolute; inset: 0; background: currentColor; opacity: .28; }
.depth-car {
  position: absolute; left: -4px; top: calc(var(--d, 0) * 100%);
  width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: var(--spark); box-shadow: 0 0 14px var(--spark), 0 0 3px var(--spark);
}
.depth-value {
  position: absolute; right: 18px; top: calc(var(--d, 0) * 100%);
  transform: translateY(-50%);
  font: 600 13px/1 var(--font-display); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.descent.is-dark .depth { color: var(--fog); }

@media (max-width: 700px) {
  .descent.is-pinned .descent-head { top: 14vh; }
  .descent.is-pinned .descent-lines { bottom: 16vh; right: 44px; }
  .depth-value { display: none; }
}

/* ---------- 4 · hra ---------- */

.game-hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: 120px var(--gutter) 96px;
  position: relative;
  overflow: clip;
}
.game-hero::before {
  content: ""; position: absolute; left: 50%; top: 22%;
  width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(60, 196, 255, .14), rgba(60, 196, 255, 0) 62%);
  pointer-events: none;
}
.game-hero-inner { position: relative; max-width: 900px; }
.sparky {
  width: clamp(92px, 10vw, 140px); height: auto;
  margin: 0 auto 30px;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(60, 196, 255, .35)); }
  50% { transform: scale(1.035); filter: drop-shadow(0 0 44px rgba(60, 196, 255, .75)); }
}
.js .sparky[data-reveal].is-in { transform: none; }
.tagline {
  font: 400 clamp(19px, 1.7vw, 24px)/1.4 var(--font-body);
  opacity: .78;
  margin: 22px auto 0;
  max-width: 30ch;
}
.lede {
  font-size: clamp(16px, 1.2vw, 18px);
  opacity: .5;
  margin: 18px auto 0;
  max-width: 46ch;
}

/* ---------- 5 · svět ---------- */

.world { padding: 0 var(--gutter) 10vh; }
.world.is-pinned { padding: 0; }
.world-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1920 / 725; }
.world-frame img { width: 100%; height: 100%; object-fit: cover; }
.world.is-pinned .world-frame {
  position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto;
  transform: scale(.62); transform-origin: 50% 50%; will-change: transform;
}
.world.is-pinned .world-frame img { transform: scale(var(--z, 1)); will-change: transform; }

/* ---------- 6 · tři věci ---------- */

.pillar {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 88px); align-items: center;
  max-width: 1440px; margin: 0 auto;
  padding: 10vh var(--gutter);
}
.pillar-num { font: 500 13px/1 var(--font-body); letter-spacing: .16em; color: var(--spark); }
.pillar h3 {
  font: 600 clamp(38px, 4.6vw, 72px)/1 var(--font-display);
  letter-spacing: -.045em;
  margin: 18px 0 22px;
}
.pillar-text { font-size: clamp(17px, 1.3vw, 19px); opacity: .62; max-width: 36ch; }
.pillar-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--silt-2); }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; }
.pillars-progress { display: none; }

@media (max-width: 899px) {
  .pillar { grid-template-columns: 1fr; padding: 8vh var(--gutter); }
  .pillar-img { order: -1; }
}

.pillars.is-pinned .pin { display: grid; align-items: center; }
.pillars.is-pinned .pillars-stack { display: grid; }
.pillars.is-pinned .pillar { grid-area: 1 / 1; padding-top: 0; padding-bottom: 0; }
.pillars.is-pinned .pillar-copy { opacity: 0; transform: translateY(28px); transition: opacity .55s, transform .9s var(--ease-out); }
.pillars.is-pinned .pillar-img { opacity: 0; transform: scale(1.035); transition: opacity .9s, transform 1.4s var(--ease-out); }
.pillars.is-pinned .pillar.on .pillar-copy { opacity: 1; transform: none; transition-delay: .12s; }
.pillars.is-pinned .pillar.on .pillar-img { opacity: 1; transform: none; }
.pillars.is-pinned .pillar:not(.on) { pointer-events: none; }
.pillars.is-pinned .pillars-progress {
  display: block; position: absolute; left: var(--gutter); bottom: 9vh;
  width: 140px; height: 2px; background: var(--fog-line); border-radius: 2px; overflow: hidden;
}
.pillars-progress span {
  position: absolute; inset: 0; background: var(--spark);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- 7 · kreslený vzhled ---------- */

.drawn { padding: clamp(110px, 18vh, 200px) var(--gutter); text-align: center; }
.drawn .section-text { margin-left: auto; margin-right: auto; }

.compare {
  --x: 50%;
  position: relative;
  max-width: 1440px; margin: clamp(40px, 7vh, 72px) auto 0;
  aspect-ratio: 1920 / 770;
  border-radius: var(--radius); overflow: hidden;
  background: var(--silt-2);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-top { clip-path: inset(0 0 0 var(--x)); }
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--x);
  width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 18px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: var(--x);
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  pointer-events: none;
  transition: transform .3s var(--ease-out);
}
.compare:hover .compare-knob { transform: scale(1.06); }
.compare-label {
  position: absolute; bottom: 18px;
  font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
}
.compare-label-left { left: 18px; }
.compare-label-right { right: 18px; }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare:has(input:focus-visible) { outline: 2px solid var(--spark); outline-offset: 4px; }

/* ---------- 8 · stav hry ---------- */

.status { padding: clamp(100px, 16vh, 180px) var(--gutter) clamp(110px, 18vh, 200px); }

.parts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  max-width: 880px; margin: 64px auto 0;
  text-align: left;
}
.part {
  border: 1px solid var(--fog-line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}
.part.active {
  border-color: rgba(60, 196, 255, .42);
  background: linear-gradient(180deg, rgba(60, 196, 255, .08), rgba(60, 196, 255, 0));
}
.part-status {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  opacity: .7;
}
.part.active .part-status { color: var(--spark); opacity: 1; }
.part.active .part-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--spark); box-shadow: 0 0 10px var(--spark);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.part-num { margin-top: 26px; font-size: 14px; opacity: .5; }
.part h3 { font: 600 clamp(26px, 2.6vw, 34px)/1.05 var(--font-display); letter-spacing: -.035em; margin-top: 6px; }
.part-text { margin-top: 10px; opacity: .62; }

@media (max-width: 640px) { .parts { grid-template-columns: 1fr; } }

/* ---------- výstup na povrch + patička ---------- */

.ascent { height: 46vh; background: linear-gradient(180deg, var(--silt) 0%, #2a302d 40%, #a9aca3 78%, var(--ivory) 100%); }

.site-footer { background: var(--ivory); color: var(--slate); padding: clamp(72px, 12vh, 140px) var(--gutter) 32px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px;
  max-width: 1280px; margin: 0 auto; align-items: end;
}
.footer-mark { display: inline-block; font-size: clamp(72px, 12vw, 190px); text-decoration: none; line-height: .9; }
.footer-about { max-width: 40ch; margin-top: 26px; color: var(--slate-muted); }
.footer-links { text-align: right; font: 500 17px/2.1 var(--font-body); }
.footer-links a { text-decoration: none; opacity: .75; transition: opacity .2s; }
.footer-links a:hover { opacity: 1; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  max-width: 1280px; margin: 72px auto 0; padding-top: 22px;
  border-top: 1px solid var(--slate-line);
  font-size: 13px; color: var(--slate-muted);
}
.to-surface {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 500 13px/1 var(--font-body); color: var(--slate);
}
.to-surface span { display: inline-block; transition: transform .4s var(--ease-out); }
.to-surface:hover span { transform: translateY(-3px); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}

/* ---------- podstránka hry ---------- */

.page-game { background: var(--silt); }

.g-hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(64px, 12vh, 128px);
}
.g-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 34% 50%;          /* na mobilu míč ve středu */
  transform: translateY(calc(var(--p, 0) * 14%)) scale(1.08);
  will-change: transform;
}
.g-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 9, .35) 0%, rgba(7, 10, 9, 0) 28%, rgba(7, 10, 9, .5) 64%, var(--silt) 100%);
}
.g-hero-copy { position: relative; z-index: 1; max-width: 820px; }
@media (min-width: 900px) { .g-hero-img { object-position: 0% 50%; } }   /* míč vpravo od nadpisu */
.g-hero .tagline { margin-left: 0; }

.section { padding: clamp(96px, 15vh, 170px) var(--gutter); }

.premise-lede {
  font: 500 clamp(26px, 3.3vw, 48px)/1.16 var(--font-display);
  letter-spacing: -.03em;
  max-width: 26em;
  text-wrap: pretty;
}
.premise-cols { columns: 2 320px; column-gap: 56px; margin-top: 56px; opacity: .66; font-size: 18px; }
.premise-cols p { break-inside: avoid; margin-bottom: 1.2em; }

.characters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-top: 56px;
}
.character {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 30px 28px 34px;
  background: linear-gradient(180deg, rgba(238, 242, 240, .05), rgba(238, 242, 240, .015));
  border: 1px solid rgba(238, 242, 240, .08);
}
.character::before {
  content: ""; position: absolute; top: -70px; right: -50px;
  width: 190px; height: 190px; border-radius: 50%;
  background: var(--c); filter: blur(64px); opacity: .2;
  transition: opacity .6s;
}
.character:hover::before { opacity: .38; }
.character h3 {
  position: relative;
  font: 600 34px/1 var(--font-display); letter-spacing: -.04em;
  color: var(--c);
}
.character .age { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--fog); opacity: .45; margin-left: 4px; }
.character p { position: relative; margin-top: 16px; opacity: .66; font-size: 16px; }

@media (max-width: 1080px) { .characters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .characters { grid-template-columns: 1fr; } }

.film-inline {
  margin-top: 48px; border-radius: var(--radius); overflow: hidden;
  background: #000; aspect-ratio: 1920 / 816;
}
.film-inline video { width: 100%; height: 100%; }

.features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
  margin-top: 64px;
}
.feature { border-top: 1px solid var(--fog-line); padding-top: 22px; }
.feature-num { font: 500 13px/1 var(--font-body); letter-spacing: .14em; color: var(--spark); }
.feature h3 { font: 600 24px/1.15 var(--font-display); letter-spacing: -.03em; margin-top: 16px; }
.feature p:last-child { margin-top: 10px; opacity: .62; }

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* řádky po 7 snímcích: 7+5 | 4+4+4 | 5+7 */
.gallery {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 24vw, 360px); gap: 12px;
  margin-top: 56px;
}
.gallery li { grid-column: span 4; }
.gallery li:nth-child(7n + 1), .gallery li:nth-child(7n + 7) { grid-column: span 7; }
.gallery li:nth-child(7n + 2), .gallery li:nth-child(7n + 6) { grid-column: span 5; }
.gallery button {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--silt-2);
  border-radius: calc(var(--radius) * .75); overflow: hidden;
  cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .4s; }
.gallery button:hover img { transform: scale(1.035); }

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery li, .gallery li:nth-child(n) { grid-column: auto; }
  .gallery button { height: auto; aspect-ratio: 16 / 10; }
}

/* ---------- dialogy (film, lightbox) ---------- */

dialog { color: var(--fog); }
dialog::backdrop { background: rgba(4, 6, 5, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog[open] { animation: dialog-in .45s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: scale(.97); } }

.film-dialog {
  width: min(1280px, 94vw); max-width: none;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.film-dialog video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 1920 / 816; }

.dialog-close {
  position: absolute; top: -56px; right: 0;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(238, 242, 240, .25); background: rgba(7, 10, 9, .5);
  color: var(--fog); font-size: 24px; line-height: 1; cursor: pointer;
}
.dialog-close:hover { border-color: var(--fog); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 14px; object-fit: contain; }
.lightbox .dialog-close { top: 18px; right: 18px; position: fixed; }
.lb-nav {
  position: fixed; top: 50%; margin-top: -26px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(238, 242, 240, .25); background: rgba(7, 10, 9, .5);
  color: var(--fog); font-size: 30px; line-height: 1; cursor: pointer;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ---------- press ---------- */

.page-press { background: var(--ivory); }
.press-hero { padding: clamp(150px, 24vh, 240px) var(--gutter) clamp(64px, 10vh, 110px); }
.press-block { padding: clamp(48px, 8vh, 80px) var(--gutter); border-top: 1px solid var(--slate-line); }
.press-block .container > .h-small { margin-bottom: 32px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.facts > div { padding: 18px 0; border-bottom: 1px solid var(--slate-line); }
.facts dt { font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--slate-muted); }
.facts dd { margin-top: 10px; font-size: 18px; }

.press-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.press-cols .h-small { margin-bottom: 0; }
.press-copy p + p { margin-top: 1em; }
.press-copy p { max-width: 62ch; color: var(--slate-muted); }
.press-copy .press-short { color: var(--slate); font-size: 21px; line-height: 1.45; }

.logo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.logo-tile {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  padding: 8% 12%;
}
.logo-tile-ivory { background: var(--ivory-2); }
.logo-tile-dark { background: var(--silt); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tiles p { margin-top: 12px; font-size: 15px; color: var(--slate-muted); }

.press-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.press-shots a { display: block; text-decoration: none; }
.press-shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--radius) * .7); }
.press-shots span { display: block; margin-top: 10px; font-size: 14px; color: var(--slate-muted); }
.press-shots a:hover span { color: var(--slate); }
.press-note { margin-top: 24px; font-size: 14px; color: var(--slate-muted); }

@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-cols { grid-template-columns: 1fr; }
  .press-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .facts, .logo-tiles, .press-shots { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */

.lost {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px var(--gutter);
}
.lost .section-text { margin-left: auto; margin-right: auto; }

/* ---------- omezený pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .sparky { filter: drop-shadow(0 0 30px rgba(60, 196, 255, .55)); }
}
