/* The entire Iskra fits one screen. Details live in accessible tabs. */
:root {
  color-scheme: dark;
  --ink: #171717;
  --paper: #f0efec;
  --display: 'Space Grotesk', Arial, sans-serif;
  --body: 'Inter', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --edge: clamp(24px, 4.5vw, 86px);
  --header: 96px;
  --footer: 60px;
}
* { box-sizing: border-box; }
html { background: #171717; -webkit-text-size-adjust: 100%; }
body { position: relative; isolation: isolate; margin: 0; color: var(--paper); font: 400 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.screen:focus-visible { outline-offset: -6px; }
[hidden] { display: none !important; }
::selection { background: #f5f5f5; color: #171717; }
.shell { padding-inline: var(--edge); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 20; transform: translateY(-160%); padding: 10px 18px; background: var(--paper); color: var(--ink); }
.skip:focus { transform: none; }
.has-tabs body { height: 100svh; display: grid; grid-template-rows: var(--header) minmax(0, 1fr) var(--footer); }

.site-landscape { position: fixed; inset: 0; height: 100svh; z-index: -2; overflow: hidden; pointer-events: none; background: linear-gradient(90deg, #999 49%, #111 51%); }
.site-landscape::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #08080825, #08080899); opacity: 0; transition: opacity .35s; }
.has-tabs:not([data-screen='start']) .site-landscape::after { opacity: 1; }
.iskra-axis { position: absolute; inset: 0; }
.iskra-axis picture { display: block; width: 100%; height: 100%; }
.central-iskra { display: block; width: 100%; height: 100%; object-fit: fill; }
.lunar-atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; mask-image: url('images/iskra-tilted-20260927.webp'); mask-size: contain; mask-position: center; mask-repeat: no-repeat; mask-mode: luminance; }
.lunar-haze { position: absolute; inset: -5% -15%; opacity: .3; background: radial-gradient(ellipse 36% 17% at 50% 48%, #ffffff50, transparent 80%); }
.lunar-light { position: absolute; inset: -5% -15%; opacity: .3; background: linear-gradient(114deg, transparent 34%, #ffffff10 43%, #ffffff55 47%, transparent 53%); }
.lunar-pointer { position: absolute; left: 0; top: 0; width: 75vw; height: 650px; opacity: 0; background: radial-gradient(ellipse at center, #ffffff60, #ffffff10 38%, transparent 65%); transform: translate3d(var(--light-x, 50vw), var(--light-y, 50vh), 0) translate(-50%, -50%); transition: opacity .5s; }
@media (hover: hover) and (pointer: fine) { .has-lunar-motion .lunar-pointer { opacity: .45; } }
.has-lunar-motion .lunar-haze { animation: lunar-haze-drift 32s ease-in-out infinite alternate; }
.has-lunar-motion .lunar-light { animation: lunar-light-drift 44s ease-in-out infinite alternate; }
.lunar-motion-paused .lunar-atmosphere > * { animation-play-state: paused; }
@keyframes lunar-haze-drift { from { transform: translate3d(-2%, -12px, 0); } to { transform: translate3d(2%, 12px, 0); } }
@keyframes lunar-light-drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, 0, 0); } }

.top { position: relative; z-index: 5; height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.word { display: inline-flex; align-items: center; padding-block: 12px; color: var(--ink); }
.letters { width: 110px; height: auto; overflow: visible; }
.screen-tabs { display: flex; align-items: center; gap: 6px; padding: 5px; margin-left: auto; background: #161616c9; border: 1px solid #ffffff24; border-radius: 30px; backdrop-filter: blur(16px); font: 400 11px/1.4 var(--mono); }
.screen-tabs a { display: block; padding: 11px 20px; border-radius: 24px; color: #d3d3d1; transition: color .2s, background .2s; }
.screen-tabs a:hover { color: white; background: #ffffff12; }
.screen-tabs a[aria-selected='true'] { color: #171717; background: #e6e6e2; }
.screen-tabs a:focus-visible { outline-offset: 2px; }
.top-tools { display: flex; align-items: center; gap: 16px; font: 500 11px/1.5 var(--mono); }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 0; background: transparent; border: 0; }
.motion-label { display: none; }
#motion-glyph { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #f0efec55; border-radius: 50%; font: 10px var(--mono); }
.motion-toggle:hover #motion-glyph { background: #ffffff15; border-color: #f0efec; }
.langs { position: relative; padding-left: 16px; border-left: 1px solid #ffffff30; }
.lang { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; }
.lang svg { width: 12px; height: 12px; }
.lang-list { position: absolute; right: 0; top: 44px; width: 174px; padding: 8px; margin: 0; list-style: none; background: #242424; border: 1px solid #ffffff40; box-shadow: 0 12px 35px #0005; }
.lang-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px; cursor: pointer; font: 16px/1.4 var(--body); }
.lang-list li span { color: #c1c1c1; font: 10px var(--mono); }
.lang-list li.is-active, .lang-list li:hover { background: #ffffff12; }
.lang-list li[aria-selected='true'] { box-shadow: inset 2px 0 #ddd; }

.world-layout { min-height: 0; position: relative; }
.screen { padding: 38px var(--edge); }
.has-tabs .screen { height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #777 transparent; }
.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, 1fr) 34% minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 16px; color: var(--ink); }
.has-tabs .hero { min-height: 0; }
.hero-copy { grid-column: 1; align-self: start; }
.eyebrow { font: 400 10px/1.7 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
h1 { margin-top: 20px; font: 600 clamp(40px, 4.7vw, 78px)/1.02 var(--display); letter-spacing: -.065em; }
h1 span, h1 em { display: block; }
h1 em { font-style: normal; font-weight: inherit; }
.lede { max-width: 320px; margin-top: 22px; font-size: clamp(13px, 1.05vw, 16px); line-height: 1.75; }
.hero-actions { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 100%; min-height: 50px; padding: 14px 20px; background: #191919; border: 1px solid #171717; color: #f4f4f2; font: 500 11px/1.6 var(--mono); transition: background .2s; }
.button:hover { background: #333; }
.button .enter-spark { display: block; width: 20px; height: 34px; flex-shrink: 0; }
.hero-actions a { position: relative; }
.hero-actions .action-label { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 2; padding: 7px 10px; border: 1px solid #ffffff25; background: #171819; color: #f0f0eb; font: 400 10px/1.5 var(--mono); letter-spacing: 0; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .2s, transform .2s; }
.hero-actions a:hover .action-label, .hero-actions a:focus .action-label { opacity: 1; transform: translateY(0); }
.hero-actions .text-link .enter-spark { width: 20px; height: 34px; }
.button > span:last-child, .text-link > span:last-child { font: 18px/1 var(--body); }
.text-link { display: inline-flex; align-items: center; gap: 20px; max-width: 100%; width: fit-content; padding-block: 9px; font: 400 11px/1.6 var(--mono); border-bottom: 1px solid currentColor; }
.text-link:hover { opacity: .75; }
.hero-facts { grid-column: 3; grid-row: 2; align-self: center; color: var(--paper); }
.status { display: flex; align-items: center; gap: 9px; }
.status > span:first-child { flex: 0 0 5px; height: 5px; border-radius: 50%; background: #eee; }
.core-fact { margin-top: 14px; font: 400 clamp(18px, 1.65vw, 27px)/1.3 var(--display); letter-spacing: -.04em; }
.essence-note { margin-top: 10px; color: #c9c9c7; font-size: 11px; }

.detail-screen { display: flex; justify-content: flex-end; align-items: center; }
.detail-content { width: min(100%, 550px); padding: 36px 40px; border: 1px solid #ffffff24; background: #171717eb; box-shadow: 0 20px 70px #0002; backdrop-filter: blur(20px); }
.detail-content > .eyebrow { margin-bottom: 24px; color: #c2c2bf; }
.section-number { padding-right: 12px; color: #999; }
h2 { font: 500 clamp(30px, 2.7vw, 46px)/1.12 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.direction h2 span, .direction h2 em { display: block; }
.direction h2 em { margin-top: 9px; color: #bbb; font-style: normal; font-weight: 400; }
.direction-text { display: grid; gap: 16px; margin-top: 26px; }
.direction-text p, .method-steps p, .invite-body { color: #d3d3d0; font-size: 14px; line-height: 1.8; }
.direction .text-link { margin-top: 24px; }
.method-steps { display: grid; gap: 22px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.method-steps li { counter-increment: steps; display: flex; align-items: flex-start; gap: 18px; }
.method-steps li::before { content: '0' counter(steps); color: #a6a6a3; font: 10px/2.5 var(--mono); }
.method h3 { margin-bottom: 7px; font: 500 21px/1.2 var(--display); letter-spacing: -.025em; }
.research-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid #ffffff24; color: #bababa; font-size: 11px; }
.invite-body { margin-top: 26px; }
.stay { margin-top: 28px; }
.stay-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.stay input { flex: 1 1 180px; width: 100%; min-width: 0; padding: 15px 0; background: transparent; border: 0; border-bottom: 1px solid #e1e1dd99; color: var(--paper); font: 13px var(--mono); border-radius: 0; }
.stay input::placeholder { color: #cecece; opacity: 1; }
.stay input:focus { border-bottom-color: #fff; }
.stay button { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 12px 16px; background: #eeeeea; border: 1px solid #eeeeea; color: #171717; font: 11px/1.5 var(--mono); }
.stay button:hover { background: #fff; }
.stay button:disabled { opacity: .55; cursor: wait; }
.stay-note { min-height: 1.5em; margin-top: 14px; color: #e5e5e2; font-size: 13px; line-height: 1.6; }
.stay-note.is-bad { color: #ffb8a8; }
.stay-privacy { margin-top: 6px; color: #bcbcb9; font: 400 10px/1.8 var(--mono); }
.stay-privacy a { border-bottom: 1px solid #d0d0d080; }
.noscript-note { margin-top: 20px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 400 9px/1.6 var(--mono); }
.foot nav { display: flex; gap: 24px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.copyright { color: var(--ink); }

/* Scroll short detail panels internally, including at browser zoom. */
@media (max-height: 850px) { .detail-screen { align-items: flex-start; } .screen { padding-block: 20px; } .detail-content { margin-block: auto; padding: 28px 32px; } }
@media (min-width: 761px) and (max-height: 720px) {
  :root { --header: 78px; --footer: 44px; }
  .hero { grid-template-columns: minmax(0, 1fr) 36% minmax(0, 1fr); }
  h1 { font-size: clamp(36px, 4vw, 62px); margin-top: 12px; }
  .lede { margin-top: 14px; font-size: 13px; }
  .hero-actions { gap: 4px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  :root { --edge: 30px; }
  .top { gap: 18px; }
  .screen-tabs a { padding-inline: 15px; }
  .hero { grid-template-columns: minmax(0, 1fr) 28% minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --edge: 22px; --header: 128px; --footer: 44px; }
  .top { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 66px 52px; gap: 0; }
  .letters { width: 88px; }
  .top-tools { grid-column: 2; grid-row: 1; gap: 8px; }
  .langs { padding-left: 12px; }
  .screen-tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; justify-content: space-between; gap: 0; padding: 4px; }
  .screen-tabs a { flex: 1; text-align: center; padding: 10px 7px; font-size: 10px; }
  .screen { padding: 16px var(--edge); }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(50px, 1fr) auto auto; min-height: 660px; }
  .hero-copy { grid-column: 1; grid-row: 1; width: 100%; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: .06em; }
  h1 { margin-top: 12px; font-size: clamp(26px, 7.6vw, 46px); line-height: 1.08; }
  h1 span, h1 em { display: inline; }
  h1 span::after { content: ' '; }
  .lede { max-width: 330px; margin-top: 10px; font-size: 12px; line-height: 1.65; }
  .hero-facts { grid-column: 1; grid-row: 3; padding: 10px 14px; background: #151515d9; border: 1px solid #ffffff20; backdrop-filter: blur(12px); }
  .hero-facts .eyebrow { font-size: 8px; }
  .core-fact { margin-top: 6px; font-size: 17px; }
  .essence-note { margin-top: 5px; font-size: 10px; }
  .hero-actions { grid-column: 1; grid-row: 4; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
  .button { min-height: 46px; padding: 11px 13px; gap: 14px; font-size: 10px; }
  .hero-actions .text-link { color: var(--paper); font-size: 9px; gap: 10px; border-color: #ffffff80; }
  .detail-screen { align-items: flex-start; }
  .detail-content { width: 100%; margin: 0; padding: 26px 24px; }
  h2 { font-size: 32px; }
  .detail-content > .eyebrow { margin-bottom: 20px; }
  .direction-text p, .method-steps p, .invite-body { font-size: 13px; }
  .foot { gap: 12px; font-size: 8px; }
  .foot nav { gap: 12px; }
  .lunar-atmosphere { mask-image: url('images/iskra-tilted-mobile-20260927.webp'); }
}
@media (max-width: 380px) {
  :root { --edge: 16px; }
  .hero-actions { gap: 8px; }
  .button { gap: 10px; font-size: 9px; padding-inline: 10px; }
  .hero-actions .text-link { font-size: 8px; gap: 6px; }
  .detail-content { padding-inline: 20px; }
  .foot nav { gap: 9px; }
}
@media (max-width: 760px) and (max-height: 730px) {
  :root { --header: 114px; --footer: 34px; }
  .top { grid-template-rows: 56px 50px; }
  .screen { padding-block: 10px; }
  .hero { grid-template-rows: auto minmax(24px, 1fr) auto auto; }
  .hero-copy .eyebrow { display: none; }
  h1 { margin-top: 0; }
  .lede { margin-top: 9px; font-size: 11px; }
  .hero-facts { padding: 8px 12px; }
  .hero-actions { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Calm text areas leave the sculpture unobstructed. */
@media (min-width: 761px) {
  .site-landscape::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 33% 34% at 8% 20%, #cecececc, transparent 100%), radial-gradient(ellipse 27% 18% at 87% 86%, #111b, transparent 100%); }
  .lunar-atmosphere { mask-size: 100% 100%; }
}
@media (max-width: 760px) {
  .lunar-atmosphere { mask-size: 100% 100%; }
  .hero-actions .button { background: #eeeee9; border-color: #eeeee9; color: #171717; }
  .hero-actions .button:hover { background: #fff; }
  .copyright { color: #c5c5c2; }
}

/* The earlier layout shares the same outline-only actions. */
body:not(.spirit) .hero-actions { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
body:not(.spirit) .hero-actions .button, body:not(.spirit) .hero-actions .text-link { justify-content: center; width: 52px; height: 50px; min-height: 50px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); }
body:not(.spirit) .hero-actions .enter-spark { width: 24px; height: 48px; }
body:not(.spirit) .hero-actions .text-link .enter-spark { width: 20px; height: 38px; }
@media (max-width: 760px) {
  body:not(.spirit) .hero-actions .button, body:not(.spirit) .hero-actions .text-link { color: var(--paper); }
}
