/* ============================================================================
   Adelani Lab, Design System
   ========================================================================== */

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --bg:        #f6f3ec;
  --bg-2:      #efe9dd;
  --surface:   #ffffff;
  --surface-2: #fbf9f4;
  --ink:       #14171f;
  --ink-soft:  #3a4150;
  --muted:     #6b7280;
  --line:      #e7e0d2;
  --brand:     #0e3a53;
  --brand-2:   #1d6f96;
  --accent:    #df6b34;
  --accent-2:  #f0b429;
  --good:      #2f9e74;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20,23,31,.05), 0 2px 8px rgba(20,23,31,.04);
  --shadow:    0 10px 30px -12px rgba(14,58,83,.22), 0 2px 8px rgba(20,23,31,.05);
  --shadow-lg: 0 30px 60px -20px rgba(14,58,83,.35);
  --maxw:      1160px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg:        #0c0f15;
  --bg-2:      #11151d;
  --surface:   #141a23;
  --surface-2: #19202b;
  --ink:       #eef2f8;
  --ink-soft:  #c3ccd9;
  --muted:     #93a0b1;
  --line:      #263041;
  --brand:     #4aa6cf;
  --brand-2:   #6cc4e6;
  --accent:    #f08049;
  --accent-2:  #f4c252;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow:    0 14px 40px -16px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
a  { color: var(--brand-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.eyebrow {
  font: 600 .76rem/1 var(--font-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; display: inline-block;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Navigation ---------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; transition: padding .3s; }
.nav.scrolled .nav-inner { padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 8px; position: relative;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-links a.active { color: var(--accent); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- Hero ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: 0;
  background:
    radial-gradient(40% 50% at 12% 18%, color-mix(in srgb, var(--brand-2) 40%, transparent), transparent 70%),
    radial-gradient(45% 55% at 88% 22%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    radial-gradient(50% 60% at 60% 90%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%);
  filter: blur(20px); opacity: .55; animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(0,-3%,0) scale(1.08); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 3rem; align-items: center; }
.hero-inner { max-width: 40rem; }

/* hero portrait */
.hero-portrait { position: relative; justify-self: center; width: min(360px, 80vw); }
.portrait-frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 1; isolation: isolate;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--brand) 40%, transparent));
}
.hero-portrait::after {
  content: ""; position: absolute; inset: -14% -10% -18% -12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
  filter: blur(26px); opacity: .55;
}
.portrait-card {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  width: max-content; max-width: 92%; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: .7rem 1.1rem; box-shadow: var(--shadow);
}
.pc-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .98rem; line-height: 1.2; }
.pc-role { color: var(--muted); font-size: .78rem; margin-top: .15rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-portrait { order: -1; }
}
.hero h1 .accent { color: var(--accent); }
.greet {
  display: inline-block; min-width: 4.5ch; color: var(--brand-2);
  font-family: var(--font-head); font-style: italic;
}
.greet-wrap { font-size: clamp(1.1rem,2vw,1.4rem); color: var(--muted); margin-bottom: 1rem; font-weight: 500; }
.hero .lead { margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; color: var(--muted); font-size: .9rem; }
.hero-meta b { color: var(--ink); font-weight: 600; }

