  @font-face {
    font-family: 'Fredoka';
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/fredoka-600.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Jost';
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/jost-variable.woff2') format('woff2');
  }

  /* Committed single-theme palette: blue grounds, honey ink. */
  :root, :root[data-theme="dark"], :root[data-theme="light"] {
    --ground: #0D1B33;
    --panel: #142647;
    --panel-2: #1A2F55;
    --ink: #EEE9A5;
    --ink-soft: #BFB679;
    --honey: #F7E326;
    --gold: #BBA13E;
    --cream: #EEE9A5;
    --red: #FF3B2E;
    --hairline: rgba(247, 227, 38, 0.22);
    --shadow: 0 18px 50px rgba(3, 8, 20, 0.55);
  }
  html { color-scheme: dark; }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
  section { scroll-margin-top: 1.5rem; }
  body {
    background:
      url('/assets/img/hex.svg') repeat,
      var(--ground);
    color: var(--ink);
    font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
  }
  body { overflow-x: clip; }
  .wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

  .label {
    font-family: Jost, sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
  }
  h1, h2 { text-wrap: balance; }

  /* announcement bar */
  .bar {
    background: #0A142A;
    border-bottom: 1px solid var(--hairline);
    color: var(--honey);
    font-family: Jost, sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.5rem 1rem;
  }
  .bar .dot {
    display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%;
    background: var(--red); margin: 0 0.55em 0.08em 0; vertical-align: middle;
  }

  /* nav */
  nav {
    display: flex; align-items: center; gap: 2rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--hairline);
  }
  .mark { display: flex; align-items: center; gap: 0.9rem; position: relative; min-width: 0; }
  .mark-text { min-width: 0; }
  .mark img {
    height: 78px; width: auto;
    margin: -8px 0 -22px;   /* the horse leans out of the header frame */
    position: relative; z-index: 2;
    filter: drop-shadow(0 6px 14px rgba(3, 8, 20, 0.55));
  }
  /* the eye's laser, continuing from the baked streak to underline the wordmark */
  .mark::after {
    content: ""; position: absolute;
    left: 54px; top: 17px; right: -46px; height: 2px;
    background: linear-gradient(90deg, rgba(255, 59, 46, 0.95), rgba(255, 59, 46, 0.28) 62%, transparent);
    box-shadow: 0 0 7px rgba(255, 59, 46, 0.55);
    z-index: 0; pointer-events: none;
  }
  .mark-text { position: relative; z-index: 1; }
  .mark-text { display: flex; flex-direction: column; }
  .mark-name { margin-bottom: 0.22rem; }
  .mark-name {
    font-family: Jost, sans-serif; font-weight: 700;
    letter-spacing: 0.3em; font-size: 1.02rem; line-height: 1;
  }
  .mark-sub {
    font-family: Jost, sans-serif; font-weight: 500;
    font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold); line-height: 1.35;
  }
  @media (max-width: 480px) { .mark-sub { font-size: 0.53rem; letter-spacing: 0.12em; } }
  nav ul { display: flex; gap: 1.6rem; list-style: none; margin-left: auto; }
  nav ul a {
    color: var(--ink-soft); text-decoration: none;
    font-family: Jost, sans-serif; font-weight: 500;
    font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase;
  }
  nav ul a:hover, nav ul a:focus-visible { color: var(--honey); outline: none; }

  /* mobile nav: hamburger collapse */
  .nav-toggle { display: none; }
  .nav-burger { display: none; }
  @media (max-width: 980px) {
    nav { flex-wrap: wrap; gap: 1rem; }
    nav ul, nav > .cta { display: none; }
    .mark img { height: 64px; margin: -6px 0 -16px; }
    .mark::after { left: 45px; top: 15px; right: 0; }
    .nav-burger {
      display: flex; flex-direction: column; justify-content: center; gap: 5px;
      margin-left: auto; width: 40px; height: 40px; padding: 8px;
      cursor: pointer; border: 1px solid var(--hairline); border-radius: 10px;
    }
    .nav-burger span {
      display: block; height: 2px; border-radius: 2px;
      background: var(--honey); transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .nav-burger:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-toggle:checked ~ ul {
      display: flex; flex-direction: column; gap: 0;
      flex-basis: 100%; margin: 0;
    }
    .nav-toggle:checked ~ ul li { border-top: 1px solid var(--hairline); }
    .nav-toggle:checked ~ ul a {
      display: block; padding: 0.9rem 0.2rem; font-size: 1rem;
    }
    .nav-toggle:checked ~ .cta {
      display: inline-block; flex-basis: 100%; text-align: center;
      margin-bottom: 0.5rem;
    }
  }
  .cta {
    font-family: Jost, sans-serif; font-weight: 700; font-size: 0.85rem;
    letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
    color: #0D1B33; background: var(--honey);
    padding: 0.6rem 1.25rem; border-radius: 999px;
    border: 2px solid transparent;
  }
  .cta:hover, .cta:focus-visible { background: transparent; color: var(--honey); border-color: var(--honey); outline: none; }
  .cta.ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
  .cta.ghost:hover, .cta.ghost:focus-visible { border-color: var(--honey); color: var(--honey); }

  /* ---- cinematic full-viewport hero ---- */
  .hero-mega {
    position: relative; overflow: hidden;
    min-height: clamp(560px, 92vh, 1040px);
    display: flex; align-items: center;
    border-bottom: 1px solid var(--hairline);
  }
  .hm-stage { position: absolute; inset: 0; }
  .hm-rings {
    position: absolute; top: 50%; right: -12vmin;
    width: 150vmin; height: 150vmin; margin-top: -75vmin;
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(247,227,38,0.17) 0%, transparent 58%),
      repeating-radial-gradient(circle, transparent 0 8vmin, rgba(247,227,38,0.09) 8vmin 8.25vmin);
    will-change: translate;
  }
  .hm-horse {
    position: absolute; right: -1vw; bottom: -12vh;
    height: 106vh; width: calc(106vh * 0.8652);
    will-change: translate;
  }
  .hm-horse img {
    width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 34px 70px rgba(3, 8, 20, 0.65));
  }
  /* the eye's beam, firing across the viewport; anchored to the eye (80.4%, 33%) */
  .hm-beam {
    position: absolute; top: 33%; right: 19.6%; left: -120vw; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,59,46,0.10) 30%, rgba(255,59,46,0.8));
    transform-origin: right center;
    opacity: 0.55;
  }
  .hm-eye {
    position: absolute; top: 33%; left: 80.4%;
    width: 9vmin; height: 9vmin; margin: -4.5vmin 0 0 -4.5vmin;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,59,46,0.5), transparent 65%);
    opacity: 0.7;
  }
  .hm-scrim {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, var(--ground) 8%, rgba(13,27,51,0.82) 34%, transparent 66%);
  }
  .hm-copy { position: relative; z-index: 2; width: 100%; padding-top: 2rem; padding-bottom: 4rem; }
  .hm-copy h1 {
    font-family: Fredoka, sans-serif; font-weight: 600;
    font-size: clamp(2.7rem, 7.2vw, 5.9rem);
    line-height: 1.0; letter-spacing: 0.005em;
    max-width: 13ch;
    text-shadow: 0 10px 44px rgba(3, 8, 20, 0.85);
  }
  .hm-copy h1 .hive { color: var(--honey); }
  .hm-copy .def {
    margin-top: 1.6rem; max-width: 30rem;
    color: var(--ink-soft); font-size: 1.05rem; font-style: italic;
    text-shadow: 0 4px 22px rgba(3, 8, 20, 0.9);
  }
  .hm-copy .def b { color: var(--ink); font-style: normal; }
  .actions { display: flex; gap: 0.9rem; margin-top: 2.1rem; flex-wrap: wrap; }
  .hm-scroll {
    position: absolute; z-index: 2; left: 50%; bottom: 1.4rem;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
    font-family: Jost, sans-serif; font-weight: 700; font-size: 0.62rem;
    letter-spacing: 0.34em; text-transform: uppercase;
    color: var(--gold); text-decoration: none;
  }
  .hm-scroll span {
    width: 0.7rem; height: 0.8rem; background: var(--honey);
    clip-path: polygon(50% 100%, 100% 25%, 50% 45%, 0 25%);
  }
  .hm-scroll:hover, .hm-scroll:focus-visible { color: var(--honey); outline: none; }
  @media (prefers-reduced-motion: no-preference) {
    .hm-rings { animation: hmRings 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .hm-horse { animation: hmHorse 1s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.15s; }
    .hm-beam { animation: hmBeam 1.1s cubic-bezier(0.7, 0, 0.2, 1) both 0.95s; }
    .hm-eye { animation: hmEye 3.4s ease-in-out 2.1s infinite alternate; }
    .hm-copy > * { animation: rise 0.8s ease both 0.35s; }
    .hm-copy .def { animation-delay: 0.5s; }
    .hm-copy .actions { animation-delay: 0.65s; }
    .hm-scroll span { animation: hmNudge 2.2s ease-in-out infinite; }
    @keyframes hmRings { from { opacity: 0; scale: 0.86; } to { opacity: 1; scale: 1; } }
    @keyframes hmHorse { from { opacity: 0; transform: translateX(6%) scale(1.04); } to { opacity: 1; transform: none; } }
    @keyframes hmBeam { 0% { transform: scaleX(0); opacity: 0; } 35% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0.55; } }
    @keyframes hmEye { from { opacity: 0.55; } to { opacity: 1; } }
    @keyframes hmNudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
  }
  @media (max-width: 820px) {
    .hero-mega { min-height: clamp(520px, 86vh, 820px); }
    .hm-horse { right: -8vw; height: 60vh; width: calc(60vh * 0.8652); bottom: -4vh; opacity: 0.95; }
    .hm-scrim { background: linear-gradient(90deg, var(--ground) 4%, rgba(13,27,51,0.86) 46%, rgba(13,27,51,0.25) 100%); }
    .hm-copy h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  }

  /* sections */
  section { padding: 4.2rem 0; border-top: 1px solid var(--hairline); }
  .sec-head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
  .sec-head h2 {
    font-family: Fredoka, sans-serif; font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
  }
  .sec-head .label { margin-right: auto; }

  /* season */
  .season { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
  @media (max-width: 800px) { .season { grid-template-columns: 1fr; } }
  .season-card {
    background: var(--panel);
    border: 1px solid var(--gold);
    border-radius: 18px; padding: 2rem; box-shadow: var(--shadow);
  }
  .season-card img { max-width: 100%; height: auto; }
  .season-copy p { color: var(--ink-soft); max-width: 34rem; }
  .season-copy p + p { margin-top: 0.9rem; }
  .hex-facts { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
  .hex-fact { display: flex; gap: 0.9rem; align-items: baseline; }
  .hex-fact .hex {
    flex: none; width: 0.85rem; height: 0.98rem; margin-top: 0.2rem;
    background: var(--honey);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  }
  .hex-fact b { color: var(--ink); }
  .hex-fact span { color: var(--ink-soft); }

  /* schedule */
  .sched { border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; }
  .sched-row {
    display: grid; grid-template-columns: 9rem 1fr auto;
    gap: 1.4rem; align-items: center;
    padding: 1.05rem 1.6rem;
    background: var(--panel);
  }
  .sched-row:nth-child(even) { background: var(--panel-2); }
  .sched-row .date {
    font-family: Jost, sans-serif; font-weight: 700;
    font-variant-numeric: tabular-nums; letter-spacing: 0.06em;
    color: var(--honey); font-size: 0.95rem;
  }
  .sched-row .what b { display: block; }
  .sched-row .what span { color: var(--ink-soft); font-size: 0.9rem; }
  .chip {
    font-family: Jost, sans-serif; font-weight: 700; font-size: 0.68rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    padding: 0.32rem 0.8rem; border-radius: 999px;
    background: var(--honey); color: #0D1B33; white-space: nowrap;
  }
  .chip.out { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
  @media (max-width: 680px) { .sched-row { grid-template-columns: 1fr; gap: 0.35rem; } }

  /* team */
  .creed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  @media (max-width: 800px) { .creed { grid-template-columns: 1fr; } }
  .creed-card {
    background: var(--panel); border: 1px solid var(--hairline);
    border-radius: 18px; padding: 1.7rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
  }
  .creed-card:hover { transform: translateY(-4px); border-color: var(--gold); }
  .creed-card .label { display: block; margin-bottom: 0.7rem; }
  .creed-card p { color: var(--ink-soft); font-size: 0.95rem; }
  .creed-card b { color: var(--ink); }

  /* sponsors */
  .sponsor {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 22px; padding: 3rem;
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: center;
    box-shadow: var(--shadow);
  }
  @media (max-width: 800px) { .sponsor { grid-template-columns: 1fr; } }
  .sponsor h2 {
    font-family: Fredoka, sans-serif; font-weight: 600;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1;
  }
  .sponsor h2 span { color: var(--honey); }
  .sponsor p { color: var(--ink-soft); margin-top: 1rem; max-width: 32rem; }
  .sponsor .actions { margin-top: 1.7rem; }
  .tiers { display: grid; gap: 0.8rem; }
  .tier {
    display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 1px solid var(--hairline); padding-bottom: 0.7rem;
  }
  .tier b { font-family: Jost, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
  .tier span { font-family: Jost, sans-serif; font-weight: 700; color: var(--honey); font-variant-numeric: tabular-nums; }

  /* footer */
  footer { border-top: 1px solid var(--hairline); padding: 3rem 0 3.4rem; margin-top: 4.5rem; }
  .foot { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
  .foot img { width: 74px; }
  .foot .tag { font-family: Jost, sans-serif; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; }
  .foot small { display: block; color: var(--ink-soft); font-size: 0.72rem; line-height: 1.6; max-width: 44rem; margin-top: 0.4rem; }

  @media (prefers-reduced-motion: no-preference) {
    .hero > * { animation: rise 0.7s ease both; }
    .hero-art { animation-delay: 0.15s; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  }
/* ---- article pages (blog & portfolio) ---- */
.article-wrap { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.article-wrap header { margin-bottom: 2.2rem; }
.article-wrap h1 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; }
.article-meta { font-family: Jost, sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.8rem; }
.prose h2 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 1.45rem; margin: 2.2rem 0 0.8rem; }
.prose h3 { font-family: Jost, sans-serif; font-weight: 700; letter-spacing: 0.06em; font-size: 1.05rem; margin: 1.8rem 0 0.6rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--honey); }
.prose img { max-width: 100%; border-radius: 12px; border: 1px solid var(--hairline); }
.prose code { background: var(--panel); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; color: var(--cream); }
.prose pre { background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; margin: 0 0 1rem; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; font-style: italic; margin: 0 0 1rem; }
.post-list { list-style: none; display: grid; gap: 1rem; padding: 0; }
.post-list li { background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px; padding: 1.4rem 1.6rem; }
.post-list a { color: var(--ink); text-decoration: none; font-family: Fredoka, sans-serif; font-size: 1.2rem; }
.post-list a:hover { color: var(--honey); }
.post-list time { display: block; font-family: Jost, sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
