/*
  "Three Sundays": the December group of the WAI AI practicum. English at /december, Russian at /december/ru.
  The language is that of waiwai.is and mikwiseman.com: Onest, a white canvas, hairlines, large light numerals,
  a title on the left and rows on the right, glow only at the start and at the end.
  This page's own idea: colour lives only in light. One small light travels through December,
  along the ruler in the header and down the hours of the hackathon.
*/

/* ---------- Font ---------- */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/Onest-wordmark.woff2") format("woff2"); unicode-range: U+0041, U+0049, U+0057; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/Onest-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/Onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/Onest-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/Onest-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; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --canvas: #ffffff; --paper: #f0f0f0; --card: #fafafa;
  --dark: #191919; --dark-2: #0f0f0f;
  --ink: #191919; --ink-2: #5b5b5b; --ink-3: #8d8d8d;
  --ink-07: rgba(25, 25, 25, .07); --ink-14: rgba(25, 25, 25, .14);
  --on-dark: #f0f0f0; --on-dark-2: rgba(240, 240, 240, .6); --on-dark-3: rgba(240, 240, 240, .38);
  --hair: rgba(25, 25, 25, .07); --hair-dark: rgba(255, 255, 255, .12);
  --school: #fac581; --adult: #ed9dc4;
  --glow-school: rgba(250, 197, 129, .55); --glow-school-soft: rgba(250, 197, 129, .25);
  --glow-adult: rgba(237, 157, 196, .45);

  --font-sans: "Onest", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wide: 1180px; --gut: clamp(20px, 4vw, 44px);
  --nav-h: 88px; --nav-h-s: 64px;
  --section-y: clamp(80px, 10.5vw, 152px);
  --lead-col: 168px;

  --line: 0 0 0 1px rgba(25, 25, 25, .10);
  --shadow-control: 0 1px 2px rgba(25, 25, 25, .06), 0 10px 24px -12px rgba(25, 25, 25, .28);
  --shadow-control-hover: 0 1px 2px rgba(25, 25, 25, .06), 0 14px 30px -12px rgba(25, 25, 25, .34);
  --shadow-dark-control: 0 12px 28px -14px rgba(25, 25, 25, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
  --shadow-card: 0 1px 2px rgba(25, 25, 25, .04), 0 30px 70px -38px rgba(25, 25, 25, .38);
  --shadow-window: 0 42px 64px -26px rgba(25, 25, 25, .10), 0 4px 12px -4px rgba(25, 25, 25, .045);

  --ease: cubic-bezier(.25, 1, .5, 1);
  --ease-expo: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.16, 1.42, .4, 1);
}
@media (max-width: 999px) { :root { --lead-col: 112px; --nav-h: 72px; } }
@media (max-width: 639px) { :root { --lead-col: 72px; --nav-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px / 1.5 var(--font-sans); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; font-synthesis: none; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
p, h1, h2, h3, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
i { font-style: normal; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(var(--wide), 100% - 2 * var(--gut)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.display { font-weight: 400; font-size: clamp(40px, 7.3vw, 100px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.h2 { font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.9vw, 23px); line-height: 1.45; letter-spacing: -.015em; color: var(--ink-2); text-wrap: balance; }
.eyebrow { font-size: 12px; line-height: 1.25; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.soft { color: var(--ink-3); }
.muted { color: var(--ink-2); text-wrap: pretty; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; box-shadow: var(--line), var(--shadow-control); transition: box-shadow .4s var(--ease), transform .4s var(--ease), background .2s var(--ease); }
.btn:hover { box-shadow: var(--line), var(--shadow-control-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: .2s; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-dark-control); }
.btn-primary:hover { background: var(--dark-2); box-shadow: var(--shadow-dark-control); }
.btn-s { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-l { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-s::after, .step-go::after, .tab::after { content: ""; position: absolute; inset: -9px -6px; }
.btn-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.arrow { width: 14px; height: 14px; flex: none; opacity: .7; transition: transform .4s var(--ease); }
a:hover > .arrow { transform: translate(3px, -3px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); transition: color .2s var(--ease); }
.text-link:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .62s var(--ease), transform .62s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- WAI glow ---------- */
.glow-host { position: relative; isolation: isolate; overflow: hidden; }
.glow {
  --g1: var(--glow-school); --g2: var(--glow-adult); --g3: var(--glow-school-soft);
  --g1-at: 22% 16%; --g2-at: 80% 24%; --g3-at: 52% 2%;
  position: absolute; inset: -10% -20% auto; height: min(760px, 110%); z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at var(--g1-at), var(--g1), color-mix(in srgb, var(--g1) 70%, transparent) 18%, color-mix(in srgb, var(--g1) 38%, transparent) 36%, color-mix(in srgb, var(--g1) 14%, transparent) 52%, color-mix(in srgb, var(--g1) 3%, transparent) 64%, transparent 70%),
    radial-gradient(34% 40% at var(--g2-at), var(--g2), color-mix(in srgb, var(--g2) 70%, transparent) 18%, color-mix(in srgb, var(--g2) 38%, transparent) 36%, color-mix(in srgb, var(--g2) 14%, transparent) 52%, color-mix(in srgb, var(--g2) 3%, transparent) 64%, transparent 70%),
    radial-gradient(30% 30% at var(--g3-at), var(--g3), color-mix(in srgb, var(--g3) 70%, transparent) 18%, color-mix(in srgb, var(--g3) 38%, transparent) 36%, color-mix(in srgb, var(--g3) 14%, transparent) 52%, color-mix(in srgb, var(--g3) 3%, transparent) 64%, transparent 70%);
  filter: blur(20px);
  transform: translate3d(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 18px), 0);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
.glow-bottom { inset: auto -20% -10%; height: 110%; --g1-at: 26% 86%; --g2-at: 76% 80%; --g3-at: 50% 100%; }
@keyframes glow-drift { to { scale: 1.05; translate: 2% -2%; } }

/* ---------- The light ---------- */
.orb { --d: 10px; position: relative; display: inline-block; flex: none; width: var(--d); height: var(--d); border-radius: 50%; isolation: isolate; }
.orb::before { content: ""; position: absolute; inset: -60%; z-index: -2; border-radius: 50%; background: radial-gradient(closest-side, rgba(237, 157, 196, .6), rgba(250, 197, 129, .34) 48%, transparent 74%); filter: blur(calc(var(--d) * .14)); }
.orb-body { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #fff7f0; box-shadow: inset 0 calc(var(--d) * -.1) calc(var(--d) * .24) rgba(237, 157, 196, .55), 0 0 0 .5px rgba(154, 74, 122, .18); }
.orb-body::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 200deg, #fbd3a0, #f3b0d0, #fde4c6, #f7c4dc, #fac581, #ed9dc4, #fbd3a0); filter: blur(calc(var(--d) * .14)); animation: orb-spin 22s linear infinite; }
.orb-body::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(58% 52% at 32% 24%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .45) 40%, transparent 70%); }
@keyframes orb-spin { to { transform: rotate(1turn); } }

/* ---------- Header and the ruler of December ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .4s var(--ease); }
.nav.is-scrolled { height: var(--nav-h-s); background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--hair); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.wordmark { font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 28px); margin-left: auto; }
.nav-links a, .nav-lang { font-size: 15px; color: var(--ink-2); transition: color .2s var(--ease); }
.nav-lang { padding: 12px 8px; margin: -12px -8px; }
.nav-links a:hover, .nav-links a.is-here, .nav-lang:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* 21 days from 30 November to 20 December. Long ticks are Sundays. The light stands on the day being read */
.ruler { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: flex; align-items: flex-end; justify-content: space-between; height: 12px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.nav.is-scrolled .ruler { opacity: 1; }
.ruler i { position: relative; width: 1px; height: 4px; background: var(--ink-14); }
.ruler i.is-beat { height: 6px; background: var(--ink-3); }
.ruler i.is-sun { height: 11px; background: var(--ink); }
.ruler i.is-sun::after { content: attr(data-d); position: absolute; right: 5px; bottom: 1px; font-size: 9.5px; line-height: 1; letter-spacing: 0; color: var(--ink-3); }
.ruler-dot { position: absolute; left: calc(var(--day, 0) / 20 * 100%); bottom: -5px; translate: -50% 0; display: block; line-height: 0; transition: left .5s var(--ease-expo); }

/* ---------- Hero ---------- */
.hero { margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + clamp(40px, 7vh, 96px)) 0 0; text-align: center; }
.hero .display { margin-top: 20px; }
.hero .display .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero .display .line > span { display: block; transform: translateY(105%); animation: line-up 1.1s var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 80ms); }
@keyframes line-up { to { transform: none; } }
.hero .lead { max-width: 620px; margin: 28px auto 0; }
.hero .btn-row { margin-top: 36px; }

.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; margin-top: clamp(56px, 6.6vw, 96px); text-align: left; }
.date a { position: relative; isolation: isolate; display: block; padding-top: 20px; border-top: 1px solid var(--hair); color: var(--ink-2); }
.date a::before { content: ""; position: absolute; z-index: -1; left: -16%; top: -6%; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(250, 197, 129, .7), rgba(237, 157, 196, .5) 46%, transparent 72%); filter: blur(34px); opacity: var(--lit, .4); transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px), 0); }
.date:nth-child(1) { --lit: .34; } .date:nth-child(2) { --lit: .58; --i: 1; } .date:nth-child(3) { --lit: .92; --i: 2; }
.date-num { display: block; color: var(--ink); font-size: clamp(84px, 17.4vw, 244px); line-height: .84; letter-spacing: -.065em; margin-left: -.045em; }
.date-title { display: block; margin-top: clamp(14px, 1.6vw, 24px); color: var(--ink); font-size: clamp(18px, 2vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.date-meta { display: block; margin-top: 4px; }
.date-meta .short { display: none; }

/* ---------- Title on the left, rows on the right ---------- */
.split { display: grid; gap: 28px 40px; }
.split-head > * + * { margin-top: 16px; }
@media (min-width: 1000px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split-head { grid-column: span 4; position: sticky; top: calc(var(--nav-h-s) + 40px); align-self: start; }
  .split-body { grid-column: span 8; }
}
.rows { border-bottom: 1px solid var(--hair); }
.row { display: grid; grid-template-columns: var(--lead-col) minmax(0, 1fr) auto; column-gap: 24px; align-items: baseline; padding-block: 20px; border-top: 1px solid var(--hair); }
.row-lead { color: var(--ink-3); white-space: nowrap; }
.row-main { min-width: 0; }
.row-title { display: block; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; text-wrap: pretty; }
.row-title-l { display: block; font-size: clamp(26px, 3.2vw, 40px); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.row-sub { display: block; max-width: 44ch; margin-top: 6px; color: var(--ink-2); text-wrap: pretty; }
.row-aside { text-align: right; font-weight: 500; white-space: nowrap; }
.row-plain { grid-template-columns: minmax(0, 1fr) auto; }
.row-pair { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
.row-pair .row-sub { margin-top: 0; max-width: none; }
.group-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.group-label b { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.group-label span { color: var(--ink-3); }
.group + .group { margin-top: clamp(48px, 5.6vw, 72px); }

.k { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-14); translate: 0 -1px; }
.k-lab { background: var(--school); box-shadow: none; }
.k-call { background: var(--adult); box-shadow: none; }
.k-quiet { background: var(--ink); box-shadow: none; }
.legend { display: grid; gap: 8px; margin-top: 28px; color: var(--ink-2); }

/* A short word on the left, a fact on the right */
.need { margin-top: 28px; border-bottom: 1px solid var(--hair); }
.need li { display: grid; grid-template-columns: var(--k, 72px) minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding-block: 10px; border-top: 1px solid var(--hair); color: var(--ink-2); text-wrap: pretty; }
.need b { font-weight: 500; color: var(--ink); }

/* Sundays */
.row-sun { position: relative; isolation: isolate; align-items: start; padding-block: clamp(26px, 3vw, 40px) clamp(30px, 3.4vw, 46px); border-top-color: var(--ink); scroll-margin-top: 120px; }
.row-sun::before { content: ""; position: absolute; z-index: -1; left: calc(var(--lead-col) * -.78); top: 50%; width: calc(var(--lead-col) * 2.4); aspect-ratio: 1; border-radius: 50%; translate: 0 -50%; background: radial-gradient(closest-side, rgba(250, 197, 129, .8), rgba(237, 157, 196, .5) 46%, transparent 72%); filter: blur(30px); opacity: 0; scale: .8; transition: opacity 1s var(--ease), scale 1.3s var(--ease); pointer-events: none; }
.row-sun.is-active::before { opacity: .85; scale: 1; }
.sun-num { font-size: clamp(72px, 10.4vw, 148px); line-height: .8; letter-spacing: -.07em; margin-left: -.05em; }
.row-sun .row-sub { margin-top: 12px; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.45; letter-spacing: -.015em; }
.row-sun .row-aside { padding-top: 10px; }

/* ---------- Labs ---------- */
.lab { display: grid; grid-template-columns: var(--lead-col) minmax(0, 1fr) 72px; column-gap: 24px; align-items: center; padding-block: 22px; border-top: 1px solid var(--hair); }
.lab .row-lead { align-self: start; padding-top: clamp(7px, 1vw, 15px); }
.lab-glyph { width: 72px; height: 44px; color: var(--ink); }
.lab-glyph svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lab-glyph .lit { fill: url(#light); stroke: none; }
.lab-glyph .lit-s { stroke: url(#light-s); }
.lab-glyph .faint { opacity: .22; }
.lab-glyph * { animation-play-state: paused; transform-box: fill-box; transform-origin: center; }
.rows.is-live .lab-glyph * { animation-play-state: running; }
.g-data .c { animation: g-blink 2.4s ease-in-out infinite; animation-delay: calc(var(--n) * 520ms); opacity: .2; }
@keyframes g-blink { 0%, 100% { opacity: .2; } 35%, 60% { opacity: 1; } }
.g-visual .sq { animation: g-rot 9s linear infinite; }
.g-visual .tri { animation: g-rot 12s linear infinite reverse; }
@keyframes g-rot { to { transform: rotate(1turn); } }
.g-audio .b { animation: g-wave 1.1s ease-in-out infinite; animation-delay: calc(var(--n) * -130ms); }
@keyframes g-wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.g-video .prog { stroke-dasharray: 40; stroke-dashoffset: 26; animation: g-prog 3.2s linear infinite; }
@keyframes g-prog { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.g-agents .run { offset-path: path("M14 31 36 12 58 31 14 31"); offset-distance: 12%; animation: g-run 3.6s linear infinite; transform-box: view-box; transform-origin: 0 0; }
.g-launch .run { offset-path: path("M10 35C28 35 42 27 60 8"); offset-distance: 78%; animation: g-fly 2.6s cubic-bezier(.4, 0, .2, 1) infinite; transform-box: view-box; transform-origin: 0 0; }
@keyframes g-run { to { offset-distance: 112%; } }
@keyframes g-fly { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 80% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.g-marketing .w { animation: g-cast 2.1s ease-out infinite; animation-delay: calc(var(--n) * 260ms); opacity: .25; }
@keyframes g-cast { 0%, 100% { opacity: .15; } 30% { opacity: 1; } }
.g-demo .ring { animation: g-ring 1.8s var(--ease) infinite; }
@keyframes g-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

/* ---------- Big numerals with a line under them ---------- */
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.num { padding-top: 20px; border-top: 1px solid var(--hair); }
.num-value { display: block; font-size: clamp(48px, 7.4vw, 96px); line-height: 1; letter-spacing: -.045em; }
.num-label { display: block; max-width: 18ch; margin-top: 14px; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.num-label.is-quiet { font-size: 15px; font-weight: 400; letter-spacing: -.011em; color: var(--ink-2); }
.num:nth-child(2) { --i: 1; } .num:nth-child(3) { --i: 2; }

/* ---------- App ---------- */
.phone-wrap { position: relative; isolation: isolate; display: grid; place-items: center; padding-block: 8px 24px; }
.phone-wrap::before { content: ""; position: absolute; z-index: -1; inset: 4% 6%; background: radial-gradient(closest-side, var(--glow-adult), var(--glow-school-soft) 54%, transparent 76%); filter: blur(34px); }
.phone { position: relative; width: 340px; max-width: 100%; aspect-ratio: 340 / 700; padding: 12px; border-radius: 54px; background: #fff; box-shadow: var(--line), var(--shadow-window), 0 60px 90px -54px rgba(154, 74, 122, .4); }
.screen { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 42px; background: var(--card); overflow: hidden; }
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 18px 10px; }
.coins { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.coins.is-pop .orb { animation: orb-pop .52s var(--pop); }
@keyframes orb-pop { 35% { transform: scale(1.7); } }
.screen-title { font-size: 13px; color: var(--ink-3); }
.screen-me { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font-size: 10.5px; font-weight: 500; }
.views { position: relative; flex: 1; min-height: 0; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 4px 18px 16px; overflow-y: auto; scrollbar-width: none; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.view::-webkit-scrollbar { display: none; }
.view.is-on { opacity: 1; transform: none; pointer-events: auto; }
.next-card { padding: 14px 0 0; border-top: 1px solid var(--ink); }
.next-card b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.next-bar { height: 2px; margin: 12px 0 8px; background: var(--ink-07); }
.next-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ink); transition: width .7s var(--ease); }
.next-card small { font-size: 11.5px; color: var(--ink-3); }
.app-list { border-bottom: 1px solid var(--hair); }
.app-row { display: flex; align-items: center; gap: 10px; padding-block: 10px; border-top: 1px solid var(--hair); }
.app-row > div { min-width: 0; flex: 1; }
.app-row b { display: block; font-size: 13px; font-weight: 500; line-height: 1.25; }
.app-row div > span { display: block; font-size: 11.5px; color: var(--ink-3); }
.app-row .date-sq { flex: none; width: 30px; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.app-row.is-big .date-sq { color: var(--ink); font-size: 20px; letter-spacing: -.05em; }
.app-label { margin: 10px 0 0; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.path { position: relative; display: grid; gap: 4px; padding: 8px 0; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 54px; padding-left: 50px; transition: opacity .4s var(--ease); }
.step::before { content: ""; position: absolute; left: 69.5px; top: -12px; height: 20px; border-left: 1px solid var(--ink-14); }
.step:first-child::before { display: none; }
.node { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-14); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease), transform .6s var(--pop); }
.node svg { display: none; width: 14px; height: 14px; }
.step-title { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.2; }
.step-sub { display: block; font-size: 11.5px; color: var(--ink-3); }
.step.is-done .node { background: var(--ink); color: #fff; box-shadow: none; }
.step.is-done .node svg { display: block; }
.step.is-done .node i { display: none; }
.step.is-now .node { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(250, 197, 129, .35), 0 0 22px 4px rgba(237, 157, 196, .5); transform: scale(1.06); }
.step.is-next { opacity: .55; }
.step-go { position: relative; display: none; align-items: center; gap: 7px; height: 30px; margin-top: 7px; padding: 0 12px 0 13px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font-size: 12px; font-weight: 500; box-shadow: var(--shadow-dark-control); transition: transform .4s var(--pop); }
.step-go:hover { transform: scale(1.05); }
.step-go .orb { --d: 8px; }
.step.is-now .step-go { display: inline-flex; }
.path-wolf { position: absolute; left: 0; top: 0; width: 42px; height: 42px; transform: translate(0, calc(var(--wy, 0) * 1px)); transition: transform .76s var(--ease-expo); pointer-events: none; }
.path-wolf img { width: 100%; height: 100%; }
.path-wolf.is-hop img { animation: wolf-hop .76s var(--ease); }
@keyframes wolf-hop { 40% { transform: translateY(-14px) rotate(-8deg); } }
.path-done { display: none; justify-content: center; padding: 8px 0 4px; }
.path.is-complete + .path-done { display: flex; }
.link-btn { font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.tabbar { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; height: 66px; padding: 0 20px 6px; background: #fff; box-shadow: 0 -1px 0 var(--hair); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-3); transition: color .2s var(--ease); }
.tab svg { width: 20px; height: 20px; }
.tab[aria-pressed="true"] { color: var(--ink); }
.tab-wolf { justify-self: center; width: 56px; height: 56px; margin-top: -22px; padding: 5px; border-radius: 50%; background: #fff; box-shadow: var(--line), 0 12px 28px -12px rgba(25, 25, 25, .14); transition: transform .4s var(--pop), box-shadow .4s var(--ease); }
.tab-wolf img { width: 100%; height: 100%; }
.tab-wolf[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--ink), 0 12px 28px -12px rgba(25, 25, 25, .14); }
.tab-wolf:hover { transform: scale(1.06); }

.reward { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; align-content: center; gap: 4px; background: rgba(250, 250, 250, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.reward.is-on { opacity: 1; }
.reward-wolf { position: relative; width: 128px; height: 128px; isolation: isolate; transform: scale(.7); transition: transform .64s var(--pop); }
.reward.is-on .reward-wolf { transform: none; }
.reward-wolf::before { content: ""; position: absolute; z-index: -1; inset: -34%; border-radius: 50%; background: radial-gradient(closest-side, rgba(250, 197, 129, .9), rgba(237, 157, 196, .4) 52%, transparent 74%); filter: blur(10px); }
.reward-sum { display: flex; align-items: center; gap: 10px; font-size: 40px; letter-spacing: -.045em; }
.reward-sum .orb { --d: 18px; }

/* ---------- Hackathon ---------- */
.hack { position: relative; isolation: isolate; overflow: hidden; margin-inline: clamp(8px, 1.4vw, 20px); border-radius: clamp(28px, 3.4vw, 48px); background: var(--dark); color: var(--on-dark); padding-block: clamp(80px, 10vw, 144px); --hair: var(--hair-dark); --ink-2: var(--on-dark-2); --ink-3: var(--on-dark-3); }
.hack::before { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -46%; height: 90%; background: radial-gradient(40% 60% at 28% 60%, rgba(250, 197, 129, .5), transparent 70%), radial-gradient(42% 60% at 74% 56%, rgba(237, 157, 196, .46), transparent 70%); filter: blur(30px); opacity: calc(.2 + .8 * var(--hp, 0)); }
.hack .eyebrow { color: var(--on-dark-3); }
.hack-num { display: block; font-size: clamp(96px, 15vw, 208px); line-height: .82; letter-spacing: -.07em; margin: 0 0 clamp(20px, 2.4vw, 36px) -.05em; }
.dayline { position: relative; }
.moment { transition: opacity .62s var(--ease); opacity: .38; }
.moment.is-lit { opacity: 1; }
.moment .row-lead { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.04em; line-height: 1.1; color: var(--on-dark); }
.moment .row-title { font-size: clamp(20px, 2vw, 26px); font-weight: 400; letter-spacing: -.025em; }
.dayline-track { position: absolute; left: -28px; top: calc(var(--t0, 0) * 1px); width: 1px; height: calc(var(--tl, 0) * 1px); background: var(--hair-dark); }
.dayline-track i { display: block; width: 100%; height: calc(var(--sun, 0) * 1px); background: linear-gradient(180deg, var(--school), var(--adult)); }
.dayline-sun { position: absolute; left: -28px; top: calc((var(--t0, 0) + var(--sun, 0)) * 1px); translate: -50% -50%; line-height: 0; }
.dayline-sun .orb { --d: 14px; display: block; }
.hack .nums { margin-top: clamp(64px, 8vw, 112px); }
.hack .num { border-top-color: var(--hair-dark); }
.hack .num small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); }
.hack .num b { display: block; margin-top: 14px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }

/* ---------- Mik and Grigoriy ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.person:nth-child(2) .photo { --i: 1; }
.sheet { border-radius: 24px; overflow: hidden; box-shadow: var(--line), var(--shadow-card); }
.photo { position: relative; aspect-ratio: 4 / 5; background: var(--paper); }
.photo img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); transform: translate3d(0, calc(var(--par, 0) * 1px), 0); scale: 1.06; opacity: 0; transition: scale 1.6s var(--ease-expo), opacity 1.2s var(--ease), filter .8s var(--ease); }
.photo.is-in img { scale: 1; opacity: 1; }
.person:hover .photo img { filter: none; }
.person-name { margin-top: 24px; font-weight: 400; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.035em; }
.person-role { margin-top: 8px; color: var(--ink-2); text-wrap: balance; }
.person .need { --k: 92px; margin-top: 22px; }
.logos { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 40px; align-items: center; margin-top: clamp(40px, 6vw, 80px); padding-block: 22px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.logos p { color: var(--ink-3); }
.logos ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: center; }
.logos img { width: auto; max-width: 100%; height: 26px; filter: brightness(0); opacity: .5; transition: opacity .3s var(--ease); }
.logos li:hover img { opacity: 1; }

/* ---------- Three packs: the bigger the pack, the more light ---------- */
.h3 { font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.03em; }
.sec-head { max-width: 560px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head > * + * { margin-top: 16px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.pack { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; padding-top: 20px; border-top: 1px solid var(--ink); }
.pack::before { content: ""; position: absolute; z-index: -1; left: -14%; top: 2%; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(250, 197, 129, .7), rgba(237, 157, 196, .5) 46%, transparent 72%); filter: blur(34px); opacity: var(--lit, .4); transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px), 0); pointer-events: none; }
.pack:nth-child(1) { --lit: .26; } .pack:nth-child(2) { --lit: .56; --i: 1; } .pack:nth-child(3) { --lit: .95; --i: 2; }
.pack-price { margin-top: 20px; font-size: clamp(52px, 6.6vw, 88px); line-height: .9; letter-spacing: -.06em; margin-left: -.03em; white-space: nowrap; }
.pack-for { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.pack-case { margin-top: 8px; max-width: 30ch; color: var(--ink-2); text-wrap: pretty; }
.pack-in { align-self: stretch; margin-top: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--hair); }
.pack-in li { padding-block: 10px; border-top: 1px solid var(--hair); }
.pack-in li + li { font-weight: 500; }
.pack .btn { margin-top: auto; }
.includes { margin-top: clamp(64px, 8vw, 112px); }

/* ---------- Final ---------- */
.final { min-height: min(92svh, 900px); display: flex; align-items: center; padding: clamp(72px, 9vw, 120px) 0; text-align: center; }
.final-wolf { position: relative; width: 200px; height: 200px; margin: 0 auto 32px; }
.final-wolf canvas, .final-wolf img { position: absolute; inset: 0; width: 100%; height: 100%; }
.final-wolf img { transition: opacity .4s var(--ease); }
.final-wolf.is-live img { opacity: 0; }
.final .display { font-size: clamp(40px, 6.2vw, 84px); }
.final .lead { max-width: 560px; margin: 24px auto 0; }
.final .btn-row { margin-top: 40px; }

.foot { position: relative; z-index: 1; background: #fff; border-top: 1px solid var(--hair); color: var(--ink-3); font-size: 14px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; }
.foot a { transition: color .2s var(--ease); }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; row-gap: 8px; }

/* ---------- Small screens ---------- */
@media (max-width: 999px) {
  .nav-links { display: none; }
  .logos { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .dayline-track, .dayline-sun { left: -14px; }
  .hack .split-body { padding-left: 14px; }
}
@media (max-width: 639px) {
  html { scroll-padding-top: 72px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .btn-row { flex-direction: column; align-items: stretch; gap: 12px; max-width: 340px; margin-inline: auto; }
  .dates { column-gap: 16px; }
  .date a { padding-top: 14px; }
  .date-meta .long { display: none; }
  .date-meta .short { display: inline; }
  .date-meta { font-size: 13px; }
  .row { column-gap: 14px; padding-block: 16px; }
  .row-aside { font-weight: 400; color: var(--ink-3); font-size: 14px; }
  .row-sun { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .row-sun .row-aside { padding-top: 0; text-align: left; }
  .row-sun::before { left: -20%; top: 0; translate: 0 -20%; width: 70%; }
  .sun-num { font-size: 104px; }
  .row-pair { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .group-label { flex-direction: column; gap: 2px; }
  .lab { grid-template-columns: var(--lead-col) minmax(0, 1fr) 44px; column-gap: 14px; padding-block: 16px; }
  .lab-glyph { width: 44px; height: 27px; }
  .nums { gap: 16px; }
  .num-label { font-size: 15px; }
  .num-label.is-quiet { font-size: 13px; }
  .hack .nums { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .phone { width: 318px; }
  .hack { margin-inline: 8px; }
  .people { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .packs { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .pack::before { width: 56%; left: -10%; }
  .pack-price { font-size: 72px; }
  .pack-case { max-width: none; }
  .logos ul { gap: 20px; }
  .logos img { height: 18px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) { .nav-right { gap: 12px; } .nav .btn-s { padding: 0 14px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .display .line > span { transform: none; }
  .row-sun::before { opacity: .85; scale: 1; }
  .moment { opacity: 1; }
  .photo img { scale: 1; opacity: 1; }
}