/* floating greeting chips */
.float-words { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.float-words span {
  position: absolute; font-family: var(--font-head); font-style: italic;
  color: color-mix(in srgb, var(--brand) 22%, transparent); white-space: nowrap;
  animation: floaty 14s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* ---------- Stats --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .num { font-family: var(--font-head); font-size: clamp(2rem,4vw,2.8rem); font-weight: 600; color: var(--brand); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .88rem; margin-top: .5rem; }

/* ---------- Cards / grids ------------------------------------------------- */
.grid { display: grid; gap: 1.3rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); margin-bottom: 1rem;
}
.card h3 { color: var(--ink); }
.card p { margin: 0; font-size: .96rem; }

/* projects */
.proj { display: flex; flex-direction: column; gap: .5rem; }
.proj .top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.proj .name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.tag {
  font: 600 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .55rem; border-radius: 6px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.proj .note { color: var(--muted); font-size: .9rem; margin: 0; }
a.proj-link { text-decoration: none; color: inherit; }
a.proj-link .name { transition: color .2s; }
a.proj-link:hover .name { color: var(--accent); }
a.proj-link .tag::after { content: " ↗"; font-family: var(--font-body); opacity: .7; }

/* hero open-position note */
.open-pos {
  margin-top: 2rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border: 1px solid var(--line); border-left: 4px solid var(--accent); max-width: 38rem;
}
.open-pos p { margin: 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.6; }
.op-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .68rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.op-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* person origin + talk venue */
.person .from { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.person .from svg { color: var(--accent); }
.person .from .flag { width: 18px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: inline-block; }
.talk-venue { color: var(--ink-soft); font: 500 .82rem/1.3 var(--font-body); }

/* ---------- News timeline ------------------------------------------------- */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 1.3rem; }
.tl-item::before {
  content: ""; position: absolute; left: -1.6rem; top: .45rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.tl-date { font: 600 .74rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tl-body { margin: .35rem 0 0; color: var(--ink-soft); font-size: .98rem; }
.tl-body strong { color: var(--ink); }

/* ---------- People -------------------------------------------------------- */
.group { margin-bottom: 3rem; }
.group-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.group-head h2 { margin: 0; }
.group-head .count {
  font: 600 .8rem/1 var(--font-mono); color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); padding: .35rem .6rem; border-radius: 999px;
}
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.1rem; }
.person {
  display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.avatar {
  width: 84px; height: 84px; border-radius: 14px; flex: 0 0 auto; object-fit: cover; object-position: top center;
  display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.7rem;
}
.person .meta { min-width: 0; }
.person .nm { font-weight: 600; color: var(--ink); font-size: 1.02rem; display: inline-block; }
a.nm-link { text-decoration: none; transition: color .2s; }
a.nm-link:hover { color: var(--accent); }
.person .rl { color: var(--brand-2); font-size: .85rem; font-weight: 500; }
.person .wk { color: var(--muted); font-size: .86rem; margin: .3rem 0 0; }
.person .now { color: var(--good); font-size: .82rem; margin: .3rem 0 0; font-weight: 500; }
.person .since { color: var(--muted); font-size: .76rem; font-family: var(--font-mono); margin-top: .35rem; }
.person .plinks { display: flex; gap: .5rem; margin-top: .5rem; }
.person .plinks a { color: var(--muted); }
.person .plinks a:hover { color: var(--accent); }

/* PI feature (faculty) spans wide */
.group[data-id="faculty"] .people-grid { grid-template-columns: 1fr; }
.group[data-id="faculty"] .person { gap: 1.4rem; padding: 1.6rem; }
.group[data-id="faculty"] .avatar { width: 96px; height: 96px; font-size: 2rem; border-radius: 18px; }

/* ---------- Photo gallery ------------------------------------------------- */
.gallery { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; }
.photo {
  flex: 1 1 460px; max-width: 560px; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.photo:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.photo img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.photo:hover img { transform: scale(1.04); }
.photo .ph-fallback {
  aspect-ratio: 3/2; display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--muted); background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 12px, var(--surface-2) 12px, var(--surface-2) 24px);
  font-size: .85rem;
}
.photo .cap { padding: 1rem 1.2rem 1.2rem; }
.photo .cap .label {
  display: inline-block; font: 600 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: .35rem .55rem; border-radius: 5px; margin-bottom: .55rem;
}
.photo .cap p { color: var(--ink-soft); margin: 0; font-size: .96rem; line-height: 1.5; }

/* ---------- Publications list -------------------------------------------- */
.pub-group { margin-bottom: 2.6rem; }
.pub-year {
  font-family: var(--font-head); font-size: 1.5rem; color: var(--brand);
  padding-bottom: .5rem; margin-bottom: 1.2rem; border-bottom: 2px solid var(--line);
  position: sticky; top: 64px; background: var(--bg); z-index: 2;
}
.pub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; counter-reset: pub; }
.pub {
  position: relative; padding: 1.1rem 1.2rem 1.1rem 3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  counter-increment: pub;
}
.pub::before {
  content: counter(pub); position: absolute; left: 1rem; top: 1.15rem;
  font: 600 .82rem/1 var(--font-mono); color: var(--accent);
}
.pub:hover { transform: translateX(3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.pub-title { font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--ink); line-height: 1.35; display: inline-block; }
.pub-title:hover { color: var(--accent); }
.pub-authors { color: var(--muted); font-size: .9rem; margin-top: .35rem; line-height: 1.5; }
.pub-authors strong { color: var(--ink-soft); font-weight: 600; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .5rem; }
.pub-venue { font: 600 .76rem/1.2 var(--font-mono); color: var(--brand-2); font-style: normal; }
.pub-award { font: 600 .68rem/1 var(--font-mono); letter-spacing: .04em; background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: var(--accent); padding: .3rem .5rem; border-radius: 5px; }

/* ---------- CTA band ------------------------------------------------------ */
.band {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-radius: 24px; padding: clamp(2.5rem,5vw,4rem); position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 50%; height: 180%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%); opacity: .6;
}
.band h2, .band p { color: #fff; position: relative; }
.band p { opacity: .9; }
.band .btn-primary { background: #fff; color: var(--brand); }
.band .btn-primary:hover { background: var(--accent-2); color: var(--brand); }

/* ---------- Footer -------------------------------------------------------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.footer a { color: var(--ink-soft); display: block; padding: .2rem 0; font-size: .92rem; }
.footer a:hover { color: var(--accent); }
.footer .copyright { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--ink-soft); }
.social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- About page bits ---------------------------------------------- */
.callout {
  margin-top: 1.6rem; padding: 1.3rem 1.4rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
}
.callout h3 { font-size: 1.1rem; }
.callout p { font-size: .96rem; }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.fact:last-child { border-bottom: 0; }
.fact span { color: var(--muted); }
.fact b { color: var(--ink); text-align: right; font-weight: 600; }
ul.tick { list-style: none; margin: 0; padding: 0; }
ul.tick li { position: relative; padding-left: 1.5rem; margin: .5rem 0; color: var(--ink-soft); font-size: .96rem; }
ul.tick li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.quote {
  font-family: var(--font-head); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink); line-height: 1.4; margin: 0; padding: 0;
}
.quote cite { display: block; font-family: var(--font-mono); font-style: normal; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 1.2rem; }

/* ---------- Page header (sub-pages) -------------------------------------- */
.page-head { padding: clamp(3rem,6vw,5rem) 0 1rem; position: relative; }
.page-head .eyebrow { margin-bottom: .6rem; }

/* ---------- Reveal animation --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem; gap: .2rem;
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: grid; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-words { display: none; }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
