/* =========================================================================
   Frontier Innovation Institute — styles.css
   Editorial research-institute aesthetic.
   Warm ivory paper · deep-slate ink · single steel/signal-blue accent ·
   brass used only as a hairline. Two dark slate bands for journal rhythm.
   Display/editorial: Newsreader (serif) · UI/body: Libre Franklin (sans) ·
   Metadata tags: IBM Plex Mono.
   ========================================================================= */

/* ---------------------------------------------------------------- Tokens */
:root {
  /* Paper surfaces — warm ivory (matched to the brand emblem ground #FCF9F3) */
  --paper:       #FBF7EF;
  --paper-2:     #FEFCF8;   /* cards / raised surfaces */
  --paper-3:     #F2ECE0;   /* alternating sections */

  /* Ink — deep slate-navy drawn from the emblem */
  --ink:         #233442;   /* headings / strong */
  --ink-2:       #44515D;   /* body */
  --ink-3:       #717C87;   /* meta / muted */

  /* Lines */
  --line:        rgba(35, 52, 66, 0.14);
  --line-strong: rgba(35, 52, 66, 0.27);

  /* Accent — steel / signal blue (primary identity color) */
  --steel:       #305873;
  --steel-deep:  #264963;
  --steel-tint:  rgba(48, 88, 115, 0.08);
  --steel-light: #7E97AA;   /* matches emblem steel for dark-band accents */

  /* Brass — restrained hairline accent only (emblem arc) */
  --brass:       #B0894A;

  /* Dark bands — deep version of the emblem navy */
  --slate:       #1B2935;
  --slate-2:     #243440;
  --on-dark:        #F1ECE1;
  --on-dark-muted:  #A7B0B9;

  /* Type */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans:  "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1140px;
  --container-wide: 1280px;
  --gutter: clamp(20px, 5vw, 60px);
  --radius: 4px;     /* crisp, editorial — not pill-soft */
  --radius-card: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0; }
ol, ul { margin: 0; }

/* ---------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(68px, 9.5vw, 132px);
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--paper-3); }

/* ---------------------------------------------------------------- A11y helpers */
.skip-link {
  position: absolute;
  left: -999px; top: 0;
  z-index: 100;
  background: var(--steel);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- Type primitives */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.5rem;
}
.eyebrow-rule {
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--steel);
  opacity: 0.6;
}

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.3rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.section-head { margin-bottom: clamp(38px, 5.5vw, 64px); max-width: 760px; }

.section-intro {
  margin-top: 1.5rem;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 1.06rem;
}

.accent-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--steel);
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  --pad-y: 0.85em;
  --pad-x: 1.4em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-sm { --pad-y: 0.6em; --pad-x: 1.05em; font-size: 0.83rem; }
.btn-lg { --pad-y: 1em; --pad-x: 1.7em; font-size: 0.98rem; }

.btn-primary {
  background: var(--steel);
  color: #FCFAF4;
  box-shadow: 0 6px 18px -10px rgba(35, 75, 102, 0.7);
}
.btn-primary:hover {
  background: var(--steel-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(35, 75, 102, 0.65);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--steel);
  color: var(--steel);
  background: var(--steel-tint);
  transform: translateY(-2px);
}

/* ================================================================ HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; }
.brand-emblem { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding-block: 4px;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--steel);
  transition: width 0.3s var(--ease);
}
.site-nav a:hover { color: var(--steel); }
.site-nav a:hover::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; margin-inline: auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem var(--gutter) 1.75rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  padding: 0.7rem 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 1rem; justify-content: center; }
.mobile-nav[hidden] { display: none; } /* CSS display otherwise defeats [hidden] */

