/* M²-Squared — dark teal & gold. All styling lives here (CSP: style-src 'self'). */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --bg: #051214;
  --bg-2: #071a1d;
  --surface: #0b2226;
  --surface-2: #0f2c31;
  --line: rgba(160, 220, 210, .12);
  --line-2: rgba(160, 220, 210, .22);
  --text: #e7f0ee;
  --muted: #93aca8;
  --dim: #5f7a77;
  --teal: #19b3a6;
  --teal-2: #0e7c78;
  --green: #00b865;
  --gold: #d9b56c;
  --gold-2: #f1d699;
  --gold-ink: #1b1406;
  --red: #e0675b;
  --radius: 14px;
  --wrap: 1180px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-2); letter-spacing: 0; }
h1 em, h2 em { font-size: 1.08em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--gold-ink); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.02); transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { border-color: var(--gold); color: #fff; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: transparent; box-shadow: 0 6px 30px -8px rgba(217,181,108,.55); }
.btn-gold:hover { color: var(--gold-ink); box-shadow: 0 10px 40px -8px rgba(217,181,108,.75); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(5,18,20,.82); backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand sup { font-size: .6em; color: var(--gold); }
.logo-mark { width: 30px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font: 500 .92rem var(--sans); background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current] { color: var(--text); }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .chev { transform: rotate(225deg) translateY(-1px); }
.has-sub { position: relative; }
.sub { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: rgba(9,30,33,.97); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.sub a:hover, .sub a[aria-current] { background: rgba(217,181,108,.08); color: var(--gold-2); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: none; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 1.5px; background: var(--text); margin-inline: auto; position: relative; transition: transform .25s, background .25s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .site-nav { position: fixed; inset: 72px 0 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 16px 40px; background: rgba(5,18,20,.98); overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
  .site-nav.open { transform: none; }
  .site-nav > ul { flex-direction: column; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: none; border: 0; box-shadow: none; padding: 4px 0 8px 8px; }
  .has-sub.open .sub { display: block; }
  .site-nav .btn { justify-content: center; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) { .site-nav { transition: none; } }

/* ---------------------------------------------------------------- hero story */
.story { position: relative; background: radial-gradient(120% 80% at 50% 40%, #0a2a2c 0%, var(--bg) 60%); }
.js-motion .story { height: 460vh; }
.story-stage { position: relative; min-height: 100svh; overflow: hidden; display: grid; }
.js-motion .story-stage { position: sticky; top: 0; height: 100svh; }
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-copy { position: relative; z-index: 2; align-self: center; padding: 120px 0 80px; pointer-events: none; }
.story-copy a, .story-copy button { pointer-events: auto; }
.beat { max-width: 640px; }
.js-motion .beat { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-motion .story-copy { position: absolute; inset: 0; padding: 0; width: min(100% - 32px, var(--wrap)); height: 100%; margin-inline: auto; align-self: stretch; }
.js-motion .beat { top: 50%; transform: translateY(calc(-50% + 24px)); }
.js-motion .beat.on { opacity: 1; transform: translateY(-50%); }
.js-motion .beat:not(.on) { visibility: hidden; transition: opacity .6s ease, transform .6s ease, visibility 0s .6s; }
.js-motion .beat-2, .js-motion .beat-3 { top: auto; bottom: 9vh; transform: translateY(24px); max-width: 520px; }
.js-motion .beat-3 { max-width: 330px; }
.js-motion .beat-2.on, .js-motion .beat-3.on { transform: none; }
.js-motion .beat-2 { left: 50%; transform: translate(-50%, 24px); text-align: center; }
.js-motion .beat-2.on { transform: translate(-50%, 0); }
.beat-3 { pointer-events: auto; }
.beat h1, .beat h2 { text-wrap: balance; }
.beat p { color: var(--muted); font-size: 1.1rem; }
.js-motion .beat-1 h1 { text-shadow: 0 2px 30px rgba(5,18,20,.9); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); transition: opacity .4s; }
.js-motion .scroll-cue { display: flex; }
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }
.scroll-cue.hide { opacity: 0; }

/* Branch & leaf labels drawn over the canvas — real buttons, keyboard reachable */
.nodes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.node { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); pointer-events: auto; opacity: 0; transition: opacity .5s, color .2s, border-color .2s, background .2s; will-change: transform; }
.node.show { opacity: 1; }
.branch { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(217,181,108,.28); background: rgba(6,24,26,.72); backdrop-filter: blur(6px); color: var(--text); font: 600 .9rem var(--sans); cursor: pointer; white-space: nowrap; }
.branch small { font: 400 .72rem var(--sans); color: var(--muted); }
.branch:hover, .branch.active { border-color: var(--gold); background: rgba(30,32,18,.8); color: var(--gold-2); }
.leaf { font: 500 .78rem var(--sans); color: var(--muted); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6,24,26,.85); white-space: nowrap; pointer-events: none; }
.leaf.gap { color: var(--gold-2); border-color: rgba(217,181,108,.5); }
.core-label { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0; transition: opacity .6s; }
.core-label.show { opacity: 1; }
.core-label b { display: block; font: 400 2.1rem/1 var(--serif); color: var(--gold-ink); }
.core-label span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(27,20,6,.75); font-weight: 700; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* Platform pillars — the accessible twin of the hero burst */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg); padding: 30px 28px 32px; position: relative; transition: background .25s; }
.pillar:hover, .pillar.hl { background: var(--surface); }
.pillar-n { font: 400 1.6rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: 14px; }
.pillar p { color: var(--muted); font-size: .95rem; }
.pillar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pillar li { font-size: .78rem; color: var(--text); padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; }

/* Console mock: KPI strip + agent bar */
.console { margin-top: 56px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, rgba(15,44,49,.7), rgba(7,26,29,.7)); padding: 22px; box-shadow: 0 40px 120px -40px rgba(25,179,166,.25); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.kpi { padding: 16px 18px; border-radius: 12px; background: rgba(5,18,20,.6); border: 1px solid var(--line); }
.kpi dt { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.kpi dd { margin: 6px 0 0; font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.kpi dd small { font-size: .75rem; font-weight: 500; color: var(--green); }
.kpi dd small.warn { color: var(--gold); }
.agent { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 14px; border-radius: 999px; border: 1px solid rgba(217,181,108,.35); background: rgba(5,18,20,.8); }
.agent-orb { width: 30px; height: 30px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #fff6dc, var(--gold) 40%, #6b4c12 75%); box-shadow: 0 0 22px rgba(217,181,108,.7); animation: orb 3.2s ease-in-out infinite; }
@keyframes orb { 50% { box-shadow: 0 0 34px rgba(217,181,108,.95); transform: scale(1.06); } }
.agent-q { flex: 1; color: var(--text); font-size: .95rem; min-height: 1.5em; }
.agent-q::after { content: "▍"; color: var(--gold); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.agent-tag { font-size: .75rem; color: var(--gold-2); border: 1px solid rgba(217,181,108,.35); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.console-note { font-size: .78rem; color: var(--dim); margin: 14px 4px 0; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } .agent-tag { display: none; } }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ticks li { padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.ticks strong { display: block; margin-bottom: 2px; }
.ticks span { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font: 400 1.5rem/1 var(--serif); color: var(--gold); margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card a { display: flex; flex-direction: column; height: 100%; padding: 24px 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.card a:hover { border-color: rgba(217,181,108,.5); background: var(--surface-2); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .93rem; flex: 1; }
.card-go { color: var(--gold); font-size: 1.2rem; transition: transform .2s; }
.card a:hover .card-go { transform: translateX(4px); }
.cards-group { margin-top: 56px; }
.cards-group > h2 { font-size: 1.5rem; margin-bottom: 18px; }

/* Frameworks strip */
.frameworks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-weight: 600; letter-spacing: .06em; font-size: .85rem; }
.frameworks li { display: flex; align-items: center; gap: 28px; }
.frameworks li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-left: -18px; margin-right: -10px; }

/* CTA band */
.cta-band { text-align: center; padding: clamp(64px, 9vw, 110px) 24px; border-radius: 24px; background: radial-gradient(80% 120% at 50% 0%, rgba(217,181,108,.16), transparent 60%), var(--surface); border: 1px solid var(--line-2); }
.cta-band .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- inner pages */
.page-hero { padding: 150px 0 64px; background: radial-gradient(70% 90% at 80% 0%, rgba(25,179,166,.14), transparent 60%), radial-gradient(50% 70% at 0% 0%, rgba(217,181,108,.08), transparent 60%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 20ch; }
.crumbs { font-size: .8rem; color: var(--dim); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #c4d5d2; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); }
.aside { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); position: sticky; top: 96px; }
.aside h2 { font-size: 1.2rem; }
.aside p { color: var(--muted); font-size: .95rem; }
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.downloads a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); font-size: .9rem; }
.downloads a:hover { border-color: var(--gold); }
.downloads a::after { content: "PDF ↓"; color: var(--gold); font-size: .75rem; white-space: nowrap; }
.myths { display: grid; gap: 12px; list-style: none; padding: 0; }
.myths li { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.myths b { display: block; color: var(--red); font-weight: 500; margin-bottom: 6px; }
.myths span { color: #c4d5d2; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 28px 0; }
.stat-row li { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stat-row b { display: block; font: 400 2.4rem/1 var(--serif); color: var(--gold-2); margin-bottom: 8px; }
.stat-row span { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }
.mailboxes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mailboxes li { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mailboxes h3 { margin-bottom: 4px; }
.mailboxes p { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.mailboxes a { font-size: .9rem; word-break: break-all; }
.notice { border-left: 3px solid var(--gold); padding: 14px 18px; background: rgba(217,181,108,.06); border-radius: 0 10px 10px 0; color: #c4d5d2; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: #041012; padding: 72px 0 28px; margin-top: 0; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-brand p, .foot-brand address { color: var(--muted); font-style: normal; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-h { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- hero extras */
.node { visibility: hidden; }
.node.show { visibility: visible; }
html:not(.js-motion) .beat-2 { display: none; }
html:not(.js-motion) .story-canvas { opacity: .55; }
html:not(.js-motion) .story-stage { min-height: 92svh; }
html:not(.js-motion) .story-copy { width: min(100% - 32px, var(--wrap)); margin-inline: auto; display: grid; gap: 40px; align-content: start; padding-top: 140px; }
html:not(.js-motion) .nodes, html:not(.js-motion) .core-label { display: none; }
@media (max-width: 1099px) {
  .js-motion .beat-3 { top: 92px; bottom: auto; transform: translateY(-12px); max-width: none; right: 0; text-align: center; }
  .js-motion .beat-3.on { transform: none; }
  .js-motion .beat-3 .eyebrow, .js-motion .beat-3 p { display: none; }
  .js-motion .beat-3 h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
}
@media (max-width: 760px) {
  .js-motion .beat-1 h1 { font-size: 2.3rem; }
  .js-motion .beat-3 { top: 96px; bottom: auto; transform: translateY(-12px); max-width: none; right: 0; }
  .js-motion .beat-3.on { transform: none; }
  .js-motion .beat-3 p, .js-motion .beat-3 .btn-row { display: none; }
  .js-motion .beat-3 h2 { font-size: 1.6rem; }
  .branch { padding: 6px 9px; font-size: .74rem; }
  .branch small { display: none; }
  .leaf { font-size: .66rem; padding: 3px 7px; }
}

/* ---------------------------------------------------------------- blog */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { font: 500 .82rem var(--sans); color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.posts { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.post-card a:hover { border-color: rgba(217,181,108,.5); transform: translateY(-2px); }
.post-card img, .post-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, var(--surface-2), #13383b); }
.post-card .post-meta { margin: 16px 20px 6px; }
.post-card h3 { margin: 0 20px 8px; font-size: 1.08rem; }
.post-card p { margin: 0 20px 12px; color: var(--muted); font-size: .9rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-stars { margin: 0 20px 18px; color: var(--gold); font-size: .8rem; min-height: 1.2em; }
.post-meta { font-size: .8rem; color: var(--dim); letter-spacing: .02em; }
.post-hero h1 { max-width: 26ch; }
.post-body { padding: 48px 0 80px; }
.post-body .prose { margin-inline: auto; font-size: 1.06rem; }
.post-cover { width: 100%; max-width: 900px; margin: 0 auto 48px; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1200 / 630; object-fit: cover; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 10px; border: 1px solid var(--line); height: auto; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.35rem; color: var(--text); }
.prose pre { background: #031012; border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; font-size: .88rem; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: var(--gold-2); }
.prose a { word-break: break-word; }
.rating { max-width: 72ch; margin: 56px auto 0; padding: 26px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); text-align: center; }
.rating fieldset { border: 0; margin: 0; padding: 0; }
.rating legend { font-weight: 600; margin: 0 auto 10px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; font-size: 2rem; line-height: 1; color: var(--dim); transition: color .15s, transform .15s; }
.stars label::before { content: "★"; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--gold); }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.stars input:disabled + label { cursor: default; transform: none; }
.rating-summary { color: var(--muted); font-size: .9rem; margin: 10px 0 0; min-height: 1.4em; }
.post-nav { max-width: 72ch; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); font-size: .92rem; }
.post-nav a:hover { border-color: var(--gold); }
.post-nav .newer { text-align: right; }
.post-nav small { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }

.leaf-caption { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 28px; margin: 0; text-align: center; font-size: .82rem; color: var(--muted); opacity: 0; transition: opacity .4s; }
.leaf-caption.show { opacity: 1; }
.leaf-caption b { display: block; color: var(--gold-2); font-size: .95rem; margin-bottom: 4px; }
@media (max-width: 759px) { .core-label b { font-size: 1.15rem; } }
.aside-h { margin-top: 28px; }
.aside .btn-row { margin-top: 16px; }
.prose ol { padding-left: 1.3em; }
.page-hero + .section { padding-top: clamp(48px, 6vw, 72px); }
