/* ==========================================================================
   The Dirk Academy
   Palette: Mavericks navy, royal and silver on a near-black navy base.
   Type: Archivo (variable). Condensed widths for display, extended for labels.
   Shape rule: containers are square; buttons and banners use the corner notch.
   Z-index scale: content 1-3, nav 50, dialog (top layer), grain 90, skip link 100.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-wdth-normal.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;
}

:root {
  color-scheme: dark;

  --bg: #060b16;
  --bg-sunk: #03060d;
  --bg-raise: #0b1428;
  --panel: #0f1b35;
  --navy: #002b5e;
  --royal: #0053bc;
  --royal-hi: #0b63db;
  --accent: #4a90ff;
  --silver: #b8c4ca;
  --text: #eef2f6;
  --muted: #a9b6c2;
  --dim: #7f8d9c;
  --line: rgb(184 196 202 / 0.14);
  --line-2: rgb(184 196 202 / 0.28);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
  --section: clamp(88px, 11vw, 168px);
  --notch-size: 10px;
  --notch: polygon(0 0, calc(100% - var(--notch-size)) 0, 100% var(--notch-size), 100% 100%,
    var(--notch-size) 100%, 0 calc(100% - var(--notch-size)));
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

::selection { background: var(--royal); color: #fff; }

.container {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Film grain: fixed, non-interactive, so it never repaints with scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.label {
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 850;
  font-stretch: 64%;
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-lede {
  margin-top: 1.25rem;
  max-width: 52ch;
  text-wrap: pretty;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.8rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding-block: 0.4rem;
  border-bottom: 2px solid var(--royal);
  transition: border-color 0.2s, gap 0.3s var(--ease-out);
}
.text-link svg { width: 1em; height: 1em; }
.text-link:hover { border-color: var(--accent); gap: 0.85em; }

/* --------------------------------------------------------------------------
   Buttons (notched)
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--royal);
  --btn-edge: transparent;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 52px;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  transition: transform 0.25s var(--ease-out);
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  clip-path: var(--notch);
  transition: background-color 0.2s;
}
.btn::before { inset: 0; z-index: -2; background: var(--btn-edge); }
.btn::after { inset: 1px; z-index: -1; background: var(--btn-bg); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform 0.3s var(--ease-out); }
.btn:hover { --btn-bg: var(--royal-hi); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn:focus-visible { outline-offset: 4px; }

.btn--ghost {
  --btn-bg: rgb(6 11 22 / 0.5);
  --btn-edge: rgb(238 242 246 / 0.42);
}
.btn--ghost::after { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { --btn-bg: rgb(15 27 53 / 0.78); --btn-edge: rgb(238 242 246 / 0.7); }
.btn--ghost:hover svg { transform: scale(1.1); }

/* Outline for flat backgrounds; the ghost's glass fill reads grey away from the video. */
.btn--line { --btn-bg: var(--bg); --btn-edge: var(--line-2); }
.btn--line:hover { --btn-bg: var(--bg-raise); --btn-edge: var(--silver); }
.btn--line:hover svg { transform: none; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, opacity 0.35s;
}
.nav.is-solid {
  background: rgb(6 11 22 / 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
}
.brand svg { width: 28px; height: 34px; flex: none; }
.brand__word {
  font-size: 1.1rem;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.4rem); }
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 115%;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* Four links: the crest already links home, so drop Home first, then the wordmark. */
@media (max-width: 640px) {
  .nav__links .nav__home { display: none; }
}
@media (max-width: 559px) {
  .brand__word { display: none; }
  .brand svg { width: 32px; height: 38px; }
}
@media (max-width: 400px) {
  .nav__links { gap: 0.9rem; }
  .nav__links a { letter-spacing: 0.1em; }
}
@media (max-width: 359px) {
  .nav__links .nav__champs { display: none; }
}

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg-sunk);
}

.hero__media { position: absolute; inset: 0; }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
}

/* Navy grade over the footage, then the legibility shade. */
.hero__media::before,
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__media::before {
  background: var(--navy);
  mix-blend-mode: color;
  opacity: 0.38;
}
.hero__media::after {
  background:
    linear-gradient(180deg, rgb(6 11 22 / 0.7) 0%, rgb(6 11 22 / 0) 24%),
    linear-gradient(90deg, rgb(6 11 22 / 0.9) 0%, rgb(6 11 22 / 0.62) 38%, rgb(6 11 22 / 0.12) 72%, rgb(6 11 22 / 0.05) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgb(6 11 22 / 0.35) 26%, rgb(6 11 22 / 0) 52%),
    repeating-linear-gradient(0deg, rgb(3 6 13 / 0.22) 0 1px, transparent 1px 3px);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(3.5rem, 11vh, 7.5rem);
}