/* ================================================================ HERO */
.hero {
  position: relative;
  padding-top: clamp(72px, 12vh, 128px);
  padding-bottom: clamp(72px, 12vh, 128px);
  overflow: hidden;
  /* subtle publication dot-grid */
  background-image: radial-gradient(rgba(27, 37, 46, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -13px -13px;
}
.hero-emblem {
  position: absolute;
  top: 50%;
  right: clamp(-40px, 2vw, 40px);
  transform: translateY(-50%);
  width: clamp(300px, 34vw, 480px);
  height: auto;
  pointer-events: none;
  opacity: 0.96;
  animation: emblemFloat 12s var(--ease) infinite alternate;
}
@keyframes emblemFloat {
  from { transform: translateY(-50%); }
  to   { transform: translateY(calc(-50% - 12px)); }
}

.hero-inner { position: relative; max-width: 660px; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin-bottom: 1.6rem;
  color: var(--ink);
}

.hero-sub {
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
  line-height: 1.62;
  color: var(--ink-2);
  margin-bottom: 2.2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 3.4rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-meta li {
  position: relative;
  padding: 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.hero-meta li:first-child { padding-left: 0; }
.hero-meta li:not(:last-child)::after {
  content: "";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 12px;
  background: var(--line-strong);
}

/* ================================================================ PROBLEM */
.problem-grid { display: grid; gap: clamp(38px, 5vw, 60px); }

.problem-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 38px);
}
.problem-point { padding-top: 1.4rem; border-top: 2px solid var(--steel); }
.pp-tag {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.problem-point p { color: var(--ink-2); font-size: 1rem; }

.problem-close {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.42;
  max-width: 34ch;
  color: var(--ink);
}

/* ================================================================ THESIS */
.thesis-statement { max-width: 26ch; }

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.thesis-item {
  background: var(--paper-2);
  padding: clamp(22px, 2.4vw, 30px);
  transition: background 0.35s var(--ease);
}
.section-alt .thesis-item { background: var(--paper); }
.thesis-item:hover { background: var(--steel-tint); }
.thesis-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
  letter-spacing: 0.05em;
}
.thesis-item h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0.7rem 0 0.45rem;
}
.thesis-item p { color: var(--ink-2); font-size: 0.94rem; line-height: 1.55; }

/* ================================================================ CARD GRID (Work / Programs) */
.card-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.35s var(--ease), box-shadow 0.4s var(--ease);
}
/* very subtle steel wash that follows the cursor */
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(360px 200px at var(--mx, 50%) 0%, var(--steel-tint), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--steel);
  box-shadow: 0 22px 40px -28px rgba(27, 37, 46, 0.4);
}
.card:hover::before { opacity: 1; }

.card-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 0.6rem;
}
.card p { color: var(--ink-2); font-size: 0.98rem; }

.program { border-top: 2px solid var(--steel); }

/* ================================================================ WHO WE HIGHLIGHT */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.highlight-card {
  background: var(--paper-3);
  padding: clamp(26px, 3vw, 40px) clamp(22px, 2.4vw, 32px);
  transition: background 0.35s var(--ease);
}
.highlight-card:hover { background: var(--paper-2); }
.highlight-card h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.highlight-card p { color: var(--ink-2); font-size: 0.96rem; }

/* ================================================================ RESEARCH THEMES (agenda index) */
.research-list { list-style: none; border-top: 1px solid var(--line-strong); max-width: 880px; }
.research-item {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease), color 0.3s var(--ease);
}
.research-item:hover { padding-left: 14px; }
.ri-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
  flex-shrink: 0;
  width: 2.4em;
}
.ri-name {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  transition: color 0.3s var(--ease);
}
.research-item:hover .ri-name { color: var(--steel); }

/* ================================================================ PUBLICATIONS */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.pub-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel);   /* report "spine" */
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pub-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(27, 37, 46, 0.4); }
.pub-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
}
.pub-status {
  color: var(--steel);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 3px 9px;
}
.pub-card h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.pub-card p { color: var(--ink-2); font-size: 0.96rem; margin-bottom: 1.4rem; }
.pub-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ================================================================ PROFILES & PROMOTION */
.profiles-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.profiles-copy .section-index { margin-bottom: 1.3rem; }
.profiles-copy .btn { margin-top: 1.6rem; }

.profiles-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.profile-tile {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
}
.pt-mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--steel);
  border-radius: 50%;
  opacity: 0.55;
  position: relative;
}
.pt-mark::after {
  content: "";
  position: absolute; inset: 7px;
  background: var(--steel);
  border-radius: 50%;
  opacity: 0.35;
}
.pt-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ================================================================ DARK BANDS */
.section-dark { background: var(--slate); color: var(--on-dark); border-top-color: rgba(255,255,255,0.08); }
.section-dark .section-title,
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark .section-index { color: var(--steel-light); }
.section-dark .accent-italic { color: var(--steel-light); }
.section-dark .btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.section-dark .btn-ghost:hover { color: #fff; border-color: var(--steel-light); background: rgba(123, 168, 196, 0.12); }
.section-dark .section-intro,
.section-dark .lead { color: var(--on-dark-muted); }
.section-dark .accent-italic { color: var(--steel-light); }

/* Cards on dark surfaces (Our Work) — raised slate tiles instead of ivory */
.section-dark .card {
  background: var(--slate-2);
  border-color: rgba(255, 255, 255, 0.10);
}
.section-dark .card::before {
  background: radial-gradient(360px 200px at var(--mx, 50%) 0%, rgba(123, 168, 196, 0.14), transparent 70%);
}
.section-dark .card:hover {
  border-color: var(--steel-light);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.65);
}
.section-dark .card h3 { color: var(--on-dark); }
.section-dark .card p { color: var(--on-dark-muted); }
.section-dark .card-kicker { color: var(--steel-light); }
.section-dark .program { border-top-color: var(--steel-light); }

