/* rislokka.app — cinematic: full-bleed footage, one line per frame, white type on black. */
:root {
  --ink: #000;
  --paper: #fff;
  --mute: rgba(255, 255, 255, .62);
  --faint: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .14);
  --red: #E33C33;
  --pad: clamp(20px, 5vw, 64px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
/* html + body share the page colour and never rubber-band: Chrome's overscroll / collapsing toolbar can't expose a
   light strip («губа») under the fixed glass bar */
html { -webkit-text-size-adjust: 100%; background: var(--ink); overscroll-behavior-y: none; }
body { background: var(--ink); color: var(--paper); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
a { color: inherit; }
img, video, svg { display: block; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- header ---------- */
.top { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) var(--pad) 18px; }
body.page-doc .top { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.icon { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center;
  background: linear-gradient(170deg, #F24B3B, #D42D2A); flex: none; }
.icon svg { width: 13px; height: 15px; fill: #fff; margin-left: 1px; }
.top-link { font-size: 15px; font-weight: 500; color: var(--mute); text-decoration: none; transition: color .2s; }
.top-link:hover { color: #fff; }

/* ---------- full-bleed frames ---------- */
.frame { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.frame + .frame { border-top: 1px solid #000; }
.media, .media picture, .still, .mov { position: absolute; inset: 0; width: 100%; height: 100%; }
.still, .mov { object-fit: cover; }
.mov { opacity: 0; transition: opacity .9s ease; }
.mov.on { opacity: 1; }
/* legibility: a quiet darkening where the words sit (not decoration) */
.frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,0) 62%),
              linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%); }
.hero::after { background: radial-gradient(120% 70% at 50% 52%, rgba(0,0,0,.42), rgba(0,0,0,.12) 60%, rgba(0,0,0,0) 80%),
                           linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0) 24%); }

.say { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(44px, 9vh, 96px); }
.say.center { top: 0; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad); }
h1, h2 { font-weight: 700; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(42px, 11vw, 116px); max-width: min(100%, 12ch); }
h2 { font-size: clamp(38px, 8.6vw, 92px); max-width: 13ch; }
.nb { white-space: nowrap; }
.soon { margin-top: clamp(18px, 3vh, 28px); font-size: 15px; font-weight: 500; letter-spacing: .01em; color: var(--mute); }
.soon a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 1px; }
.soon .dot { margin: 0 10px; color: var(--faint); }

.credit { position: absolute; z-index: 2; right: var(--pad); bottom: 16px; left: var(--pad); text-align: right;
  font-size: 11px; line-height: 1.35; color: var(--faint); }
.map .say { bottom: clamp(64px, 11vh, 120px); }

/* examiner */
.play { margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; color: #fff;
  font: 500 16px/1 var(--font); cursor: pointer; padding: 0; }
.play svg { width: 54px; height: 54px; padding: 15px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); fill: #fff;
  transition: background .2s, border-color .2s; }
.play:hover svg { background: rgba(255,255,255,.12); border-color: #fff; }
.play .i-pause { display: none; }
.play.on .i-play { display: none; }
.play.on .i-pause { display: block; }
.subtitle { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); top: 44%; text-align: center;
  font-size: clamp(20px, 3.4vw, 34px); font-weight: 600; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.subtitle.on { opacity: 1; transform: none; }

/* ---------- the last frame: waitlist ---------- */
.end { padding: clamp(96px, 16vh, 180px) var(--pad) clamp(80px, 12vh, 140px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.icon.big { width: 76px; height: 76px; border-radius: 18px; }
.icon.big svg { width: 31px; height: 36px; margin-left: 3px; }
.end h2 { margin-top: 28px; }
.wl { margin-top: 36px; width: 100%; max-width: 460px; }
.wl-row { display: flex; gap: 10px; border-bottom: 1.5px solid rgba(255,255,255,.5); padding-bottom: 6px; }
.wl input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: 400 18px/1.4 var(--font); padding: 10px 2px; }
.wl input::placeholder { color: var(--faint); }
.wl input:focus { outline: none; }
.wl-row:focus-within { border-bottom-color: #fff; }
.wl button { flex: none; background: #fff; color: #000; border: 0; border-radius: 6px; font: 600 15px/1 var(--font); padding: 0 16px; cursor: pointer; }
.wl button:hover { background: #e9e9ea; }
.wl button:disabled { opacity: .6; }
.wl-note { margin-top: 14px; font-size: 13px; color: var(--faint); }
.wl-note a { color: var(--mute); }
.wl-done { display: none; margin-top: 18px; font-size: 18px; font-weight: 600; }
.wl.sent .wl-row, .wl.sent .wl-note { display: none; }
.wl.sent .wl-done { display: block; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px var(--pad) max(28px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--mute); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.fine { margin-top: 18px; font-size: 12px; color: var(--faint); max-width: 70ch; }

/* ---------- text pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vh, 88px) var(--pad) 96px; }
.doc h1 { font-size: clamp(44px, 9vw, 84px); max-width: none; }
.doc .meta { margin-top: 14px; color: var(--mute); }
.doc .lead { margin-top: 32px; font-size: 20px; }
.doc h2 { font-size: 22px; letter-spacing: -.015em; line-height: 1.25; max-width: none; margin: 44px 0 12px; }
.doc p, .doc li { color: rgba(255,255,255,.78); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.1em; margin-top: 8px; }
.doc li + li { margin-top: 8px; }
.doc strong { color: #fff; font-weight: 600; }
.doc a { color: #fff; text-underline-offset: 3px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }
.doc.short { min-height: 60vh; }
.back { display: inline-block; margin-top: 28px; color: #fff; }

@media (min-width: 900px) {
  .say { bottom: clamp(56px, 10vh, 110px); }
  .top { padding-top: 26px; }
  .soon { font-size: 17px; }
  .play { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .mov { display: none; }
  .subtitle, .mov { transition: none; }
}