.hero__title {
  margin: 1.1rem 0 1.5rem;
  font-size: clamp(4rem, 11.5vw, 10rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: block; }
.hero__title .line + .line { margin-top: -0.04em; }

.hero__lede {
  max-width: 36ch;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: #c9d3dc;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero__toggle {
  position: absolute;
  z-index: 3;
  right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  bottom: clamp(3.5rem, 11vh, 7.5rem);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--text);
  border: 1px solid rgb(238 242 246 / 0.32);
  background: rgb(6 11 22 / 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background-color 0.2s;
}
.hero__toggle:hover { border-color: rgb(238 242 246 / 0.7); background: rgb(15 27 53 / 0.7); }
.hero__toggle svg { width: 16px; height: 16px; }
.hero__toggle .icon-play { display: none; }
.hero__toggle[aria-pressed="true"] .icon-play { display: block; }
.hero__toggle[aria-pressed="true"] .icon-pause { display: none; }

@media (max-width: 767px) {
  .hero__toggle { top: calc(var(--nav-h) + 10px); bottom: auto; width: 44px; height: 44px; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgb(6 11 22 / 0.72) 0%, rgb(6 11 22 / 0) 22%),
      linear-gradient(0deg, var(--bg) 0%, rgb(6 11 22 / 0.86) 34%, rgb(6 11 22 / 0.2) 70%),
      repeating-linear-gradient(0deg, rgb(3 6 13 / 0.22) 0 1px, transparent 1px 3px);
  }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] {
    animation: enter-up 1s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 110ms + 150ms);
  }
  .hero__title .line > span {
    animation: line-up 1.1s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 110ms + 150ms);
  }
  .hero__video { animation: fade-in 1.6s ease both; }
}

@keyframes enter-up { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  .banner:hover,
  .season:hover { transform: none; }
}
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-in { from { opacity: 0; } }

/* --------------------------------------------------------------------------
   Home: honours band (scroll-linked where supported, static elsewhere)
   -------------------------------------------------------------------------- */

.honours {
  /* clip, not hidden: a hidden-overflow box would become the view() timeline's scroller */
  overflow: hidden;
  overflow: clip;
  border-block: 1px solid var(--line);
  padding-block: clamp(1.1rem, 2vw, 1.6rem);
}
.honours__track {
  display: flex;
  width: max-content;
  gap: clamp(1.75rem, 3vw, 3rem);
  padding-inline: var(--gutter);
}
.honours__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.75rem, 3vw, 3rem);
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  font-weight: 850;
  font-stretch: 66%;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.honours__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.25px var(--silver); }
.honours__item svg { width: 0.62em; height: 0.62em; color: var(--accent); flex: none; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .honours__track {
      animation: honours-pan linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes honours-pan {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% + 100vw)); }
}

/* --------------------------------------------------------------------------
   Home: manifesto
   -------------------------------------------------------------------------- */

/* The key-years rail below supplies the gap, so no bottom padding here. */
.manifesto { padding-top: var(--section); }

.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.manifesto__crest { width: min(100%, 300px); justify-self: center; }
.manifesto__crest svg { width: 100%; height: auto; }

.manifesto__text {
  font-size: clamp(1.75rem, 3.5vw, 3.1rem);
  font-weight: 700;
  font-stretch: 78%;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--dim);
  text-wrap: pretty;
}
.manifesto__text strong { font-weight: 800; color: var(--text); }

.reigning {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.reigning[hidden] { display: none; }
.reigning__name {
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
}
.reigning__meta { color: var(--dim); font-size: 0.95rem; }

@media (max-width: 767px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__crest { width: 150px; justify-self: start; }
}

/* --------------------------------------------------------------------------
   Home: key-years rail
   -------------------------------------------------------------------------- */

.years { padding-block: var(--section); }

.years__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.years__head .section-title { flex: 1 1 520px; }
.years__actions { display: flex; align-items: center; gap: 1.5rem; }

.rail-btns { display: flex; gap: 8px; }
.rail-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s, opacity 0.2s;
}
.rail-btn:hover { border-color: var(--silver); background: var(--bg-raise); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.rail-btn svg { width: 16px; height: 16px; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 27vw, 340px);
  gap: 12px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }

