/* ==========================================================================
   Uchiha Trading — styles
   One stylesheet, no framework. Tokens first, then base, then sections in
   page order. Every section maps to one WordPress block pattern later.
   Floors: no text under 12px (0.75rem), no tap target under 44px.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #070708;
  --bg-2: #0c0c0f;
  --surface: #111115;
  --surface-2: #17171c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #f4f1ec;
  --text-2: #b9b4ad;
  --text-3: #8d8882;

  --blood: #c1121f;          /* brand crimson: fills, buttons (white text 6.2:1) */
  --blood-hover: #d3192b;
  --blood-text: #f2505f;     /* crimson for text on dark (5.5:1) */
  --blood-glow: rgba(193, 18, 31, 0.45);
  --short-bg: rgba(242, 80, 95, 0.12);
  --gain: #3ddc97;
  --gain-bg: rgba(61, 220, 151, 0.1);
  --paper: #f1e9dc;          /* seal ink on crimson */

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 64px;

  --z-header: 40;
  --z-joinbar: 50;
  --z-menu: 60;
  --z-header-open: 70;
  --z-grain: 90;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* film grain: static, cheap, non-interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; }
blockquote { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blood-text);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--blood); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

/* ---------- 3. Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.kanji-tag {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(193, 18, 31, 0.07);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--blood-text);
}

.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.h1 em, .h2 em, .final-title em, .voices-feature em, .receipt em {
  font-style: italic;
  color: var(--blood-text);
}

.lede {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-2);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--h);
  padding: 0 1.5rem;
  border-radius: 999px;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  touch-action: manipulation;
  transition:
    transform 0.18s var(--ease-out),
    background-color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { --h: 44px; padding: 0 1.1rem; font-size: 0.92rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--blood);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px -10px var(--blood-glow);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn--primary:hover {
  background: var(--blood-hover);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 16px 40px -10px rgba(193, 18, 31, 0.7);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--text);
  font-size: 0.92rem;
  transition: color 0.2s, gap 0.3s var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--blood-text); gap: 0.65rem; }

/* ---------- 5. Seal (hanko stamp) ---------- */
/* A square of crimson ink with a paper-coloured kanji, slightly crooked,
   with a speckled edge so it reads as stamped rather than drawn. */
.seal b, .seal--page, .seal--mini {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 3px;
  background: var(--blood);
  color: var(--paper);
  font-family: var(--font-jp);
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 2px var(--blood), inset 0 0 0 3px rgba(241, 233, 220, 0.75);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 2.55'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23s)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 2.55'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23s)'/%3E%3C/svg%3E");
  -webkit-mask-size: 64px 64px;
  mask-size: 64px 64px;
}
.seal--badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blood-text);
}
.seal--badge b { width: 30px; height: 30px; font-size: 1rem; rotate: -5deg; }
.seal--ink { color: var(--text-2); }
.seal--ink b { background: #2a1416; color: var(--blood-text); box-shadow: inset 0 0 0 2px #2a1416, inset 0 0 0 3px rgba(242, 80, 95, 0.55); }
.seal--mini { width: 26px; height: 26px; font-size: 0.85rem; rotate: -4deg; }
.seal--page { position: absolute; top: clamp(18px, 2.6vw, 32px); right: clamp(18px, 2.6vw, 32px); width: 44px; height: 44px; font-size: 1.3rem; rotate: 6deg; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.site-header.is-scrolled {
  background: rgba(7, 7, 8, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.menu-open .site-header {
  z-index: var(--z-header-open);
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; border-radius: 6px; mix-blend-mode: screen; }
.brand-name { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1; letter-spacing: 0.005em; }
.brand-name small {
  margin-left: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  vertical-align: 0.2em;
}

.nav-links { display: none; gap: 0.1rem; list-style: none; padding: 0; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="true"] { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.signin { display: none; padding: 0 0.6rem; min-height: 44px; align-items: center; font-size: 0.92rem; color: var(--text-2); }
.signin:hover { color: var(--text); }

.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transition: background-color 0.2s;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.06); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .signin { display: inline-flex; }
}

/* mobile menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(7, 7, 8, 0.97);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.mmenu.is-open { opacity: 1; }
.mmenu ul { list-style: none; padding: 0; }
.mmenu li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.mmenu li a span { font-family: var(--font-jp); font-weight: 700; font-size: 0.9rem; color: var(--blood-text); }
.mmenu.is-open li a { opacity: 1; transform: none; }
.mmenu-foot { display: grid; gap: 0.75rem; margin-top: auto; padding-top: 2rem; }
.menu-open { overflow: hidden; }

/* ---------- 7. Sections (shared) ---------- */
.section { position: relative; padding-block: clamp(72px, 12vw, 160px); }
.section > .wrap { position: relative; }
.sec-head { display: grid; gap: 1.1rem; max-width: 52rem; margin-bottom: clamp(32px, 6vw, 72px); }
@media (min-width: 1024px) {
  .sec-head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 3rem; max-width: none; }
  .sec-head--split .eyebrow { grid-column: 1 / -1; }
}

/* vertical print-style section labels, in the margin on wide screens */
.sec-mark { display: none; }
@media (min-width: 1400px) {
  .sec-mark {
    position: absolute;
    top: 0.2rem;
    left: -64px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-3);
    pointer-events: none;
  }
  .sec-mark span {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.24em;
    text-transform: none;
    color: var(--blood-text);
  }
  .sec-mark::after { content: ""; width: 1px; height: 72px; background: linear-gradient(var(--line-2), transparent); }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(28px, 7vh, 88px)) 0 clamp(28px, 5vh, 56px);
  overflow: clip;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.gridlines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 10%, transparent 75%);
}

