:root {
    --ink: #050505;
    --ink-2: #0a0a0a;
    --paper: #f4f4ef;
    --paper-2: #ebeae4;
    --line-dark: rgba(255,255,255,.1);
    --line-paper: rgba(8,8,8,.12);
    --text: #f4f4ef;
    --muted: rgba(255,255,255,.58);
    --muted-paper: rgba(8,8,8,.58);
    --ink-on-paper: #080808;
    --faint-paper: rgba(8,8,8,.42);
    --signal: #2c51e0;
    --blue: #2c51e0;
    --blue-hover: #3558e8;
    --blue-soft: #e8edfb;
    --blue-glow: rgba(44,81,224,.16);
    --blue-active: #2446c4;
    --surface: #fff;
    --ok: #2f7a57;
    --sans: "Inter", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --ease: cubic-bezier(.22,1,.36,1);
    --ease-fast: 160ms ease;
    --max: 1120px;
    --max-wide: 1200px;
    --pad-x: clamp(1.25rem, 4vw, 2.5rem);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-inner: 8px;
    --radius-btn: 4px;
    --shadow: 0 1px 2px rgba(18,20,26,.03), 0 10px 28px rgba(18,20,26,.06);
    --shadow-lg: 0 2px 6px rgba(18,20,26,.04), 0 16px 40px rgba(18,20,26,.08);
    --focus-ring: 0 0 0 3px var(--blue-glow);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink-on-paper);
    background: var(--paper);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  main { flex: 1; position: relative; z-index: 1; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; }
  img { max-width: 100%; display: block; }

  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
  }

  .skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--signal); color: #fff; padding: 8px 12px;
    border-radius: var(--radius-btn); font-weight: 600; font-size: 14px;
  }
  .skip-link:focus { left: 12px; top: 12px; }

  .wrap {
    width: min(var(--max), calc(100% - 2 * var(--pad-x)));
    margin-inline: auto;
  }
  .wrap-wide {
    width: min(var(--max-wide), calc(100% - 2 * var(--pad-x)));
    margin-inline: auto;
  }

  /* NAV - landing dark shell */
  .nav-shell {
    position: sticky; top: 0; z-index: 40;
    background: rgba(5,5,5,.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease;
  }
  .nav-shell.is-scrolled { border-bottom-color: var(--line-dark); }
  .nav {
    display: grid;
    grid-template-columns: minmax(8rem,1fr) auto minmax(8rem,1fr);
    align-items: center;
    min-height: 4rem;
    width: min(var(--max-wide), calc(100% - 2 * var(--pad-x)));
    margin-inline: auto;
  }
  .brand {
    justify-self: start;
    display: inline-flex; align-items: center; gap: .65rem;
    color: #fff;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase;
  }
  .brand:hover { color: #fff; }
  .brand svg { flex-shrink: 0; }
  .desktop-nav {
    display: flex; align-items: center; gap: 1.5rem;
  }
  .desktop-nav a {
    color: rgba(255,255,255,.72);
    font-size: .9rem; font-weight: 500;
    letter-spacing: -.01em;
    transition: color .15s ease;
  }
  .desktop-nav a:hover,
  .desktop-nav a.is-current { color: #fff; }
  .nav-actions {
    justify-self: end;
    display: inline-flex; align-items: center; gap: .5rem;
  }
  .btn-ghost {
    display: inline-flex; align-items: center;
    min-height: 2.15rem; padding: 0 .95rem;
    border-radius: var(--radius-btn);
    color: rgba(255,255,255,.85);
    background: transparent;
    border: 1px solid rgba(255,255,255,.14);
    font-size: .9rem; font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
  }
  .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
  .btn-cta,
  .btn-primary {
    display: inline-flex; align-items: center; gap: .3rem;
    min-height: 2.15rem; padding: 0 1rem;
    border-radius: var(--radius-btn);
    border: 0; cursor: pointer;
    background: var(--signal); color: #fff;
    font-size: .9rem; font-weight: 600; letter-spacing: -.01em;
    transition: background .15s ease;
    font-family: var(--sans);
  }
  .btn-cta:hover,
  .btn-primary:hover { background: var(--blue-hover); color: #fff; }
  .btn-cta:active,
  .btn-primary:active { background: var(--blue-active); }
  .btn-lg { min-height: 2.5rem; padding: 0 1.25rem; font-size: 1rem; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 14px;
    border-radius: var(--radius-btn);
    padding: 10px 20px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--sans);
    transition: background var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast);
  }
  .btn-secondary {
    background: var(--surface); color: var(--ink-on-paper); border-color: var(--line-paper);
    border-radius: var(--radius-btn);
  }
  .btn-secondary:hover { border-color: #c5d0f5; color: var(--blue); }
  .nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(255,255,255,.18);
    background: transparent;
    color: #fff; cursor: pointer;
    align-items: center; justify-content: center;
  }
  .mobile-menu {
    display: none;
    border-top: 1px solid var(--line-dark);
    padding: .75rem var(--pad-x) 1.25rem;
    background: var(--ink);
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a {
    display: block; padding: .8rem 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.05rem; font-weight: 500;
    color: rgba(255,255,255,.85);
  }
  .mobile-menu a:hover { color: #fff; }
  .mobile-menu .mobile-cta { margin-top: 1rem; }

  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

  /* FOOTER - landing dark waitlist */
  .site-footer {
    background: #000;
    color: #fff;
    padding: clamp(4rem, 8vw, 6rem) 0 1.5rem;
  }
  .footer-main {
    display: grid;
    grid-template-columns: 1.3fr auto;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
  }
  .footer-cta h2 {
    margin: 0 0 .75rem;
    max-width: 16ch;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 510;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: #fff;
  }
  .footer-cta p {
    margin: 0 0 1.25rem;
    max-width: 34ch;
    color: rgba(255,255,255,.52);
    font-size: 1rem;
  }
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 2rem;
    font-family: var(--mono);
    color: rgba(255,255,255,.45);
    font-size: .72rem;
    letter-spacing: .08em;
  }
  .footer-col-title { margin: 0 0 .9rem; font-weight: 400; }
  .footer-col-list {
    display: grid; gap: .55rem;
    margin: 0; padding: 0; list-style: none;
  }
  .footer-col-list a {
    color: #fff;
    letter-spacing: 0;
    font-family: var(--sans);
    font-size: .92rem;
  }
  .footer-col-list a:hover { opacity: .7; }
  .footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.42);
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .06em;
  }
  .footer-meta a { color: rgba(255,255,255,.42); }
  .footer-meta a:hover { color: #f4f4ef; }
  .footer-meta-links { display: flex; gap: 1rem; }

  /* Blog index */
  .blog-index { padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 5.5rem); }

  .blog-hero {
    max-width: 40rem;
    margin-bottom: 2rem;
  }
  .blog-hero h1 {
    margin: 0 0 .85rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 510;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: var(--ink-on-paper);
    text-wrap: balance;
  }
  .blog-hero .lead {
    margin: 0 0 .5rem;
    color: var(--muted-paper);
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.55;
    letter-spacing: -.015em;
  }
  .blog-hero .topics-line {
    margin: 0;
    font-size: .88rem;
    color: var(--faint-paper);
    letter-spacing: -.01em;
  }

  .cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 2.25rem;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 500;
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--line-paper);
    background: var(--surface);
    color: var(--muted-paper);
    cursor: default;
  }
  .pill .count {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--faint-paper);
  }
  .pill.is-selected {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
  }
  .pill.is-selected .count { color: rgba(255,255,255,.65); }

  .featured {
    background: var(--surface);
    border: 1px solid var(--line-paper);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 3rem;
    max-width: 48rem;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .featured:hover {
    border-color: rgba(44,81,224,.28);
    box-shadow: 0 10px 28px rgba(8,8,8,.05);
  }
  .featured-meta,
  .card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .featured-meta time,
  .card-meta time {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--faint-paper);
    letter-spacing: .02em;
  }
  .cat-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--signal);
    background: var(--blue-soft);
    padding: .22rem .55rem;
    border-radius: 999px;
  }
  .featured h2 {
    margin: 0 0 .65rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 560;
    letter-spacing: -.03em;
    line-height: 1.2;
  }
  .featured h2 a { color: var(--ink-on-paper); }
  .featured h2 a:hover { color: var(--blue); }
  .featured .excerpt {
    margin: 0 0 1rem;
    color: var(--muted-paper);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 40rem;
  }
  .featured-foot,
  .card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .byline-author {
    font-size: .88rem;
    color: var(--muted-paper);
  }
  .read-more {
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink-on-paper);
    border-bottom: 1px solid rgba(8,8,8,.28);
    padding-bottom: .1rem;
  }
  .read-more:hover { border-color: #080808; color: var(--ink-on-paper); }

  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 1rem;
  }
  .section-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 560;
    letter-spacing: -.025em;
    color: var(--ink-on-paper);
  }

  .topic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .75rem;
    margin-bottom: 3rem;
  }
  .topic-card {
    background: var(--surface);
    border: 1px solid var(--line-paper);
    border-radius: var(--radius);
    padding: 1rem 1.05rem 1.15rem;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .topic-card:hover {
    border-color: rgba(44,81,224,.3);
    box-shadow: 0 8px 22px rgba(8,8,8,.04);
  }
  .topic-card .topic-name {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--ink-on-paper);
    margin: 0 0 .4rem;
  }
  .topic-card p {
    margin: 0;
    font-size: .85rem;
    color: var(--muted-paper);
    line-height: 1.45;
  }

  .latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .post-card {
    background: var(--surface);
    border: 1px solid var(--line-paper);
    border-radius: var(--radius);
    padding: 1.35rem 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 168px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }
  .post-card:hover {
    border-color: rgba(44,81,224,.3);
    box-shadow: 0 10px 28px rgba(8,8,8,.05);
    transform: translateY(-2px);
  }
  .post-card h4 {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
    font-weight: 560;
    letter-spacing: -.02em;
    line-height: 1.3;
  }
  .post-card h4 a { color: var(--ink-on-paper); }
  .post-card h4 a:hover { color: var(--blue); }
  .post-card .excerpt {
    margin: 0 0 .9rem;
    color: var(--muted-paper);
    font-size: .92rem;
    line-height: 1.5;
    flex: 1;
  }

  /* Article */
  .article { max-width: 42rem; padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 5.5rem); }
  .article-head { margin-bottom: 2rem; }
  .article-head .cat-badge { margin-bottom: .5rem; }
  .crumb {
    font-size: .85rem;
    color: var(--faint-paper);
    margin: 0 0 1rem;
  }
  .crumb a { color: var(--muted-paper); }
  .crumb a:hover { color: var(--ink-on-paper); }
  .article-head h1 {
    margin: .65rem 0 1rem;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 510;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: var(--ink-on-paper);
    text-wrap: balance;
  }
  .byline {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: .9rem; color: var(--muted-paper); margin: 0 0 1rem;
  }
  .byline .author { font-weight: 600; color: var(--ink-on-paper); }
  .byline time {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--faint-paper);
  }
  .byline .sep { color: rgba(8,8,8,.22); }
  .byline .updated { color: var(--faint-paper); font-size: .85rem; }
  .deck {
    margin: 0;
    color: var(--muted-paper);
    font-size: 1.05rem;
    line-height: 1.55;
    letter-spacing: -.01em;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-paper);
  }
  .prose {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(8,8,8,.78);
  }
  .prose p { margin: 0 0 1.15em; }
  .prose h2 {
    font-size: 1.3rem;
    font-weight: 560;
    letter-spacing: -.025em;
    color: var(--ink-on-paper);
    margin: 2em 0 0.65em;
    line-height: 1.25;
  }
  .prose ul { margin: 0 0 1.15em; padding-left: 1.25rem; }
  .prose li { margin-bottom: 0.45em; }
  .prose strong { color: var(--ink-on-paper); font-weight: 600; }
  .prose code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--paper-2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--line-paper);
  }
  .prose a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .prose a:hover { color: var(--blue-hover); }
  .article-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; margin-top: 3rem; padding-top: 1.5rem;
    border-top: 1px solid var(--line-paper);
  }
  .article-foot .back {
    font-weight: 500;
    font-size: .9rem;
    color: var(--muted-paper);
    border-bottom: 1px solid rgba(8,8,8,.2);
    padding-bottom: .1rem;
  }
  .article-foot .back:hover { color: var(--ink-on-paper); border-color: #080808; }

  /* Waitlist modal - landing parity */
  .wl-overlay {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    background: rgba(5,5,5,.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .wl-overlay[hidden] { display: none !important; }
  .wl-modal {
    position: relative;
    width: min(440px, 100%);
    background: var(--surface);
    border: 1px solid #e4e0d6;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px 24px 20px;
    max-height: min(92vh, 720px);
    overflow: auto;
    color: #12141a;
    animation: wl-in .18s ease-out;
  }
  @keyframes wl-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: none; }
  }
  .wl-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 999px;
    border: 1px solid #e4e0d6; background: #f5f2ea;
    color: #5c6478; cursor: pointer;
    display: grid; place-items: center;
    font-size: 16px; line-height: 1; padding: 0;
  }
  .wl-close:hover { color: #12141a; }
  .wl-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500; color: #5c6478;
    background: #f5f2ea; border: 1px solid #e4e0d6; border-radius: 999px;
    padding: 4px 10px; margin-bottom: 12px;
  }
  .wl-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
  .wl-modal h2 {
    margin: 0 0 8px; font-size: 1.35rem; font-weight: 600;
    letter-spacing: -.025em; line-height: 1.2; padding-right: 28px;
    color: #12141a;
  }
  .wl-lead { margin: 0 0 16px; color: #5c6478; font-size: 14px; line-height: 1.5; }
  .wl-form { display: grid; gap: 12px; }
  .wl-field { display: grid; gap: 6px; }
  .wl-field label {
    font-size: 12px; font-weight: 600; color: #1e293b;
    display: flex; align-items: baseline; gap: 6px;
  }
  .wl-field label .opt { font-weight: 500; color: #8b93a7; font-size: 12px; }
  .wl-field input, .wl-field select, .wl-field textarea {
    width: 100%; font-family: var(--sans); font-size: 14px; color: #12141a;
    background: #f5f2ea; border: 1px solid #d4cfc4; border-radius: var(--radius-inner);
    padding: 10px 12px; outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }
  .wl-field input:focus, .wl-field select:focus, .wl-field textarea:focus {
    border-color: var(--blue); background: #fff; box-shadow: var(--focus-ring);
  }
  .wl-field textarea { resize: vertical; min-height: 56px; max-height: 120px; line-height: 1.4; }
  .wl-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238b93a7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
  }
  .wl-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 480px) { .wl-row-2 { grid-template-columns: 1fr; } }
  .wl-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .wl-consent {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: #3a4154; line-height: 1.45;
  }
  .wl-consent input[type="checkbox"] {
    margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto;
    accent-color: var(--blue);
  }
  .wl-consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
  .wl-error {
    margin: 0; font-size: 13px; color: #b42318; line-height: 1.4;
    background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px;
    padding: 8px 10px;
  }
  .wl-error[hidden] { display: none !important; }
  .wl-actions .btn-primary:disabled { opacity: .65; cursor: wait; }
  .wl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .wl-actions .btn-primary,
  .wl-actions .btn {
    flex: 1 1 auto; min-width: 140px; min-height: 2.5rem;
    border: 0; border-radius: var(--radius-btn); cursor: pointer;
    background: var(--blue); color: #fff; font-weight: 600; font-size: .95rem;
    padding: 0 1rem;
  }
  .wl-actions .btn-primary:hover,
  .wl-actions .btn:hover { background: var(--blue-hover); }
  .wl-actions .btn-ghost,
  .wl-actions .btn-ghost-wl {
    min-height: 2.5rem; padding: 0 1rem; border-radius: var(--radius-btn); cursor: pointer;
    border: 1px solid #d4cfc4; background: transparent; color: #5c6478; font-size: .92rem;
  }
  .wl-micro { margin: 12px 0 0; font-size: 12px; color: #8b93a7; text-align: center; }
  .wl-success { text-align: center; padding: 12px 4px 6px; }
  .wl-success[hidden] { display: none !important; }
  .wl-success-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: #e7f3ec; color: var(--ok);
    display: grid; place-items: center; margin: 0 auto 14px;
  }
  .wl-success h2 { padding-right: 0; margin-bottom: 8px; }
  .wl-success .echo {
    font-family: var(--mono); font-size: 12px; color: var(--blue);
    background: var(--blue-soft); border: 1px solid #c5d0f5;
    border-radius: 8px; padding: 8px 12px; display: inline-block;
    margin: 4px 0 14px; word-break: break-all;
  }
  .wl-success p { margin: 0 0 16px; color: #5c6478; font-size: 14px; }
  .wl-success .btn-secondary {
    min-height: 2.4rem; padding: 0 1.1rem; border-radius: var(--radius-btn); cursor: pointer;
    border: 1px solid #d4cfc4; background: #f5f2ea; color: #12141a; font-weight: 500;
  }

  @media (max-width: 960px) {
    .nav {
      grid-template-columns: 1fr auto;
      width: calc(100% - 2 * var(--pad-x));
    }
    .desktop-nav { display: none; }
    .nav-actions .btn-ghost { display: none; }
    .nav-toggle { display: inline-flex; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: 1fr 1fr; }
    .topic-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 720px) {
    .topic-grid { grid-template-columns: 1fr 1fr; }
    .latest-grid { grid-template-columns: 1fr; }
    .featured { padding: 1.35rem; }
    .article { padding: 1.75rem 0 3.5rem; }
  }
  @media (max-width: 640px) {
    .footer-nav { grid-template-columns: 1fr; }
    .footer-meta { flex-direction: column; align-items: flex-start; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wl-modal { animation: none; }
    .post-card { transition: none; }
    .post-card:hover { transform: none; }
  }
