/* Buyside — Editorial light, wealth-management adjacent */

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400&family=Inter+Tight:wght@300;400;450;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Stone-paper neutrals */
  --paper: #f5f3ee;
  --paper-2: #ebe8df;
  --paper-3: #ddd9cd;
  --ink: #1a1a17;
  --ink-2: #2c2a25;
  --ink-3: #4a4742;
  --ink-4: #7a7670;
  --ink-5: #a8a39a;
  --rule: rgba(26,26,23,0.12);
  --rule-2: rgba(26,26,23,0.06);

  /* Single emerald accent — institutional, not bright */
  --emerald: #1f5f4a;
  --emerald-2: #18483a;
  --emerald-soft: #e3ebe6;

  /* Intent badge tones (stone-aligned) */
  --intent-red: #8a3a2a;
  --intent-orange: #a86a2a;
  --intent-stone: #5a5750;
  --intent-light: #8a867e;

  --serif: 'Newsreader', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 2px;
  --radius-lg: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #2a2823;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

.tnum { font-feature-settings: "tnum"; }

/* App chrome — viewport + device frame switcher */
.app-chrome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #1f1d19;
  color: var(--paper);
}

.app-chrome.fullscreen {
  background: var(--paper);
}
.viewport-stage.fullscreen {
  padding: 0;
  align-items: stretch;
}
.app-chrome.fullscreen .viewport-frame.desktop {
  width: 100%;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
}
.app-chrome.fullscreen .viewport-frame.tablet {
  width: 100%;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
}
.app-chrome.fullscreen .viewport-frame.mobile {
  width: 100%;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
}
.app-chrome.fullscreen .viewport-scroll {
  position: relative;
  inset: auto;
  height: 100%;
}

/* Floating breakpoint switcher */
.bp-switcher {
  position: fixed;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 4px;
  background: rgba(20,20,17,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245,243,238,0.12);
  border-radius: 999px;
  padding: 4px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.bp-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: rgba(245,243,238,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: var(--mono);
  transition: background 200ms ease, color 200ms ease;
  padding: 0;
}
.bp-btn:hover { color: var(--paper); }
.bp-btn.active {
  background: var(--paper);
  color: var(--ink);
}

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(245,243,238,0.08);
  background: #1a1815;
  position: sticky;
  top: 0;
  z-index: 50;
  font-family: var(--sans);
  font-size: 12px;
  flex-wrap: wrap;
}
.app-toolbar .brand {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.app-toolbar .brand em {
  font-style: italic;
  color: var(--emerald-soft);
  font-weight: 300;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,243,238,0.04);
  border: 1px solid rgba(245,243,238,0.08);
  border-radius: 999px;
  padding: 3px;
}
.toolbar-btn {
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.55);
  border-radius: 999px;
  white-space: nowrap;
}
.toolbar-btn.active {
  background: var(--paper);
  color: var(--ink);
}
.toolbar-btn:hover:not(.active) {
  color: var(--paper);
}
.toolbar-spacer { flex: 1; }
.toolbar-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(245,243,238,0.4);
  text-transform: uppercase;
}

.viewport-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  overflow: auto;
}

.viewport-frame {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 60px 120px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(.2,.7,.2,1), height 0.35s cubic-bezier(.2,.7,.2,1);
}
.viewport-frame.desktop { width: 1280px; height: 820px; border-radius: 6px; }
.viewport-frame.tablet { width: 820px; height: 1100px; border-radius: 14px; }
.viewport-frame.mobile { width: 390px; height: 780px; border-radius: 28px; }

.viewport-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-5) transparent;
}
.viewport-scroll::-webkit-scrollbar { width: 6px; }
.viewport-scroll::-webkit-scrollbar-thumb { background: var(--ink-5); border-radius: 3px; }
.viewport-scroll::-webkit-scrollbar-track { background: transparent; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0.005em;
  border-radius: 2px;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--emerald); }
