/* Reveelr marketing site — v2 "editorial / print" visual language.
   Distinctive signals: print-style crop-mark corner ticks, numbered mono nav,
   square-cornered (2px) buttons + cards, inset rounded dot-grid panels with
   hand-drawn contour SVGs, 76px mono stat numerals, a scroll-story with a left
   progress rail, and a CSS marquee row. Light is default; [data-theme="dark"]
   swaps the token set. Tokens track the app design system. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --surface: #f8f9fb;
  --surface-2: #eef1f5;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #101828;
  --text-secondary: #475467;
  --text-muted: #667085;
  --text-faint: #98a2b3;
  --accent: #1c5fe8;
  --accent-hover: #12459f;
  --accent-soft: #e8effe;
  --accent-border: #cfdefc;
  --accent-ink: #33528f;
  --positive: #0aa678;
  --positive-soft: #e6f5f0;
  --violet: #7b3ff2;
  --violet-soft: #efeaff;
  --teal: #0e9488;
  --teal-soft: #e6f5f3;
  --pink: #c2447e;
  --warning: #a37f10;
  --warning-soft: #faf3dd;
  --danger: #d92d20;
  --danger-soft: #fdebe9;
  --nav-bg: rgba(255,255,255,.9);
  --tick: #98a2b3;
  --hero-grad: radial-gradient(120% 90% at 50% 0%, #e8effe 0%, #f5f8ff 34%, #ffffff 72%);
  --hero-dot: rgba(28,95,232,.16);
  --shadow-card: 0 12px 32px rgba(28,95,232,.10);
  --shadow-hero: 0 30px 90px rgba(28,95,232,.16);
  --shadow-pop: 0 16px 48px rgba(28,95,232,.14);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1180px;
  --wide: 1280px;
}

[data-theme="dark"] {
  --bg: #0c0e12;
  --surface: #14181f;
  --surface-2: #1c212b;
  --border: #262b33;
  --border-strong: #333a45;
  --text: #e6e9ef;
  --text-secondary: #b0b8c4;
  --text-muted: #98a2b3;
  --text-faint: #667085;
  --accent: #5a8dff;
  --accent-hover: #86a9ff;
  --accent-soft: #1e2c4d;
  --accent-border: #2a3a5e;
  --accent-ink: #9db9ff;
  --positive: #34d39e;
  --positive-soft: rgba(52,211,158,.14);
  --violet: #9d75ff;
  --violet-soft: rgba(157,117,255,.16);
  --teal: #2fbdae;
  --teal-soft: rgba(47,189,174,.16);
  --pink: #e878ab;
  --warning: #f2c14e;
  --warning-soft: rgba(242,193,78,.16);
  --danger: #f97066;
  --danger-soft: rgba(249,112,102,.16);
  --nav-bg: rgba(12,14,18,.85);
  --tick: #667085;
  --hero-grad: radial-gradient(120% 90% at 50% 0%, #131c30 0%, #0f1319 42%, #0c0e12 76%);
  --hero-dot: rgba(90,141,255,.16);
  --shadow-card: 0 12px 32px rgba(0,0,0,.4);
  --shadow-hero: 0 30px 90px rgba(0,0,0,.55);
  --shadow-pop: 0 16px 48px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 36px; }
.wrap.narrow { max-width: var(--maxw); }

/* ---------- Crop-mark corner ticks (the print signature) ---------- */
/* .crop draws two diagonal L-ticks (top-left + bottom-right) via pseudo-els. */
.crop { position: relative; }
.crop::before, .crop::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
}
.crop::before { left: -3px; top: -3px; border-left: 1.5px solid var(--tick); border-top: 1.5px solid var(--tick); }
.crop::after { right: -3px; bottom: -3px; border-right: 1.5px solid var(--tick); border-bottom: 1.5px solid var(--tick); }
.crop.accent { --tick: var(--accent); }
.crop.thin::before, .crop.thin::after { width: 9px; height: 9px; border-width: 1px; }
/* Four-corner ticks: place explicit .tick spans inside a positioned box. */
.tick { position: absolute; width: 12px; height: 12px; pointer-events: none; }
.tick.tl { left: -7px; top: -7px; border-left: 1.5px solid var(--tick); border-top: 1.5px solid var(--tick); }
.tick.tr { right: -7px; top: -7px; border-right: 1.5px solid var(--tick); border-top: 1.5px solid var(--tick); }
.tick.bl { left: -7px; bottom: -7px; border-left: 1.5px solid var(--tick); border-bottom: 1.5px solid var(--tick); }
.tick.br { right: -7px; bottom: -7px; border-right: 1.5px solid var(--tick); border-bottom: 1.5px solid var(--tick); }

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-2);
}
header.site .nav { display: flex; align-items: center; gap: 28px; padding: 15px 0; max-width: var(--wide); margin: 0 auto; padding-left: 36px; padding-right: 36px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.logo { display: flex; }
.logo span {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.logo span + span { margin-left: -8px; }
.brand .word { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.nav .links { display: flex; gap: 24px; margin-left: 16px; font-size: 13px; font-weight: 500; }
.nav .links a { color: var(--text-secondary); }
.nav .links a sup { font: 500 8.5px var(--mono); color: var(--text-faint); margin-left: 1px; top: -.7em; }
.nav .links a:hover, .nav .links a.active { color: var(--accent); }
.nav .links a.active sup { color: var(--accent); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 99px; color: var(--text-secondary);
  font-size: 13px; background: var(--bg); cursor: pointer; padding: 0; line-height: 1;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .moon { display: inline; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: inline; }
.nav-link { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.nav-link:hover { color: var(--text); }

/* ---------- Buttons (square 2px + crop ticks) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 2px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  cursor: pointer; transition: .15s; white-space: nowrap;
}
/* crop ticks on every button */
.btn::before, .btn::after { content: ""; position: absolute; width: 8px; height: 8px; pointer-events: none; }
.btn::before { left: -3px; top: -3px; border-left: 1.5px solid var(--btn-tick, var(--tick)); border-top: 1.5px solid var(--btn-tick, var(--tick)); }
.btn::after { right: -3px; bottom: -3px; border-right: 1.5px solid var(--btn-tick, var(--tick)); border-bottom: 1.5px solid var(--btn-tick, var(--tick)); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); --btn-tick: var(--accent); }
.btn.primary:hover { color: var(--bg); filter: brightness(1.12); }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); --btn-tick: var(--accent); }
.btn.accent:hover { color: #fff; filter: brightness(1.08); }
[data-theme="dark"] .btn.accent { color: #0c0e12; }
.btn.ghost { --btn-tick: var(--accent); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.plain { border-color: var(--border-strong); --btn-tick: var(--tick); }
.btn.plain:hover { background: var(--surface-2); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 14.5px; }
.btn.arrow-lead { padding-left: 0; }
.btn .lead { width: 36px; height: 100%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
[data-theme="dark"] .btn.primary .lead { color: #fff; }

/* ---------- Hero (inset rounded full-bleed dot-grid panel) ---------- */
.hero { padding: 12px 14px 0; }
.hero .panel { position: relative; border-radius: 16px; overflow: hidden; background: var(--hero-grad); }
.hero .dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--hero-dot) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 75%);
}
.contour { position: absolute; top: 12%; height: 76%; opacity: .5; pointer-events: none; }
.contour.left { left: 5%; }
.contour.right { right: 5%; transform: scaleX(-1); }
.hero .inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 76px 40px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }

.pill {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font: 500 12px var(--mono); color: var(--accent-ink);
  background: color-mix(in srgb, var(--bg) 72%, transparent); padding: 8px 16px;
}
.pill .tag1p { width: 16px; height: 16px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 600 9px "Instrument Sans"; border-radius: 3px; }
[data-theme="dark"] .pill .tag1p { color: #0c0e12; }

.hero h1 { margin: 30px 0 0; font-size: 62px; font-weight: 700; letter-spacing: -.04em; line-height: 1.04; max-width: 900px; text-wrap: balance; }
.hero h1 .hl { color: var(--accent); }
.rotator { margin: 20px 0 0; font-size: 25px; font-weight: 600; letter-spacing: -.02em; color: var(--text-secondary); display: flex; align-items: baseline; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rotator .cycle { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; text-align: left; }
.rotator .cycle > span { display: block; line-height: 1.25; color: var(--accent); animation: wordcycle 9s steps(1) infinite; }
.rotator .cycle > span > span { display: block; }

.reveal-input { display: flex; gap: 0; margin-top: 34px; position: relative; }
.reveal-input input {
  height: 52px; border: 1px solid var(--border-strong); background: var(--bg);
  padding: 0 18px; font: 400 14.5px var(--mono); color: var(--text);
  min-width: 320px; border-right: none; border-radius: 0;
}
.reveal-input input::placeholder { color: var(--text-faint); }
.reveal-input input:focus { outline: none; }
.reveal-input button {
  height: 52px; background: var(--text); color: var(--bg); border: 1px solid var(--text);
  padding: 0 26px; font: 600 14.5px "Instrument Sans"; cursor: pointer;
}
.reveal-input button:hover { filter: brightness(1.1); }
.hero .fineprint { font: 500 13.5px "Instrument Sans"; color: var(--text-secondary); margin-top: 16px; }
.hero .subcta { margin-top: 14px; font-size: 13px; }

/* Hero product frame (illustrative product UI) */
.shot { position: relative; margin-top: 44px; width: 100%; max-width: 960px; border: 1px solid var(--border); border-bottom: none; border-radius: 12px 12px 0 0; background: var(--bg); box-shadow: var(--shadow-hero); overflow: hidden; text-align: left; }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--surface-2); background: var(--surface); }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); display: inline-block; }
.shot .bar i:nth-child(1) { background: #f97066; } .shot .bar i:nth-child(2) { background: #f2c14e; } .shot .bar i:nth-child(3) { background: #34d39e; }
.shot .bar .url { margin: 0 auto; font: 400 11px var(--mono); color: var(--text-faint); background: var(--bg); border: 1px solid var(--surface-2); border-radius: 5px; padding: 2px 14px; }
.shot .body { display: flex; }
.shot .panel { flex: 1.4; padding: 18px 22px; border-right: 1px solid var(--surface-2); }
.shot .rail { flex: 1; padding: 18px 22px; background: var(--surface); }
.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.panel-head b { font-size: 13px; font-weight: 600; }
.panel-head span { font: 400 11px var(--mono); color: var(--text-faint); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 62px; gap: 10px; align-items: center; font-size: 12.5px; }
.track { height: 8px; background: var(--surface-2); overflow: hidden; }
.track > i { display: block; height: 100%; transform-origin: left; animation: growbar 1.2s cubic-bezier(.2,.8,.2,1) both; }
.bar-row .val { font: 500 12px var(--mono); text-align: right; }
.rail-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.feed { display: flex; flex-direction: column; gap: 8px; }
.feed-item { background: var(--bg); border: 1px solid var(--border); padding: 10px 12px; }
.feed-item.hot { border-left: 2px solid var(--accent); }
.feed-item.warm { border-left: 2px solid var(--positive); }
.feed-item.unknown { border: 1px dashed var(--border-strong); }
.feed-row { display: flex; align-items: center; gap: 8px; }
.av { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 9.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.av.blur { background: var(--surface-2); color: var(--text-faint); filter: blur(2px); }
.feed-name { font-size: 12.5px; font-weight: 600; }
.feed-name.blur { color: var(--text-faint); filter: blur(4px); }
.feed-sub { font-size: 10.5px; color: var(--text-muted); }
.badge-sm { font-size: 10px; font-weight: 500; border-radius: 4px; padding: 2px 6px; }
.badge-sm.teal { color: var(--teal); background: var(--teal-soft); }
.badge-sm.mute { color: var(--text-faint); }
.feed-foot { font-size: 10.5px; color: var(--text-muted); margin-top: 6px; }
.reveal-once { animation: unblur 4.5s 1s both; }

/* ---------- Generic section ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 64px 0; }
.section.surface { background: var(--surface); border-top: 1px solid var(--surface-2); border-bottom: 1px solid var(--surface-2); }
.section.ruled { border-top: 1px solid var(--surface-2); position: relative; }
.section.ruled::before { content: "+"; position: absolute; left: 50%; top: -8px; transform: translateX(-50%); color: var(--text-faint); font-size: 14px; background: var(--bg); padding: 0 8px; }
.center { text-align: center; }
.dot-lead { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--accent); vertical-align: middle; margin-right: 14px; }

.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head.mid { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -.032em; line-height: 1.14; text-wrap: balance; }
.section-head h2 .hl { color: var(--accent); }
.section-head p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); }

/* ---------- Portfolio logo wall (real marks, dogfood proof) ---------- */
.trustline { text-align: center; font: 500 13px "Instrument Sans"; color: var(--text-secondary); }
.logowall { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1060px; margin: 26px auto 0; }
.logowall .lw { position: relative; flex: 1 1 128px; max-width: 168px; display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 26px 6px; font: 600 13px "Instrument Sans"; color: var(--text-muted); letter-spacing: -.01em; }
.logowall .lw::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong); }
.logowall .lw::after { content: ""; position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.logowall .chip { width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.logowall .chip img { width: 22px; height: 22px; object-fit: contain; display: block; }
.trustnote { text-align: center; font: 400 12px "Instrument Sans"; color: var(--text-faint); margin-top: 18px; }

/* ---------- Stat row (76px mono numerals, real first-party figures) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; }
.stat .num { font: 700 76px var(--mono); letter-spacing: -.05em; line-height: 1; color: var(--text); }
.stat .num em { font-style: normal; color: var(--accent); }
.stat .num .unit { font-size: 40px; color: var(--accent); }
.stat .rule { height: 1px; background: var(--border); margin: 22px 0 14px; }
.stat p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.statnote { text-align: center; font: 400 12px "Instrument Sans"; color: var(--text-faint); margin-top: 44px; }

/* ---------- "One loop" stack-replacement diagram ---------- */
.loopwrap { position: relative; max-width: 860px; margin: 40px auto 0; }
.loopwrap .cap-logo { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); display: flex; background: var(--bg); padding: 6px; }
.loopwrap .cap-logo span { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.loopwrap .cap-logo span + span { margin-left: -11px; }
.stackrow { display: flex; justify-content: space-between; gap: 8px; margin-top: -4px; }
.stackrow .node { position: relative; flex: 1; padding: 14px 8px; background: var(--bg); text-align: center; }
.stackrow .node.mid { background: var(--accent-soft); border-radius: 2px; }
.stackrow .node .t { font: 600 13.5px "Instrument Sans"; }
.stackrow .node.mid .t { color: var(--accent); }
.stackrow .node .s { font: 400 11.5px "Instrument Sans"; color: var(--text-faint); margin-top: 3px; }
.stackrow .node .s.strike { text-decoration: line-through; }
.stackrow .node.mid .s { color: var(--accent-ink); }
.loopnote { font: 400 13px "Instrument Sans"; color: var(--text-muted); margin-top: 26px; text-align: center; }

/* ---------- Scroll-story (chapters 01–04 + left progress rail) ---------- */
.story { display: flex; gap: 56px; margin-top: 8px; }
.story .progress { width: 172px; flex: none; position: sticky; top: 96px; align-self: flex-start; display: flex; flex-direction: column; }
.story .progress a { font: 600 17px "Instrument Sans"; color: var(--text-faint); border-bottom: 1px solid var(--border); padding: 10px 0; transition: .2s; }
.story .progress a.on { color: var(--accent); border-bottom: 2px solid var(--accent); }
.story .chapters { flex: 1; border-left: 1.5px dashed var(--border-strong); padding-left: 52px; display: flex; flex-direction: column; gap: 64px; }
.chapter { display: flex; gap: 44px; align-items: center; scroll-margin-top: 100px; }
.chapter .copy { flex: 1; }
.chapter .art { flex: 1; display: flex; justify-content: center; }
.chapnum { display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 3px; }
.chapter h3 { margin: 14px 0 0; font-size: 29px; font-weight: 600; letter-spacing: -.025em; }
.chapter .copy > p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); max-width: 430px; }
.chapter .hair { height: 1px; background: var(--surface-2); max-width: 430px; margin: 14px 0; }
.chapter .aside { margin: 0; font-size: 13px; color: var(--text-faint); }
.chapter .chapcta { margin-top: 22px; }

/* illustrative chapter cards */
.codecard { background: #101828; border-radius: 10px; padding: 18px 22px; font: 400 12.5px var(--mono); color: #e6e9ef; box-shadow: 0 20px 60px rgba(16,24,40,.25); line-height: 1.9; animation: floaty 6s ease-in-out infinite; }
.codecard .b { color: #5a8dff; } .codecard .g { color: #34d39e; } .codecard .c { color: #5d6673; }
.revealcard { background: var(--bg); border: 1px solid var(--accent-border); border-radius: 12px; padding: 20px 24px; box-shadow: var(--shadow-card); animation: floaty 6s .8s ease-in-out infinite; min-width: 320px; }
.revealcard .r1 { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.revealcard .vid { font: 600 14px var(--mono); color: var(--text-faint); filter: blur(3.5px); }
.revealcard .arrow { color: var(--accent); font-weight: 700; font-size: 17px; }
.revealcard .named { display: inline-flex; align-items: center; gap: 8px; }
.revealcard .named .av { width: 24px; height: 24px; }
.revealcard .named b { font: 600 15px "Instrument Sans"; }
.revealcard .foot { font: 400 12px "Instrument Sans"; color: var(--text-muted); margin-top: 10px; line-height: 1.7; }
.attrcard { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; box-shadow: var(--shadow-card); min-width: 340px; }
.attr-rows { display: flex; flex-direction: column; gap: 12px; }
.attr-row { display: grid; grid-template-columns: 90px 1fr 46px; gap: 12px; align-items: center; font-size: 13px; }
.attr-row .track { height: 10px; }
.attr-row .roi { font: 600 13px var(--mono); text-align: right; }
.attrcard .note { font: 400 12px "Instrument Sans"; color: var(--text-muted); margin-top: 14px; border-top: 1px solid var(--surface-2); padding-top: 12px; }
.mailcard { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-card); min-width: 360px; }
.mailcard .top { display: flex; align-items: center; gap: 8px; }
.mailcard .top b { font: 600 13px "Instrument Sans"; }
.mailcard .top small { display: block; font-size: 10.5px; color: var(--text-muted); }
.mailcard .score { margin-left: auto; font: 700 15px var(--mono); color: var(--positive); }
.mailcard .quote { font: 400 12px "Instrument Sans"; color: var(--text-secondary); background: var(--surface); border-radius: 6px; padding: 10px 12px; margin-top: 10px; line-height: 1.6; }
.mailcard .actors { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.actor { display: inline-flex; align-items: center; gap: 5px; font: 400 10.5px "Instrument Sans"; color: var(--text-muted); }
.ai-sq { width: 15px; height: 15px; border-radius: 4px; background: var(--violet-soft); color: var(--violet); font: 600 7px "Instrument Sans"; display: inline-flex; align-items: center; justify-content: center; }
.mailcard .approve { margin-left: auto; height: 26px; display: inline-flex; align-items: center; background: var(--accent); color: #fff; border-radius: 5px; padding: 0 12px; font: 500 12px "Instrument Sans"; }
[data-theme="dark"] .mailcard .approve { color: #0c0e12; }

/* ---------- Marquee (principle cards, honest content) ---------- */
.marquee-head { max-width: var(--wide); margin: 0 auto; padding: 76px 36px 26px; }
.marquee-head h2 { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -.032em; max-width: 720px; line-height: 1.15; }
.marquee-head h2 .hl { color: var(--accent); }
.marquee-wrap { overflow: hidden; padding: 12px 0 76px; }
.marquee { display: flex; gap: 18px; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.mcard { width: 380px; flex: none; position: relative; background: var(--bg); border: 1px solid var(--border); padding: 22px 24px; }
.mcard .ic { width: 30px; height: 30px; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; margin-bottom: 12px; }
.mcard h3 { margin: 0; font: 600 15px "Instrument Sans"; letter-spacing: -.01em; }
.mcard p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }
/* Quote cards (role-based testimonials from the portfolio) */
.mcard.qc { display: flex; flex-direction: column; }
.qc .qhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qc .qav { width: 32px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex: none; }
.qc .qav img { width: 20px; height: 20px; object-fit: contain; display: block; }
.qc .qhead b { display: block; font: 600 13.5px "Instrument Sans"; color: var(--text); }
.qc .qhead small { font: 400 11.5px "Instrument Sans"; color: var(--text-muted); }
.qc p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text); }
.ic.blue { background: var(--accent-soft); color: var(--accent); }
.ic.green { background: var(--positive-soft); color: var(--positive); }
.ic.violet { background: var(--violet-soft); color: var(--violet); }
.ic.teal { background: var(--teal-soft); color: var(--teal); }
.ic.warn { background: var(--warning-soft); color: var(--warning); }
.ic.pink { background: var(--danger-soft); color: var(--pink); }

/* ---------- Pricing tiles ---------- */
.tiles { display: flex; gap: 16px; max-width: 980px; margin: 0 auto; }
.tile { flex: 1; position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 2px; padding: 28px; }
.tile.pop { border: 2px solid var(--accent); box-shadow: var(--shadow-pop); }
.tile .tag { position: absolute; top: -11px; left: 28px; font-size: 10.5px; font-weight: 600; background: var(--accent); color: #fff; border-radius: 99px; padding: 3px 11px; text-transform: uppercase; letter-spacing: .05em; }
[data-theme="dark"] .tile .tag { color: #0c0e12; }
.tile .name { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.tile.pop .name { color: var(--accent); }
.tile .price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.tile .price b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.tile .price span { font-size: 13px; color: var(--text-muted); }
.tile .blurb { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.tile .tbtn { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 2px; font-size: 13px; font-weight: 600; margin: 18px 0; border: 1px solid var(--border); }
.tile .tbtn::before, .tile .tbtn::after { content: ""; position: absolute; width: 8px; height: 8px; pointer-events: none; }
.tile .tbtn::before { left: -3px; top: -3px; border-left: 1.5px solid var(--accent); border-top: 1.5px solid var(--accent); }
.tile .tbtn::after { right: -3px; bottom: -3px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); }
.tile .tbtn.ghost { color: var(--text); }
.tile .tbtn.ghost:hover { background: var(--surface-2); }
.tile .tbtn.solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.tile .tbtn.solid:hover { filter: brightness(1.08); color: #fff; }
[data-theme="dark"] .tile .tbtn.solid { color: #0c0e12; }
.tile .feats { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.pricelink { display: inline-flex; margin-top: 26px; font: 600 14px "Instrument Sans"; }

/* ---------- Final CTA (dark inset dot-grid panel) ---------- */
.finalcta { padding: 10px 14px 14px; }
.finalcta .panel { position: relative; border-radius: 16px; overflow: hidden; background: #0c0e12; }
.finalcta .dots { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, #262b33 1px, transparent 0); background-size: 26px 26px; opacity: .7; }
.finalcta .glow { position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 110%, rgba(90,141,255,.28), transparent 65%); }
.finalcta .inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 92px 40px; text-align: center; }
.finalcta .logo { display: flex; justify-content: center; margin-bottom: 24px; }
.finalcta .logo span { width: 28px; height: 28px; border: 3px solid #5a8dff; background: rgba(90,141,255,.14); }
.finalcta .logo span + span { margin-left: -12px; }
.finalcta h2 { margin: 0; font-size: 48px; font-weight: 700; letter-spacing: -.035em; color: #e6e9ef; line-height: 1.1; text-wrap: balance; }
.finalcta h2 .hl { color: #5a8dff; }
.finalcta .reveal-input { justify-content: center; width: max-content; margin-left: auto; margin-right: auto; }
.finalcta .reveal-input input { background: #14181f; border-color: #333a45; color: #98a2b3; min-width: 300px; }
.finalcta .reveal-input input::placeholder { color: #5d6673; }
.finalcta .reveal-input button { background: #5a8dff; color: #0c0e12; border-color: #5a8dff; }
.finalcta p { margin: 16px 0 0; font-size: 14px; color: #98a2b3; }
.finalcta .subcta a { color: #9db9ff; }

/* ---------- Page head (pricing / other) ---------- */
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 72px 36px 44px; text-align: center; }
.page-head h1 { margin: 0; font-size: 46px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.page-head .sub { margin: 16px auto 0; font-size: 16px; color: var(--text-secondary); max-width: 620px; line-height: 1.6; }
.page-head .btn { margin-top: 24px; }
.posline { display: inline-flex; margin-top: 20px; font: 500 13px var(--mono); color: var(--accent-ink); }

/* ---------- Compare table ---------- */
.compare { max-width: 980px; margin: 0 auto; }
.compare h2 { margin: 0 0 24px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-align: center; }
.ctable { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; background: var(--bg); }
.crow { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: center; border-bottom: 1px solid var(--surface-2); font-size: 13px; }
.crow:last-child { border-bottom: none; }
.crow.head { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.crow.head .hl { color: var(--accent); }
.crow > span { padding: 10px 12px; text-align: center; }
.crow > span:first-child { padding: 10px 16px; text-align: left; }
.crow .yes { color: var(--positive); }
.crow .no { color: var(--border-strong); }
.crow .txt { color: var(--text-secondary); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { margin: 0 0 22px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 2px; padding: 16px 20px; }
.faq-item .q { font-size: 13.5px; font-weight: 600; }
.faq-item p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }

/* ---------- Contact Sales form ---------- */
.contact { max-width: 560px; margin: 0 auto; }
.contact-card { position: relative; border: 1px solid var(--border); border-radius: 2px; padding: 30px; background: var(--bg); }
.contact-card h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.contact-card .lede { margin: 8px 0 22px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.field input, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 2px; padding: 10px 12px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.contact .submit { width: 100%; height: 46px; font-size: 14.5px; }
.form-note { font-size: 12px; color: var(--text-faint); margin-top: 12px; text-align: center; }
.form-status { display: none; border-radius: 2px; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; margin-top: 4px; margin-bottom: 16px; }
.form-status.ok { display: block; background: var(--positive-soft); color: var(--positive); border: 1px solid color-mix(in srgb, var(--positive) 35%, transparent); }
.form-status.err { display: block; background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.is-sent .contact-form { display: none; }

/* ---------- Blog ---------- */
.blog-head { max-width: var(--maxw); margin: 0 auto; padding: 64px 36px 36px; }
.blog-head.center { text-align: center; }
.blog-head .kicker { font: 600 12px var(--mono); color: var(--accent); }
.blog-head h1 { margin: 10px 0 0; font-size: 42px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.blog-head p { margin: 12px 0 0; font-size: 15px; color: var(--text-secondary); max-width: 560px; line-height: 1.6; }
.blog-head.center p { margin-left: auto; margin-right: auto; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { position: relative; border: 1px solid var(--border); border-radius: 2px; padding: 22px; color: inherit; display: block; }
.post:hover { color: inherit; border-color: var(--border-strong); }
.post .pcover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 2px; margin-bottom: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.post .cat { font: 400 11.5px var(--mono); color: var(--text-faint); }
.post h3 { margin: 8px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.post p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.post .pmeta { font-size: 11.5px; color: var(--text-faint); margin-top: 12px; }
.cta-bar { position: relative; display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 2px; padding: 18px 22px; margin-top: 28px; background: var(--surface); flex-wrap: wrap; }
.cta-bar .txt b { font-size: 14px; display: block; }
.cta-bar .txt span { font-size: 12.5px; color: var(--text-muted); }
.cta-bar .btn { margin-left: auto; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; padding: 56px 36px 72px; }
.prose .kicker { font: 600 12px var(--mono); color: var(--accent); }
.prose h1 { margin: 10px 0 0; font-size: 36px; font-weight: 700; letter-spacing: -.03em; }
.prose .updated { margin: 10px 0 0; font-size: 12.5px; color: var(--text-faint); }
.prose .summary { position: relative; border: 1px solid var(--accent-border); background: color-mix(in srgb, var(--accent-soft) 40%, var(--bg)); border-radius: 2px; padding: 16px 20px; margin: 24px 0; font-size: 13px; color: var(--accent-ink); line-height: 1.65; }
[data-theme="dark"] .prose .summary { background: var(--accent-soft); color: var(--text); }
.prose .summary strong { font-weight: 600; }
.prose .sections { display: flex; flex-direction: column; gap: 26px; font-size: 14px; color: #344054; line-height: 1.75; margin-top: 28px; }
[data-theme="dark"] .prose .sections { color: var(--text-secondary); }
.prose .sections h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }

/* Injected post/tool body (from the public content API). */
.post-body { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-top: 30px; }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 { margin: 34px 0 12px; font-size: 23px; font-weight: 600; letter-spacing: -.02em; color: var(--text); line-height: 1.25; }
.post-body h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.post-body h4 { margin: 22px 0 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.post-body p { margin: 14px 0; }
.post-body ul, .post-body ol { margin: 14px 0; padding-left: 22px; }
.post-body li { margin: 6px 0; }
.post-body a { color: var(--accent); }
.post-body a:hover { color: var(--accent-hover); }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body img { max-width: 100%; height: auto; border-radius: 2px; margin: 20px 0; }
.post-body blockquote { margin: 20px 0; padding: 4px 18px; border-left: 3px solid var(--accent-border); color: var(--text-muted); }
.post-body code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }
.post-body pre { background: var(--surface); border: 1px solid var(--border); border-radius: 2px; padding: 16px 18px; overflow-x: auto; margin: 20px 0; }
.post-body pre code { background: none; padding: 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---------- Blog post layout: sticky numbered TOC menu + article ---------- */
.post-layout { display: grid; grid-template-columns: 216px minmax(0, 760px); gap: 52px; max-width: 1044px; margin: 0 auto; padding: 0 36px; align-items: start; }
.post-layout.no-toc { grid-template-columns: minmax(0, 820px); justify-content: center; }
.post-layout.no-toc .post-toc { display: none; }
.post-col { min-width: 0; }
.post-layout .prose { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
.post-body h2, .prose h1 { scroll-margin-top: 88px; }

.post-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; padding: 56px 4px 8px 0; }
.post-toc .toc-progress { height: 2px; background: var(--border); border-radius: 2px; margin-bottom: 16px; overflow: hidden; }
.post-toc .toc-progress .bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }
.post-toc h4 { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px; }
.post-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.post-toc li { counter-increment: toc; margin: 0; }
.post-toc a { display: flex; gap: 9px; padding: 6px 10px; border-left: 2px solid transparent; border-radius: 0 2px 2px 0; font: 500 12.5px "Instrument Sans"; color: var(--text-muted); line-height: 1.4; text-decoration: none; }
.post-toc a::before { content: counter(toc, decimal-leading-zero); font: 500 10.5px var(--mono); color: var(--text-faint); flex: none; padding-top: 1px; }
.post-toc a:hover { color: var(--text); }
.post-toc a.active { color: var(--accent); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.post-toc a.active::before { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (max-width: 900px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 20px; }
  .post-toc { display: none; }
}

/* ---------- Blog social: share, reactions, comments ---------- */
.social { margin-top: 8px; }
.verify-banner { border-radius: 2px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px; border: 1px solid var(--border); }
.verify-banner.ok { color: var(--positive); background: color-mix(in srgb, var(--positive) 10%, transparent); border-color: color-mix(in srgb, var(--positive) 40%, transparent); }
.verify-banner.err { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }

.social-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 12px 0 34px; }
.reactions { display: flex; gap: 10px; }
.rx { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border: 1px solid var(--border); border-radius: 2px; background: var(--bg); color: var(--text-secondary); font: 600 13px "Instrument Sans"; cursor: pointer; }
.rx:hover { border-color: var(--border-strong); color: var(--text); }
.rx.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.rx svg { display: block; }
.rx-count { font-variant-numeric: tabular-nums; }

.share { display: inline-flex; align-items: center; gap: 8px; }
.share-label { font: 600 12px var(--mono); color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.sh { display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: 2px; background: var(--bg); color: var(--text-secondary); font: 600 13px "Instrument Sans"; text-decoration: none; cursor: pointer; }
.sh:hover { border-color: var(--accent); color: var(--accent); }
.sh.copy { padding: 0 12px; }
.sh.copied { color: var(--positive); border-color: var(--positive); }

.comments h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 18px; }
#comment-compose { margin-bottom: 26px; }
.compose { position: relative; border: 1px solid var(--border); border-radius: 2px; padding: 16px; }
.compose-as { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.compose textarea, .verify-box input { width: 100%; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 2px; background: var(--bg); color: var(--text); font: 400 14px "Instrument Sans"; padding: 10px 12px; }
.compose textarea { resize: vertical; min-height: 72px; }
.compose textarea:focus, .verify-box input:focus { outline: none; border-color: var(--accent); }
.compose-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.c-status { font-size: 12.5px; color: var(--text-muted); }
.verify-box { border: 1px solid var(--border); border-radius: 2px; padding: 16px; background: var(--surface); }
.verify-lead { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.verify-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.verify-fields input { flex: 1 1 160px; }
.verify-fields .btn { flex: none; }
.verify-sent { font-size: 13.5px; color: var(--text); line-height: 1.55; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.comment:first-child { border-top: none; }
.c-av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font: 600 13px "Instrument Sans"; }
[data-theme="dark"] .c-av { color: #0c0e12; }
.c-main { min-width: 0; }
.c-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.c-name { font: 600 13.5px "Instrument Sans"; color: var(--text); }
.c-you { font: 600 10px "Instrument Sans"; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 3px; padding: 1px 5px; }
.c-date { font: 400 11.5px var(--mono); color: var(--text-faint); }
.c-body { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin-top: 5px; white-space: pre-wrap; word-wrap: break-word; }
.c-empty { font-size: 13.5px; color: var(--text-faint); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--surface-2); }
footer.site .cols { display: flex; gap: 60px; padding: 44px 36px; max-width: var(--wide); margin: 0 auto; }
footer.site .about { flex: 1.4; }
footer.site .about p { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); max-width: 280px; line-height: 1.6; }
footer.site .about .copy { margin: 16px 0 0; font-size: 11.5px; color: var(--text-faint); }
footer.site .col { flex: 1; }
footer.site .col .h { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin-bottom: 12px; }
footer.site .col a { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 9px; }
footer.site .col a:hover { color: var(--accent); }
/* Compact footer (legal, pricing, blog) */
footer.site .rowbar { display: flex; align-items: center; gap: 20px; padding: 36px; max-width: var(--maxw); margin: 0 auto; font-size: 12.5px; color: var(--text-muted); }
footer.site .rowbar .links { margin-left: auto; display: flex; gap: 18px; }
footer.site .rowbar .links a { color: var(--text-secondary); }
footer.site .rowbar .links a:hover { color: var(--accent); }

/* ---------- Animations ---------- */
@keyframes unblur { 0%,15% { filter: blur(6px); opacity: .5; } 55%,100% { filter: blur(0); opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes growbar { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes feedin { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes dash { 0% { stroke-dashoffset: 900; } 100% { stroke-dashoffset: 0; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes wordcycle {
  0%,28% { transform: translateY(0); }
  33%,61% { transform: translateY(-1.25em); }
  66%,94% { transform: translateY(-2.5em); }
  100% { transform: translateY(-3.75em); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-once, .track > i, .feed-item, .codecard, .revealcard, .pulse-dot,
  .marquee, .contour path, .rotator .cycle > span { animation: none !important; }
  .rotator .cycle { height: auto; }
  .rotator .cycle > span { transform: none !important; }
  .rotator .cycle > span > span:not(:first-child) { display: none; }
  .feed-item, .reveal-once, .shot * { opacity: 1 !important; filter: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 42px; }
  .hero .inner { padding: 56px 22px 0; }
  .section-head h2 { font-size: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat .num { font-size: 58px; }
  .story { flex-direction: column; gap: 28px; }
  .story .progress { flex-direction: row; position: static; width: auto; overflow-x: auto; gap: 12px; }
  .story .progress a { border-bottom: none; padding: 6px 0; }
  .story .chapters { border-left: none; padding-left: 0; gap: 44px; }
  .chapter, .chapter:nth-child(even) { flex-direction: column; gap: 24px; }
  .shot .body { flex-direction: column; }
  .shot .panel { border-right: none; border-bottom: 1px solid var(--surface-2); }
  .stackrow { flex-wrap: wrap; }
  .stackrow .node { min-width: 40%; }
  .capstrip { grid-template-columns: repeat(2, 1fr); }
  .finalcta h2 { font-size: 32px; }
  .finalcta .reveal-input, .hero .reveal-input { flex-direction: column; width: 100%; }
  .reveal-input input { min-width: 0; width: 100%; border-right: 1px solid var(--border-strong); }
  .grid3, .principles, .posts, .tiles { grid-template-columns: 1fr; display: grid; }
  .tiles { display: flex; flex-direction: column; }
  .nav .links { display: none; }
  footer.site .cols { flex-wrap: wrap; gap: 32px; }
  .page-head h1, .blog-head h1 { font-size: 34px; }
  .marquee-head h2 { font-size: 30px; }
}
