@font-face {
  font-family: Sora;
  src: url(assets/sora-regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Sora;
  src: url(assets/sora-semibold.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ---------- Shared tokens (hero.css and nine.css rely on these names) ---------- */
:root {
  --sumi: #0c0c0e;
  --night: #14131b;
  --night-2: #1c1b25;
  --washi: #f8f7f4;
  --paper: #efece4;
  --shu: #e3232c;
  --shu-deep: #b4161f;
  --shu-glow: #ff6a5c;
  --gold: #c8a561;
  --on-dark: #f8f7f4;
  --on-dark-mute: #b5b1a8;
  --on-light: #0c0c0e;
  --on-light-mute: #57534b;
  --rule-dark: rgba(248, 247, 244, 0.16);
  --rule-light: #d8d4c8;
  --pad: clamp(22px, 6.3vw, 110px);
  --sans: Sora, Arial, sans-serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP",
    "Noto Serif JP", serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Page-only tokens */
  --mast-h: 72px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-stamp: cubic-bezier(0.34, 1.56, 0.64, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .7 -.3'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23f)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .16' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .5 -.36'/%3E%3C/filter%3E%3Crect width='520' height='520' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .97 0 0 0 0 .96 0 0 0 0 .93 0 0 0 .5 -.32'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23f)'/%3E%3C/svg%3E");
  --tear-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 720 22%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0 0H720V9.0L709.9 8.1L695.4 4.1L680.5 4.9L668.7 4.4L656.0 9.0L649.2 17.0L634.1 10.5L624.9 16.2L612.4 12.0L606.5 6.9L598.4 12.9L583.6 16.5L573.2 4.3L558.3 5.2L551.9 10.4L544.7 17.2L539.5 4.9L524.4 8.6L512.3 5.0L505.4 10.7L499.8 10.1L493.2 7.0L477.2 5.3L461.8 6.6L456.3 8.0L444.8 16.4L430.3 10.4L420.9 14.8L415.7 12.8L405.9 6.3L397.3 5.0L391.2 18.1L377.3 9.5L369.6 12.1L362.0 14.6L352.9 13.5L340.6 5.9L332.7 4.6L325.8 14.4L314.2 15.8L304.9 10.7L296.0 5.5L289.5 5.0L276.8 4.7L264.1 12.4L249.3 5.9L235.8 13.7L229.8 4.5L222.8 18.1L215.4 4.1L205.4 10.2L198.5 9.3L187.6 19.0L172.8 10.0L161.9 17.6L150.9 7.3L138.0 5.1L128.0 9.4L122.4 10.6L107.8 6.5L94.7 10.9L89.3 10.6L76.9 15.8L65.2 16.4L55.0 18.1L46.4 18.8L34.9 14.7L20.7 5.2L13.2 12.6L0 9.0Z%27/%3E%3C/svg%3E");

  font-family: var(--sans);
  color: var(--on-dark);
  background: var(--sumi);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--sumi);
  color: var(--on-dark);
  line-height: 1.5;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
p,
h1,
h2,
h3,
figure,
ol,
ul,
pre {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  font-weight: 600;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.paper :focus-visible,
.paper-2 :focus-visible {
  outline-color: var(--shu-deep);
}
.paper .stage :focus-visible {
  outline-color: var(--gold);
}
.skip,
.sr-only {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  z-index: 200;
  clip-path: none;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: var(--washi);
  color: var(--sumi);
  font-weight: 600;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[id] {
  scroll-margin-top: var(--mast-h);
}

/* ---------- Header ---------- */
.mast {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--mast-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--pad);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.45s,
    border-color 0.45s,
    -webkit-backdrop-filter 0.45s,
    backdrop-filter 0.45s,
    opacity 0.8s var(--ease-out);
}
.mast.is-scrolled {
  background-color: rgba(12, 12, 14, 0.88);
  border-bottom-color: var(--rule-dark);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
html.intro-playing .mast {
  opacity: 0;
  pointer-events: none;
  transition-duration: 0s;
}
.mast-home {
  display: block;
  padding: 6px 0;
}
.lockup {
  width: 108px;
}
.mast nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 44px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mast nav a {
  flex: none;
  white-space: nowrap;
}
.mast nav a:not(.nav-contact) {
  position: relative;
  padding: 12px 0;
  color: var(--on-dark-mute);
  transition: color 0.2s;
}
.mast nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--shu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.mast nav a:hover,
.mast nav a.is-current {
  color: var(--on-dark);
}
.mast nav a:hover::after,
.mast nav a.is-current::after {
  transform: scaleX(1);
}
.nav-contact {
  padding: 9px 18px;
  border: 1px solid rgba(248, 247, 244, 0.5);
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.nav-contact:hover {
  background: var(--washi);
  border-color: var(--washi);
  color: var(--sumi);
}
.mast-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--shu);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  opacity: 0;
  transition: opacity 0.4s;
}
.mast.is-scrolled .mast-progress {
  opacity: 1;
}

/* ---------- Section shells ---------- */
.band {
  position: relative;
  overflow: clip;
  padding: clamp(104px, 11vw, 196px) var(--pad);
}
.band::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 20px;
  background: var(--tear, transparent);
  -webkit-mask: var(--tear-mask) repeat-x 0 0 / 720px 20px;
  mask: var(--tear-mask) repeat-x 0 0 / 720px 20px;
  pointer-events: none;
}
.dark {
  background-color: var(--night);
  background-image: var(--grain-dark);
  color: var(--on-dark);
}
.paper {
  background-color: var(--washi);
  background-image: var(--grain);
  color: var(--on-light);
}
.paper-2 {
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--on-light);
}
.wrap {
  position: relative;
  max-width: 1480px;
  margin-inline: auto;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dark .section-label {
  color: var(--shu-glow);
}
.paper .section-label,
.paper-2 .section-label {
  color: var(--shu-deep);
}
.jp {
  flex: none;
  display: inline-block;
  padding: 6px 6px 5px;
  font-family: var(--mincho);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--washi);
  background: var(--shu-deep);
  border-radius: 2px;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
h2 {
  font-size: clamp(40px, 4.3vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.065em;
  text-wrap: balance;
}
h2 span {
  color: var(--shu);
}
.lede {
  max-width: 44ch;
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.65;
  letter-spacing: -0.02em;
}
.lede + .lede {
  margin-top: 18px;
}
.dark .lede {
  color: var(--on-dark-mute);
}
.paper .lede,
.paper-2 .lede {
  color: var(--on-light-mute);
}
.doll {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 6px 7px rgba(0, 0, 0, 0.28));
}

/* ---------- Reusable seal stamp ---------- */
.stamp {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--s, 64px);
  height: auto;
  aspect-ratio: 1;
  border: 2.5px solid var(--shu);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(227, 35, 44, 0.25);
  transform: rotate(var(--rot, -5deg));
  mix-blend-mode: multiply;
  opacity: 0.94;
}
.stamp img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  max-width: none;
  object-fit: contain;
}
.stamp::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px solid var(--shu);
  border-radius: 10px;
  opacity: 0;
}

