/* Shared base for the explainer sections (scene layout + common type). Section CSS lives in <id>.css. */
.scene { position: relative; height: var(--len, 300vh); }
.scene > .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.x-section { max-width: 1320px; margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) 60px; }
.x-eyebrow { font-size: 10px; letter-spacing: .14em; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; }
.x-h2 { font-family: var(--display); font-size: clamp(34px, 4.6vw, 72px); line-height: .95; letter-spacing: -.03em; margin: 12px 0 14px; }
.x-lede { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); max-width: 620px; margin: 0; }
.x-fine { font-size: 10.5px; color: var(--dim); line-height: 1.6; }
@media (max-width: 760px), (max-height: 500px) {
  .scene.unpin-phone { height: auto; }
  .scene.unpin-phone > .sticky { position: static; height: auto; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .scene > .sticky { position: static; height: auto; overflow: visible; }
}


/* ===== pitch ===== */
/* 01 · WHY A CREW — ink → cream pitch scene. Every selector is scoped to #pitch. */
#pitch {
  --bgmix: 0; --fgmix: 0; --cream: #f0e9e0;
  background: color-mix(in srgb, var(--ink), var(--cream) calc(var(--bgmix) * 100%));
  color: color-mix(in srgb, var(--cream), var(--ink) calc(var(--fgmix) * 100%));
}
#pitch .sticky { isolation: isolate; }
#pitch .pitch-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  opacity: calc(1 - var(--bgmix));
  background:
    radial-gradient(50% 60% at 72% 46%, rgba(255, 90, 31, .10), transparent 70%),
    radial-gradient(36% 50% at 30% 62%, rgba(255, 90, 31, .07), transparent 70%);
}
#pitch .pitch-glow { z-index: -2; }
#pitch .pitch-flood {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--cream);
  clip-path: circle(var(--fr, 0px) at var(--fx, 60%) var(--fy, 50%));
}
#pitch.rm .pitch-flood { display: none; }
#pitch .pitch-in {
  position: relative; height: 100%; max-width: 1560px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(330px, 1fr) 1.6fr; align-items: center;
  gap: clamp(24px, 4vw, 72px); padding: 92px clamp(16px, 4vw, 56px) 36px;
}
#pitch .pitch-copy { position: relative; z-index: 2; }
#pitch .pitch-eye { margin: 0 0 6px; color: color-mix(in srgb, var(--accent), var(--accent-ink) calc(var(--fgmix) * 100%)); }
#pitch .pitch-stack { display: grid; }
#pitch .pitch-stack > * { grid-area: 1 / 1; will-change: opacity, transform; }
#pitch .pitch-b { opacity: 0; pointer-events: none; }
#pitch .pitch-h { font-size: clamp(30px, 3.3vw, 56px); line-height: .98; color: inherit; text-wrap: balance; margin: 10px 0 18px; }
#pitch .pitch-p { color: inherit; opacity: .78; font-size: 13.5px; max-width: 470px; text-wrap: pretty; }
#pitch .pitch-row {
  margin: 26px 0 0; min-height: 1.6em; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--accent); display: flex; align-items: center;
}
#pitch .pitch-caret { display: inline-block; width: .62em; height: 1.15em; margin-left: 2px; background: var(--accent); opacity: 0; animation: pitch-blink 1s steps(1) infinite; }
#pitch .pitch-caret.on { opacity: 1; }
@keyframes pitch-blink { 50% { visibility: hidden; } }

/* big counters */
#pitch .pitch-counts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
#pitch .pc { display: grid; gap: 8px; }
#pitch .pc-l { font-size: 9.5px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; opacity: .62; }
#pitch .pc-l sup, #pitch .pitch-foot sup { font-size: .75em; color: var(--accent-ink); }
#pitch .pc-n {
  display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 3.8vw, 64px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
#pitch .pc-n s { font-size: .42em; opacity: .4; text-decoration-thickness: 2px; }
#pitch .pc-n i { font-style: normal; font-size: .38em; color: var(--accent); }
#pitch .odo { display: inline-flex; height: 1em; overflow: hidden; }
#pitch .odo .d { display: block; width: .62em; overflow: hidden; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
#pitch .odo .d.z { width: 0; }
#pitch .odo .col { display: block; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
#pitch .odo b { display: block; height: 1em; line-height: 1; text-align: center; font-weight: inherit; }
#pitch .pitch-foot { margin: 14px 0 0; color: inherit; opacity: .6; }
#pitch .pitch-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* visual */
#pitch .pitch-vis { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
#pitch .pitch-area { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
#pitch .pitch-stage { position: relative; width: 100%; aspect-ratio: 1200 / 640; }
#pitch .pitch-svg, #pitch .pitch-dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
#pitch .pitch-dots { pointer-events: none; }
#pitch .pitch-dots.live { pointer-events: auto; cursor: crosshair; }
#pitch .pitch-tip { font-family: var(--mono); }
#pitch .pitch-legend {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-size: 10px; letter-spacing: .06em; opacity: 0; min-height: 16px;
}
#pitch .pitch-legend li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
#pitch .pitch-legend i { width: 8px; height: 8px; border-radius: 50%; }
#pitch .pitch-legend .pl-key { opacity: .55; letter-spacing: .12em; text-transform: uppercase; }
#pitch .pitch-legend b { opacity: .55; font-weight: 500; }

/* SVG pieces */
#pitch .pitch-svg text { font-family: var(--mono); }
#pitch .pitch-svg .disp { font-family: var(--display); font-weight: 700; }
#pitch.cap .odo .d, #pitch.cap .odo .col, #pitch.rm .odo .d, #pitch.rm .odo .col { transition: none; }

/* stacked (phones, portrait tablets) */
#pitch.tall .pitch-in { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 72px 16px 14px; }
#pitch.tall .pitch-h { font-size: clamp(26px, 6.4vw, 40px); margin: 6px 0 10px; }
#pitch.tall .pitch-p { font-size: 12.5px; line-height: 1.6; max-width: 640px; }
#pitch.tall .pitch-row { margin-top: 12px; font-size: 10px; }
#pitch.tall .pitch-counts { margin-top: 12px; padding-top: 10px; }
#pitch.tall .pc-n { font-size: clamp(30px, 8vw, 44px); }
#pitch.tall .pitch-foot { margin-top: 8px; }
#pitch.tall .pitch-vis { flex: 1; height: auto; }
#pitch.tall .pitch-stage { aspect-ratio: 600 / 780; width: auto; }
#pitch.tall .pitch-legend { font-size: 9px; gap: 4px 12px; }

/* phones (pitch.js .flow): unpinned by base.css. Two chapters, each copy over its own stage: the usual launch on ink,
   then a cream box for the crew that the KOL ring floods as it scrolls in */
#pitch.flow .pitch-in { display: block; height: auto; max-width: 680px; padding: 88px clamp(16px, 4vw, 32px) 64px; }
#pitch.flow .pitch-stack { display: block; }
#pitch.flow .pitch-stack > * { will-change: auto; }
#pitch.flow .pitch-a { padding-bottom: 56px; }
#pitch.flow .pitch-a .pitch-stage { margin: 22px auto 0; }
#pitch.flow .pitch-row { display: block; margin-top: 14px; }
#pitch.flow .pitch-caret { vertical-align: -.2em; }
#pitch.flow .pitch-b { opacity: 1; pointer-events: auto; padding-top: 64px; }
#pitch.flow .pitch-b, #pitch.flow .pitch-vis { color: var(--ink); }
#pitch.flow .pitch-vis { display: block; height: auto; margin-top: 26px; }
#pitch.flow .pitch-area { aspect-ratio: var(--ar); max-height: min(calc(100svh - 96px), 640px); margin: 0 auto; }
#pitch.flow .pitch-legend { margin-top: 12px; }
#pitch.flow .pitch-flood { top: var(--ft, 0px); }
#pitch.flow .pitch-glow { bottom: auto; height: var(--ft, 100%); }

/* reduced motion: two static frames, nothing pinned */
#pitch.rm { --bgmix: 1; --fgmix: 1; }
#pitch.rm .pitch-in { height: auto; align-items: start; }
#pitch.rm .pitch-stack { display: block; }
#pitch.rm .pitch-a, #pitch.rm .pitch-b { opacity: 1 !important; transform: none !important; pointer-events: auto; }
#pitch.rm .pitch-b { margin-top: 56px; }
#pitch.rm .pitch-a .pitch-p { opacity: .8; }
#pitch.rm .pitch-vis { height: auto; gap: 18px; }
#pitch.rm .pitch-area { display: grid; gap: 20px; }
#pitch.rm .pitch-stage.old { background: var(--ink); border-radius: 18px; }
#pitch.rm .pitch-legend { opacity: 1 !important; }
#pitch.rm.flow .pitch-a, #pitch.rm.flow .pitch-b { padding-block: 0; }


/* ===== how ===== */
/* 02 · HOW IT WORKS */
#how {
  --pw: min(1100px, 86vw);
  /* the phone mockup grows with the screen; short laptop screens (1366x768) shrink it so its caption stays on screen */
  --ph-h: min(560px, max(340px, calc(100svh - 300px)));
  --ease: cubic-bezier(.2, .8, .2, 1);
  background: var(--bg); color: var(--ink);
}
#how .sticky { display: flex; flex-direction: column; padding-top: clamp(72px, 10vh, 104px); }

