/* ============================================================
   ANIMDOCK — Shared Style System
   All pages except editor (editor uses /assets/editor.css)
   ============================================================ */

/* ---- Design Tokens ---- */
:root, [data-theme="light"] {
  --bg: #F2F0F0;
  --surface: #FFFFFF;
  --text: #101111;
  --muted: #6B6B6B;

  --accent: #FF5466;
  --accent-hover: #E0394A;
  --accent-text: #FFFFFF;

  --hair: rgba(16,17,17,0.10);
  --border: #E0DEDE;
  --card: rgba(16,17,17,0.025);
  --card-border: rgba(16,17,17,0.12);

  --chip: rgba(16,17,17,0.04);
  --hover: rgba(16,17,17,0.05);
  --dot: rgba(16,17,17,1);
  --danger: #E05A30;

  --header-bg: rgba(242,240,240,0.82);
  --ph-strong: #101111;
  --ph-dim: rgba(16,17,17,0.30);
}
[data-theme="dark"] {
  --bg: #0C0D0D;
  --surface: #111212;
  --text: #F2F0F0;
  --muted: #8A8A8A;

  --hair: rgba(242,240,240,0.12);
  --border: #242525;
  --card: rgba(242,240,240,0.028);
  --card-border: rgba(242,240,240,0.12);

  --chip: rgba(242,240,240,0.05);
  --hover: rgba(242,240,240,0.06);
  --dot: rgba(242,240,240,1);

  --header-bg: rgba(12,13,13,0.72);
  --ph-strong: #FFFFFF;
  --ph-dim: rgba(242,240,240,0.30);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Hanken Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background .35s ease, color .35s ease;
}

/* ---- Canvas background + vignette (landing/template pages) ---- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, var(--bg) 100%);
  opacity: .9;
}

/* ---- Header ---- */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 36px;
  transition: background .25s ease, backdrop-filter .25s ease;
}
header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---- Logo ---- */
.logo {
  display: inline-flex; align-items: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: -0.04em; user-select: none; color: var(--text); text-decoration: none;
}
.logo-img { height: 22px; width: auto; display: none; }
[data-theme="dark"] .logo-img.logo-dark { display: block; }
[data-theme="light"] .logo-img.logo-light { display: block; }
.f-brand .logo-img { height: 20px; }
.f-bottom .logo-img { height: 17px; }

