/* Quire — design system
   Source spec: blueprint-clean SaaS. Two-tier surface (mist canvas, white
   cards), one saturated accent reserved for filled CTAs, hairline borders
   instead of shadows, and aggressively tightened display tracking.
   Buttons are 12px — never pills. Cards are 8px.

   Token NAMES are held stable from the previous system so the palettes in
   assets/themes/ keep working; only their values and the rules below changed. */

/* ---------- tokens ---------- */
:root {
  /* two-tier surfaces */
  --sky-tint: #f2f4f8;      /* page canvas */
  --paper: #ffffff;         /* card surface */
  --bone: #ffffff;
  --bone-hover: #f7f9fc;
  --mist: #f2f4f8;
  --hairline: rgba(0, 0, 0, 0.08);

  /* ink */
  --ink: #20295a;           /* Indigo Ink — headings, primary text, borders */
  --charcoal: #333333;      /* card body text */
  --graphite: #666666;      /* helper text */
  --fog: #999999;           /* muted text, placeholders */
  --slate-shadow: #444444;

  /* the only raised voice */
  --iris: #2e62ff;          /* Cobalt Signal — filled CTAs only */
  --iris-deep: #1f4ae0;
  --sky-blue: #0099ff;      /* link underlines, ghost accents */
  --iris-grad: linear-gradient(#3f6dff 0%, #2e62ff 100%);

  /* washes — one family, nothing saturated */
  --powder: #e2e9f6;
  --lavender: #e2e9f6;
  --violet: #e2e9f6;
  --aqua: #e2e9f6;
  --mint: #eceff5;
  --solar: #eceff5;
  --peach: #eceff5;

  /* terminal syntax */
  --term-prompt: #7fd7a8;
  --term-cite: #7cc4ff;
  --term-warn: #ffd98a;
  --term-out: rgba(255, 255, 255, 0.76);
  --term-dim: rgba(255, 255, 255, 0.44);

  /* type */
  /* Aeonik is commercial. Geist is the closest geometric grotesque already
     loaded by every page, so the stack prefers it over adding a font request. */
  --display: "Aeonik", "Geist", "DM Sans", "Inter Tight", Inter, system-ui, sans-serif;
  --body: "Aeonik", "Geist", "DM Sans", Inter, system-ui, sans-serif;
  --micro: Inter, "Geist", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* shape — pills only for announcements and chips */
  --r-pill: 9999px;
  --r-btn: 12px;
  --r-card: 8px;
  --r-card-sm: 8px;
  --r-img: 8px;
  --r-input: 8px;
  --r-block: 40px;

  /* the spec forbids shadows on content; kept as no-ops for the palettes */
  --shadow-subtle: none;
  --shadow-large: none;

  /* space */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s7: 56px; --s8: 60px;
  --s9: 80px; --s10: 88px; --s11: 120px; --s12: 160px;

  --wrap: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky-tint);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
header { position: relative; z-index: 40; }
main, footer { position: relative; z-index: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; border-radius: 4px; }

/* ---------- type ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(44px, 7.4vw, 82px); line-height: 0.9; letter-spacing: -0.05em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.044em; }
h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.033em; }
h4 { font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; }
p { margin: 0; color: var(--graphite); line-height: 1.6; }
.hero-type { font-size: clamp(52px, 10vw, 82px); line-height: 0.85; letter-spacing: -0.05em; }
.lede { font-size: 18px; line-height: 1.72; letter-spacing: -0.02em; color: var(--graphite); }
.muted { color: var(--fog); }
.caption { font-family: var(--micro); font-size: 12px; line-height: 1.2; text-transform: uppercase; color: var(--fog); }
.small { font-size: 14px; line-height: 1.5; letter-spacing: -0.02em; }
.mark { background: var(--powder); border-radius: 4px; padding: 0 6px; color: var(--ink); }
.ink-link {
  color: var(--iris);
  background-image: linear-gradient(var(--sky-blue), var(--sky-blue));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease-out);
}
.ink-link:hover { background-size: 100% 1px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(40px, 5.5vw, 80px); }
.section-tight { padding-block: clamp(24px, 3vw, 40px); }
.stack { display: grid; gap: var(--s2); }
.stack-lg { display: grid; gap: var(--s4); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.measure { max-width: 560px; }
.center .measure { margin-inline: auto; }
.grid { display: grid; gap: var(--s2); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.row-center { justify-content: center; }
.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---------- buttons ---------- */
/* Cobalt is the only raised voice, and only ever as a filled CTA. */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--iris); color: #fff;
  font-family: var(--body); font-size: 16px; font-weight: 500;
  letter-spacing: -0.02em;
  padding: 14px 24px; border: 1px solid transparent; border-radius: var(--r-btn);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:hover { background: var(--iris-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--mist); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--powder); }

