/* ================================================
   RAI v3 — Responsible AI Lab @ UNB
   Lighter palette, simpler academic typography,
   campus photo hero, separated logos, pillars
   ================================================ */
:root {
  --red: #C8102E;
  --red-dark: #8E0E26;
  --red-soft: #FAE9EC;
  --red-tint: #FDF6F7;
  --ink: #1A1A1A;
  --charcoal: #2B2B2B;
  --slate: #4A4A4A;
  --muted: #8A8A8A;
  --line: #E8E6E1;
  --line-soft: #F0EEE9;
  --bg: #FFFFFF;
  --bg-soft: #FBFAF7;
  --bg-section: #F4F2ED;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --pad-x: clamp(20px, 5vw, 80px);
  --container: 1280px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ TYPE ============ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.625rem); line-height: 1.15; font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; font-weight: 500; }
h4 { font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }
a:not(.no-underline) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ============ TOP BAR ============ */
.topbar {
  height: 3px;
  background: var(--red);
}

/* ============ HEADER ============ */
.header {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 2rem;
}
.brand-left, .brand-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
}
.brand-left img { height: 50px; display: block; }
.brand-right img { height: 46px; display: block; }
.brand-divider {
  width: 1px;
  height: 40px;
  background: var(--line);
  margin: 0 0.25rem;
}
.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav__link {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  border: none;
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  background: none;
  text-decoration: none !important;
  letter-spacing: 0.005em;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { width: 100%; }
.nav__link.is-current { color: var(--red); }
.nav__link.is-current::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}
@media (max-width: 1000px) {
  .header__inner { height: 72px; gap: 1rem; }
  .brand-left img { height: 40px; }
  .brand-right img { height: 36px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0;
    gap: 0;
    align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .nav__link {
    padding: 1rem var(--pad-x);
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
  }
  .nav__link::after { display: none; }
  .nav__link.is-current { background: var(--red-tint); }
}

/* ============ PAGE SWITCHING ============ */
.page {
  animation: pageIn 0.4s ease;
}
.page.is-active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============ EYEBROW ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.is-light { color: rgba(255,255,255,0.95); }
.eyebrow.is-light::before { background: rgba(255,255,255,0.95); }

/* ============ HERO with campus photo ============ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(100deg, rgba(15,15,15,0.88) 0%, rgba(25,25,25,0.74) 40%, rgba(10,10,10,0.55) 100%),
    url('../img/header/campus-fall.jpg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  padding: clamp(60px, 8vw, 100px) 0;
  color: white;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero__title {
  color: white;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 1.5rem 0 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: #FFC9D1;
  position: relative;
}
.hero__lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.96);
  max-width: 58ch;
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  background: none;
}
.btn--primary {
  background: var(--red);
  color: white;
}
.btn--primary:hover {
  background: var(--red-dark);
  color: white;
  transform: translateY(-1px);
}
.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  border-color: white;
}
.btn--outline {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
}
.hero__photo-credit {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
}
.section--soft {
  background: var(--bg-soft);
}
.section--grey {
  background: var(--bg-section);
}
.section--red {
  background: var(--red);
  color: white;
}
.section--red h2, .section--red h3 { color: white; }

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 720px;
}
.section-head__title {
  margin: 1rem 0 1rem;
}
.section-head__intro {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 60ch;
}
.lab-statement {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  max-width: 60ch;
  margin: 1.75rem 0 0;
}
.lab-statement strong { font-weight: 600; }
.lab-statement a { cursor: pointer; }

/* ============ PI BLOCK (director on home) ============ */
.pi-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .pi-block { grid-template-columns: 280px 1fr; gap: 3.5rem; }
}
.pi-photo {
  position: relative;
  aspect-ratio: 1 / 1.2;
  background: var(--bg-section);
  overflow: hidden;
  max-width: 280px;
  box-shadow: var(--shadow-md);
}
.pi-photo::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 60px;
  height: 60px;
  background: var(--red);
  z-index: 0;
}
.pi-photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pi-photo__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F4F2ED 0%, #E8E5DF 100%);
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
}
.pi-info__role {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.pi-info__name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 400;
}
.pi-info__bio {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}
.pi-info__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}
.pi-info__links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none !important;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: all 0.2s;
}
.pi-info__links a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ============ PILLARS (Responsible AI) ============ */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 800px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.pillar {
  background: white;
  padding: 2.5rem 2rem 2.25rem;
  border-top: 3px solid var(--red);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pillar__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}
