:root {
  --paper: #f6f8fa;
  --surface: #ebedf0;
  --ink: #0b2e17;
  --muted: #2e5a3c;
  --l1: #9be9a8;
  --l2: #40c463;
  --l3: #30a14e;
  --l4: #216e39;
  --night: #0d1117;
  --sun: #ffee4a;
  --pumpkin: #fe9600;
  --dusk: #03001c;

  --display: "Stack Sans Headline", system-ui, sans-serif;
  --text: "Stack Sans Text", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.25rem, 6.4vw, 6.25rem);

  --margin: clamp(16px, 2.4vw, 36px);
  --radius: 6px;
  --cell-radius: 20%;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--l2); outline-offset: 3px; }
::selection { background: var(--l1); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.05; margin: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px;
  font-weight: 500;
  color: var(--paper); background: var(--ink);
  border: 0; border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.button:hover { background: var(--l4); }
.button:active { transform: scale(0.96); }
.button.small { height: 44px; padding: 0 18px; font-size: var(--step-small); }

.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--margin);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.02em;
  text-decoration: none;
}
.cell-glyph {
  width: 22px; height: 22px;
  background: var(--l2); border-radius: var(--cell-radius);
  transition: transform 300ms var(--ease-spring);
}
.wordmark:hover .cell-glyph { transform: rotate(90deg) scale(1.1); }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a, .footer nav a { position: relative; text-decoration: none; }
.nav nav a::after, .footer nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.nav nav a:hover::after, .footer nav a:hover::after { transform: scaleX(1); }
.nav-action {
  padding: 10px 18px;
  font-weight: 500; text-decoration: none;
  color: var(--paper); background: var(--ink);
  border-radius: var(--radius);
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.nav-action:hover { background: var(--l4); }
.nav-action:active { transform: scale(0.95); }

.hero {
  position: relative;
  min-height: calc(100svh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.hero-copy {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--margin);
  align-items: end;
  padding: clamp(24px, 6vh, 72px) var(--margin) 48px;
}
.hero h1 { grid-column: 1 / 8; font-size: var(--step-display); }
.hero-side { grid-column: 8 / 13; }
.hero .lead { margin: 0 0 28px; font-size: var(--step-lead); line-height: 1.4; }
.unwrap-row { display: flex; gap: 8px; max-width: 640px; }
.unwrap-row input, .unwrap-row select {
  height: 56px; padding: 0 18px;
  font-size: var(--step-body);
  background: var(--surface);
  border: 0; border-radius: var(--radius);
}
.unwrap-row input { flex: 1; min-width: 0; }
.unwrap-row select { width: 104px; }
.kind-tabs { display: flex; gap: 24px; margin-top: 16px; }
.kind-tabs label { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.kind-tabs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind-tabs span::before {
  content: ""; display: inline-block;
  width: 12px; height: 12px; margin-right: 8px;
  background: var(--surface); border-radius: var(--cell-radius);
  vertical-align: -1px;
  transition: background-color 200ms ease, transform 300ms var(--ease-spring);
}
.kind-tabs input:checked + span { color: var(--ink); font-weight: 500; }
.kind-tabs input:checked + span::before { background: var(--l3); transform: rotate(90deg); }
.kind-tabs input:focus-visible + span { outline: 3px solid var(--l2); outline-offset: 4px; }
.error { min-height: 1.5em; margin: 10px 0 0; color: #b42318; font-weight: 500; }

.graph-stage {
  align-self: end;
  min-width: 0;
  overflow: hidden;
}
.graph {
  width: max-content;
  margin-left: -12px;
  margin-bottom: -2.4vw;
  animation: drift var(--drift-time, 0s) ease-in-out infinite alternate;
}
.graph svg { display: block; }
.graph rect { fill: var(--surface); transform-box: fill-box; transform-origin: center; transition: fill 260ms ease; }
.graph rect.v1 { fill: var(--l1); }
.graph rect.v2 { fill: var(--l2); }
.graph rect.lit { fill: var(--ink); }
.graph rect.on { fill: var(--ink); animation: pop 420ms var(--ease-spring) both; animation-delay: calc(var(--k, 0) * 6ms); }
.graph.wave rect { animation: cell-in 600ms var(--ease-out) both; animation-delay: calc(var(--c) * 14ms + var(--r) * 40ms); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(var(--shift, 0)); } }
@keyframes pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes cell-in { from { opacity: 0; transform: scale(0.3); } }

.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in-view {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.showcase {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--margin);
  min-height: 88svh;
  padding: 160px var(--margin);
  align-items: stretch;
}
.plate-wrap { display: grid; align-content: center; gap: 12px; }
.plate {
  position: relative;
  width: 100%; aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--l1);
  border-radius: 6%;
  overflow: hidden;
}
.plate .mini-frame {
  position: relative;
  height: 86%; aspect-ratio: 9 / 16;
  border-radius: 3.5% / 2%;
  overflow: hidden;
  container-type: size;
}
.caption { margin: 0; font-size: var(--step-small); color: var(--muted); }
.js .shutter { clip-path: inset(100% 0 0 0); }
.js .shutter > * { transform: scale(1.12); }
.js .shutter.in-view { animation: shutter 1.1s var(--ease-out) forwards; }
.js .shutter.in-view > * { animation: settle 1.3s var(--ease-out) forwards; }
@keyframes shutter { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: none; } }
.plate.swap > * { animation: plate-swap 520ms var(--ease-spring); }
@keyframes plate-swap { from { opacity: 0; transform: translateY(6%) rotate(-3deg) scale(0.94); } }

.showcase-side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 4% 0; }
.text-tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.text-tabs button {
  padding: 4px 0; font-size: var(--step-body);
  color: var(--muted); background: none; border: 0;
  transition: color 160ms ease;
}
.text-tabs button:hover { color: var(--ink); }
.text-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.text-tabs button[aria-selected="true"]::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px;
  background: var(--l3); border-radius: var(--cell-radius);
}
.showcase-text h2 { font-size: var(--step-head); }
.showcase-text p { max-width: 34ch; margin: 32px 0 0; font-size: var(--step-lead); line-height: 1.4; }
.action-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.action-cell {
  display: flex; align-items: center; justify-content: center;
  height: 72px;
  font-weight: 700; text-decoration: none;
  border: 0; border-radius: var(--radius);
  transition: transform 160ms var(--ease-out), background-color 180ms ease;
}
.action-cell:active { transform: scale(0.97); }
.action-cell.ink { color: var(--paper); background: var(--ink); }
.action-cell.ink:hover { background: var(--l4); }
.action-cell.tone { color: var(--ink); background: var(--surface); }
.action-cell.tone:hover { background: var(--l1); }