/* ---------- 1. What makes a program suspicious ---------- */
.system {
  --tear: var(--washi);
  padding-bottom: clamp(120px, 13vw, 230px);
}
.system-emblem {
  position: absolute;
  top: clamp(-160px, -8vw, -60px);
  right: clamp(-260px, -12vw, -90px);
  width: clamp(440px, 54vw, 900px);
  opacity: 0.075;
  pointer-events: none;
  transform: rotate(calc(var(--spin, 0) * 1deg));
}
.sec-head {
  max-width: 900px;
}
.evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 48px);
  align-items: start;
  margin-top: clamp(110px, 10vw, 160px);
}
.evi {
  --dw: clamp(52px, 4.4vw, 66px);
  position: relative;
  margin-top: calc(var(--i) * clamp(34px, 4.4vw, 84px));
  padding: clamp(18px, 1.6vw, 26px) clamp(18px, 1.6vw, 26px)
    clamp(24px, 2.2vw, 34px);
  background-color: var(--washi);
  background-image: var(--grain);
  color: var(--on-light);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.85);
  rotate: var(--tilt, 0deg);
  transition:
    rotate 0.5s var(--ease-out),
    translate 0.5s var(--ease-out),
    box-shadow 0.5s;
}
.evi:nth-child(1) {
  --tilt: -1.1deg;
}
.evi:nth-child(2) {
  --tilt: 0.8deg;
}
.evi:nth-child(3) {
  --tilt: -0.5deg;
}
.evi::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(12, 12, 14, 0.13);
  pointer-events: none;
}
.evi:hover {
  rotate: 0deg;
  translate: 0 -8px;
  box-shadow: 0 46px 70px -34px rgba(0, 0, 0, 0.95);
}
.evi-doll {
  position: absolute;
  z-index: 2;
  top: calc(var(--dw) * -1.33);
  left: clamp(18px, 1.8vw, 28px);
  width: var(--dw);
  transform-origin: 50% 95%;
  transition: transform 0.45s var(--ease-stamp);
}
.evi:hover .evi-doll {
  transform: translateY(-7px) rotate(-7deg);
}
.doll-num {
  position: absolute;
  inset: 52% 0 auto;
  text-align: center;
  font-family: var(--mincho);
  font-size: calc(var(--dw) * 0.3);
  font-weight: 600;
  line-height: 1;
  color: var(--shu-deep);
}
.vis {
  margin-bottom: clamp(20px, 1.8vw, 28px);
  padding: 10px 8px;
  background: var(--paper);
  border: 1px solid rgba(12, 12, 14, 0.1);
}
.v {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.evi h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 1.65vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.evi p {
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.62;
  letter-spacing: -0.012em;
  color: var(--on-light-mute);
}

/* Timelines for the three drawings (seconds after the drawing starts) */
.v-file .h1 {
  --d: 0.95s;
}
.v-file .c1 {
  --d: 1.05s;
}
.v-file .rc1 {
  --d: 1.45s;
}
.v-file .h2 {
  --d: 2.05s;
}
.v-file .c2 {
  --d: 2.15s;
}
.v-file .rc2 {
  --d: 2.55s;
}
.v-run .n1 {
  --d: 0.1s;
}
.v-run .e1 {
  --d: 0.3s;
}
.v-run .e2 {
  --d: 0.38s;
}
.v-run .n2 {
  --d: 0.62s;
}
.v-run .n3 {
  --d: 0.7s;
}
.v-run .e3 {
  --d: 0.9s;
}
.v-run .e4 {
  --d: 1.05s;
}
.v-run .docs {
  --d: 1.1s;
}
.v-run .bk {
  --d: 1.3s;
}
.v-run .w1 {
  --d: 1.4s;
}
.v-run .w2 {
  --d: 1.52s;
}
.v-run .w3 {
  --d: 1.64s;
}
.v-run .w4 {
  --d: 1.76s;
}
.v-run .w5 {
  --d: 1.88s;
}
.v-run .w6 {
  --d: 2s;
}
.v-run .s1 {
  --d: 2.15s;
}
.v-run .s2 {
  --d: 2.35s;
}
.v-run .link {
  --d: 2.65s;
  --t: 0.6s;
}
.v-run .ld {
  --d: 3.15s;
}
.v-host .p1 {
  --d: 0.1s;
}
.v-host .p2 {
  --d: 0.16s;
}
.v-host .p3 {
  --d: 0.22s;
}
.v-host .p4 {
  --d: 0.28s;
}
.v-host .p5 {
  --d: 0.34s;
}
.v-host .l1 {
  --d: 1.55s;
}
.v-host .l2 {
  --d: 1.65s;
}
.v-host .l3 {
  --d: 1.75s;
}
.v-host .l4 {
  --d: 1.85s;
}
.v-host .x1 {
  --d: 2.25s;
  --t: 0.18s;
}
.v-host .x2 {
  --d: 2.38s;
  --t: 0.18s;
}
.v-host .srv {
  --d: 2.45s;
}
.v-host .lead-mask {
  --d: 2.6s;
  --t: 0.55s;
}
.v-host .ldot {
  --d: 3.25s;
}

/* ---------- 2. Replay a ransomware pattern ---------- */
.demo {
  --tear: var(--night);
}
.demo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: end;
}
.command {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-light);
  max-width: 480px;
}
.command-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-light-mute);
}
.command-row {
  display: flex;
  align-items: stretch;
  margin-top: 12px;
}
.command code {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font-family: var(--mono);
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  line-height: 1.4;
  white-space: nowrap;
  overflow-x: auto;
  color: var(--washi);
  background: var(--sumi);
}
.command code::before {
  content: "$ ";
  color: var(--shu-glow);
}
#copy {
  flex: none;
  min-height: 48px;
  padding: 0 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sumi);
  background: var(--washi);
  border: 1px solid var(--sumi);
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
#copy:hover {
  color: var(--washi);
  background: var(--shu-deep);
  border-color: var(--shu-deep);
}

