/* Dojo — one red, warm blacks, a lot of quiet. */

:root {
  --bg: #0a0909;
  --bg-2: #121110;
  --bg-3: #181716;
  --ink: #f4f3f1;
  --mute: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.34);
  --ghost: rgba(255, 255, 255, 0.16);
  --hair: rgba(255, 255, 255, 0.1);
  /* The one red: Theme.ember (0.91, 0.31, 0.20). */
  --sun: #e84f33;
  --moss: #8fd1a3;
  --radius: 26px;
  --gutter: clamp(16px, 5vw, 64px);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --h2: clamp(44px, 6.4vw, 96px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
kbd {
  font-family: var(--sans); font-size: 0.82em; font-weight: 500;
  padding: 0.12em 0.45em; margin: 0 0.08em; border-radius: 6px;
  border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.06); white-space: nowrap;
}
code { font-family: var(--mono); font-size: 0.88em; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #000; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.note { font-size: 14px; color: var(--faint); margin-top: 22px; }
.fine { font-size: 13px; color: var(--faint); letter-spacing: 0.01em; }
.micro { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.caption { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 18px; }

h2, .h2 {
  font-size: var(--h2); line-height: 0.98; font-weight: 600; letter-spacing: -0.045em;
  margin-bottom: 28px; text-wrap: balance;
}

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #000;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pill:hover { transform: translateY(-1px) scale(1.015); box-shadow: 0 0 60px rgba(255, 255, 255, 0.2); }
.pill:active { transform: scale(0.97); }
.pill--small { height: 34px; padding: 0 18px; font-size: 13.5px; box-shadow: none; }
.pill--large { height: 60px; padding: 0 34px; font-size: 18px; }
.pill__price { font-weight: 400; opacity: 0.5; padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(0, 0, 0, 0.18); font-variant-numeric: tabular-nums; }
.ghost {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 999px;
  color: var(--ink); font-size: 16px; font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--hair);
  transition: background 0.25s var(--ease);
}
.ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10, 9, 9, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(24px); backdrop-filter: saturate(160%) blur(24px);
  border-bottom-color: var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; justify-self: start; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--mute); justify-self: end; }
