/* ============================================================
   THE APEX LAB — Applied Physiology of Exercise
   Shared stylesheet
   Palette drawn from vascular oxygenation:
   APEX steel blue · amber · venous ink · clinical paper
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink:        #10151b;
  --ink-2:      #19212c;
  --ink-3:      #26313f;
  --paper:      #f2f4f3;
  --paper-2:    #ffffff;
  --brand:      #015a86;   /* APEX steel blue — primary accent */
  --brand-br:   #2f93c4;   /* brightened blue — hover & dark backgrounds */
  --brand-dk:   #013a57;   /* deep blue — gradient ends */
  --amber:      #d8842a;   /* APEX amber — secondary accent (large / on-dark) */
  --amber-br:   #eaa250;
  --amber-tx:   #a15e12;   /* deepened amber for small text on light */
  --sky:        #7fb8e0;   /* light blue for eyebrows on dark ink */
  --text:       #16202a;
  --muted:      #58636f;
  --muted-lt:   #8b95a0;
  --line:       rgba(16,21,27,0.12);
  --line-dk:    rgba(255,255,255,0.13);

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@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; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--sky); }
.eyebrow.on-dark::before { background: var(--sky); }

.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--muted); max-width: 62ch; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(16,21,27,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dk);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 96px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: #fff; }
.brand-logo {
  height: 70px; width: auto; display: block; flex: none;
  background: #f5f7f6; padding: 6px 12px; border-radius: 13px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 6px 18px -10px rgba(0,0,0,0.5);
}
.footer .brand-logo { height: 88px; padding: 10px 15px; margin-bottom: 10px; }
@media (max-width: 620px) { .brand-logo { height: 52px; padding: 6px 10px; } }
.brand-mark {
  font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em;
  color: #fff; position: relative; padding-right: 2px;
}
.brand-mark::after { content: "•"; color: var(--brand-br); margin-left: 3px; font-size: 20px; }
.brand-full { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-lt); }
@media (max-width: 620px) { .brand-full { display: none; } }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; color: #cfd6dd; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.04em; padding: 8px 14px; border-radius: 6px; transition: color .18s, background .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; background: var(--brand-br);
  margin: 5px 14px 0; border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: .25s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 96px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dk);
    padding: 8px var(--gutter) 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 15px; }
  .nav-links a.active::after { margin: 5px 4px 0; width: 26px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  color: #eef2f5;
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 11vw, 128px) 0 clamp(48px, 7vw, 88px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 82% 8%, rgba(1,90,132,0.28), transparent 60%),
    radial-gradient(50% 70% at 8% 92%, rgba(216,132,42,0.16), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-logo {
  height: clamp(112px, 14vw, 172px); width: auto; display: block; margin-bottom: 28px;
  background: #f5f7f6; padding: 16px 22px; border-radius: 16px;
  box-shadow: 0 22px 55px -26px rgba(0,0,0,0.65);
}
.hero-eyebrow { font-size: 14px; letter-spacing: 0.2em; }
@media (max-width: 600px) { .hero-logo { height: 96px; padding: 12px 16px; border-radius: 13px; margin-bottom: 22px; } }

.hero h1 {
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: #fff;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--brand-br); }
.hero .lede { color: #b9c2cb; margin-top: 26px; max-width: 58ch; font-size: clamp(17px,1.7vw,20px); }

.hero-titles { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-titles.d2 { animation-delay: .12s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: rise .9s .28s cubic-bezier(.2,.7,.2,1) forwards; }

.btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  text-decoration: none; padding: 13px 22px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 9px; transition: transform .18s, background .18s, border-color .18s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-br); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #eef2f5; border: 1px solid rgba(255,255,255,0.24); }
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn .arw { transition: transform .2s; }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- Signature: the NO pathway ---------- */
.pathway {
  margin-top: clamp(46px, 6vw, 76px);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: rise 1s .45s cubic-bezier(.2,.7,.2,1) forwards;
}
.mol {
  text-align: center; padding: 0 clamp(6px,1.4vw,14px);
}
.mol-formula {
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3.2vw, 34px);
  color: #fff; letter-spacing: -0.01em; white-space: nowrap;
}
.mol-formula sub, .mol-formula sup { font-size: 0.58em; }
.mol:first-child .mol-formula { color: var(--amber); }
.mol:last-child .mol-formula { color: var(--brand-br); }
.mol-name {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-lt); margin-top: 8px;
}
.flow {
  height: 3px; border-radius: 3px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.14));
}
.flow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--brand-br), transparent);
  background-size: 55% 100%; background-repeat: no-repeat;
  animation: perfuse 2.4s linear infinite;
}
.flow.f1::after { animation-delay: 0s; }
.flow.f2::after { animation-delay: 1.2s; }
@keyframes perfuse { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
.pathway-caption {
  grid-column: 1 / -1; text-align: center; margin-top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-lt);
}
@media (max-width: 680px) {
  .pathway { grid-template-columns: 1fr; gap: 4px; }
  .flow { width: 3px; height: 30px; margin: 6px auto; }
  .flow::after { background: linear-gradient(180deg, transparent, var(--brand-br), transparent); background-size: 100% 55%; animation: perfuseV 2.4s linear infinite; }
  @keyframes perfuseV { 0% { background-position: 0 -60%; } 100% { background-position: 0 160%; } }
}