/* signature moment 1: the brush kanji */
.kanji-bg {
  position: absolute;
  left: -6%;
  bottom: -14%;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(18rem, 44vw, 40rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.075);
  user-select: none;
  clip-path: inset(0 0 100% 0);
  animation: brush 2.6s var(--ease-in-out) 0.35s forwards;
}
@keyframes brush { to { clip-path: inset(0 0 0 0); } }

.hero-grid { display: grid; gap: clamp(28px, 6vw, 64px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

/* load-in: a quiet opacity fade, no travel */
.hero-in { animation: fadeIn 0.9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 80ms + 200ms); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* signature moment 2: the headline reveal */
.h1 .line { display: block; overflow: hidden; padding: 0 0.06em 0.09em 0; margin-bottom: -0.09em; }
.h1 .line > span { display: inline-block; animation: lineUp 1.15s var(--ease-out) both; }
.h1 .line:nth-child(1) > span { animation-delay: 0.25s; }
.h1 .line:nth-child(2) > span { animation-delay: 0.37s; }
.h1 .line:nth-child(3) > span { animation-delay: 0.49s; }
@keyframes lineUp { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }

.hero .eyebrow { margin-bottom: 1.4rem; }
.hero-sub { max-width: 35rem; margin-top: 1.4rem; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--text-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 38rem;
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.2rem; padding: 0.9rem 1rem 0 0; }
.hero-stats dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.hero-stats dd { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the crest on the wall, with position cards in front: two on desktop, one on phones */
.hero-visual { position: relative; perspective: 1200px; }
.hero-art {
  display: block;
  width: min(100%, 400px);
  height: auto;
  aspect-ratio: 1;
  margin: -12px auto 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, 0.6) 76%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, 0.6) 76%, transparent 100%);
  animation: artIn 1.8s var(--ease-out) 0.2s both;
}
@keyframes artIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.stack {
  position: relative;
  margin-top: -120px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.7s var(--ease-out);
}
@media (min-width: 1024px) {
  .hero-visual { height: clamp(440px, 40vw, 560px); }
  .hero-art { position: absolute; left: 50%; top: 34%; width: min(118%, 640px); margin: 0; translate: -50% -50%; }
  .stack { position: absolute; inset: 0; margin: 0; }
}
.pcard {
  position: relative;
  width: min(100%, 330px);
  padding: 1.15rem 1.2rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 30, 36, 0.96), rgba(15, 15, 19, 0.96));
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: cardIn 1.2s var(--ease-out) both;
}
.pcard--1 { rotate: -2deg; margin-left: auto; animation-delay: 0.55s; }
.pcard--3 { display: none; }
@media (min-width: 1024px) {
  .pcard { position: absolute; width: min(50%, 262px); padding: 1rem 1.05rem 0.9rem; }
  .pcard .pc-roe { font-size: clamp(1.7rem, 2.6vw, 2.15rem); }
  .pcard--1 { left: -4%; bottom: 10%; rotate: -5deg; z-index: 1; margin: 0; }
  .pcard--3 { display: block; right: -4%; bottom: 0; rotate: 4deg; z-index: 2; animation-delay: 0.75s; }
}
@keyframes cardIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

.pc-top { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); }
.pc-top .lev { margin-left: auto; color: var(--text-3); }
.pc-roe {
  margin: 0.65rem 0 0.35rem;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--gain);
  font-variant-numeric: tabular-nums;
}
.pc-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 1rem; margin: 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
.pc-meta dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.spark { height: 46px; margin-top: 0.8rem; clip-path: inset(0 100% 0 0); animation: sparkIn 1.6s var(--ease-in-out) 1.3s forwards; }
.spark svg { width: 100%; height: 100%; overflow: visible; }
@keyframes sparkIn { to { clip-path: inset(0 0 0 0); } }

