/* ==========================================================================
   British Bulldawgs Browns Backers — design system
   Hand-written CSS, no build step, no dependencies.
   ========================================================================== */

/* --- 0. Fonts (self-hosted, no external requests) ------------------------ */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Brand — official Cleveland Browns palette */
  --brown:        #311D00;
  --brown-deep:   #1A0F00;
  --orange:       #FF3C00;
  --orange-lift:  #FF6B35;
  --cream:        #FFF4E8;

  /* Type */
  --font-display: "Anton", "Haettenschweiler", "Arial Narrow", system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.24vw, 1.13rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.4rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.6rem);
  --step-4:  clamp(2.8rem, 2rem + 4vw, 6rem);

  /* Space */
  --gutter: clamp(1.15rem, 0.8rem + 1.8vw, 2.5rem);
  --section-y: clamp(3.5rem, 2rem + 7vw, 7.5rem);
  --measure: 68ch;
  --max: 1240px;

  --radius: 14px;
  --radius-lg: 22px;

  --speed: 240ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark is the default look — it suits the brand and evening game days. */
:root,
:root[data-theme="dark"] {
  --bg:        #120A02;
  --bg-alt:    #1B1004;
  --surface:   #241606;
  --surface-2: #31200C;
  --line:      #4A331A;
  --text:      #F6EDE3;
  --text-mute: #BCA894;
  --accent:    var(--orange);
  --accent-on: #FFFFFF;
  --scrim: linear-gradient(180deg, rgba(9,5,1,.35) 0%, rgba(9,5,1,.72) 55%, rgba(18,10,2,.97) 100%);
  --shadow: 0 18px 40px -18px rgba(0,0,0,.85);
  --glass: rgba(18, 10, 2, .78);
}

:root[data-theme="light"] {
  --bg:        #FFFBF6;
  --bg-alt:    #FFF3E6;
  --surface:   #FFFFFF;
  --surface-2: #FFF0DF;
  --line:      #E8D6C0;
  --text:      #2A1806;
  --text-mute: #6E5843;
  --accent:    #D93000;
  --accent-on: #FFFFFF;
  --scrim: linear-gradient(180deg, rgba(26,15,0,.30) 0%, rgba(26,15,0,.62) 55%, rgba(26,15,0,.88) 100%);
  --shadow: 0 18px 40px -22px rgba(60,35,10,.45);
  --glass: rgba(255, 251, 246, .82);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg:        #FFFBF6;
    --bg-alt:    #FFF3E6;
    --surface:   #FFFFFF;
    --surface-2: #FFF0DF;
    --line:      #E8D6C0;
    --text:      #2A1806;
    --text-mute: #6E5843;
    --accent:    #D93000;
    --accent-on: #FFFFFF;
    --scrim: linear-gradient(180deg, rgba(26,15,0,.30) 0%, rgba(26,15,0,.62) 55%, rgba(26,15,0,.88) 100%);
    --shadow: 0 18px 40px -22px rgba(60,35,10,.45);
    --glass: rgba(255, 251, 246, .82);
  }
}

/* --- 2. Base ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, picture, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.4em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--orange-lift); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 0; top: 0;
  padding: 0.75rem 1.25rem;
  background: var(--orange); color: #fff;
  transform: translateY(-120%);
  z-index: 200; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 3. Layout ----------------------------------------------------------- */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - (var(--gutter) * 2), 780px); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

.section-head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head p { color: var(--text-mute); font-size: var(--step-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px;
  background: var(--accent); border-radius: 2px;
}

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.6vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
/* auto-fit, not auto-fill: empty tracks collapse, so three cards fill the row
   and four sit neatly on one line rather than orphaning the last one. */
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.stack > * + * { margin-top: 1.1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* --- 4. Buttons and chips ------------------------------------------------ */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-on);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; border-radius: 100px;
  font-weight: 800; font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background var(--speed) var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(255, 60, 0, .7);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--brown); }

.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: var(--surface-2); color: var(--text-mute);
  border: 1px solid var(--line); border-radius: 100px;
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.04em;
}
.chip--hot { background: rgba(255,60,0,.14); color: var(--orange-lift); border-color: rgba(255,60,0,.4); }

/* --- 5. Header ----------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  transition: background var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
/* Pages without a hero need the solid treatment immediately. */
.site-header.is-solid { background: var(--glass); border-bottom-color: var(--line); }

/* While the header floats over the hero photo it has no background of its own,
   so its text must stay light in BOTH themes — the photo behind it is dark
   whatever colour scheme the visitor is using. Without this, light mode turns
   the nav dark brown on a dark photo and it vanishes. Once the header gains
   its glass background (.is-scrolled) the normal theme colours take over. */
.site-header:not(.is-solid):not(.is-scrolled) { color: #fff; }
.site-header:not(.is-solid):not(.is-scrolled) .brand { color: #fff; }
.site-header:not(.is-solid):not(.is-scrolled) .brand-text span { color: rgba(255, 255, 255, .72); }
.site-header:not(.is-solid):not(.is-scrolled) .icon-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
}
.site-header:not(.is-solid):not(.is-scrolled) .icon-btn:hover { border-color: #fff; }

/* A soft scrim behind the floating header so the links stay legible no matter
   how bright the top of the hero image happens to be. */
.site-header:not(.is-solid):not(.is-scrolled)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 5, 1, .68), rgba(9, 5, 1, 0));
  pointer-events: none;
}