/* Announcement pill — one of the two places a 9999px radius is allowed */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink);
  background: var(--mist); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 6px 16px;
}
.pill-accent { background: var(--powder); border-color: transparent; color: var(--ink); }
.pill-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #34c77b; display: inline-block;
}

/* ---------- cards ---------- */
/* Separation comes from the border and the surface step, never a shadow. */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--s3);
  display: grid; gap: 12px; align-content: start;
}
.card-sm { padding: var(--s2); }
.card-white { background: var(--paper); }
.card-link { transition: border-color .25s var(--ease-out), transform .25s var(--ease-out); }
.card-link:hover { transform: translateY(-2px); border-color: var(--iris); }
.card .icon { transition: transform .3s var(--ease-out); }
.card-link:hover .icon, .card:hover .icon { transform: scale(1.04); }

.tile {
  border-radius: var(--r-card); padding: var(--s3);
  display: grid; gap: 12px; align-content: start;
  border: 1px solid transparent;
}
.tile-lavender { background: var(--lavender); }
.tile-violet { background: var(--violet); }
.tile-aqua { background: var(--aqua); }
.tile-powder { background: var(--powder); }
.tile-mint { background: var(--mint); }
.tile-solar { background: var(--solar); }
.tile-peach { background: var(--peach); }
.tile-ink {
  background: var(--ink); color: #fff;
  border-radius: var(--r-block); padding: var(--s5);
}
.tile-ink h2, .tile-ink h3, .tile-ink h4 { color: #fff; }
.tile-ink p { color: rgba(255, 255, 255, 0.66); }
.tile-ink .checks li { color: rgba(255, 255, 255, 0.78); }

.icon {
  width: 44px; height: 44px; border-radius: var(--r-card);
  display: grid; place-items: center; background: var(--powder); color: var(--iris);
}

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--sky-tint) 88%, transparent); backdrop-filter: blur(12px); }
.nav-in { display: flex; align-items: center; gap: var(--s3); height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.04em; }

/* Logo: a cited span — three document lines, the middle one live. */
.brand-mark {
  position: relative; width: 26px; height: 26px; flex: none;
  border-radius: 6px; background: var(--iris-grad); overflow: hidden;
  transition: transform .4s var(--ease-out);
}
.brand-mark::before,
.brand-mark::after {
  content: ""; position: absolute; left: 6px; height: 2.5px; border-radius: 1px;
  transition: width .4s var(--ease-out);
}
.brand-mark::before {
  top: 6px; width: 14px; background: rgba(255, 255, 255, .95);
  box-shadow: 0 12px 0 rgba(255, 255, 255, .5);
}
.brand-mark::after { top: 12px; width: 8px; background: var(--term-prompt); }
.brand:hover .brand-mark::after { width: 14px; }

.nav-links { display: flex; gap: var(--s3); margin-left: auto; }
.nav-links a { position: relative; font-size: 14px; letter-spacing: -0.02em; color: var(--graphite); padding: 4px 0; transition: color .2s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--sky-blue); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; color: var(--ink); }