.side {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem 0.2rem 0.4rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side svg { width: 12px; height: 12px; }
.side--long { color: var(--gain); background: var(--gain-bg); }
.side--short { color: var(--blood-text); background: var(--short-bg); }

/* market strip */
.market {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  min-height: 58px;
  margin-top: clamp(28px, 6vh, 64px);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.market-label { display: inline-flex; align-items: center; gap: 0.55rem; }
.market-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.market.is-live .market-dot { background: var(--gain); box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18); }
.ticks { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}
.tick b { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; color: var(--text-2); }
.tick .up { color: var(--gain); }
.tick .down { color: var(--blood-text); }

/* ---------- 9. Band (moves only while you scroll) ---------- */
.band { overflow: hidden; padding: 1rem 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.band-track {
  display: flex;
  gap: 2.25rem;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--text-2);
  will-change: transform;
}
.band-track i { font-style: normal; font-family: var(--font-jp); font-weight: 700; font-size: 0.7em; color: var(--blood-text); align-self: center; }

/* ---------- 10. Record ---------- */
.chart-card {
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.chart-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.chart-title { font-weight: 600; font-size: 1rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.chart-legend span::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: currentColor; }
.chart-legend .lg-short::before { background: var(--blood-text); }
.chart-legend .lg-long::before { background: var(--gain); }

.chart {
  position: relative;
  height: clamp(300px, 42vw, 480px);
  touch-action: pan-y;
  cursor: crosshair;
  border-radius: 8px;
}
.chart-plot, .chart-layer { position: absolute; inset: 8px 0 28px 0; }
/* signature moment 3: the chart draws itself */
.chart-plot { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s var(--ease-in-out); }
.chart.is-in .chart-plot { clip-path: inset(0 0 0 0); }
.chart-plot svg { width: 100%; height: 100%; overflow: visible; }
.c-grid line { stroke: rgba(255, 255, 255, 0.06); vector-effect: non-scaling-stroke; }
.c-area { fill: url(#cArea); }
.c-line { fill: none; stroke: rgba(244, 241, 236, 0.5); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.c-seg { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.c-seg.c-glow { stroke-width: 10; opacity: 0.16; }
.c-seg--short { stroke: var(--blood-text); }
.c-seg--long { stroke: var(--gain); }
.c-seg-g { transition: opacity 0.4s; }
.c-seg-g.is-dim { opacity: 0.18; }

.y-lab, .x-lab { position: absolute; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); pointer-events: none; }
.y-lab { left: 0; transform: translateY(-120%); }
.x-lab { bottom: -26px; transform: translateX(-50%); }

.c-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 0.5s; }
.c-dot--short { background: var(--blood-text); box-shadow: 0 0 0 4px rgba(242, 80, 95, 0.18); }
.c-dot--long { background: var(--gain); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
.c-note {
  position: absolute;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(7, 7, 8, 0.88);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity 0.5s;
}
.c-note--below { transform: translate(-50%, 10px); }
.c-note--end { transform: translate(-100%, calc(-100% - 10px)); }
.c-note--end.c-note--below { transform: translate(-100%, 10px); }
.c-note--start { transform: translate(-10%, calc(-100% - 10px)); }

/* the record's four numbers, written onto the chart */
.c-note--big {
  display: grid;
  gap: 0.05rem;
  padding: 0.4rem 0.65rem 0.45rem;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--c);
  border-radius: 8px;
  background: rgba(7, 7, 8, 0.9);
  font-family: var(--font-sans);
}
.c-note--big[data-side="short"] { --c: var(--blood-text); }
.c-note--big[data-side="long"] { --c: var(--gain); }
.c-note--big small { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.c-note--big b { font-size: clamp(1.05rem, 2.2vw, 1.65rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.c-note--big { transform: none; }  /* placed in px by main.js → layoutBig() */
@media (max-width: 640px) {
  .c-note--big[data-compact] { padding: 0.2rem 0.5rem; }
  .c-note--big[data-compact] small { display: none; }
  .c-note--big[data-compact] b { font-size: 0.95rem; }
}
.c-lead { position: absolute; width: 1px; transform: translateX(-0.5px); background: linear-gradient(var(--c), rgba(255, 255, 255, 0)); opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.c-lead[data-side="short"] { --c: var(--blood-text); }

.chart.is-drawn .c-dot.is-key, .chart.is-drawn .c-note.is-key, .chart.is-drawn .c-lead.is-key { opacity: 1; }
.chart.is-drawn .c-dot.is-show, .chart.is-drawn .c-note.is-show, .chart.is-drawn .c-lead.is-show { opacity: 1; }
.chart[data-active]:not([data-active=""]) .c-note.is-key:not(.is-show),
.chart[data-active]:not([data-active=""]) .c-lead.is-key:not(.is-show),
.chart[data-active]:not([data-active=""]) .c-dot.is-key:not(.is-show) { opacity: 0.12; }

.c-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.25); pointer-events: none; opacity: 0; }
.c-pt { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); transform: translate(-50%, -50%); pointer-events: none; opacity: 0; }
.c-tip {
  position: absolute;
  top: -4px;
  z-index: 2;
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(17, 17, 21, 0.97);
  font-size: 0.8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
}
.c-tip span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.c-tip b { font-weight: 600; font-size: 0.95rem; }
.chart.is-hover .c-cross, .chart.is-hover .c-pt, .chart.is-hover .c-tip { opacity: 1; }

.seg-chips {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem calc(-1 * clamp(16px, 2.4vw, 28px)) 0;
  padding: 0 clamp(16px, 2.4vw, 28px) 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .seg-chips { flex-wrap: wrap; overflow: visible; } }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip--short { --c: var(--blood-text); }
.chip--long { --c: var(--gain); }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--c); background: rgba(255, 255, 255, 0.05); }

/* receipts: what he said in the Clan at the time */
.receipts { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.receipts:not(:has(.receipt:not([hidden]))) { display: none; }
.receipt { display: grid; gap: 0.7rem; margin: 0; max-width: 64rem; }
.receipt-when { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blood-text); }
.receipt blockquote { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.5vw, 1.95rem); line-height: 1.2; color: var(--text); }
.receipt figcaption { max-width: 60ch; font-size: 0.9rem; color: var(--text-2); }

.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.6vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, opacity 0.4s, background-color 0.3s;
}
.tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tcard-lev { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.tcard-inst { margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); }
.tcard-roe { margin: 0.15rem 0 0.65rem; font-size: clamp(1.45rem, 2.3vw, 1.85rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--gain); font-variant-numeric: tabular-nums; }
.tcard-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.75rem; margin: 0 0 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.tcard-meta dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.tcard-date { margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.tcard.is-hot { border-color: rgba(242, 80, 95, 0.55); background: var(--surface-2); }
.tcard.is-hot[data-side="long"] { border-color: rgba(61, 220, 151, 0.5); }
.tcard.is-dim { opacity: 0.35; }

.record-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 1.5rem; }
.fineprint { max-width: 72ch; font-size: 0.82rem; line-height: 1.6; color: var(--text-3); }

/* ---------- 11. Rail (swipeable row with arrows) ---------- */
.rail { margin-top: 16px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; margin-bottom: 10px; }
.rail-nav { display: none; gap: 8px; }
.js .rail-nav { display: flex; }
.rail-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.2s, opacity 0.2s, border-color 0.2s;
}
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.rail-track {
  --gap: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--col);
  gap: var(--gap);
  margin-inline: calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 6px;
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-track:focus-visible { outline-offset: -2px; }
.rail-track--cards { --col: min(64%, 240px); }
.rail-track--voices { --col: min(86%, 380px); }
@media (min-width: 700px) {
  .rail-track { --gap: 14px; }
  .rail-track--cards { --col: calc((100% - 2 * var(--gap)) / 3); }
  .rail-track--voices { --col: calc((100% - var(--gap)) / 2); }
}
@media (min-width: 1100px) {
  .rail-track--cards { --col: calc((100% - 3 * var(--gap)) / 4); }
  .rail-track--voices { --col: calc((100% - 2 * var(--gap)) / 3); }
}

