/* ABA Media — site design system */
:root {
  --bg: #0b0d10;
  --bg-2: #101318;
  --surface: #151a21;
  --line: #232a33;
  --text: #eceef1;
  --muted: #9aa3ad;
  --accent: #4a99e9;
  --accent-2: #74b6f7;
  --maxw: 1200px;
  --radius: 14px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(rgba(8,10,13,.92), rgba(8,10,13,.75));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand .brand-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em;
  color: var(--muted); text-transform: uppercase; padding-left: 12px;
  border-left: 1px solid var(--line);
}
nav.primary { display: flex; gap: 28px; align-items: center; }
nav.primary a {
  color: var(--text); font-size: 14px; font-weight: 500;
  letter-spacing: .02em; opacity: .85;
}
nav.primary a:hover, nav.primary a.active { color: var(--accent-2); opacity: 1; }
nav.primary a.cta {
  background: var(--accent); color: #fff; padding: 9px 18px;
  border-radius: 999px; font-weight: 700; opacity: 1;
}
nav.primary a.cta:hover { background: var(--accent-2); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  isolation: isolate; overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: saturate(.9);
  transform: scale(1.04);
}
.hero .scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,10,13,.55) 0%, rgba(8,10,13,.25) 55%, rgba(8,10,13,.15) 100%),
    linear-gradient(rgba(8,10,13,.08) 0%, rgba(8,10,13,.30) 45%, rgba(11,13,16,.82) 100%);
}
.hero .wrap { padding-top: 120px; padding-bottom: 80px; }
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
h1.display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 7.2vw, 92px); line-height: 1.02;
  letter-spacing: -0.02em; margin-bottom: 26px;
}
h1.display .dim { color: var(--muted); }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: #c7cdd4; max-width: 640px; margin-bottom: 38px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: all .18s ease;
}
.btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn.ghost { border-color: rgba(255,255,255,.25); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.hero .meta-strip {
  margin-top: 64px; display: flex; gap: 36px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.hero .meta-strip b { color: var(--text); font-weight: 600; }

/* ---------- sections ---------- */
section.block { padding: 96px 0; }
section.block.tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 52px; max-width: 720px; }
h2.title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.015em; line-height: 1.1;
  margin: 14px 0 18px;
}
.section-head p { color: var(--muted); font-size: 18px; }

/* cards */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: #38424e; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(74,153,233,.14); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* video grid */
.vid-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; transition: transform .18s ease, border-color .18s ease;
}
.vid-card:hover { transform: translateY(-4px); border-color: #38424e; }
.vid-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.vid-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.vid-card:hover .thumb img { transform: scale(1.05); }
.vid-card .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.vid-card .play span {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(10,12,15,.72); border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; padding-left: 4px;
  transition: all .18s ease;
}
.vid-card:hover .play span { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.08); }
.vid-card .info { padding: 18px 20px; }
.vid-card .info h3 { font-family: var(--font-display); font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.vid-card .info .cat {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}

/* filter chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--muted);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(5,6,8,.92); padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox .frame { width: min(1100px, 100%); aspect-ratio: 16/9; }
.lightbox iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.lightbox .close {
  position: absolute; top: 22px; right: 28px; background: none; border: 0;
  color: #fff; font-size: 34px; cursor: pointer; opacity: .8;
}
.lightbox .close:hover { opacity: 1; }

/* banner / cta */
.banner {
  border-radius: 20px; padding: 64px 56px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0d1b2b 0%, #151a21 60%);
  border: 1px solid #1e3a57;
}
.banner h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; letter-spacing: -0.015em; }
.banner p { color: #c7cdd4; max-width: 640px; margin-bottom: 30px; }

/* page hero (interior pages) */
.page-hero { padding: 170px 0 70px; position: relative; isolation: isolate; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .22; }
.page-hero .scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(11,13,16,.2), var(--bg)); }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.5vw, 66px); letter-spacing: -0.02em; margin: 14px 0 18px; }
.page-hero p.sub { color: var(--muted); font-size: 19px; max-width: 680px; }

/* prose */
.prose { max-width: 760px; }
.prose p { margin-bottom: 22px; color: #c7cdd4; }
.prose h3 { font-family: var(--font-display); font-size: 24px; margin: 40px 0 14px; }
.prose ul { margin: 0 0 22px 22px; color: #c7cdd4; }
.prose li { margin-bottom: 8px; }

/* team */
.person { text-align: center; }
.person img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); margin-bottom: 14px;
}
.person h3 { font-family: var(--font-display); font-size: 16px; }
.person .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* lessons */
.lesson {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 16px;
}
.lesson .top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.lesson .num {
  font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: .1em;
}
.lesson h3 { font-family: var(--font-display); font-size: 20px; }
.lesson .speaker { color: var(--muted); font-size: 14px; }
.lesson .dl-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dl {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em;
  padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line);
  color: #c7cdd4; background: var(--bg-2);
}
.dl:hover { border-color: var(--accent); color: var(--accent-2); }
.dl b { color: var(--accent); font-weight: 600; }

/* episodes */
.episode {
  display: flex; gap: 20px; align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.episode .num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; min-width: 46px; }
.episode h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; flex: 1; }
.episode .date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* notice */
.notice {
  border: 1px solid #1e3a57; background: rgba(74,153,233,.08);
  border-radius: var(--radius); padding: 18px 22px; font-size: 15px; color: #aecbe8;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 30px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat .n { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #c7cdd4; }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 13px 15px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

/* footer */
footer.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: #08090c; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-grid a, .foot-grid p { display: block; color: #b7bec7; font-size: 14.5px; margin-bottom: 9px; }
.foot-grid a:hover { color: var(--accent-2); }
.foot-brand img { height: 30px; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 300px; }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

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

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 980px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav.primary {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #0a0c0f; padding: 24px;
    border-bottom: 1px solid var(--line); gap: 18px;
  }
  nav.primary.open { display: flex; }
  .nav-toggle { display: block; }
  .brand .brand-tag { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .banner { padding: 44px 28px; }
  section.block { padding: 64px 0; }
}

/* text wordmark */
.wm { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: .04em; color: #fff; line-height: 1; }
.wm b { color: var(--accent); font-weight: 800; }

/* no-JS fallback: never hide content */
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* video hero background */
video.bg { width: 100%; height: 100%; object-fit: cover; object-position: center; }
video.bg.vid { z-index: -2; }
@media (prefers-reduced-motion: reduce) { video.bg.vid { display: none; } }

/* legibility over brighter hero image */
.hero .kicker, .hero h1.display, .hero .lede { text-shadow: 0 2px 18px rgba(6,8,11,.55); }
.hero .meta-strip { text-shadow: 0 1px 10px rgba(6,8,11,.7); }

/* video-background page headers (Our Work, About, etc.) */
.page-hero.has-video { padding: 190px 0 96px; }
.page-hero.has-video .bg { opacity: 1; }
.page-hero.has-video .scrim {
  background:
    linear-gradient(90deg, rgba(8,10,13,.55) 0%, rgba(8,10,13,.28) 60%, rgba(8,10,13,.18) 100%),
    linear-gradient(rgba(8,10,13,.15) 0%, rgba(8,10,13,.35) 55%, rgba(11,13,16,.9) 100%);
}
.page-hero.has-video .kicker, .page-hero.has-video h1, .page-hero.has-video p.sub { text-shadow: 0 2px 18px rgba(6,8,11,.6); }