.stage {
  position: relative;
  margin-top: clamp(56px, 6vw, 100px);
  color: var(--on-dark);
  background: var(--sumi);
  box-shadow: 14px 14px 0 var(--shu);
}
.stage-bar,
.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 2.4vw, 34px);
}
.stage-bar {
  border-bottom: 1px solid var(--rule-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}
.rec {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.rec::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shu-glow);
}
.stage-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "term field"
    "slips field";
}
.term {
  grid-area: term;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 40px) clamp(22px, 2.6vw, 40px) 8px;
}
.term pre {
  font-family: var(--mono);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--on-dark);
}
.ln {
  display: block;
  min-height: 1.8em;
  transition: opacity 0.25s;
}
.ln-note {
  color: var(--on-dark-mute);
}
.ln b {
  font-weight: 700;
}
.ln-head b {
  color: var(--washi);
  letter-spacing: 0.04em;
}
.ln-find b {
  font-weight: 600;
  color: var(--shu-glow);
}
.ln-find i {
  font-style: normal;
  color: var(--gold);
}
/* The model's lines are advisory, so they sit quieter than the findings. */
.ln-model {
  color: var(--on-dark-mute);
}
.ps1 {
  color: var(--shu-glow);
}
.typed {
  display: inline-block;
  vertical-align: top;
  white-space: pre;
  clip-path: inset(0 calc((var(--n) - var(--k, var(--n))) * 1ch) 0 0);
}
.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.22em;
  background: var(--shu-glow);
}
.ln-cmd .caret {
  display: none;
}
.stage.is-typing .ln-cmd .caret {
  display: inline-block;
  margin-left: calc((var(--k, var(--n)) - var(--n)) * 1ch + 2px);
}
.stage.is-typing .ln-prompt .caret {
  visibility: hidden;
}
.field {
  grid-area: field;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 40px);
  background: var(--night);
  border-left: 1px solid var(--rule-dark);
}
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}
.count {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.count-num {
  margin-right: 8px;
  font-size: clamp(38px, 3.6vw, 58px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--washi);
  font-variant-numeric: tabular-nums;
}
.marks {
  --read: 400;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(21, minmax(0, 1fr));
  row-gap: clamp(7px, 0.75vw, 12px);
  align-content: center;
  min-height: 210px;
}
.marks:not(.has-marks) {
  background: radial-gradient(
      circle,
      rgba(248, 247, 244, 0.7) 1.3px,
      transparent 1.7px
    )
    0 50% / calc(100% / 21) 20px;
}
.marks i {
  --on: clamp(0, var(--read) - var(--i), 1);
  --hot: clamp(0, 1 - (var(--read) - var(--i)) / 18, 1);
  justify-self: center;
  width: 2.5px;
  height: clamp(11px, 1.05vw, 16px);
  border-radius: 2px;
  background: var(--washi);
  background: color-mix(
    in srgb,
    var(--shu-glow) calc(var(--hot) * var(--on) * 100%),
    var(--washi)
  );
  opacity: calc(0.13 + 0.87 * var(--on));
  transform: rotate(var(--r, 0deg)) scaleY(calc(0.55 + 0.45 * var(--on)));
}
.slips {
  grid-area: slips;
  display: grid;
  align-content: end;
  gap: clamp(14px, 1.4vw, 20px);
  padding: clamp(18px, 2vw, 28px) clamp(22px, 2.6vw, 40px)
    clamp(22px, 2.6vw, 40px);
}
.slip {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  padding: 18px 20px;
  color: var(--on-light);
  background-color: var(--washi);
  background-image: var(--grain);
  transition:
    opacity 0.4s,
    transform 0.55s var(--ease-out);
}
.slip:nth-child(1) {
  rotate: -0.6deg;
}
.slip:nth-child(2) {
  rotate: 0.5deg;
}
.slip .stamp {
  --s: clamp(58px, 5vw, 76px);
}
.slip-text {
  min-width: 0;
}
.slip-sev {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shu-deep);
}
.slip p {
  margin: 3px 0 6px;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.slip code {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--on-light-mute);
  overflow-wrap: anywhere;
}
.stage-foot {
  border-top: 1px solid var(--rule-dark);
}
#replay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--on-dark);
  background: none;
  border: 1px solid rgba(248, 247, 244, 0.45);
  transition:
    background-color 0.2s,
    color 0.2s;
}
#replay:hover:not(:disabled) {
  color: var(--sumi);
  background: var(--washi);
}
#replay:disabled {
  opacity: 0.55;
  cursor: default;
}
.play-ico {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
#play-status {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
  color: var(--on-dark-mute);
}
/* Playback states (only ever set by page.js) */
.stage.is-armed .ln:not(.on) {
  opacity: 0;
}
.stage.is-armed .slip:not(.on) {
  opacity: 0;
  transform: translateY(18px);
}
.stage.is-armed .slip:not(.stamped) .stamp {
  opacity: 0;
}

