/* ==========================================================================
   Millis Dynamics site styles
   Single stylesheet, no build step. Edit the tokens below to re-skin the site.
   ========================================================================== */

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

:root {
  /* Brand: swap these three to change the whole site's colour identity */
  --brand: #c8102e;          /* Millis red */
  --brand-dark: #9c0c23;
  --accent: #a81c2b;         /* deeper red, taken from the logo gradient */
  --accent-strong: #8b1523;  /* darker red for hover states */
  --accent-ink: #ffffff;     /* text that sits on top of the accent */

  /* Surfaces + text (light theme) */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --ink: #14171f;
  --ink-2: #444b5a;
  --ink-3: #6b7385;
  --line: #e2e6ee;
  --scrim: rgba(12, 14, 20, 0.62);

  /* Type */
  --font-display: "Space Grotesk", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing + shape */
  --page: 1160px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16, 20, 30, 0.06), 0 10px 30px rgba(16, 20, 30, 0.07);
  --shadow-lg: 0 18px 50px rgba(16, 20, 30, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --surface: #171b24;
    --surface-2: #1e232e;
    --ink: #f2f4f8;
    --ink-2: #c3c9d6;
    --ink-3: #949cae;
    --line: #2a3140;
    --scrim: rgba(6, 8, 12, 0.66);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
    --accent: #ff8a99;
    --accent-strong: #ffa8b3;
    --accent-ink: #3a0510;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--brand-dark); }

@media (prefers-color-scheme: dark) {
  a { color: var(--accent); }
  a:hover { color: #fff; }
}

img { max-width: 100%; display: block; }
strong { font-weight: 650; }

/* Class-based display rules below would otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--surface-2); }
.section--edge { border-top: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--accent);
}
@media (prefers-color-scheme: dark) {
  .eyebrow { color: var(--accent); }
}

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: 1.35fr 1fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

.lede { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Buttons + pills
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-3); }

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-strong); color: var(--accent-ink); }

.btn--sm { padding: 0.62rem 1rem; font-size: 0.9rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill--brand { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.pill--accent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: #8b1523; border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
@media (prefers-color-scheme: dark) {
  .pill--brand { color: #ff8095; }
  .pill--accent { color: var(--accent); }
}

/* --------------------------------------------------------------------------
   5. Header + nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* background-image, not the `background` shorthand; the shorthand would
     reset background-clip and paint the gradient as a solid block. */
  .brand__name {
    background-image: linear-gradient(180deg, #3d0810 0%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  @media (prefers-color-scheme: dark) {
    .brand__name { background-image: linear-gradient(180deg, #ffa8b3 0%, #e63950 100%); }
  }
}
.brand__tag {
  display: block;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 4px; }
.nav-toggle__bars::after { bottom: 0; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
@media (prefers-color-scheme: dark) {
  .site-nav a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
}
.site-nav .nav-cta a {
  background: var(--brand);
  color: #fff;
  padding-inline: 1.05rem;
}
.site-nav .nav-cta a:hover { background: var(--brand-dark); color: #fff; }

@media (max-width: 68rem) {
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.6rem var(--gutter) 1.1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a { padding: 0.8rem 0.9rem; border-radius: var(--radius); }
  .site-nav .nav-cta a { margin-top: 0.4rem; text-align: center; }
}
@media (min-width: 68.0625rem) {
  .nav-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero + shuffling banner
   -------------------------------------------------------------------------- */

.hero { position: relative; background: #0f1218; }

.banner {
  position: relative;
  isolation: isolate;
  min-height: clamp(26rem, 62vh, 34rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.banner__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.banner__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 7s linear;
}
.banner__slide.is-active { opacity: 1; transform: scale(1); }

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--scrim) 0%, rgba(12, 14, 20, 0.45) 45%, rgba(12, 14, 20, 0.25) 100%),
    linear-gradient(105deg, rgba(200, 16, 46, 0.35), rgba(12, 14, 20, 0) 62%);
}

.banner__body {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  color: #fff;
  max-width: 46rem;
}
.banner__body h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.banner__body p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 42rem;
}
.banner__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10, 12, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.banner__ui {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}
.banner__dots { display: flex; gap: 0.4rem; }
.banner__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
}
.banner__dot[aria-pressed="true"] { background: #fff; transform: scale(1.15); }
.banner__arrows { display: flex; gap: 0.35rem; }
.banner__arrow {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 12, 18, 0.45);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.banner__arrow:hover { background: rgba(10, 12, 18, 0.75); }

/* The banner is always dark, so the ghost button can't inherit the page ink. */
.banner__body .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(10, 12, 18, 0.28);
}
.banner__body .btn--ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.banner__caption {
  margin: 1.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 26rem;
}

@media (max-width: 40rem) {
  .banner__arrows { display: none; }
  /* Dots move to the centre, so the copy needs room to clear them. */
  .banner__ui { right: 50%; transform: translateX(50%); }
  .banner__body { padding-bottom: 4rem; }
}

/* Compact page header used on the interior pages */
.page-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(200, 16, 46, 0.22), transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}
.page-head__inner { max-width: 60ch; position: relative; }
.page-head h1 { margin-bottom: 0.5rem; }
.page-head p { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 0; }
.page-head__mark {
  position: absolute;
  right: calc(var(--gutter) - 1rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(7rem, 16vw, 11rem);
  opacity: 0.09;
  pointer-events: none;
}
@media (max-width: 52rem) {
  .page-head__mark { display: none; }
}

/* --------------------------------------------------------------------------
   7. Cards, stats, lists
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}
.card__icon svg { width: 1.4rem; height: 1.4rem; display: block; }
@media (prefers-color-scheme: dark) {
  .card__icon { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }

.stat-row {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 1.4rem 1.25rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  .stat__num { color: var(--accent); }
}
.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.checks { list-style: none; padding: 0; }
.checks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  color: var(--ink-2);
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -0.05em;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Timeline (About page) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--brand), var(--accent));
  border-radius: 2px;
}
.timeline > li { position: relative; margin-bottom: 1.65rem; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.5rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 3px solid var(--brand);
}
.timeline__when {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.15rem;
}
.timeline h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.timeline p { color: var(--ink-2); margin-bottom: 0; }

/* Key-dates list */
.dates { list-style: none; margin: 0; padding: 0; }
.dates li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px dashed var(--line);
}
.dates li:last-child { border-bottom: 0; }
.dates__when {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  min-width: 9.5rem;
}
@media (prefers-color-scheme: dark) {
  .dates__when { color: var(--accent); }
}
.dates__what { flex: 1 1 16rem; }
.dates__what small { display: block; color: var(--ink-3); }

/* Budget table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: 0.97rem; }
table.data th,
table.data td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
}
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Two-column tables that live inside a card column and shouldn't force a scrollbar */
table.data--compact { min-width: 0; }
table.data--compact th,
table.data--compact td { padding-inline: 0; }
table.data tfoot td { font-weight: 700; background: var(--surface-2); border-bottom: 0; }
table.data tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   8. News
   -------------------------------------------------------------------------- */

.news-list { display: grid; gap: 1.25rem; }

.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.post__date {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.post h2, .post h3 { margin-bottom: 0.5rem; }
.post p:last-child { margin-bottom: 0; }
.post__body { color: var(--ink-2); }

.teaser-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.teaser {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.teaser h3 { font-size: 1.08rem; }
.teaser p { color: var(--ink-2); font-size: 0.97rem; }
.teaser__more { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   9. Embeds (Google Form / Google Calendar)
   -------------------------------------------------------------------------- */

.embed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.embed iframe {
  display: block;
  width: 100%;
  border: 0;
}
.embed--form iframe { min-height: 1100px; }
.embed--calendar iframe { min-height: 640px; }
@media (max-width: 40rem) {
  .embed--calendar iframe { min-height: 520px; }
}
/* Video keeps a 16:9 box whatever the width, so nothing jumps as it loads. */
.embed--video iframe { aspect-ratio: 16 / 9; height: auto; background: #000; }

.setup-note {
  background: var(--surface);
  border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.setup-note h3 { margin-bottom: 0.4rem; }
.setup-note code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}
.setup-note ol { margin-bottom: 0; color: var(--ink-2); }

/* Placeholder marker used on stand-in photos / logos */
.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 0.6rem;
}
.placeholder-tag::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
}

/* Sponsor strip */
.sponsor-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
}
.sponsor-slot {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: 6.5rem;
  padding: 1rem;
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-3);
  font-size: 0.85rem;
}
.sponsor-slot strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* Callout band */
.band {
  background: linear-gradient(120deg, var(--brand), #7c0a1c 65%, #1a1d26);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.9); }
.band a:not(.btn) { color: var(--accent); }
.band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.band .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 1.25rem 1.15rem; color: var(--ink-2); }
.faq .faq__a > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 2.75rem 1.75rem;
  margin-top: 1rem;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
@media (prefers-color-scheme: dark) {
  .site-footer a:hover { color: var(--accent); }
}
.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   11. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .banner__slide { transform: none; }
}

/* --------------------------------------------------------------------------
   12. Sponsor tiers
   -------------------------------------------------------------------------- */

.tier-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
}
.tier__name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.35rem;
}
.tier__price {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.tier__price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-top: 0.35rem;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.tier li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
}
.tier > :last-child { margin-top: auto; margin-bottom: 0; }

.tier--feature {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: var(--shadow-lg);
}
.tier--feature .tier__name { color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .tier__price { color: var(--accent); }
  .tier--feature { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
  .tier--feature .tier__name { color: var(--accent); }
}

/* --------------------------------------------------------------------------
   13. Tabs (student / volunteer sign-up forms)
   -------------------------------------------------------------------------- */

.tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tabs__tab {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.97rem;
  line-height: 1;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tabs__tab:hover { color: var(--ink); background: var(--surface-2); }
.tabs__tab[aria-selected="true"] { background: var(--brand); color: #fff; }
.tabs__tab[aria-selected="true"]:hover { background: var(--brand-dark); color: #fff; }

/* --------------------------------------------------------------------------
   14. Team members
   -------------------------------------------------------------------------- */

.member-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.member {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.member__avatar {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-color-scheme: dark) {
  .member__avatar { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
}
.member__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.member__role { font-size: 0.88rem; color: var(--ink-3); }
.member__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.member__links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.member__links a:hover { border-color: var(--brand); color: var(--brand); }

/* Advisors and volunteers get a headshot rather than initials. */
.member--photo .member__avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1rem;
}

.member--open {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}
.member--open .member__avatar { background: var(--surface-2); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   15. Social + support buttons
   -------------------------------------------------------------------------- */

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.social-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.social-btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.social-btn small {
  display: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.social-btn.is-pending {
  opacity: 0.62;
  cursor: default;
  border-style: dashed;
}
.social-btn.is-pending:hover { border-color: var(--line); color: var(--ink); transform: none; }
.social-btn.is-pending small { display: inline; }

/* On the dark callout band */
.band .social-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.band .social-btn:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.18); }
.band .social-btn small { color: rgba(255, 255, 255, 0.75); }

/* --------------------------------------------------------------------------
   16. Brand hero (used while we have no team photos)
   -------------------------------------------------------------------------- */

.hero--brand {
  background:
    radial-gradient(120% 130% at 78% 12%, rgba(200, 16, 46, 0.4), transparent 62%),
    linear-gradient(160deg, #1b202b 0%, #12151d 45%, #24101a 100%);
  color: #fff;
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 7vw, 4.75rem);
}
@media (min-width: 60rem) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

.hero__copy h1 { color: #fff; text-wrap: balance; }
.hero__copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 40rem;
}
.hero__copy .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(10, 12, 18, 0.28);
}
.hero__copy .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.16); color: #fff; }

/* The white plate stands in for a photo: it presents the team's own artwork. */
.hero__plate {
  background: #fff;
  border-radius: 26px;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  display: grid;
  place-items: center;
}

.lockup {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 1.35rem);
}
.lockup img { width: clamp(4rem, 11vw, 6.5rem); height: auto; }
.lockup__word {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #7d1220;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lockup__word {
    background-image: linear-gradient(180deg, #3d0810 0%, #c8102e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.lockup__sub {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.7rem, 1.7vw, 1rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #7c7c7c;
  margin-top: 0.45rem;
}

/* --------------------------------------------------------------------------
   17. Internal portal
   -------------------------------------------------------------------------- */

.portal-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.portal-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  color: inherit;
}
.portal-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  margin-bottom: 0.7rem;
}
.portal-card__icon svg { width: 1.35rem; height: 1.35rem; }
@media (prefers-color-scheme: dark) {
  .portal-card__icon { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
}
.portal-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.portal-card__desc { font-size: 0.93rem; color: var(--ink-2); }
.portal-card__go {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  .portal-card__go { color: var(--accent); }
}
.portal-card.is-pending {
  border-style: dashed;
  box-shadow: none;
  cursor: default;
  opacity: 0.75;
}
.portal-card.is-pending:hover { transform: none; box-shadow: none; border-color: var(--line); }
.portal-card.is-pending .portal-card__go { color: var(--ink-3); }
.portal-card.is-pending .portal-card__go::after { content: " (not set up yet)"; font-weight: 500; }

.notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
}
.notice svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.15rem; color: var(--accent); }
.notice p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  .notice svg { color: var(--accent); }
}