/* ---------- Stat strip ---------- */
.stats {
  background: var(--ink-2); color: #eef2f5;
  border-top: 1px solid var(--line-dk);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 30px var(--gutter); border-left: 1px solid var(--line-dk); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; color: #fff; }
.stat-num .unit { color: var(--amber); }
.stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-lt); margin-top: 4px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-top: 1px solid var(--line-dk); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { border-left: 0; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--paper-2); }
.section.ink { background: var(--ink); color: #e9edf1; }

.section-head { max-width: 70ch; margin-bottom: clamp(38px, 5vw, 58px); }
.section-head h2 { font-size: clamp(28px, 4.4vw, 48px); }
.section.ink .section-head h2 { color: #fff; }

/* divider carrying the pathway gradient */
.rule { height: 2px; border: 0; background: linear-gradient(90deg, var(--amber), var(--brand) 65%, transparent); margin: 0; opacity: .8; }

/* ---------- Research cards ---------- */
.strands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.strand {
  background: var(--paper-2); padding: clamp(28px, 3.6vw, 44px);
  position: relative; transition: transform .2s;
}
.strand:hover { transform: translateY(-3px); z-index: 2; box-shadow: 0 20px 40px -24px rgba(16,21,27,0.4); }
.strand-idx { font-family: var(--mono); font-size: 12px; color: var(--brand); letter-spacing: 0.1em; }
.strand h3 { font-size: clamp(20px, 2.4vw, 26px); margin: 14px 0 12px; line-height: 1.12; }
.strand p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.strand .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--brand); text-transform: uppercase; margin-top: 18px; display: block; }
@media (max-width: 720px) { .strands { grid-template-columns: 1fr; } }

