/* =========================================================================
   FRODOFORGE — Homepage Design System
   Minimal editorial hub. Shares tokens with misophonia site.
   ========================================================================= */

/* ---------- TOKENS ---------- */
:root {
  --ink:        #0e1525;
  --ink-soft:   #1f2a44;
  --body:       #2b3548;
  --muted:      #6a7385;
  --rule:       #e6e3dc;
  --paper:      #faf7f0;
  --paper-card: #ffffff;
  --paper-tint: #f3eee2;
  --midnight:   #0e1525;
  --midnight-2: #131b30;
  --accent:     #e6533c;
  --accent-soft:#fadcd5;
  --gold:       #b8860b;
  --teal:       #2a7e7a;
  --indigo:     #3b3a8c;
  --green:      #277f5d;

  --font-serif: "Iowan Old Style","Charter","Georgia","Cambria","Times New Roman",serif;
  --font-sans:  ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:  ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --container:  1200px;
  --pad-x:      clamp(1.25rem, 4vw, 2.5rem);
  --r:          12px;
  --r-lg:       20px;
  --shadow:     0 4px 12px rgba(14,21,37,.06), 0 12px 32px rgba(14,21,37,.08);
  --shadow-lg:  0 8px 24px rgba(14,21,37,.08), 0 32px 64px rgba(14,21,37,.12);
  --ease:       cubic-bezier(0.22,1,0.36,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--ink); color: var(--paper); }
*:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 9999;
  border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ---------- NAV ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,240,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-nav.scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 rgba(14,21,37,.04);
}
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { text-decoration: none; color: var(--ink); }

/* Nav links (desktop: flex row; mobile: hidden slide-over) */
.nav-links-right {
  display: flex; align-items: center; gap: 0.25rem;
  margin-left: auto;
  list-style: none;
  padding: 0; margin-left: auto;
}
.nav-links-right a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links-right a:hover { background: rgba(14,21,37,.05); color: var(--ink); text-decoration: none; }
.nav-live {
  color: var(--green) !important;
  background: #d5ecde !important;
  font-weight: 600 !important;
  border-radius: 6px;
}
.nav-live:hover { background: #c2e4ce !important; text-decoration: none; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform .25s ease, opacity .2s ease;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Language switcher */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-card);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s ease;
}
.lang-btn:hover { border-color: var(--rule-strong, #c9c3b6); transform: translateY(-1px); }
.lang-flag { font-size: 1rem; }
.lang-code { font-size: 0.78rem; }
.lang-arrow { font-size: 0.65rem; opacity: 0.5; }
.lang-dropdown {
  list-style: none;
  margin: 0; padding: 6px;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--paper-card);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  min-width: 155px;
  border: 1px solid var(--rule);
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: all .2s ease;
  z-index: 200;
}
.lang-dropdown.open { opacity: 1; transform: translateY(0); visibility: visible; }
.lang-dropdown li {
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background .15s ease;
}
.lang-dropdown li:hover { background: var(--paper-tint); }
.lang-dropdown li.active { background: var(--paper-tint); font-weight: 600; }

/* ---------- HERO ---------- */
.site-hero {
  min-height: 90vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
  background: var(--midnight);
}
/* Subtle dot grid */
.site-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 40% 50%, #000 30%, transparent 70%);
}
/* Glow */
.site-hero::after {
  content: "";
  position: absolute; inset: -20% -20% 0 -20%; bottom: auto; height: 60%;
  background: radial-gradient(ellipse at 40% 0%, rgba(230,83,60,.18) 0%, transparent 55%);
  pointer-events: none;
}
.site-hero .container { position: relative; z-index: 1; }

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(241,237,226,.6);
  padding: 5px 14px;
  border: 1px solid rgba(241,237,226,.18);
  border-radius: 999px;
  margin-bottom: 2rem;
  width: fit-content;
}
.hero-label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}

.hero-title {
  font-size: clamp(4.5rem, 10vw, 9rem);
  font-weight: 700;
  color: #f4efe0;
  letter-spacing: -0.045em;
  line-height: .95;
  margin-bottom: 2rem;
}
.hero-title .accent { color: var(--accent); font-weight: 500; font-style: italic; }

.hero-tagline {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: rgba(241,237,226,.7);
  max-width: 540px;
  line-height: 1.5;
  margin-bottom: 3rem;
}

.hero-cta-row {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.9rem 1.75rem;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background .2s, transform .2s;
  text-decoration: none;
}
.cta-primary:hover { background: #c93e28; transform: translateY(-2px); text-decoration: none; color: white; }
.cta-secondary {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(241,237,226,.7);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.cta-secondary:hover { color: #f4efe0; text-decoration: none; }
.cta-secondary .arrow { transition: transform .2s; }
.cta-secondary:hover .arrow { transform: translateX(3px); }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(241,237,226,.35);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-hint svg { width: 18px; opacity: .5; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* Wave transition */
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  width: 100%; height: 80px; z-index: 2;
}
.hero-wave path { fill: var(--paper); }

/* ---------- VALUE STRIP ---------- */
.value-strip {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.value-item {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.value-icon {
  font-size: 1.75rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}
.value-item strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  display: block;
}
.value-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- TOPICS SECTION ---------- */
.topics-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--paper-tint);
  border-top: 1px solid var(--rule);
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.topic-card {
  padding: 1.75rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.topic-card--live {
  border-top: 3px solid var(--green);
}
.topic-card--open {
  background: var(--paper-tint);
  border-style: dashed;
}
.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.topic-icon {
  font-size: 2rem;
  line-height: 1;
}
.topic-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--paper-tint);
  color: var(--muted);
  border: 1px solid var(--rule);
  align-self: flex-start;
}
.topic-badge--live {
  background: #d5ecde;
  color: #1c5d3f;
  border-color: #a8d5b8;
}
.topic-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}
.topic-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.topic-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  padding: 2px 8px;
  border-radius: 4px;
}
.topic-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.25rem;
  transition: gap .15s ease;
}
.topic-link:hover { gap: 9px; text-decoration: none; }

