/* Harlow Ridge Timberwolves. Swiss industrial print system: newsprint paper, carbon ink,
   one hazard-red accent, visible grid lines, sharp corners. Dark mode swaps paper for
   a deactivated-CRT substrate; nothing else changes. */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #F4F4F0;
  --paper-rgb: 244, 244, 240;
  --paper-2: #E9E7E1;
  --ink: #111111;
  --ink-rgb: 17, 17, 17;
  --ink-2: #5A5A54;
  --line: #111111;
  --accent: #C41E3A;
  --on-accent: #F4F4F0;
  --font-sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --nav-h: 64px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1440px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F0F0F;
    --paper-rgb: 15, 15, 15;
    --paper-2: #171717;
    --ink: #EAEAEA;
    --ink-rgb: 234, 234, 234;
    --ink-2: #A3A39D;
    --line: #EAEAEA;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-weight: 800; }

/* Print grain: fixed, non-interactive, cheap. */
body::after {
  content: '';
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::after { mix-blend-mode: screen; opacity: 0.05; } }

.skip {
  position: absolute; left: 0; top: 0; z-index: 100;
  transform: translateY(-120%);
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.skip:focus { transform: none; }

.mono, .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.eyebrow { color: var(--accent); font-weight: 700; margin: 0; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  height: var(--nav-h); padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
.nav-mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-sans); font-weight: 900; font-size: 0.8rem; letter-spacing: -0.02em;
}
.nav-links {
  display: flex; justify-content: flex-end; gap: clamp(1rem, 2.5vw, 2.5rem);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a { text-decoration: none; padding: 0.5rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover { border-color: var(--accent); }
.nav-links .nav-cta { background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; border: 0; }
.nav-links .nav-cta:hover { background: var(--accent); color: var(--on-accent); }
.nav-toggle {
  display: none;
  appearance: none; -webkit-appearance: none;
  background: none; color: inherit; border: 2px solid var(--line);
  padding: 0.45rem 0.8rem; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-toggle:active { transform: translateY(1px); }

@media (max-width: 767px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0;
    flex-direction: column; justify-content: flex-start; gap: 0;
    background: var(--paper);
    padding: 0.5rem var(--gutter) 2rem;
    font-size: 1.15rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
    overflow-y: auto;
  }
  .nav-links a { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 1.5rem; text-align: center; padding: 1rem; }
  .nav.is-open .nav-links { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
  .nav.is-open .nav-toggle { background: var(--ink); color: var(--paper); }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: calc(100vh - var(--nav-h));
  min-height: min(calc(100dvh - var(--nav-h)), 920px);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 2px solid var(--line);
}
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: var(--paper-2); }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  filter: grayscale(1) contrast(1.2);
}
/* Halftone screen over the photograph, then a paper wash so type sits on clean stock. */
.hero-media::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle, rgba(var(--ink-rgb), 0.9) 0.8px, transparent 1.2px) 0 0 / 5px 5px;
  mix-blend-mode: multiply; opacity: 0.45;
}
.hero-media::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, var(--paper) 28%, rgba(var(--paper-rgb), 0.72) 52%, rgba(var(--paper-rgb), 0.15) 78%, rgba(var(--paper-rgb), 0) 100%),
    linear-gradient(0deg, var(--paper) 0%, rgba(var(--paper-rgb), 0.6) 30%, rgba(var(--paper-rgb), 0) 60%);
}
@media (prefers-color-scheme: dark) {
  .hero-media img { filter: grayscale(1) contrast(1.15) brightness(0.75); }
  .hero-media::before { mix-blend-mode: screen; opacity: 0.18; }
}
.hero-body { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.hero.is-split {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.hero.is-split .hero-body { margin: 0; }
.hero-frame { display: grid; align-self: stretch; min-height: 320px; }
.hero-frame .slot { height: 100%; }
@media (max-width: 900px) {
  .hero.is-split { grid-template-columns: 1fr; row-gap: 2rem; align-items: start; min-height: 0; padding-top: clamp(2rem, 6vw, 4rem); }
  .hero-frame { min-height: 0; aspect-ratio: 16 / 10; }
}
.hero-title {
  margin: 0;
  font-weight: 900; font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.04em; line-height: 0.88;
  font-size: clamp(2rem, var(--hero-vw, 9vw), 9.5rem);
}
@media (max-width: 640px) { .hero-title { font-stretch: 100%; letter-spacing: -0.045em; } }
.hero-title span { display: block; }
.hero-title .line-2 { color: var(--accent); }
.hero-sub { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.2rem); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.4rem;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 2px solid var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.12s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }

/* Slots: framed placeholders where photos and unconfirmed content will go. */
.slot {
  position: relative; overflow: hidden;
  border: 2px solid var(--line);
  background-color: var(--paper-2);
  background-image: radial-gradient(circle, rgba(var(--ink-rgb), 0.28) 0.8px, transparent 1.2px);
  background-size: 6px 6px;
}
.slot-label { position: absolute; left: 0.75rem; bottom: 0.6rem; color: var(--ink-2); }
.slot-empty { min-height: 200px; display: grid; place-items: center; padding: 2rem; text-align: center; }
.slot-empty p { margin: 0; color: var(--ink-2); font-weight: 700; }

/* Season strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--line); border-bottom: 2px solid var(--line);
}
.cell {
  background: var(--paper);
  padding: 1.5rem var(--gutter);
  display: grid; gap: 0.4rem; align-content: start;
  min-height: 170px;
}
.cell-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.cell-value {
  font-weight: 900; font-stretch: 108%; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  text-wrap: balance;
}
.cell-num {
  font-family: var(--font-mono); font-weight: 700; text-transform: none; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cell-meta { color: var(--ink-2); font-size: 0.92rem; line-height: 1.4; }
@media (max-width: 960px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } .cell { min-height: 0; } }

/* Sections */
.section { padding: clamp(4rem, 9vw, 8rem) var(--gutter); border-bottom: 2px solid var(--line); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 {
  margin: 0;
  font-weight: 900; font-stretch: 108%; text-transform: uppercase;
  letter-spacing: -0.035em; line-height: 0.9;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
}
.section-head p { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 1.05rem; }

/* Roster */
.roster {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  border-top: 2px solid var(--line); border-left: 2px solid var(--line);
}
.player {
  position: relative;
  background: var(--paper);
  border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
  padding: 0 0 1.1rem;
  display: grid; gap: 0.3rem; align-content: start;
  transition: background 0.25s, color 0.25s;
}
.player:hover, .player:focus-within { background: var(--accent); color: var(--on-accent); }
.player-photo { aspect-ratio: 4 / 5; border: 0; border-bottom: 2px solid var(--line); margin-bottom: 0.7rem; }
.player-photo img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.player.has-photo .player-photo::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(0deg, rgba(var(--paper-rgb), 0.9) 0%, rgba(var(--paper-rgb), 0.35) 35%, rgba(var(--paper-rgb), 0) 65%);
}
.player-num {
  position: absolute; left: 0.9rem; bottom: 0.5rem; z-index: 1;
  font-weight: 900; font-stretch: 108%; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(2.8rem, 4.5vw, 4.25rem);
}
.player-num.is-tbd { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; bottom: 0.9rem; color: var(--ink-2); }
.player:hover .player-num.is-tbd, .player:focus-within .player-num.is-tbd { color: inherit; }
.player-name { padding: 0 1.1rem; font-weight: 700; font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.player-name abbr {
  text-decoration: none;
  display: inline-block; vertical-align: 0.15em; margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
}
.player:hover abbr, .player:focus-within abbr { background: var(--paper); color: var(--ink); }
.player-meta { padding: 0 1.1rem; display: flex; gap: 1rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.player:hover .player-meta, .player:focus-within .player-meta { color: inherit; }
@media (max-width: 480px) { .roster { grid-template-columns: 1fr 1fr; } .player-name, .player-meta { padding: 0 0.8rem; } .player-num { left: 0.7rem; } }

/* Coaches */
.coaches { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.coach-head { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: start; }
.coach-tile {
  aspect-ratio: 4 / 5; overflow: hidden;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-weight: 900; font-stretch: 108%; letter-spacing: -0.05em;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
.coach-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.coach-tile.slot { background-color: var(--paper-2); color: var(--ink); }
.coach h3 {
  margin: 0 0 0.4rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; line-height: 1;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}
.coach-role { color: var(--accent); font-weight: 700; margin: 0 0 1rem; }
.coach-bio { margin: 0 0 1rem; max-width: 55ch; color: var(--ink-2); }
.coach-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.coach-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.3rem; }
.coach-list h3 { margin: 0; font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15; }
.coach-list p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .coaches { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .coach-head { grid-template-columns: 1fr; }
  .coach-tile { max-width: 200px; }
}

/* Stats */
.stats { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.stat-grid {
  margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--line); border: 2px solid var(--line);
}
.stat-grid > div { background: var(--paper); padding: 1.25rem; display: grid; gap: 0.6rem; align-content: space-between; min-height: 130px; }
.stat-grid dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.stat-grid dd {
  margin: 0;
  font-family: var(--font-mono); font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}
.leaders { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.leaders caption { caption-side: top; text-align: left; padding: 0 0 0.9rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.leaders th { text-align: left; padding: 0.75rem 0; border-bottom: 2px solid var(--line); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.leaders td { padding: 1rem 0; border-bottom: 1px solid rgba(var(--ink-rgb), 0.25); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.leaders .num { text-align: right; font-family: var(--font-mono); font-weight: 700; text-transform: none; letter-spacing: 0; padding-left: 1rem; }
.leaders tbody tr:first-child td { color: var(--accent); }
.lead-num { display: inline-block; min-width: 2.2rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); font-weight: 400; }
.leaders tbody tr:first-child .lead-num { color: inherit; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .stat-grid { grid-template-columns: 1fr; } .stat-grid > div { min-height: 0; } }

/* Schedule */
.sched-month { margin: 2.5rem 0 0.75rem; color: var(--ink-2); font-weight: 700; }
.schedule > .sched-month:first-child { margin-top: 0; }
.sched-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.game {
  position: relative;
  display: grid; grid-template-columns: 8.5rem 1.4fr 1fr 7rem; gap: 1rem; align-items: center;
  padding: 1.1rem 0 1.1rem 1rem;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.25);
}
.game::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.game:hover::before, .game.is-next::before { transform: none; }
.game-date { color: var(--ink-2); }
.game-opp {
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}
.game-ha { color: var(--accent); font-weight: 700; margin-right: 0.6rem; }
.game-loc { display: flex; flex-wrap: wrap; gap: 0.6rem; color: var(--ink-2); }
.tag { border: 1px solid currentColor; padding: 0.05rem 0.4rem; }
.game-time { text-align: right; font-weight: 700; }
.res { display: inline-block; padding: 0.3rem 0.5rem; }
.is-win .res { background: var(--accent); color: var(--on-accent); }
.is-loss .res { border: 2px solid var(--ink); }
@media (max-width: 720px) {
  .game {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'date time' 'opp opp' 'loc loc';
    gap: 0.4rem 1rem;
  }
  .game-date { grid-area: date; }
  .game-time { grid-area: time; }
  .game-opp { grid-area: opp; }
  .game-loc { grid-area: loc; }
}

/* News */
.news { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.news-slot { aspect-ratio: 16 / 10; margin-bottom: 1.25rem; }
.news-featured img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  border: 2px solid var(--line);
  margin-bottom: 1.25rem;
}
.news time { display: block; margin-bottom: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.news h3 { margin: 0 0 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; line-height: 1.02; }
.news h3 a { text-decoration: none; }
.news h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.news-featured h3 { font-size: clamp(1.75rem, 3.2vw, 3rem); text-wrap: balance; }
.news-featured p { margin: 0; max-width: 55ch; color: var(--ink-2); }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.news-list li { padding: 1.5rem 0; border-bottom: 1px solid rgba(var(--ink-rgb), 0.25); }
.news-list h3 { font-size: 1.35rem; }
.news-list p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; background: var(--paper-2); }
.footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(var(--ink-rgb), 0.3);
}
.footer-title {
  margin: 0 0 0.6rem;
  font-weight: 900; font-stretch: 108%; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.95;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}
.footer h3 { margin: 0 0 0.75rem; color: var(--ink-2); font-weight: 700; }
.footer p { margin: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; color: var(--ink-2); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Motion. Hero rises on load; sections fade up as they scroll into view using CSS
   scroll-driven animation. Browsers without support simply show everything. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-body > * { animation: rise 0.8s var(--ease) both; }
  .hero-body > :nth-child(2) { animation-delay: 0.06s; }
  .hero-body > :nth-child(3) { animation-delay: 0.12s; }
  .hero-body > :nth-child(4) { animation-delay: 0.18s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

@media print {
  .nav, .hero-media, body::after, .btn { display: none; }
  .reveal, .hero-body > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .section { border: 0; padding: 1.5rem 0; }
}