.btn-emerald {
  background: var(--emerald);
  color: var(--paper);
}
.btn-emerald:hover { background: var(--emerald-2); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  padding: 12px 0;
}
.btn-ghost:hover { color: var(--ink); }
.btn-arrow::after {
  content: "→";
  margin-left: 4px;
  transition: transform 0.18s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* Confidentiality badge */
.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(31,95,74,0.06);
  border: 1px solid rgba(31,95,74,0.15);
  border-radius: 999px;
}
.lock-pill svg { color: var(--emerald); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}

.rule { height: 1px; background: var(--rule); border: none; margin: 0; }
.rule-strong { height: 1px; background: var(--ink); border: none; }

.hairline-bottom { border-bottom: 1px solid var(--rule); }
.hairline-top { border-top: 1px solid var(--rule); }

/* Form controls */
.field-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}
.field-input:focus { border-color: var(--ink); }
.field-input::placeholder { color: var(--ink-5); }

.field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
  display: block;
}

/* Pill option */
.pill-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-align: left;
  transition: all 0.14s ease;
}
.pill-option:hover {
  border-color: var(--ink-3);
  background: rgba(26,26,23,0.02);
}
.pill-option.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.pill-option .check {
  width: 16px; height: 16px;
  border: 1px solid var(--ink-5);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pill-option.selected .check { border-color: var(--paper); }
.pill-option.selected .check::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--paper);
  border-radius: 50%;
}

/* Card */
.card {
  background: #faf8f3;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 24px;
}
.card-elev {
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(26,26,23,0.04);
}

/* Big number */
.big-num {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--emerald);
  line-height: 0.9;
  font-feature-settings: "tnum";
}