.moment {
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 40vw, 380px);
  padding: 1.75rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  scroll-snap-align: start;
}
.moment__year {
  font-size: clamp(4.5rem, 7vw, 6rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--silver);
}
.moment h3 {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 1.45rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.05;
  text-transform: uppercase;
}
.moment h3 + p { margin-top: 0.6rem; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }

.moment--academy {
  background:
    radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.12) 1px, transparent 0) 0 0 / 7px 7px,
    linear-gradient(160deg, #0a63d8 0%, var(--royal) 50%, #003f93 100%);
  border-color: transparent;
}
.moment--academy .moment__year { color: #fff; -webkit-text-stroke: 0; }
.moment--academy p { color: #dce8ff; }

.moment--next { background: transparent; border: 1px dashed var(--line-2); }
.moment--next .moment__year { -webkit-text-stroke-color: var(--accent); }

/* --------------------------------------------------------------------------
   Home: by-laws (native <details>, so every article works without JS)
   -------------------------------------------------------------------------- */

/* The key-years rail above supplies the gap, so no top padding here. */
.bylaws { padding-bottom: var(--section); }

.bylaws__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.bylaws__head .section-title { margin-top: 1rem; }
.bylaws__toggle { margin-top: 2rem; }
.bylaws__toggle[hidden] { display: none; }
.bylaws__toggle svg { transition: rotate 0.35s var(--ease-out), transform 0.3s var(--ease-out); }
.bylaws__toggle[data-all-open] svg { rotate: 45deg; }

@media (min-width: 900px) {
  .bylaws__head { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
}

.bylaws__list { counter-reset: article; border-bottom: 1px solid var(--line); }

.article { counter-increment: article; border-top: 1px solid var(--line); }

.article summary {
  --num-col: 4.75rem;
  display: grid;
  grid-template-columns: var(--num-col) minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: 1.25rem;
  padding-block: 1.5rem;
  list-style: none;
  cursor: pointer;
}
.article summary::-webkit-details-marker { display: none; }

.article__num {
  grid-row: 1 / 3;
  font-size: 3.4rem;
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--line-2);
  transition: color 0.25s;
}
.article__title {
  grid-column: 2;
  align-self: end;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.05;
  text-transform: uppercase;
}
.article__gist { grid-column: 2; align-self: start; margin-top: 0.3rem; color: var(--dim); font-size: 0.95rem; }
.article__icon {
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  transition: border-color 0.2s, background-color 0.2s;
}
.article__icon svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease-out); }

.article summary:hover .article__num { color: var(--silver); }
.article summary:hover .article__icon { border-color: var(--silver); background: var(--bg-raise); }
.article details[open] .article__num { color: var(--accent); }
.article details[open] .article__icon svg { transform: rotate(45deg); }

.article__clauses {
  counter-reset: clause;
  display: grid;
  gap: 0.9rem;
  max-width: 62ch;
  padding: 0 0 1.9rem calc(4.75rem + 1.25rem);
}
.article__clauses li {
  position: relative;
  counter-increment: clause;
  padding-left: 2.75rem;
  color: var(--muted);
}
.article__clauses li::before {
  content: counter(article) "." counter(clause);
  position: absolute;
  top: 0.3em;
  left: 0;
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}
.article__clauses b { color: var(--text); font-weight: 650; }
.article__clauses a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--royal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}
.article__clauses a:hover { text-decoration-color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .bylaws { interpolate-size: allow-keywords; }
    .article details::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size 0.5s var(--ease-out), content-visibility 0.5s allow-discrete;
    }
    .article details[open]::details-content { block-size: auto; }
  }
}

@media (max-width: 899px) {
  .bylaws__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article summary { --num-col: 3rem; column-gap: 1rem; padding-block: 1.25rem; }
  .article__num { font-size: 2.6rem; }
  .article__clauses { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  padding-top: var(--section);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 100%, rgb(0 83 188 / 0.18), transparent 70%),
    var(--bg-sunk);
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.footer__crest { width: 92px; }
.footer__motto {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 850;
  font-stretch: 66%;
  line-height: 1;
  text-transform: uppercase;
}
.motto-en {
  display: block;
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.4;
  text-transform: none;
  color: var(--dim);
}

.footer__nav { display: grid; gap: 0.35rem; justify-items: start; }
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.78rem;
  font-weight: 650;
  font-stretch: 115%;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--text); }