.pillar__title {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 500;
}
.pillar__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
}
.pillar__cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(180deg, transparent, transparent);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ============ THEMES (4 research themes) ============ */
.themes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) {
  .themes { grid-template-columns: 1fr 1fr; }
}
.theme {
  padding: 2.5rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.theme:hover { background: var(--red-tint); }
@media (min-width: 700px) {
  .theme { padding: 2.5rem 2rem; }
  .theme:nth-child(2n) { border-left: 1px solid var(--line); }
}
.theme__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 1rem;
}
.theme__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.theme__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
  margin: 0;
}
.theme__more {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

/* ============ PUBLICATIONS ============ */
.pub-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.pub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
@media (min-width: 800px) {
  .pub { grid-template-columns: 100px 1fr 200px; gap: 2rem; align-items: baseline; }
}
.pub:hover { background: rgba(0,0,0,0.015); }
.pub__year {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 500;
}
.pub__title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 400;
}
.pub__title em {
  font-style: italic;
  color: var(--red);
}
.pub__venue {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============ NEWS TIMELINE ============ */
.timeline {
  border-left: 2px solid var(--red);
  padding-left: 2rem;
  margin-left: 0.5rem;
  margin-top: 2rem;
}
.timeline__item {
  position: relative;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: none; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 1.9rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--red);
}
.timeline__date {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.4rem;
}
.timeline__title {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}
.timeline__title em {
  font-style: italic;
  color: var(--red);
  font-family: var(--serif);
}

/* ============ COLLABORATORS ============ */
.collabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .collabs { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .collabs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .collabs { grid-template-columns: repeat(5, 1fr); }
}
.collab {
  background: white;
  border: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  text-decoration: none !important;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: inherit;
}
.collab:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.collab__logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}
.collab__logo img {
  max-height: 56px;
  max-width: 100%;
  object-fit: contain;
}
.collab__mono {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  display: inline-block;
}
.collab:hover .collab__mono { border-color: var(--red); color: var(--red); }
.collab__name {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--ink);
  margin: 0.25rem 0 0.25rem;
  font-weight: 500;
}
.collab__inst {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.4;
}
.collab__arrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-top: auto;
  padding-top: 0.75rem;
}

/* ============ PEOPLE PAGE ============ */
.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}
@media (min-width: 700px) { .people-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }

.person { display: flex; flex-direction: column; }
.person__photo {
  position: relative;
  aspect-ratio: 1 / 1.15;
  background: var(--bg-section);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.person__photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.person:hover .person__photo img { transform: scale(1.03); }
.person__photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F4F2ED 0%, #E8E5DF 100%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 3rem;
  color: var(--muted);
  font-weight: 300;
}
.person__photo--open {
  background: var(--red);
  color: white;
  font-size: 3.5rem;
  font-family: var(--serif);
  font-style: italic;
}
.person__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 500;
}
.person__name .pronouns {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.4em;
  font-weight: 400;
}
.person__role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.person__bio {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--slate);
  margin-bottom: 0.75rem;
}
.person__bio--small { font-size: 0.875rem; color: var(--muted); }
.person__links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
}
.person__links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.person__links a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.people-section { margin-top: 4rem; }
.people-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--red);
  margin-bottom: 1.5rem;
}
.people-section-head h3 {
  font-size: 1.5rem;
  font-weight: 500;
}
.people-section-head__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ RESEARCH PAGE ============ */
.research-theme {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.research-theme:last-child { border-bottom: none; }
.research-theme__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
@media (min-width: 800px) {
  .research-theme__head { grid-template-columns: 80px 1fr; gap: 2rem; }
}
.research-theme__num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--red);
  letter-spacing: 0.14em;
}
.research-theme__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0;
}
.research-theme__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  max-width: 75ch;
}
@media (min-width: 800px) {
  .research-theme__body { margin-left: 100px; }
}
.research-theme__body p { margin: 0; }
.research-theme__body em { color: var(--red); font-style: italic; font-family: var(--serif); }
.subpillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .subpillars { grid-template-columns: repeat(3, 1fr); }
}
.subpillar {
  padding: 1.25rem 1rem;
  background: var(--bg-soft);
  border-left: 2px solid var(--red);
}
.subpillar__title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 0.4rem 0;
}
.subpillar__desc {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
  margin: 0;
}

/* ============ CONTACT/JOIN ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-block {
  background: white;
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
}
.contact-block__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.contact-block__value {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
  font-weight: 400;
}
.contact-block__sub {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
}

/* ============ FOOTER ============ */
.footer {
  background: #1F1E1B;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer__brand { max-width: 360px; }
.footer__brand-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: white;
  font-style: italic;
  font-weight: 400;
  display: block;
  margin-bottom: 0.5rem;
}
.footer__brand-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}
.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin: 0 0 1.5rem;
}
.footer__unb {
  display: inline-block;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer__unb:hover { opacity: 1; }
.footer__unb img { height: 48px; display: block; }
.footer__col h5 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 1rem;
  font-weight: 500;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__col button, .footer__col a {
  font-family: var(--sans);
  font-size: 0.9rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 0;
  text-align: left;
  text-decoration: none !important;
  transition: color 0.2s;
}
.footer__col button:hover, .footer__col a:hover {
  color: white;
}
.footer__base {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}

/* ============ MISC ============ */
.divider-line {
  height: 1px;
  background: var(--line);
  margin: 1rem 0;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