/* ---------- Detailed research programs ---------- */
.program { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(24px, 5vw, 70px); padding: clamp(40px,6vw,72px) 0; border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; }
.program-side .p-num { font-family: var(--mono); font-size: 13px; color: var(--brand); letter-spacing: 0.14em; }
.program-side h3 { font-size: clamp(23px, 2.8vw, 32px); margin: 12px 0 16px; line-height: 1.08; }
.program-side .p-keys { list-style: none; padding: 0; margin: 20px 0 0; }
.program-side .p-keys li { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 7px 0; border-top: 1px dashed var(--line); letter-spacing: 0.02em; }
.program-body p { color: var(--text); }
.program-body p:last-child { margin-bottom: 0; }
.program-body .cite { color: var(--muted); font-style: italic; }
@media (max-width: 820px) { .program { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Funding ---------- */
.funding-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fund {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  padding: 22px 24px; border-radius: 4px;
}
.fund .fund-id { font-family: var(--mono); font-size: 11.5px; color: var(--brand); letter-spacing: 0.05em; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fund .fund-id .amt { color: var(--amber-tx); }
.fund h4 { font-family: var(--display); font-size: 16.5px; font-weight: 600; line-height: 1.22; margin: 12px 0 8px; letter-spacing: -0.01em; }
.fund .role { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .funding-grid { grid-template-columns: 1fr; } }

/* ---------- People ---------- */
.pi-card { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.pi-photo {
  aspect-ratio: 3/4; border-radius: 8px; background: var(--ink-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line);
}
.pi-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; color: #fff; letter-spacing: -0.02em;
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
}
.avatar.crim { background: linear-gradient(150deg, var(--brand), var(--brand-dk)); }
.pi-card h2 { font-size: clamp(26px, 3.4vw, 38px); }
.pi-creds { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--brand); margin: 10px 0 4px; }
.pi-role { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 18px; }
@media (max-width: 640px) { .pi-card { grid-template-columns: 1fr; } .pi-photo { width: 160px; } }

.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.person:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -22px rgba(16,21,27,0.45); }
.person .p-av { aspect-ratio: 1/1; overflow: hidden; }
.person .p-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person .p-meta { padding: 16px 18px 20px; }
.person .p-meta h4 { font-family: var(--display); font-size: 18px; font-weight: 600; }
.person .p-deg { font-family: var(--mono); font-size: 11.5px; color: var(--brand); letter-spacing: 0.05em; margin: 6px 0; }
.person .p-note { font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 820px) { .people-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .people-grid { grid-template-columns: 1fr; } }

.alumni-list { columns: 2; column-gap: 48px; }
.alumni-list .al { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--line); }
.alumni-list .al:first-child, .alumni-list .al:nth-child(1) { border-top: 0; }
.alumni-list .al .al-name { font-family: var(--display); font-weight: 600; font-size: 16px; }
.alumni-list .al .al-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .alumni-list { columns: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
a.chip { text-decoration: none; transition: border-color .18s, color .18s; }
a.chip:hover { border-color: var(--brand); color: var(--brand); }
.orcid-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--brand); text-decoration: none; margin-top: 10px; }
.orcid-link::before { content: "iD"; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: #a6ce39; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: 0; }
.orcid-link:hover { text-decoration: underline; }
.al .orcid-link { margin-top: 4px; font-size: 11px; }

/* ---------- Alumni spotlight ---------- */
.spotlight {
  display: grid; grid-template-columns: 190px 1fr; gap: clamp(22px, 3.5vw, 44px);
  align-items: center; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: clamp(22px, 3vw, 34px); margin-bottom: 40px;
  border-left: 3px solid var(--brand);
}
.spot-photo { aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.spot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-photo .avatar { font-size: 44px; }
.spot-body h3 { font-size: clamp(21px, 2.6vw, 27px); margin: 12px 0 6px; line-height: 1.1; }
.spot-role { font-family: var(--mono); font-size: 12.5px; color: var(--brand); letter-spacing: 0.03em; margin-bottom: 14px; }
.spot-body p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.spot-awards { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spot-awards li { font-family: var(--mono); font-size: 11.5px; line-height: 1.35; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-left: 2px solid var(--amber); border-radius: 5px; padding: 6px 10px; }
.spot-awards .label { display: block; width: 100%; color: var(--brand); letter-spacing: 0.14em; text-transform: uppercase; font-size: 10.5px; border: 0; background: none; padding: 0 0 2px; }
.spot-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-line { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-line:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
@media (max-width: 620px) {
  .spotlight { grid-template-columns: 1fr; }
  .spot-photo { width: 150px; }
}
.chip { font-family: var(--mono); font-size: 12.5px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 40px; color: var(--muted); background: var(--paper-2); }
.chip b { color: var(--text); font-weight: 600; }

/* ---------- Publications ---------- */
.pub-theme { margin-bottom: 46px; }
.pub-theme > h3 { font-size: clamp(19px, 2.3vw, 24px); margin-bottom: 4px; display: flex; align-items: center; gap: 12px; }
.pub-theme > h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.pub-theme .theme-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 20px 21px; letter-spacing: 0.02em; }
.pub {
  padding: 18px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start;
}
.pub p { margin: 0; font-size: 15px; line-height: 1.5; }
.pub > div > p:not(.authors):not(.venue) { font-weight: 700; color: var(--text); margin: 3px 0; }
.pub .authors { color: var(--text); }
.pub .authors b { color: var(--brand); font-weight: 600; }
.pub .venue { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 5px; }
.pub .metric { text-align: right; white-space: nowrap; }
.pub .metric .m-num { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--brand); letter-spacing: -0.02em; }
.pub .metric .m-lab { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-lt); }
.pub .metric.press .m-num { font-size: 13px; color: var(--amber-tx); font-family: var(--mono); font-weight: 500; padding-top: 4px; }
@media (max-width: 620px) { .pub { grid-template-columns: 1fr; } .pub .metric { text-align: left; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); }
.contact-block { margin-bottom: 34px; }
.contact-block .c-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.contact-block a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--brand); transition: color .18s; }
.contact-block a:hover { color: var(--brand); }
.contact-block address { font-style: normal; color: var(--muted); line-height: 1.7; }
.join-box { background: var(--ink); color: #e9edf1; padding: clamp(28px,4vw,40px); border-radius: 10px; align-self: start; }
.join-box h3 { color: #fff; font-size: 22px; margin-bottom: 14px; }
.join-box p { color: #b9c2cb; font-size: 15px; }
.join-box .eyebrow { color: var(--sky); }
.join-box .eyebrow::before { background: var(--sky); }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Prose / callouts ---------- */
.callout {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(26px, 3.5vw, 40px); margin-top: 8px;
}
.callout .eyebrow { color: var(--brand); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #aab4bf; border-top: 1px solid var(--line-dk); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand-mark { font-size: 28px; }
.footer-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-lt); margin-top: 10px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #cfd6dd; text-decoration: none; font-family: var(--mono); font-size: 13px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-dk); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--muted-lt); letter-spacing: 0.03em; }
.footer-bottom a { color: var(--muted-lt); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand-br); outline-offset: 3px; border-radius: 4px;
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