/* ---------- footer ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--hairline); margin-top: var(--s8); }
.footer-in { padding-block: var(--s8) var(--s4); display: grid; gap: var(--s6); }
.footer-cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s4); }
.footer h5 { font-family: var(--body); font-size: 14px; font-weight: 500; margin: 0 0 12px; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: 14px; color: var(--graphite); }
.footer li a:hover { color: var(--iris); }
.footer-base { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: space-between; align-items: center; font-size: 14px; color: var(--fog); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--s3); width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > * { flex: 0 0 340px; }
@keyframes slide { to { transform: translateX(-50%); } }
.logo-strip .marquee-track { gap: var(--s7); animation-duration: 30s; }
.logo-strip .marquee-track > * { flex: 0 0 auto; font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; color: var(--fog); }
.badge-strip .marquee-track { gap: var(--s5); animation-duration: 36s; align-items: center; }
.badge-strip .marquee-track > * { flex: 0 0 auto; }
.badge-strip img { height: 40px; width: auto; display: block; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: var(--s3);
  transition: border-color .25s var(--ease-out);
}
.faq-item:hover { border-color: var(--iris); }
.faq-q {
  width: 100%; background: none; border: 0; padding: 0; text-align: left;
  display: flex; gap: var(--s2); align-items: center; justify-content: space-between;
  font-family: var(--display); font-size: 18px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.03em;
}
.faq-q svg { flex: none; color: var(--iris); transition: transform .3s var(--ease-out); }
.faq-item[open] .faq-q svg, .faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s ease; }
.faq-a > div { overflow: hidden; }
.faq-a[data-open="true"] { grid-template-rows: 1fr; }
.faq-a p { padding-top: 12px; color: var(--graphite); }

/* ---------- tables / pricing ---------- */
.price-head { display: flex; align-items: baseline; gap: 8px; }
.price { font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1.13; letter-spacing: -0.033em; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--charcoal); }
.checks li::before { content: "\2192"; color: var(--iris); flex: none; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--hairline); color: var(--graphite); }
th { font-weight: 500; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--charcoal);
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-input); padding: 11px 16px; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--iris); outline-offset: 0; border-color: var(--iris);
}
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--fog); }

/* ---------- article ---------- */
.article { max-width: 720px; margin-inline: auto; }
.article p { font-size: 18px; line-height: 1.72; margin-block: var(--s2); }
.article h2 { margin-top: var(--s6); font-size: 32px; }
.article h3 { margin-top: var(--s4); font-size: 22px; }
.article ul, .article ol { color: var(--graphite); font-size: 18px; line-height: 1.72; padding-left: 22px; }
.article li { margin-block: 8px; }
.article blockquote {
  margin: var(--s4) 0; padding: var(--s3);
  background: var(--paper); border: 1px solid var(--hairline);
  border-left: 2px solid var(--iris); border-radius: var(--r-card);
  font-family: var(--display); font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; color: var(--ink);
}
.article figure { margin: var(--s4) 0; }
code, .mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0; }
pre {
  background: var(--ink); color: #e8ecf7; border-radius: var(--r-card);
  padding: var(--s2); overflow-x: auto; line-height: 1.6; margin: var(--s2) 0;
}
pre code { color: inherit; }
:not(pre) > code { background: var(--mist); border-radius: 4px; padding: 2px 6px; color: var(--ink); }

/* ---------- dev-tool components ---------- */
.terminal { background: var(--ink); border-radius: var(--r-card); overflow: hidden; text-align: left; }
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.terminal-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--term-dim); }
.terminal pre { margin: 0; border-radius: 0; padding: var(--s2); font-size: 13px; }
.terminal pre + pre { padding-top: 0; }
.t-prompt { color: var(--term-prompt); }
.t-cite { color: var(--term-cite); }
.t-warn { color: var(--term-warn); }
.t-out { color: var(--term-out); }
.t-dim { color: var(--term-dim); }