/* SVG so the wordmark always spans the container exactly, at any width. */
.footer__word {
  width: 100%;
  height: auto;
  margin-top: clamp(3rem, 7vw, 6rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow: visible;
  user-select: none;
}
.footer__word text {
  font-family: var(--font);
  font-size: 176px;
  font-weight: 900;
  font-stretch: 62%;
  fill: none;
  stroke: rgb(184 196 202 / 0.3);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--dim);
}
.footer__base p { max-width: 70ch; }

@media (max-width: 767px) {
  .footer__top { grid-template-columns: auto minmax(0, 1fr); }
  .footer__nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
  .footer__crest { width: 64px; }
}

/* --------------------------------------------------------------------------
   Reel dialog
   -------------------------------------------------------------------------- */

.reel {
  width: min(94vw, 1280px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.reel::backdrop {
  background: rgb(3 6 13 / 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.reel__frame { position: relative; }
.reel__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  background: #000;
  border: 1px solid var(--line-2);
}
.reel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 12px;
}
.reel__title {
  font-size: 1.35rem;
  font-weight: 850;
  font-stretch: 66%;
  text-transform: uppercase;
}
.reel__close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line-2);
  font-size: 0.75rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.2s, background-color 0.2s;
}
.reel__close:hover { border-color: var(--silver); background: var(--bg-raise); }
.reel__close svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .reel[open] { animation: enter-up 0.5s var(--ease-out); }
  .reel[open]::backdrop { animation: fade-in 0.4s ease; }
}

/* --------------------------------------------------------------------------
   History: page hero
   -------------------------------------------------------------------------- */

.phero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.phero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.phero__title {
  margin-top: 1rem;
  font-size: clamp(3.4rem, 8.4vw, 8rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.phero__lede {
  margin-top: 1.6rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: #c9d3dc;
}

.phero__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-raise); }
.phero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.12) brightness(0.9);
}
.phero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgb(3 6 13 / 0) 0.9px, rgb(3 6 13 / 0.42) 1.5px) 0 0 / 4px 4px,
    linear-gradient(0deg, rgb(6 11 22 / 0.7), rgb(6 11 22 / 0) 45%),
    linear-gradient(160deg, rgb(0 83 188 / 0.5), rgb(0 43 94 / 0.55));
}

@media (max-width: 860px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__media { aspect-ratio: 16 / 11; }
}

@media (prefers-reduced-motion: no-preference) {
  .phero [data-enter] {
    animation: enter-up 1s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 110ms + 120ms);
  }
}

/* Chapter navigation */
.chapters {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgb(6 11 22 / 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.chapters__list {
  position: relative;
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.chapters__list::-webkit-scrollbar { display: none; }
.chapters a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 115%;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dim);
  transition: color 0.2s;
}
.chapters a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.chapters a:hover { color: var(--text); }
.chapters a[aria-current="true"] { color: var(--text); }
.chapters a[aria-current="true"]::after { transform: scaleX(1); }

html:has(.chapters) { scroll-padding-top: calc(var(--nav-h) + 72px); }

/* --------------------------------------------------------------------------
   History: the legend
   -------------------------------------------------------------------------- */

.legend { padding-block: var(--section) 0; }

.statline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
}
.statline div { padding: 1.6rem 1.25rem 1.5rem; }
.statline div + div { border-left: 1px solid var(--line); }
.statline dt { order: 2; margin-top: 0.6rem; }
.statline div { display: flex; flex-direction: column; }
.statline dd {
  margin: 0;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .statline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statline div:nth-child(4) { border-left: 0; }
  .statline div:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .statline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statline div:nth-child(4) { border-left: 1px solid var(--line); }
  .statline div:nth-child(odd) { border-left: 0; }
  .statline div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.era { padding-top: clamp(4rem, 8vw, 7rem); }

.era__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding-bottom: 1.5rem;
}
.era__name {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 850;
  font-stretch: 64%;
  line-height: 0.9;
  text-transform: uppercase;
}
.era__span { color: var(--dim); font-size: 1rem; font-variant-numeric: tabular-nums; }

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: calc(var(--year-col) + 19px);
  width: 1px;
  background: var(--line-2);
}
.timeline { --year-col: clamp(7rem, 14vw, 11rem); }