.how { display: grid; grid-template-columns: repeat(4, 1fr); }
.field { position: relative; min-height: 84svh; padding: 28px; }
.field.l1 { background: var(--l1); }
.field.l2 { background: var(--l2); }
.field.l3 { background: var(--l3); }
.field.l4 { background: var(--l4); color: var(--paper); }
.field h2 { font-family: var(--display); font-weight: 500; font-size: var(--step-lead); }
.clause {
  position: absolute; left: 28px; right: 28px; bottom: 28px;
  margin: 0;
  font-family: var(--display); font-weight: 300;
  font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em;
}
.mini-card {
  position: absolute; top: 38%; left: 50%;
  width: min(304px, 88%);
  min-height: 216px;
  display: grid; gap: 10px; align-content: center;
  padding: 20px;
  color: var(--ink); background: var(--paper);
  border-radius: var(--radius);
  transform: translate(-50%, -50%);
  transition: transform 150ms var(--ease-out);
}
.field:hover .mini-card { transform: translate(-50%, calc(-50% - 6px)); }
.mini-input { display: flex; align-items: center; height: 44px; padding: 0 12px; background: var(--surface); border-radius: 4px; font-size: 1.0625rem; }
.caret { width: 2px; height: 1.2em; margin-left: 2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-label { font-weight: 700; }
.mini-row { display: flex; gap: 8px; align-items: center; }
.mini-tab { font-size: var(--step-small); color: var(--muted); }
.mini-tab.on { color: var(--ink); font-weight: 700; }
.mini-tab.on::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--l3); border-radius: var(--cell-radius); }
.mini-select { flex: 1; height: 40px; display: flex; align-items: center; padding: 0 12px; background: var(--surface); border-radius: 4px; font-size: var(--step-small); }
.mini-button { flex: 1.4; height: 40px; display: grid; place-items: center; color: var(--paper); background: var(--ink); border-radius: 4px; font-size: var(--step-small); font-weight: 700; }
.mini-rain, .mini-strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin-top: 6px; }
.mini-rain i, .mini-strip i { aspect-ratio: 1; border-radius: var(--cell-radius); background: var(--l2); }
.mini-rain i { animation: mini-drop 2.8s var(--ease-out) infinite; animation-delay: calc(var(--n, 0) * 90ms); }
.mini-rain i:nth-child(odd) { --n: 3; } .mini-rain i:nth-child(3n) { --n: 6; } .mini-rain i:nth-child(4n) { --n: 9; }
@keyframes mini-drop { 0% { transform: translateY(-24px); opacity: 0; } 25%, 80% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.mini-strip i { background: var(--surface); }
.mini-strip i.a { background: var(--l1); }
.mini-strip i.b { background: var(--l2); }
.mini-strip i.c { background: var(--l4); }
.mini-cells { display: flex; gap: 4px; }
.mini-cells i { flex: 1; aspect-ratio: 1; background: var(--l2); border-radius: var(--cell-radius); animation: fill-cell 2.4s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 120ms); }
.mini-cells i.off { background: var(--surface); }
.mini-cells i:nth-child(1) { --n: 0; } .mini-cells i:nth-child(2) { --n: 1; } .mini-cells i:nth-child(3) { --n: 2; }
.mini-cells i:nth-child(4) { --n: 3; } .mini-cells i:nth-child(5) { --n: 4; } .mini-cells i:nth-child(6) { --n: 5; }
.mini-cells i:nth-child(7) { --n: 6; }
@keyframes fill-cell { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.8); } }
.mini-meta { font-size: var(--step-small); color: var(--muted); }
.mini-big { font-family: var(--display); font-weight: 300; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; }
.mini-card.dark { background: var(--ink); color: var(--paper); }
.mini-card.dark .mini-meta { color: var(--l1); }
.mini-card.dark .mini-rain i { background: var(--l2); }
.mini-saved { justify-self: start; padding: 6px 10px; font-size: var(--step-small); font-weight: 700; background: var(--l1); border-radius: 4px; }

