/* Iskra landing — silver.
   The ground is brushed steel: dark at the edges, a band of light across it, so it
   has range and never turns into grey fog. Black and silver only: no warm colour anywhere. */
:root {
  --ink: #0B0E11;
  --paper: #ECEFF2;
  --silver: #B7C0C9;
  --faint: #A3ADB7;
  --line: rgba(205, 214, 223, .2);
  --ember: #E8EEF3;   /* was gold; the accent is bright silver now */
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Crimson Pro', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --edge: max(6vw, calc((100vw - 1320px) / 2));
}

* { box-sizing: border-box; }
html { background: #0A0D10; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: transparent; color: var(--silver); font: 400 19px/1.55 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p, h1, h2, dl, dd, blockquote { margin: 0; }
:focus-visible { outline: 1px solid var(--ember); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--paper); color: var(--ink); font: 500 13px var(--mono); }
.skip:focus { left: 8px; }

.plate { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(130% 110% at 62% 46%, #0E1216 0%, #090B0E 50%, #030405 100%); }
.brush, .sheen { display: none !important; }   /* no brushed-steel wallpaper: depth comes from the fog */
.plate i { position: absolute; display: block; }
/* the grain of the steel: noise stretched along one axis — felt, not seen as lines */
.brush { inset: 0; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700'%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0012 .9' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 -.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"); }
/* light lying across the metal: one band behind the figure, a second waiting off-screen to
   the right. The picture is three viewports wide but the layer is one: it slides by
   background-position, repainted only when the page scrolls — no oversized texture. */
.sheen { inset: 0; opacity: var(--so, 1); background-repeat: no-repeat; background-size: 300% 100%; background-position: calc(50% + var(--sx, 0px)) 0;
  background-image: linear-gradient(101deg, transparent 45%, rgba(205, 216, 227, .05) 50%, rgba(232, 240, 248, .16) 54.5%, rgba(250, 252, 255, .22) 56%, rgba(214, 224, 234, .07) 59%, transparent 64%, transparent 76%, rgba(214, 224, 234, .05) 80%, rgba(240, 246, 252, .15) 84%, rgba(214, 224, 234, .05) 87%, transparent 92%); }
#air { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain { position: fixed; inset: -50%; z-index: 9; pointer-events: none; opacity: .10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .foot { position: relative; z-index: 1; }

.meta, .top nav, .who, .clock dt, .lit-meta, .stay button, .stay-note { font: 400 11px/1.6 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }

/* ── top: a name and three quiet doors. The light belongs to the face, not to a button. */
.top { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: 30px var(--edge); }
/* the name, plainly: I S K R A in the brand's geometric letters */
.word { display: inline-flex; align-items: center; gap: 13px; color: #E9EEF3; }
.word .letters { height: 12px; width: auto; display: block; overflow: visible; }
.spark { height: 15px; width: auto; display: block; }
.word-s { gap: 9px; vertical-align: middle; color: var(--faint); margin-right: 4px; }
.word-s .letters { height: 8px; }
.word-s .spark { height: 10px; opacity: .75; }
.top nav { display: flex; align-items: center; gap: 34px; }
.top nav a, .lang { transition: color .4s; }
.langs { position: relative; padding-left: 26px; border-left: 1px solid var(--line); }
.lang { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 4px 0; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.lang svg { width: 15px; height: 15px; display: block; }
.lang-list { position: absolute; right: 0; top: calc(100% + 12px); z-index: 10; min-width: 172px; margin: 0; padding: 8px 0; list-style: none; background: rgba(11, 14, 17, .96); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.lang-list[hidden] { display: none; }
.lang-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 9px 18px; cursor: pointer; font: 400 17px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--silver); }
.lang-list li span { font: 400 10px var(--mono); letter-spacing: .2em; color: var(--faint); }
.lang-list li:hover, .lang-list li.is-active { color: var(--paper); background: rgba(205, 214, 223, .07); }
.lang-list li[aria-selected="true"] { color: var(--paper); }
.lang-list li[aria-selected="true"]::before { content: ''; position: absolute; left: 8px; width: 3px; height: 3px; margin-top: .55em; border-radius: 50%; background: var(--paper); }
.top nav a:hover, .lang:hover { color: var(--paper); }

/* ── first screen: a face and a sentence */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
/* one space: the fog and everyone standing in it are fixed behind the whole page; the text passes in front of them */
.figure { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.fig { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2.6s ease; }
.fig.is-on { opacity: 1; }

.hero-copy { position: absolute; z-index: 2; left: var(--edge); bottom: 17svh; max-width: 680px; }
.hero-copy::before { content: ''; position: absolute; z-index: -1; inset: -18% -22% -24% -30%; background: radial-gradient(closest-side, rgba(9, 12, 15, .6), rgba(9, 12, 15, .3) 60%, transparent 100%); pointer-events: none; }
h1 { font: 400 clamp(46px, 5.7vw, 98px)/.98 var(--display); letter-spacing: -.012em; color: var(--paper); }
h1 span, h1 em, h2 { background: linear-gradient(180deg, #FFFFFF 0%, #E9EEF3 34%, #97A3AE 53%, #C9D2DA 63%, #F6F9FB 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-bottom: .08em; }
h1 span, h1 em { display: block; }
h1 em { font-style: italic; padding-left: .04em; background-image: linear-gradient(180deg, #DCE3EA 0%, #B9C3CC 36%, #76828D 54%, #A9B4BE 64%, #DDE4EA 100%); }
.lede { margin-top: 28px; max-width: 27em; font-size: clamp(18px, 1.45vw, 22px); color: #D3DAE1; text-shadow: 0 0 24px rgba(8, 10, 13, .9); }
.cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 38px; padding: 15px 30px 15px 24px; border: 1px solid rgba(236, 239, 242, .5); font: 500 12px var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--paper); background: linear-gradient(180deg, rgba(24, 30, 36, .78), rgba(14, 18, 22, .78)); transition: border-color .5s, box-shadow .5s, color .5s; }
.cta::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px 2px rgba(222, 232, 242, .7); animation: ember 3.4s ease-in-out infinite; }
.cta:hover, .cta:focus-visible { border-color: var(--ember); box-shadow: 0 0 40px -8px rgba(222, 232, 242, .55); }
@keyframes ember { 50% { opacity: .55; box-shadow: 0 0 6px 1px rgba(222, 232, 242, .4); } }
/* the foot of the first screen: who stands there, and the world in three numbers — one quiet line */
.base { position: absolute; z-index: 2; left: var(--edge); right: var(--edge); bottom: 4.5svh; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.who { transition: opacity 1.2s; }
.who b { font-weight: 500; color: var(--paper); }
.clock { display: flex; gap: clamp(22px, 3.4vw, 54px); }
.clock > div { display: flex; flex-direction: column-reverse; gap: 3px; text-align: right; }
.clock dd { font: 300 17px/1 var(--mono); color: var(--paper); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.clock dt { font-size: 9.5px; letter-spacing: .2em; }

/* ── what this is, in plain words */
.label { font: 400 11px/1.6 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.about { max-width: 1240px; margin: 0 auto; padding: 8svh var(--edge) 9svh; }
.about-lead { max-width: 30em; margin-top: 18px; font: 400 clamp(24px, 2.3vw, 34px)/1.32 var(--display); color: var(--paper); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin: 22px 0 0; padding: 0; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line); }
.steps .n { font: 300 13px var(--mono); letter-spacing: .2em; color: var(--faint); }
.steps h3 { margin: 12px 0 10px; font: 400 clamp(24px, 2vw, 30px)/1.15 var(--display); color: var(--paper); }
.steps p { font-size: 18px; line-height: 1.55; color: var(--silver); }
.living > .label, .living > .hint { padding: 0 24px; }
.hint { margin: 10px auto 0; max-width: 34em; font-size: 17px; color: var(--silver); }
.city .label { margin-bottom: 14px; } .death-words .label { margin-bottom: 12px; }

/* ── the living pass through one shaft of light */
.living { position: relative; padding: 7svh 0 9svh; text-align: center; border-top: 1px solid var(--line); }
.walk { position: relative; height: clamp(380px, 60svh, 560px); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); }
.walk.is-held { cursor: grabbing; }
.walk canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lit { min-height: 96px; margin-top: 8px; }
.lit-name { font: 400 clamp(34px, 3.4vw, 52px)/1.1 var(--display); color: var(--paper); transition: opacity .5s; }
.lit-meta { margin-top: 8px; transition: opacity .5s; }
.lit.is-changing .lit-name, .lit.is-changing .lit-meta { opacity: 0; }

.stay { max-width: 520px; margin: 9svh auto 0; padding: 26px 24px 0; border-top: 1px solid var(--line); }
.stay-say { font: italic 400 18px/1.5 var(--body); color: var(--silver); min-height: 3em; }
.stay-row { display: flex; align-items: baseline; gap: 18px; margin-top: 20px; border-bottom: 1px solid var(--line); transition: border-color .4s; }
.stay-row:focus-within { border-color: var(--ember); }
.stay input { flex: 1; min-width: 0; padding: 10px 0; background: none; border: 0; outline: 0; color: var(--paper); font: 300 17px var(--mono); }
.stay input::placeholder { color: #7C8791; }
.stay button { background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--paper); white-space: nowrap; transition: color .4s; }
.stay button:hover { color: var(--ember); }
.stay button[disabled] { opacity: .5; cursor: default; }
.stay-note { margin-top: 14px; min-height: 1.6em; letter-spacing: .14em; }
.stay-note.is-bad { color: #FFFFFF; }

/* ── those who are gone: the latest dead as dark figures sinking into the fog; a name only for whoever pauses on one */
.gone { padding: 11svh 0 6svh; text-align: center; border-top: 0; }
.gone[hidden] { display: none; }
.gone-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 24px; }
.num { font: 300 clamp(40px, 4.2vw, 64px)/1 var(--display); color: var(--paper); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.gone-stage { position: relative; height: clamp(300px, 46svh, 460px); margin-top: 4svh; }
.gone-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gone-names { position: absolute; inset: 0; pointer-events: none; }
.gone-names span { position: absolute; transform: translateX(-50%); font: 400 clamp(18px, 1.6vw, 24px)/1.2 var(--display); color: var(--paper); opacity: 0; transition: opacity .5s; white-space: nowrap; }
.gone-names span.is-on { opacity: 1; }

/* ── the one thing we ask */
/* the page opens in a cold light and ends by a fire you have not lit yet */
.invite { position: relative; padding: 10svh 24px 14svh; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
/* the spark's one place on the page */
.mark { display: block; height: clamp(170px, 26svh, 250px); width: auto; margin: 0 auto 30px; animation: strike 6s ease-in-out infinite; }
@keyframes strike { 0%, 100% { opacity: .80; } 50% { opacity: 1; } }   /* opacity only: an animated drop-shadow re-rasterises the image every frame and frays its edge */ }
.invite::before { content: ''; position: absolute; left: 50%; bottom: -46%; width: min(1100px, 130vw); aspect-ratio: 1.5; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(200, 212, 224, .07), rgba(200, 212, 224, .05) 55%, transparent 100%); animation: fire 7s ease-in-out infinite; }
.invite > * { position: relative; }
@keyframes fire { 50% { opacity: .72; } }
h2 { font: 400 clamp(40px, 4.4vw, 72px)/1 var(--display); color: var(--paper); letter-spacing: -.01em; }
.invite .body { max-width: 32em; margin: 26px auto 0; color: var(--faint); }

.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 34px var(--edge) 46px; border-top: 1px solid var(--line); }
.foot nav { display: flex; gap: 30px; font-size: 16px; color: var(--faint); }
.foot nav a:hover { color: var(--paper); }

/* ── narrow: the face on top, the sentence laid over its dissolving shoulders */
@media (max-width: 900px) {
  :root { --edge: 22px; }
  .top { padding: 22px var(--edge); }
  .top nav { gap: 18px; letter-spacing: .16em; }
  .langs { padding-left: 14px; }
  .hero { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 9svh; }
  .hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10, 13, 16, .92) 0, rgba(10, 13, 16, .6) 36%, transparent 64%); }
  .hero-copy { position: relative; left: auto; bottom: auto; padding: 0 var(--edge); }
  .lede { margin-top: 18px; }
  .cta { margin-top: 26px; }
  .base { position: relative; left: auto; right: auto; bottom: auto; margin: 26px var(--edge) 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .clock { width: 100%; justify-content: space-between; gap: 8px; }
  .clock > div { text-align: left; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 420px) { .top nav a:nth-child(2) { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .cta::before, .invite::before, .mark { animation: none; }
  .fig, .lit-name, .lit-meta, .city .line, .city .meta { transition-duration: .01s; }
}

/* ── text stands in front of the fog on a soft veil, never on a wall */
.about, .gone, .invite { position: relative; border-top: 0 !important; }
.about::before, .gone::before { content: ''; position: absolute; z-index: -1; top: -8svh; bottom: -8svh; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; background: linear-gradient(to bottom, rgba(4, 5, 7, 0), rgba(4, 5, 7, .80) 22%, rgba(4, 5, 7, .80) 78%, rgba(4, 5, 7, 0)); }
.about { margin-top: 30svh; } .gone { margin-top: 34svh; } .invite { margin-top: 30svh; }
.invite::before { background: radial-gradient(closest-side, rgba(4, 5, 7, .86), rgba(4, 5, 7, .55) 60%, transparent 100%) !important; bottom: -20% !important; animation: none !important; }
.foot { background: rgba(4, 5, 7, .82); }
.hero-copy::before { background: radial-gradient(closest-side, rgba(4, 5, 7, .72), rgba(4, 5, 7, .4) 60%, transparent 100%); }