/* ---- Actions ---- */
.actions { display: flex; align-items: center; gap: 10px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.top-link { font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; opacity: .85; padding: 12px 10px; display: inline-block; }
.top-link:hover,
.top-link[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.nav-cta {
  border: 1px solid var(--hair); background: var(--chip);
  padding: 9px 12px; margin-left: 4px;
}

/* ---- Icon Buttons ---- */
.icon-btn {
  width: 40px; height: 40px; border-radius: 0;
  border: 1px solid var(--hair); background: var(--chip);
  color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: transform .18s ease, border-color .2s ease, background .2s ease;
  backdrop-filter: blur(6px);
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .sun { display: block; }
[data-theme="dark"] .icon-btn .moon { display: none; }

/* ---- Dropdown Menu ---- */
.menu-wrap { position: relative; }
.menu {
  position: absolute; top: 52px; right: 0; min-width: 230px; max-width: 280px;
  background: var(--bg); border: 1px solid var(--hair); border-radius: 0;
  box-shadow: 0 14px 40px rgba(0,0,0,.22); padding: 6px; z-index: 60; display: none;
}
.menu.open { display: block; }
.menu .menu-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 9px 12px 6px; }
.menu a, .menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: none; border: none; color: var(--text); font-size: 13px; font-weight: 600;
  border-radius: 0; cursor: pointer; text-align: left; text-decoration: none;
  font-family: inherit; overflow: hidden;
}
.menu a:hover, .menu button:hover { background: var(--chip); }
.menu a svg, .menu button svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.menu .r-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .r-sub { color: var(--muted); font-weight: 500; font-size: 11px; }
.menu .r-meta { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.menu .menu-sep { height: 1px; background: var(--hair); margin: 6px 8px; }
.menu .menu-empty { color: var(--muted); font-size: 12px; font-weight: 500; padding: 8px 12px 12px; }

/* ---- Accent Square Motif ---- */
.accent-sq {
  display: inline-block; width: 8px; height: 8px;
  background: var(--accent); flex-shrink: 0; vertical-align: middle;
}

/* ---- Modals / Scrims ---- */
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center;
  z-index: 80; padding: 24px;
}
.scrim.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--card-border); border-radius: 0;
  width: 100%; max-width: 440px; padding: 26px; box-shadow: 0 24px 70px rgba(0,0,0,.3);
}
.modal h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.modal p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.mbtn { padding: 11px 20px; border-radius: 0; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--card-border); background: var(--bg); color: var(--text); font-family: inherit; }
.mbtn:hover { border-color: var(--text); }
.mbtn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.mbtn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.mbtn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.panel {
  background: var(--bg); border: 1px solid var(--card-border); border-radius: 0;
  width: 100%; max-width: 400px; padding: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.3); text-align: center;
}
.panel input { width: 100%; padding: 10px; margin-bottom: 12px; background: var(--bg); color: var(--text); border: 1px solid var(--card-border); border-radius: 0; outline: none; font-family: inherit; }
.panel button { background: var(--bg); color: var(--text); border: 1px solid var(--card-border); padding: 10px 16px; border-radius: 0; cursor: pointer; font-family: inherit; font-weight: 600; width: 100%; margin-bottom: 8px; }
.panel button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ============================================================
   HERO (index.html)
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 96px 24px 64px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 28px;
}
.hero h1,
.hero .hero-title {
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: clamp(18px, 2.4vw, 30px); line-height: 1.15;
  letter-spacing: 0;
  position: relative; width: 100%; max-width: 760px;
  display: block;
}
.hero .sub.rotator {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(56px, 10vw, 110px); line-height: 1.00;
  letter-spacing: -0.05em;
  position: relative;
  width: 100%; max-width: 1100px;
}
.rotator .ph-phantom {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; column-gap: 0.28em;
  visibility: hidden; pointer-events: none;
}
.rotator .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; column-gap: 0.28em;
  color: var(--ph-strong);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.rotator .ph.on { opacity: 1; transform: none; }
.rotator .ph em { font-style: normal; color: var(--ph-dim); }
.sub {
  margin-top: 28px; max-width: 46ch; color: var(--muted);
  font-size: clamp(15px, 2vw, 18px); line-height: 1.55;
}
.cta-row { margin-top: 44px; }
.hero-meta {
  margin-top: 28px; font-size: 12px; color: var(--muted);
  letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 8px;
}
.hero-meta .live-dot {
  width: 6px; height: 6px; border-radius: 0;
  background: var(--accent); animation: pulse 2s ease-in-out infinite;
}

/* ---- Primary CTA ---- */
.get-started, .go-template {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 32px; border-radius: 0;
  background: var(--accent); color: var(--accent-text);
  font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.03em; text-decoration: none; border: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.get-started:hover, .go-template:hover { background: var(--accent-hover); transform: translateY(-2px); }
.get-started .arrow, .go-template .arrow { transition: transform .25s ease; display: grid; place-items: center; }
.get-started:hover .arrow, .go-template:hover .arrow { transform: translateX(4px); }
.all-link { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 600; }
.all-link:hover { color: var(--text); }



/* ============================================================
   SNAP SCROLL & DUPLICATE DOM (index.html)
   ============================================================ */
.snap-container {
  overflow-x: hidden;
}
.snap-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}
.footer-section {
  min-height: auto;
}

.hero-section {
  position: relative;
}
.hero-layer {
  position: relative; width: 100%; height: 100vh;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--text);
}
.hero-layer .vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, var(--bg) 100%);
  opacity: .9;
}
.hero-layer .bg-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}
.hero-layer main.hero {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
}

/* Placeholders */
.placeholder-section {
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--border);
}
.placeholder-content { text-align: center; }
.placeholder-content h2 {
  font-family: 'Sora', sans-serif; font-size: 48px; margin-bottom: 16px; font-weight: 800; letter-spacing: -0.03em;
}
.placeholder-content p { color: var(--muted); font-size: 18px; }