/* ───── Pillar animations ───── */
@keyframes pillarFadeIn {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
.pillar-card {
  position: relative;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color 360ms ease, background 360ms ease, transform 360ms ease;
  opacity: 0;
  overflow: hidden;
}
.pillar-card.in { animation: pillarFadeIn 720ms cubic-bezier(0.2, 0.65, 0.25, 1) forwards; }
.pillar-card:hover { border-color: var(--ink); background: #faf8f3; transform: translateY(-2px); }
.pillar-card .pillar-art {
  height: 140px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.pillar-card .pillar-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-5);
  text-transform: uppercase;
}
.pillar-card .pillar-title {
  font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.02em; margin: 14px 0 12px;
}
.pillar-card .pillar-body {
  font-size: 15px; line-height: 1.6; color: var(--ink-3); margin: 0;
}

/* Pillar 01 — Redact a document */
.redact-doc { position: absolute; inset: 0; padding: 14px 20px; }
.redact-line {
  height: 6px; border-radius: 1px; margin-bottom: 10px;
  background: #d4cdb6; opacity: 0; transform-origin: left center; transform: scaleX(0);
}
.pillar-card.in .redact-line {
  animation: textFill 700ms cubic-bezier(0.6,0,0.4,1) forwards;
}
@keyframes textFill { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
.redact-line.redacted { transform: scaleX(0); }
.pillar-card.in .redact-line.redacted {
  animation: redactSweep 600ms cubic-bezier(0.65,0,0.35,1) forwards;
}
@keyframes redactSweep {
  0%   { background: #d4cdb6; transform: scaleX(0); opacity: 0; }
  20%  { background: #d4cdb6; transform: scaleX(1); opacity: 1; }
  100% { background: var(--ink); transform: scaleX(1); opacity: 1; }
}
.redact-stamp {
  position: absolute; right: 14px; bottom: 14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  color: var(--accent, var(--emerald));
  border: 1px solid currentColor; padding: 4px 8px; border-radius: 1px;
  opacity: 0; transform: rotate(-4deg) scale(0.9);
}
.pillar-card.in .redact-stamp {
  animation: stampIn 400ms cubic-bezier(0.2,1.4,0.5,1) 1400ms forwards;
}
@keyframes stampIn { to { opacity: 1; transform: rotate(-4deg) scale(1); } }

/* Pillar 02 — Bar chart counter */
.bar-grid {
  position: absolute; inset: 8px 0 28px 0;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px;
  align-items: end;
}
.bar-cell {
  background: var(--accent, var(--emerald));
  transform: scaleY(0); transform-origin: bottom center;
  border-radius: 1px;
}
.pillar-card.in .bar-cell {
  animation: barRise 900ms cubic-bezier(0.2,0.7,0.25,1) forwards;
}
@keyframes barRise { to { transform: scaleY(1); } }
.bar-axis {
  position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--rule-2);
}
.bar-num {
  position: absolute; left: 0; bottom: 0;
  font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: -0.01em;
  color: var(--ink-3); opacity: 0;
}
.pillar-card.in .bar-num { animation: numFade 500ms ease 800ms forwards; }
@keyframes numFade { to { opacity: 1; } }
.bar-num.right { left: auto; right: 0; }

/* Pillar 03 — Path with branching choice */
.pillar-path { width: 100%; height: 100%; display: block; }
.pillar-path .p-line {
  fill: none; stroke: var(--ink); stroke-width: 1.5;
  stroke-dasharray: 320; stroke-dashoffset: 320;
}
.pillar-card.in .pillar-path .p-line {
  animation: drawPath 1100ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.pillar-path .p-line.branch {
  stroke-dasharray: 140; stroke-dashoffset: 140;
  stroke-dasharray: 4 4;
  opacity: 0;
}
.pillar-card.in .pillar-path .p-line.branch {
  animation: branchIn 600ms ease 900ms forwards;
}
@keyframes branchIn { to { opacity: 0.5; } }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
.pillar-path .p-node {
  fill: var(--paper); stroke: var(--ink); stroke-width: 1.5;
  opacity: 0; transform-origin: center; transform-box: fill-box;
  transform: scale(0);
}
.pillar-card.in .pillar-path .p-node { animation: nodeIn 360ms cubic-bezier(0.2,1.4,0.5,1) forwards; }
@keyframes nodeIn { to { opacity: 1; transform: scale(1); } }
.pillar-path .p-node.accent {
  fill: var(--accent, var(--emerald)); stroke: var(--accent, var(--emerald));
}
.pillar-path .p-pulse {
  fill: var(--accent, var(--emerald)); opacity: 0;
}
.pillar-card.in .pillar-path .p-pulse {
  animation: pulseRing 2000ms ease-in-out 1400ms infinite;
}
@keyframes pulseRing {
  0%, 100% { opacity: 0; r: 5; }
  50%      { opacity: 0.35; r: 16; }
}
.pillar-path .p-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  fill: var(--ink-4); text-transform: uppercase; opacity: 0;
}
.pillar-card.in .pillar-path .p-label {
  animation: numFade 500ms ease 1300ms forwards;
}

/* Reveal animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) both; }
.fade-in { animation: fadeIn 0.6s ease both; }

/* Progress bar */
.progress-track {
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}

/* Density variations */
.density-airy { --pad-x: 80px; --pad-y: 80px; }
.density-compact { --pad-x: 48px; --pad-y: 48px; }

/* Intent badges */
.intent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid;
}
.intent-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
}
.intent-actively { color: var(--intent-red); border-color: rgba(138,58,42,0.25); background: rgba(138,58,42,0.04); }
.intent-actively .pulse { background: var(--intent-red); }
.intent-soon { color: var(--intent-orange); border-color: rgba(168,106,42,0.25); background: rgba(168,106,42,0.04); }
.intent-soon .pulse { background: var(--intent-orange); }
.intent-later { color: var(--intent-stone); border-color: rgba(90,87,80,0.25); background: rgba(90,87,80,0.04); }
.intent-later .pulse { background: var(--intent-stone); }
.intent-curious { color: var(--intent-light); border-color: rgba(138,134,126,0.25); background: rgba(138,134,126,0.04); }
.intent-curious .pulse { background: var(--intent-light); }

/* Lock icon container */
.lock-tile {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* Skeleton stripes for placeholder imagery */
.placeholder-stripes {
  background-image: repeating-linear-gradient(
    135deg,
    var(--paper-3) 0px,
    var(--paper-3) 1px,
    transparent 1px,
    transparent 8px
  );
  background-color: var(--paper-2);
}

a { color: inherit; text-decoration: none; }
a.link-emerald { color: var(--emerald); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
a.link-emerald:hover { color: var(--emerald-2); }

/* Phone notch / status bar accents for mobile frame */
.mobile-statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  z-index: 5;
  pointer-events: none;
}

/* Subtle paper grain via SVG */
.paper-grain {
  position: relative;
}
.paper-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.4;
  z-index: 1;
}
.paper-grain > * { position: relative; z-index: 2; }

/* ───── How it works — sequenced timeline ───── */
.how-wrap {
  --accent-c: #1f6b54;
}
.how-rail {
  position: relative;
  height: 36px;
  margin-bottom: 32px;
  padding: 0 14px;
}
.how-rail-track {
  position: absolute;
  left: 14px; right: 14px; top: 50%;
  height: 1px;
  background: var(--rule);
  transform: translateY(-50%);
}
.how-rail-fill {
  position: absolute;
  left: 14px; top: 50%;
  height: 1px;
  background: var(--ink);
  transform: translateY(-50%);
  transition: width 720ms cubic-bezier(0.65, 0, 0.35, 1);
  max-width: calc(100% - 28px);
}
.how-rail-node {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  margin-left: -7px; margin-top: -7px;
  background: #efece4;
  border: 1.5px solid var(--ink-5);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: border-color 360ms ease, background 360ms ease, transform 360ms ease;
  z-index: 2;
}
.how-rail-node.done {
  border-color: var(--ink);
  background: var(--ink);
}
.how-rail-node.current {
  border-color: var(--accent, var(--accent-c));
  background: var(--accent, var(--accent-c));
  transform: translate(0, 0) scale(1.15);
}
.how-rail-node:hover {
  transform: scale(1.25);
}
.how-rail-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent, var(--accent-c));
  opacity: 0;
  pointer-events: none;
}
.how-rail-node.current .how-rail-pulse {
  animation: howPulse 1800ms ease-out infinite;
}
@keyframes howPulse {
  0%   { opacity: 0.6; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(2.4); }
}