.entry {
  position: relative;
  display: grid;
  grid-template-columns: var(--year-col) 40px minmax(0, 1fr);
  padding-block: 1.1rem;
}
.entry__year {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.9;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--silver);
}
.entry__node {
  justify-self: center;
  width: 9px;
  height: 9px;
  margin-top: 0.7rem;
  background: var(--bg);
  border: 1.5px solid var(--silver);
  transform: rotate(45deg);
}
.entry__body { max-width: 60ch; padding-top: 0.1rem; }
.entry__body h4 {
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.1;
  text-transform: uppercase;
}
.entry__body p { margin-top: 0.4rem; color: var(--muted); }

.entry--academy .entry__year { color: var(--accent); }
.entry--academy .entry__node { width: 13px; height: 13px; margin-top: 0.6rem; background: var(--accent); border-color: var(--accent); }
.entry--academy h4 { color: var(--text); }
.entry--academy .text-link { margin-top: 0.9rem; }

.era__figure {
  position: relative;
  margin: 1.5rem 0 0 calc(var(--year-col) + 40px);
  max-width: 760px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-raise);
}
.era__figure::before {
  /* arena video-board texture: makes soft broadcast stills read as intentional */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle, rgb(3 6 13 / 0) 0.9px, rgb(3 6 13 / 0.42) 1.5px) 0 0 / 4px 4px;
  pointer-events: none;
}

@media (min-width: 1000px) {
  .era--figure {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
  .era--figure .era__head { grid-column: 1 / -1; }
  .era--figure .timeline { grid-column: 1; }
  .era--figure .era__figure {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: calc(var(--nav-h) + 84px);
    margin: 0;
    aspect-ratio: 4 / 5;
  }
}
.era__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: grayscale(1) contrast(1.12) brightness(0.9);
}
.era__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgb(0 83 188 / 0.45), rgb(0 43 94 / 0.55));
}

@media (max-width: 640px) {
  .timeline { --year-col: 0px; }
  .timeline::before { left: 7px; }
  .entry { grid-template-columns: 16px minmax(0, 1fr); column-gap: 1rem; }
  .entry__year { grid-column: 2; text-align: left; font-size: 2.1rem; }
  .entry__node { grid-column: 1; grid-row: 1; justify-self: start; margin-left: 3px; margin-top: 0.8rem; }
  .entry--academy .entry__node { margin-left: 1px; }
  .entry__body { grid-column: 2; padding-top: 0.5rem; }
  .era__figure { margin-left: 1.5rem; }
}

/* --------------------------------------------------------------------------
   History: the founding
   -------------------------------------------------------------------------- */