/* ---------- 12. Trader (about) ---------- */
.about-grid { display: grid; gap: clamp(44px, 6vw, 96px); }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.story { display: grid; gap: 1.05rem; }
.story p { max-width: 58ch; font-size: 1.06rem; color: var(--text-2); }
.story strong { font-weight: 500; color: var(--text); }

.quote-card {
  position: relative;
  margin: 2.5rem 0 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -0.32em;
  left: 0.2em;
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--blood);
}
.quote-card blockquote { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; }
.quote-card figcaption { margin-top: 1.1rem; font-size: 0.86rem; color: var(--text-3); }

/* signature moment 4: the timeline fills as you scroll */
.timeline { position: relative; list-style: none; padding: 0 0 0 2rem; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; }
.timeline::before { background: var(--line-2); }
.timeline::after { background: linear-gradient(var(--blood-text), var(--blood)); transform-origin: top; transform: scaleY(var(--p, 1)); }
.js .timeline::after { transform: scaleY(var(--p, 0)); }
.timeline li { position: relative; padding-bottom: 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-2rem + 1px);
  top: 0.42rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--blood-text);
  border-radius: 50%;
  background: var(--blood-text);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.js .timeline li::before { background: var(--bg); border-color: var(--text-3); }
.js .timeline li.is-lit::before { background: var(--blood-text); border-color: var(--blood-text); box-shadow: 0 0 0 5px rgba(242, 80, 95, 0.15); }
.tl-when { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blood-text); }
.tl-what { margin-top: 0.2rem; font-size: 1.02rem; }
.tl-what span { color: var(--text-2); }
.tl-what a { color: var(--text); border-bottom: 1px solid var(--blood-text); transition: color .2s; }
.tl-what a:hover { color: var(--blood-text); }