.band-title, .band {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  min-height: 20vh;
  padding: 24px var(--margin);
}
.band-title { display: flex; font-size: var(--step-head); }
.band {
  background: var(--paper);
  transition: background-color 360ms var(--ease-out);
  cursor: pointer;
}
.band-sentence {
  margin: 0;
  font-family: var(--display); font-weight: 300;
  font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.022em;
  color: var(--muted);
  transition: color 300ms ease;
}
.band-more { display: none; max-width: 60ch; margin: 14px 0 0; }
.band.on .band-sentence { color: var(--ink); }
.band.on .band-more { display: block; animation: rise-in 420ms var(--ease-out); }
.band.on[data-setting="org"] { background: var(--l1); }
.band.on[data-setting="private"] { background: var(--sun); }
.band.on[data-setting="lastYear"] { background: var(--l2); }
.band.on[data-setting="slow"] { background: var(--pumpkin); }
.band.on[data-setting="sound"] { background: var(--l3); }
.band.on[data-setting="haptics"] { background: var(--sun); }
.band-more input {
  display: block; width: min(420px, 100%); height: 52px; margin: 6px 0 10px; padding: 0 16px;
  background: var(--paper); border: 0; border-radius: var(--radius);
}
.token-label { font-weight: 700; }
.band-more p { margin: 0; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } }

.switch {
  position: relative;
  width: 96px; height: 52px; padding: 0;
  background: var(--surface);
  border: 0; border-radius: 12px;
  transition: background-color 260ms ease;
}
.switch i {
  position: absolute; top: 6px; left: 6px;
  width: 40px; height: 40px;
  background: var(--ink); border-radius: 9px;
  transition: transform 420ms var(--ease-spring), background-color 260ms ease;
}
.switch:active i { transform: scale(0.9); }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"] i { background: var(--l2); transform: translateX(44px) rotate(90deg); }

.faq {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--margin);
  padding: 160px var(--margin) 160px;
}
.faq h2 { grid-column: 1 / 5; align-self: start; position: sticky; top: 96px; font-size: var(--step-head); }
.tiles { grid-column: 5 / 13; display: grid; gap: 8px; }
.tiles details {
  background: var(--surface);
  border-radius: var(--radius);
  transition: background-color 260ms ease;
}
.tiles details[open] { background: var(--l2); }
.tiles summary {
  position: relative;
  min-height: 72px; padding: 22px 72px 22px 24px;
  font-size: var(--step-lead); font-weight: 500; line-height: 1.2;
  list-style: none; cursor: pointer;
}
.tiles summary::-webkit-details-marker { display: none; }
.tiles summary::before, .tiles summary::after {
  content: ""; position: absolute; right: 28px; top: 34px;
  width: 16px; height: 3px; background: currentColor; border-radius: 2px;
  transition: transform 300ms var(--ease-spring);
}
.tiles summary::after { transform: rotate(90deg); }
.tiles details[open] summary::after { transform: rotate(0deg); }
.tiles summary:hover::before { transform: scaleX(1.25); }
.tiles details p { max-width: 52ch; margin: 0; padding: 0 24px 24px; }
.tiles details[open] p { animation: rise-in 360ms var(--ease-out); }