.nav nav a:not(.pill):hover { color: var(--ink); }
.nav__chapter { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); height: 18px; overflow: hidden; }
.nav__chapter span { display: block; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.nav__chapter.is-swapping span { opacity: 0; transform: translateY(-8px); }

/* Hero: the promise over the ambient film. */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(72px, 12vh, 132px);
  overflow: hidden; isolation: isolate;
}
.hero__film {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  background: #050505 url("assets/hero-poster.jpg") center / cover no-repeat;
  transform: scale(calc(1.04 + var(--hero, 0) * 0.08));
  filter: saturate(0.9);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 9, 9, 0.7) 0%, rgba(10, 9, 9, 0) 26%),
    linear-gradient(0deg, rgba(10, 9, 9, 1) 0%, rgba(10, 9, 9, 0.6) 34%, rgba(10, 9, 9, 0) 70%),
    linear-gradient(90deg, rgba(10, 9, 9, 0.9) 0%, rgba(10, 9, 9, 0.55) 55%, rgba(10, 9, 9, 0.3) 100%),
    rgba(10, 9, 9, 0.25);
}
.hero__kanji {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(18px, 2vw, 26px); letter-spacing: 0.5em; color: rgba(255, 255, 255, 0.28);
}
.hero__copy { position: relative; max-width: 1100px; }
.hero h1 {
  font-size: clamp(50px, 7.6vw, 140px); line-height: 0.92; font-weight: 600; letter-spacing: -0.052em;
  margin-bottom: 26px;
}
.hero__line { display: block; }
@media (min-width: 901px) { .hero__line { white-space: nowrap; } }
.nowrap { white-space: nowrap; }
.hero__line--2 { color: rgba(255, 255, 255, 0.42); }
.hero__sub { font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 18px; }
.hero__sub::before { content: ""; display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--sun); margin-right: 0.38em; vertical-align: 0.12em; }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: rgba(255, 255, 255, 0.7); max-width: 560px; margin-bottom: 34px; letter-spacing: -0.005em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 34px; margin-left: -11px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ghost); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--mute); animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* Hero entrance: words rise in, once. */
.js .hero__eyebrow, .js .hero__line, .js .hero__sub, .js .lede, .js .hero .actions, .js .hero .fine {
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.is-loaded .hero__eyebrow, .is-loaded .hero__line, .is-loaded .hero__sub, .is-loaded .lede, .is-loaded .hero .actions, .is-loaded .hero .fine { opacity: 1; transform: none; filter: none; }
.is-loaded .hero__line { transition-delay: 0.08s; }
.is-loaded .hero__line--2 { transition-delay: 0.22s; }
.is-loaded .hero__sub { transition-delay: 0.42s; }
.is-loaded .lede { transition-delay: 0.54s; }
.is-loaded .hero .actions { transition-delay: 0.66s; }
.is-loaded .hero .fine { transition-delay: 0.78s; }

/* The film: an inset frame that opens to full width as it arrives. --f runs 0 → 1. */
.film-stage { --f: 0; padding: clamp(24px, 6vh, 72px) 0 clamp(40px, 8vh, 96px); }
.film-frame {
  position: relative; display: block; overflow: hidden;
  width: calc(100% - 2 * var(--gutter)); max-width: 1600px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: calc(28px * (1 - var(--f) * 0.6));
  background: #000;
  transform: scale(calc(0.84 + var(--f) * 0.16));
  box-shadow: 0 0 0 1px var(--hair), 0 80px 160px -60px rgba(0, 0, 0, 0.95);
}
.film-frame img { width: 100%; height: 100%; object-fit: cover; opacity: calc(0.55 + var(--f) * 0.45); transition: transform 1.2s var(--ease); }
.film-frame:hover img { transform: scale(1.02); }
.film-frame__play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.film-frame__play svg { margin-left: 3px; }
.film-frame:hover .film-frame__play { transform: scale(1.08); background: rgba(255, 255, 255, 0.22); }
.film-frame__label { position: absolute; left: 0; right: 0; bottom: clamp(16px, 4vw, 36px); text-align: center; font-size: 15px; font-weight: 500; }
.film-frame__label small { display: block; font-size: 12px; color: var(--mute); font-weight: 400; margin-top: 2px; }

/* Statement: words light as you read. */
.statement { max-width: 1200px; margin: 0 auto; padding: clamp(110px, 18vh, 220px) var(--gutter) clamp(40px, 8vh, 100px); }
.statement__text { font-size: clamp(32px, 5vw, 72px); line-height: 1.08; font-weight: 600; letter-spacing: -0.038em; text-wrap: pretty; }
.statement__text .w { color: rgba(255, 255, 255, 0.14); transition: color 0.35s linear; }
.statement__text .w.is-lit { color: var(--ink); }
.statement__text .w.is-sun { color: rgba(232, 79, 51, 0.22); }
.statement__text .w.is-sun.is-lit { color: var(--sun); }

/* 01 · The room: sticky, scroll-driven. --p runs 0 → 1. */
.room { position: relative; height: 280vh; --p: 0; }
.room__sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
  max-width: 1440px; margin: 0 auto; padding: 64px var(--gutter) 0;
  overflow: hidden;
}
.room__swap { display: grid; }
.room__phase { grid-area: 1 / 1; }
.room__phase p:not(.h2) { font-size: clamp(17px, 1.45vw, 21px); color: var(--mute); max-width: 460px; }
.room h2, .room .h2 { font-size: clamp(40px, 5vw, 80px); }
.room__phase--a { opacity: clamp(0, calc(1 - (var(--p) - 0.3) * 4), 1); transform: translateY(calc(clamp(0, (var(--p) - 0.3) * 4, 1) * -24px)); }
.room__phase--b { opacity: clamp(0, calc((var(--p) - 0.5) * 4), 1); transform: translateY(calc((1 - clamp(0, (var(--p) - 0.5) * 4, 1)) * 24px)); }
.desk {
  position: relative; aspect-ratio: 16 / 10.5;
  border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(80% 70% at 20% 10%, #3b2a22, transparent 60%),
    radial-gradient(70% 80% at 90% 90%, #1d2433, transparent 60%),
    linear-gradient(160deg, #2a221e, #14161c);
  box-shadow: 0 0 0 1px var(--hair), 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  container-type: inline-size;
}
.win { position: absolute; border-radius: 10px; overflow: hidden; background: #1c1c1e; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 14px 40px rgba(0, 0, 0, 0.45); }
.win .bar { height: 7%; min-height: 14px; background: #2a2a2c; display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.win .rows { display: grid; gap: 8%; padding: 8%; }
.win .rows i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.win .rows i:nth-child(2n) { width: 70%; }
.badge { position: absolute; top: 9%; right: 6%; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff453a; color: #fff; font: 600 11px/20px var(--sans); text-align: center; }
.win--chat { left: 3%; top: 8%; width: 30%; height: 52%; }
.win--feed { left: 31%; top: 20%; width: 26%; height: 44%; }
.win--video { left: 56%; top: 5%; width: 38%; height: 40%; }
.win--video .screen { position: absolute; inset: 14% 0 0; background: linear-gradient(135deg, #43303a, #1d2a40); display: grid; place-items: center; }
.win--video .play { width: 0; height: 0; border-left: 16px solid rgba(255, 255, 255, 0.8); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.win--mail { left: 6%; top: 56%; width: 34%; height: 38%; }
.win--tabs { left: 50%; top: 50%; width: 46%; height: 44%; }
.win--tabs .bar span { flex: 1; height: 60%; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.win--chat, .win--feed, .win--video, .win--mail, .win--tabs, .toasts {
  filter: blur(calc(var(--p) * 10px)) brightness(calc(1 - var(--p) * 0.35));
  transform: scale(calc(1 - var(--p) * 0.02));
}
.toasts { position: absolute; right: 2.5%; top: 6%; width: 30%; display: grid; gap: 6px; z-index: 2; opacity: calc(1 - var(--p) * 1.6); }
.toast {
  display: flex; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 10px;
  background: rgba(46, 44, 43, 0.86); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: toast 4.8s var(--ease) infinite both;
}
.toast:nth-child(2) { animation-delay: 1.6s; }
.toast:nth-child(3) { animation-delay: 3.2s; }
@keyframes toast { 0% { opacity: 0; transform: translateX(30%); } 8%, 70% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; transform: none; } }
.toast__icon { flex: none; width: 18px; height: 18px; border-radius: 5px; }
.toast__icon--g { background: linear-gradient(#5fd67a, #2fb352); }
.toast__icon--b { background: linear-gradient(#5aa8ff, #1c6fe0); }
.toast__icon--r { background: linear-gradient(#ff7a6b, #e0402f); }
.toast span { flex: 1; display: grid; gap: 4px; }
.toast i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.toast i + i { width: 70%; background: rgba(255, 255, 255, 0.14); }
.veil { position: absolute; inset: 0; z-index: 3; background: rgba(8, 8, 9, calc(var(--p) * 0.42)); -webkit-backdrop-filter: blur(calc(var(--p) * 18px)); backdrop-filter: blur(calc(var(--p) * 18px)); }
.win--work {
  z-index: 4; left: 18%; top: 19%; width: 64%; height: 68%;
  background: #141415;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 30px 80px rgba(0, 0, 0, 0.7);
  opacity: clamp(0, calc((var(--p) - 0.2) * 2.2), 1);
  transform: scale(calc(0.94 + var(--p) * 0.06)); transform-origin: 50% 60%;
}
.win--work .bar { gap: 6px; }
.win--work .bar em { width: 9px; height: 9px; border-radius: 50%; background: #48484a; }
.win--work .bar em:first-child { background: #ff5f57; }
.win--work .bar em:nth-child(2) { background: #febc2e; }
.win--work .bar em:nth-child(3) { background: #28c840; }
.win--work .title { margin: 0 auto; font-size: clamp(8px, 1.2cqi, 12px); color: var(--faint); transform: translateX(-20px); }
.code { margin: 0; padding: 5% 6%; font: clamp(6.5px, 1.4cqi, 14px)/1.65 var(--mono); color: #d7d7d7; white-space: pre; }
.code .k { color: #fc5fa3; }
.code .t { color: #5dd8ff; }
.hudpill {
  position: absolute; z-index: 5; left: 50%; top: 4%;
  display: flex; align-items: center; gap: 10px;
  width: 46%; min-width: 200px; height: 9%; min-height: 30px;
  padding: 0 14px 0 8px; border-radius: 999px;
  background: rgba(30, 28, 27, 0.62);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 10px 26px rgba(0, 0, 0, 0.4);
  font-size: clamp(10px, 1.3cqi, 13px); font-weight: 500;
  opacity: clamp(0, calc((var(--p) - 0.55) * 4), 1);
  transform: translate(-50%, calc((1 - clamp(0, (var(--p) - 0.55) * 4, 1)) * -24px));
}
.hudpill .enso { flex: none; height: 70%; width: auto; color: var(--ink); }
.track { fill: none; stroke: var(--hair); stroke-width: 1; }
.hudpill__goal { flex: 1; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hudpill__time { font-variant-numeric: tabular-nums; }

/* Chapters */
.chapter {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 104px); align-items: center;
  max-width: 1320px; margin: 0 auto;
  padding: clamp(110px, 16vh, 200px) var(--gutter);
}
.chapter--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.chapter--flip .chapter__text { order: 2; }
.chapter--flip .traits { grid-column: 1 / -1; order: 3; }
.chapter h2, .teach h2, .learns h2 { font-size: clamp(44px, 5.4vw, 84px); }
.chapter__text > p:not(.eyebrow):not(.note) { font-size: clamp(18px, 1.5vw, 21px); color: var(--mute); max-width: 520px; }

/* 02 · Practice chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; max-width: 520px; }
.chips button {
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--mute);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.chips button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ghost); }
.chips button[aria-checked="true"] { background: var(--ink); color: #000; box-shadow: none; }

/* The threshold, recreated. */
.practice-figure { margin: 0; }
.stage { padding: 1px; border-radius: 30px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9); }
.threshold {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 56px 28px 26px; border-radius: 29px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%), linear-gradient(180deg, #171615, #0d0c0c);
  overflow: hidden;
}
.threshold > * { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), filter 0.35s var(--ease); }
.threshold.is-swapping > :not(.threshold__enso):not(.threshold__ask):not(.threshold__name) { opacity: 0; transform: translateY(6px); filter: blur(4px); }
.threshold__enso { color: var(--ink); margin-bottom: 28px; }
.threshold__ask { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.threshold__name {
  width: 100%; max-width: 520px;
  font: 300 clamp(30px, 3.6vw, 46px)/1.15 var(--sans); letter-spacing: -0.03em;
  color: var(--ink); text-align: center; background: none; border: 0; outline: none; padding: 0; caret-color: var(--sun);
}
.threshold__name:focus-visible { outline: none; }
.threshold__meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.threshold__meta .dot { color: var(--faint); }
.belt-tag { display: inline-flex; align-items: center; gap: 7px; }
.belt-tag i { width: 16px; height: 5px; border-radius: 2px; background: var(--belt); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.3); }
.threshold__rule { width: 120px; height: 1px; background: var(--hair); margin: 24px 0 24px; }
.threshold__label { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.threshold__label--room { margin-top: 28px; }
.threshold__step { font-size: clamp(17px, 1.6vw, 20px); max-width: 420px; line-height: 1.4; letter-spacing: -0.01em; min-height: 2.8em; text-wrap: balance; }
.threshold__step.is-pending { color: var(--faint); font-style: italic; font-weight: 300; }
.apps { display: flex; gap: 12px; min-height: 46px; margin-bottom: 30px; }
.glyph {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  font: 600 15px/1 var(--mono); color: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 6px 14px rgba(0, 0, 0, 0.35);
}
.glyph--term { background: linear-gradient(180deg, #2e2e30, #121213); color: #e9e9e9; }
.glyph--code { background: linear-gradient(180deg, #3d8bf2, #1c5fd1); }
.glyph--design { background: linear-gradient(135deg, #f26145 0 33%, #a259ff 33% 66%, #1abc9c 66%); }
.glyph--notes { background: linear-gradient(180deg, #fbd04b 0 26%, #fbf7ea 26%); }
.glyph--web { background: radial-gradient(circle at 50% 50%, #fff 0 18%, transparent 19%), conic-gradient(#5aa8ff, #1c6fe0, #5aa8ff); }
.glyph--cards { background: linear-gradient(180deg, #fefefe, #e9e6df); color: #c0392b; font-family: "Hiragino Sans", var(--sans); font-size: 18px; }
.glyph--doc { background: linear-gradient(180deg, #f7f5ef, #e4e0d6); color: #333; font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.glyph--music { background: linear-gradient(180deg, #ff6b6b, #e0304a); font-size: 20px; }
.enter {
  height: 44px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #000;
  font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}
.enter span { opacity: 0.45; font-size: 13px; font-weight: 500; }
.threshold__foot { font-size: 11.5px; color: var(--faint); margin-top: 30px; }

/* 03 · The sensei panel, recreated. */
.panel {
  width: 100%; max-width: 520px; justify-self: center;
  border-radius: 26px; background: rgba(24, 23, 22, 0.82);
  -webkit-backdrop-filter: blur(30px) saturate(140%); backdrop-filter: blur(30px) saturate(140%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 40px 90px -20px rgba(0, 0, 0, 0.85);
  overflow: hidden; position: relative;
}
.panel::before { content: ""; position: absolute; inset: -40% -20% auto; height: 80%; background: radial-gradient(closest-side, rgba(232, 79, 51, 0.08), transparent); pointer-events: none; }
.panel__head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.panel__head .enso { color: var(--ink); flex: none; }
.panel__head div:nth-child(2) { display: grid; gap: 3px; flex: 1; min-width: 0; }
.panel__head strong { font-size: 15px; font-weight: 500; }
.panel__time { display: grid; justify-items: end; }
.panel__time span { font-size: 26px; font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1.1; }
.panel__time small { font-size: 11px; color: var(--faint); }
.lines { list-style: none; margin: 0; padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-height: 300px; align-content: start; }
.line { font-size: 13.5px; line-height: 1.45; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .line { opacity: 0; transform: translateY(8px); }
.js .line.is-in { opacity: 1; transform: none; }
.line--you { justify-self: end; max-width: 78%; font-size: 13px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.09); }
.line--sensei > div { min-width: 0; }
.line--sensei { display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 10px; padding-right: 30px; }
.line--sensei > i { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; background: var(--mute); }
.line--sensei.is-granted > i { background: var(--moss); }
.line--sensei.is-declined > i { background: var(--sun); }
.chip { display: inline-block; max-width: 100%; margin-top: 7px; padding: 0 8px; height: 20px; line-height: 20px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--moss); background: rgba(143, 209, 163, 0.12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breath { display: inline-flex; gap: 4px; padding: 6px 0 0 2px; }
.breath b { width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--ink); animation: breathe 1.9s ease-in-out infinite; }
.breath b:nth-child(2) { animation-delay: 0.22s; }
.breath b:nth-child(3) { animation-delay: 0.44s; }
@keyframes breathe { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.85; } }
.panel__input { display: flex; align-items: center; justify-content: space-between; margin: 0 14px; height: 42px; padding: 0 8px 0 14px; border-radius: 14px; border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.06); font-size: 14px; color: var(--faint); }
.panel__input b { width: 24px; height: 24px; border-radius: 50%; background: var(--hair); color: #000; display: grid; place-items: center; font-size: 12px; }
.panel__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.panel__foot kbd { font-family: var(--mono); font-size: 10.5px; color: var(--faint); border: 0; background: none; padding: 0; }
.leave-mini { font-size: 11.5px; font-weight: 500; color: var(--faint); padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }

.traits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border-radius: 22px; overflow: hidden; }
.traits li { background: var(--bg); padding: 28px 28px 30px; }
.traits h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.traits p { font-size: 15px; color: var(--mute); }

/* 03 continued: browser and hold, side by side. */
.duo { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(110px, 16vh, 200px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.duo__card { padding: clamp(28px, 3.4vw, 48px); border-radius: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); display: flex; flex-direction: column; }
.duo__card h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 36px 0 12px; }
.duo__card p { font-size: 16.5px; color: var(--mute); max-width: 520px; }
.duo__card > :first-child { flex: 1; }
.browser { position: relative; min-height: 260px; display: grid; align-items: end; }
.browser__ghost { position: absolute; left: 10%; right: 10%; top: 0; height: 70%; border-radius: 12px; background: #1f1e1d; filter: blur(3px); opacity: 0.45; transform: scale(0.94); }
.browser__win { position: relative; border-radius: 12px; overflow: hidden; background: #161615; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.browser__bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1f1f20; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.browser__bar em { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3c; flex: none; }
.browser__bar em:first-child { margin-right: 0; }
.browser__tab { margin-left: 8px; font-size: 11.5px; color: var(--faint); padding: 5px 12px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.browser__tab.is-on { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.browser__page { padding: 22px 22px 26px; display: grid; gap: 10px; }
.browser__page i { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.browser__page i:first-child { width: 46%; height: 12px; background: rgba(255, 255, 255, 0.22); margin-bottom: 6px; }
.browser__page i:nth-child(3) { width: 82%; }
.browser__page i:nth-child(5) { width: 64%; }
.hold { display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 260px; }
.hold__button {
  position: relative; overflow: hidden; height: 88px; padding: 0 56px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hair);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; --fill: 0;
}
.hold__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--fill) * 100%); background: linear-gradient(90deg, rgba(232, 79, 51, 0.26), rgba(232, 79, 51, 0.5)); }
.hold__label { position: relative; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: rgba(255, 255, 255, calc(0.4 + var(--fill) * 0.6)); }
.hold__help { font-size: 13px; color: var(--faint); }
.hold__done { min-height: 1.6em; font-size: 15px; color: var(--ink); font-weight: 400; text-align: center; }
.hold.is-done .hold__button { box-shadow: inset 0 0 0 1px rgba(232, 79, 51, 0.6); }

/* 04 · It learns you: the text stays while the evening becomes tomorrow. */
.learns {
  max-width: 1320px; margin: 0 auto; padding: clamp(90px, 12vh, 160px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px);
}
.learns__sticky { position: sticky; top: 22vh; }
.learns__text p:not(.eyebrow):not(.note) { font-size: clamp(18px, 1.5vw, 21px); color: var(--mute); max-width: 480px; }
.learns__flow { display: grid; gap: 0; padding-top: 6vh; }
.sitting {
  display: grid; justify-items: center; text-align: center; gap: 0;
  padding: 48px clamp(22px, 3vw, 44px) 36px; border-radius: 30px;
  background: radial-gradient(70% 50% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%), var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--hair), 0 60px 120px -50px rgba(0, 0, 0, 0.9);
}
.sitting__enso { width: 120px; height: 120px; color: var(--ink); margin-bottom: 26px; }
.sitting__day { font-size: clamp(30px, 3vw, 42px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.1; }
.sitting__day span, .tomorrow__day span { color: var(--faint); }
.sitting__step { font-size: 16px; color: var(--mute); margin: 8px 0 30px; text-wrap: balance; }
.sitting__block { width: 100%; text-align: left; padding: 18px 0; border-top: 1px solid var(--hair); }
.sitting__block .micro { margin-bottom: 10px; }
.sitting__you { font-size: 16px; }
.sitting__sensei { font-size: 17px; font-weight: 300; font-style: italic; color: rgba(255, 255, 255, 0.9); line-height: 1.5; }
.sitting__block--sensei { padding-bottom: 0; }
.learns__between { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 36px 0; font-size: 13px; color: var(--faint); }
.learns__between span { width: 1px; height: 46px; background: linear-gradient(var(--hair), transparent); }
.learns__between span:first-child { background: linear-gradient(transparent, var(--hair)); }
.tomorrow {
  padding: 32px clamp(22px, 3vw, 40px); border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, #171615, #0e0d0d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  position: relative; overflow: hidden;
}
.tomorrow::before { content: ""; position: absolute; left: 50%; top: -60px; width: 220px; height: 120px; margin-left: -110px; background: radial-gradient(closest-side, rgba(232, 79, 51, 0.16), transparent); pointer-events: none; }
.tomorrow .micro { color: var(--sun); margin-bottom: 14px; }
.tomorrow__day { font-size: 15px; color: var(--mute); margin-bottom: 10px; }
.tomorrow__step { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 14px; text-wrap: balance; }
.tomorrow__room { font-size: 13px; color: var(--faint); }
.learns__flow .caption { margin-top: 22px; }

.teach {
  max-width: 1320px; margin: 0 auto; padding: clamp(110px, 16vh, 200px) var(--gutter) clamp(40px, 8vh, 100px);
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 104px); align-items: center;
}
.teach__text > p:not(.eyebrow):not(.note) { font-size: clamp(18px, 1.5vw, 21px); color: var(--mute); max-width: 500px; }
.panel--teach { max-width: 560px; }
.panel--teach .lines { min-height: 480px; gap: 12px; }
.panel--teach .panel__time span { font-size: 18px; font-weight: 400; }
.tag { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.is-declined .tag { color: rgba(232, 79, 51, 0.8); }
.is-granted .tag { color: rgba(143, 209, 163, 0.8); }

/* 05 · Belts: sticky ladder, scroll counts the sittings. --b runs 0 → 1 along the ladder. */
.belts { position: relative; height: 300vh; --b: 0; }
.belts__sticky {
  position: sticky; top: 0; height: 100svh; max-width: 1320px; margin: 0 auto;
  padding: 88px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 48px; align-content: center;
}
.belts__head { align-self: end; }
.belts__head p:not(.eyebrow) { font-size: clamp(18px, 1.5vw, 21px); color: var(--mute); max-width: 520px; }
.belts__now { align-self: end; display: grid; justify-items: end; text-align: right; padding-bottom: 28px; }
.belt { overflow: visible; }
.belt__band, .belt__knot, .belt__tail { fill: var(--belt, #efede6); transition: fill 0.4s var(--ease); }
.belt__knot { filter: brightness(0.9); }
.belt__tail { filter: brightness(0.78); }
.belt__stitch { fill: none; stroke: rgba(0, 0, 0, 0.16); stroke-width: 0.8; stroke-dasharray: 2 2.5; }
.is-black .belt__stitch { stroke: rgba(255, 255, 255, 0.12); }
.belt--big { width: clamp(150px, 16vw, 220px); height: auto; transition: color 0.4s; }
.belts__count { font-size: clamp(64px, 8vw, 128px); font-weight: 200; letter-spacing: -0.06em; line-height: 0.95; font-variant-numeric: tabular-nums; margin-top: 18px; }
.belts__count small { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--faint); margin-left: 10px; }
.belts__name { font-size: 15px; color: var(--mute); margin-top: 6px; }
.ladder {
  grid-column: 1 / -1; list-style: none; margin: 40px 0 0; padding: 30px 0 0; position: relative;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px;
}
.ladder::before, .ladder::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 1px; }
.ladder::before { right: 0; background: var(--hair); }
.ladder::after { width: calc(var(--b) * 100%); background: linear-gradient(90deg, rgba(232, 79, 51, 0.4), var(--sun)); }
.ladder li { display: grid; gap: 4px; justify-items: start; opacity: 0.28; transition: opacity 0.5s var(--ease); position: relative; }
.ladder li::before { content: ""; position: absolute; left: 0; top: -35px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ghost); transition: background 0.4s, box-shadow 0.4s; }
.ladder li.is-lit { opacity: 1; }
.ladder li.is-lit::before { background: var(--sun); box-shadow: none; }
.ladder .belt { width: 100%; max-width: 120px; height: auto; margin-bottom: 10px; }
.ladder strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ladder span { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ladder li.is-black .belt__band, .ladder li.is-black .belt__knot, .ladder li.is-black .belt__tail,
.belt--big.is-black .belt__band, .belt--big.is-black .belt__knot, .belt--big.is-black .belt__tail { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; filter: none; }
.ladder__legend { grid-column: 1 / -1; font-size: 12.5px; color: var(--faint); margin-top: 22px; }

.habit { max-width: 1320px; margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(110px, 16vh, 200px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.habit__card { padding: clamp(28px, 3.4vw, 48px); border-radius: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); }
.habit__card h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 40px 0 12px; }
.habit__card p { font-size: 16.5px; color: var(--mute); max-width: 460px; }
.week { display: flex; gap: clamp(8px, 1.4vw, 16px); height: 64px; align-items: center; }
.week span { width: clamp(28px, 3.2vw, 40px); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ghost); position: relative; }
.week span.is-sat { box-shadow: inset 0 0 0 2.5px var(--ink); }
.week span.is-sat::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: var(--sun); }
.week span.is-today { box-shadow: inset 0 0 0 2.5px var(--ink); }
.week span.is-today::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: var(--sun); animation: rise 2.6s var(--ease) infinite alternate; }
@keyframes rise { 0%, 30% { transform: scale(0); } 70%, 100% { transform: scale(1); } }
.menubar {
  display: flex; align-items: center; gap: 18px; justify-content: flex-end;
  width: 100%; height: 64px; padding: 0 20px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}
.menubar__items { display: flex; gap: 14px; margin-right: auto; }
.menubar__items i { width: 34px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.menubar__items i:first-child { width: 22px; background: rgba(255, 255, 255, 0.4); }
.menubar__enso { width: 26px; height: 26px; color: var(--ink); overflow: visible; }
.menubar__clock { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* 06 · Built in the Dojo: a hundred empty circles. */
.built { max-width: 1320px; margin: 0 auto; padding: clamp(110px, 16vh, 200px) var(--gutter); }
.built__text p:not(.eyebrow) { font-size: clamp(18px, 1.5vw, 21px); color: var(--mute); max-width: 620px; }
.hundred { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); margin-top: 64px; }
.hundred span { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.2px var(--ghost); transform: scale(0.4); opacity: 0; transition: transform 0.8s var(--ease), opacity 0.8s var(--ease); transition-delay: calc(var(--i) * 9ms); }
.hundred.is-in span { transform: none; opacity: 1; }
.hundred span.is-sat { background: var(--ink); box-shadow: none; }
.hundred span.is-next { box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; }
.hundred span.is-next::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1px var(--sun); animation: pulse 2.4s ease-in-out infinite; }
.hundred span:last-child { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); background: #050505; }
@keyframes pulse { 0% { opacity: 0.9; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.25); } }
.hundred__legend { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; font-size: 13px; color: var(--faint); }
.hundred__legend.is-live { font-size: 14px; color: var(--mute); }
.hundred__legend.is-live span { display: inline-flex; align-items: center; gap: 9px; }
.hundred__legend.is-live a { color: var(--ink); }
.hundred__legend.is-live a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ghost); }
.hundred__belt { width: 22px; height: 5px; border-radius: 3px; background: var(--belt); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.3); }

/* 06 continued: public practice pages, and an illustration of one. */
.public {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(110px, 16vh, 200px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px); align-items: center;
}
.public h2 { font-size: clamp(36px, 4vw, 60px); }
.public__text > p:not(.public__url) { font-size: clamp(17px, 1.4vw, 20px); color: var(--mute); max-width: 500px; }
.public__url {
  display: inline-block; margin-top: 28px; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hair);
}
.public__url span { color: var(--faint); }
.public__figure { margin: 0; }
.mock { border-radius: 16px; overflow: hidden; background: #0c0b0b; box-shadow: 0 0 0 1px var(--hair), 0 60px 120px -40px rgba(0, 0, 0, 0.9); }
.mock__bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1a1918; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mock__bar em { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3c; flex: none; }
.mock__bar span { margin: 0 auto; transform: translateX(-24px); font-size: 12px; color: var(--mute); padding: 4px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mock__page { display: grid; justify-items: center; text-align: center; padding: 40px 28px 30px; background: radial-gradient(60% 40% at 50% 0%, rgba(232, 79, 51, 0.07), transparent 70%); }
.mock__mark { color: var(--ink); margin-bottom: 20px; overflow: visible; }
.mock__who { font-size: 14px; color: var(--mute); }
.mock__name { font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 4px 0 14px; }
.mock__meta { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mute); }
.mock__meta span { color: var(--faint); }
.mock__belt { width: 18px; height: 4px; border-radius: 2px; background: #F08F3D; }
.mock__wall { display: grid; grid-template-columns: repeat(10, 12px); gap: 8px; margin: 26px 0 26px; }
.mock__wall i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px var(--ghost); }
.mock__wall i.is-sat { background: var(--ink); box-shadow: none; }
.mock__wall i.is-today { background: var(--sun); box-shadow: none; }
.mock__next { width: 100%; text-align: left; padding: 18px 20px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); }
.mock__next .micro { color: var(--sun); margin-bottom: 6px; }
.mock__next p:last-child { font-size: 15px; line-height: 1.4; }

/* Pricing: one membership, two ways to pay. */
.pricing {
  max-width: 1200px; margin: 0 auto; padding: clamp(110px, 16vh, 200px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(48px, 7vw, 120px); align-items: center;
}
.pricing h2 { font-size: clamp(40px, 4.8vw, 76px); }
.pricing h2 span { color: rgba(255, 255, 255, 0.42); }
.pricing__intro > p:not(.eyebrow) { font-size: clamp(18px, 1.5vw, 21px); color: var(--mute); max-width: 500px; }
.price {
  position: relative; display: grid; justify-items: center; text-align: center;
  padding: 40px 40px 32px; border-radius: 32px;
  background: radial-gradient(90% 60% at 50% 0%, rgba(232, 79, 51, 0.1), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 100px -40px rgba(0, 0, 0, 0.9);
}
.price__mark { color: var(--ink); width: 44px; height: 44px; margin-bottom: 24px; }
.plans { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); margin-bottom: 30px; width: 100%; max-width: 290px; }
.plans button { position: relative; z-index: 1; height: 36px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--mute); transition: color 0.35s var(--ease); white-space: nowrap; }
.plans button[aria-checked="true"] { color: #000; font-weight: 600; }
.plans em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--sun); margin-left: 4px; }
.plans button[aria-checked="true"] em { color: #c63c22; }
.plans__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform 0.45s var(--ease); }
.plans.is-yearly .plans__thumb { transform: translateX(100%); }
.price__amount { font-size: clamp(88px, 9vw, 124px); font-weight: 200; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; justify-content: center; }
.price__currency { font-size: 0.38em; font-weight: 300; letter-spacing: 0; margin: 0.12em 0.06em 0 0; color: var(--mute); }
.price__per { font-size: 0.17em; font-weight: 500; letter-spacing: 0; color: var(--faint); align-self: flex-end; margin: 0 0 0.6em 0.4em; }
#price-number { display: inline-block; transition: opacity 0.25s, transform 0.35s var(--ease), filter 0.25s; }
.price.is-swapping #price-number { opacity: 0; transform: translateY(10px); filter: blur(4px); }
.price__term { font-size: 14px; color: var(--mute); margin: 14px 0 4px; min-height: 1.5em; }
.price__sitting { font-size: 13px; color: var(--faint); margin-bottom: 28px; min-height: 1.5em; }
.price__term b { color: var(--ink); font-weight: 500; }
.price__list { list-style: none; margin: 0 0 30px; padding: 0; width: 100%; border-top: 1px solid var(--hair); }
.price__list li { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--hair); font-size: 15.5px; color: rgba(255, 255, 255, 0.82); text-align: left; }
.price__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.price__buy { width: 100%; height: 56px; font-size: 17px; }
.price__fine { font-size: 12.5px; color: var(--faint); margin-top: 16px; }

/* FAQ */
.faq { max-width: 920px; margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--gutter); }
.faq h2 { font-size: clamp(40px, 5vw, 72px); }
.faq__list { margin-top: 40px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--faint); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--mute); font-size: 17px; max-width: 720px; }

/* Final */
.final { display: grid; justify-items: center; text-align: center; padding: clamp(120px, 18vh, 220px) var(--gutter) clamp(100px, 14vh, 160px); }
.final__mark { width: clamp(150px, 18vw, 220px); height: auto; color: var(--ink); margin-bottom: 44px; overflow: visible; }
#final-sun { transform-origin: 512px 512px; transition: transform 1s var(--ease) 0.2s, opacity 1s var(--ease) 0.2s; }
.final:not(.is-lit) #final-sun { transform: scale(0.4); opacity: 0; }
.final h2 { font-size: clamp(48px, 7vw, 108px); }
.final p:not(.fine) { color: var(--mute); font-size: 19px; margin-bottom: 40px; }
.final .fine { margin-top: 20px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 36px var(--gutter) 48px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--faint); }
.foot .brand { font-size: 14px; color: var(--mute); }
.foot__small { margin-left: auto; }
.foot a:hover { color: var(--ink); }

/* The film, full screen. */
.film { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; overflow: hidden; }
.film::backdrop { background: #000; }
.film[open] { display: grid; place-items: center; animation: filmIn 0.6s var(--ease); }
@keyframes filmIn { from { opacity: 0; } }
.film video { width: 100%; height: 100%; object-fit: contain; }
.film__close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 24px; line-height: 1; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.film__close:hover { background: rgba(255, 255, 255, 0.22); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Narrow screens */
@media (max-width: 1080px) {
  .nav nav a:not(.pill) { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__chapter { text-align: center; font-size: 11px; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  :root { --h2: clamp(40px, 11vw, 64px); }
  .chapter, .chapter--flip, .learns, .teach, .pricing, .duo, .habit, .public { grid-template-columns: minmax(0, 1fr); }
  .panel--teach .lines { min-height: 0; }
  .chapter--flip .chapter__text { order: 0; }
  .traits { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: 76px; }
  .hero__kanji { display: none; }
  .hero__shade { background: linear-gradient(180deg, rgba(10, 9, 9, 0.6) 0%, rgba(10, 9, 9, 0.2) 26%, rgba(10, 9, 9, 0.75) 55%, rgba(10, 9, 9, 1) 100%); }
  .hero__film { object-position: 50% 30%; }
  .hero__scroll { display: none; }
  .film-frame { width: calc(100% - 2 * var(--gutter)); border-radius: 18px; }
  .film-frame__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .film-frame__label { display: none; }
  .room { height: 240vh; }
  .room__sticky { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 24px; }
  .room h2, .room .h2 { font-size: clamp(34px, 9.6vw, 52px); margin-bottom: 12px; }
  .room__phase p:not(.h2) { font-size: 16px; }
  .room__text .eyebrow { margin-bottom: 12px; }
  .toasts { width: 40%; }
  .chapter { padding-top: 100px; padding-bottom: 100px; gap: 44px; }
  .learns__sticky { position: static; }
  .learns__flow { padding-top: 0; }
  .price { padding: 32px 22px 26px; }
  .duo__card h3, .habit__card h3 { margin-top: 28px; }
  .belts { height: 260vh; }
  .belts__sticky { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; padding-top: 80px; align-content: center; column-gap: 16px; }
  .belts__head { grid-column: 1 / -1; }
  .belts__head h2 { margin-bottom: 14px; }
  .belts__head p:not(.eyebrow) { font-size: 16px; }
  .belts__now { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; column-gap: 18px; padding: 22px 0 0; }
  .belts__now .belt--big { grid-row: span 2; width: 104px; }
  .belts__count { font-size: 56px; margin-top: 0; }
  .belts__name { margin-top: 0; }
  .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; margin-top: 22px; padding-top: 22px; }
  .ladder li::before { display: none; }
  .ladder .belt { margin-bottom: 4px; }
  .ladder strong { font-size: 13px; }
  .ladder span { font-size: 12px; }
  .ladder__legend { margin-top: 14px; }
  .hundred { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 44px; }
  .foot__small { margin-left: 0; }
  .threshold { padding: 44px 16px 22px; }
  .apps { gap: 10px; }
  .glyph { width: 42px; height: 42px; }
  .hold__button { height: 76px; padding: 0 40px; }
}
@media (max-width: 520px) {
  .nav__chapter { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .hero h1 { font-size: clamp(44px, 12.4vw, 60px); }
  .actions .pill, .actions .ghost { flex: 1 1 100%; }
  .hero .fine { font-size: 12px; }
  .chips button { height: 36px; padding: 0 14px; font-size: 14px; }
  .hundred__legend { flex-direction: column; gap: 4px; }
  .faq summary { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .line, .js .hero__eyebrow, .js .hero__line, .js .hero__sub, .js .lede, .js .hero .actions, .js .hero .fine { opacity: 1; transform: none; filter: none; transition: none; }
  .breath b, .toast, .hero__scroll span, .week span.is-today::after, .hundred span.is-next::after { animation: none; }
  .toast { opacity: 1; }
  .hundred span { transform: none; opacity: 1; transition: none; }
  .film-frame { transform: none; }
  .film-frame img { opacity: 1; }
  .hero__film { transform: none; }
}
