/* ============================================================
   GRAYSON BORCHARDT — PORTFOLIO
   Dark, cinematic, tactical. Nexa + geometric sans fallbacks.
   ============================================================ */

/* ---------- Fonts ----------
   TODO: Drop Nexa font files into assets/fonts/ with these names:
   - Nexa-Light.woff2  (or .woff / .otf — update src below)
   - Nexa-Bold.woff2
   Until then, the site falls back to Montserrat (loaded in <head>)
   then Avenir/Futura/system sans. */
@font-face {
  font-family: 'Nexa';
  src: url('../assets/fonts/Nexa-Light.woff2') format('woff2'),
       url('../assets/fonts/Nexa-Light.woff') format('woff'),
       url('../assets/fonts/Nexa-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nexa';
  src: url('../assets/fonts/Nexa-Bold.woff2') format('woff2'),
       url('../assets/fonts/Nexa-Bold.woff') format('woff'),
       url('../assets/fonts/Nexa-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --surface: #14161a;
  --surface-2: #1a1d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8e6e1;
  --text-muted: #9aa0a6;
  --text-faint: #6b7076;
  --accent: #c9a227;          /* tactical gold */
  --accent-bright: #e0b93e;
  --accent-dim: rgba(201, 162, 39, 0.14);
  --danger: #b3402e;

  --font-sans: 'Nexa', 'Montserrat', 'Avenir Next', 'Avenir', 'Futura',
               -apple-system, 'Segoe UI', sans-serif;
  --fw-light: 300;
  --fw-bold: 700;

  --max-w: 1240px;
  --pad-x: clamp(20px, 5vw, 56px);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #0a0b0d; }

h1, h2, h3, h4 { font-weight: var(--fw-bold); line-height: 1.15; letter-spacing: 0.01em; }

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

/* Section label — small gold kicker above headings */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: var(--fw-bold);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.kicker::before { content: ''; width: 34px; height: 1px; background: var(--accent); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 22px; }
.section-lead { color: var(--text-muted); max-width: 720px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-weight: var(--fw-bold); font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.nav-links a {
  font-size: 12.5px; font-weight: var(--fw-bold);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0; position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 8px; width: 24px; height: 2px;
  background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav.open .nav-links { max-height: 480px; }
  .nav-links a { padding: 16px var(--pad-x); border-top: 1px solid var(--line); }
  .nav-links a::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: var(--fw-bold);
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px 28px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.3s var(--ease);
  background: transparent; color: var(--text);
}
.btn:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #0c0c0c; }
.btn-solid:hover { background: var(--accent-bright); color: #0c0c0c; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  filter: saturate(0.9);
  transform: scale(1.04);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,11,13,0.94) 0%, rgba(10,11,13,0.72) 45%, rgba(10,11,13,0.35) 100%),
    linear-gradient(to top, var(--bg) 2%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 120px 0; }
.hero-tag {
  font-size: 12px; font-weight: var(--fw-bold);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.hero-tag::before { content: ''; width: 44px; height: 1px; background: var(--accent); }
.hero h1 {
  font-size: clamp(40px, 7vw, 78px);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero-roles {
  font-size: clamp(14px, 1.6vw, 17px); font-weight: var(--fw-bold);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 26px;
}
.hero-roles em { color: var(--accent); font-style: normal; padding: 0 6px; }
.hero-statement { font-size: clamp(16px, 1.8vw, 19px); color: var(--text-muted); max-width: 620px; margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Quick stats strip ---------- */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.strip-item { padding: 28px 22px; border-left: 1px solid var(--line); }
.strip-item:first-child { border-left: 0; }
.strip-item .num { font-size: 26px; font-weight: var(--fw-bold); color: var(--accent); }
.strip-item .label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 820px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item { border-top: 1px solid var(--line); }
  .strip-item:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Featured project (home) ---------- */
.feature {
  position: relative; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.feature-media { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.feature-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,11,13,0.92) 0%, transparent 55%);
}
.feature-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(22px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.feature-body h3 { font-size: clamp(24px, 3.4vw, 40px); text-transform: uppercase; }
.feature-body .meta { color: var(--text-muted); font-size: 14px; margin-top: 8px; max-width: 560px; }
@media (max-width: 680px) {
  .feature-media { aspect-ratio: 16 / 10; }
  .feature-body { position: static; background: var(--surface); }
}

/* ---------- Cards / project grid ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative; display: block;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,39,0.06), transparent 60%),
    var(--surface-2);
}
.card-body { padding: 20px 22px 24px; }
.card-cat {
  font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.card-title { font-size: 19px; margin-bottom: 6px; }
.card-desc { font-size: 14px; color: var(--text-muted); }
.card-role { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.06em; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 38px; }
.filter-btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: var(--fw-bold);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn.active { color: #0c0c0c; background: var(--accent); border-color: var(--accent); }

/* ---------- Page header (interior pages) ---------- */
.page-head { padding: clamp(60px, 8vw, 100px) 0 clamp(36px, 5vw, 60px); }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); text-transform: uppercase; }
.page-head .sub { color: var(--text-muted); max-width: 700px; margin-top: 16px; font-size: 17px; }

/* ---------- Two-column splits ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 880px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
}
.split img { border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- About timeline ---------- */
.timeline { position: relative; margin-top: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line-strong);
}
.tl-item { position: relative; padding: 0 0 36px 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl-item .when { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.tl-item h3 { font-size: 19px; margin: 6px 0 6px; }
.tl-item p { color: var(--text-muted); font-size: 15px; max-width: 640px; }

/* ---------- Case study ---------- */
.case-hero { position: relative; }
.case-hero img { width: 100%; max-height: 64vh; object-fit: cover; }
.case-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 4%, transparent 50%);
}
.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  margin: 36px 0 0;
}
.case-meta > div { background: var(--surface); padding: 20px 22px; }
.case-meta .label { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.case-meta .value { font-size: 14.5px; color: var(--text); }
@media (max-width: 820px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }

.prose { max-width: 760px; }
.prose p { color: var(--text-muted); margin-bottom: 18px; font-size: 16px; }
.prose p strong { color: var(--text); }
.prose h2 { font-size: 26px; margin: 44px 0 16px; }
.prose ul { margin: 0 0 18px; }
.prose ul li {
  position: relative; padding: 6px 0 6px 26px; color: var(--text-muted); font-size: 15.5px;
}
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 12px; height: 1px; background: var(--accent);
}

/* Skill chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-bright); background: var(--accent-dim);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 999px; padding: 7px 15px;
}

/* ---------- Galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery a, .gallery .ph {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface-2);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.3s; }
.gallery a:hover img { transform: scale(1.03); opacity: 0.92; }
.gallery .ph {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; padding: 12px;
}
@media (max-width: 720px) { .gallery, .gallery.cols-3 { grid-template-columns: 1fr; } }
.gallery video, .video-card video {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); background: #000;
}
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-card video { border: 0; border-radius: 0; }
.video-card .cap { padding: 14px 18px; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); border-top: 1px solid var(--line); }
.gallery-label { font-size: 13px; font-weight: var(--fw-bold); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 40px 0 -18px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 6, 7, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: 4vmin; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox .close {
  position: absolute; top: 18px; right: 24px;
  font-size: 32px; color: var(--text-muted); background: none; border: 0; cursor: pointer;
}

/* ---------- Highwater page ---------- */
.hw-hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.hw-hero .hero-bg { background-position: center 22%; }
.hw-hero-content { position: relative; z-index: 2; padding: 90px 0 70px; max-width: 860px; }
.hw-hero h1 { font-size: clamp(46px, 8vw, 96px); text-transform: uppercase; letter-spacing: 0.04em; }
.hw-hero .tagline { font-size: clamp(15px, 1.8vw, 19px); color: var(--text-muted); margin-top: 14px; max-width: 640px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar:hover { border-color: rgba(201, 162, 39, 0.4); transform: translateY(-4px); }
.pillar .index { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.24em; color: var(--accent); }
.pillar h3 { font-size: 20px; margin: 12px 0 10px; }
.pillar p { font-size: 14.5px; color: var(--text-muted); }

.mission { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-top: 36px; }
.mission-head { padding: clamp(24px, 3.4vw, 40px); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: baseline; }
.mission-head h3 { font-size: clamp(22px, 2.8vw, 30px); text-transform: uppercase; }
.mission-head .meta { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.mission-body { padding: clamp(24px, 3.4vw, 40px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 920px) { .mission-body { grid-template-columns: 1fr; } }
.mission-body h4 { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 22px 0 8px; }
.mission-body h4:first-child { margin-top: 0; }
.mission-body p { font-size: 15px; color: var(--text-muted); }

/* Faction cards */
.factions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 920px) { .factions { grid-template-columns: 1fr; } }
.faction { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.faction .branch { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.faction h3 { font-size: 19px; margin: 10px 0 12px; }
.faction p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.faction ul li { font-size: 13.5px; color: var(--text-faint); padding: 4px 0; border-top: 1px solid var(--line); }
.faction ul li:first-child { border-top: 0; }
.faction ul li span { color: var(--text-muted); }

/* ---------- Resume page ---------- */
.resume-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 70px); }
@media (max-width: 880px) { .resume-grid { grid-template-columns: 1fr; } }
.resume-block { margin-bottom: 44px; }
.resume-block h2 {
  font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 12px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}
.r-item { margin-bottom: 26px; }
.r-item .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: baseline; }
.r-item h3 { font-size: 17px; }
.r-item .when { font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.1em; }
.r-item .org { font-size: 14px; color: var(--accent-bright); margin: 3px 0 8px; }
.r-item p, .r-item li { font-size: 14.5px; color: var(--text-muted); }
.r-item ul li { position: relative; padding: 3px 0 3px 20px; }
.r-item ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 10px; height: 1px; background: var(--accent); }

.skill-group { margin-bottom: 24px; }
.skill-group h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin-top: 30px; }
.contact-list a, .contact-list .row {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 4px; border-top: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease), color 0.3s;
}
.contact-list a:last-child { border-bottom: 1px solid var(--line); }
.contact-list a:hover { padding-left: 14px; color: var(--accent-bright); }
.contact-list .icon { font-size: 13px; font-weight: var(--fw-bold); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); width: 110px; flex-shrink: 0; }
.contact-list .val { font-size: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(70px, 10vw, 130px) 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 162, 39, 0.08), transparent),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(28px, 4.4vw, 48px); text-transform: uppercase; margin-bottom: 18px; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer .copy { font-size: 13px; color: var(--text-faint); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--accent-bright); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: clamp(40px, 6vw, 72px) 0; }