/* ---------- 3. The local app ---------- */
.app {
  --tear: var(--washi);
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 130px);
  align-items: center;
}
.app-copy h2,
.update-copy h2 {
  margin-bottom: 30px;
}
.app-stage {
  --tx: 0;
  --ty: 0;
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
  perspective: 1400px;
}
.sheet {
  position: absolute;
  inset: 3% 1% 1%;
  background-color: var(--washi);
  background-image: var(--grain);
  box-shadow: 0 24px 50px -30px rgba(50, 38, 15, 0.55);
  transition: transform 1s var(--ease-out);
}
.sheet-a {
  z-index: 1;
  transform: translate(-5%, 3%) rotate(-6deg);
}
.sheet-b {
  z-index: 2;
  background-color: #e5e0d3;
  transform: translate(5%, 1%) rotate(4deg);
}
.peek {
  --doll-fill: #fff;
  position: absolute;
  z-index: 2;
  top: -62px;
  right: 12%;
  width: 74px;
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-stamp);
}
.peek .doll {
  rotate: 9deg;
}
.app-stage:hover .peek {
  transform: translateY(-16px) rotate(-6deg);
}
.app-view {
  position: relative;
  z-index: 3;
  padding: 14px 14px 0;
  background: #fff;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.04),
    0 40px 70px -36px rgba(40, 28, 8, 0.6);
  transform: rotateX(calc(var(--ty) * -5deg)) rotateY(calc(var(--tx) * 7deg))
    rotate(-1.4deg);
}
.app-view img {
  width: 100%;
  border: 1px solid #e3dfd5;
}
.app-view figcaption {
  padding: 13px 2px 15px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-light-mute);
}
.app-view figcaption span {
  margin: 0 8px;
  color: var(--shu-deep);
}
.tape {
  position: absolute;
  z-index: 5;
  top: -15px;
  left: 50%;
  width: 136px;
  height: 32px;
  margin-left: -68px;
  background: rgba(227, 35, 44, 0.8);
  rotate: -4deg;
  mix-blend-mode: multiply;
  clip-path: polygon(
    0 0,
    100% 0,
    97% 16%,
    100% 32%,
    97% 50%,
    100% 68%,
    97% 84%,
    100% 100%,
    0 100%,
    3% 84%,
    0 68%,
    3% 50%,
    0 32%,
    3% 16%
  );
}