/* header + progress */
#how .how-head { width: var(--pw); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; position: relative; z-index: 2; }
#how .x-h2 { font-size: clamp(30px, 3.5vw, 54px); margin: 10px 0 0; }
#how .how-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(460px, 42%); padding-bottom: 6px; }
#how .how-bar button {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer; text-align: left;
  display: grid; gap: 9px; font: 700 9.5px/1 var(--mono); letter-spacing: .12em; color: var(--dim); transition: color .3s;
}
#how .how-bar button.on, #how .how-bar button:hover { color: var(--ink); }
#how .how-bar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
#how .how-bar i { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
#how .how-bar b { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--f, 0)); }

/* track */
#how .how-view { flex: 1; min-height: 0; display: flex; align-items: center; }
#how .how-track { display: flex; gap: 6vw; width: 100%; padding-inline: calc((100% - var(--pw)) / 2); will-change: transform; }
#how .how-panel {
  flex: 0 0 var(--pw); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}

/* copy */
#how .how-copy { position: relative; padding-top: 132px; }
#how .how-copy > *:not(.how-num) { position: relative; }
#how .how-num {
  position: absolute; left: -8px; top: -22px; font: 700 160px/1 var(--display); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: .9; pointer-events: none; user-select: none;
  transform: translateY(calc((1 - var(--q)) * 14px));
}
#how .how-kicker { margin: 0 0 12px; font: 700 10px/1 var(--mono); letter-spacing: .16em; color: var(--accent-ink); }
#how h3 { margin: 0 0 16px; font: 700 clamp(28px, 2.7vw, 42px)/1.02 var(--display); letter-spacing: -.03em; }
#how .how-txt { margin: 0; max-width: 440px; font-size: 13.5px; line-height: 1.72; color: var(--ink-2); }
#how .how-pills { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
#how .how-pills li { padding: 6px 10px 6px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; position: relative; }
#how .how-pills li::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
#how .how-try { display: inline-flex; gap: 8px; margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .06em; border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .2s, border-color .2s; }
#how .how-try i { font-style: normal; color: var(--accent); transition: transform .2s; }
#how .how-try:hover { color: var(--accent-ink); border-color: var(--accent); }
#how .how-try:hover i { transform: translateX(3px); }
#how .how-try:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* device column */
#how .how-dev { min-height: var(--ph-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
#how .how-card {
  width: min(430px, 100%); padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 40px 70px -48px rgba(21, 22, 26, .45), 0 2px 0 rgba(255, 255, 255, .8) inset;
}

/* 01 wallet */
#how .w-top { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: var(--dim); }
#how .w-top code { font: 500 11px var(--mono); letter-spacing: 0; color: var(--ink); background: var(--bg); padding: 3px 7px; border-radius: 6px; }
#how .w-dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb08f, var(--accent)); }
#how .w-ro { margin-left: auto; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 8.5px; }
#how .w-lbl { margin: 22px 0 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: var(--dim); }
#how .w-bal { margin: 0; display: flex; align-items: baseline; gap: 10px; }
#how .w-bal b { font: 700 clamp(40px, 4.2vw, 56px)/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
#how .w-bal small { font-size: 11px; color: var(--dim); font-weight: 700; letter-spacing: .08em; }
#how .w-bar { position: relative; height: 10px; margin: 24px 0 42px; border-radius: 99px; background: var(--bg); box-shadow: 0 0 0 1px var(--line) inset; }
#how .w-bar > i { position: absolute; left: 0; top: 0; bottom: 0; width: 80%; border-radius: 99px; background: linear-gradient(90deg, #ffc4a8, var(--accent)); transform-origin: left; transform: scaleX(var(--b, 0)); }
#how .w-th { position: absolute; left: 80%; top: -9px; bottom: -9px; border-left: 1.5px dashed var(--ink); }
#how .w-th > span { position: absolute; top: calc(100% + 7px); left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--ink-2); }
#how .w-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#how .w-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px 10px 12px; border-radius: 999px;
  border: 1px dashed #c4beb3; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  transition: background .4s, color .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
#how .w-led { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #c4beb3; transition: background .4s; }
#how .k3 .w-chip { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px rgba(255, 90, 31, .75); transform: scale(1.03); }
#how .k3 .w-led { background: #fff; }
#how .spark { position: absolute; left: 50%; top: 50%; }
#how .spark i { position: absolute; left: 0; top: -1px; width: 9px; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0; transform-origin: 0 50%; transform: rotate(calc(var(--a) * 1deg)) translateX(8px); }
#how .k3 .spark i { animation: how-spark .8s var(--ease) forwards; }
@keyframes how-spark {
  0% { opacity: 1; transform: rotate(calc(var(--a) * 1deg)) translateX(10px) scaleX(1); }
  100% { opacity: 0; transform: rotate(calc(var(--a) * 1deg)) translateX(30px) scaleX(.3); }
}
#how .w-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; background: var(--bg); font-size: 11px; font-weight: 500; opacity: .3; transform: translateY(4px); transition: opacity .4s, transform .5s var(--ease); }
#how .w-pill svg { width: 14px; height: 14px; fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#how .w-pill path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .5s .15s ease-out; }
#how .k4 .w-pill { opacity: 1; transform: none; }
#how .k4 .w-pill path { stroke-dashoffset: 0; }
#how .w-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; color: var(--dim); }

/* 02 desks */
#how .how-desks { width: min(520px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
#how .d-list { position: relative; display: grid; gap: 8px; align-content: start; }
#how .d-chip { position: relative; z-index: 1; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 11.5px; font-weight: 700; color: var(--ink-2); transition: color .25s, background .25s; }
#how .d-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
#how .d-chip small { margin-left: auto; font-size: 9.5px; font-weight: 500; color: var(--dim); }
#how .d-chip.on { color: var(--ink); background: #fff; }
#how .d-hl { position: absolute; z-index: 2; left: -4px; right: -4px; top: -4px; height: 56px; border: 2px solid var(--accent); border-radius: 15px; box-shadow: 0 0 0 6px rgba(255, 90, 31, .12); pointer-events: none; transform: translateY(calc(var(--pos, 0) * 56px)); }
#how .d-prev { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; background: var(--ink); color: #f0e9e0; min-height: 272px; }
#how .d-lbl { margin: 0; font-size: 9px; font-weight: 700; letter-spacing: .14em; color: #9a9ba1; }
#how .d-prev b { font: 700 20px/1.1 var(--display); letter-spacing: -.01em; }
#how .d-ex { margin: 0; font-size: 11px; line-height: 1.6; color: rgba(240, 233, 224, .72); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
#how .d-sel { margin-top: auto; align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease); }
#how .k4 .d-sel { opacity: 1; transform: none; }

/* phone */
#how .phone {
  position: relative; height: var(--ph-h); aspect-ratio: 1 / 2; border: 10px solid var(--ink); border-radius: 36px; background: var(--ink);
  font-family: var(--display); font-size: calc(var(--ph-h) / 51);
  box-shadow: 0 50px 80px -50px rgba(21, 22, 26, .7), 0 0 0 1px #34353c inset;
}
#how .phone::before { content: ""; position: absolute; z-index: 9; top: 7px; left: 50%; width: 32%; height: 1.8em; transform: translateX(-50%); border-radius: 99px; background: var(--ink); }
#how .ph-screen { position: absolute; inset: 0; overflow: hidden; border-radius: 26px; background: linear-gradient(168deg, #fcf8f2 0%, #f1e7da 58%, #f7d3c0 100%); }
#how .ph-status { position: relative; z-index: 6; display: flex; justify-content: space-between; height: 3.3em; padding: 1.05em 1.7em 0; font-size: .82em; font-weight: 700; letter-spacing: .02em; }
#how .ph-h { margin: 0 0 .2em; display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15em; font-weight: 700; letter-spacing: -.01em; }
#how .ph-h span { font: 700 .62em var(--mono); letter-spacing: .12em; color: var(--accent-ink); }
#how .draft { padding: .85em .95em; background: var(--paper); border: 1px solid var(--line); border-radius: 1.1em; box-shadow: 0 .6em 1.4em -1em rgba(21, 22, 26, .4); }
#how .dr-txt { margin: 0; font-size: .98em; line-height: 1.42; white-space: pre-line; }
#how .tag { color: var(--accent-ink); font-weight: 700; }
#how .dr-tags { display: flex; flex-wrap: wrap; gap: .35em; margin-top: .65em; }
#how .dr-tags span { padding: .3em .6em; border-radius: 99px; background: var(--bg); font: 700 .7em/1.2 var(--mono); letter-spacing: .05em; color: var(--ink-2); }
#how .dr-tags .u { background: transparent; box-shadow: 0 0 0 1px var(--accent) inset; color: var(--accent-ink); }
#how .pill { display: inline-block; padding: .12em .6em; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; font-size: .92em; }