/* Desktop only: on mobile these same links live inside the drawer, which has a
   real background and needs the normal theme colour. */
@media (min-width: 901px) {
  .site-header:not(.is-solid):not(.is-scrolled) .nav a { color: #fff; }
  .site-header:not(.is-solid):not(.is-scrolled) .nav a[aria-current="page"] { color: var(--orange-lift); }
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  transition: padding var(--speed) var(--ease);
}
.site-header.is-scrolled .header-inner { padding-block: 0.45rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text); }
.brand img {
  width: 52px; height: auto;
  transition: width var(--speed) var(--ease);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.45));
}
.site-header.is-scrolled .brand img { width: 42px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase;
}
.brand-text span {
  font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mute);
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  position: relative;
  padding: 0.55rem 0.85rem;
  color: var(--text); text-decoration: none;
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 8px;
  transition: color var(--speed) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--speed) var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .moon { display: block; }
  :root:not([data-theme]) .theme-toggle .sun { display: none; }
}

.nav-toggle { display: none; }

/* Mobile drawer */
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0.25rem;
    padding: 6rem 1.5rem 2rem;
    background: var(--bg-alt);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 320ms var(--ease);
    z-index: 110;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 0.95rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  /* Below the header (z-index 100), not above it. The drawer lives inside the
     header's stacking context, so a scrim above 100 would paint over the drawer
     and grey the whole menu out. */
  .nav-scrim {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(9,5,1,.6);
    backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity var(--speed) var(--ease);
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* --- 6. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid; align-items: end;
  margin-top: calc(-1 * var(--header-h, 84px));
  padding-top: var(--header-h, 84px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  transform: scale(1.06);
  animation: heroDrift 22s var(--ease) infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--scrim);
}
@keyframes heroDrift {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.13) translateY(-2%); }
}

.hero__body { padding-block: clamp(2.5rem, 1rem + 6vw, 5rem); color: #FFF; }
.hero__body .eyebrow { color: var(--orange-lift); }
.hero h1 {
  max-width: 16ch;
  text-shadow: 0 4px 26px rgba(0,0,0,.55);
  margin-bottom: 0.35em;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
  display: block;
}
.hero__badge { margin: 0 0 1.1rem; }
.hero__badge .chip {
  background: rgba(255, 60, 0, .22);
  border-color: rgba(255, 140, 100, .55);
  color: #FFD9CC;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__lede {
  font-size: var(--step-1);
  color: rgba(255,255,255,.9);
  max-width: 52ch;
  margin-bottom: 1.9rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.2rem;
  translate: -50% 0;
  display: grid; place-items: center; gap: 0.4rem;
  color: rgba(255,255,255,.65);
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-hint span {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
  animation: hintPulse 2s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* Compact page header for interior pages */
.page-head {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1rem + 3vw, 3.5rem);
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(255,60,0,.18), transparent 55%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 18ch; margin-bottom: 0.3em; }
.page-head p { color: var(--text-mute); font-size: var(--step-1); }

/* --- 7. Next game card --------------------------------------------------- */

.nextgame {
  position: relative;
  margin-top: calc(-1 * clamp(2rem, 1rem + 4vw, 4.5rem));
  z-index: 5;
}
.nextgame__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 0.6rem + 2vw, 2.5rem);
  padding: clamp(1.4rem, 0.9rem + 2vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.nextgame__card::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: 5px; background: linear-gradient(180deg, var(--orange), #C32B00);
}
@media (min-width: 820px) {
  .nextgame__card { grid-template-columns: 1.25fr auto; align-items: center; }
}
.nextgame__meta { display: grid; gap: 0.55rem; }
.nextgame__title { font-size: var(--step-2); margin: 0; }
.nextgame__where { color: var(--text-mute); font-size: var(--step--1); }
.nextgame__where strong { color: var(--text); }
.nextgame__note {
  margin: 0.4rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: var(--step--1);
}
.nextgame__note strong { color: var(--accent); }

.countdown { display: flex; gap: 0.6rem; }
.countdown div {
  min-width: 68px;
  padding: 0.7rem 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.countdown b {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.8rem; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.countdown small {
  font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mute);
}

/* --- 8. Cards ------------------------------------------------------------ */

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,60,0,.45);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-mute); }
.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1rem;
  background: rgba(255,60,0,.13);
  border-radius: 12px; color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }

/* Event cards */
.event {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) {
  .event { grid-template-columns: 128px 1fr; }
}
.event__date {
  display: grid; place-items: center; align-content: center;
  padding: 0.9rem 0.5rem;
  background: linear-gradient(160deg, var(--orange), #B32600);
  border-radius: var(--radius);
  color: #fff; text-align: center;
  line-height: 1;
}
.event__date .d { font-family: var(--font-display); font-size: 2.4rem; }
.event__date .m { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 0.3rem; }
.event__date .y { font-size: 0.65rem; opacity: .8; margin-top: 0.2rem; }
.event--past { opacity: 0.62; }
.event--past .event__date { background: var(--surface-2); color: var(--text-mute); }
.event__body h3 { margin-bottom: 0.35rem; }
.event__body .cluster { margin-bottom: 0.8rem; }

.event__et { color: var(--text-mute); font-size: var(--step--1); margin-bottom: 0.8rem; }
.event--nomeet .event__date { background: var(--surface-2); color: var(--text-mute); }

/* --- Season table -------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  min-width: 520px;
}
.schedule th, .schedule td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.schedule th {
  font-family: var(--font-body);
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.7rem; color: var(--text-mute);
  background: var(--surface-2);
  position: sticky; top: 0;
}
.schedule tbody tr { transition: background var(--speed) var(--ease); }
.schedule tbody tr:hover { background: var(--surface-2); }
.schedule tbody tr:last-child td { border-bottom: 0; }
.schedule td:last-child { white-space: normal; }
.schedule .is-past { opacity: 0.45; }
.schedule .muted { color: var(--text-mute); font-size: 0.85em; }

/* Committee */
.member {
  overflow: hidden;
  padding: 0;
}
.member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.member:hover .member__photo img { transform: scale(1.05); }
.member__initials {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3.5rem;
  color: var(--accent);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.member__body { padding: 1.3rem 1.4rem 1.5rem; }
.member__body h3 { margin-bottom: 0.15rem; }
.member__role {
  display: block;
  font-size: var(--step--1); font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.85rem;
}
.member__bio { color: var(--text-mute); font-size: var(--step--1); line-height: 1.7; }
.member__bio p { max-width: none; }

/* Truncated bio with a native disclosure toggle */
.member__bio-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.member.is-expanded .member__bio-clamp { -webkit-line-clamp: unset; }
.member__more {
  margin-top: 0.7rem; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--accent); font-weight: 800;
  font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase;
}
.member__more:hover { color: var(--orange-lift); }

/* --- 9. Feature bands ---------------------------------------------------- */

.split {
  display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  color: var(--accent); line-height: 1;
}
.stat span { font-size: var(--step--1); color: var(--text-mute); letter-spacing: 0.06em; text-transform: uppercase; }

.cta-band {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 160% at 12% 0%, rgba(255,60,0,.28), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--text-mute); font-size: var(--step-1); }

/* Charity partner band — uses AMC's own navy so the partner reads as distinct */
.amc-band {
  --amc-navy: #14263D;
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--amc-navy), #0C1826);
  border: 1px solid rgba(255,255,255,.1);
  color: #F3F6FA;
}
.amc-band h2, .amc-band h3 { color: #fff; }
.amc-band p { color: rgba(243,246,250,.8); }
.amc-band .eyebrow { color: #9FC0E8; }
.amc-band .eyebrow::before { background: #9FC0E8; }
.amc-band .btn--light { --btn-bg: #fff; --btn-fg: var(--amc-navy); }
/* .btn--light would otherwise fill the secondary button in too, making both
   buttons look identical — keep the ghost outlined. */
.amc-band .btn--ghost.btn--light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.45);
}
.amc-band .btn--ghost.btn--light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.talk-strip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  font-family: var(--font-display); font-size: 1.2rem;
  letter-spacing: 0.04em; color: #fff;
}

/* --- 10. Gallery --------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
}
.gallery button {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); cursor: zoom-in; overflow: hidden;
  aspect-ratio: 4/3;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.gallery button:hover { transform: scale(1.02); border-color: var(--accent); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: 1.5rem;
  background: rgba(6,3,0,.93);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(100%, 1200px); max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
}

/* --- 11. Prose / lists --------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; color: var(--text-mute); }
.prose li::marker { color: var(--accent); }

.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.ticklist li {
  display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem;
  align-items: start; color: var(--text-mute);
}
.ticklist li::before {
  content: "";
  width: 22px; height: 22px; margin-top: 3px;
  background: var(--accent);
  border-radius: 50%;
  -webkit-mask: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.notice {
  padding: 1.1rem 1.35rem;
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-mute);
  font-size: var(--step--1);
}

/* --- 12. Footer ---------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  margin-bottom: 2.5rem;
}
.footer-grid h4 { font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--text-mute); text-decoration: none; font-size: var(--step--1); }
.footer-grid a:hover { color: var(--accent); }

.socials { display: flex; gap: 0.6rem; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--text);
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-mute); font-size: var(--step--1);
}

.copy-email {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 100px;
  font-size: var(--step--1); font-weight: 700; cursor: pointer;
}
.copy-email:hover { border-color: var(--accent); }
.copy-email.is-done { color: var(--accent); border-color: var(--accent); }

/* --- 13. Scroll reveal --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; transform: scale(1.02); }
}

/* No-JS safety net: never leave content invisible. */
.no-js .reveal { opacity: 1; transform: none; }