/* ---------- 4. Air-gapped updates ---------- */
.updates {
  --tear: var(--paper);
}
.updates-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.gap-scene {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 0.98;
}
.print {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  padding: 11px 11px 40px;
  background: var(--washi);
  rotate: 3deg;
  box-shadow: 0 44px 80px -30px rgba(0, 0, 0, 0.85);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.print img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.release {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: min(60%, 340px);
  padding: clamp(18px, 1.8vw, 24px);
  color: var(--on-light);
  background-color: var(--washi);
  background-image: var(--grain);
  rotate: -4deg;
  box-shadow: 0 34px 60px -20px rgba(0, 0, 0, 0.8);
  transition:
    opacity 0.8s var(--ease-out),
    transform 1.1s var(--ease-out);
}
.release::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(12, 12, 14, 0.12);
  pointer-events: none;
}
.release-kicker {
  padding-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-light-mute);
  border-bottom: 1px solid var(--rule-light);
}
.release-lines {
  display: grid;
  gap: 7px;
  margin: 14px 0 18px;
}
.release-lines i {
  height: 5px;
  border-radius: 1px;
  background: rgba(12, 12, 14, 0.12);
}
.release-lines i:nth-child(2) {
  width: 84%;
}
.release-lines i:nth-child(3) {
  width: 92%;
}
.release-lines i:nth-child(4) {
  width: 58%;
}
.sigs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sig {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.sig-box {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px dashed rgba(12, 12, 14, 0.32);
}
.sig .stamp {
  --s: 74%;
}
.sig-name {
  font-size: clamp(0.6rem, 0.72vw, 0.7rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.accepted {
  --rot: -2deg;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shu-deep);
  border: 2px solid var(--shu-deep);
  border-radius: 3px;
  transform: rotate(var(--rot));
  mix-blend-mode: multiply;
}
.accepted-jp {
  font-family: var(--mincho);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}
.mist {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

/* ---------- 5. Plain facts ---------- */
.facts {
  --tear: var(--night);
  padding-block: clamp(96px, 9vw, 160px);
}
.facts .section-label {
  margin-bottom: 34px;
}
.facts-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts-list li {
  position: relative;
  padding: 28px clamp(18px, 2.2vw, 40px) 8px;
  border-left: 1px solid var(--rule-light);
}
.facts-list li:first-child {
  padding-left: 0;
  border-left: 0;
}
.facts-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sumi);
  transform-origin: 0 50%;
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.fact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(24px, 2.6vw, 42px);
}
.fact-num {
  --rot: -5deg;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--mincho);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--washi);
  background: var(--shu-deep);
  border-radius: 3px;
  transform: rotate(var(--rot));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.facts-list li:nth-child(even) .fact-num {
  --rot: 4deg;
}
.nowrap {
  white-space: nowrap;
}
.fact-ico {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--sumi);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fact-ico .r {
  stroke: var(--shu);
}
.fact-ico .dash {
  stroke-dasharray: 3 4;
  opacity: 0.55;
}
.facts-list p {
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.38;
  letter-spacing: -0.03em;
  color: var(--on-light-mute);
}
.facts-list strong {
  font-weight: 600;
  color: var(--on-light);
}
.facts-list code {
  padding: 0.06em 0.38em;
  font-family: var(--mono);
  font-size: 0.84em;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--washi);
  background: var(--sumi);
}