/* (intro-strip removed — replaced by value-strip) */

/* ---------- FEATURED PROJECT ---------- */
.featured-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 3rem;
  line-height: 1.5;
}

/* Featured card — big horizontal */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--rule);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  text-decoration: none;
}
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 80px rgba(14,21,37,.18);
  text-decoration: none;
}
.featured-card-visual {
  background: linear-gradient(135deg, var(--midnight) 0%, #1a2747 50%, #0d1e35 100%);
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem;
}
.featured-card-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 40%, rgba(230,83,60,.25), transparent 50%),
                    radial-gradient(circle at 70% 70%, rgba(184,134,11,.12), transparent 50%);
  pointer-events: none;
}
/* Big background letter */
.featured-card-visual::after {
  content: "M";
  position: absolute; top: -2rem; right: -2rem;
  font-family: var(--font-serif);
  font-size: 22rem;
  font-weight: 700;
  color: rgba(255,255,255,.03);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.featured-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(230,83,60,.15);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: fit-content;
  position: relative; z-index: 1;
}
.featured-tag::before {
  content: "●";
  font-size: 0.55rem;
  animation: pulse-dot 2s infinite;
}
.featured-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  color: #f4efe0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}
.featured-card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(241,237,226,.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.featured-card-meta span + span::before { content: " · "; }

.featured-card-content {
  padding: 2.5rem 3rem;
  background: var(--paper-card);
  display: flex; flex-direction: column; justify-content: center;
}
.featured-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.featured-card-content p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
/* .featured-findings removed — stats belong on the misophonia page, not here */
.featured-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.75rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background .2s, transform .2s;
  align-self: flex-start;
}
.featured-cta:hover { background: var(--accent); transform: translateY(-2px); text-decoration: none; color: white; }
.featured-cta .arrow { transition: transform .2s; }
.featured-cta:hover .arrow { transform: translateX(4px); }

/* ---------- COMING SOON PROJECTS ---------- */
.projects-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--paper-tint);
  border-top: 1px solid var(--rule);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.project-card {
  padding: 1.75rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  position: relative;
  opacity: 0.72;
  transition: opacity .25s ease, transform .25s ease;
}
.project-card:hover { opacity: 1; transform: translateY(-3px); }
.project-card--live { opacity: 1; }
.project-card--live::before {
  content: "Live";
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: #d5ecde;
  padding: 2px 8px;
  border-radius: 4px;
}
.project-card:not(.project-card--live)::before {
  content: "Soon";
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--paper-tint);
  padding: 2px 8px;
  border-radius: 4px;
}
.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  padding-right: 3.5rem;
}
.project-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}
.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 4px;
}
.project-card--live .project-tag { color: var(--ink-soft); }
.project-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.project-link:hover { text-decoration: none; gap: 8px; }

/* ---------- ABOUT STRIP ---------- */
.about-strip {
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--rule);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
.about-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}
.about-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.about-content p {
  font-size: 1.05rem;
  color: var(--body);
  line-height: 1.75;
  margin: 0 0 1.25rem;
}
.about-content p:last-child { margin-bottom: 0; }
.about-content strong { color: var(--ink); }
.about-content a { font-weight: 600; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(232,227,212,.65);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(241,237,226,.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f4efe0;
  letter-spacing: -0.03em;
}
.footer-brand span { color: var(--accent); }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(232,227,212,.5);
  margin-top: 0.35rem;
  font-style: italic;
}
.footer-links h4 {
  color: rgba(241,237,226,.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}
.footer-links ul {
  list-style: none; padding: 0; margin: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  color: rgba(232,227,212,.65);
  font-size: 0.9rem;
  transition: color .2s;
}
.footer-links a:hover { color: #f4efe0; text-decoration: none; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241,237,226,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 0.8rem;
  color: rgba(232,227,212,.4);
  line-height: 1.6;
  max-width: 600px;
}
.footer-cookie {
  font-size: 0.78rem;
  color: rgba(232,227,212,.3);
  font-style: italic;
  text-align: right;
}

/* ---------- ANIMATIONS ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.animate-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .animate-in { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .topics-grid  { grid-template-columns: repeat(3, 1fr); }
  .value-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .featured-card         { grid-template-columns: 1fr; }
  .featured-card-visual  { min-height: 260px; }
  .featured-card-content { padding: 2rem; }
  .about-inner           { grid-template-columns: 1fr; gap: 1.5rem; }
  .topics-grid           { grid-template-columns: repeat(2, 1fr); }

  /* Mobile nav: toggle visible, links hidden until open */
  .nav-toggle { display: grid; place-items: center; }
  .nav-links-right {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    padding: 1.5rem;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(0.22,1,0.36,1);
    margin-left: 0;
    z-index: 99;
  }
  .nav-links-right.open { transform: translateX(0); }
  .nav-links-right li { width: 100%; }
  .nav-links-right a {
    display: block;
    font-size: 1.1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    width: 100%;
  }
  .nav-links-right .nav-live {
    margin-top: 0.5rem;
    border-radius: 8px;
    display: inline-block;
    width: auto;
  }
}

@media (max-width: 640px) {
  .topics-grid   { grid-template-columns: 1fr; }
  .value-grid    { grid-template-columns: 1fr; }
  .hero-title    { font-size: clamp(3rem, 15vw, 5.5rem); }
  .footer-inner  { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-cookie { text-align: left; }
  .section-sub   { margin-bottom: 2rem; }
}