/* Install bar — a filled CTA that happens to contain a command */
.install {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--ink); border-radius: var(--r-btn);
  padding: 8px 8px 8px 20px; max-width: 100%;
}
.install code { color: #fff; background: none; padding: 0; font-size: 15px; white-space: nowrap; overflow-x: auto; }
.install code::before { content: "$ "; color: var(--term-prompt); }
.install button {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: var(--iris); color: #fff; border: 0;
  font-family: var(--body); font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px;
  transition: background-color .25s var(--ease-out);
}
.install button:hover { background: var(--iris-deep); }
.install button[data-copied="true"] { background: #34c77b; }

/* Hero ribbon — the announcement banner from the spec */
.ribbon {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 6px 16px;
  font-size: 14px; letter-spacing: -0.02em; color: var(--ink);
  transition: border-color .25s var(--ease-out);
}
.ribbon:hover { border-color: var(--iris); }
.ribbon i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #34c77b; }
.ribbon b { font-weight: 500; }
.ribbon span { color: var(--fog); }
.ribbon svg { flex: none; color: var(--fog); transition: transform .25s var(--ease-out); }
.ribbon:hover svg { transform: translateX(3px); color: var(--iris); }
@media (max-width: 520px) { .ribbon span, .ribbon svg { display: none; } }

/* Mono chips for versions, licences, languages */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--graphite);
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 4px 10px;
}
.badge-accent { color: var(--iris); background: var(--powder); border-color: transparent; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Contributor grid — initials stand in for avatars on a static site */
.avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 500; color: var(--ink); background: var(--powder);
  transition: transform .25s var(--ease-out);
}
.avatars span:hover { transform: translateY(-2px); }

.tree { font-family: var(--mono); font-size: 13px; color: var(--graphite); line-height: 1.9; }
.tree b { color: var(--ink); font-weight: 500; }

/* Terminal cast — transcript lives in the markup, the player only re-reveals it */
.cast { display: grid; gap: 8px; }
.cast .terminal-bar span { flex: 1; }
.cast-btn {
  flex: none; background: rgba(255, 255, 255, 0.1); color: #fff; border: 0;
  font-family: var(--body); font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 8px;
  transition: background-color .25s var(--ease-out);
}
.cast-btn:hover { background: rgba(255, 255, 255, 0.22); }
.cast-screen { margin: 0; border-radius: 0; padding: var(--s2); font-size: 13px; }
.cast-line { display: block; min-height: 1.55em; }
.cast-armed .cast-line { opacity: 0; }
.cast-armed .cast-line.on { opacity: 1; }
.cast-line.typing::after { content: "▋"; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.cast-rail { height: 2px; border-radius: 1px; background: var(--hairline); overflow: hidden; }
.cast-rail i { display: block; height: 100%; width: 0; background: var(--iris); transition: width .2s linear; }
@media (max-width: 640px) { .cast-screen { font-size: 11px; } }

/* ---------- misc bits ---------- */
.stat { display: grid; gap: 4px; }
.stat b {
  font-family: var(--display); font-weight: 400; font-size: 40px;
  line-height: 1.13; letter-spacing: -0.033em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.timeline { display: grid; gap: 8px; }
.timeline-row {
  display: grid; grid-template-columns: 140px 1fr; gap: var(--s2);
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: var(--s2);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--powder);
  display: grid; place-items: center; font-size: 13px; color: var(--ink);
}
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }

/* ---------- motion ---------- */
/* .wrap:first-child matters — blog posts hold their body in sibling .wrap
   blocks, and without it the article text would start at opacity 0. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
main > .section:first-child > .wrap:first-child > * { animation: rise .7s var(--ease-out) both; }
main > .section:first-child > .wrap:first-child > :nth-child(1) { animation-delay: .04s; }
main > .section:first-child > .wrap:first-child > :nth-child(2) { animation-delay: .10s; }
main > .section:first-child > .wrap:first-child > :nth-child(3) { animation-delay: .16s; }
main > .section:first-child > .wrap:first-child > :nth-child(4) { animation-delay: .22s; }
main > .section:first-child > .wrap:first-child > :nth-child(5) { animation-delay: .28s; }
main > .section:first-child > .wrap:first-child > :nth-child(6) { animation-delay: .34s; }
main > .section:first-child > .wrap:first-child > :nth-child(7) { animation-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  main > .section:first-child > .wrap:first-child > * { animation: none; }
  .brand-mark, .card-link, .card .icon, .nav-links a::after { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav[data-open="true"] .nav-links {
    display: grid; position: absolute; left: 16px; right: 16px; top: 64px;
    background: var(--paper); border: 1px solid var(--hairline);
    border-radius: var(--r-card); padding: var(--s2); gap: 12px;
  }
  .nav[data-open="true"] .nav-links a { font-size: 16px; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .tile-ink { padding: var(--s3); border-radius: var(--r-card); }
  .marquee-track > * { flex: 0 0 280px; }
  .timeline-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-cols { grid-template-columns: 1fr; }
}