.founding {
  position: relative;
  margin-top: var(--section);
  padding-block: var(--section);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 15% 50%, rgb(0 83 188 / 0.22), transparent 70%),
    var(--bg-sunk);
}
.founding__year {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font-size: clamp(12rem, 38vw, 34rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(184 196 202 / 0.12);
  pointer-events: none;
  user-select: none;
}
.founding__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.founding__text p {
  margin-top: 1.5rem;
  max-width: 50ch;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: #c9d3dc;
}
.founding__seal { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.founding__seal svg { width: min(240px, 60vw); height: auto; }
.founding__motto {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 850;
  font-stretch: 66%;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .founding__grid { grid-template-columns: 1fr; }
  .founding__seal { justify-items: start; text-align: left; }
  .founding__seal svg { width: 150px; }
}

/* --------------------------------------------------------------------------
   History: season by season
   -------------------------------------------------------------------------- */

.seasons { padding-block: var(--section) 0; }

.seasons__era { margin-top: clamp(3.5rem, 7vw, 6rem); }
.seasons__era:first-of-type { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* 4 columns on desktop, 2 on tablet, 1 on phones. Landmark seasons span two
   columns so every era fills its rows exactly at each breakpoint. */
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.season--wide { grid-column: span 2; }
.season--wide .season__num { font-size: 11rem; }
.season--wide .season__note { font-size: 1.05rem; max-width: 48ch; }

@media (max-width: 1099px) { .season-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .season-grid { grid-template-columns: 1fr; }
  .season--wide { grid-column: auto; }
  .season--wide .season__num { font-size: 8rem; }
}

.season {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 1.5rem 1.5rem 1.6rem;
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.season:hover { border-color: var(--line-2); transform: translateY(-3px); }
.season__num {
  position: absolute;
  top: -0.08em;
  right: 0.12em;
  z-index: -1;
  font-size: 8rem;
  font-weight: 900;
  font-stretch: 62%;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgb(184 196 202 / 0.12);
}
.season .label { color: var(--dim); }
.season__years {
  margin-top: 0.4rem;
  font-size: 2.25rem;
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.season__champ { margin-top: 1.5rem; }
.season__champ-name {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.5rem;
  font-weight: 850;
  font-stretch: 70%;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--accent);
}
.season__champ-mgr { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.95rem; }
.season__champ-mgr:empty { display: none; }
.is-open .season__champ-name { color: var(--dim); }

.season__note {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.season__note b { color: var(--text); font-weight: 650; }

.season--next { background: transparent; border-style: dashed; border-color: var(--line-2); }
.season--next .season__num { -webkit-text-stroke-color: rgb(74 144 255 / 0.35); }

/* --------------------------------------------------------------------------
   History: the rafters
   -------------------------------------------------------------------------- */

.rafters {
  position: relative;
  margin-top: var(--section);
  padding-block: var(--section);
  background:
    radial-gradient(60% 55% at 50% 0%, rgb(74 144 255 / 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-sunk), var(--bg));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.rafters__head { text-align: center; }
.rafters__head .section-lede { margin-inline: auto; }

.beam {
  margin-top: clamp(3rem, 6vw, 5rem);
  height: 10px;
  background:
    repeating-linear-gradient(90deg, rgb(184 196 202 / 0.18) 0 2px, transparent 2px 28px),
    linear-gradient(180deg, #1b2740, #0d1628);
  border-block: 1px solid var(--line-2);
}

.banners {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(12px, 2vw, 28px);
}

.banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 26px;
  transform-origin: 50% 0;
  transition: transform 0.6s var(--ease-out);
}
.banner:hover { transform: rotate(-1.25deg); }
.banner::before {
  /* hanging wires */
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 26px;
  border-inline: 1px solid var(--line-2);
}
.banner__cloth {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  aspect-ratio: 5 / 8;
  /* bottom padding clears the V notch (12% of the height = 19.2% of the width) */
  padding: 1.4rem 0.8rem calc(19.2% + 1.1rem);
  color: #fff;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.18), rgb(255 255 255 / 0.05) 45%, rgb(0 0 0 / 0.22)),
    linear-gradient(180deg, #0a60d4, var(--royal) 40%, #003e8f);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
}
.banner__cloth::before {
  /* silver stitched trim */
  content: "";
  position: absolute;
  inset: 7px 7px auto;
  bottom: calc(7px + 6%);
  border: 1px solid rgb(184 196 202 / 0.55);
  border-bottom: 0;
  pointer-events: none;
}
.banner__crest { width: 30px; height: 36px; margin-bottom: 0.9rem; }
.banner__season {
  font-size: 0.68rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dce8ff;
}
.banner__years {
  margin-top: 0.3rem;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.banner__rule { width: 36px; height: 2px; margin: auto 0 0.9rem; background: var(--silver); }
.banner__label {
  font-size: 0.62rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9cdf2;
}
.banner__champ {
  margin-top: 0.35rem;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 850;
  font-stretch: 70%;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.banner.is-open .banner__champ { color: #9fb8e4; }
.banner__mgr { margin-top: 0.3rem; font-size: 0.8rem; color: #cfdcf5; }
.banner__mgr:empty { display: none; }

.banner--next .banner__cloth {
  background: rgb(74 144 255 / 0.04);
}
.banner--next .banner__cloth::after {
  /* dashed outline that follows the notch */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--accent) 50%, transparent 0) 0 0 / 10px 1px repeat-x,
    linear-gradient(0deg, var(--accent) 50%, transparent 0) 0 0 / 1px 10px repeat-y,
    linear-gradient(0deg, var(--accent) 50%, transparent 0) 100% 0 / 1px 10px repeat-y;
  opacity: 0.6;
  pointer-events: none;
}
.banner--next .banner__cloth::before { border-color: rgb(74 144 255 / 0.3); border-style: dashed; }
.banner--next .banner__season,
.banner--next .banner__label { color: var(--accent); }
.banner--next .banner__champ { color: var(--muted); }

@media (max-width: 1100px) { .banners { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .banners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner__cloth { padding-inline: 0.6rem; }
}

.rafters__note {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  color: var(--dim);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal (IntersectionObserver adds .is-in)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