/* 03 drafts */
#how .ph-lock { position: absolute; top: 4.6em; left: 0; right: 0; display: grid; justify-items: center; gap: .2em; transition: opacity .5s, transform .7s var(--ease); }
#how .ph-lock b { font-size: 5.6em; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
#how .ph-lock span { font: 700 .72em var(--mono); letter-spacing: .18em; color: var(--ink-2); }
#how .k2 .ph-lock { opacity: 0; transform: translateY(-2.5em) scale(.94); }
#how .ph-notif {
  position: absolute; z-index: 5; left: .9em; right: .9em; top: 14em; display: flex; align-items: center; gap: .75em; padding: .85em .9em;
  border-radius: 1.4em; background: rgba(250, 248, 244, .9); box-shadow: 0 1em 2em -1.2em rgba(21, 22, 26, .5), 0 0 0 1px rgba(21, 22, 26, .06);
  opacity: 0; transform: translateY(-1.6em) scale(.95); transition: opacity .45s, transform .6s var(--ease);
}
#how .ph-notif div { flex: 1; min-width: 0; }
#how .ph-notif b { font-size: .92em; }
#how .ph-notif p { margin: .1em 0 0; font-size: .88em; color: var(--ink-2); }
#how .ph-notif time { align-self: flex-start; font: .66em var(--mono); color: var(--dim); }
#how .ph-ico { flex: none; width: 2.6em; height: 2.6em; display: grid; place-items: center; border-radius: .75em; background: var(--accent); color: #fff; font-weight: 700; font-size: .9em; }
#how .k1 .ph-notif { opacity: 1; transform: none; }
#how .k2 .ph-notif { opacity: 0; transform: translateY(-11em) scale(.9); }
#how .ph-view { position: absolute; inset: 3.4em .8em .8em; display: flex; flex-direction: column; gap: .55em; }
#how .ph-view .ph-h { opacity: 0; transition: opacity .4s .1s; }
#how .k2 .ph-view .ph-h { opacity: 1; }
#how .ph-view .draft { opacity: 0; transform: translateY(4em); transition: opacity .45s, transform .7s var(--ease); transition-delay: calc(var(--d) * 110ms); }
#how .k2 .ph-view .draft { opacity: 1; transform: none; }
#how .d1 .dr-txt { min-height: 8.6em; }
#how .d2 .dr-txt, #how .d3 .dr-txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); }
#how .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.18em; background: var(--accent); animation: how-blink 1s steps(1) infinite; }
#how .typed .caret { display: none; }
@keyframes how-blink { 50% { opacity: 0; } }

/* 04 post */
#how .ph-q { position: absolute; inset: 3.4em .8em .8em; display: flex; flex-direction: column; gap: .7em; transition: opacity .5s, filter .5s; }
#how .ph-q .draft { box-shadow: 0 0 0 2px var(--accent), 0 1em 2em -1.2em rgba(255, 90, 31, .6); }
#how .ph-btn, #how .sh-post { position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; }
#how .ph-btn { height: 3.3em; font-size: 1.02em; transition: transform .2s; }
#how .ph-skip { margin: 0; text-align: center; font: .72em var(--mono); color: var(--dim); letter-spacing: .08em; }
#how .ripple { position: absolute; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em; border-radius: 50%; background: rgba(255, 90, 31, .7); opacity: 0; pointer-events: none; }
#how .k1 .ph-btn .ripple, #how .k3 .sh-post .ripple { animation: how-ripple .75s ease-out forwards; }
#how .k1 .ph-btn { background: var(--accent); }
@keyframes how-ripple { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(4.5); } }
#how .ph-dim { position: absolute; inset: 0; z-index: 2; background: rgba(21, 22, 26, .42); opacity: 0; transition: opacity .5s; }
#how .k2 .ph-dim { opacity: 1; }
#how .sheet {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; max-height: 84%; display: flex; flex-direction: column;
  background: #fff; border-radius: 1.5em 1.5em 0 0; box-shadow: 0 -1.5em 3em -1.5em rgba(0, 0, 0, .4);
  transform: translateY(104%); transition: transform .65s var(--ease), opacity .45s;
}
#how .k2 .sheet { transform: none; }
#how .sh-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .9em 1em; border-radius: 1.5em 1.5em 0 0; background: #ececee; font-size: .9em; }
#how .sh-head span:first-child { color: #77787e; }
#how .sh-url { margin: .7em .9em 0; padding: .45em .7em; border-radius: .55em; background: #f3f3f4; font: .72em var(--mono); color: #6f7076; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#how .sh-body { margin: 0; padding: 1em 1em 1.4em; font-size: .98em; line-height: 1.45; white-space: pre-line; overflow: hidden; }
#how .pill.glow { box-shadow: 0 0 0 .3em rgba(255, 90, 31, .18), 0 0 1.4em rgba(255, 90, 31, .55); }
#how .sh-foot { display: flex; justify-content: space-between; align-items: center; padding: .7em 1em 1.1em; border-top: 1px solid #ececee; font: .72em var(--mono); color: #77787e; }
#how .sh-post { padding: .55em 1.5em; font: 700 1.25em var(--display); }
#how .k3 .sh-post { background: var(--accent); }
#how .k4 .sheet { opacity: 0; transform: translateY(18%) scale(.82); }
#how .k4 .ph-dim { opacity: 0; }
#how .k4 .ph-q { opacity: .28; filter: blur(2px); }
#how .posted {
  position: absolute; z-index: 4; left: 1em; right: 1em; top: 50%; display: grid; justify-items: center; gap: .35em; padding: 1.1em 1em 1.3em;
  border-radius: 1.4em; background: var(--paper); text-align: center; box-shadow: 0 1.5em 3em -1.5em rgba(21, 22, 26, .55), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(-40%) scale(.9); transition: opacity .45s .2s, transform .6s .2s var(--ease);
}
#how .k4 .posted { opacity: 1; transform: translateY(-50%); }
#how .posted svg { width: 3.8em; height: 3.8em; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
#how .posted circle { stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .6s .35s ease-out; }
#how .posted path { stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset .4s .8s ease-out; }
#how .k4 .posted circle, #how .k4 .posted path { stroke-dashoffset: 0; }
#how .posted b { font-size: 1.7em; letter-spacing: -.02em; }
#how .posted p { margin: 0; font: .74em var(--mono); color: var(--ink-2); letter-spacing: .04em; }
#how .pts { margin-top: .4em; padding: .3em .8em; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; font-size: .95em; }
#how .ph-next { margin: .6em 0 0; font: 700 .66em var(--mono); letter-spacing: .14em; color: var(--dim); }
#how .draft.mini { padding: .6em .85em; box-shadow: none; opacity: .75; }
#how .draft.mini .dr-txt { font-size: .86em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); }
#how .posted .po-prev { width: 100%; margin: 0 0 .9em; padding: 0 0 .9em; display: flex; gap: .6em; text-align: left; border-bottom: 1px solid var(--line); font: .82em/1.45 var(--display); color: var(--ink-2); }
#how .po-prev b { color: var(--ink); }
#how .po-av { flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffc4a8, var(--accent) 70%); }
#how .ph-cap { margin: 0; font: 9px var(--mono); color: var(--dim); letter-spacing: .04em; }

/* stacked: phones (narrow or held sideways) and reduced motion; the phone mockup always fits under the nav band */
#how.stack { --pw: 100%; --ph-h: min(520px, calc(100svh - 96px)); }
#how.stack .sticky { padding: 96px clamp(16px, 4vw, 48px) 80px; }
#how.stack .how-head { max-width: 1100px; }
#how.stack .how-bar { display: none; }
#how.stack .how-track { flex-direction: column; gap: 88px; padding: 48px 0 0; max-width: 1100px; margin: 0 auto; transform: none !important; }
#how.stack .how-panel { flex: none; }
@media (max-width: 860px) {
  #how.stack .how-panel { grid-template-columns: 1fr; gap: 32px; }
  #how.stack .how-copy { padding-top: 100px; }
  #how.stack .how-num { font-size: 120px; }
  #how.stack .how-dev { min-height: 0; }
  #how .how-desks { grid-template-columns: 1fr; }
  #how .d-prev { min-height: 0; }
}
@media (max-width: 400px) { #how.stack { --ph-h: min(480px, calc(100svh - 96px)); } }
/* windows too short for the pinned track: stacked and scrolling (how.js stacks at the same height) */
@media (max-height: 600px) {
  #how.scene { height: auto; }
  #how.scene > .sticky { position: static; height: auto; overflow: visible; }
}
/* held sideways: a smaller numeral and the two-column desk card; from 761px wide the copy sits beside the device
   again (with more room next to the slim phone mockups), so each step is about one screen tall */
@media (max-height: 500px) {
  #how.stack .how-track { gap: 64px; padding-top: 40px; }
  #how.stack .how-copy { padding-top: 68px; }
  #how.stack .how-num { top: -14px; font-size: 76px; }
}
@media (max-height: 500px) and (min-width: 600px) { #how .how-desks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-height: 500px) and (min-width: 761px) {
  #how.stack .how-panel { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); }
  #how.stack .how-panel:has(.phone) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  #how.stack .how-dev { min-height: 0; }
}
#how.cap *, #how.cap *::before { transition: none !important; animation-duration: 1ms !important; }
@media (prefers-reduced-motion: reduce) {
  #how *, #how *::before { transition: none !important; animation: none !important; }
  #how .k3 .spark i { opacity: 0; }
}


/* ===== safety ===== */
/* 03 · What we can't do — permission diff, never tiles, FAQ. Not pinned. */
#safety {
  --sf-ok: #2f8f5b; --sf-ok-bg: #e3f1e8; --sf-no-bg: #fbe9e0;
  --sf-ease: cubic-bezier(.2, .7, .2, 1);
  interpolate-size: allow-keywords;
  padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(80px, 10vw, 140px);
}
#safety .sf-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
#safety .sf-soft { color: var(--dim); }
#safety .x-lede { font-size: 14px; }

/* ---------- layout ---------- */
#safety .sf-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }

/* ---------- permission diff ---------- */
#safety .sf-term {
  margin: 0; background: var(--paper); border: 1px solid var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(21, 22, 26, .04), 0 30px 60px -40px rgba(21, 22, 26, .45);
  display: flex; flex-direction: column;
}
#safety .sf-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: linear-gradient(#fff, var(--paper));
}
#safety .sf-dots { display: flex; gap: 6px; }
#safety .sf-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line); background: #efeae2; }
#safety .sf-cap { font-size: 10px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
#safety .sf-file { margin-left: auto; font-size: 10px; color: var(--dim); }

#safety .perm {
  margin: 0; padding: 18px 0 22px; flex: 1; display: flex; flex-direction: column; justify-content: center;
  font-family: var(--mono); font-size: 13px; line-height: 1.55; white-space: normal; color: var(--ink);
}
#safety .ln {
  position: relative; display: grid; grid-template-columns: 3em 1.8em 1fr auto; align-items: center;
  padding: 8px 18px 8px 0; min-height: 44px;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .35s ease calc(var(--i) * 80ms), transform .35s var(--sf-ease) calc(var(--i) * 80ms), background-color .4s;
}
#safety .perm.in .ln { opacity: 1; transform: none; }
#safety .ln .n { font-weight: 400; color: #b5afa5; text-align: right; padding-right: 1em; font-size: 11px; user-select: none; }
#safety .ln .g { text-align: center; font-weight: 700; align-self: stretch; display: grid; place-items: center; }
#safety .ln em { font-style: normal; font-weight: 700; display: inline-block; min-width: 6.4ch; }
#safety .ln small { font-size: 11px; color: var(--dim); }
#safety .ln.cmd { color: var(--dim); padding-bottom: 12px; }
#safety .ln.cmd .g { color: var(--accent); }

#safety .ln.add { background: linear-gradient(90deg, var(--sf-ok-bg), rgba(227, 241, 232, .35) 60%, transparent); }
#safety .ln.add .g { color: var(--sf-ok); background: var(--sf-ok-bg); box-shadow: inset 2px 0 var(--sf-ok); }
#safety .ln.add em { color: var(--sf-ok); }

#safety .ln.del .g { color: var(--accent-ink); }
#safety .ln.del .tx { justify-self: start; }
#safety .ln.del .sk {
  color: var(--ink);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 58% / 0% 2px;
  transition: background-size .45s cubic-bezier(.6, 0, .3, 1) calc(var(--i) * 80ms + 400ms), color .4s ease calc(var(--i) * 80ms + 600ms);
}
#safety .perm.in .ln.del .sk { background-size: 100% 2px; color: var(--dim); }
#safety .perm.in .ln.del { background-color: var(--sf-no-bg); transition-delay: calc(var(--i) * 80ms), calc(var(--i) * 80ms), calc(var(--i) * 80ms + 500ms); }
#safety .perm.in .ln.del em { color: var(--ink-2); }

#safety .stamp {
  margin-left: 12px; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); border: 1.5px solid currentColor; border-radius: 4px; padding: 3px 6px 2px;
  transform: rotate(-8deg) scale(1.8); opacity: 0;
  transition: transform .32s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * 80ms + 900ms), opacity .15s calc(var(--i) * 80ms + 900ms);
}
#safety .perm.in .stamp { transform: rotate(-8deg) scale(1); opacity: 1; }

#safety .ln.sum { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 11px; color: var(--dim); letter-spacing: .04em; }
#safety .ln.sum .ok { color: var(--sf-ok); font-weight: 700; }
#safety .ln.sum .no { color: var(--accent-ink); font-weight: 700; }
#safety .caret { display: inline-block; width: 7px; height: 13px; margin-left: 6px; vertical-align: -2px; background: var(--accent); animation: sf-blink 1.05s steps(1) infinite; }
@keyframes sf-blink { 50% { opacity: 0; } }

/* ---------- never tiles ---------- */
#safety .sf-never {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
#safety .tile {
  background: var(--paper); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px;
  transition: background-color .25s;
}
#safety .tile:hover { background: #fff; }
#safety .tile h3 { margin: 10px 0 0; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
#safety .tile p { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }
#safety .ico { width: 40px; height: 40px; overflow: visible; }
#safety .ico .d, #safety .ico .dots { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#safety .ico .x { stroke: var(--accent); stroke-width: 2; }
#safety .ico .dots { stroke-dasharray: .1 3.4; stroke-width: 2.2; }
#safety .ico mask .d { stroke: #fff; stroke-width: 7; }
#safety .ico .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
#safety .tile:not(.draw) .ico { opacity: 0; }
#safety.sf-static .ico .d { animation: none !important; stroke-dashoffset: 0; }
#safety.sf-static .ln, #safety.sf-static .sk, #safety.sf-static .stamp { transition: none !important; }
#safety .tile.draw .ico .d { animation: sf-draw .9s cubic-bezier(.5, 0, .2, 1) both calc(var(--t) * 80ms); }
#safety .tile.draw .ico .x { animation-delay: calc(var(--t) * 80ms + 450ms); animation-duration: .5s; }
#safety .tile.hov .ico .d { animation-delay: 0ms; }
#safety .tile.hov .ico .x { animation-delay: 380ms; }
@keyframes sf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- FAQ ---------- */
#safety .sf-faq { margin-top: clamp(48px, 6vw, 80px); }
#safety .sf-faq-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
#safety .faq-list details { border-bottom: 1px solid var(--line); }
#safety .faq-list summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 5.5em 1fr 28px; align-items: center; gap: 12px;
  padding: 20px 4px; transition: color .2s;
}
#safety .faq-list summary::-webkit-details-marker { display: none; }
#safety .faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
#safety .sf-qi { font-size: 10px; letter-spacing: .12em; color: var(--dim); font-weight: 700; }
#safety .q { font-family: var(--display); font-size: clamp(17px, 1.7vw, 22px); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
#safety .faq-list summary:hover .q, #safety details[open] .q { color: var(--accent-ink); }
#safety .pm { position: relative; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; transition: transform .35s var(--sf-ease), background-color .25s, border-color .25s; }
#safety .pm::before, #safety .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--ink); transition: background-color .25s; }
#safety .pm::after { transform: rotate(90deg); }
#safety details[open] .pm { transform: rotate(135deg); background: var(--ink); border-color: var(--ink); }
#safety details[open] .pm::before, #safety details[open] .pm::after { background: #fff; }
#safety details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .4s var(--sf-ease), content-visibility .4s allow-discrete;
}
#safety details[open]::details-content { block-size: auto; }
#safety .a p { margin: 0; padding: 0 calc(28px + 16px) 22px calc(5.5em + 16px); font-size: 13px; line-height: 1.7; color: var(--ink-2); max-width: 820px; }

/* ---------- phone ---------- */
@media (max-width: 1040px) {
  #safety .sf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px), (max-height: 500px) {
  #safety .perm { font-size: 11px; padding: 12px 0 16px; }
  #safety .ln { grid-template-columns: 2.4em 1.6em 1fr auto; padding-right: 10px; min-height: 36px; }
  #safety .ln small { font-size: 10px; }
  #safety .stamp { margin-left: 8px; font-size: 8px; padding: 2px 4px 1px; }
  #safety .sf-file { display: none; }
  #safety .sf-never { grid-template-columns: 1fr; }
  #safety .tile { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 4px; padding: 18px 16px; }
  #safety .tile .ico { grid-row: span 2; }
  #safety .tile h3 { margin: 0; font-size: 16px; }
  #safety .faq-list summary { grid-template-columns: 1fr 28px; row-gap: 6px; padding: 18px 0; }
  #safety .sf-qi { grid-column: 1 / -1; }
  #safety .q { grid-column: 1; }
  #safety .a p { padding: 0 0 20px; }
}
@media (max-width: 420px) {
  #safety .ln { grid-template-columns: 1.8em 1fr auto; }
  #safety .ln .n { display: none; }
}

/* ---------- reduced motion: final state, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  #safety .ln, #safety .ln.del .sk, #safety .stamp, #safety details::details-content, #safety .pm { transition: none !important; }
  #safety .ln { opacity: 1; transform: none; }
  #safety .ln.del { background-color: var(--sf-no-bg); }
  #safety .ln.del .sk { background-size: 100% 2px; color: var(--dim); }
  #safety .stamp { opacity: 1; transform: rotate(-8deg); }
  #safety .ico .d { stroke-dashoffset: 0; animation: none !important; }
  #safety .caret { animation: none; }
}


/* ===== rules ===== */
/* 04 · The one rule */
#rules { --amber: #f2a93b; --cell-r: 10px; background: var(--bg); }
#rules .r-wrap {
  height: 100%; max-width: 1240px; margin: 0 auto;
  padding: clamp(72px, 10vh, 110px) clamp(16px, 4vw, 48px) clamp(24px, 4vh, 48px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.6vh, 44px);
  /* safe: if it ever runs taller than the screen, it spills at the bottom, never up under the top bar */
  justify-content: safe center;
}

/* head: the heading keeps its width, the lede takes the rest (up to its measure) so it wraps to fewer lines */
#rules .r-head { display: grid; grid-template-columns: auto minmax(0, 560px); gap: 24px 56px; align-items: end; }
#rules .x-h2 { font-size: clamp(34px, min(4.6vw, 8vh), 72px); margin: 12px 0 0; max-width: 11ch; }
#rules .x-lede { max-width: 560px; }
#rules .r-legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
#rules .r-legend li { display: flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
#rules .sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
#rules .sw.s-ok { background: var(--ink); border-color: var(--ink); }
#rules .sw.s-warn { background: var(--amber); border-color: var(--amber); }
#rules .sw.s-last { background: var(--warn); border-color: var(--warn); }
#rules .sw.s-joker { background: var(--ink); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 6px var(--accent); }
#rules .sw.s-lost { background: repeating-linear-gradient(135deg, rgba(200, 50, 31, .22) 0 2px, transparent 2px 4px); border: 1.5px solid var(--warn); }