/* ---------- 6. Contact ---------- */
.contact {
  --tear: var(--washi);
  --moon-w: clamp(280px, 31vw, 540px);
  --moon-r: calc(var(--pad) + 2vw);
  --moon-b: clamp(150px, 15vw, 250px);
  --mascot-w: clamp(230px, 25vw, 400px);
  --mascot-h: clamp(324px, 35.2vw, 563px);
  display: grid;
  align-items: center;
  min-height: clamp(660px, 90vh, 980px);
  background-color: var(--sumi);
  background-image:
    var(--grain-dark),
    radial-gradient(
      90% 80% at 76% 62%,
      #2c1519 0%,
      #1b1219 30%,
      var(--night) 58%,
      var(--sumi) 100%
    );
}
.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.moon {
  position: absolute;
  right: var(--moon-r);
  bottom: var(--moon-b);
  width: var(--moon-w);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent 0 4px,
      rgba(120, 10, 16, 0.22) 4.5px 5px
    ),
    radial-gradient(circle at 36% 34%, #f2493d 0%, var(--shu) 46%, #a3121b 100%);
  box-shadow:
    0 0 0 1px rgba(255, 106, 92, 0.18),
    0 0 120px 24px rgba(227, 35, 44, 0.26),
    0 0 320px 90px rgba(227, 35, 44, 0.1);
  translate: 0 calc(var(--sy, 0) * 50px);
}
.dipper {
  position: absolute;
  top: clamp(70px, 8vw, 130px);
  right: calc(var(--moon-r) + var(--moon-w) * 0.86);
  width: clamp(180px, 19vw, 300px);
  overflow: visible;
}
.dipper-line {
  fill: none;
  stroke: rgba(200, 165, 97, 0.45);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.stars circle {
  fill: var(--gold);
  filter: drop-shadow(0 0 4px rgba(200, 165, 97, 0.9));
}
.sky .mist {
  height: clamp(16px, 1.7vw, 28px);
  background: linear-gradient(
    90deg,
    rgba(20, 19, 27, 0),
    rgba(20, 19, 27, 0.97) 14%,
    rgba(20, 19, 27, 0.97) 86%,
    rgba(20, 19, 27, 0)
  );
  translate: calc(var(--sy, 0) * -24px) 0;
}
.sky .mist::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 165, 97, 0.6),
    transparent
  );
}
.mist-1 {
  bottom: calc(var(--moon-b) + var(--moon-w) * 0.34);
  right: calc(var(--moon-r) - 5vw);
  width: calc(var(--moon-w) * 0.82);
}
.mist-2 {
  bottom: calc(var(--moon-b) + var(--moon-w) * 0.14);
  right: calc(var(--moon-r) + var(--moon-w) * 0.3);
  width: calc(var(--moon-w) * 0.95);
}
.mist-3 {
  bottom: calc(var(--moon-b) - var(--moon-w) * 0.08);
  right: calc(var(--moon-r) - 9vw);
  width: calc(var(--moon-w) * 1.15);
}
.flyer {
  position: absolute;
  width: 30px;
}
.flyer .doll {
  filter: drop-shadow(0 0 10px rgba(248, 247, 244, 0.25));
}
.flyer-1 {
  bottom: calc(var(--moon-b) + var(--moon-w) * 1.02);
  right: calc(var(--moon-r) + var(--moon-w) * 0.86);
  rotate: -16deg;
}
.flyer-2 {
  bottom: calc(var(--moon-b) + var(--moon-w) * 0.92);
  right: calc(var(--moon-r) - 1vw);
  width: 22px;
  rotate: 12deg;
}
.flyer-3 {
  bottom: calc(var(--moon-b) + var(--moon-w) * 0.5);
  right: calc(var(--moon-r) + var(--moon-w) * 1.06);
  width: 26px;
  rotate: 24deg;
}
.contact-inner {
  position: static;
  width: 100%;
}
.contact-copy {
  position: relative;
  z-index: 2;
  max-width: min(62%, 820px);
}
.contact h2 {
  margin-bottom: clamp(32px, 3vw, 50px);
  font-size: clamp(48px, 6.6vw, 124px);
  line-height: 1;
  letter-spacing: -0.07em;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.primary {
  color: var(--washi);
  background: var(--shu-deep);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.3s;
}
.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(255, 106, 92, 0.6);
}
.arrow {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out);
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.primary:hover .arrow {
  transform: translateX(5px);
}
.cta-mascot {
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: calc(var(--moon-r) + (var(--moon-w) - var(--mascot-w)) / 2);
  width: var(--mascot-w);
  height: var(--mascot-h);
}
.cta-mascot svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px var(--pad);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-dark);
  background: var(--sumi);
  border-top: 1px solid var(--rule-dark);
}
.foot-home img {
  width: 96px;
}
.foot-nine {
  font-family: var(--mincho);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  color: var(--on-dark-mute);
}
.foot-link {
  padding: 12px 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s;
}
.foot-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Motion (none of it applies with reduced motion or without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Reveal on scroll: hidden states only exist once page.js adds .js */
  .js [data-reveal] {
    transition:
      opacity 0.9s var(--ease-out),
      transform 0.9s var(--ease-out),
      rotate 0.5s var(--ease-out),
      translate 0.5s var(--ease-out),
      box-shadow 0.5s;
    transition-delay: calc(var(--i, 0) * 0.12s);
  }
  .js [data-reveal=""]:not(.is-in) {
    opacity: 0;
    transform: translateY(34px);
  }
  .js [data-reveal="card"] {
    transition-delay: calc(var(--i, 0) * 0.15s), calc(var(--i, 0) * 0.15s), 0s,
      0s, 0s;
  }
  .js [data-reveal="card"]:not(.is-in) {
    opacity: 0;
    transform: translateY(70px) rotate(-3deg);
  }
  .js [data-reveal="card"].is-in .evi-doll {
    animation: flutter 1.15s var(--ease-out) calc(var(--i, 0) * 0.15s + 0.35s)
      both;
  }
  .js [data-reveal="fact"]:not(.is-in) {
    opacity: 0;
    transform: translateY(26px);
  }
  .js [data-reveal="fact"]:not(.is-in)::before {
    transform: scaleX(0);
  }
  .js [data-reveal="fact"].is-in .fact-ico > :not(.dash) {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    animation: draw 0.8s var(--ease-out) calc(var(--i, 0) * 0.12s + 0.35s)
      forwards;
  }
  .js [data-reveal="fact"].is-in .fact-ico > .r {
    animation-delay: calc(var(--i, 0) * 0.12s + 0.8s);
  }
  .js [data-reveal].is-in .jp {
    animation: stamp-in 0.5s var(--ease-stamp) 0.25s both;
  }
  .js [data-reveal="fact"].is-in .fact-num {
    animation: stamp-in 0.5s var(--ease-stamp)
      calc(var(--i, 0) * 0.12s + 0.25s) both;
  }

  /* Card drawings: page.js adds .play when a card arrives and on hover */
  .vis.play .a-draw {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    animation: draw var(--t, 0.4s) cubic-bezier(0.5, 0, 0.2, 1)
      calc(var(--base, 0s) + var(--d, 0s)) forwards;
  }
  .vis.play .a-pop {
    transform-box: fill-box;
    transform-origin: center;
    animation: pop 0.45s var(--ease-stamp) calc(var(--base, 0s) + var(--d, 0s))
      both;
  }
  .vis.play .a-fade {
    animation: fade 0.4s ease calc(var(--base, 0s) + var(--d, 0s)) both;
  }
  .vis.play .a-hit {
    animation: hit 0.3s ease calc(var(--base, 0s) + var(--d, 0s)) both;
  }
  .vis.play .rc {
    animation: rc 0.3s ease calc(var(--base, 0s) + var(--d, 0s)) both;
  }
  .vis.play .scan {
    animation: scan 2.6s linear calc(var(--base, 0s) + 0.1s) both;
  }
  .vis.play .hand {
    transform-box: view-box;
    transform-origin: 36px 38px;
    animation: spin 1.1s cubic-bezier(0.6, 0, 0.4, 1)
      calc(var(--base, 0s) + 0.4s) both;
  }
  .vis.play .ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: ring 0.9s ease-out calc(var(--base, 0s) + 3.1s) both;
  }

  /* Demo playback */
  .stage.thunk {
    animation: thunk 0.32s ease-out;
  }
  .stage.is-armed .slip.stamped .stamp {
    animation: stamp-in 0.5s var(--ease-stamp) both;
  }
  .stage.is-armed .slip.stamped .stamp::after {
    animation: splash 0.6s ease-out 0.18s both;
  }
  .stage.is-playing .rec::before {
    animation: blink 1s steps(1) infinite;
  }
  .ln-prompt .caret {
    animation: blink 1.1s steps(1) infinite paused;
  }
  .stage.is-live .ln-prompt .caret {
    animation-play-state: running;
  }

  /* The local app */
  .js .app-stage:not(.is-in) .sheet-a {
    transform: translate(0, 2%) rotate(0deg);
  }
  .js .app-stage:not(.is-in) .sheet-b {
    transform: translate(0, 1%) rotate(0deg);
  }
  .js .app-stage:not(.is-in) .app-view {
    opacity: 0;
  }
  .js .app-stage .app-view {
    transition: opacity 0.7s var(--ease-out);
  }
  .js .app-stage:not(.is-in) .peek {
    transform: translateY(90px) rotate(-10deg);
    transition: none;
  }
  .js .app-stage.is-in .peek {
    transition-delay: 0.9s;
  }
  .js .app-stage:not(.is-in) .tape {
    opacity: 0;
    transform: translateY(-24px) scale(1.25);
  }
  .js .app-stage .tape {
    transition:
      opacity 0.35s ease 0.55s,
      transform 0.45s var(--ease-stamp) 0.55s;
  }

  /* Updates: the slip crosses, then two seals land */
  .js .gap-scene:not(.is-in) .print {
    opacity: 0;
    transform: translateY(40px);
  }
  .js .gap-scene:not(.is-in) .release {
    opacity: 0;
    transform: translateX(-90px) rotate(-8deg);
  }
  .js .gap-scene.is-in .release {
    transition-delay: 0.25s;
    animation:
      thunk 0.32s ease-out 1.35s,
      thunk-2 0.32s ease-out 1.95s;
  }
  .js .gap-scene:not(.is-in) .stamp,
  .js .gap-scene:not(.is-in) .accepted {
    opacity: 0;
  }
  .js .gap-scene.is-in .sig:nth-child(1) .stamp {
    animation: stamp-in 0.55s var(--ease-stamp) 1.2s both;
  }
  .js .gap-scene.is-in .sig:nth-child(2) .stamp {
    animation: stamp-in 0.55s var(--ease-stamp) 1.8s both;
  }
  .js .gap-scene.is-in .sig:nth-child(1) .stamp::after {
    animation: splash 0.6s ease-out 1.38s both;
  }
  .js .gap-scene.is-in .sig:nth-child(2) .stamp::after {
    animation: splash 0.6s ease-out 1.98s both;
  }
  .js .gap-scene.is-in .accepted {
    animation: stamp-in 0.5s var(--ease-stamp) 2.55s both;
  }
  .sky .mist {
    animation: drift 16s ease-in-out infinite alternate paused;
  }
  .mist-2 {
    animation-duration: 21s;
    animation-direction: alternate-reverse;
  }
  .mist-3 {
    animation-duration: 12s;
  }
  .is-live .mist {
    animation-play-state: running;
  }

  /* Contact: the moon rises, the Dipper is traced, paper dolls drift */
  .js .sky:not(.is-in) .moon {
    opacity: 0;
    transform: translateY(80px) scale(0.94);
  }
  .js .sky .moon {
    transition:
      opacity 1.4s var(--ease-out),
      transform 1.8s var(--ease-out);
  }
  .js .sky.is-in .dipper-line {
    stroke-dasharray: none;
    animation: trace 2.4s ease-out 0.6s both;
  }
  .js .sky:not(.is-in) .stars circle {
    opacity: 0;
  }
  .js .sky .stars circle {
    transition: opacity 0.6s ease;
  }
  .js .sky.is-in .stars circle:nth-child(2) {
    transition-delay: 0.3s;
  }
  .js .sky.is-in .stars circle:nth-child(3) {
    transition-delay: 0.6s;
  }
  .js .sky.is-in .stars circle:nth-child(4) {
    transition-delay: 0.9s;
  }
  .js .sky.is-in .stars circle:nth-child(5) {
    transition-delay: 1.2s;
  }
  .js .sky.is-in .stars circle:nth-child(6) {
    transition-delay: 1.5s;
  }
  .js .sky.is-in .stars circle:nth-child(7) {
    transition-delay: 1.8s;
  }
  .flyer {
    animation: float 7s ease-in-out infinite alternate paused;
  }
  .flyer-2 {
    animation-duration: 9s;
    animation-delay: -3s;
  }
  .flyer-3 {
    animation-duration: 8s;
    animation-delay: -5s;
  }
  .is-live .flyer {
    animation-play-state: running;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes trace {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
@keyframes pop {
  from {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes hit {
  from {
    fill: #d7d1c3;
  }
}
@keyframes rc {
  from {
    fill: #0c0c0e;
  }
}
@keyframes scan {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateY(150px);
    opacity: 0;
  }
}
@keyframes spin {
  from {
    transform: rotate(-360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes ring {
  from {
    transform: scale(0.2);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 0.5;
  }
}
@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(1.9) rotate(calc(var(--rot, -4deg) - 16deg));
  }
  55% {
    opacity: 1;
    transform: scale(0.9) rotate(var(--rot, -4deg));
  }
  78% {
    transform: scale(1.04) rotate(var(--rot, -4deg));
  }
  100% {
    opacity: 0.94;
    transform: scale(1) rotate(var(--rot, -4deg));
  }
}
@keyframes splash {
  from {
    opacity: 0.55;
    transform: scale(0.8);
  }
  to {
    opacity: 0;
    transform: scale(1.3);
  }
}
@keyframes thunk {
  30% {
    translate: 0 4px;
  }
  60% {
    translate: 0 -1px;
  }
  100% {
    translate: 0 0;
  }
}
@keyframes thunk-2 {
  30% {
    translate: 0 4px;
  }
  60% {
    translate: 0 -1px;
  }
  100% {
    translate: 0 0;
  }
}
@keyframes flutter {
  0% {
    opacity: 0;
    transform: translate(-34px, -70px) rotate(-38deg);
  }
  35% {
    opacity: 1;
    transform: translate(12px, -30px) rotate(16deg);
  }
  65% {
    transform: translate(-5px, -8px) rotate(-7deg);
  }
  85% {
    transform: translate(2px, -2px) rotate(2deg);
  }
  100% {
    transform: none;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes drift {
  from {
    transform: translateX(-28px);
  }
  to {
    transform: translateX(28px);
  }
}
@keyframes float {
  from {
    transform: translate(0, 0) rotate(-6deg);
  }
  to {
    transform: translate(-14px, -26px) rotate(8deg);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 1700px) {
  .evi h3 {
    font-size: 30px;
  }
}
@media (max-width: 1100px) {
  .evidence {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(96px, 12vw, 120px);
    max-width: 560px;
    margin-inline: auto;
  }
  .evi {
    width: 94%;
    margin-top: 0;
  }
  .evi:nth-child(2) {
    justify-self: end;
  }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .evidence {
    max-width: 820px;
  }
  .evi {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto;
    column-gap: clamp(22px, 3vw, 36px);
    align-items: center;
  }
  .vis {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }
  .evi h3 {
    align-self: end;
  }
  .evi p {
    align-self: start;
  }
}
@media (max-width: 900px) {
  .demo-intro,
  .app-grid,
  .updates-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "term"
      "field"
      "slips";
  }
  .term {
    padding-bottom: clamp(22px, 2.6vw, 40px);
  }
  .field {
    border-left: 0;
    border-top: 1px solid var(--rule-dark);
  }
  .slips {
    border-top: 1px solid var(--rule-dark);
  }
  .marks {
    min-height: 0;
  }
  .gap-scene {
    justify-self: center;
  }
  .facts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
  .facts-list li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .contact {
    align-items: start;
    min-height: 0;
    padding-bottom: calc(var(--moon-b) + var(--moon-w) * 1.05);
  }
  .contact-copy {
    max-width: none;
  }
}
@media (max-width: 700px) {
  .cta-mascot {
    display: none;
  }
}
@media (max-width: 640px) {
  :root {
    --pad: 22px;
    --mast-h: 60px;
  }
  .lockup {
    width: 84px;
  }
  .mast nav {
    gap: 16px;
    font-size: 13px;
  }
  .nav-contact {
    padding: 8px 12px;
  }
  .band {
    padding-block: 84px;
  }
  .system {
    padding-bottom: 100px;
  }
  .section-label {
    margin-bottom: 18px;
    font-size: 0.72rem;
  }
  .evidence {
    margin-top: 96px;
  }
  .evi {
    width: 100%;
  }
  .stage {
    box-shadow: 7px 7px 0 var(--shu);
    margin-inline: -4px;
  }
  .term pre {
    font-size: 12px;
    line-height: 1.7;
  }
  .ln {
    min-height: 1.7em;
  }
  .stage-foot {
    flex-wrap: wrap;
  }
  .peek {
    top: -48px;
    width: 58px;
  }
  .app-stage {
    width: calc(100% - 26px);
  }
  .gap-scene {
    aspect-ratio: auto;
    display: grid;
    padding-bottom: 8px;
  }
  .print {
    position: relative;
    width: 82%;
    margin-left: auto;
  }
  .release {
    position: relative;
    width: 76%;
    margin-top: -26%;
  }
  .facts-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .facts-list li,
  .facts-list li:nth-child(3) {
    padding: 24px 0 30px;
    border-left: 0;
  }
  .fact-top {
    margin-bottom: 18px;
  }
  .contact {
    --moon-w: clamp(190px, 58vw, 280px);
    --moon-r: 8%;
    --moon-b: 64px;
    padding-bottom: calc(var(--moon-b) + var(--moon-w) * 1.08);
  }
  .flyer-1,
  .flyer-3 {
    display: none;
  }
  .contact h2 {
    font-size: clamp(44px, 13vw, 64px);
  }
  .dipper {
    top: auto;
    bottom: calc(var(--moon-b) + var(--moon-w) * 1.02);
    right: auto;
    left: var(--pad);
    width: 140px;
  }
  .foot {
    flex-wrap: wrap;
  }
  .foot-nine {
    order: 3;
    width: 100%;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
  }
}
@media (max-width: 360px) {
  .lockup {
    width: 72px;
  }
  .mast nav {
    gap: 11px;
    font-size: 12px;
  }
  .nav-contact {
    padding: 7px 9px;
  }
}

/* Safety net for this page's own sections: finished states, no motion */
@media (prefers-reduced-motion: reduce) {
  .band *,
  .band *::before,
  .band *::after,
  .mast,
  .foot * {
    animation: none !important;
    transition: none !important;
  }
}
