/* ============ Tokens ============ */
:root {
  --bg: #f5f2ec;
  --bg-alt: #ece7de;
  --surface: #ffffff;
  --surface-2: #f8f6f1;
  --text: #15130f;
  --muted: #6b665d;
  --line: #ddd6ca;
  --accent: #d93a17;
  --accent-ink: #ffffff;
  --accent-soft: #fde2db;
  --accent-2: #2f4bff;
  --accent-2-soft: #e1e6ff;
  --ok: #138a52;
  --warn: #c27a00;
  --danger: #d0312d;
  --note-1: #ffe27a; --note-2: #ffb3a1; --note-3: #b8e3c9; --note-4: #bcc8ff; --note-5: #f5c6ef; --note-6: #c9f0ff;
  --shadow: 0 1px 2px rgb(20 18 15 / .05), 0 8px 24px -8px rgb(20 18 15 / .12);
  --shadow-lg: 0 2px 4px rgb(20 18 15 / .06), 0 24px 48px -16px rgb(20 18 15 / .22);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #080808;
  --bg-alt: #0f0f0f;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --text: #f4f2ee;
  --muted: #9b978f;
  --line: #262626;
  --accent: #f04a24;
  --accent-ink: #0a0a0a;
  --accent-soft: #2e130c;
  --accent-2: #8a98ff;
  --accent-2-soft: #1d2140;
  --ok: #3ccf8e;
  --warn: #f2b33d;
  --danger: #ff5e57;
  --note-1: #5c4f12; --note-2: #5a2a20; --note-3: #1f4a33; --note-4: #283166; --note-5: #4f2648; --note-6: #1c4252;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -8px rgb(0 0 0 / .6);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 24px 48px -16px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }
mark { background: var(--accent-soft); color: inherit; padding: 0 .15em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.center.btn-row, .btn-row.center, .chip-row.center { justify-content: center; }
.hl { color: var(--accent); }

.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-fill, .ico.ico-fill { fill: currentColor; stroke: none; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; }
.brand-text b { color: var(--accent); font-weight: 700; }
.logo-mark { width: 34px; height: 34px; }
.logo-bg { fill: var(--text); }
.logo-loop { fill: none; stroke: var(--bg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.logo-dot { fill: var(--accent); }
.brand:hover .logo-mark { animation: spin 1.2s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.header-actions { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .2s; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn .ico { width: 18px; height: 18px; }
:root[data-theme="dark"] .ico-sun, :root:not([data-theme="dark"]) .ico-moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle span + span { margin-top: -10px; transform: translateY(6px); }
.nav-toggle { gap: 0; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; align-content: center; gap: 5px; }
  .nav-toggle span + span { margin-top: 0; transform: none; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 14px; font-size: 1.05rem; }
  .header-actions { margin-left: auto; }
}

/* ============ Buttons, chips, fields ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -10px var(--accent); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.chip:hover { border-color: var(--text); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .9rem; }
.chip-radio input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; }
.field > span, .field legend { font-size: .88rem; font-weight: 500; color: var(--muted); padding: 0; margin-bottom: 6px; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; margin: 0; }
.field.inline > span { margin: 0; }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field.inline input, .field.inline select { width: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-2-soft); }
.form-error { color: var(--danger); font-weight: 500; margin-top: 12px; }

.range { display: block; margin: 18px 0 8px; }
.range > span { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.range output { font-family: var(--font-mono); color: var(--text); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.badge { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-2-soft); color: var(--accent-2); }

/* ============ Typography blocks ============ */
.eyebrow { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section.tight { padding-top: 24px; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 820px; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
.section-lead, .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 720px; }
.sub-title { font-size: 1.5rem; margin: 64px 0 24px; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 1.15em; color: var(--text); }
.prose img { border-radius: var(--radius); }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; }
.prose pre code { border: 0; padding: 0; background: none; }
.big-prose { font-size: clamp(1.08rem, 1.5vw, 1.25rem); }
.pull { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem) !important; line-height: 1.25; letter-spacing: -.02em; border-left-width: 6px !important; margin: 1.4em 0 !important; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow .ico { transition: transform .2s var(--ease); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ============ Reveal animation ============ */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ============ Hero ============ */
.hero { position: relative; padding: clamp(64px, 10vw, 128px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(50% 40% at 0% 80%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; padding-bottom: 80px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title { font-size: clamp(3.2rem, 11vw, 9rem); font-weight: 700; line-height: .92; letter-spacing: -.055em; margin: 24px 0 28px; }
.hero-accent { color: var(--accent); }
.hero-dot { color: var(--accent-2); }
.strike-word { position: relative; display: inline-block; }
.strike-word::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: .09em; background: var(--text);
  transform: scaleX(0); transform-origin: left; animation: strike 1s 1.4s var(--ease) forwards, unstrike .9s 3.6s var(--ease) forwards;
}
@keyframes strike { to { transform: scaleX(1); } }
@keyframes unstrike { from { transform: scaleX(1); transform-origin: right; } to { transform: scaleX(0); transform-origin: right; } }
.hero-lead { font-size: clamp(1.1rem, 1.9vw, 1.4rem); max-width: 760px; color: var(--muted); margin-bottom: 36px; }
.hero-lead em { color: var(--text); font-style: normal; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin: 64px 0 0; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.hero-stats div:last-child dt { color: var(--accent); }

.hero-notes { position: absolute; inset: 0; pointer-events: none; }
.note {
  position: absolute; padding: 14px 16px; width: 130px; min-height: 92px; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  border-radius: 4px; box-shadow: var(--shadow); color: var(--text); animation: float 9s ease-in-out infinite;
}
.n1 { background: var(--note-1); right: 6%; top: 12%; --r: 6deg; }
.n2 { background: var(--note-2); right: 18%; top: 34%; --r: -5deg; animation-delay: -2s; }
.n3 { background: var(--note-3); right: 4%; top: 52%; --r: 4deg; animation-delay: -4s; }
.n4 { background: var(--note-4); right: 24%; top: 6%; --r: -8deg; animation-delay: -1s; }
.n5 { background: var(--note-5); right: 30%; top: 60%; --r: 3deg; animation-delay: -6s; opacity: .8; }
.n6 { background: var(--note-6); right: 12%; top: 72%; --r: -3deg; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) * -1)); } }
@media (max-width: 1100px) { .hero-notes { opacity: .25; } }
@media (max-width: 700px) { .hero-notes { display: none; } }

.ticker { border-block: 1px solid var(--line); background: var(--text); color: var(--bg); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker 50s linear infinite; padding: 14px 0; }
.ticker span { font-family: var(--font-mono); font-size: .88rem; padding: 0 28px; position: relative; }
.ticker span::after { content: "✕"; position: absolute; right: -6px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ Manifesto ============ */
.manifesto .section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 24px; max-width: none; }
.manifesto .section-head .eyebrow { grid-column: 1 / -1; }
.manifesto .section-title { margin: 0; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.manifesto-intro { font-size: clamp(1.1rem, 2vw, 1.45rem); max-width: 780px; color: var(--muted); margin-bottom: 28px; }
.manifesto-outro { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 820px; margin: 36px 0 24px; }
.values { border-top: 2px solid var(--text); }
.value-row { border-bottom: 1px solid var(--line); }
.value-head {
  display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 16px;
  width: 100%; padding: 26px 4px; background: none; border: 0; text-align: left; cursor: pointer;
}
.value-num { font-family: var(--font-mono); color: var(--muted); font-size: .9rem; }
.value-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .45em; font-family: var(--font-display); font-size: clamp(1.45rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.value-left { color: var(--text); transition: color .3s; }
.value-over { font-family: var(--font-mono); font-size: .4em; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; align-self: center; padding: 3px 10px; border: 1.5px solid var(--accent); border-radius: 999px; }
.value-right { color: var(--muted); font-weight: 400; }
.value-head:hover .value-left { color: var(--accent); }
.value-plus { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s; }
.value-plus::before, .value-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.value-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.value-head[aria-expanded="true"] .value-plus { transform: rotate(135deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.value-body { padding: 0 4px 32px 72px; animation: drop .5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.value-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.value-cols h4 { font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.value-broken { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.value-broken h4 { color: var(--accent); }
.value-balance { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: .85rem; font-weight: 600; }
.bal-beam { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) 0 72%, var(--line) 72%); transform: rotate(-2deg); transform-origin: center; animation: tilt 1s var(--ease); }
@keyframes tilt { from { transform: rotate(0); } }
.bal-left { color: var(--accent); } .bal-right { color: var(--muted); font-weight: 400; }
.signatories { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; background: var(--surface); }
.signatories summary { cursor: pointer; font-weight: 600; }
.signatories p { margin: 12px 0 0; }
.hint { margin-top: 16px; font-size: .9rem; }
@media (max-width: 700px) {
  .manifesto .section-head { grid-template-columns: 1fr; }
  .lang-switch { margin-top: 16px; }
  .value-head { grid-template-columns: 1fr 36px; }
  .value-num { display: none; }
  .value-body { padding-left: 4px; }
  .value-cols { grid-template-columns: 1fr; }
}

/* ============ Value chart ============ */
.pillars { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.pillars li { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.pillars b { color: var(--accent); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.chart-head h3 { margin: 0; font-size: 1.2rem; }
.chart { width: 100%; height: auto; display: block; overflow: visible; margin: 8px 0; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font: 11px var(--font-mono); }
.line-waterfall, .line-agile { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; transition: d .6s var(--ease), opacity .3s; }
.line-waterfall { stroke: var(--muted); stroke-dasharray: 6 6; }
.line-agile { stroke: var(--accent); }
.chart.only-agile .line-waterfall, .chart.only-waterfall .line-agile { opacity: .08; }
.legend { display: flex; gap: 18px; font-size: .85rem; }
.lg::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; border-radius: 2px; }
.lg-w::before { background: repeating-linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 9px); }
.lg-a::before { background: var(--accent); }

/* ============ Flip cards ============ */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.flip-grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.flip-card, .artifact { perspective: 1200px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; min-height: 230px; display: block; width: 100%; }
.flip-card.wide { min-height: 220px; }
.flip-inner { position: relative; display: block; height: 100%; min-height: inherit; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.flip-card.is-flipped .flip-inner, .artifact.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font-size: .98rem;
  transition: box-shadow .3s, border-color .3s;
}
.flip-back { transform: rotateY(180deg); background: var(--text); color: var(--bg); border-color: var(--text); }
.flip-card:hover .flip-front, .artifact:hover .flip-front { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.flip-num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); font-weight: 600; }
.flip-hint { margin-top: auto; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.flip-back .flip-hint { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.flip-big { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }

/* ============ Timeline ============ */
.timeline { list-style: none; margin: 0 0 40px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 0 40px; padding: 0 0 28px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 104px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--accent); }
.tl-year { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; padding-top: 2px; }
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.tl-card:hover { transform: translateX(6px); }
.tl-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.tl-card p { margin: 0; color: var(--muted); }
.decline .tl-item.is-decline::before { border-color: var(--danger); }
.decline .tl-item.is-decline .tl-year { color: var(--danger); }
.decline::before { background: linear-gradient(var(--ok), var(--accent) 40%, var(--danger)); }
@media (max-width: 700px) {
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 32px; }
  .tl-item::before { left: 1px; }
  .tl-year { font-size: 1.2rem; margin-bottom: 6px; }
}

/* ============ Scrum cycle ============ */
.cycle-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cycle { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto; }
.cycle-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 2; }
.ring-flow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 60 882; stroke-linecap: round; transform-origin: center; animation: orbit 6s linear infinite; }
.ring-inner { fill: var(--surface-2); stroke: var(--line); stroke-dasharray: 4 6; }
@keyframes orbit { to { transform: rotate(360deg); } }
.cycle-node {
  position: absolute; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.cycle-node:hover { transform: translate(-50%, -50%) scale(1.06); border-color: var(--accent); }
.cycle-node[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pos-top { left: 50%; top: 12.5%; }
.pos-right { left: 87.5%; top: 50%; }
.pos-bottom { left: 50%; top: 87.5%; }
.pos-left { left: 12.5%; top: 50%; }
.pos-center { left: 50%; top: 50%; font-size: 1.2rem; padding: 18px 26px; font-family: var(--font-display); }
.pos-corner { left: 84%; top: 14%; font-size: .78rem; border-style: dashed; font-weight: 500; }
.event-panels { min-height: 300px; }
.event-panel { animation: drop .45s var(--ease); }
.event-panel h3 { font-size: 1.7rem; }
.event-box { font-family: var(--font-mono); font-size: .88rem; }
.event-box span { background: var(--accent-2-soft); color: var(--accent-2); padding: 3px 8px; border-radius: 6px; margin-right: 6px; font-weight: 600; }
.anti { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; }
.anti strong { color: var(--accent); }
@media (max-width: 900px) { .cycle-wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cycle-node { font-size: .75rem; padding: 8px 10px; } .pos-center { font-size: 1rem; padding: 12px 18px; } .pos-corner { left: 80%; top: 6%; } }

.roles, .artifacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-card { padding: 26px; transition: transform .3s var(--ease); }
.role-card:hover { transform: translateY(-4px); }
.role-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.role-card h4 { font-size: 1.3rem; }
.is-not { font-size: .92rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin: 0; }
.is-not b { color: var(--danger); }
.artifact { min-height: 240px; }
.art-label { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.artifact b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; }
.artifact .flip-back .art-label { color: var(--accent); }
@media (max-width: 860px) { .roles, .artifacts { grid-template-columns: 1fr; } }

/* ============ Kanban intro / Little ============ */
.practices { counter-reset: p; list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 8px; }
.practices li { counter-increment: p; display: flex; gap: 14px; align-items: center; font-weight: 500; }
.practices li::before { content: counter(p); display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--text); color: var(--bg); font: 600 .8rem var(--font-mono); }
.littles h3 { font-size: 1.3rem; }
.littles-result { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-block: 1px solid var(--line); margin: 20px 0 16px; }
.littles-result strong { font-family: var(--font-display); font-size: 2.6rem; letter-spacing: -.03em; color: var(--accent); transition: color .3s; }
.wip-dots { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-bottom: 12px; }
.wip-dots i { width: 22px; height: 16px; border-radius: 3px; background: var(--note-1); box-shadow: var(--shadow); animation: pop .3s var(--ease); }
.wip-dots i.over { background: var(--note-2); }
@keyframes pop { from { transform: scale(0); } }

/* ============ Examples ============ */
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.example-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; transform-style: preserve-3d; }
.example-card h3 { font-size: 1.4rem; }
.example-card p { color: var(--muted); }
.example-card .lesson { color: var(--text); margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-weight: 500; }
.example-card .lesson::before { content: "→ "; color: var(--accent); }

/* ============ Myths ============ */
.myths { display: grid; gap: 12px; }
.myth { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: border-color .3s; }
.myth-q { font-weight: 600; font-size: 1.08rem; margin-bottom: 14px; }
.myth-n { font-family: var(--font-mono); color: var(--muted); font-size: .75rem; margin-right: 10px; font-weight: 400; }
.myth-actions { display: flex; gap: 8px; }
.myth-expl { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); animation: drop .4s var(--ease); }
.myth.is-right { border-color: var(--ok); }
.myth.is-wrong { border-color: var(--danger); }
.myth.is-right [data-verdict] { color: var(--ok); }
.myth.is-wrong [data-verdict] { color: var(--danger); }
.myth .chip.is-picked { background: var(--text); color: var(--bg); }
.myth.answered .chip { pointer-events: none; }
.score { display: inline-block; font-family: var(--font-mono); font-size: .9rem; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); margin-left: 6px; }

/* ============ CTA ============ */
.cta-band { padding-block: clamp(56px, 8vw, 96px); }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cta-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
a.cta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cta-card h3 { font-size: 1.35rem; margin-bottom: 18px; }
.cta-card .link-arrow { margin-top: auto; }
.cta-card.dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.mini-post { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mini-post:hover strong { color: var(--accent); }
.mini-post:last-of-type { margin-bottom: 16px; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* ============ Page hero ============ */
.page-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 90% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.page-title { font-size: clamp(2.4rem, 7vw, 5.4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; max-width: 1000px; margin-bottom: 24px; }
.not-found { min-height: 60vh; }

/* ============ Why page ============ */
.checks { display: grid; gap: 8px; margin-top: 24px; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.check:hover { border-color: var(--text); }
.check input { position: absolute; opacity: 0; }
.check-box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; margin-top: 1px; transition: all .2s; }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after { content: ""; width: 10px; height: 6px; border: solid var(--accent-ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible + .check-box { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.check:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.meter-card { position: sticky; top: 96px; text-align: center; }
.gauge { position: relative; width: 240px; max-width: 100%; margin: 8px auto 16px; }
.gauge svg { width: 100%; display: block; }
.gauge-track, .gauge-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge-track { stroke: var(--line); }
.gauge-fill { stroke: var(--ok); stroke-dasharray: 252; stroke-dashoffset: 252; transition: stroke-dashoffset .8s var(--ease), stroke .5s; }
.gauge-num { position: absolute; left: 0; right: 0; bottom: 4px; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; }
.gauge-of { position: absolute; left: 0; right: 0; bottom: -18px; font-size: .85rem; color: var(--muted); }
.meter-card h3 { margin-top: 32px; font-size: 1.5rem; }
.back-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.back-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.back-n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--accent); letter-spacing: -.04em; display: block; line-height: 1; margin-bottom: 14px; }
.back-card h3 { font-size: 1.25rem; }
.back-card p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .meter-card { position: static; } }

/* ============ Tools ============ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.tool-card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.tool-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.tool-card h3 { font-size: 1.6rem; }
.tool-card p:not(.eyebrow) { color: var(--muted); }
.tool-card .link-arrow { margin-top: auto; }
.tool-emoji { font-size: 2.6rem; margin-bottom: 14px; display: block; transition: transform .4s var(--ease); }
.tool-card:hover .tool-emoji { transform: scale(1.15) rotate(-8deg); }
.tool-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.tool-tabs a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.tool-tabs a:hover { border-color: var(--text); }
.tool-tabs a.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tool .page-hero { padding-bottom: 28px; }
.tool .page-title { font-size: clamp(2.2rem, 5.5vw, 4rem); }

/* Poker */
.lobby-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.lobby-grid h2 { font-size: 1.5rem; }
.lobby-join { border-left: 1px solid var(--line); padding-left: 40px; }
@media (max-width: 760px) { .lobby-grid { grid-template-columns: 1fr; } .lobby-join { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; } }
.room-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 20px; }
.room-id strong { font-family: var(--font-mono); font-size: 1.15rem; letter-spacing: .08em; }
.room-name { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.room-name input { width: 150px; padding: 6px 10px; }
.conn { font-size: .8rem; font-family: var(--font-mono); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.conn.is-live::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.story-field { display: block; margin: 24px 0; }
.story-field input { font-size: 1.2rem; font-family: var(--font-display); font-weight: 600; padding: 14px 18px; margin-top: 6px; }
.table {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; padding: 40px 24px; min-height: 220px;
  border-radius: 999px / 160px; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--ok) 22%, var(--surface)), color-mix(in srgb, var(--ok) 10%, var(--surface)));
  border: 1px solid var(--line); align-items: center;
}
@media (max-width: 640px) { .table { border-radius: var(--radius); padding: 24px 12px; gap: 14px; } }
.seat { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 84px; animation: pop .35s var(--ease); }
.seat-name { font-size: .82rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.is-you .seat-name { color: var(--accent); }
.pcard { position: relative; width: 58px; height: 82px; perspective: 600px; }
.pcard-inner { position: absolute; inset: 0; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.pcard.is-open .pcard-inner { transform: rotateY(180deg); }
.pcard-face, .pcard-back { position: absolute; inset: 0; border-radius: 10px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); }
.pcard-back { background: var(--surface-2); border: 2px dashed var(--line); }
.pcard.has-vote .pcard-back { background: repeating-linear-gradient(45deg, var(--accent) 0 6px, color-mix(in srgb, var(--accent) 75%, #000) 6px 12px); border: 3px solid var(--surface); }
.pcard-face { transform: rotateY(180deg); background: var(--surface); border: 2px solid var(--text); font: 700 1.5rem var(--font-display); }
.pcard.is-outlier .pcard-face { border-color: var(--accent); color: var(--accent); }
.table-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 24px 0; }
.hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 20px 0 8px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.hand-card {
  width: 62px; height: 88px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface);
  font: 700 1.4rem var(--font-display); cursor: pointer; box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .2s, background .2s;
}
.hand-card:hover { transform: translateY(-8px); border-color: var(--text); }
.hand-card[aria-pressed="true"] { transform: translateY(-16px); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hand-card:disabled { opacity: .5; cursor: not-allowed; transform: none; }
@media (max-width: 520px) { .hand-card { width: 48px; height: 70px; font-size: 1.1rem; } }
.results { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; animation: drop .5s var(--ease); margin-bottom: 16px; }
.result-big { text-align: center; padding-right: 28px; border-right: 1px solid var(--line); }
.result-big strong { display: block; font: 700 3.6rem/1 var(--font-display); color: var(--accent); }
.result-big span { font-size: .85rem; color: var(--muted); }
.dist { display: grid; gap: 6px; }
.dist-row { display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .88rem; }
.dist-bar { height: 14px; border-radius: 6px; background: var(--accent); transform-origin: left; animation: grow .7s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }
.results .advice { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-2-soft); }
@media (max-width: 600px) { .results { grid-template-columns: 1fr; } .result-big { border-right: 0; padding: 0; } }
.history { margin-top: 24px; }
.history summary { cursor: pointer; font-weight: 600; }
.history li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Kanban board */
.kanban-toolbar { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding: 16px 20px; margin-bottom: 20px; }
.add-card { display: flex; gap: 8px; flex: 1 1 280px; }
.add-card input { padding: 9px 14px; }
.kanban-stats { display: flex; gap: 24px; }
.kanban-stats div { display: flex; flex-direction: column; }
.kanban-stats strong { font: 700 1.4rem var(--font-display); }
.kanban-tools { display: flex; gap: 8px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 12px; scroll-snap-type: x mandatory; }
.col { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 420px; display: flex; flex-direction: column; gap: 10px; transition: background .2s, border-color .2s; scroll-snap-align: start; }
.col.is-over { border-color: var(--accent-2); background: var(--accent-2-soft); }
.col.wip-exceeded { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--bg-alt)); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; }
.col-head h3 { font-size: 1rem; margin: 0; }
.wip { font-family: var(--font-mono); font-size: .78rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.wip-exceeded .wip { background: var(--danger); color: #fff; border-color: var(--danger); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.wip-msg { font-size: .8rem; color: var(--danger); font-weight: 600; margin: 0 6px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 8px; box-shadow: var(--shadow); cursor: grab; animation: pop .25s var(--ease); border-left: 4px solid var(--c, var(--accent)); }
.kcard.is-dragging { opacity: .4; }
.kcard p { margin: 0 0 8px; font-size: .94rem; font-weight: 500; word-break: break-word; }
.kcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.kcard-age { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.kcard-btns { display: flex; gap: 2px; }
.kcard-btns button { width: 28px; height: 28px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: .9rem; }
.kcard-btns button:hover { background: var(--surface-2); color: var(--text); }
.col-empty { text-align: center; color: var(--muted); font-size: .85rem; padding: 20px 0; border: 2px dashed var(--line); border-radius: 12px; }

/* Forecast */
.forecast { gap: 20px; align-items: start; }
.forecast h2 { font-size: 1.4rem; }
.percentiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.pct { padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); animation: pop .4s var(--ease) both; }
.pct:nth-child(2) { animation-delay: .08s; border-color: var(--accent); background: var(--accent-soft); }
.pct:nth-child(3) { animation-delay: .16s; }
.pct span { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); display: block; }
.pct strong { font: 700 1.6rem var(--font-display); display: block; }
.pct em { font-style: normal; font-size: .85rem; }
.histogram { width: 100%; height: auto; overflow: visible; }
.histogram rect { fill: var(--muted); opacity: .35; transform-origin: bottom; transform-box: fill-box; animation: rise .6s var(--ease) both; }
.histogram rect.hit { fill: var(--accent); opacity: 1; }
.histogram text { fill: var(--muted); font: 10px var(--font-mono); }
.histogram line { stroke: var(--text); stroke-dasharray: 3 3; }
@keyframes rise { from { transform: scaleY(0); } }
.explain { margin-top: 20px; font-size: .92rem; }
.explain summary { cursor: pointer; font-weight: 600; }
@media (max-width: 520px) { .percentiles { grid-template-columns: 1fr; } }

/* Retro */
.retro-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; margin-bottom: 18px; }
.icebreaker { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; padding: 20px 24px; border-left: 4px solid var(--accent-2); animation: drop .4s var(--ease); }
.retro-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-bottom: 20px; }
.rcol { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.rcol h3 { font-size: 1.1rem; margin: 0; display: flex; gap: 8px; align-items: center; }
.rcol .prompt { font-size: .85rem; color: var(--muted); margin: 0; }
.rcol textarea { resize: vertical; min-height: 62px; font-size: .92rem; }
.sticky { position: relative; padding: 12px 30px 12px 12px; border-radius: 4px; background: var(--c); font-size: .92rem; box-shadow: var(--shadow); animation: pop .3s var(--ease); word-break: break-word; }
.sticky:nth-child(odd) { transform: rotate(-.6deg); }
.sticky:nth-child(even) { transform: rotate(.6deg); }
.sticky button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; background: none; cursor: pointer; opacity: .5; border-radius: 4px; }
.sticky button:hover { opacity: 1; background: rgb(0 0 0 / .08); }
.actions-box h3 { font-size: 1.1rem; }
.actions-box ol { margin: 16px 0 0; padding-left: 1.3em; }
.actions-box li { padding: 6px 0; }
.actions-box li button { margin-left: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }

/* Timebox */
.timebox { max-width: 640px; margin-inline: auto; }
.timer-face { position: relative; width: min(340px, 80vw); aspect-ratio: 1; margin: 0 auto 28px; }
.timer-face svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.t-track, .t-fill { fill: none; stroke-width: 12; }
.t-track { stroke: var(--line); }
.t-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 603.2; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke .4s; }
.timebox.is-warning .t-fill { stroke: var(--warn); }
.timebox.is-over .t-fill { stroke: var(--danger); }
.timebox.is-over .timer-center strong { color: var(--danger); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .4; } }
.timer-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer-center strong { font: 700 clamp(3rem, 12vw, 4.6rem)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.timebox .chip-row { margin-bottom: 20px; }
.timebox .btn-row { margin-bottom: 20px; }
.timebox .field.inline input { width: 90px; }

/* ============ Blog ============ */
.tag-nav { margin-top: 28px; }
.rss-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; text-decoration: none; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.post-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.post-link { display: flex; flex-direction: column; height: 100%; padding: 28px; text-decoration: none; }
.post-link h2 { font-size: 1.55rem; margin: 12px 0; }
.post-link p { color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-family: var(--font-mono); font-size: .76rem; color: var(--accent-2); text-decoration: none; }
.post-header { padding: clamp(48px, 8vw, 96px) 0 32px; }
.post-title { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.04em; line-height: 1.04; margin: 18px 0 20px; }
.back-link { text-decoration: none; color: var(--muted); font-size: .9rem; }
.back-link:hover { color: var(--accent); }
.notice { margin-top: 24px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-2-soft); font-size: .9rem; }
.post-body { font-size: 1.12rem; line-height: 1.75; }
.post-body > p:first-child::first-letter { float: left; font: 700 4.2em/.85 var(--font-display); margin: .06em .1em 0 0; color: var(--accent); }
.post-footer { padding-top: 40px; padding-bottom: 80px; }
.share { display: flex; gap: 10px; margin: 20px 0 40px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.post-nav a:hover strong { color: var(--accent); }
.post-nav .right { text-align: right; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 60; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.footer-claim { margin-top: 16px; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: .78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-cols a { display: flex; align-items: center; gap: 6px; text-decoration: none; padding: 4px 0; font-size: .95rem; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: .92rem; opacity: 0; transition: all .3s var(--ease); z-index: 80; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============ Marka i Kolekcja ============ */
.hero-dot { color: var(--accent); }
.hero-mark { display: flex; align-items: center; gap: 16px; max-width: 520px; margin: -8px 0 32px; }
.hero-mark .stripes { flex: 1; height: 18px; background: linear-gradient(var(--accent) 0 6px, transparent 6px 12px, var(--accent) 12px 18px); }
.hero-mark .stars { color: var(--text); letter-spacing: .25em; font-size: 1.1rem; }
.ticker { background: #000; color: #f4f2ee; }
:root[data-theme="light"] .ticker { background: #0a0a0a; }

.brand-logo { display: block; width: 100%; height: auto; }
.footer-logo { display: block; width: 150px; margin-top: 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease); }
.footer-logo:hover { transform: rotate(-3deg) scale(1.03); }

.collection-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); background: #000; color: #f4f2ee; }
.collection-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 85% 30%, rgb(238 68 35 / .22), transparent 70%); }
.collection-hero .lead { color: #a5a19a; }
.collection-hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.collection-logo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -20px rgb(238 68 35 / .35), 0 0 0 1px #222; transform: rotate(2deg); transition: transform .5s var(--ease); }
.collection-logo:hover { transform: rotate(0) scale(1.02); }
@media (max-width: 860px) { .collection-hero-inner { grid-template-columns: 1fr; } .collection-logo { max-width: 420px; } }
.soon-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--accent); color: var(--accent); font-weight: 600; font-size: .85rem; }
.soon-pill.big { padding: 12px 20px; font-size: .95rem; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.product:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.product-stage { aspect-ratio: 1; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 50% 40%, #2a2a2a, #121212 70%); }
.product-stage img { width: 100%; height: 100%; object-fit: contain; }
.product-art { width: 100%; height: auto; overflow: visible; transition: transform .5s var(--ease); }
.product:hover .product-art { transform: scale(1.05) rotate(-2deg); }
.product-art .shadow { fill: #000; opacity: .55; }
.product-info { display: flex; flex-direction: column; gap: 4px; padding: 22px; flex: 1; }
.product-info h3 { font-size: 1.35rem; margin: 0; }
.product-line { color: var(--muted); font-size: .95rem; margin: 6px 0 10px; }
.product-details { list-style: none; padding: 0; margin: 0 0 18px; font-size: .88rem; display: grid; gap: 4px; }
.product-details li::before { content: "★ "; color: var(--accent); font-size: .75em; }
.product-info .btn, .product-info .soon-pill { margin-top: auto; align-self: flex-start; }
.center-block { margin-inline: auto; }

.merch-band { background: #000; color: #f4f2ee; }
.merch-band .section-lead { color: #a5a19a; }
.merch-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.merch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.merch-mini { display: flex; flex-direction: column; gap: 10px; text-decoration: none; font-size: .88rem; font-weight: 600; text-align: center; }
.merch-art { display: grid; place-items: center; aspect-ratio: 1; padding: 12px; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, #262626, #0f0f0f 70%); border: 1px solid #222; transition: transform .3s var(--ease), border-color .3s; }
.merch-art img { width: 100%; height: 100%; object-fit: contain; }
.merch-mini:hover .merch-art { transform: translateY(-6px); border-color: #ee4423; }
@media (max-width: 900px) { .merch-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .merch-row { grid-template-columns: 1fr 1fr; } }
:root[data-theme="dark"] .hero .note { background: #141414; border: 1px solid #262626; color: #cfcbc4; }
:root[data-theme="dark"] .hero .n2, :root[data-theme="dark"] .hero .n6 { background: #ee4423; border-color: #ee4423; color: #0a0a0a; }
.from-linkedin { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.from-linkedin a { color: var(--accent); }
.origin-note { padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.origin-note a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Przełącznik języka */
.lang-toggle { display: inline-flex; align-items: center; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); height: 40px; }
.lang-toggle a { display: grid; place-items: center; min-width: 34px; height: 32px; padding: 0 6px; border-radius: 9px; text-decoration: none; font: 600 .78rem var(--font-mono); color: var(--muted); transition: background .2s, color .2s; }
.lang-toggle a:hover { color: var(--text); }
.lang-toggle a.is-on { background: var(--text); color: var(--bg); }
@media (max-width: 1020px) and (min-width: 861px) { .nav-link { padding: 8px 10px; font-size: .9rem; } }