/* rows */
#rules .r-rows { display: grid; gap: clamp(28px, 5vh, 52px); }
#rules .r-row { transition: opacity .5s; }
#rules .r-row.dim { opacity: .38; }
#rules .r-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; min-height: 24px; }
#rules .r-label { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#rules .r-label b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: 0; }
#rules .r-jk { font-size: 10px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); transition: opacity .3s; }
#rules .r-jk.used { opacity: .5; }
#rules .r-jk.used span { text-decoration: line-through; text-decoration-color: var(--warn); }
#rules .r-out {
  margin: 0 0 0 auto; font-family: var(--display); font-size: clamp(14px, 1.3vw, 18px); font-weight: 500; letter-spacing: -.01em;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
#rules .r-out.on { opacity: 1; transform: none; }
#rules .r-body { display: grid; grid-template-columns: minmax(0, 862px) 300px; gap: 20px 32px; align-items: end; justify-content: space-between; }

/* calendar track */
#rules .r-track { position: relative; }
#rules .r-wd, #rules .r-cells { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
/* the gap under the weekdays is the last-call tag's lane, so it never covers a day number */
#rules .r-wd { margin-bottom: 15px; }
#rules .r-wd span { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: center; }
#rules .r-wd span:nth-child(7n+1) { color: var(--ink-2); font-weight: 700; }
#rules .r-ph { position: absolute; left: 0; right: 0; top: 4px; bottom: -6px; overflow: hidden; pointer-events: none; opacity: var(--po, 0); transition: opacity .3s; z-index: 3; }
#rules .r-ph i {
  position: absolute; inset: 0; border-right: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(255, 90, 31, 0) calc(100% - 70px), rgba(255, 90, 31, .13));
  transform: translateX(calc((var(--rp, 0) - 1) * 100%)); will-change: transform;
}

/* cells */
#rules .r-cell {
  position: relative; aspect-ratio: 1; min-width: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--cell-r);
  perspective: 500px; transition: background-color .25s, border-color .25s, color .25s, transform .2s, opacity .3s;
}
#rules .r-cell:hover { transform: translateY(-2px); }
#rules .r-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#rules .r-cell .n { position: absolute; left: 7px; top: 5px; font-size: 8px; color: var(--dim); transition: color .25s; }
#rules .r-cell .g { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: clamp(13px, 1.5vw, 21px); line-height: 1; }
#rules .r-cell .g::before { content: ''; display: block; transform: scale(.4); opacity: 0; transition: transform .3s cubic-bezier(.2, .9, .3, 1.4), opacity .2s; }
#rules .s-ok { background: var(--ink); border-color: var(--ink); color: #fff; }
#rules .s-warn { background: var(--amber); border-color: var(--amber); }
#rules .s-last { background: var(--warn); border-color: var(--warn); color: #fff; }
#rules .s-lost { color: var(--warn); border: 1.5px solid var(--warn); background: repeating-linear-gradient(135deg, rgba(200, 50, 31, .12) 0 3px, transparent 3px 7px), var(--paper); }
#rules .s-gone, #rules .s-empty { background: transparent; border-style: dashed; opacity: .55; }
#rules .s-jin, #rules .s-joker { background: transparent; border-color: transparent; }
#rules .s-ok .n, #rules .s-last .n { color: rgba(255, 255, 255, .45); }
#rules .s-ok .g::before { content: '✓'; }
#rules .s-warn .g::before { content: '!'; }
#rules .s-last .g::before { content: '!!'; }
#rules .s-lost .g::before { content: '✕'; }
#rules :is(.s-ok, .s-warn, .s-last, .s-lost) .g::before { transform: none; opacity: 1; }

/* joker card: ink back with an orange Ð, flips to the joker face */
#rules .jk { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg) scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .25s; pointer-events: none; }
#rules .jk b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--cell-r); backface-visibility: hidden; -webkit-backface-visibility: hidden; font-family: var(--display); font-weight: 700; }
#rules .jk .bk { background: var(--ink); color: var(--accent); font-size: clamp(15px, 1.7vw, 24px); transform: rotateY(180deg); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(255, 90, 31, .5); }
#rules .jk .fr { background: var(--paper); border: 1.5px solid var(--accent); font-size: clamp(15px, 1.7vw, 24px); font-weight: 400; box-shadow: 0 8px 20px -10px rgba(255, 90, 31, .7); }
#rules .s-jin .jk { opacity: 1; transform: rotateY(180deg) scale(1); }
#rules .s-joker .jk { opacity: 1; transform: rotateY(0deg) scale(1); }
#rules .s-jin .n, #rules .s-joker .n { opacity: 0; }

/* tags: last call above, saved / released below */
#rules .tag {
  position: absolute; left: 50%; translate: -50% 0; z-index: 2; white-space: nowrap; pointer-events: none;
  font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  padding: 4px 6px; border-radius: 4px; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .3, 1.4);
}
/* the last-call tag is wider than a day. Every cell is a stacking context (perspective, for the joker flip),
   so lift this cell for its tag to paint over the next one */
#rules .r-cell.s-last { z-index: 1; }
#rules .s-last .tag { top: -15px; box-shadow: 0 0 0 2px var(--bg); background: var(--warn); color: #fff; opacity: 1; transform: none; }
#rules .s-last .tag::before { content: 'Last call · 24h'; }
#rules .s-joker .tag { bottom: -24px; background: var(--paper); color: var(--accent-ink); border: 1.5px solid var(--accent); opacity: 1; transform: rotate(-6deg); }
#rules .s-joker .tag::before { content: '🃏 Saved'; }
#rules .s-lost .tag { bottom: -24px; background: var(--paper); color: var(--warn); border: 1.5px solid var(--warn); opacity: 1; transform: rotate(-4deg); }
#rules .s-lost .tag::before { content: 'Released'; }

/* hover tooltip */
#rules .r-cell::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 6; white-space: nowrap; pointer-events: none;
  font-size: 9.5px; letter-spacing: .04em; padding: 6px 8px; border-radius: 6px; background: var(--ink); color: #fff;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s;
}
#rules .r-cell:hover::after, #rules .r-cell:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
/* the tip is stuck in its cell's stacking context too: lift the cell so the last-call tag can't cover it */
#rules .r-cell:is(:hover, :focus-visible) { z-index: 2; }
/* no hover on touch screens, and nowrap tips past the right edge widen the page on phones */
@media (hover: none), (max-width: 760px) { #rules .r-cell::after { display: none; } }

/* seat chip + waitlist queue */
#rules .r-seat { position: relative; width: 300px; height: 56px; --h: 0; --k: 0; }
#rules .r-chip {
  position: absolute; left: 0; bottom: 0; width: 168px; height: 36px; border-radius: 999px; padding-left: 32px;
  display: flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff; border: 1.5px solid var(--accent); transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s;
  box-shadow: 0 10px 24px -14px rgba(255, 90, 31, .9);
}
#rules .r-chip.c-risk { background: var(--paper); color: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 4px rgba(200, 50, 31, .12); }
#rules .r-chip.c-released { background: transparent; color: var(--dim); border: 1.5px dashed var(--dim); box-shadow: none; }
#rules .r-chip.c-new { box-shadow: 0 0 0 5px rgba(255, 90, 31, .18), 0 10px 24px -14px rgba(255, 90, 31, .9); }
#rules .wl-t { position: absolute; left: 186px; top: 0; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
#rules .dot { position: absolute; bottom: 11px; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); }
#rules .dot.you { left: 11px; z-index: 2; background: #fff; box-shadow: inset 0 0 0 4px var(--ink); transform: translateY(calc(var(--h) * 26px)) scale(calc(1 - var(--h) * .6)); opacity: calc(1 - var(--h) * 1.4); }
#rules .r-chip.c-risk ~ .dot.you { box-shadow: inset 0 0 0 4px var(--warn); }
#rules .dot.q { left: calc(188px + var(--i) * 20px); background: var(--c); transform: translateX(calc(var(--k) * -20px)); }
#rules .dot.q[style*="--i:0"] { z-index: 3; transform: translateX(calc(var(--h) * -177px)) scale(calc(1 + var(--h) * .15)); box-shadow: 0 0 0 2px #fff; }
#rules .dot.q[style*="--i:5"] { opacity: var(--k); }
#rules.is-play .dot { transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
#rules.is-play .dot.q:not([style*="--i:0"]) { transition-delay: .35s; }

/* footer */
#rules .r-foot { display: flex; margin-top: 8px; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
#rules .r-foot .x-fine { margin: 0; }
#rules .r-play { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; color: var(--accent-ink); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
#rules.is-play .r-play { opacity: 1; transform: none; }
#rules .r-reset {
  font: inherit; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  visibility: hidden; transition: background .2s, color .2s;
}
#rules.is-edited .r-reset { visibility: visible; }
#rules .r-reset:hover { background: var(--ink); color: #fff; }

/* calendar and seat side by side down to 1000px (with smaller days), so a 1024x768 tablet fits the pinned scene */
@media (max-width: 1000px) {
  #rules .r-body { grid-template-columns: minmax(0, 1fr); }
}
/* unpinned: phones (the phone query) and windows too short for the whole pinned calendar. The section scrolls
   past and each row plays as it crosses the screen. rules.js tests the same query (FLOW_Q): change both together */