/* ---------- Cinematic timeline (Highwater) ---------- */
.cine-timeline { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cine-beat { background: var(--surface); padding: 15px 20px; display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: baseline; transition: background 0.2s var(--ease); }
.cine-beat:hover { background: var(--surface-2); }
.cine-beat .tc { color: var(--accent); font-weight: var(--fw-bold); font-size: 13px; letter-spacing: 0.06em; }
.cine-beat h4 { font-size: 15px; margin-bottom: 3px; }
.cine-beat p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 600px) { .cine-beat { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Responsive video embed ---------- */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }



/* ---------- Gateway (3-panel discipline menu) ---------- */
.gateway-body { min-height: 100vh; background: radial-gradient(ellipse at 50% -10%, #16181d 0%, var(--bg) 60%); }
.gateway { max-width: 1200px; margin: 0 auto; min-height: calc(100vh - 68px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 4vw, 50px) var(--pad-x) clamp(40px, 6vw, 70px); }
.gateway-intro { text-align: center; margin-bottom: clamp(24px, 4vw, 48px); }
.gateway-sub { color: var(--text-muted); margin: 4px auto 0; font-size: 15.5px; max-width: 600px; }
.gate-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 780px) { .gate-panels { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }
.panel { position: relative; aspect-ratio: 2200 / 1424; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center;
  opacity: 0.6; filter: saturate(0.82);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease), filter 0.45s var(--ease), border-color 0.45s var(--ease); }
.panel-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s var(--ease); }
.panel-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,11,0.92) 0%, rgba(8,9,11,0.28) 42%, rgba(8,9,11,0.04) 100%); }
.panel-label { position: relative; z-index: 2; text-align: center; padding: 0 14px clamp(22px, 3vw, 34px);
  font-weight: var(--fw-bold); font-size: clamp(15px, 1.6vw, 20px); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.25; }
.pl-index { display: block; font-size: 11px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 10px; }
.panel:hover, .panel:focus-visible { opacity: 1; filter: saturate(1); transform: translateY(-8px); border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 36px rgba(201, 162, 39, 0.45), 0 22px 54px rgba(0, 0, 0, 0.55); outline: none; }
.panel:hover .panel-img, .panel:focus-visible .panel-img { transform: scale(1.06); }

/* ---------- Page transitions ---------- */
body { animation: pageIn 0.55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.page-fade { position: fixed; inset: 0; background: var(--bg); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.42s var(--ease); }
body.leaving .page-fade { opacity: 1; }
@media (prefers-reduced-motion: reduce) { body { animation: none; } .page-fade { display: none; } }