.how-steps {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.how-step {
  background: #efece4;
  padding: 28px;
  cursor: pointer;
  transition: background 480ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.how-step.active {
  background: #f5f3eb;
}
.how-step.past .how-step-num {
  color: var(--ink-4) !important;
}
.how-step-illus {
  height: 90px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.how-step-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  transition: color 360ms ease;
}
.how-step.active .how-step-num {
  color: var(--accent, var(--accent-c));
}
.how-step-title {
  font-size: 20px;
  font-weight: 450;
  letter-spacing: -0.015em;
  margin: 12px 0 8px;
}
.how-step-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 20px;
  flex: 1;
}
.how-step-meta {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-5);
  text-transform: uppercase;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.how-step.active .how-step-meta {
  color: var(--accent, var(--accent-c));
  border-top-color: var(--accent, var(--accent-c));
  border-top-style: solid;
}

/* Illustrations — base hidden, on-active they animate */
.hi { width: 100%; height: 100%; display: block; color: var(--ink); }

/* 01 — Question fields */
.hi-q .hi-field { fill: #e6e1cd; }
.hi-q .hi-fill {
  fill: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
}
.hi-q.on .hi-fill { animation: hiQFill 700ms cubic-bezier(0.65,0,0.35,1) forwards; }
@keyframes hiQFill {
  0%   { transform: scaleX(0); }
  60%  { transform: scaleX(0.7); }
  100% { transform: scaleX(0.55); }
}
.hi-q .hi-dot { fill: var(--ink); opacity: 0; transform: scale(0); transform-origin: 178px 15px; }
.hi-q.on .hi-dot { animation: hiQDot 360ms cubic-bezier(0.2,1.4,0.5,1) forwards; }
@keyframes hiQDot { to { opacity: 1; transform: scale(1); } }

/* 02 — Match counter */
.hi-count .hi-count-num {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  fill: var(--ink);
  opacity: 0;
}
.hi-count.on .hi-count-num { animation: hiCountIn 500ms ease 200ms forwards; }
@keyframes hiCountIn { to { opacity: 1; } }
.hi-count .hi-d2 { opacity: 0; }
.hi-count.on .hi-d2 { animation: hiD2 220ms ease 700ms forwards; }
@keyframes hiD2 { to { opacity: 1; } }
.hi-count .hi-count-label {
  font-size: 7px;
  letter-spacing: 0.18em;
  fill: var(--ink-4);
  opacity: 0;
}
.hi-count.on .hi-count-label { animation: hiCountIn 400ms ease 900ms forwards; }
.hi-count .hi-count-dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
}
.hi-count.on .hi-count-dot { animation: hiDot 320ms cubic-bezier(0.2,1.4,0.5,1) forwards; }
@keyframes hiDot { to { opacity: 1; transform: scale(1); } }

/* 03 — Range bracket */
.hi-range .hi-range-axis {
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}
.hi-range.on .hi-range-axis { animation: hiAxis 600ms ease forwards; }
@keyframes hiAxis { to { stroke-dashoffset: 0; } }
.hi-range .hi-range-tick { stroke: var(--ink-5); stroke-width: 1; opacity: 0; }
.hi-range.on .hi-range-tick { animation: hiCountIn 200ms ease forwards; }
.hi-range .hi-range-bracket { opacity: 0; transform: scaleX(0); transform-origin: center; }
.hi-range.on .hi-range-bracket { animation: hiBracket 600ms cubic-bezier(0.65,0,0.35,1) 400ms forwards; }
@keyframes hiBracket { to { opacity: 1; transform: scaleX(1); } }
.hi-range .hi-range-num {
  font-size: 10px;
  letter-spacing: 0.06em;
  fill: var(--ink);
  opacity: 0;
  font-weight: 500;
}
.hi-range.on .hi-range-num { animation: hiCountIn 300ms ease 800ms forwards; }
.hi-range .hi-range-label {
  font-size: 7px;
  letter-spacing: 0.18em;
  fill: var(--ink-4);
  opacity: 0;
}
.hi-range.on .hi-range-label { animation: hiCountIn 300ms ease 1000ms forwards; }

/* 04 — Calendar grid */
.hi-cal .hi-cal-slot {
  fill: #e6e1cd;
  opacity: 0;
}
.hi-cal.on .hi-cal-slot { animation: hiCalIn 320ms ease forwards; }
@keyframes hiCalIn { to { opacity: 1; } }
.hi-cal .hi-cal-slot.pick {
  fill: var(--ink);
}
.hi-cal.on .hi-cal-slot.pick {
  animation: hiCalPick 600ms cubic-bezier(0.2,0.8,0.2,1) 1000ms forwards;
}
@keyframes hiCalPick {
  0%   { opacity: 1; transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}
.hi-cal .hi-cal-slot.pick {
  transform-origin: center;
  transform-box: fill-box;
}
.hi-cal .hi-cal-label {
  font-size: 7px;
  letter-spacing: 0.16em;
  fill: var(--ink-4);
  opacity: 0;
}
.hi-cal.on .hi-cal-label { animation: hiCalIn 400ms ease 1200ms forwards; }

/* Mobile — stack with no rail */
@media (max-width: 720px) {
  .how-rail { display: none; }
}