@media (max-width: 760px), (max-height: 600px), (max-width: 1000px) and (max-height: 880px) {
  #rules.scene { height: auto; }
  #rules.scene > .sticky { position: static; height: auto; overflow: visible; }
  #rules .r-wrap { padding-bottom: 56px; }
  #rules .r-row.dim { opacity: 1; }
}
/* narrow: one week per line (phones held sideways are wide enough for the two-week strip) */
@media (max-width: 760px) {
  #rules .r-wrap { padding: 72px 16px 56px; gap: 28px; }
  #rules .r-head { grid-template-columns: 1fr; gap: 14px; }
  #rules .x-h2 { font-size: clamp(34px, 10vw, 46px); }
  #rules .r-legend { gap: 8px 12px; }
  #rules .r-wd, #rules .r-cells { grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 420px; }
  #rules .r-cells { row-gap: 28px; }
  #rules .r-wd span:nth-child(n+8) { display: none; }
  #rules .r-ph { display: none; }
  #rules .r-meta { flex-wrap: wrap; row-gap: 6px; }
  #rules .r-out { margin: 0; width: 100%; font-size: 15px; min-height: 1.4em; }
  #rules .r-body { gap: 30px; }
  /* first and last day of a week: the last-call tag hangs inwards to stay on screen */
  #rules .r-cell:nth-child(7n+1).s-last .tag { left: -3px; translate: none; }
  #rules .r-cell:nth-child(7n).s-last .tag { left: auto; right: -3px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  #rules *, #rules *::before, #rules *::after { transition: none !important; }
}


/* ===== points ===== */
/* 05 · Points — not pinned; a short breather between two pinned scenes. */
#points { --ez: cubic-bezier(.2, .7, .2, 1); --fs: clamp(44px, 5.3vw, 96px); position: relative; background: var(--bg); color: var(--ink); }
#points .pt-wrap { max-width: 1320px; margin: 0 auto; padding: 128px clamp(16px, 4vw, 48px) 120px; }

/* head */
#points .pt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: end; margin-bottom: 40px; }
#points .pt-head .x-h2 { margin-bottom: 0; font-size: clamp(34px, 4.3vw, 66px); }
#points .pt-soft { color: var(--dim); }
#points .x-lede b { font-weight: 700; color: var(--ink); }

/* equation stage */
#points .pt-stage {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  padding: 30px clamp(16px, 3vw, 40px) 54px; overflow: hidden; container-type: inline-size;
  background-image: radial-gradient(circle at 1px 1px, rgba(21, 22, 26, .07) 1px, transparent 0);
  background-size: 22px 22px;
}
#points .pt-label { display: flex; align-items: center; gap: 14px; margin-bottom: 44px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
#points .pt-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .16); }
#points .pt-replay {
  font: inherit; letter-spacing: .08em; color: var(--ink-2); background: transparent; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; transition: border-color .2s, color .2s, background .2s;
}
#points .pt-replay:hover, #points .pt-replay:focus-visible { border-color: var(--ink); color: var(--ink); background: #fff; outline: none; }
#points .pt-corner {
  position: absolute; top: 22px; right: clamp(16px, 3vw, 40px); margin: 0; max-width: 270px;
  display: flex; gap: 10px; align-items: flex-start; font-size: 10.5px; line-height: 1.55; color: var(--ink-2);
  padding: 10px 12px; background: var(--bg); border: 1px solid var(--line);
}
#points .pt-corner > span:first-child {
  flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--ink-2); font: 700 9px/1 var(--mono); margin-top: 1px;
}
#points .pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#points .pt-eq { --fs: clamp(40px, 5.9cqi, 96px); display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 0 clamp(6px, .9vw, 14px); font-size: var(--fs); }
#points .pt-br { display: none; }
#points .pt-t, #points .pt-op, #points .pt-sub {
  opacity: 0; transform: translateY(20px) scale(.9);
  transition: opacity .35s var(--ez), transform .35s var(--ez);
}
#points .pt-sub .pt-op, #points .pt-sub .pt-t { opacity: 1; transform: none; }
#points .on.pt-t, #points .on.pt-op, #points .on.pt-sub { opacity: 1; transform: none; }
#points .pt-sub { display: flex; align-items: flex-start; gap: inherit; column-gap: clamp(6px, .9vw, 14px); }

#points .pt-t { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#points .pt-t b {
  display: block; font: 700 1em/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  padding: .16em .26em .18em; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(21, 22, 26, .04), 0 14px 30px -18px rgba(21, 22, 26, .35); white-space: nowrap;
}
#points .pt-t small { font: 500 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: center; max-width: 10em; }
#points .pt-op { font: 500 .62em/1 var(--display); color: var(--dim); padding-top: .38em; font-style: normal; }
#points .pt-sub .pt-op { color: var(--line); padding-top: .64em; font-size: .62em; }

/* running subtotals: smaller, ghosted */
#points .pt-mid { padding-top: .26em; }
#points .pt-mid b { font-size: .62em; background: transparent; box-shadow: none; border-style: dashed; color: var(--ink-2); }

/* multiplier + streak flame */
#points .pt-mult b { color: var(--ink); }
#points .pt-flame { display: flex; gap: 3px; justify-content: center; margin-top: 7px; }
#points .pt-flame i { width: 14px; height: 6px; border-radius: 2px; background: var(--line); transition: background .25s, transform .25s var(--ez); }
#points .pt-flame i.on { background: var(--accent); transform: scaleY(1.35); }
#points .pt-flame i.on:nth-child(1) { background: #ffb38f; }
#points .pt-flame i.on:nth-child(2) { background: #ff9566; }
#points .pt-flame i.on:nth-child(3) { background: #ff7a42; }

#points .pt-eng small { color: var(--accent-ink); }

/* result */
#points .pt-res b { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 20px 44px -18px rgba(255, 90, 31, .75); }
#points .pt-res small { color: var(--ink); font-weight: 700; }
#points .pt-res.on b { animation: pt-pop .6s .15s var(--ez) both; }
@keyframes pt-pop { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }

/* lower row: week + total */
#points .pt-low { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; margin-top: 18px; }
#points .pt-week { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 22px clamp(16px, 2.4vw, 30px) 18px; }
#points .pt-week figcaption { display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin-bottom: 18px; }
#points .pt-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(8px, 1.4vw, 18px); height: 190px; }
#points .pt-bar { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-width: 0; text-align: center; }
#points .pt-val { font: 700 15px/1 var(--display); font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(6px); transition: opacity .3s .25s, transform .3s .25s var(--ez); }
#points .pt-col { position: relative; box-shadow: 0 1px 0 var(--line); }
#points .pt-col i {
  position: absolute; left: 50%; width: min(100%, 46px); margin-left: max(-50%, -23px); bottom: 0; height: calc(var(--h) * 1%); background: var(--ink); border-radius: 8px 8px 2px 2px;
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ez);
}
#points .pt-bar:last-child .pt-col i { background: var(--accent); }
#points .pt-bar.is-joker .pt-col i {
  background: repeating-linear-gradient(-45deg, rgba(21, 22, 26, .16) 0 2px, transparent 2px 7px);
  border: 1px dashed rgba(21, 22, 26, .3); border-bottom: 0;
}
#points .pt-day { font-size: 9.5px; letter-spacing: .14em; color: var(--dim); }
#points .pt-bar.on .pt-col i { transform: scaleY(1); }
#points .pt-bar.on .pt-val { opacity: 1; transform: none; }

#points .pt-total { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--ink); color: #fff; padding: 22px 24px 24px; }
#points .pt-total .x-fine { color: rgba(255, 255, 255, .62); margin: 0; }
#points .pt-odo { display: flex; flex-direction: column; gap: 8px; opacity: .25; transition: opacity .4s; }
#points .pt-odo.on { opacity: 1; }
#points .pt-odo small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
#points .pt-digits { display: flex; font: 700 clamp(64px, 6vw, 92px)/1 var(--display); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
#points .pt-dig { display: block; height: 1em; overflow: hidden; }
#points .pt-dig > span { display: flex; flex-direction: column; transition: transform 1.3s cubic-bezier(.16, 1, .3, 1); }
#points .pt-dig i { display: block; height: 1em; font-style: normal; }
#points .pt-try { margin: 0; justify-content: space-between; background: #fff; color: var(--ink); }
#points .pt-try:hover, #points .pt-try:focus-visible { background: var(--accent); color: #fff; outline: none; }

/* tablet: corner note drops into flow */
@media (max-width: 1100px) {
  #points .pt-head { grid-template-columns: 1fr; gap: 18px; }
  #points .pt-head .x-lede { max-width: 640px; }
  #points .pt-corner { position: static; max-width: none; margin-bottom: 26px; }
  #points .pt-label { margin-bottom: 30px; }
}

