/* fonts: self-hosted, Latin + Latin Extended-A */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.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; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/atkinson-hyperlegible-next-latin-wght-normal.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/fonts/jetbrains-mono-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/fonts/jetbrains-mono-latin-500-normal.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(/fonts/jetbrains-mono-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(/fonts/jetbrains-mono-latin-700-normal.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; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1120px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
}

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-block; border-radius: var(--radius-control); }
.logo img { height: 40px; width: auto; }
.logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* hero */
.hero {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 72px;
}
.copy { max-width: 540px; }
.copy > * + * { margin-top: 20px; }
.copy .eyebrow { margin: 0; }

h1 {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead { margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 28px; max-width: 470px; }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; line-height: 16px;
  color: var(--ink);
}
.tag::before { content: ""; width: 10px; height: 10px; border-radius: var(--radius-cell); background: var(--c); }

.soon {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--ink);
}
.pulse {
  position: relative; flex: none;
  width: 10px; height: 10px;
  border-radius: var(--radius-cell);
  background: var(--accent);
}
.pulse::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius-cell);
  background: var(--accent);
  animation: breathe 2.4s var(--ease-out) infinite;
}
@keyframes breathe {
  0% { transform: scale(1); opacity: .45; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* readiness board */
.board {
  --cell: 22px;
  --gap: 4px;
  position: relative;
  margin: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.board-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.count {
  font-family: var(--font-mono); font-weight: 700; font-size: 20px; line-height: 24px;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(10, var(--cell));
  grid-auto-rows: var(--cell);
  gap: var(--gap);
}
.cell {
  border-radius: var(--radius-cell);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.cell.on {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  animation: fill 300ms var(--ease-out);
}
.cell.first { animation: none; }
@keyframes fill {
  0% { transform: scale(.55); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

figcaption { display: grid; gap: 4px; margin-top: 18px; }
.motto { font-family: var(--font-heading); font-weight: 700; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.caption { color: var(--muted); font-size: 14px; line-height: 20px; }

/* mascot peeking over the card */
.kratek {
  position: absolute;
  right: 18px;
  top: -50px;
  width: 52px;
  height: 56px;
}
.kratek svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 160ms var(--ease-out); }
.k-happy { opacity: 0; }
.done .k-calm { opacity: 0; }
.done .k-happy { opacity: 1; }
.done .kratek { animation: hop 300ms var(--ease-out) 1; }
@keyframes hop { 50% { transform: translateY(-6px); } }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* stamp */
.stamp {
  position: absolute;
  left: 50%;
  top: calc(20px + 24px + 16px + (10 * var(--cell) + 9 * var(--gap)) / 2);
  display: grid; place-items: center; align-content: center; gap: 2px;
  width: 136px; height: 136px;
  margin: -68px 0 0 -68px;
  border-radius: 50%;
  color: var(--success);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 0 0 3px currentColor, inset 0 0 0 6px var(--surface), inset 0 0 0 7.5px currentColor;
  opacity: 0;
  transform: rotate(-6deg) scale(1.6);
  pointer-events: none;
}
.done .stamp {
  opacity: 1;
  transform: rotate(-6deg) scale(1);
  transition: opacity 120ms linear, transform var(--dur-stamp) var(--ease-out);
}
.stamp-word { font-family: var(--font-heading); font-weight: 800; font-size: 24px; line-height: 26px; letter-spacing: 0.04em; }
.stamp-num { font-family: var(--font-mono); font-weight: 700; font-size: 14px; line-height: 18px; font-variant-numeric: tabular-nums; }

/* footer */
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px;
  color: var(--muted);
}

/* entrance */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* layout: tablet and phone */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 72px; justify-items: start; }
  .board { justify-self: center; }
}
@media (max-width: 400px) {
  .board { --cell: 20px; --gap: 3px; padding: 16px; }
  .stamp { top: calc(16px + 24px + 16px + (10 * var(--cell) + 9 * var(--gap)) / 2); }
  .page { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .cell, .cell.on, .kratek svg, .done .stamp { animation: none; transition: none; }
  .done .kratek, .eyes, .pulse::after { animation: none; }
}
.t-html { --c: var(--tag-html); } .t-css { --c: var(--tag-css); } .t-js { --c: var(--tag-js); } .t-php { --c: var(--tag-php); } .t-sql { --c: var(--tag-sql); }
