/* ---- Typography: Newsreader (titles + descriptions) + Montserrat (UI) — self-hosted ---- */
@font-face{font-family:"Newsreader";font-style:normal;font-weight:200 700;font-display:swap;src:url("assets/fonts/newsreader.woff2") format("woff2");}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:200 700;font-display:swap;src:url("assets/fonts/newsreader-italic.woff2") format("woff2");}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:300 800;font-display:swap;src:url("assets/fonts/montserrat.woff2") format("woff2");}

/* ===========================================================
   CLINT CLAESSEN — Political Scientist
   Blue-grey design system, deep-navy accent (#1c4587)
   =========================================================== */

:root {
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --bg:        #e8edf1;
  --bg-2:      #f3f6f8;
  --surface:   #ffffff;
  --ink:       #18242e;
  --ink-2:     #465866;
  --muted:     #54687a;
  --line:      #d6dee4;
  --line-2:    #c4cfd7;

  --dark:      #16222c;
  --dark-2:    #1f2f3c;
  --dark-3:    #2b3f4f;
  --on-dark:   #dde5ec;
  --on-dark-2: #8ea3b2;
  /* --muted darkened from #7d91a0 for WCAG AA (4.9:1 on --bg, 5.8:1 on white) */

  --accent:    #1c4587;
  --accent-h:  #16386e;
  --accent-soft:#86a6d6;
  --glow:      rgba(28,69,135,.28);

  --maxw: 1280px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,h2,h3,h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.011em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 em, h2 em, h3 em, .ital {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
h3, h4 { letter-spacing: 0; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-h); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--ui);
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  font-weight: 600; color: var(--accent); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }

/* ---------- Scroll progress + custom cursor (viewfinder frame) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 200; transition: width .1s linear;
}
.cursor-frame {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px;
  pointer-events: none; z-index: 300; opacity: .7;
  mix-blend-mode: difference; /* self-contrasting over light and dark sections */
  transform: translate(-50%,-50%) rotate(0deg);
  transition: width .3s var(--ease), height .3s var(--ease),
              opacity .25s, transform .45s var(--ease-out);
}
.cursor-frame i {
  position: absolute; width: 9px; height: 9px;
  border: 0 solid #cfe0f5;
}
.cursor-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.cursor-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.cursor-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.cursor-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.cursor-frame.hover { width: 58px; height: 58px; opacity: 1; transform: translate(-50%,-50%) rotate(90deg); }
.cursor-frame.down { width: 24px; height: 24px; }
@media (hover: none), (pointer: coarse) { .cursor-frame { display: none; } }

/* ---------- Header ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: box-shadow .35s, padding .35s;
}
/* frosted glass lives on a pseudo-element: backdrop-filter on .topbar itself
   would make it the containing block for the fixed mobile nav overlay */
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(232,237,241,.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: opacity .35s var(--ease);
}
.topbar.scrolled::before { opacity: 1; }
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.bar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; gap: 20px; transition: padding .35s var(--ease);
}
.topbar.scrolled .bar-inner { padding: 13px 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.brand-name { font-family: var(--ui); font-size: 1.15rem; font-weight: 700; letter-spacing: .16em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--ui); color: var(--ink-2); font-weight: 500; font-size: .9rem;
  padding: 9px 13px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(28,69,135,.08); }
.nav a.active { color: var(--accent-h); }
.nav a.active::after { content: "•"; margin-left: 5px; color: var(--accent); }

.nav-burger { display: none; margin-left: auto; width: 50px; height: 44px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--surface); cursor: pointer; position: relative; z-index: 120; padding: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--ink);
  transform: translate(-50%,-50%); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-burger span::before { content:""; top: -6px; }