/* phone: two-line equation, subtotals hidden */
@media (max-width: 760px), (max-height: 500px) {
  #points .pt-wrap { padding: 96px 16px 80px; }
  #points .pt-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  #points .pt-stage { padding: 20px 12px 34px; }
  /* shrinks below ~370px so '3 × 10 × ×1.5' stays on one row; the row gaps around the zero-height break add up to 22px */
  #points .pt-eq { --fs: min(44px, 14cqi); flex-wrap: wrap; row-gap: 11px; }
  #points .pt-sub { display: none; }
  #points .pt-br { display: block; flex-basis: 100%; height: 0; }
  #points .pt-t { gap: 8px; }
  #points .pt-t b { border-radius: 10px; }
  #points .pt-t small { font-size: 8.5px; letter-spacing: .08em; }
  #points .pt-eng small { white-space: normal; max-width: 9em; }
  #points .pt-low { grid-template-columns: 1fr; }
  #points .pt-bars { height: 160px; gap: 6px; }
  #points .pt-val { font-size: 12px; }
  #points .pt-day { font-size: 8.5px; letter-spacing: .06em; }
  #points .pt-week figcaption { flex-wrap: wrap; gap: 8px; }
  #points .pt-week .proto { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #points .pt-t, #points .pt-op, #points .pt-sub, #points .pt-col i, #points .pt-val, #points .pt-dig > span, #points .pt-flame i, #points .pt-odo { transition: none !important; animation: none !important; }
}


/* ===== split ===== */
/* 06 · The weekly split */
#split { background: var(--bg); }
#split .sticky { display: flex; }
#split .sp-wrap {
  width: 100%; max-width: 1320px; margin: 0 auto; padding: 84px clamp(16px, 4vw, 48px) 28px;
  display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
#split .sp-soft { color: var(--accent); }
#split .x-h2 { font-size: clamp(34px, 3.9vw, 62px); }
#split .x-lede { max-width: 470px; }

/* money flow strip: the chips sit flush with the strip's edges, evenly spaced, over the path (which runs under them) */
#split .sp-flow {
  position: relative; margin: 30px 0 22px; max-width: 470px; container: sp-flow / inline-size;
  display: grid; grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto; align-items: center;
}
#split .sp-flow svg { grid-area: 1 / 1 / 2 / -1; display: block; width: 100%; height: auto; overflow: visible; }
#split .sp-path { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; }
#split .sp-dots circle { fill: var(--accent); }
#split .sp-node {
  position: relative; grid-row: 1; grid-column: 1;
  display: grid; gap: 2px; text-align: center; min-width: 96px; padding: 8px 10px 9px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 24px -18px rgba(21, 22, 26, .45);
}
#split .sp-node:nth-of-type(2) { grid-column: 3; }
#split .sp-node:nth-of-type(3) { grid-column: 5; }
#split .sp-node b { white-space: nowrap; font-family: var(--display); font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
#split .sp-node span { font-size: 9.5px; color: var(--dim); }
/* a strip narrower than the three full chips (phones, and the 320px copy column up to ~1150px): compact chips, labels only */
@container sp-flow (max-width: 399px) {
  #split .sp-node { min-width: 0; padding: 6px 8px 7px; }
  #split .sp-node b { font-size: 10.5px; }
  #split .sp-node span { display: none; }
}
#split .sp-pool { background: var(--ink); color: #fff; border-color: var(--ink); overflow: hidden; }
/* the bold label sets the pool's width and its longer note wraps under it, so the three chips fit a 400px strip */
#split .sp-pool span { color: rgba(255, 255, 255, .6); contain: inline-size; }
#split .sp-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
#split .sp-fill i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 0)); }

#split .sp-sim {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 11px; letter-spacing: .06em;
  padding: 10px 0; border-bottom: 1px solid currentColor; color: var(--ink); transition: color .2s, gap .2s;
}
#split .sp-sim:hover { color: var(--accent-ink); gap: 12px; }

/* chart card */
#split .sp-right { display: grid; gap: 14px; min-width: 0; }
#split .sp-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px 16px;
  box-shadow: 0 30px 60px -40px rgba(21, 22, 26, .35); min-width: 0; container: sp-card / inline-size;
}
#split .sp-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
#split .sp-cap { margin: 0; font-size: 10px; line-height: 1.6; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
/* the pill wraps as one piece, and as an inline-block its padding and border get their own room in the line;
   the space before it in the markup separates it from the text, so a wrapped pill starts flush left */
#split .sp-cap .proto { display: inline-block; white-space: nowrap; margin-left: 0; line-height: 1.2; }

#split .sp-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px;
  background: rgba(21, 22, 26, .06); border-radius: 999px; isolation: isolate;
}
#split .sp-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--ink); z-index: -1;
  transition: transform .45s cubic-bezier(.3,.7,.2,1); box-shadow: 0 4px 12px -6px rgba(21, 22, 26, .6);
}
#split .sp-toggle button {
  font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  background: none; border: 0; padding: 9px 14px; cursor: pointer; border-radius: 999px; transition: color .3s; white-space: nowrap;
}
#split .sp-toggle button[aria-pressed="true"] { color: #fff; }
#split .sp-toggle.on2 .sp-thumb { transform: translateX(100%); }
#split .sp-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#split .sp-chart { position: relative; margin-top: 14px; }
#split .sp-cv { display: block; width: 100%; height: clamp(190px, calc(100svh - 500px), 370px); cursor: crosshair; }
#split .sp-bracket, #split .sp-mid, #split .sp-you {
  position: absolute; left: 0; top: 0; margin: 0; pointer-events: none; white-space: nowrap; will-change: transform;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}
#split .sp-bracket { color: var(--accent-ink); }
#split .sp-bracket b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--accent); }
#split .sp-mid { color: var(--ink); opacity: 0; }
#split .sp-mid > span { color: var(--dim); }
#split .sp-mid b { font-family: var(--display); font-size: 18px; letter-spacing: -.01em; margin-left: 4px; }
#split .sp-you { font-size: 9px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
#split .sp-you i { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent-ink); }
#split .sp-tip {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; background: var(--ink); color: #fff;
  padding: 7px 9px; border-radius: 8px; font-size: 10px; line-height: 1.5; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
}
#split .sp-tip b { color: var(--accent); }

#split .sp-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 14px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
#split .sp-read > div { background: var(--paper); padding: 9px 12px; }
#split .sp-read dt { font-size: 9px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
#split .sp-read dd { margin: 3px 0 0; font-size: 10px; color: var(--ink-2); }
#split .sp-read dd b { font-family: var(--display); font-size: 20px; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#split .sp-read dd.hot b { color: var(--accent); }

#split .sp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 12px 0 0; font-size: 9.5px; color: var(--dim); }
#split .sp-legend li { display: flex; align-items: center; gap: 6px; }
#split .sp-legend i { width: 10px; height: 10px; border-radius: 2px; }
#split .k-top { background: var(--accent); }
#split .k-rest { background: rgba(21, 22, 26, .7); }
#split .k-ghost { border: 1.5px dashed var(--ink); opacity: .55; border-radius: 0 !important; height: 6px !important; border-bottom: 0; border-left: 0; border-right: 0; }
#split .k-you { background: var(--paper); border: 2px solid var(--accent-ink); border-radius: 50% !important; }

#split .sp-disc { border: 1px solid var(--accent); border-radius: 14px; padding: 12px 16px 13px; background: rgba(255, 90, 31, .04); }
#split .sp-disc p:last-child { margin: 5px 0 0; font-size: 11px; line-height: 1.6; color: var(--ink-2); }

/* reduced-motion small multiples */
#split .sp-rm { display: none; }
#split.rm .sp-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
#split.rm .sp-card > * { grid-column: 1 / -1; }
#split.rm .sp-chart { grid-column: 1; }
#split.rm .sp-rm { display: block; grid-column: 2; margin-top: 14px; }
#split.rm .sp-rm figure { margin: 0; }
#split.rm .sp-bracket, #split.rm .sp-mid, #split.rm .sp-you, #split.rm .sp-toggle { display: none; }
#split.rm .sp-cv, #split.rm .sp-cv2 { display: block; width: 100%; height: 190px; cursor: default; }
#split.rm .sp-rm figcaption, #split.rm .sp-chart::after { display: block; margin-top: 6px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
#split.rm .sp-chart::after { content: "Proportional"; }
#split.rm .sp-rm figcaption { color: var(--accent-ink); font-weight: 700; }

/* a short screen (laptops around 600px tall): the pinned frame grows past the viewport instead of clipping the last
   lines (the simulator link, the end of the disclosure), which then scroll into view as the pin releases */
@media (prefers-reduced-motion: no-preference) {
  #split.scene > .sticky { height: auto; min-height: 100vh; min-height: 100svh; overflow: visible; }
}