.footer { padding: 48px var(--margin) 28px; color: var(--paper); background: var(--ink); }
.block-mark { display: flex; align-items: flex-end; gap: 4px; height: 34svh; }
.block-mark span {
  flex: 1; height: var(--h);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 2%;
  font-family: var(--display); font-weight: 500; font-size: min(11vw, 22svh); line-height: 0.8;
  color: var(--ink);
  border-radius: var(--radius);
  transform-origin: bottom;
  transition: transform 320ms var(--ease-spring);
}
.block-mark span:hover { transform: scaleY(1.06); }
.js .block-mark span { transform: scaleY(0); }
.js .block-mark.in-view span { transform: none; transition: transform 700ms var(--ease-spring); transition-delay: calc(var(--i) * 70ms); }
.footer-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--margin); margin-top: 56px; }
.footer nav { grid-column: 1 / 9; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.footer-cols p { grid-column: 9 / 13; margin: 0; color: var(--l1); }
.credit {
  color: var(--paper); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--l2); text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.credit:hover { color: var(--l2); text-decoration-color: var(--paper); }
.footer-last { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; font-size: var(--step-small); color: var(--l1); }
.footer .button { color: var(--ink); background: var(--l2); }
.footer .button:hover { background: var(--l1); }

.loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 24px; background: var(--paper); }
.loader { display: grid; grid-template-columns: repeat(7, 18px); gap: 4px; }
.loader i { aspect-ratio: 1; border-radius: var(--cell-radius); background: var(--surface); animation: load-wave 1.4s ease-in-out infinite; animation-delay: calc(var(--d) * 70ms); }
@keyframes load-wave { 0%, 100% { background: var(--surface); transform: scale(0.85); } 40% { background: var(--l3); transform: scale(1); } 60% { background: var(--l2); } }
#loading-text { margin: 0; font-size: var(--step-lead); }