/* ---------- 13. The Way (principles) ---------- */
.way-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) {
  .way-grid { grid-template-columns: 0.8fr 1.2fr; gap: 96px; }
  .way-aside { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
}
.way-aside .h2 { margin-top: 1.2rem; }
.way-aside .lede { margin-top: 1.2rem; }
.way-kanji {
  display: none;
  margin-top: 2.5rem;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(8rem, 15vw, 13rem);
  line-height: 1;
  color: var(--blood);
}
.way-kanji small { display: block; margin-top: 1rem; font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
@media (min-width: 1024px) { .way-kanji { display: block; } }

.principles { list-style: none; padding: 0; }
.principle { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.75rem; padding: clamp(22px, 4vw, 40px) 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.p-num { padding-top: 0.15rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.p-title { margin-bottom: 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blood-text); }
.p-quote { font-family: var(--font-serif); font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.15; color: var(--text); }
.p-cite { margin-top: 0.7rem; font-size: 0.88rem; color: var(--text-3); }

/* ---------- 14. Inside the Clan ---------- */
.inside-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .inside-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; } }

.mock {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: #0e0e12;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}
@media (min-width: 640px) { .mock { grid-template-columns: 200px 1fr; min-height: 480px; } }
.mock-side { display: none; padding: 1rem 0.75rem; border-right: 1px solid var(--line); background: #0a0a0d; }
@media (min-width: 640px) { .mock-side { display: block; } }
.mock-server { display: flex; align-items: center; gap: 0.55rem; padding: 0.15rem 0.4rem 0.9rem; margin-bottom: 0.4rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.88rem; }
.mock-server img { width: 24px; height: 24px; border-radius: 6px; mix-blend-mode: screen; }
.mock-cat { margin: 0.85rem 0.45rem 0.3rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.mock-ch { display: flex; gap: 0.35rem; padding: 0.3rem 0.45rem; overflow: hidden; border-radius: 6px; font-size: 0.82rem; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.mock-ch::before { content: "#"; color: var(--text-3); }
.mock-ch.is-active { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.mock-main { display: flex; flex-direction: column; min-width: 0; }
.mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; }
.mock-bar::before { content: "#"; color: var(--text-3); font-weight: 400; }
.mock-feed { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 1.1rem; padding: 1rem; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 0.75rem; }
.msg-av { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: #1b1b21; }
.msg-av img { width: 100%; height: 100%; mix-blend-mode: screen; }
.msg-name { font-weight: 600; font-size: 0.9rem; }
.msg-name.is-sensei { color: var(--blood-text); }
.msg-time { margin-left: 0.4rem; font-weight: 400; font-size: 0.75rem; color: var(--text-3); }
.msg-text { margin-top: 0.1rem; font-size: 0.9rem; line-height: 1.55; color: var(--text-2); }
.typing { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-3); }
.typing span { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.mock.is-in .typing i { animation: dot 1.2s ease-in-out 5; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.mock-input { margin: 0 1rem 1rem; padding: 0.75rem 1rem; border-radius: 10px; background: rgba(255, 255, 255, 0.045); font-size: 0.84rem; color: var(--text-3); }
/* signature moment 5: Discord messages arrive */
.js .mock .msg, .js .mock .typing { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .mock.is-in .msg, .js .mock.is-in .typing { opacity: 1; transform: none; }
.js .mock.is-in .msg:nth-child(1) { transition-delay: 0.2s; }
.js .mock.is-in .msg:nth-child(2) { transition-delay: 1s; }
.js .mock.is-in .msg:nth-child(3) { transition-delay: 1.8s; }
.js .mock.is-in .typing { transition-delay: 2.6s; }

.feats { display: grid; list-style: none; padding: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) and (max-width: 1023px) { .feats { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.feat { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.feat-n { padding-top: 0.25rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--blood-text); }
.feat h3 { margin-bottom: 0.25rem; font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em; }
.feat p { font-size: 0.92rem; color: var(--text-2); }

/* ---------- 15. Library ---------- */
.lib { display: grid; gap: 14px; }
@media (min-width: 900px) { .lib { grid-template-columns: 290px 1fr; gap: 32px; align-items: start; } }
.lib-tabs { display: none; }
.js .lib-tabs {
  display: flex;
  gap: 8px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 2px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.lib-tabs::-webkit-scrollbar { display: none; }
.lib-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.lib-tab span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.lib-tab:hover { color: var(--text); }
.lib-tab[aria-selected="true"] { color: var(--text); border-color: var(--blood-text); background: rgba(193, 18, 31, 0.08); }
.lib-tab[aria-selected="true"] span { color: var(--blood-text); }
@media (min-width: 900px) {
  .js .lib-tabs { flex-direction: column; gap: 0; margin: 0; padding: 0; overflow: visible; border-top: 1px solid var(--line); }
  .lib-tab {
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.05rem 0.25rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    white-space: normal;
    text-align: left;
  }
  .lib-tab[aria-selected="true"] { background: none; }
}

.page {
  position: relative;
  padding: clamp(22px, 3.2vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #131317, #0d0d10);
}
.page::before { content: ""; position: absolute; top: -1px; left: clamp(22px, 3.2vw, 44px); width: 56px; height: 2px; background: var(--blood); }
.page + .page { margin-top: 14px; }
.js .page + .page { margin-top: 0; }
.js .page:not(.is-current) { display: none; }
.page-ch { padding-right: 56px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); overflow-wrap: anywhere; }
.page-title { margin: 0.7rem 0 1.1rem; padding-right: 48px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -0.015em; }
.page-eq {
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  line-height: 1.5;
  color: var(--text);
}
.page p:not(.page-ch):not(.page-eq) { max-width: 60ch; color: var(--text-2); }
.page p + p { margin-top: 0.8rem; }
.page-list { display: grid; gap: 0.45rem; margin-top: 1rem; padding: 0; list-style: none; }
.page-list li { position: relative; padding-left: 1.6rem; color: var(--text); }
.page-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.9rem; height: 1px; background: var(--blood-text); }
.page .page-quote { margin-top: 1.1rem; font-family: var(--font-serif); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; color: var(--text); }

/* ---------- 16. Voices ---------- */
.voices-head { display: grid; gap: 24px; margin: 0 0 clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .voices-head { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 64px; } }
.voices-quote { margin: 0; }

/* video testimonial: designed poster, TikTok's player loads only on press */
.vid { margin: 0; }
.vid-poster {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 0.8rem;
  width: 100%;
  min-height: 380px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.2) 0%, rgba(7, 7, 8, 0.35) 38%, rgba(7, 7, 8, 0.93) 72%),
    #0b0b0d url("../img/uchiha-wall.webp") center top / 100% auto no-repeat;
  color: var(--text);
  transition: border-color 0.3s;
}
@media (min-width: 900px) { .vid-poster { aspect-ratio: 9 / 16; min-height: 0; background-size: cover; background-position: center 30%; } }
.vid-poster:hover { border-color: rgba(242, 80, 95, 0.6); }
.vid-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.vid-badge { padding: 0.25rem 0.6rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(7, 7, 8, 0.65); }
.vid-len { padding: 0.25rem 0.5rem; border-radius: 6px; background: rgba(7, 7, 8, 0.75); color: var(--text); }
.vid-play {
  grid-row: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blood);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 12px 30px -8px var(--blood-glow);
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.vid-play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.vid-poster:hover .vid-play { transform: scale(1.06); background: var(--blood-hover); }
.vid-quote { grid-row: 4; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.25; }
.vid-who { grid-row: 5; }
.vid-quote em { font-style: italic; color: var(--blood-text); }
.vid-who { display: grid; gap: 0.15rem; font-size: 0.92rem; }
.vid-who span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.vid-frame { display: block; width: min(100%, 325px); height: auto; aspect-ratio: 9 / 16; margin-inline: auto; border: 0; border-radius: var(--radius-l); background: #000; }
.voices-feature {
  max-width: 24ch;
  margin-bottom: 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.4vw, 3.5rem);
  line-height: 1.08;
}
.voices-feature-cite { font-size: 0.9rem; color: var(--text-3); }
.voices-feature-cite a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.vcard {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.vcard blockquote { flex: 1; font-size: 0.98rem; line-height: 1.62; }
.vcard footer { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.v-name { font-weight: 600; font-size: 0.9rem; }
.v-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.v-tag { align-self: flex-start; margin-bottom: 0.75rem; padding: 0.18rem 0.55rem; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.voices-more { display: flex; justify-content: center; margin-top: 1.25rem; }
.voices-note { margin-top: 1.25rem; text-align: center; font-size: 0.8rem; color: var(--text-3); }

/* ---------- 17. Pricing ---------- */
.pricing-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .pricing-grid { grid-template-columns: 0.85fr 2.15fr; gap: 24px; align-items: start; } }
.plans { display: grid; gap: 12px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .includes { order: -1; position: sticky; top: calc(var(--header-h) + 24px); } }

/* below 1100px: one plan at a time behind a period switch */
.plan-switch { display: none; }
@media (max-width: 1099px) {
  .js .plan-switch {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--bg-2);
  }
  .plan-switch button {
    min-height: 44px;
    padding: 0 0.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-2);
    transition: color 0.2s, background-color 0.2s;
  }
  .plan-switch button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
  .js .plans { grid-template-columns: minmax(0, 1fr); }
  .js .plans .plan:not(.is-current) { display: none; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.4s;
}
.plan:hover { border-color: var(--line-2); }
.plan--best {
  border-color: rgba(242, 80, 95, 0.55);
  background: radial-gradient(120% 90% at 50% 0%, rgba(193, 18, 31, 0.22), transparent 62%), var(--surface);
  box-shadow: 0 30px 60px -30px rgba(193, 18, 31, 0.55);
}
.plan--best:hover { border-color: rgba(242, 80, 95, 0.8); }
.plan .seal--badge { position: absolute; top: clamp(16px, 2vw, 22px); right: clamp(16px, 2vw, 22px); }
.plan-name { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; margin: 0.9rem 0 0.2rem; }
.plan-price .amt { font-size: clamp(2.1rem, 3.8vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: 0.9rem; color: var(--text-3); }
.plan-eq { font-size: 0.88rem; color: var(--text-2); }
.plan-eq b { font-weight: 600; color: var(--gain); }
.plan-body { flex: 1; margin: 0.9rem 0 1.25rem; font-size: 0.88rem; color: var(--text-3); }

.includes { padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-2); }
.includes h3 { font-size: 1.1rem; font-weight: 600; }
.includes ul { display: grid; gap: 0.65rem; list-style: none; padding: 0; margin-top: 1rem; }
.includes li { display: grid; grid-template-columns: 18px 1fr; gap: 0.7rem; font-size: 0.93rem; line-height: 1.5; color: var(--text-2); }
.includes li svg { width: 18px; height: 18px; margin-top: 0.15rem; color: var(--gain); }
.lede-link { color: var(--text); border-bottom: 1px solid var(--blood-text); transition: color 0.2s; }
.lede-link:hover { color: var(--blood-text); }

.pricing-notes { display: grid; gap: 0.45rem; margin-top: 1.5rem; font-size: 0.86rem; color: var(--text-3); }
.pricing-notes a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.pricing-notes a:hover { color: var(--text); }

/* ---------- 18. FAQ ---------- */
.faq { max-width: 54rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1.2rem 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blood-text); }
.pm { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform 0.35s var(--ease-out), background-color 0.3s; }
.pm svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.faq details[open] .pm { transform: rotate(45deg); background: rgba(255, 255, 255, 0.06); }
.faq-a { max-width: 64ch; padding-bottom: 1.35rem; color: var(--text-2); }
.faq-a a { color: var(--text); border-bottom: 1px solid var(--line-2); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- 19. Conviction note ---------- */
.conv-note { padding-block: 0 clamp(64px, 9vw, 112px); }
.conv-note-grid { display: grid; gap: 1.25rem; padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.conv-note-title { margin-top: 0.75rem; font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; line-height: 1.1; }
.conv-note-title em { color: var(--blood-text); }
.conv-note-body { display: grid; gap: 0.9rem; max-width: 42rem; color: var(--text-2); }
@media (min-width: 800px) { .conv-note-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; } }

/* ---------- 20. Final CTA ---------- */
/* just the crest and the two buttons */
.final { position: relative; overflow: clip; padding-block: clamp(72px, 11vw, 150px); text-align: center; border-top: 1px solid var(--line); }
/* no z-index here: it would isolate the logo's screen blend and show the JPG's black box */
.final .wrap { position: relative; display: grid; justify-items: center; }
.final-mark { width: clamp(96px, 12vw, 140px); mix-blend-mode: screen; }
.final .cta-row { justify-content: center; margin-top: 1.75rem; }

/* ---------- 21. Phone join bar ---------- */
.joinbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: var(--z-joinbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0 6px 0 1.2rem;
  border-radius: 999px;
  background: var(--blood);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px -12px rgba(0, 0, 0, 0.85);
  transform: translateY(calc(100% + 28px));
  transition: transform 0.45s var(--ease-out);
}
.joinbar.is-on { transform: none; }
.joinbar-txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.45rem; font-size: 0.95rem; }
.joinbar-txt b { font-weight: 600; }
.joinbar-txt span { color: rgba(255, 255, 255, 0.85); }
.joinbar-txt span::before { content: "·"; margin-right: 0.45rem; }
.joinbar-go { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.joinbar-go svg { width: 18px; height: 18px; }
@media (min-width: 1024px) { .joinbar { display: none; } }
.menu-open .joinbar { transform: translateY(calc(100% + 28px)); }

/* ---------- 22. Footer ---------- */
.site-footer { padding: clamp(56px, 8vw, 96px) 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-tag { max-width: 36ch; margin-top: 1rem; color: var(--text-2); }
.foot-safe { display: inline-flex; margin-top: 1rem; padding: 0.45rem 0.8rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.82rem; color: var(--text-2); }
.foot-col h3 { margin-bottom: 0.6rem; font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.foot-col ul { display: grid; list-style: none; padding: 0; }
@media (max-width: 899px) { .foot-col ul { grid-template-columns: 1fr 1fr; column-gap: 1rem; } }
.foot-col a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; color: var(--text-2); transition: color 0.2s; }
.foot-col a:hover { color: var(--text); }
.foot-col a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.disclaimer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.disclaimer h2 { margin-bottom: 0.9rem; font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.disclaimer-short { max-width: 82ch; font-size: 0.86rem; line-height: 1.65; color: var(--text-3); }
.disclaimer-full { margin-top: 0.6rem; }
.disclaimer-full summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.88rem;
  color: var(--text);
  list-style: none;
  cursor: pointer;
}
.disclaimer-full summary::-webkit-details-marker { display: none; }
.disclaimer-full summary::after { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%; font-family: var(--font-mono); font-size: 0.9rem; line-height: 1; transition: transform 0.3s var(--ease-out); }
.disclaimer-full[open] summary::after { transform: rotate(45deg); }
.disclaimer-full summary:hover { color: var(--blood-text); }
.disclaimer-body { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.65; color: var(--text-3); }
.disclaimer-body p + p { margin-top: 0.8rem; }
@media (min-width: 900px) { .disclaimer-body { columns: 2; column-gap: 48px; } .disclaimer-body p { break-inside: avoid; } }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-3); }
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- 23. Phone tightening (designed for ~375px, not shrunk) ---------- */
@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .sec-head { gap: 0.9rem; margin-bottom: 28px; }
  .lede { font-size: 1rem; }
  .cta-row { gap: 0.6rem; margin-top: 1.6rem; }
  .cta-row .btn { padding: 0 1.15rem; font-size: 0.95rem; }
  .hero-stats { margin-top: 1.9rem; }
  .hero-stats > div { padding-top: 0.75rem; }
  .hero-stats dd { font-size: 1.35rem; }
  .market { margin-top: 24px; }
  .chart { height: 330px; }
  .story p { font-size: 1rem; }
  .quote-card { margin-top: 2rem; }
  .timeline li { padding-bottom: 1.15rem; }
  .timeline .tl-early { display: none; }  /* already told in the story above */
  .receipt blockquote { font-size: 1.22rem; }
  .tl-what { font-size: 0.98rem; }
  .h2 { font-size: 2.2rem; }
  .story-extra { display: none; }
  /* the five rules become a swipeable row of cards on phones */
  .principles {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 320px);
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .principles::-webkit-scrollbar { display: none; }
  .principle {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    scroll-snap-align: start;
  }
  .principle:last-child { border-bottom: 1px solid var(--line); }
  .p-num::after { content: " / 05"; color: var(--text-3); }
  .p-quote { font-size: 1.5rem; }
  .mock .msg:first-child { display: none; }
  .feat { padding: 0.95rem 0; }
  .feat p { font-size: 0.9rem; }
  .final { padding-block: 64px; }
  .foot-grid > nav.foot-col { display: none; }
  .site-footer { padding-top: 48px; }
  .disclaimer { margin-top: 32px; padding-top: 24px; }
}

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .chart-plot { clip-path: none; }
  .spark { clip-path: none; }
}

/* ---------- 25. Black Friday 2026 (remove after Dec 31) ----------
   The head script adds html.has-promo until Jan 1, 07:00 UTC (end of Dec 31 Mountain).
   With no JS or after the end date, the page looks exactly as before. */
:root { --promo-h: 0px; }
.has-promo { --promo-h: 40px; --header-h: calc(64px + var(--promo-h)); }
.has-promo .site-header { top: var(--promo-h); height: calc(var(--header-h) - var(--promo-h)); }

.promo { display: none; }
.has-promo .promo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--promo-h);
  padding: 0 var(--gutter);
  background: var(--blood);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.promo-txt { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.promo-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.promo-txt b { font-weight: 700; }
.promo-sep { opacity: 0.6; }
.promo-code {
  min-height: 28px;
  padding: 0 0.6rem;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font: 600 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.promo-code:hover { background: rgba(0, 0, 0, 0.3); }
.promo-go { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.promo-go:hover { color: var(--paper); }
@media (max-width: 760px) {
  .promo-wide { display: none; }
  .has-promo .promo { font-size: 0.8125rem; }
  .promo-txt { gap: 0.45rem; }
}
@media (max-width: 480px) {
  .promo-mid { display: none; }
  .has-promo .promo { padding: 0 12px; }
  .promo-tag { letter-spacing: 0.08em; }
}
@media (max-width: 340px) { .promo-tag { display: none; } }

/* annual card: sale price while the promo runs */
html:not(.has-promo) .promo-on { display: none !important; }
.has-promo .promo-off { display: none !important; }
.plan-price .was { font-size: 1.05rem; color: var(--text-3); text-decoration-thickness: 1px; font-variant-numeric: tabular-nums; }