/* ============================================================
   CONTENT PAGES (faq, privacy, terms, roadmap)
   ============================================================ */
main {
  max-width: 880px; margin: 0 auto; padding: 132px 30px 60px;
  position: relative; z-index: 2;
}
h1 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.04em;
  margin: 16px 0; line-height: 1.00;
}
.lede { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 640px; }

/* FAQ */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-card { border: 1px solid var(--card-border); background: var(--card); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 16.5px; font-weight: 600; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .ic { flex-shrink: 0; width: 18px; height: 18px; position: relative; transition: transform .25s ease; }
.faq-q .ic::before, .faq-q .ic::after { content: ''; position: absolute; background: var(--muted); }
.faq-q .ic::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-q .ic::after { left: 8px; top: 0; width: 2px; height: 18px; transition: opacity .2s ease; }
.faq-card[open] .faq-q .ic { transform: rotate(90deg); }
.faq-card[open] .faq-q .ic::after { opacity: 0; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-a-inner a { color: var(--text); }

/* ============================================================
   ROADMAP PAGE
   ============================================================ */
.roadmap-container { max-width: 1200px; margin: 80px auto; padding: 0 30px; }
.rm-header { text-align: center; margin-bottom: 60px; }
.rm-header h1 { font-size: clamp(36px, 5vw, 56px); }
.rm-header p { color: var(--muted); font-size: 16px; max-width: 600px; margin: 16px auto 0; line-height: 1.6; }
.rm-board { display: flex; flex-direction: row; gap: 24px; align-items: flex-start; }
.rm-col {
  flex: 1 1 0%; min-width: 0;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 0; padding: 24px; min-height: 400px;
}
.rm-col-title {
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em;
}
.rm-col-title.planning { color: #8A8A8A; }
.rm-col-title.in-progress { color: #3b82f6; }
.rm-col-title.done { color: #10b981; }
.rm-col-title .badge {
  background: var(--bg); padding: 2px 8px; border-radius: 0;
  font-size: 12px; color: var(--text); font-weight: 600; border: 1px solid var(--card-border);
}
.rm-item {
  background: var(--bg); border: 1px solid var(--card-border);
  border-radius: 0; padding: 16px; margin-bottom: 16px;
  transition: transform .2s, border-color .2s; word-break: break-word;
}
.rm-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.rm-item-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text); }
.rm-item-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.rm-item-date { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
.rm-admin-ctrl { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--card-border); }
.rm-admin-ctrl select {
  background: var(--bg); border: 1px solid var(--card-border); color: var(--text);
  padding: 6px 10px; border-radius: 0; font-size: 12px; width: 100%; outline: none; cursor: pointer;
}
.admin-bar {
  display: none; background: var(--text); color: var(--bg);
  padding: 12px 24px; text-align: center; font-weight: 600; font-size: 14px;
  margin-bottom: 24px; border-radius: 0; justify-content: space-between; align-items: center;
}
#addForm { display: none; margin-bottom: 24px; background: var(--card); padding: 24px; border: 1px solid var(--card-border); border-radius: 0; }
#addForm input, #addForm textarea { width: 100%; background: var(--bg); border: 1px solid var(--card-border); color: var(--text); padding: 12px; margin-bottom: 12px; border-radius: 0; font-family: inherit; outline: none; }
#addForm button, .admin-bar button { background: var(--bg); color: var(--text); border: 1px solid var(--card-border); padding: 8px 16px; border-radius: 0; cursor: pointer; font-family: inherit; font-weight: 600; }
#addForm button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
@media (max-width: 900px) { .rm-board { flex-direction: column; } }

/* ============================================================
   TEMPLATES PAGE (.page-h grid)
   ============================================================ */
main.wide { max-width: 1180px; padding: 132px 30px 80px; }
.page-h {
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -0.05em;
  font-size: clamp(40px, 6vw, 68px); line-height: 1.00;
}
.page-sub { margin-top: 14px; color: var(--muted); max-width: 56ch; font-size: 15.5px; line-height: 1.55; }
.grid {
  margin-top: 44px; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  display: block; text-decoration: none; color: inherit; position: relative;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 0; padding: 14px; overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(255,84,102,.10);
  outline: none;
}
.card .fav {
  position: absolute; top: 18px; right: 18px; z-index: 3; width: 32px; height: 32px;
  display: grid; place-items: center; cursor: pointer; border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px);
  color: var(--muted); transition: color .18s, border-color .18s;
}
.card .fav svg { width: 17px; height: 17px; display: block; }
.card .fav:hover { color: var(--text); border-color: var(--text); }
.card .fav.on { color: #F5B301; border-color: #F5B301; }
.card .fav.on svg { fill: #F5B301; }
.cat-bar { display: flex; gap: 8px; margin: 22px 0 4px; flex-wrap: wrap; }
.cat-tab {
  font: 600 13px 'Hanken Grotesk', sans-serif; letter-spacing: .01em;
  padding: 9px 16px; border: 1px solid var(--hair); background: var(--chip);
  color: var(--muted); cursor: pointer; border-radius: 0;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s, color .15s, border-color .15s;
}
.cat-tab svg { width: 14px; height: 14px; }
.cat-tab.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.cat-empty { color: var(--muted); font-size: 14px; padding: 30px 2px; grid-column: 1 / -1; }
.card .del {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--card-border); background: var(--bg); color: var(--muted);
  cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s;
  font-size: 15px; line-height: 1;
}
.card:hover .del { opacity: 1; }
.card .del:hover { color: var(--danger); border-color: var(--danger); }
.card .uname {
  position: absolute; top: 10px; left: 12px; z-index: 3;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  background: var(--bg); padding: 3px 7px; border: 1px solid var(--card-border);
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.thumb { width: 100%; aspect-ratio: 16 / 10; display: block; border-radius: 0; background: transparent; }
.card h3 { font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.03em; font-size: 17px; margin-top: 14px; }
.card p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.card .open {
  margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.card:hover .open, .card:focus-visible .open { opacity: 1; transform: none; }

/* ============================================================
   FOOTER (shared)
   ============================================================ */
.site-footer {
  position: relative; z-index: 2;
  background: var(--bg); border-top: 1px solid var(--hair);
  padding: 64px 36px 28px; margin-top: 64px;
}
.f-inner { max-width: 1180px; margin: 0 auto; }
.f-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.f-brand { max-width: 280px; }
.f-brand p { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.f-faq-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; padding: 9px 16px; border: 1px solid var(--hair);
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.f-faq-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.f-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.f-col .f-col-title {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 16px;
}
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 2px; }
.f-col a { color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 500; opacity: .85; transition: opacity .15s; padding: 8px 0; display: inline-block; }
.f-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.f-bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; font-size: 12.5px; color: var(--muted);
}

.landing-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  transform: translate(-50%, 12px);
  padding: 11px 16px;
  border: 1px solid var(--hair);
  background: var(--card);
  color: var(--text);
  font: 700 13px 'Sora', sans-serif;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.landing-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   KEYFRAMES & ANIMATIONS
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .kicker  { opacity: 0; animation: rise .8s ease .10s forwards; }
  .hero h1,
  .hero .hero-title { opacity: 0; animation: rise .9s ease .20s forwards; }
  .sub     { opacity: 0; animation: rise .9s ease .34s forwards; }
  .cta-row { opacity: 0; animation: rise .9s ease .46s forwards; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  header { padding: 18px 20px; }
  .actions { gap: 8px; min-width: 0; }
  .site-nav {
    max-width: calc(100vw - 118px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .top-link { white-space: nowrap; font-size: 12.5px; }
  .nav-cta { padding: 8px 10px; }
  main { padding: 110px 20px 48px; }
  main.wide { padding: 110px 20px 48px; }
  .site-footer { padding: 48px 20px 24px; }
  .f-cols { gap: 32px; }
  .hero h1,
  .hero .hero-title { font-size: clamp(17px, 5vw, 24px); }
  .hero .sub.rotator { font-size: clamp(40px, 12vw, 64px); }
}