/* phone */
@media (max-width: 760px), (max-height: 500px) {
  #split .sp-wrap { grid-template-columns: 1fr; padding: 72px 16px 48px; gap: 22px; align-items: start; }
  #split .x-h2 { font-size: clamp(32px, 9vw, 44px); }
  #split .sp-flow { margin: 24px 0 14px; }
  #split .sp-card { padding: 14px 14px 14px; border-radius: 16px; }
  #split .sp-head { flex-direction: column; align-items: stretch; }
  #split .sp-cv { height: 220px; }
  #split .sp-bracket, #split .sp-mid { position: static; transform: none !important; opacity: 1 !important; display: inline-block; margin: 10px 14px 0 0; }
  #split .sp-read { grid-template-columns: 1fr 1fr; }
  #split .sp-read > div:last-child { grid-column: 1 / -1; }
  /* a wide single column (a phone held sideways): caption and toggle share a row, the readouts sit three across */
  @container sp-card (min-width: 560px) {
    #split .sp-head { flex-direction: row; align-items: center; }
    #split .sp-read { grid-template-columns: repeat(3, 1fr); }
    #split .sp-read > div:last-child { grid-column: auto; }
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference), (max-height: 500px) and (prefers-reduced-motion: no-preference) {
  #split.scene { height: auto; }
  #split.scene > .sticky { position: static; height: auto; min-height: 0; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  #split .sp-wrap { padding-top: 96px; padding-bottom: 72px; }
  #split .sp-thumb, #split .sp-sim { transition: none; }
}


/* ===== close ===== */
/* 07 · The crew, posting */
#close { position: relative; background: var(--bg); color: var(--ink); }
#close .cl-wrap { max-width: 1320px; margin: 0 auto; padding: 140px clamp(16px, 4vw, 48px) 120px; }

/* head */
#close .cl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: end; margin-bottom: 44px; }
#close .cl-head .x-h2 { margin-bottom: 0; max-width: 15ch; }
#close .cl-soft { color: var(--dim); }
#close .cl-head .x-lede { padding-bottom: 6px; }

/* stage */
#close .cl-stage { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
#close .cl-tag { display: inline-block; font-size: 10px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
#close .cl-tag-acc { color: var(--accent-ink); }

/* old way: ink panel */
#close .cl-kol {
  background: var(--ink); color: #fff; border-radius: 18px; padding: 22px 18px 18px;
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
#close .cl-kol::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, .06), transparent 60%); }
#close .cl-kol-head { display: flex; justify-content: space-between; align-items: baseline; }
#close .cl-kol-head b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
#close .cl-kol-strip { display: none; margin: 0; }
#close .cl-kol-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#close .cl-kol-list li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px 11px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  will-change: transform, opacity;
}
#close .cl-kav { width: 26px; height: 26px; border-radius: 50%; background: #3a3b41; position: relative; }
#close .cl-kav::after { content: ""; position: absolute; left: 5px; right: 5px; top: 10px; height: 5px; border-radius: 3px; background: #0b0b0d; box-shadow: 0 0 0 1px #55565c; }
#close .cl-kt { display: grid; gap: 2px; min-width: 0; }
#close .cl-kt b { font-size: 10px; color: rgba(255, 255, 255, .5); font-weight: 500; letter-spacing: .04em; }
#close .cl-kt span { font-size: 11px; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#close .cl-kol-list em { font-style: normal; font-size: 8.5px; letter-spacing: .12em; font-weight: 700; color: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; padding: 3px 5px; transform: rotate(-4deg); }
#close .cl-nothing { --draw: 1; margin-top: auto; display: grid; gap: 6px; padding-top: 14px; }
#close .cl-flat { display: block; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .35) 50%, transparent 0) 0 0 / 8px 1px; transform-origin: left; transform: scaleX(var(--draw)); }
#close .cl-nothing span { font-size: 10px; color: rgba(255, 255, 255, .45); letter-spacing: .06em; }
#close .cl-nothing b { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -.02em; color: rgba(255, 255, 255, .45); }
#close .cl-kol-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
#close .cl-kol-foot b { font-family: var(--display); font-size: 22px; color: #fff; letter-spacing: 0; }

/* the crew: cream panel */
#close .cl-crew {
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 18px;
  padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  box-shadow: 0 30px 60px -40px rgba(21, 22, 26, .35);
}
#close .cl-crew-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
#close .cl-feed-label { margin: 6px 0 0; font-size: 11px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#close .cl-feed-label .proto { margin-left: 0; }
#close .cl-pause {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 7px 12px 7px 10px; font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: border-color .2s, background .2s;
}
#close .cl-pause:hover { border-color: var(--ink); }
#close .cl-pause:focus-visible, #close .cl-recap a:focus-visible, #close .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#close .cl-pause i { width: 9px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
#close.cl-paused .cl-pause i { border: 0; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

#close .cl-feed {
  position: relative; height: 460px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  touch-action: pan-y;
}
#close .cl-col { min-width: 0; will-change: transform; animation: cl-scroll 60s linear infinite; animation-play-state: paused; }
#close .cl-col-b { animation-duration: 74s; animation-delay: -21s; }
#close.cl-live .cl-col { animation-play-state: running; }
#close .cl-feed:hover .cl-col, #close .cl-feed.cl-hold .cl-col, #close.cl-paused .cl-col { animation-play-state: paused; }
@keyframes cl-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
#close .cl-set { display: grid; gap: 12px; padding-bottom: 12px; }

#close .cl-post {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px 12px;
  display: grid; gap: 9px; box-shadow: 0 1px 0 rgba(21, 22, 26, .03), 0 10px 24px -20px rgba(21, 22, 26, .4);
  transition: border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1);
}
#close .cl-post:hover { border-color: var(--dc); transform: translateY(-2px); }
#close .cl-post header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
#close .cl-av { width: 30px; height: 30px; border-radius: 50%; background: var(--dc); color: #fff; display: grid; place-items: center; font: 700 10px/1 var(--display); letter-spacing: .02em; }
#close .cl-av.lt { color: var(--ink); }
#close .cl-who { display: grid; gap: 1px; min-width: 0; }
#close .cl-who b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#close .cl-who small { font-size: 9.5px; color: var(--dim); letter-spacing: .04em; }
#close .cl-desk { font-size: 8.5px; letter-spacing: .12em; font-weight: 700; padding: 4px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--dc) 45%, transparent); color: var(--ink-2); }
#close .cl-post p {
  margin: 0; font: 400 14px/1.45 var(--display); letter-spacing: -.005em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em;
}
#close .cl-post footer { display: flex; align-items: center; gap: 8px; }
#close .cl-hash { font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); padding: 4px 8px; border-radius: 999px; letter-spacing: .02em; }
#close .cl-post footer small { font-size: 9.5px; color: var(--dim); }

#close .cl-crew-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 11px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
#close .cl-crew-foot b { color: var(--ink); }
#close .cl-every b { color: var(--accent-ink); }

/* recap: six connected chips */
#close .cl-recap { position: relative; margin-top: 56px; }
#close .cl-recap ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 1; }
#close .cl-rail { position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
#close .cl-rail i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.4, 0, .2, 1) .1s; }
#close.cl-recap-in .cl-rail i { transform: scaleX(1); }
#close .cl-recap a {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--dim); font-weight: 700; font-size: 11.5px;
  opacity: .55; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1), color .5s, border-color .5s, background .2s;
}
#close .cl-recap small { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; background: var(--line); color: var(--ink-2); transition: background .5s, color .5s; }
#close .cl-recap span { line-height: 1.25; }
#close.cl-recap-in .cl-recap a { opacity: 1; transform: none; color: var(--ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
#close.cl-recap-in .cl-recap small { background: var(--accent); color: #fff; }
#close .cl-recap a:hover { background: #fff; border-color: var(--ink); }
#close .cl-recap li:nth-child(1) a, #close .cl-recap li:nth-child(1) small { transition-delay: 0ms; }
#close .cl-recap li:nth-child(2) a, #close .cl-recap li:nth-child(2) small { transition-delay: 120ms; }
#close .cl-recap li:nth-child(3) a, #close .cl-recap li:nth-child(3) small { transition-delay: 240ms; }
#close .cl-recap li:nth-child(4) a, #close .cl-recap li:nth-child(4) small { transition-delay: 360ms; }
#close .cl-recap li:nth-child(5) a, #close .cl-recap li:nth-child(5) small { transition-delay: 480ms; }
#close .cl-recap li:nth-child(6) a, #close .cl-recap li:nth-child(6) small { transition-delay: 600ms; }
#close .cl-recap a:hover { transition-delay: 0ms; }

/* CTAs */
#close .cl-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
#close .cl-cta .cta { margin: 0; min-width: 200px; padding: 16px 18px; font-size: 12px; border-radius: 999px; }
#close .cl-cta .cl-primary { background: var(--accent); }
#close .cl-cta .cl-primary i { color: #fff; transition: transform .25s; }
#close .cl-cta .cl-primary:hover { background: var(--ink); }
#close .cl-cta .cl-primary:hover i { color: var(--accent); transform: translateX(3px); }
#close .cl-cta .cl-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
#close .cl-cta .cl-ghost:hover { background: var(--ink); color: #fff; }
#close .cl-cta .x-fine { flex: 1 1 320px; max-width: 460px; margin: 0 0 0 auto; }

/* phone */
@media (max-width: 760px), (max-height: 500px) {
  #close .cl-wrap { padding: 96px 16px 80px; }
  #close .cl-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  #close .cl-stage { grid-template-columns: 1fr; gap: 12px; }
  #close .cl-kol { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; gap: 12px; }
  #close .cl-kol-head, #close .cl-kol-list, #close .cl-nothing, #close .cl-kol-foot { display: none; }
  #close .cl-kol-strip { display: block; font-size: 12px; color: rgba(255, 255, 255, .8); }
  #close .cl-kol-strip::before { content: "THE OLD WAY"; display: block; font-size: 9px; letter-spacing: .14em; font-weight: 700; color: rgba(255, 255, 255, .45); margin-bottom: 4px; }
  #close .cl-crew { padding: 16px 14px 12px; border-radius: 14px; }
  #close .cl-feed { height: 360px; grid-template-columns: 1fr; }
  #close .cl-col-b { display: none; }
  #close .cl-recap { margin-top: 36px; }
  #close .cl-recap ol { grid-template-columns: 1fr 1fr; gap: 8px; }
  #close .cl-rail { display: none; }
  #close .cl-recap a { border-radius: 12px; padding: 10px 12px; }
  #close .cl-cta .cta { flex: 1 1 100%; }
  #close .cl-cta .x-fine { margin: 6px 0 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  #close .cl-col { animation: none; }
  #close .cl-feed { height: auto; display: block; -webkit-mask-image: none; mask-image: none; }
  #close .cl-col:first-child { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  #close .cl-recap a, #close .cl-rail i, #close .cl-recap small { transition: none; }
}