/* Research agenda list on dark (Research Themes) */
.section-dark .research-list { border-top-color: rgba(255, 255, 255, 0.24); }
.section-dark .research-item { border-bottom-color: rgba(255, 255, 255, 0.10); }
.section-dark .ri-num { color: var(--steel-light); }
.section-dark .ri-name { color: var(--on-dark); }
.section-dark .research-item:hover .ri-name { color: var(--steel-light); }

/* Publication "report spine" cards on dark (Publications) */
.section-dark .pub-card {
  background: var(--slate-2);
  border-color: rgba(255, 255, 255, 0.10);
  border-left-color: var(--steel-light);
}
.section-dark .pub-card:hover { box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.65); }
.section-dark .pub-card h3 { color: var(--on-dark); }
.section-dark .pub-card p { color: var(--on-dark-muted); }
.section-dark .pub-meta { color: var(--on-dark-muted); }
.section-dark .pub-status { color: var(--steel-light); border-color: rgba(255, 255, 255, 0.22); }
.section-dark .pub-link { color: var(--on-dark-muted); }

/* WHY IT MATTERS */
.section-why { text-align: center; }
.why-inner { max-width: 860px; margin-inline: auto; }
.why-inner .section-index { color: var(--steel-light); }
.why-statement {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  margin-bottom: 1.7rem;
}
.why-body {
  max-width: 62ch;
  margin-inline: auto;
  color: var(--on-dark-muted);
  font-size: 1.08rem;
}
.why-rule {
  width: 60px; height: 2px;
  margin: 2.8rem auto 0;
  background: var(--steel-light);
  opacity: 0.7;
}

/* ================================================================ CLOSING / SUBMIT */
.closing { text-align: center; background: var(--paper-3); }
.closing-inner { max-width: 800px; margin-inline: auto; }
.closing .eyebrow { justify-content: center; }
.closing-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}
.closing-sub { max-width: 56ch; margin: 0 auto 2.3rem; color: var(--ink-2); font-size: 1.1rem; }
.closing-email-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.7rem;
}
.closing-email {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--steel);
  word-break: break-word;
  margin-bottom: 2.4rem;
}
.closing .hero-cta { justify-content: center; }

/* ================================================================ FOOTER */
.site-footer {
  padding-top: clamp(54px, 7vw, 82px);
  padding-bottom: 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: clamp(30px, 4vw, 54px);
  padding-bottom: clamp(38px, 5vw, 58px);
}
.site-footer .brand-mark { margin-bottom: 1rem; }
.footer-emblem { height: 46px; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 0.4rem;
}
.footer-tag { color: var(--on-dark-muted); font-size: 0.95rem; max-width: 32ch; }

.footer-nav { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-nav-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 0.4rem;
}
.footer-nav a, .footer-contact a {
  color: var(--on-dark-muted);
  font-size: 0.94rem;
  width: fit-content;
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--on-dark); }
.footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-submit { color: var(--steel-light) !important; font-weight: 600; }
.footer-note { color: #7f8893; font-size: 0.84rem; max-width: 30ch; margin-top: 0.2rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p { font-size: 0.82rem; color: #7f8893; }
.footer-disclaimer { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ================================================================ REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 85ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ================================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .thesis-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .card-grid-3, .pub-grid, .problem-points { grid-template-columns: 1fr; }
  .profiles-band { grid-template-columns: 1fr; }
  /* emblem recedes behind copy on small screens for readability */
  .hero-emblem { opacity: 0.16; right: 50%; transform: translate(50%, -50%); width: 380px; animation: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .thesis-grid, .highlight-grid { grid-template-columns: 1fr; }
  .hero-meta li { padding: 0.2rem 1rem 0.2rem 0; }
  .hero-meta li:not(:last-child)::after { display: none; }
  .research-item { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .profiles-tiles { grid-template-columns: 1fr 1fr; }
}

/* ================================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