.story { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: var(--dusk); }
.frame {
  position: relative;
  width: 100%; height: 100dvh;
  overflow: hidden;
  container-type: size;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
@media (min-width: 600px) {
  .frame { width: min(460px, calc((100dvh - 48px) * 9 / 16)); height: calc(100dvh - 48px); border-radius: 18px; }
}
.progress { position: absolute; z-index: 5; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 4px; }
.progress span { flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--pfg, #fff) 28%, transparent); }
.progress i { display: block; height: 100%; width: 0; background: var(--pfg, #fff); }
.story-close {
  position: absolute; z-index: 5; top: calc(max(12px, env(safe-area-inset-top)) + 16px); right: 12px;
  width: 40px; height: 40px;
  font-size: 22px; line-height: 1;
  color: var(--pfg, #fff); background: color-mix(in srgb, var(--pfg, #fff) 14%, transparent);
  border: 0; border-radius: 10px;
  transition: transform 160ms var(--ease-out);
}
.story-close:active { transform: scale(0.9); }
.story-sound {
  position: absolute; z-index: 5; top: calc(max(12px, env(safe-area-inset-top)) + 16px); right: 60px;
  width: 40px; height: 40px;
  display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  padding: 11px 9px;
  background: color-mix(in srgb, var(--pfg, #fff) 14%, transparent);
  border: 0; border-radius: 10px;
  transition: transform 160ms var(--ease-out);
}
.story-sound:active { transform: scale(0.9); }
.story-sound i { width: 6px; height: 6px; border-radius: 2px; background: var(--pfg, #fff); transform-origin: bottom; }
.story-sound.playing i { animation: eq 900ms ease-in-out infinite alternate; }
.story-sound.playing i:nth-child(2) { animation-delay: -300ms; animation-duration: 700ms; }
.story-sound.playing i:nth-child(3) { animation-delay: -600ms; animation-duration: 1100ms; }
.story-sound:not(.playing):not(.muted) { animation: nudge 1.6s ease-in-out infinite; }
.story-sound.muted i { opacity: 0.45; }
.story-sound.muted::after { content: ""; position: absolute; width: 26px; height: 3px; background: var(--pfg, #fff); border-radius: 2px; transform: rotate(-45deg); top: 18px; }
@keyframes eq { from { transform: scaleY(1); } to { transform: scaleY(3); } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.12); } }

.wipe { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(11, 1fr); pointer-events: none; }
.wipe i { background: var(--wipe, #000); border-radius: 22%; transform: scale(0); }
.wipe.cover i { animation: wipe-in 340ms var(--ease-out) both; animation-delay: calc((var(--x) + var(--y)) * 16ms); }
.wipe.uncover i { transform: scale(1.06); animation: wipe-out 380ms var(--ease-out) both; animation-delay: calc((var(--x) + var(--y)) * 16ms); }
@keyframes wipe-in { from { transform: scale(0) rotate(-45deg); } to { transform: scale(1.06); } }
@keyframes wipe-out { from { transform: scale(1.06); } to { transform: scale(0) rotate(45deg); } }

.confetti { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.frame.party .slide.active .say .w > span { animation: party-hop 520ms var(--ease-spring) both; animation-delay: calc(var(--i) * 70ms); }
.frame.party .slide.active .share-card { animation: card-pulse 600ms var(--ease-spring) both; }
@keyframes party-hop { 0% { transform: none; } 40% { transform: translateY(-28%) rotate(-6deg); } 100% { transform: none; } }
@keyframes card-pulse { 0% { transform: none; } 35% { transform: scale(1.04) rotate(-1deg); } 100% { transform: none; } }

.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2.4cqh;
  padding: 11cqh 7cqw 6cqh;
  overflow: hidden;
  color: var(--fg); background: var(--bg);
  visibility: hidden;
}
.slide.active { visibility: visible; }
.slide > * { position: relative; z-index: 1; margin: 0; }
.slide .giant {
  position: absolute; z-index: 0;
  width: 86cqh; aspect-ratio: 1;
  right: -42cqh; bottom: -38cqh;
  background: var(--tone);
  border-radius: var(--cell-radius);
  pointer-events: none;
}
.slide.active .giant { animation: giant-in 1.4s var(--ease-out) both, giant-turn 16s linear 1.4s infinite; }
@keyframes giant-in { from { transform: translate(18cqh, 18cqh) rotate(-20deg) scale(0.7); } }
@keyframes giant-turn { to { transform: rotate(360deg); } }

.theme-paper { --bg: var(--paper); --fg: var(--ink); --soft: #3f6a4c; --cell: var(--l2); --tone: var(--surface); }
.theme-l1 { --bg: var(--l1); --fg: var(--ink); --soft: #1d5a31; --cell: var(--l4); --tone: #8bdc99; }
.theme-l2 { --bg: var(--l2); --fg: #04200e; --soft: #0d4122; --cell: var(--ink); --tone: #3ab65a; }
.theme-l3 { --bg: var(--l3); --fg: #03170a; --soft: #0a351a; --cell: var(--l1); --tone: #2b9447; }
.theme-l4 { --bg: var(--l4); --fg: var(--paper); --soft: #c8efd1; --cell: var(--l1); --tone: #1d6433; }
.theme-deep { --bg: var(--ink); --fg: var(--paper); --soft: var(--l1); --cell: var(--l2); --tone: #10391e; }
.theme-night { --bg: var(--night); --fg: #e6edf3; --soft: #9da7b3; --cell: #39d353; --tone: #161b22; }
.theme-sun { --bg: var(--sun); --fg: var(--dusk); --soft: #4d4300; --cell: var(--pumpkin); --tone: #f4e33c; }
.theme-pumpkin { --bg: var(--pumpkin); --fg: var(--dusk); --soft: #3a2100; --cell: var(--sun); --tone: #f28d00; }

.say { font-size: min(5.4cqh, 9.6cqw); line-height: 1.05; }
.say.xl { font-size: min(8cqh, 14cqw); }
.say .soft { color: var(--soft); }
.say-sm { font-family: var(--display); font-weight: 300; font-size: min(3.4cqh, 6cqw); line-height: 1.15; letter-spacing: -0.015em; }
.num {
  font-family: var(--display); font-weight: 300;
  font-size: min(17cqh, calc(150cqw / var(--len, 4))); line-height: 0.85; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  transform-origin: left bottom;
}
.lead { font-size: min(2.4cqh, 4.4cqw); line-height: 1.4; }
.note { font-size: min(1.9cqh, 3.6cqw); color: var(--soft); }

.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; }
.slide.active .w > span { animation: word-up 720ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes word-up { from { transform: translateY(110%) rotate(6deg); } }
.slide.active .rise { animation: rise-in 640ms var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.slide.active .slide-in { animation: slide-in 640ms var(--ease-spring) both; animation-delay: calc(var(--i) * 90ms + 100ms); }
@keyframes slide-in { from { opacity: 0; transform: translateX(30%); } }
.slide.active .bounce { animation: bounce-in 900ms var(--ease-spring) both; animation-delay: 380ms; }
@keyframes bounce-in { from { opacity: 0; transform: scale(0.3) rotate(-8deg); } }
.slide.active .pop { animation: avatar-pop 800ms var(--ease-spring) both; }
@keyframes avatar-pop { from { transform: scale(0) rotate(-30deg); } }

.avatar {
  width: min(16cqh, 30cqw); aspect-ratio: 1;
  border-radius: var(--cell-radius);
  object-fit: cover;
}
.initial {
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 500;
  color: var(--bg); background: var(--cell);
}
.avatar.initial { font-size: min(9cqh, 16cqw); }

.rain { display: flex; flex-wrap: wrap-reverse; gap: 0.7cqh; width: 100%; }
.rain i { width: 3.2cqh; aspect-ratio: 1; border-radius: var(--cell-radius); background: var(--cell); }
.slide.active .rain i { animation: drop 900ms cubic-bezier(0.5, 0, 0.6, 1.3) both; animation-delay: calc(var(--i) * 9ms + 500ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-80cqh) rotate(calc(var(--r) * 9deg)); } 40% { opacity: 1; } }

.streak { display: flex; flex-wrap: wrap; gap: 0.6cqh; }
.streak i { width: 2.8cqh; aspect-ratio: 1; border-radius: var(--cell-radius); background: var(--fg); opacity: 0.18; }
.slide.active .streak i { animation: light 300ms ease both; animation-delay: calc(var(--i) * 18ms + 500ms); }
@keyframes light { to { opacity: 1; background: var(--dusk); } }

.year-grid {
  display: grid;
  grid-template-rows: repeat(7, auto);
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-flow: column;
  gap: 0.35cqw;
}
.year-grid i { aspect-ratio: 1; border-radius: 22%; background: #161b22; }
.year-grid i.pad { visibility: hidden; }
.year-grid .v1 { background: #0e4429; }
.year-grid .v2 { background: #006d32; }
.year-grid .v3 { background: #26a641; }
.year-grid .v4 { background: #39d353; }
.slide.active .year-grid i { animation: cell-in 420ms var(--ease-out) both; animation-delay: calc(var(--c) * 16ms + 300ms); }

.lang-rows { list-style: none; padding: 0; display: grid; gap: 2cqh; }
.lang-label { display: flex; justify-content: space-between; font-weight: 700; font-size: min(2.2cqh, 4cqw); margin-bottom: 0.8cqh; }
.lang-label b { font-variant-numeric: tabular-nums; }
.lang-cells { display: grid; grid-template-columns: repeat(20, 1fr); gap: 0.6cqw; }
.lang-cells i { aspect-ratio: 1; border-radius: 22%; background: #21262d; }
.lang-cells i.on { background: var(--lang); }
.slide.active .lang-cells i.on { animation: cell-in 360ms var(--ease-spring) both; animation-delay: calc(var(--i) * 90ms + var(--j) * 28ms + 400ms); }

.podium { list-style: none; padding: 0; display: grid; gap: 1.6cqh; }
.podium li { display: grid; grid-template-columns: auto 1fr; column-gap: 3cqw; align-items: baseline; }
.podium .repo { grid-column: 1 / -1; font-family: var(--display); font-size: min(3.4cqh, 6cqw); line-height: 1.05; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.podium .meta { grid-column: 1 / -1; font-size: min(1.9cqh, 3.6cqw); color: var(--soft); }
.podium .first .repo { font-size: min(7cqh, 12cqw); font-weight: 500; }
.podium.people li { grid-template-columns: auto 1fr; align-items: center; }
.podium.people .face { grid-row: span 2; width: min(5cqh, 9cqw); aspect-ratio: 1; border-radius: var(--cell-radius); object-fit: cover; }
.podium.people .first .face { width: min(9cqh, 16cqw); }
.podium.people .repo, .podium.people .meta { grid-column: 2; }
.face.initial { font-size: min(3cqh, 5cqw); }

.figures { list-style: none; padding: 0; display: grid; gap: 1.2cqh; font-size: min(2.6cqh, 4.8cqw); }
.figures b { font-family: var(--display); font-weight: 300; font-size: min(6.4cqh, 11.5cqw); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-right: 0.15em; }

.stacks { display: grid; grid-template-columns: repeat(var(--n), 1fr); align-items: end; gap: 1.2cqw; }
.stack { display: flex; flex-direction: column-reverse; gap: 0.7cqh; align-items: stretch; }
.stack i { aspect-ratio: 1; border-radius: 22%; background: color-mix(in srgb, var(--fg) 30%, var(--bg)); }
.stack.hot i { background: var(--cell); }
.stack span { order: -1; margin-top: 0.6cqh; text-align: center; font-size: min(1.7cqh, 3.2cqw); color: var(--soft); }
.slide.active .stack i { animation: cell-in 380ms var(--ease-spring) both; animation-delay: calc(var(--i) * 50ms + var(--j) * 40ms + 400ms); }
.stacks.duo { grid-template-columns: repeat(2, 1fr); gap: 6cqw; }
.stacks.duo .stack { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; direction: ltr; align-content: end; gap: 0.7cqh; }
.stacks.duo .stack i { order: 0; }
.stacks.duo .stack span { grid-column: 1 / -1; order: 1; text-align: left; font-size: min(2cqh, 3.8cqw); }
.stacks.duo .stack span b { display: block; font-family: var(--display); font-weight: 300; font-size: min(3.6cqh, 6.4cqw); color: var(--fg); }
.stacks.clock { gap: 0.6cqw; }
.stacks.clock .stack { gap: 0.4cqh; }
.stacks.week { gap: 2.4cqw; }
.stacks.week .stack span { font-size: min(1.7cqh, 3.2cqw); }
.axis { display: flex; justify-content: space-between; margin-top: -1cqh; font-size: min(1.7cqh, 3.2cqw); color: var(--soft); }

.stickers { display: flex; flex-wrap: wrap; gap: 1.4cqh 2cqw; }
.sticker {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  padding: 1.2cqh 3.4cqw;
  font-weight: 700; font-size: min(2.6cqh, 4.8cqw);
  color: var(--ink); background: var(--l1);
  border-radius: 10px;
  transform: rotate(var(--r));
}
.sticker:nth-child(2) { background: var(--sun); }
.sticker:nth-child(3) { background: var(--pumpkin); }
.sticker:nth-child(4) { background: var(--l2); }
.sticker:nth-child(5) { background: var(--ink); color: var(--paper); }
.sticker b { font-weight: 400; font-variant-numeric: tabular-nums; }
.slide.active .sticker { animation: stick 700ms var(--ease-spring) both; animation-delay: calc(var(--i) * 120ms + 600ms); }
@keyframes stick { from { opacity: 0; transform: scale(2.2) rotate(calc(var(--r) * -3)); } }

.party-faces { display: flex; flex-wrap: wrap; gap: 1.2cqh; }
.party-faces .face { width: min(8cqh, 15cqw); aspect-ratio: 1; border-radius: var(--cell-radius); object-fit: cover; display: block; }
.party-faces .face.initial { font-size: min(4cqh, 7cqw); }
.party-faces .pop { display: block; }
.slide.active .party-faces .pop { animation: avatar-pop 700ms var(--ease-spring) both; animation-delay: calc(var(--i) * 90ms + 80ms); }
.awards { list-style: none; padding: 0; display: grid; gap: 1.2cqh; }
.awards .sticker { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 3cqw; padding: 1.3cqh 4cqw; }
.awards .sticker span { grid-column: 1 / -1; font-size: min(1.8cqh, 3.4cqw); font-weight: 500; opacity: 0.85; }
.awards .sticker b { font-weight: 700; font-size: min(2.6cqh, 4.8cqw); overflow-wrap: anywhere; }
.awards .sticker em { font-style: normal; font-size: min(1.9cqh, 3.6cqw); text-align: right; }
.card-drop { transform-origin: 50% 0; }
.slide.active .card-drop { animation: card-drop 1s var(--ease-spring) both; animation-delay: 250ms; }
@keyframes card-drop { from { opacity: 0; transform: translateY(-30cqh) rotate(-14deg); } }

.share-card { padding: 20px 22px; color: var(--paper); background: var(--ink); border-radius: 14px; }
.share-card header, .ig-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-avatar { width: 44px; height: 44px; border-radius: var(--cell-radius); object-fit: cover; flex: none; }
.card-avatar.initial { font-size: 22px; color: var(--ink); background: var(--l2); }
.share-card header b, .ig-card header b { display: block; font-size: 17px; line-height: 1.2; }
.share-card dt, .ig-card dt, .share-card header span, .ig-card header span { line-height: 1.3; }
.share-card header span, .ig-card header span { font-size: 13px; color: var(--l1); }
.share-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.share-card dl > div { min-width: 0; }
.share-card dt, .ig-card dt { font-size: 13px; color: var(--l1); }
.share-card dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.15; overflow-wrap: break-word; }
.card-credit { margin: 12px 0 0; font-size: 12px; color: var(--l1); }
.ig-card .card-credit { margin-top: 16px; color: #0d4122; }
.card-grid { gap: 2px; }
.card-grid i { background: #174227; animation: none !important; }
.card-grid .v1 { background: #2f7a45; }
.card-grid .v2 { background: var(--l3); }
.card-grid .v3 { background: var(--l2); }
.card-grid .v4 { background: var(--l1); }
.card-stacks { grid-template-columns: repeat(var(--n), minmax(0, 22px)); justify-content: start; gap: 4px; }
.card-stacks .stack { gap: 3px; }
.card-stacks .stack i { background: #2f7a45; animation: none !important; }
.card-stacks .stack.hot i { background: var(--l2); }

.share-actions { display: flex; gap: 8px; }
.share-actions button {
  flex: 1; min-height: 50px; padding: 12px;
  font-weight: 700;
  border: 0; border-radius: var(--radius);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.share-actions button:active { transform: scale(0.96); }
.share-actions .solid { color: var(--bg); background: var(--fg); }
.share-actions .ghost { color: var(--fg); background: color-mix(in srgb, var(--fg) 14%, transparent); }
.share-actions .ghost:hover { background: color-mix(in srgb, var(--fg) 22%, transparent); }
.share-actions button:disabled { opacity: 0.6; cursor: progress; }
.share-actions .video { background: var(--ink); color: var(--l1); }
.share-status { min-height: 1.2em; font-size: min(1.9cqh, 3.6cqw); text-align: center; }

.offscreen { position: fixed; left: -10000px; top: 0; }
.offscreen .share-card { width: 400px; }
.ig-card {
  width: 360px; height: 640px;
  display: flex; flex-direction: column;
  padding: 40px 28px 28px;
  color: #04200e; background: var(--l2);
  font-family: var(--text);
}
.ig-card header span, .ig-card dt { color: #0d4122; }
.ig-card .card-avatar.initial { color: var(--l2); background: var(--ink); }
.ig-label { margin: auto 0 0; font-size: 15px; font-weight: 700; }
.ig-huge { margin: 0 0 24px; font-family: var(--display); font-weight: 300; font-size: 92px; line-height: 0.9; letter-spacing: -0.05em; }
.ig-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin: 0 0 24px; }
.ig-card dd { margin: 2px 0 0; font-size: 19px; font-weight: 700; line-height: 1.1; overflow-wrap: break-word; }
.ig-card .card-grid i { background: #36ad57; }
.ig-card .card-grid .v1 { background: #2a8a44; }
.ig-card .card-grid .v2 { background: var(--l4); }
.ig-card .card-grid .v3 { background: #164d28; }
.ig-card .card-grid .v4 { background: var(--ink); }
.ig-card .card-stacks .stack i { background: #2a8a44; }
.ig-card .card-stacks .stack.hot i { background: var(--ink); }

.mini-frame .slide { visibility: visible; }
.mini-frame .slide .rain i { width: 2.8cqh; }

@media (max-width: 760px) {
  .nav { gap: 16px; }
  .nav nav { display: none; }
  .nav-action { margin-left: auto; }
  .hero { min-height: calc(100svh - 76px); }
  .hero-copy { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 32px; }
  .hero h1, .hero-side { grid-column: 1; }
  .hero h1 { font-size: 11.5vw; }
  .hero .lead { font-size: var(--step-body); margin: 0 0 22px; }
  .unwrap-row { flex-wrap: wrap; }
  .unwrap-row input { flex-basis: 100%; }
  .unwrap-row select { flex: 1; }
  .unwrap-row .button { flex: 2; }

  .showcase { grid-template-columns: 1fr; padding: 120px 16px; gap: 28px; }
  .showcase-side { padding: 0; gap: 28px; }
  .showcase-text h2 { font-size: 1.75rem; }
  .action-cells { grid-template-columns: 1fr; }
  .action-cell { height: 60px; }

  .how { grid-template-columns: 1fr; }
  .field { min-height: 0; padding: 40px 20px 48px; display: flex; flex-direction: column; gap: 28px; }
  .clause { position: static; order: -1; }
  .field h2 + .mini-card, .field h2 ~ .clause { order: 0; }
  .mini-card { position: static; transform: none; }
  .field:hover .mini-card { transform: translateY(-6px); }

  .band-title, .band { min-height: 132px; padding: 20px 16px; }
  .band-sentence { font-size: 7vw; }
  .switch { width: 72px; height: 44px; }
  .switch i { width: 32px; height: 32px; }
  .switch[aria-checked="true"] i { transform: translateX(28px) rotate(90deg); }

  .faq { grid-template-columns: 1fr; padding: 120px 16px; gap: 24px; }
  .faq h2, .tiles { grid-column: 1; }
  .faq h2 { position: static; font-size: 9vw; }
  .tiles { gap: 6px; }
  .tiles summary { min-height: 64px; font-size: var(--step-body); }

  .block-mark { height: 22svh; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer nav, .footer-cols p { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .reveal, .js .shutter, .js .shutter > * { opacity: 1; transform: none; clip-path: none; }
  .js .block-mark span { transform: none; }
  .graph { animation: none; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .how { grid-template-columns: 1fr 1fr; }
  .field { min-height: 60svh; }
}