.nav-burger span::after { content:""; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ui); font-weight: 500; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s, color .25s, box-shadow .25s; position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -8px var(--glow); }
.btn-primary:hover { background: var(--accent-h); color: #fff; box-shadow: 0 16px 34px -10px var(--glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-h); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: 150px 0 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.hero-bg .b1 { width: 52vw; height: 52vw; background: #b3c6da; top: -14vw; right: -8vw; animation: drift 22s var(--ease) infinite; }
.hero-bg .b2 { width: 42vw; height: 42vw; background: #cdd8e0; bottom: -16vw; left: -10vw; animation: drift 28s var(--ease) infinite reverse; }
.hero-bg .b3 { width: 30vw; height: 30vw; background: var(--accent-soft); opacity: .26; top: 30%; left: 40%; animation: drift 19s var(--ease) infinite; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(6vw,4vw) scale(1.08); }
  66% { transform: translate(-4vw,-3vw) scale(.95); }
}
.hero-grid {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; width: 100%;
  display: grid; grid-template-columns: 1.5fr .85fr; gap: 40px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.6rem); margin: 12px 0 26px;
}
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* rotating badge around portrait */
.hero-badge { position: relative; display: grid; place-items: center; justify-self: center; }
.hero-badge .logo-core {
  grid-area: 1 / 1; align-self: center; justify-self: center;
  width: clamp(210px, 26vw, 320px); height: clamp(210px, 26vw, 320px); border-radius: 50%;
  overflow: hidden; background: #fff; box-shadow: 0 30px 70px -20px rgba(24,36,46,.4); position: relative; z-index: 2;
}
.hero-badge .logo-core img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge .ring-text { grid-area: 1 / 1; align-self: center; justify-self: center; width: clamp(306px, 37vw, 438px); height: clamp(306px, 37vw, 438px); animation: spin 48s linear infinite; }
.hero-badge .ring-text text { fill: var(--ink-2); font-family: var(--ui); font-size: 8.2px; letter-spacing: 4.6px; text-transform: uppercase; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--ui); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .bar { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%{ transform: scaleY(0); transform-origin: top; } 50%{ transform: scaleY(1); transform-origin: top; } 50.1%{ transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--dark); color: var(--on-dark); padding: 22px 0; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--dark-3); position: relative; }
.marquee.light { background: var(--bg-2); color: var(--ink); border-color: var(--line); }
.marquee-track { display: inline-flex; gap: 0; animation: scroll-x 28s linear infinite; }
.marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-toggle {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 999px; z-index: 2;
  border: 1px solid var(--dark-3); background: rgba(22,34,44,.72); color: var(--on-dark-2);
  font-size: .58rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: color .2s, border-color .2s;
}
.marquee-toggle:hover { color: #fff; border-color: var(--on-dark-2); }
.marquee-track span { font-family: var(--ui); font-size: clamp(1.1rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.01em; padding: 0 30px; display: inline-flex; align-items: center; gap: 30px; }
.marquee-track span::after { content: "—"; color: var(--accent-soft); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.tight { padding: 80px 0; }
.section.dark { background: var(--dark); color: var(--on-dark); }
.section.dark h1,.section.dark h2,.section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: var(--accent-soft); }
.section.dark .eyebrow::before { background: var(--accent-soft); }
.section-head { max-width: 820px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.12rem; margin-bottom: 0; }
.section.dark .section-head p:not(.eyebrow) { color: var(--on-dark-2); }
.narrow { max-width: 820px; }

/* editorial big type */
.manifesto { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 4vw, 3.2rem); line-height: 1.12; max-width: 22ch; }
.manifesto em { color: var(--accent-soft); }
.lead-big { font-size: clamp(1.2rem,2vw,1.5rem); color: var(--ink); line-height: 1.5; }
.prose { font-size: 1.12rem; color: var(--ink-2); }
.prose strong { color: var(--ink); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pillar { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 34px; overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(24,36,46,.30); border-color: var(--accent-soft); }
.pillar .num { font-family: var(--serif); font-size: 4.2rem; font-weight: 400; line-height: 1; color: var(--line-2); transition: color .4s; }
.pillar:hover .num { color: var(--accent); }
.pillar .k { display: block; font-family: var(--ui); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.pillar h3 { font-size: 1.55rem; margin-bottom: .35em; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.section.dark .pillar { background: var(--dark-2); border-color: var(--dark-3); }
.section.dark .pillar h3 { color: #fff; }
.section.dark .pillar p { color: var(--on-dark-2); }
.section.dark .pillar .num { color: var(--dark-3); }
.section.dark .pillar:hover .num { color: var(--accent-soft); }
.section.dark .pillar .k { color: var(--on-dark-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: left; border-top: 1px solid var(--dark-3); padding-top: 22px; }
.stat .figure { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.stat .figure .unit { color: var(--accent-soft); }
.stat .label { color: var(--on-dark-2); font-size: .95rem; margin-top: 12px; }

/* ---------- Lists (publications, teaching, service) ---------- */
.pub-group { margin-bottom: 46px; }
.pub-group > h2 { font-size: 1.7rem; margin-bottom: 22px; }
.pub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.pub-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; font-size: 1rem; transition: transform .3s var(--ease-out), box-shadow .3s; }
.pub-list li:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(24,36,46,.3); }
.pub-list .title { font-family: var(--serif); font-size: 1.28rem; color: var(--ink); display: block; margin-bottom: 4px; }
.pub-list .venue { font-style: italic; color: var(--ink-2); }
.pub-list .meta { font-size: .92rem; color: var(--muted); display: block; margin-top: 4px; }
.badge { display: inline-block; font-family: var(--ui); font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: var(--accent-h); border: 1px solid var(--accent-soft); background: rgba(28,69,135,.07); border-radius: 999px; padding: 2px 11px; margin-left: 6px; }

.subhead { font-family: var(--ui); font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; color: var(--muted); margin: 64px 0 24px; display: flex; align-items: center; gap: 14px; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Timeline (Resume) ---------- */
.timeline { position: relative; padding: 0 0 0 30px; margin: 0; list-style: none; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; transition: transform .3s var(--ease-out), box-shadow .3s; }
.timeline li:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(24,36,46,.3); }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 30px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); }
.timeline .when { display: inline-block; font-family: var(--ui); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-h); background: rgba(28,69,135,.07); border: 1px solid rgba(28,69,135,.14); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.timeline .what { font-family: var(--serif); font-size: 1.28rem; color: var(--ink); display: block; }
.timeline .where { color: var(--ink-2); font-size: .98rem; }

/* ---------- Figure / photo ---------- */
.photo-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 60px -30px rgba(24,36,46,.3); }
.photo-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: grayscale(.18); transition: filter .6s var(--ease-out), transform .7s var(--ease-out); }
.photo-card:hover img { filter: grayscale(0); transform: scale(1.03); }
.photo-card figcaption { padding: 16px 24px; font-family: var(--ui); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 38px 40px; transition: transform .35s var(--ease-out), box-shadow .35s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -30px rgba(24,36,46,.3); }
.contact-card .label { font-family: var(--ui); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.contact-card address { font-style: normal; font-size: 1.1rem; line-height: 1.85; }
.contact-card .email { font-family: var(--ui); font-size: 1.2rem; font-weight: 500; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 190px 0 70px; overflow: hidden; }
.page-hero .hero-bg { opacity: .8; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin: 10px 0 18px; }
.page-hero .lead { font-size: clamp(1.05rem,1.7vw,1.3rem); color: var(--ink-2); max-width: 50ch; position: relative; z-index: 2; }
.page-hero .eyebrow, .page-hero h1 { position: relative; z-index: 2; }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: var(--on-dark-2); }
footer .eyebrow { color: var(--accent-soft); }
footer .eyebrow::before { background: var(--accent-soft); }
/* deep-navy CTA needs a light rim to keep its silhouette on dark surfaces */
.section.dark .btn-primary, footer .btn-primary {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 14px 30px -12px rgba(0,0,0,.55);
}
.section.dark .btn-primary:hover, footer .btn-primary:hover {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), 0 18px 36px -12px rgba(0,0,0,.6);
}
.foot-cta { max-width: var(--maxw); margin: 0 auto; padding: 76px 32px 30px; }
.foot-cta h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); max-width: 18ch; }
.foot-cta .btn-primary { margin-top: 18px; }
.foot-main { max-width: var(--maxw); margin: 0 auto; padding: 30px 32px 44px; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: .9rem; }
.foot-bar a { color: var(--on-dark); }
.foot-bar a:hover { color: #fff; }
.foot-bar .brand-name { color: #fff; font-size: 1rem; letter-spacing: .16em; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-badge { order: -1; }
  .hero-badge .ring-text { display: none; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 30px 24px; }
}
@media (max-width: 820px) {
  .nav-burger { display: block; }
  .nav {
    position: fixed; inset: 0; margin: 0; z-index: 110;
    background: var(--dark); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 40px 36px; transform: translateX(100%);
    visibility: hidden; /* keeps the off-canvas links out of the tab order */
    transition: transform .5s var(--ease), visibility 0s .5s;
  }
  .nav a { font-family: var(--ui); color: var(--on-dark); font-size: clamp(1.8rem, 7vw, 3rem); font-weight: 500; padding: 6px 0; border-radius: 0; }
  .nav a:hover, .nav a.active { background: transparent; color: var(--accent-soft); }
  .nav a.active::after { content: ""; }
  body.nav-open .nav { transform: translateX(0); visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-burger { background: transparent; border-color: var(--dark-3); }
  body.nav-open .nav-burger span { background: transparent; }
  body.nav-open .nav-burger span::before { transform: translate(-50%,-50%) rotate(45deg); top: 50%; background: var(--on-dark); }
  body.nav-open .nav-burger span::after { transform: translate(-50%,-50%) rotate(-45deg); top: 50%; background: var(--on-dark); }
  .pillars { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container, .bar-inner, .hero-grid, .foot-cta, .foot-main { padding-left: 22px; padding-right: 22px; }
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .topbar .brand-name { display: none; } /* scoped: the footer keeps its wordmark */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor-frame { display: none !important; }
}