/* --------------------------------------------------------------------------
   18. Portal passcode gate
   -------------------------------------------------------------------------- */

.gate {
  max-width: 30rem;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
  text-align: center;
}
.gate__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}
.gate__icon svg { width: 1.5rem; height: 1.5rem; }
.gate h2 { margin-bottom: 0.4rem; }
.gate p { color: var(--ink-2); }
.gate form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.4rem;
}
.gate input {
  flex: 1 1 12rem;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
}
.gate input::placeholder { color: var(--ink-3); }
.gate__error {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  .gate__error { color: #ff8095; }
}
.gate__note { margin: 1.4rem 0 0; font-size: 0.85rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   19. Roster table (team members and grades)
   -------------------------------------------------------------------------- */

table.roster { width: 100%; border-collapse: collapse; min-width: 26rem; }
table.roster th,
table.roster td { padding: 0.85rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); }
table.roster thead th {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
}
table.roster tbody tr:last-child td { border-bottom: 0; }
table.roster td.grade { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
table.roster td.role { color: var(--ink-2); }
table.roster .empty {
  color: var(--ink-3);
  font-style: italic;
  padding-block: 1.6rem;
}

/* Resource page groups need air between them. */
.res-group + .res-group {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
}

/* On the dark hero and the red band, the deep teal loses its punch as a
   primary CTA, so those surfaces use the brighter variant. */
.hero--brand .btn--accent,
.band .btn--accent {
  background: #ffffff;
  color: var(--brand-dark);
}
.hero--brand .btn--accent:hover,
.band .btn--accent:hover {
  background: #ffe6ea;
  color: var(--brand-dark);
}

/* The portal is a team link, not a visitor link, so it sits apart in the nav. */
.nav-portal { margin-left: 0.35rem; }
/* Outlined with an inset shadow rather than a border, so the ring does not
   make this item taller than its neighbours and nudge it out of line. */
.nav-portal a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-portal a:hover { color: var(--brand); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, var(--line)); }
.nav-portal a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }
.nav-portal svg { width: 0.95rem; height: 0.95rem; }
@media (max-width: 68rem) {
  .nav-portal { margin-left: 0; margin-top: 0.4rem; }
  .nav-portal a { justify-content: center; }
}
