/* FTO — black & chrome */
:root {
  --bg: #050506;
  --panel: #0d0e10;
  --panel-2: #141518;
  --line: #23252a;
  --text: #ecedef;
  --muted: #9ba0a8;
  --dim: #6b7079;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9dce0 38%, #8a8f97 52%, #c9ccd1 70%, #f4f5f6 100%);
  --chrome-flat: #c8ccd2;
  --chrome-btn: linear-gradient(180deg, #ffffff 0%, #e4e6e9 45%, #b9bdc4 100%);
  --ok: #8fd19e;
  --warn: #f0c36d;
  --bad: #ef8a80;
  --radius: 14px;
  --max: 1160px;
  --head: 'Michroma', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: var(--dim); text-underline-offset: 3px; }
a:hover { color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Type */
h1, h2, h3, .chrome { font-family: var(--head); font-weight: 400; letter-spacing: 0.04em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 18px; text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 16px; text-transform: uppercase; }
h3 { font-size: 1.05rem; margin: 0 0 10px; text-transform: uppercase; }
.chrome-text { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--head); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,5,6,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-family: var(--head); letter-spacing: 0.22em; font-size: 0.9rem; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a.btn-chrome, .nav a.btn-chrome:hover { color: #08090a; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 14px; }
  .nav.open { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 0.92rem var(--body); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-chrome { background: var(--chrome-btn); color: #08090a; box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 8px 30px rgba(200,204,210,.12); }
.btn-chrome:hover { color: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 40px rgba(220,224,230,.22); }
.btn-ghost { background: transparent; color: var(--text); border-color: #3a3d44; }
.btn-ghost:hover { border-color: var(--chrome-flat); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.85rem; }

/* Sections */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(255,255,255,.07), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero-logo { justify-self: center; width: min(260px, 60vw); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { order: -1; width: 160px; } }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card .num { font-family: var(--head); font-size: 0.8rem; color: var(--dim); letter-spacing: .2em; display: block; margin-bottom: 14px; }
.stat { font-family: var(--head); font-size: 1.8rem; }

.pill { display: inline-block; padding: 3px 10px; border: 1px solid #3a3d44; border-radius: 999px; font-size: 0.75rem; color: var(--muted); letter-spacing: .04em; }
.pill-core { border-color: var(--chrome-flat); color: #fff; }

.price-card { max-width: 520px; margin: 0 auto; text-align: center; padding: 40px 32px; background: linear-gradient(180deg, #121316, #0a0a0c); }
.price { font-family: var(--head); font-size: 3.2rem; margin: 8px 0 4px; }
.ticks { list-style: none; padding: 0; margin: 24px 0; text-align: left; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--chrome-flat); border-bottom: 2px solid var(--chrome-flat); transform: rotate(-45deg); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--muted); }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head); font-weight: 400; font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* Forms */
form .field { display: grid; gap: 6px; margin-bottom: 16px; }
label { font-size: 0.85rem; color: var(--muted); }
input, select, textarea { width: 100%; background: var(--panel-2); border: 1px solid #2c2f35; color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--chrome-flat); outline-offset: 2px; }
textarea { min-height: 140px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checks label { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.95rem; }
.checks input { width: auto; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.hidden { display: none !important; }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); }
.notice.error { border-color: #5a2a26; color: var(--bad); }
.notice.ok { border-color: #284a30; color: var(--ok); }

/* Footer */
.site-footer { padding: 48px 0; color: var(--dim); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }

/* Page header for inner pages */
.page-head { padding: 64px 0 40px; }
.content { max-width: 760px; }
.content p, .content li { color: var(--muted); }
.content h2 { margin-top: 48px; }
.locked { position: relative; }
.locked::after { content: 'Members only'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; background: linear-gradient(180deg, rgba(5,5,6,.2), rgba(5,5,6,.92) 55%); border-radius: var(--radius); }

table.ex { table-layout: fixed; min-width: 620px; }
table.ex col.c-name { width: 46%; } table.ex col.c-sets { width: 9%; } table.ex col.c-reps { width: 20%; }
table.ex col.c-tempo { width: 13%; } table.ex col.c-rest { width: 12%; }

/* ── Brushed-steel finish ───────────────────────────────── */
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,255,255,.06), transparent 60%),
    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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: fixed, scroll, scroll;
}
section { border-bottom: 0; position: relative; }
section + section::before, footer.site-footer::before {
  content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(var(--max), 90%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,224,230,.35), transparent);
}
.site-footer { position: relative; }
.site-header { border-bottom: 0; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(220,224,230,.28) 30%, rgba(220,224,230,.28) 70%, transparent); }

/* Hero: brushed metal strokes + glow behind the mark */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  -webkit-mask-image: radial-gradient(ellipse at 75% 45%, #000 0%, transparent 65%);
          mask-image: radial-gradient(ellipse at 75% 45%, #000 0%, transparent 65%);
}
.hero-grid { position: relative; z-index: 1; }
.hero-logo { width: min(300px, 62vw); filter: drop-shadow(0 0 60px rgba(255,255,255,.10)) drop-shadow(0 0 2px rgba(255,255,255,.25)); }

/* Slow sheen across the hero headline */
.hero h1 .chrome-text { background-size: 100% 220%; animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 0 0; } to { background-position: 0 100%; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .chrome-text { animation: none; } }

/* Cards: machined top edge, steel border on hover */
.card { background: linear-gradient(180deg, #111215, #0b0c0e); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 40px -24px rgba(0,0,0,.8); transition: border-color .2s ease, transform .2s ease; }
a.card:hover, .grid .card:hover { border-color: #3c4048; }
.card .num { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: #b4b8bf; }
.eyebrow::before { content: ''; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: linear-gradient(90deg, transparent, #c8ccd2); }

/* ── The Rebuild: pinned phase number, copy scrolls past ─── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rebuild-seq { padding: 120px 0; }
.rs-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
.rs-sticky { position: sticky; top: 18vh; height: 64vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.rs-num { font-family: var(--head); font-size: clamp(7rem, 17vw, 15rem); line-height: .85; letter-spacing: -.02em; transition: opacity .35s ease, transform .35s ease; }
.rs-num.swap { opacity: 0; transform: translateY(14px); }
.rs-track { width: min(260px, 70%); height: 1px; background: #2c2f35; position: relative; overflow: hidden; }
.rs-track span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(.25); background: linear-gradient(90deg, #fff, #8a8f97); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.rs-steps { padding: 6vh 0 10vh; }
.rs-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s ease; }
.rs-step.active { opacity: 1; }
.rs-kicker { font-family: var(--head); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: #b4b8bf; }
.rs-title { font-family: var(--head); font-size: clamp(2rem, 4.4vw, 3.6rem); text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 18px; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rs-step p { color: var(--muted); font-size: 1.1rem; max-width: 460px; margin: 0; }
@media (max-width: 860px) {
  .rs-grid { grid-template-columns: 1fr; gap: 0; }
  .rs-sticky { top: 68px; height: auto; padding: 14px 0; background: linear-gradient(180deg, var(--bg) 70%, transparent); z-index: 2; flex-direction: row; align-items: center; }
  .rs-num { font-size: 4.2rem; }
  .rs-step { min-height: 58vh; }
}
@media (prefers-reduced-motion: reduce) { .rs-step { opacity: 1; } .rs-sticky { position: static; } }

/* Hero photo (optional): full-bleed monochrome image behind the hero copy */
.hero.has-photo { min-height: 88vh; display: flex; align-items: center; }
.hero.has-photo > .wrap { width: 100%; position: relative; z-index: 1; }
.hero.has-photo .hero-logo { display: none; }
.hero.has-photo .hero-grid { grid-template-columns: 1fr; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center right; filter: grayscale(1) contrast(1.1) brightness(.75); }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,6,.96) 0%, rgba(5,5,6,.7) 45%, rgba(5,5,6,.15) 100%), linear-gradient(0deg, var(--bg), transparent 30%); }

/* ── Site motion ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.card { position: relative; overflow: hidden; transform-style: preserve-3d; }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.09), transparent 60%); }
.card:hover::after { opacity: 1; }
.site-header { transition: background .3s ease; }
.site-header.scrolled { background: rgba(5,5,6,.96); }
.site-header .wrap { transition: min-height .3s ease; }
.site-header.scrolled .wrap { min-height: 56px; }
.btn-chrome { position: relative; overflow: hidden; }
.btn-chrome::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transition: left .7s ease; }
.btn-chrome:hover::after { left: 130%; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-chrome::after { display: none; }
}

/* ═══ VITAL SIGNS — brand system v3 ═════════════════════════════
   Pulse red is the one accent. Chrome stays for the logo only.
   Headlines: heavy Archivo. Spec labels: JetBrains Mono. Body: Inter. */
:root {
  --pulse: #ff3b47;
  --pulse-dim: rgba(255, 59, 71, .16);
  --head: 'Archivo', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --brand: 'Michroma', 'Inter', sans-serif;
}
h1, h2, h3, .chrome { font-family: var(--head); font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; text-transform: none; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .98; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.04; }
h3 { font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.005em; }
.chrome-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; animation: none !important; }
.accent, .chrome-text .accent { color: var(--pulse); }
.muted-head { color: #8b9098; }
.brand span { font-family: var(--brand); }

.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; color: var(--pulse); }
.eyebrow::before { background: var(--pulse); width: 18px; }
.card .num, .rs-kicker, .rb-num { font-family: var(--mono); background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--pulse); letter-spacing: .14em; }

.btn { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.btn-chrome { background: var(--pulse); color: #0b0b0c; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -10px rgba(255,59,71,.55); }
.btn-chrome:hover { color: #0b0b0c; box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 14px 40px -10px rgba(255,59,71,.75); }
.nav a.btn-chrome, .nav a.btn-chrome:hover { color: #0b0b0c; }
.btn-ghost:hover { border-color: var(--pulse); }
.daytabs button[aria-pressed="true"], .film-switch button[aria-pressed="true"] { background: var(--pulse); color: #0b0b0c; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--pulse); }
.pill-core { border-color: var(--pulse); color: #fff; }
.ticks li::before { border-color: var(--pulse); }
.rs-num { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; font-weight: 900; font-stretch: 125%; }
.rs-title { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; text-transform: none; }
.rs-track span, .rb-dot.active, .hud-bar { background: var(--pulse); }
.price { font-family: var(--head); font-weight: 900; }
.kpi .v { font-family: var(--head); font-weight: 800; }
.stat, .timer .clock { font-family: var(--head); font-weight: 800; font-variant-numeric: tabular-nums; }
th { font-family: var(--mono); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline-color: var(--pulse); }

/* Spec chips (mono labels, like readouts) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #b8bcc3; border: 1px solid #2a2d33; border-radius: 999px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 8px; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pulse); box-shadow: 0 0 8px var(--pulse); }

/* ── Heartbeat motif ─────────────────────────────────────────
   Section dividers become a faint ECG line with a red pulse
   sweeping along it, like current through a trace. */
section + section::before, footer.site-footer::before {
  height: 28px; top: -14px; opacity: .9;
  background: linear-gradient(90deg, transparent 0, rgba(255,59,71,.0) 35%, var(--pulse) 50%, rgba(255,59,71,0) 65%, transparent 100%), rgba(160,165,175,.22);
  background-size: 300% 100%, 100% 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 H250 L262 14 L270 4 L280 25 L290 1 L300 22 L308 14 H600' fill='none' stroke='%23000' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 H250 L262 14 L270 4 L280 25 L290 1 L300 22 L308 14 H600' fill='none' stroke='%23000' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  animation: trace 4.5s linear infinite;
}
@keyframes trace { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { section + section::before, footer.site-footer::before { animation: none; } }

/* ── Vital signs hero ───────────────────────────────────── */
.vs-hero { min-height: 86vh; display: flex; align-items: center; }
.vs-hero > .wrap { width: 100%; position: relative; z-index: 1; }
.vs-hero::before { background: radial-gradient(closest-side, rgba(255,59,71,.10), transparent 70%); inset: -30% -20% auto auto; }
.ecg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 300px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 50%, #000 64%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, transparent 50%, #000 64%, #000 100%); }
.ecg path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg-base { stroke: rgba(160,165,175,.13); stroke-width: 1.4; }
.ecg-live { stroke: var(--pulse); stroke-width: 2.2; stroke-dasharray: 90 910; animation: ecg 3.2s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.hero-mark { position: relative; justify-self: center; display: grid; place-items: center; }
.hero-logo { animation: beat 1.05s ease-in-out infinite; transform-origin: 50% 55%; }
@keyframes beat { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255,59,71,0)); transform: scale(1); } 12% { filter: drop-shadow(0 0 28px rgba(255,59,71,.45)); transform: scale(1.025); } 24% { transform: scale(1); } 34% { filter: drop-shadow(0 0 18px rgba(255,59,71,.3)); transform: scale(1.012); } }
.readout { position: absolute; bottom: -8px; right: -6px; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; color: #c6c9ce; border: 1px solid #2a2d33; background: rgba(5,5,6,.75); backdrop-filter: blur(6px); border-radius: 8px; padding: 7px 11px; display: flex; align-items: center; gap: 8px; }
.readout .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pulse); animation: blip 1.05s infinite; }
@keyframes blip { 0%, 100% { opacity: .35; } 12% { opacity: 1; box-shadow: 0 0 10px var(--pulse); } }
@media (max-width: 860px) { .ecg { top: auto; bottom: 0; transform: none; height: 160px; -webkit-mask-image: none; mask-image: none; } .vs-hero { min-height: auto; padding-top: 48px; } .readout { right: 0; } }
@media (prefers-reduced-motion: reduce) { .ecg-live, .hero-logo, .readout .dot { animation: none; } .ecg-live { stroke-dasharray: none; opacity: .5; } }

/* ── Pillars ─────────────────────────────────────────────── */
.pillar { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.pillar h3 { margin: 4px 0 8px; }
.p-ic { width: 44px; height: 44px; margin-bottom: 18px; fill: none; stroke: var(--pulse); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-ic .fill { fill: var(--pulse); stroke: none; }
.pillar:hover { border-color: rgba(255,59,71,.45); }

/* ── Portal preview (bento) ──────────────────────────────── */
.bento { display: grid; gap: 14px; margin-top: 40px; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); }
.b-card { background: linear-gradient(180deg, #111215, #0a0b0d); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.b-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.b-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #9ba0a8; }
.b-val { font-family: var(--head); font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.b-foot { margin-top: auto; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: #8b9098; text-transform: uppercase; }
.b-macros { grid-column: span 3; }
.b-hr { grid-column: span 3; }
.b-session { grid-column: span 2; }
.b-cycle { grid-column: span 2; }
.b-progress { grid-column: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-macros, .b-hr { grid-column: span 2; } .b-session, .b-cycle, .b-progress { grid-column: span 2; } }
@media (min-width: 600px) and (max-width: 960px) { .b-session, .b-cycle { grid-column: span 1; } }

.rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ring { position: relative; display: grid; place-items: center; }
.ring svg { width: 100%; max-width: 132px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .trk { stroke: #1d1f24; }
.ring .bar { stroke: var(--pulse); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1); }
.ring:nth-child(2) .bar { stroke: #ff7a83; } .ring:nth-child(3) .bar { stroke: #e8eaed; }
.in-view .ring .bar { stroke-dashoffset: calc(314.16 * (1 - var(--p))); }
.ring > div { position: absolute; text-align: center; }
.ring b { font-family: var(--head); font-weight: 800; font-size: 1.25rem; display: block; font-variant-numeric: tabular-nums; }
.ring small { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #8b9098; }

.hr-trace { width: 100%; height: 90px; }
.hr-base { fill: none; stroke: rgba(255,59,71,.22); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hr-line { fill: none; stroke: var(--pulse); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 180 820; stroke-dashoffset: 1000; filter: drop-shadow(0 0 6px rgba(255,59,71,.6)); }
.in-view .hr-line { animation: ecg 2.2s linear infinite; }

.checks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks-list li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; color: #c9ccd1; padding-left: 26px; position: relative; }
.checks-list li span:last-child { font-family: var(--mono); font-size: .76rem; color: #8b9098; white-space: nowrap; }
.checks-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #3a3d44; }
.checks-list li.done { color: #7d828a; }
.checks-list li.done::before { background: var(--pulse); border-color: var(--pulse); }
.checks-list li.now::before { border-color: var(--pulse); box-shadow: 0 0 0 4px var(--pulse-dim); }

.cycle-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.cycle-ring { width: 120px; transform: rotate(-90deg); }
.cycle-ring .ph { fill: none; stroke-width: 10; stroke-dasharray: calc(301.6 * var(--l) - 4) 301.6; stroke-dashoffset: calc(-301.6 * var(--a)); }
.ph1 { stroke: #ff3b47; } .ph2 { stroke: #5a2a2f; } .ph3 { stroke: #ff8c94; } .ph4 { stroke: #2a2d33; }
.cycle-ring .marker { fill: #fff; transform-origin: 60px 60px; transform: rotate(var(--day-rot, 180deg)); filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
.cycle-wrap b { font-family: var(--head); font-weight: 800; font-size: 1.15rem; display: block; margin-bottom: 4px; }
.cycle-wrap small { color: #9ba0a8; font-size: .86rem; line-height: 1.45; display: block; }

.weeks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.weeks i { height: 8px; border-radius: 2px; background: #1d1f24; }
.weeks i.on { background: var(--pulse); }
.spark-mini { width: 100%; height: 56px; }
.spark-mini path { fill: none; stroke: #e8eaed; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2s ease; }
.in-view .spark-mini path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .ring .bar, .spark-mini path { transition: none; } .in-view .hr-line { animation: none; stroke-dasharray: none; } }

/* ═══ Inner pages ═════════════════════════════════════════ */
.vs-page { position: relative; overflow: hidden; padding: 96px 0 72px; min-height: 62vh; display: flex; align-items: center; }
.vs-page > .wrap { position: relative; z-index: 1; width: 100%; }
.vs-page .ecg { top: 58%; }
.vs-page .ecg-live { filter: drop-shadow(0 0 6px rgba(255,59,71,.7)); }
.vs-page h1 { max-width: 900px; }
.vs-page .lead { margin-top: 18px; }
.vs-page::after { content: ''; position: absolute; inset: auto -20% -40% auto; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(255,59,71,.08), transparent 70%); pointer-events: none; }
@media (max-width: 860px) { .vs-page { min-height: auto; padding: 64px 0 56px; } .vs-page .ecg { top: auto; bottom: 0; transform: none; height: 140px; -webkit-mask-image: none; mask-image: none; } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

/* Leccy-style numbered rows */
.row-list { border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr) 40px; gap: 20px; align-items: center; padding: 26px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s ease, padding .25s ease; }
.row-item .n { font-family: var(--mono); color: var(--pulse); font-size: .8rem; letter-spacing: .14em; }
.row-item h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.row-item p { margin: 0; color: var(--muted); }
.row-item .go { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #2c2f35; display: grid; place-items: center; color: var(--muted); transition: all .25s ease; }
a.row-item:hover { background: linear-gradient(90deg, rgba(255,59,71,.06), transparent); padding-left: 14px; }
a.row-item:hover .go { border-color: var(--pulse); color: var(--pulse); }
@media (max-width: 760px) { .row-item { grid-template-columns: 44px 1fr; } .row-item p { grid-column: 2; } .row-item .go { display: none; } }

/* Phase cards with effort meters */
.phase-card .big { font-family: var(--head); font-weight: 900; font-stretch: 125%; font-size: 4.2rem; line-height: .9; color: #fff; display: block; margin-bottom: 14px; }
.phase-card .wk { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--pulse); text-transform: uppercase; }
.meter { margin-top: 18px; }
.meter .lbl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: #8b9098; text-transform: uppercase; margin-bottom: 8px; }
.meter .bar { height: 6px; background: #1d1f24; border-radius: 3px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8c94, var(--pulse)); border-radius: 3px; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.in-view .meter .bar i { width: var(--v); }

/* Tempo, RPE gauge, big readouts */
.tempo { display: grid; grid-template-columns: 3fr 1fr 1fr .25fr; gap: 4px; margin-top: 4px; }
.tempo span { height: 34px; border-radius: 6px; background: #1d1f24; position: relative; overflow: hidden; font-family: var(--mono); font-size: .66rem; color: #8b9098; display: flex; align-items: flex-end; padding: 6px; letter-spacing: .08em; }
.tempo span::before { content: ''; position: absolute; inset: 0; background: var(--pulse-dim); transform: scaleX(0); transform-origin: left; }
.in-view .tempo span::before { animation: tempo 5.25s linear infinite; }
.in-view .tempo span:nth-child(2)::before { animation-delay: 3s; } .in-view .tempo span:nth-child(3)::before { animation-delay: 4s; } .in-view .tempo span:nth-child(4)::before { animation-delay: 5s; }
@keyframes tempo { 0% { transform: scaleX(0); } 10% { transform: scaleX(1); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.tempo-key { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: #8b9098; text-transform: uppercase; }
.gauge { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.gauge i { height: 26px; border-radius: 4px; background: #1d1f24; display: grid; place-items: end center; font-style: normal; font-family: var(--mono); font-size: .62rem; color: #6b7079; padding-bottom: 3px; }
.gauge i.on { background: linear-gradient(180deg, #ff8c94, var(--pulse)); color: #0b0b0c; }
.gauge i.mark { outline: 2px solid #fff; outline-offset: 2px; }
.readout-big { font-family: var(--head); font-weight: 900; font-stretch: 120%; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: #fff; }
.readout-big .accent { color: var(--pulse); }
.mini-timer { font-family: var(--head); font-weight: 900; font-size: clamp(3rem, 7vw, 4.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.mini-timer.rest { color: #8b9098; }

/* Plate */
.plate { width: 100%; max-width: 210px; margin: 0 auto; transform: rotate(-90deg); }
.plate circle { fill: none; stroke-width: 26; }
.plate-key { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.plate-key span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; background: var(--c); vertical-align: middle; }

/* Locked preview */
.lock-wrap { position: relative; }
.lock-wrap .blur { filter: blur(5px); opacity: .6; pointer-events: none; user-select: none; }
.lock-badge { position: absolute; inset: 0; display: grid; place-items: center; }
.lock-badge span { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--pulse); color: #fff; background: rgba(5,5,6,.8); padding: 9px 14px; border-radius: 999px; }

/* Supplement stack */
.stack-card .tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid #3a3d44; color: #b8bcc3; align-self: flex-start; }
.stack-card .tag.core { border-color: var(--pulse); color: #fff; background: var(--pulse-dim); }
.stack-card { display: flex; flex-direction: column; gap: 10px; }
.stack-card h3 { margin: 6px 0 0; font-size: 1.3rem; }
.dose { font-family: var(--mono); font-size: 1rem; color: #fff; border-top: 1px dashed #2c2f35; padding-top: 12px; margin-top: auto; }
.dose small { display: block; color: #8b9098; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.skip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.skip-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.skip-list b { font-family: var(--head); font-weight: 800; font-size: 1.15rem; text-decoration: line-through; text-decoration-color: var(--pulse); text-decoration-thickness: 2px; color: #c9ccd1; }
.skip-list span { color: var(--muted); text-align: right; }

/* About */
.quote-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; background: linear-gradient(160deg, #1a0d0f, #0b0b0d 60%); border-color: rgba(255,59,71,.3); }
.quote-card q { font-family: var(--head); font-weight: 900; font-stretch: 115%; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; quotes: none; color: #fff; }
.fto-word { font-family: var(--head); font-weight: 900; font-stretch: 125%; font-size: clamp(3rem, 8vw, 6rem); line-height: .9; color: #fff; }
.fto-word .accent { color: var(--pulse); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 14px; align-content: start; }
div.row-item .go { visibility: hidden; }
@media (max-width: 860px) { .vs-page { padding-bottom: 150px; } .vs-page .ecg { opacity: .7; } }
.fto-word { font-size: clamp(2.2rem, 3.4vw, 3.3rem); font-stretch: 100%; overflow-wrap: anywhere; }

/* ═══ Results ═════════════════════════════════════════════ */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 18px; }
.ba { padding: 0; overflow: hidden; margin: 0; }
.ba-frame { position: relative; aspect-ratio: 3 / 4; background: #111; user-select: none; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--x)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: var(--pulse); box-shadow: 0 0 14px rgba(255,59,71,.8); transform: translateX(-1px); pointer-events: none; }
.ba-handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--pulse); color: #0b0b0c; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.ba-frame input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 12px; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(5,5,6,.75); color: #fff; pointer-events: none; }
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; border: 1px solid var(--pulse); }
.ba figcaption { padding: 18px 20px 20px; display: grid; gap: 8px; }
.ba figcaption b { font-family: var(--head); font-weight: 800; font-size: 1.15rem; }
.ba figcaption q { color: var(--muted); }
.ba figcaption .chips { margin: 4px 0 0; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.review { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.review .stars { color: var(--pulse); letter-spacing: 3px; }
.review p { margin: 0; font-size: 1.02rem; color: #e3e5e8; }
.review footer { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.review footer span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8b9098; }

/* ═══ Extra umph ══════════════════════════════════════════ */
/* Giant kinetic word band */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; margin: 20px 0; }
.marquee-in { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--head); font-weight: 900; font-stretch: 125%; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #3a3d44; white-space: nowrap; }
.marquee span:nth-child(4n+3) { color: var(--pulse); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Scroll progress: a pulse line under the header */
.scroll-pulse { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, transparent, var(--pulse)); z-index: 60; pointer-events: none; box-shadow: 0 0 10px rgba(255,59,71,.7); }

/* Cursor spotlight goes pulse red, and reaches the bento cards */
.b-card { position: relative; overflow: hidden; }
.card::after, .b-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255,59,71,.12), transparent 60%); }
.card:hover::after, .b-card:hover::after { opacity: 1; }
.ba::after { display: none; }

@media (prefers-reduced-motion: reduce) { .marquee-in { animation: none; } }

/* Results invitation card (shows only until the first real result) */
.invite { align-items: center; }
.invite .btn { margin-top: 22px; }
.invite-card { padding: 0; overflow: hidden; max-width: 420px; justify-self: end; width: 100%; }
.invite-frame { --x: 50%; animation: inv-sweep 6s ease-in-out infinite; }
.inv-side { position: absolute; inset: 0; display: grid; place-items: center; }
.inv-side span { font-family: var(--head); font-weight: 900; font-stretch: 125%; font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: .02em; }
.inv-b { background: repeating-linear-gradient(135deg, #101114 0 14px, #0d0e10 14px 28px); }
.inv-b span { color: transparent; -webkit-text-stroke: 1px #3a3d44; }
.inv-a { background: radial-gradient(120% 80% at 70% 40%, rgba(255,59,71,.28), #140a0c 70%); clip-path: inset(0 0 0 var(--x)); }
.inv-a span { color: var(--pulse); }
.inv-ecg { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 50px; }
.inv-ecg path { fill: none; stroke: var(--pulse); stroke-width: 2; stroke-dasharray: 120 880; animation: ecg 2.4s linear infinite; filter: drop-shadow(0 0 4px rgba(255,59,71,.8)); }
.inv-foot { padding: 16px 20px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.inv-foot b { font-family: var(--head); font-weight: 800; color: #6b7079; }
.inv-foot span { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #6b7079; }
@property --x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@keyframes inv-sweep { 0%, 100% { --x: 72%; } 50% { --x: 28%; } }
@media (max-width: 860px) { .invite-card { justify-self: stretch; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .invite-frame, .inv-ecg path { animation: none; } }
.inv-ecg { pointer-events: none; }

/* ═══ Signature moments ═══════════════════════════════════ */
/* Flatline intro (first visit only) */
.intro { position: fixed; inset: 0; z-index: 200; background: #050506; display: none; place-items: center; transition: opacity .45s ease; cursor: pointer; }
.intro.on { display: grid; }
.intro.out { opacity: 0; pointer-events: none; }
.intro svg { position: absolute; left: 0; top: 50%; width: 100%; height: 120px; transform: translateY(-50%); }
.intro path { fill: none; stroke: var(--pulse); stroke-width: 2.5; stroke-dasharray: 1000; stroke-dashoffset: 1000; filter: drop-shadow(0 0 8px rgba(255,59,71,.9)); animation: intro-draw .9s cubic-bezier(.6,0,.4,1) forwards; }
.intro img { position: relative; width: min(130px, 28vw); opacity: 0; transform: scale(.85); filter: drop-shadow(0 0 30px rgba(255,59,71,.45)); animation: intro-logo .6s .75s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-logo { 0% { opacity: 0; transform: scale(.85); } 40% { opacity: 1; filter: drop-shadow(0 0 60px rgba(255,59,71,.9)) brightness(1.6); } 100% { opacity: 1; transform: scale(1); } }

/* Climbing heart rate */
.hr-pill { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: rgba(8,8,10,.86); border: 1px solid #2a2d33; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--mono); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s, border-color .3s, box-shadow .3s; pointer-events: none; }
.hr-pill.show { opacity: 1; transform: none; }
.hr-pill svg { width: 46px; height: 20px; }
.hr-pill path { fill: none; stroke: var(--pulse); stroke-width: 2; stroke-dasharray: 260 740; animation: ecg 1.5s linear infinite; }
.hr-pill b { font-size: 1.05rem; color: #fff; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.hr-pill small { font-size: .62rem; letter-spacing: .14em; color: #8b9098; }
.hr-pill.peak { border-color: var(--pulse); box-shadow: 0 0 24px rgba(255,59,71,.45); }
.hr-pill.peak b { color: var(--pulse); }
@media (max-width: 600px) { .hr-pill { right: 12px; bottom: 12px; padding: 7px 11px 7px 8px; } .hr-pill svg { width: 34px; } }

/* Free calorie taste */
.taste-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .taste-grid { grid-template-columns: 1fr; } }
.taste-form { display: grid; gap: 4px; align-content: start; }
.taste-form .field { margin-bottom: 12px; }
.taste-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 999px; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #9ba0a8; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--pulse); color: #0b0b0c; font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.taste-form .btn { margin-top: 6px; width: 100%; }
.taste-err { color: #ff8c94; margin: 8px 0 0; }
.taste-out { justify-content: space-between; }
.taste-out [data-t-kcal] { font-variant-numeric: tabular-nums; }
.taste-out:not(.has-result) .readout-big, .taste-out:not(.has-result) .rings { opacity: .45; }
.taste-out .btn { align-self: flex-start; }

/* Hidden origin mode */
.fto-egg { position: fixed; inset: 0; z-index: 210; background: #050506; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; opacity: 0; transition: opacity .4s ease; cursor: pointer; padding: 24px; }
.fto-egg.on { opacity: 1; }
.fto-egg b { grid-area: 2 / 1; font-family: var(--head); font-weight: 900; font-stretch: 125%; font-size: clamp(3rem, 11vw, 9rem); line-height: .9; text-transform: uppercase; transition: opacity .5s ease, transform .5s ease; }
.fto-egg .egg-k { grid-area: 1 / 1; font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #8b9098; }
.egg-a { color: var(--pulse); text-shadow: 0 0 40px rgba(255,59,71,.5); }
.egg-b { color: #fff; opacity: 0; transform: translateY(14px); }
.fto-egg.swap .egg-a { opacity: 0; transform: translateY(-14px); }
.fto-egg.swap .egg-b { opacity: 1; transform: none; }
.intro path { animation: intro-draw .9s cubic-bezier(.6,0,.4,1) forwards, intro-dim .5s .85s ease forwards; }
@keyframes intro-dim { to { opacity: .18; } }
.fto-egg .egg-k2 { grid-area: 1 / 1; opacity: 0; transition: opacity .5s; }
.fto-egg.swap .egg-k:not(.egg-k2) { opacity: 0; transition: opacity .5s; }
.fto-egg.swap .egg-k2 { opacity: 1; }
.egg-tap { cursor: default; -webkit-tap-highlight-color: transparent; user-select: none; }
.egg-hint { display: block; margin-top: 6px; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #4a4e56; transition: color .3s; }
.egg-tap:hover .egg-hint { color: var(--pulse); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .88rem; }
.auth-links a { color: #c9ccd1; }
.auth-links a:hover { color: #fff; }
.auth-card .field small { display: block; margin-top: 6px; font-size: .78rem; }
.head-login { display: none; margin-left: auto; margin-right: 10px; }
.nav .nav-login { padding: 8px 16px; }
@media (max-width: 860px) {
  .head-login { display: inline-flex; }
  .nav .nav-login { display: none; }
}
@media (max-width: 860px) { .head-login + .menu-btn { margin-left: 0; } }
