/*
Theme Name: Indians Capital
Theme URI: https://indians-capital-goa.netlify.app/
Author: Indians Capital
Description: One-page website for Indians Capital, a domestic tennis-ball cricket team from Goa: squad, fixtures, journey, President Cup India 2026, gallery, news and contact. Colours taken from the team crest. All team content lives in assets/js/data.js.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indians-capital
Tags: one-column, custom-colors, full-width-template, sports
*/

/* ==========================================================================
   INDIANS CAPITAL
   Layout: a sports-magazine cover that turns into a scrapbook, coloured
   like the crest: royal navy and white spreads alternate, joined by torn
   edges, with crest gold and tiger red as accents. Photos are pinned,
   taped and torn; type is condensed and loud; one gold brush word per spread.
   Deliberately a single light "paper" look (no dark-theme inversion): the
   dark spreads are part of the art direction.
   ========================================================================== */
:root {
  color-scheme: light;
  /* colour: taken straight from the crest */
  --paper:   #F4F6FB;   /* crisp white with a hint of crest blue */
  --paper-2: #E4EAF6;   /* deeper blue-white (news) */
  --print:   #FFFFFF;   /* photo borders, form fields */
  --ink:     #0A2370;   /* crest royal navy */
  --ink-2:   #13318F;   /* lighter crest blue */
  --navy-deep:#061650;  /* crest outline navy: header, footer, shadows */
  --gold:    #F0AE3C;   /* crest lettering gold */
  --gold-deep:#C8871A;
  --red:     #D2232C;   /* crest tigers' red */
  --royal:   #2347B5;
  --muted:   #4C5878;   /* body copy on white */
  --muted-d: #BAC6E6;   /* body copy on navy */
  --line:    rgba(10, 35, 112, .16);
  --line-d:  rgba(255, 255, 255, .18);

  /* type */
  --f-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --f-brush:   "Kaushan Script", "Brush Script MT", "Segoe Script", cursive;
  --f-hand:    "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --f-body:    "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-label:   "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;

  --fs-hero: clamp(4.4rem, 12.6vw, 11.6rem);
  --fs-h2:   clamp(2.7rem, 6.2vw, 5.2rem);
  --fs-h3:   clamp(1.3rem, 2vw, 1.65rem);
  --fs-body: 1.0625rem;

  --gutter: max(16px, 4.2vw);
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--paper) url("assets/tex/grain.webp");
  color: var(--ink);
  font: 400 var(--fs-body)/1.62 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold); }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.sel { user-select: all; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.dark {
  background: var(--ink) url("assets/tex/grain-light.webp");
  color: var(--paper);
  position: relative;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: .7rem 1rem; font-weight: 600;
}
.skip:focus { top: 12px; }

/* torn edges: a strip of the neighbouring section's colour, ripped */
.edge {
  position: absolute; left: 0; right: 0; z-index: 3;
  height: clamp(16px, 2.3vw, 32px);
  background: var(--edge, var(--paper));
  pointer-events: none;
}
.edge--c-paper { --edge: var(--paper); }
.edge--c-paper2 { --edge: var(--paper-2); }
.edge--c-gold { --edge: var(--gold); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.edge--top-in {
  top: -1px;
  -webkit-mask-image: url("assets/tex/edge-bottom-a.svg");
  -webkit-mask-position: 0 0;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("assets/tex/edge-bottom-a.svg");
  mask-position: 0 0;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.edge--bottom-in {
  bottom: -1px;
  -webkit-mask-image: url("assets/tex/edge-top-b.svg");
  -webkit-mask-position: 0 0;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("assets/tex/edge-top-b.svg");
  mask-position: 0 0;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

/* ---------- type helpers ---------- */
.brush {
  font-family: var(--f-brush);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.brush--gold { color: var(--gold); }
.brush--gold-ink { color: var(--gold-deep); text-shadow: 2px 2px 0 var(--ink); }
.hand { font-family: var(--f-hand); font-weight: 600; line-height: 1.1; }

.h-display {
  font: 400 var(--fs-h2)/.92 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
}
.h-display .brush { font-size: .92em; display: inline-block; transform: rotate(-3deg) translateY(.04em); }

.eyebrow, .kicker {
  font: 600 .8rem/1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: .26em;
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
}
.eyebrow i { width: 18px; height: 2px; background: var(--gold-deep); display: inline-block; }
.kicker { margin-bottom: 1.1rem; color: var(--muted); }
.kicker__no { color: var(--red); letter-spacing: .12em; }
.kicker--on-dark { color: var(--muted-d); }
.kicker--on-dark .kicker__no { color: var(--gold); }

.lead { font-size: 1.28rem; line-height: 1.5; color: var(--ink); font-weight: 500; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .9rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; padding-block: .5rem;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat;
  transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: .85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .95rem 1.45rem;
  font: 700 .92rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .13em;
  text-decoration: none; border: 0; border-radius: 2px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--gold:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.dark .btn--gold { box-shadow: 3px 3px 0 var(--red); }
.dark .btn--gold:hover { box-shadow: 5px 5px 0 var(--red); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--gold); }
.btn--ink:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--gold); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(243,237,225,.6); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 42px; padding: .7rem 1.05rem; font-size: .82rem; }
.btn-text { background: none; border: 0; padding: .6rem .2rem; font: 600 .85rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .12em; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- paper objects ---------- */
.print, .polaroid {
  background: var(--print);
  box-shadow: 0 1px 1px rgba(6, 22, 80,.08), 0 22px 34px -16px rgba(6, 22, 80,.45);
}
.print { padding: 8px; }
.print img, .polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid { padding: 9px 9px 0; display: flex; flex-direction: column; }
.polaroid img { aspect-ratio: 4 / 4.4; height: auto; }
.polaroid figcaption { font-size: 1.25rem; color: var(--ink); text-align: center; padding: .4rem .2rem .55rem; }
.tape {
  position: absolute; z-index: 2; top: -13px; left: 50%;
  width: 96px; height: 28px; translate: -50% 0; rotate: -4deg;
  background: rgba(242, 179, 42, .5);
  clip-path: polygon(3% 8%, 10% 0, 22% 9%, 34% 1%, 47% 8%, 60% 0, 74% 9%, 87% 2%, 97% 9%, 100% 92%, 90% 100%, 78% 91%, 64% 100%, 50% 92%, 36% 100%, 22% 92%, 9% 100%, 0 90%);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  height: var(--head-h);
  background: var(--navy-deep) url("assets/tex/grain-light.webp");
  color: #fff;
  transition: box-shadow .3s;
}
.site-head.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(6, 22, 80,.5); }
.site-head__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__crest { width: 46px; height: auto; filter: drop-shadow(0 2px 3px rgba(6, 22, 80,.25)); }
.brand__word { font: 400 1.02rem/.95 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.nav__list { display: flex; gap: clamp(.8rem, 1.5vw, 1.7rem); }
.nav__list a {
  font: 600 .9rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; padding: .55rem 0; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  border-radius: 2px 1px 3px 1px;
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.burger { display: none; width: 48px; height: 48px; background: none; border: 0; padding: 12px 10px; position: relative; }
.burger span { display: block; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 55;
  padding: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 1.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink) url("assets/tex/grain-light.webp"); color: var(--paper);
  display: flex; flex-direction: column; gap: 1.8rem; overflow-y: auto;
}
.mmenu__list { display: grid; gap: .2rem; }
.mmenu__list a {
  display: flex; align-items: baseline; gap: 1rem; text-decoration: none;
  font: 400 clamp(2.2rem, 10vw, 3.4rem)/1.12 var(--f-display); text-transform: uppercase;
}
.mmenu__list span { font: 600 .8rem/1 var(--f-label); letter-spacing: .2em; color: var(--gold); }
.mmenu__hand { font: 600 1.7rem/1.1 var(--f-hand); color: var(--gold); rotate: -3deg; }
.mmenu__social { display: flex; gap: .8rem; margin-top: auto; }
.mmenu__social a, .foot__social a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1.5px solid var(--line-d); border-radius: 50%; transition: background-color .2s, color .2s, border-color .2s;
}
.mmenu__social a:hover, .foot__social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   01 HERO
   ========================================================================== */
.hero { position: relative; padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(8.5rem, 13vw, 12rem); overflow: clip; }
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center;
}
.hero__copy { position: relative; padding-top: 1rem; min-width: 0; }
.hero .eyebrow { color: var(--muted-d); margin-bottom: 1.4rem; }
.hero .eyebrow i { background: var(--gold); }
.hero__title { position: relative; display: flex; flex-direction: column; line-height: .84; margin-bottom: 1.3rem; }
.hero__indians {
  font: 400 var(--fs-hero)/.84 var(--f-display); text-transform: uppercase; letter-spacing: -.004em;
  color: #fff;
}
.hero__capital {
  font-size: calc(var(--fs-hero) * .74); line-height: 1;
  color: var(--gold); text-shadow: 3px 3px 0 var(--navy-deep);
  margin-top: -.18em; margin-left: .55em;
  rotate: -6deg; transform-origin: left center;
  white-space: nowrap;
}
.hero__claws {
  position: absolute; width: clamp(34px, 4vw, 54px); height: clamp(40px, 4.7vw, 64px);
  color: var(--red); top: calc(var(--fs-hero) * -.06); left: calc(var(--fs-hero) * 2.86);
  rotate: 16deg; opacity: .95;
}
.hero__lede { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin-bottom: .7rem; }
.hero__intro { max-width: 34rem; color: var(--muted-d); margin-bottom: 1.8rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0; }
.hero__stats > div { padding-inline: 0 clamp(1.1rem, 2.4vw, 2rem); margin-right: clamp(1.1rem, 2.4vw, 2rem); border-right: 1.5px solid var(--line-d); display: flex; flex-direction: column-reverse; gap: .35rem; }
.hero__stats > div:last-child { border-right: 0; margin-right: 0; }
.hero__stats dd { font: 400 clamp(2.1rem, 3.4vw, 2.8rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.hero__stats dt { font: 600 .74rem/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--muted-d); }

.hero__visual { position: relative; min-width: 0; }
.hero__photo {
  position: relative; z-index: 2;
  aspect-ratio: 4 / 5; width: 100%; max-height: 82vh; margin-left: auto;
  background: var(--ink);
  -webkit-mask-image: url("assets/tex/mask-photo.svg");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("assets/tex/mask-photo.svg");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 58%; }
.hero__note {
  position: absolute; z-index: 3; top: 7%; left: -2%;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--paper);
  rotate: -8deg; text-shadow: 0 2px 12px rgba(6, 22, 80,.8);
}
.hero__note span { color: var(--gold); }
.hero__note-arrow { position: absolute; z-index: 3; top: 19%; left: 10%; width: 92px; color: var(--gold); rotate: 6deg; }
.hero__polaroid { position: absolute; z-index: 4; width: 36%; left: -14%; bottom: 7%; rotate: -7deg; }
.hero__stamp {
  position: absolute; z-index: 4; top: -2%; right: -1%;
  width: clamp(96px, 9vw, 122px); aspect-ratio: 1; border-radius: 50%;
  background: var(--red); color: var(--paper);
  display: grid; place-content: center; text-align: center; gap: .1rem;
  rotate: 12deg; box-shadow: 0 0 0 4px var(--ink), 0 0 0 5.5px var(--red), 0 14px 24px -12px rgba(6, 22, 80,.6);
}
.stamp span { font: 600 .62rem/1.1 var(--f-label); text-transform: uppercase; letter-spacing: .14em; }
.stamp b { font: 400 2rem/1 var(--f-display); text-transform: uppercase; color: #fff; }

.hero__shore { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 1; color: var(--navy-deep); pointer-events: none; }
.palm { position: absolute; bottom: clamp(10px, 1.6vw, 22px); }
.p1 { left: -1%;  width: 74px;  height: 124px; rotate: -5deg; }
.p2 { left: 5%;   width: 100px; height: 166px; rotate: 3deg; }
.p3 { left: 13%;  width: 62px;  height: 104px; rotate: -2deg; opacity: .85; }
.p4 { left: 31%;  width: 56px;  height: 92px;  rotate: 4deg;  opacity: .7; }
.p5 { left: 46%;  width: 84px;  height: 140px; rotate: -6deg; }
.p6 { right: 4%;  width: 92px;  height: 154px; rotate: 5deg; }
.p7 { right: -2%; width: 70px;  height: 116px; rotate: -3deg; }
.hero__ground { height: clamp(22px, 2.8vw, 38px); }

/* ==========================================================================
   VALUES STRIP
   ========================================================================== */
.values { position: relative; padding-block: 1.6rem 3.4rem; background: var(--gold); color: var(--ink); }
.values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.value {
  position: relative; text-align: center; padding: 1.2rem 1rem 1.4rem;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
}
.value + .value::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(10, 35, 112, .25); }
.value__ico { width: 46px; height: 46px; color: var(--ink); margin-bottom: .35rem; transition: transform .35s var(--ease); }
.value h2 { font: 700 1.04rem/1.1 var(--f-label); text-transform: uppercase; letter-spacing: .14em; position: relative; padding-bottom: .4rem; }
.value h2::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.value p { font-size: .92rem; color: rgba(10, 35, 112, .8); }
.value:hover .value__ico { transform: translateY(-4px) rotate(-6deg); }
.value:hover h2::after { transform: scaleX(1); }

/* ==========================================================================
   02 STORY
   ========================================================================== */
.story { overflow: clip; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.story__collage { position: relative; aspect-ratio: 1 / .96; }
.story__main { position: absolute; left: 0; top: 13%; width: 80%; rotate: -2.2deg; z-index: 1; }
.story__main img { aspect-ratio: 1147 / 692; }
.story__pol1 { position: absolute; right: 0; top: 0; width: 34%; rotate: 5deg; z-index: 2; }
.story__cert { position: absolute; right: 3%; bottom: 0; width: 56%; rotate: 3deg; z-index: 3; padding: 6px; }
.story__cert img { aspect-ratio: 1200 / 770; }
.story__note-top { position: absolute; left: 4%; top: 1%; font-size: 1.75rem; rotate: -5deg; color: var(--ink); }
.story__note-bottom { position: absolute; left: 4%; bottom: 6%; max-width: 38%; font-size: 1.55rem; rotate: -4deg; color: var(--red); }
.story__copy { min-width: 0; }
.story__copy .h-display { margin-bottom: 1.6rem; }
.story__copy .h-display .brush { margin-top: .12em; }
.story__copy > p { max-width: 36rem; color: var(--muted); margin-bottom: 1rem; }
.story__copy > p.lead { color: var(--ink); }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 1.6rem; padding-top: 1.6rem; border-top: 1.5px solid var(--line); }
.tally > div { isolation: isolate; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .4rem; }
.tally dd { font: 400 clamp(2.6rem, 4.4vw, 3.6rem)/1 var(--f-display); font-variant-numeric: tabular-nums; position: relative; width: fit-content; }
.tally dd::after { content: ""; position: absolute; left: -2px; right: -6px; bottom: .08em; height: .22em; background: var(--gold); z-index: -1; opacity: .8; rotate: -1.5deg; }
.tally dt { font: 600 .78rem/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ==========================================================================
   SECTION HEADS
   ========================================================================== */
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.2rem 3rem; }
.sec-head--split > div:first-child { min-width: 0; }
.sec-head__aside { max-width: 24rem; color: var(--muted); font-size: .98rem; display: grid; gap: .6rem; justify-items: start; }
.dark .sec-head__aside { color: var(--muted-d); }

/* ==========================================================================
   03 SQUAD
   ========================================================================== */
.squad { padding-block: clamp(5.5rem, 10vw, 8.5rem); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  background: transparent; border: 1.5px solid var(--line-d); color: var(--paper);
  padding: .7rem 1rem; min-height: 44px; border-radius: 2px;
  font: 600 .86rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .13em;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter small { font-size: .74rem; opacity: .65; letter-spacing: .06em; }
.filter:hover { border-color: var(--gold); }
.filter[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.filter[aria-pressed="true"] small { opacity: .8; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 188px), 1fr)); gap: clamp(.9rem, 1.6vw, 1.4rem); perspective: 1200px; }
.card {
  position: relative; aspect-ratio: 5 / 7; border-radius: 7px; padding: 9px;
  background: linear-gradient(162deg, #2B4FC4 0%, var(--ink-2) 52%, var(--navy-deep) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 30px -18px rgba(0,0,0,.8);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease), box-shadow .3s;
  overflow: hidden; isolation: isolate;
}
.card::after { /* foil sweep */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 230, 160, .16) 48%, rgba(255,255,255,.07) 52%, transparent 62%);
  background-size: 260% 100%; background-position: 140% 0;
  transition: background-position .9s var(--ease);
}
.card:hover::after { background-position: -40% 0; }
.card:hover { box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 28px 40px -18px rgba(0,0,0,.9); }
.card__frame {
  position: relative; height: 100%; border: 1px solid rgba(242, 179, 42, .55); border-radius: 4px;
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.card__art { /* jersey: red shoulder wedge over royal blue */
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(148deg, rgba(210, 35, 44, .92) 0 24%, transparent 24.3%),
    linear-gradient(148deg, transparent 0 27%, rgba(242, 179, 42, .5) 27.2% 27.9%, transparent 28.1%);
}
.card__top { display: flex; align-items: flex-start; justify-content: space-between; padding: .7rem .75rem 0; }
.card__role { width: 30px; height: 30px; color: var(--paper); }
.card__num { font: 400 2.3rem/1 var(--f-display); color: var(--gold); text-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.card__mid { position: relative; display: grid; place-items: center; min-height: 0; }
.card__mono {
  font: 400 clamp(5.4rem, 9vw, 7.2rem)/1 var(--f-display); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 179, 42, .75);
  letter-spacing: -.02em; position: relative; z-index: 1;
}
.card__crest { position: absolute; width: 62%; opacity: .12; left: 50%; top: 50%; translate: -50% -50%; filter: grayscale(.2); }
/* photo cards: same frame as every card; portrait fills the top two rows */
.card__photo { grid-row: 1 / 3; grid-column: 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 12%; }
.card--photo .card__top { grid-row: 1; grid-column: 1; z-index: 1; position: relative; background: linear-gradient(180deg, rgba(6,22,80,.7), transparent); padding-bottom: 1.4rem; }
.card--photo .card__mid { grid-row: 2; grid-column: 1; z-index: 1; }
.card--photo .card__plate { grid-row: 3; grid-column: 1; }
.card--photo .card__role { color: #fff; }
.card.card--photo { background: linear-gradient(162deg, #2B4FC4 0%, var(--ink-2) 52%, var(--navy-deep) 100%); }
.card--photo .card__frame { border-color: rgba(240, 174, 60, .75); }
/* Royal Challengers Goa: their black-and-gold kit */
.card.card--rcg { background: linear-gradient(162deg, #3A2C10 0%, #15120C 55%, #000 100%); }
.card--rcg .card__frame { border-color: rgba(240, 174, 60, .85); }
.card--rcg .card__art { background: linear-gradient(148deg, rgba(240, 174, 60, .9) 0 24%, transparent 24.3%); }
.card--rcg .card__plate p span:first-child { color: var(--gold-deep); }
.card__tags { position: absolute; left: .7rem; bottom: .55rem; display: flex; gap: .35rem; z-index: 2; }
.tag {
  font: 700 .66rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em;
  padding: .32rem .45rem .3rem; border-radius: 2px; background: var(--gold); color: var(--ink);
}
.tag--os { background: var(--paper); }
.tag--cap { background: var(--red); color: var(--paper); }
.card__plate { background: var(--paper); color: var(--ink); padding: .65rem .75rem .7rem; position: relative; }
.card__plate::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px; background: var(--paper);
  -webkit-mask-image: url("assets/tex/edge-top-a.svg");
  -webkit-mask-position: 0 0;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-image: url("assets/tex/edge-top-a.svg");
  mask-position: 0 0;
  mask-size: 100% 100%;
  mask-repeat: no-repeat; }
.card__plate h3 { font: 400 1.55rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.card__plate p { font: 700 .74rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-deep); margin-top: .35rem; display: flex; justify-content: space-between; gap: .5rem; }
.card__plate p span:last-child { color: var(--muted); font-weight: 600; letter-spacing: .1em; }

.card--staff { background: linear-gradient(162deg, #FFFFFF, #D9E2F3); }
.card--staff .card__frame { border-color: rgba(6, 22, 80, .35); }
.card--staff .card__art { background: repeating-linear-gradient(-45deg, rgba(6, 22, 80,.05) 0 2px, transparent 2px 9px); }
.card--staff .card__role { color: var(--ink); }
.card--staff .card__mono { -webkit-text-stroke-color: rgba(6, 22, 80, .45); }
.card--staff .card__plate { background: var(--ink); color: var(--paper); }
.card--staff .card__plate::before { background: var(--ink); }
.card--staff .card__plate p { color: var(--gold); }
.card--staff .card__plate p span:last-child { color: var(--muted-d); }

.teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; max-width: 720px; margin-bottom: 1.2rem; }
.team-tab { display: flex; align-items: center; gap: .8rem; text-align: left; padding: .8rem 1rem; min-height: 64px; border-radius: 3px; background: rgba(255,255,255,.04); border: 1.5px solid var(--line-d); color: #fff; transition: border-color .2s, background-color .2s; }
.team-tab img { width: 34px; height: auto; flex: none; }
.team-tab b { display: block; font: 400 1.15rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.team-tab small { display: block; font: 600 .7rem/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .12em; color: var(--muted-d); margin-top: .2rem; }
.team-tab__badge { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #0B0B0B; border: 2px solid var(--gold); color: var(--gold); font: 400 .72rem/1 var(--f-display); letter-spacing: .04em; }
.team-tab:hover { border-color: var(--gold); }
.team-tab[aria-pressed="true"] { border-color: var(--gold); background: rgba(240, 174, 60, .12); }
.team-tab[aria-pressed="true"] small { color: var(--gold); }
.squad__more { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.4rem; }
.squad__hand { font-size: 1.5rem; color: var(--gold); rotate: -4deg; }

/* ==========================================================================
   GALLERY · full archive (masonry)
   ========================================================================== */
.archive { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 2px dashed var(--line); }
.archive__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; margin-bottom: 1.2rem; }
.archive__title { font: 400 clamp(1.9rem, 3.6vw, 2.8rem)/1 var(--f-display); text-transform: uppercase; }
.archive__sub { color: var(--muted); font-size: .98rem; }
.filters--paper .filter { color: var(--ink); border-color: var(--line); }
.filters--paper .filter:hover { border-color: var(--ink); }
.filters--paper .filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.masonry { columns: 3 280px; column-gap: clamp(.9rem, 1.6vw, 1.4rem); }
.m-item { display: block; width: 100%; break-inside: avoid; margin: 0 0 clamp(1rem, 1.8vw, 1.5rem); background: none; border: 0; padding: 0; text-align: left; cursor: zoom-in; color: var(--ink); }
.m-item__img { position: relative; display: block; background: var(--print); padding: 6px; overflow: hidden; box-shadow: 0 1px 1px rgba(6, 22, 80,.07), 0 14px 22px -16px rgba(6, 22, 80,.5); }
.m-item__img img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.m-item:hover .m-item__img img { transform: scale(1.03); }
.m-item .g-play { width: 50px; height: 50px; }
.m-item__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin-top: .6rem; padding-inline: 2px; font-size: .92rem; line-height: 1.35; }
.m-item__cat { font: 700 .68rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--red); }

/* ==========================================================================
   04 MATCHES
   ========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; border-bottom: 1.5px solid var(--line); margin-bottom: 1.6rem; }
.tab {
  background: none; border: 0; padding: .9rem 0; min-height: 48px; position: relative;
  font: 400 clamp(1.25rem, 2vw, 1.55rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--muted);
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.4rem; }
.panel__title { font: 700 1.2rem/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .08em; }
.panel__meta { color: var(--muted); font-size: .95rem; flex-basis: 100%; }
.panel__graphic { margin-left: auto; padding-block: .3rem; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.chip { font: 700 .72rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em; padding: .42rem .6rem; border-radius: 2px; display: inline-flex; align-items: center; gap: .4rem; }
.chip--tbc { background: var(--gold); color: var(--ink); }
.chip--played { background: var(--ink); color: var(--paper); }
.chip--upcoming { background: var(--red); color: var(--paper); }
.chip--upcoming::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; }
.ticket {
  --stub: 104px;
  position: relative; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr);
  background: var(--print); min-height: 150px;
  box-shadow: 0 1px 0 rgba(6, 22, 80,.06), 0 16px 26px -20px rgba(6, 22, 80,.55);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ticket:hover { transform: translateY(-3px) rotate(-.35deg); box-shadow: 0 1px 0 rgba(6, 22, 80,.06), 0 22px 30px -18px rgba(6, 22, 80,.6); }
.ticket::before, .ticket::after { /* punched notches on the perforation */
  content: ""; position: absolute; left: calc(var(--stub) - 10px); width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); z-index: 2;
}
.ticket::before { top: -10px; }
.ticket::after { bottom: -10px; }
.ticket__stub {
  background: var(--ink); color: var(--paper); padding: 1.1rem .8rem;
  display: flex; flex-direction: column; justify-content: center; gap: .35rem;
  border-right: 2px dashed rgba(243,237,225,.35);
}
.ticket__time { font: 400 1.7rem/1 var(--f-display); letter-spacing: .01em; }
.ticket__time small { display: block; font-size: .95rem; color: var(--gold); margin-top: .2rem; }
.ticket__no { font: 600 .7rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .18em; color: var(--muted-d); }
.ticket__main { padding: 1rem 1.2rem; display: grid; gap: .8rem; align-content: center; min-width: 0; }
.ticket__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .6rem; }
.team { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.team--away { flex-direction: row-reverse; text-align: right; }
.team img, .team .mono { width: 50px; height: 50px; flex: none; border-radius: 50%; object-fit: contain; }
.team img.crest-ic { border-radius: 0; height: 54px; width: auto; }
.team .mono { display: grid; place-items: center; background: var(--ink-2); color: var(--gold); font: 400 1.05rem/1 var(--f-display); letter-spacing: .04em; }
.team b { font: 700 1rem/1.15 var(--f-label); text-transform: uppercase; letter-spacing: .06em; min-width: 0; overflow-wrap: anywhere; }
.vs { font: 400 1.6rem/1 var(--f-brush); color: var(--red); }
.ticket__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
.ticket__result { font-weight: 600; color: var(--ink); }

.matches__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2.4rem; }
.matches__note { color: var(--muted); font-size: .92rem; }

/* ==========================================================================
   05 JOURNEY
   ========================================================================== */
.journey { padding-block: clamp(6rem, 11vw, 9rem); overflow: clip; }
.journey::before { /* floodlight bloom */
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -18vw; top: -22vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 179, 42, .13), transparent 70%); pointer-events: none;
}
.journey__feature { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.replay { min-width: 0; }
.replay__screen { position: relative; aspect-ratio: 2 / 1; background: #000; padding: 0; }
.replay__screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.replay__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; pointer-events: none;
  background: var(--red); color: var(--paper); font: 700 .7rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .2em;
  padding: .4rem .55rem; display: inline-flex; gap: .4rem; align-items: center;
}
.replay__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.replay__corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--gold); pointer-events: none; }
.c1 { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.c2 { top: -10px; right: -10px; border-left: 0; border-bottom: 0; }
.c3 { bottom: -10px; left: -10px; border-right: 0; border-top: 0; }
.c4 { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.replay__switch { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.4rem; }
.replay__btn {
  text-align: left; background: transparent; border: 1.5px solid var(--line-d); color: var(--paper);
  padding: .8rem 1rem; min-height: 56px; border-radius: 2px; font: 500 .95rem/1.25 var(--f-body);
  transition: border-color .2s, background-color .2s;
}
.replay__btn b { display: block; font: 700 .72rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .18em; color: var(--muted-d); margin-bottom: .35rem; }
.replay__btn.is-on { border-color: var(--gold); background: rgba(242, 179, 42, .08); }
.replay__btn.is-on b { color: var(--gold); }
.replay__credit { font-size: .8rem; color: var(--muted-d); margin-top: .8rem; }
.journey__copy { min-width: 0; }
.journey__title { font: 400 clamp(3rem, 6.8vw, 6rem)/.9 var(--f-display); text-transform: uppercase; margin-bottom: 1.6rem; display: flex; flex-direction: column; }
.journey__title .brush { font-size: 1.05em; line-height: 1.05; rotate: -5deg; margin-left: .4em; width: fit-content; }
.journey__copy p { color: var(--muted-d); max-width: 30rem; margin-bottom: .9rem; }
.journey__copy p.journey__hand { color: var(--gold); font-size: 1.7rem; rotate: -2deg; margin-top: 1.2rem; }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; margin-top: clamp(4rem, 8vw, 6rem); position: relative; padding-top: 2.2rem; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); opacity: .7; }
.tl { position: relative; min-width: 0; }
.timeline { row-gap: 2.8rem; }
.timeline::before { display: none; }
.tl { padding-top: 1.8rem; border-top: 2px dashed rgba(240, 174, 60, .5); }
.tl::before { top: -9px; }
.tl::before { content: ""; position: absolute; top: calc(-2.2rem + 0px); left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--ink); }
.tl--next::before { background: var(--ink); box-shadow: 0 0 0 5px var(--ink), inset 0 0 0 2px var(--gold); }
.tl__when { display: inline-block; font: 700 .76rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .2em; color: var(--gold); margin-bottom: .7rem; }
.tl h3 { font: 400 1.35rem/1.08 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin-bottom: .6rem; text-wrap: balance; }
.tl p { font-size: .92rem; color: var(--muted-d); display: flex; gap: .4rem; align-items: baseline; }
.tl p .ico { color: var(--gold); flex: none; }
.tl__sub { margin-top: .35rem; color: #A3B2DA; }
.tl__sub a { color: var(--gold); }
.tl--honour h3 { color: var(--gold); }

/* ==========================================================================
   06 THE BIGGER STAGE · 2024–2026
   ========================================================================== */
.stage { background: var(--paper-2) url("assets/tex/grain.webp"); }
.st-story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.8rem, 4.5vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 4vw, 3.4rem); }
.st-story + .st-story { border-top: 2px dashed var(--line); }
.st-story--flip .st-media { order: 2; }
.st-copy { min-width: 0; }
.st-copy .kicker { margin-bottom: .8rem; }
.st-title { font: 400 clamp(2rem, 4vw, 3.2rem)/.95 var(--f-display); text-transform: uppercase; margin-bottom: 1rem; text-wrap: balance; }
.st-copy > p { color: var(--muted); margin-bottom: .9rem; max-width: 34rem; }
.st-media { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(56px, 6.4vw, 92px); gap: clamp(8px, 1vw, 12px); }
.st-shot { position: relative; overflow: hidden; border: 0; padding: 0; background: var(--ink); cursor: zoom-in; grid-column: span 3; grid-row: span 3; box-shadow: 0 16px 26px -18px rgba(6,22,80,.6); }
.st-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.st-shot:hover img { transform: scale(1.04); }
.st-shot.st-top img { object-position: top; }
.st-shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .7rem .5rem; text-align: left; color: #fff; font: 600 1.15rem/1.1 var(--f-hand); background: linear-gradient(180deg, transparent, rgba(6,22,80,.85)); }
.st-shot .g-play { width: 48px; height: 48px; }
/* President Cup: two tall portraits, then wide team photos */
.st-media--pc .st-shot:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 6; }
.st-media--pc .st-shot:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 6; }
.st-media--pc .st-shot:nth-child(3) { grid-column: 1 / 4; grid-row: 6 / 9; }
.st-media--pc .st-shot:nth-child(4) { grid-column: 4 / 7; grid-row: 6 / 9; }
/* Royal Challengers Goa: team poster + captains, team photo across */
.st-media--rc .st-shot:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 6; }
.st-media--rc .st-shot:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 6; }
.st-media--rc .st-shot:nth-child(3) { grid-column: 1 / 7; grid-row: 6 / 9; }
.st-media--rc .st-shot:nth-child(3) img { object-position: center 40%; }
/* GSPL: poster tall left, auction photos right */
.st-media--gs .st-shot:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 8; }
.st-media--gs .st-shot:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 4; }
.st-media--gs .st-shot:nth-child(3) { grid-column: 4 / 7; grid-row: 4 / 6; }
.st-media--gs .st-shot:nth-child(4) { grid-column: 4 / 7; grid-row: 6 / 8; }
.st-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; margin: 1.2rem 0 1.6rem; padding-top: 1.2rem; border-top: 1.5px solid var(--line); }
.st-facts dt { font: 700 .72rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--red); margin-bottom: .35rem; }
.st-facts dd { font-weight: 600; color: var(--ink); line-height: 1.3; }
.st-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .4rem 0 1rem; }
.st-leader { background: var(--ink); color: #fff; padding: .9rem 1rem; display: grid; gap: .35rem; }
.st-leader__role { font: 700 .7rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .18em; color: var(--gold); }
.st-leader b { font: 400 1.35rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.st-note { font-size: .9rem; }
.st-quote { margin: 1.4rem 0 .6rem; padding: 1.2rem 1.3rem 1.1rem 1.5rem; background: var(--print); border-left: 5px solid var(--gold); position: relative; box-shadow: 0 14px 24px -18px rgba(6,22,80,.5); }
.st-quote::before { content: "“"; position: absolute; top: -.35em; left: .25em; font: 400 4rem/1 var(--f-display); color: var(--gold); }
.st-quote p { font: 600 1.45rem/1.25 var(--f-hand); color: var(--ink); }
.st-quote footer { margin-top: .8rem; font: 600 .78rem/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.st-quote footer b { color: var(--ink); }
.st-readnote { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* news: a row of cards under the lead story */
.news__row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(1.2rem, 2.4vw, 1.8rem); padding-top: clamp(1.4rem, 3vw, 2.2rem); border-top: 1.5px solid var(--line); }
.post--card .post__img { aspect-ratio: 16 / 10; }
.post--card h3 { font-size: 1.25rem; }

/* ==========================================================================
   07 GALLERY — 12-column editorial collage
   ========================================================================== */
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(64px, 8.6vw, 116px); gap: clamp(8px, 1.1vw, 14px); grid-auto-flow: dense; }
.g-item {
  position: relative; overflow: hidden; border: 0; padding: 0; background: var(--ink);
  grid-column: span 4; grid-row: span 3; cursor: zoom-in;
}
.g-item:nth-child(1) { grid-column: 1 / 7;  grid-row: 1 / 4; }
.g-item:nth-child(2) { grid-column: 7 / 10; grid-row: 1 / 5; }
.g-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 3; }
.g-item:nth-child(4) { grid-column: 10 / 13; grid-row: 3 / 7; }
.g-item:nth-child(5) { grid-column: 1 / 7;  grid-row: 4 / 7; }
.g-item:nth-child(6) { grid-column: 7 / 10; grid-row: 5 / 7; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.g-item:hover img { transform: scale(1.045); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 22, 80,.85)); opacity: .0; transition: opacity .35s; }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-cap {
  position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 2; text-align: left;
  font: 600 1.45rem/1.05 var(--f-hand); color: var(--paper);
  transform: translateY(8px); opacity: 0; transition: transform .35s var(--ease), opacity .35s;
}
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { transform: none; opacity: 1; }
.g-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
  width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(242,179,42,.25);
  transition: transform .3s var(--ease);
}
.g-play .ico { width: 24px; height: 24px; margin-left: 3px; }
.g-item:hover .g-play { transform: scale(1.08); }
.g-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--red); color: var(--paper); font: 700 .66rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; padding: .35rem .5rem; }

/* ==========================================================================
   08 NEWS
   ========================================================================== */
.news { background: var(--paper-2) url("assets/tex/grain.webp"); }
.news__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.post { position: relative; display: grid; align-content: start; gap: .8rem; min-width: 0; }
.post__img { position: relative; overflow: hidden; background: var(--ink); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font: 600 .76rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.post__meta .chip { background: var(--ink); color: var(--paper); }
.post h3 { font: 400 var(--fs-h3)/1.08 var(--f-display); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.post p { color: var(--muted); font-size: .98rem; }
.post__more { justify-self: start; background: none; border: 0; padding: .35rem 0; display: inline-flex; align-items: center; gap: .45rem;
  font: 700 .84rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .14em;
  background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: gap .25s var(--ease); }
.post__more:hover { gap: .75rem; }
.post__more::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.post--lead .post__img { aspect-ratio: 16 / 10;
  -webkit-mask-image: url("assets/tex/mask-bottom.svg");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("assets/tex/mask-bottom.svg");
  mask-size: 100% 100%;
  mask-repeat: no-repeat; }
.post--lead h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.news__side { display: grid; gap: clamp(1.2rem, 2.4vw, 1.8rem); align-content: start; }
.post--side { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem 1.2rem; align-items: start; padding-bottom: clamp(1.2rem, 2.4vw, 1.8rem); border-bottom: 1.5px solid var(--line); }
.post--side:last-child { border-bottom: 0; padding-bottom: 0; }
.post--side .post__img { aspect-ratio: 4 / 3.2; grid-row: span 4; }
.post--side .post__body { display: grid; gap: .6rem; align-content: start; min-width: 0; }
.news__hint { margin-top: 2rem; font-size: .88rem; color: var(--muted); }

/* ==========================================================================
   09 SUPPORT
   ========================================================================== */
.support__banner { position: relative; overflow: clip; min-height: clamp(520px, 62vw, 680px); display: flex; align-items: center; padding-block: 6rem 6.5rem; }
.support__bg { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: center 35%; z-index: 0; }
.support__banner::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6, 22, 80,.96) 0%, rgba(6, 22, 80,.84) 42%, rgba(6, 22, 80,.42) 100%), linear-gradient(0deg, rgba(6, 22, 80,.6), transparent 40%); }
.support__inner { position: relative; z-index: 2; }
.support__title { font: 400 clamp(3.2rem, 8vw, 6.6rem)/.9 var(--f-display); text-transform: uppercase; margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; }
.support__title .brush { font-size: 1.05em; rotate: -5deg; display: inline-block; }
.support__lede { max-width: 32rem; color: #DCE3F5; font-size: 1.12rem; margin-bottom: 2.2rem; }
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 1000px; }
.path {
  position: relative; display: grid; gap: .3rem; align-content: start;
  background: var(--paper); color: var(--ink); text-decoration: none;
  padding: 1rem 1.1rem 1.5rem; min-height: 120px;
  -webkit-mask-image: url("assets/tex/mask-tag.svg");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("assets/tex/mask-tag.svg");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.path:nth-child(odd) { rotate: -1.2deg; }
.path:nth-child(even) { rotate: 1deg; }
.path:hover { transform: translateY(-5px); background: var(--gold); }
.path__no { font: 400 1.6rem/1 var(--f-brush); color: var(--red); }
.path b { font: 400 1.25rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.path span:last-child { font-size: .9rem; color: var(--muted); }
.path:hover span:last-child { color: var(--ink); }

.support__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.partner { min-width: 0; }
.partner__sticker { position: relative; background: var(--print); padding: 1.6rem 1.4rem 1.2rem; rotate: -2deg; width: min(100%, 300px); margin: .6rem 0 1.6rem; box-shadow: 0 18px 30px -18px rgba(6, 22, 80,.5); }
.partner__sticker img { width: 100%; }
.partner h3 { font: 400 2rem/1 var(--f-display); text-transform: uppercase; margin-bottom: .6rem; }
.partner p { color: var(--muted); margin-bottom: .8rem; max-width: 30rem; }
.partner__cta a { color: var(--ink); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.contact { min-width: 0; }
.contact__title { font: 400 var(--fs-h2)/.92 var(--f-display); text-transform: uppercase; margin-bottom: 1.6rem; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 .78rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .15em; }
.field .opt { font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: none; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--print); border: 1.5px solid rgba(6, 22, 80, .28); border-radius: 2px;
  padding: .85rem .9rem; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--gold); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field__err { color: var(--red); font-size: .86rem; font-weight: 500; min-height: 0; }
.field__err:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.form__hint { font-size: .86rem; color: var(--muted); max-width: 30rem; flex: 1 1 260px; }
.ready { background: var(--print); padding: 1.4rem; border-left: 4px solid var(--gold); display: grid; gap: .8rem; }
.ready:focus { outline: none; }
.ready__title { font: 400 1.4rem/1.1 var(--f-display); text-transform: uppercase; }
.ready__text { white-space: pre-wrap; font: 400 .92rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--paper); padding: 1rem; margin: 0; overflow-x: auto; max-height: 260px; }
.ready__actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.ready__status { font-size: .88rem; color: var(--muted); min-height: 1.2em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { background-color: var(--navy-deep); padding-block: clamp(4.5rem, 8vw, 6rem) 1.6rem; overflow: clip; }
.foot__ball { position: absolute; width: 420px; height: 420px; right: -110px; bottom: -120px; color: var(--gold); opacity: .07; }
.foot__grid { position: relative; display: grid; grid-template-columns: 1.5fr .9fr 1.3fr 1fr; gap: 2.4rem; padding-bottom: 2.8rem; border-bottom: 1px solid var(--line-d); }
.foot__brand { display: flex; gap: 1.1rem; align-items: flex-start; }
.foot__brand img { width: 84px; flex: none; filter: drop-shadow(0 0 1px rgba(242,179,42,.55)) drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.foot__name { font: 400 1.9rem/1 var(--f-display); text-transform: uppercase; margin-bottom: .6rem; }
.foot__desc { color: var(--muted-d); font-size: .95rem; max-width: 22rem; }
.foot__col h3 { font: 700 .8rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .2em; color: var(--gold); margin-bottom: 1.1rem; }
.foot__links { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; }
.foot__links a { text-decoration: none; color: #DCE3F5; font-size: .95rem; }
.foot__links a:hover { color: var(--gold); }
.foot__contact { display: grid; gap: .7rem; margin-bottom: 1.3rem; }
.foot__contact li { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: .95rem; color: #DCE3F5; overflow-wrap: anywhere; }
.foot__contact .ico { color: var(--gold); }
.foot__contact a { text-decoration-color: rgba(242,179,42,.6); text-underline-offset: 3px; }
.copy-chip { background: transparent; border: 1px solid var(--line-d); color: var(--muted-d); font: 600 .7rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; padding: .35rem .5rem; border-radius: 2px; }
.copy-chip:hover { border-color: var(--gold); color: var(--gold); }
.foot__social { display: flex; gap: .6rem; }
.foot__partner { font: 400 1.3rem/1.1 var(--f-display); text-transform: uppercase; margin-bottom: 1.2rem; }
.foot__partner span { font: 500 .85rem/1.3 var(--f-body); text-transform: none; color: var(--muted-d); }
.foot__base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.4rem; font-size: .85rem; color: var(--muted-d); }
.foot__base .hand { font-size: 1.3rem; color: var(--gold); }

/* ==========================================================================
   DIALOGS
   ========================================================================== */
dialog { border: 0; padding: 0; color: inherit; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(4, 14, 52, .9); margin: 0; overflow: hidden; }
.lightbox::backdrop { background: rgba(4, 14, 52, .94); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 64px 72px 24px; }
.lightbox__stage { width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 60px -20px #000; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lightbox__cap { color: var(--paper); font: 600 1.5rem/1.2 var(--f-hand); text-align: center; padding-top: .8rem; }
.lightbox__count { position: fixed; top: 22px; left: 24px; color: var(--muted-d); font: 600 .8rem/1 var(--f-label); letter-spacing: .2em; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: background-color .2s, transform .2s; }
.lb-btn:hover { background: var(--gold); }
.lb-btn .ico { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 16px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }

.article { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); background: var(--paper) url("assets/tex/grain.webp"); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); overflow-y: auto; }
.article::backdrop { background: rgba(4, 14, 52, .8); }
.article__close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; background: var(--ink); color: var(--paper); }
.article__close:hover { background: var(--gold); color: var(--ink); }
.article__img { width: 100%; max-height: 380px; object-fit: cover; background: var(--ink); }
.article__inner { padding: 1.8rem clamp(1.2rem, 4vw, 2.6rem) 2.4rem; }
.article__inner h2 { font: 400 clamp(1.9rem, 4vw, 2.8rem)/1.02 var(--f-display); text-transform: uppercase; margin: .8rem 0 1.2rem; text-wrap: balance; }
.article__inner p { color: var(--muted); margin-bottom: 1rem; max-width: 62ch; }
.article__inner video { width: 100%; margin: .4rem 0 1.2rem; background: #000; }
.article__note { font-size: .85rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* ==========================================================================
   MOTION: scroll reveal runs on the compositor via scroll-driven animations
   (no JavaScript). Browsers without support simply show everything.
   ========================================================================== */
/* scroll reveal: injected by app.js where the browser supports it */

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  .site-head__cta { display: none; }
}

@media (max-width: 1080px) {
  .nav, .site-head__cta { display: none; }
  .burger { display: block; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
}

@media (max-width: 960px) {
  :root { --head-h: 66px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(100%, 560px); margin: 1rem auto 0; padding-left: 8%; }
  .hero__photo { max-height: none; }
  .hero__polaroid { left: -2%; width: 38%; bottom: 5%; }
  .hero__note { left: 12%; }
  .hero__note-arrow { left: 24%; }
  .story__grid, .journey__feature, .news__grid, .support__grid, .st-story { grid-template-columns: 1fr; }
  .st-story--flip .st-media { order: 0; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__collage { max-width: 620px; width: 100%; margin-inline: auto; }
  .journey__copy { order: -1; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.6rem; }
  .timeline::before { display: none; }
  .tl { padding-top: 1.8rem; border-top: 2px dashed rgba(242,179,42,.45); }
  .tl::before { top: -9px; }
  .tickets { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .6rem; }
  .value:nth-child(3)::before { display: none; }
}

@media (max-width: 700px) {
  :root { --fs-body: 1rem; }
  .hero { padding-bottom: 7rem; }
  .hero__capital { margin-left: .35em; }
  .hide-sm { display: none; }
  .hero__stats > div { padding-right: 1rem; margin-right: 1rem; }
  .hero__stamp { right: -2%; top: -4%; }
  .p3, .p4, .p5 { display: none; }
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 52px; }
  .g-item:nth-child(n) { grid-column: span 1; grid-row: span 3; }
  .g-item:nth-child(1), .g-item:nth-child(5) { grid-column: 1 / -1; grid-row: span 4; }
  .g-item:nth-child(2), .g-item:nth-child(4) { grid-row: span 6; }
  .g-cap { opacity: 1; transform: none; font-size: 1.15rem; }
  .g-item:has(.g-play) .g-cap { display: none; }
  .g-item::after { opacity: 1; }
  .g-play { width: 46px; height: 46px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 6px; }
  .card__top { padding: .5rem .55rem 0; }
  .card__role { width: 24px; height: 24px; }
  .card__num { font-size: 1.8rem; }
  .card__plate { padding: .5rem .55rem .6rem; }
  .card__plate h3 { font-size: 1.2rem; }
  .card__plate p { font-size: .64rem; letter-spacing: .12em; flex-direction: column; gap: .25rem; }
  .ticket { --stub: 84px; }
  .ticket__time { font-size: 1.35rem; }
  .ticket__main { padding: .9rem; }
  .team { flex-direction: column; text-align: center; gap: .4rem; }
  .team--away { flex-direction: column; text-align: center; }
  .team b { font-size: .86rem; }
  .team img, .team .mono { width: 42px; height: 42px; }
  .team img.crest-ic { height: 46px; }
  .post--side { grid-template-columns: 1fr; }
  .post--side .post__img { grid-row: auto; aspect-ratio: 16 / 9; }
  .form { grid-template-columns: 1fr; }
  .teams { grid-template-columns: 1fr; }
  .st-media { grid-auto-rows: 44px; }
  .st-facts, .st-leaders { grid-template-columns: 1fr; }
  .st-quote p { font-size: 1.25rem; }
  .masonry { columns: 2; column-gap: .7rem; }
  .m-item__cap { font-size: .8rem; }
  .m-item .g-play { width: 40px; height: 40px; }
  .paths { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .path { min-height: 110px; padding: .85rem .85rem 1.3rem; }
  .path b { font-size: 1.05rem; }
  .timeline { grid-template-columns: 1fr; }
  .replay__switch { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .lightbox[open] { padding: 60px 10px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox__stage img, .lightbox__stage video { max-height: calc(100dvh - 200px); }
}

@media (max-width: 420px) {
  .hero__stats dt { font-size: .66rem; letter-spacing: .12em; }
  .story__note-top { font-size: 1.35rem; }
  .story__note-bottom { font-size: 1.2rem; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .value { padding-inline: .4rem; }
  .value h2 { font-size: .9rem; letter-spacing: .1em; }
}

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


/* ==========================================================================
   USABILITY: comfortable tap targets, readable labels, phone-friendly lengths
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, [role="tab"] { -webkit-tap-highlight-color: rgba(240, 174, 60, .25); touch-action: manipulation; }

/* every link and button is at least 44px tall (fingers, not cursors) */
.link-arrow, .post__more { display: inline-flex; align-items: center; min-height: 44px; }
.btn-text, .panel__graphic, .st-readnote { display: inline-flex; align-items: center; min-height: 44px; }
.foot__links { gap: 0 1rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__contact li { min-height: 44px; }
.foot__contact a { display: inline-flex; align-items: center; min-height: 44px; }
.copy-chip { min-height: 36px; padding-inline: .75rem; }
.tl__sub a { display: inline-flex; align-items: center; min-height: 44px; }

/* no label smaller than 12px */
.tag, .chip, .g-badge, .m-item__cat, .ticket__no, .replay__tag, .st-leader__role,
.replay__btn b, .team-tab small, .team-tab__badge, .copy-chip, .filter small { font-size: max(.75rem, 12px); }
.hero__stats dt, .card__plate p, .tally dt, .st-facts dt, .post__meta { font-size: max(.78rem, 12px); }

/* mobile menu actions */
.mmenu__actions { display: grid; gap: .9rem; justify-items: start; }
.mmenu__mail { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--muted-d); text-decoration: none; font-size: 1rem; }
.mmenu__mail .ico { color: var(--gold); }

/* archive: show-more row */
.archive__more { display: flex; justify-content: center; margin-top: 1.4rem; }

/* back to top */
.to-top {
  position: fixed; z-index: 50;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(6, 22, 80, .55), 0 0 0 3px rgba(255, 255, 255, .6);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.to-top .ico { width: 22px; height: 22px; rotate: -90deg; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #fff; }

.tl-hint { display: none; }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  /* timeline becomes a swipeable row instead of eight stacked blocks */
  .tl-hint { display: flex; justify-content: flex-end; gap: .4rem; margin: clamp(3rem, 8vw, 4rem) 0 -1.6rem; font: 600 1.25rem/1 var(--f-hand); color: var(--gold); }
  .tl-hint span { animation: nudge 1.6s var(--ease) infinite; }
  .timeline {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 1rem; margin-top: 2.2rem; padding: 1.6rem var(--gutter) 1rem;
    margin-inline: calc(var(--gutter) * -1);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: rgba(240, 174, 60, .6) transparent;
  }
  .tl { scroll-snap-align: start; background: rgba(255, 255, 255, .04); padding: 1.6rem 1rem 1.1rem; border-top: 2px dashed rgba(240, 174, 60, .5); }
  .tl::before { left: 1rem; }

  /* news: compact cards (image beside the headline) */
  .news__row { gap: 1.1rem; }
  .post--card { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: .9rem; row-gap: .35rem; align-items: start; }
  .post--card .post__img { grid-row: span 3; aspect-ratio: 1; }
  .post--card h3 { font-size: 1.05rem; }
  .post--card .post__meta { gap: .35rem .5rem; }

  /* squad: a little more room for names */
  .card__plate p { flex-direction: column; gap: .25rem; letter-spacing: .1em; }

  /* forms: 16px+ inputs stop iOS from zooming in */
  .field input, .field select, .field textarea { font-size: 16px; }

  .to-top { width: 48px; height: 48px; }
}

/* ---------- very small phones ---------- */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .btn { padding-inline: 1.05rem; letter-spacing: .1em; }
  .hero__stats > div { padding-right: .7rem; margin-right: .7rem; }
}

/* ---------- phones held sideways: keep the cover in two columns ---------- */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 600px) {
  :root { --fs-hero: clamp(3.4rem, 8.4vw, 5.6rem); --head-h: 58px; }
  .hero { padding-block: 1rem 6rem; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
  .hero__visual { width: auto; margin: 0; padding-left: 0; }
  .hero__photo { max-height: calc(100vh - var(--head-h) - 2rem); width: auto; margin-left: auto; }
  .hero__polaroid { width: 34%; left: -10%; }
  .hero__stamp { width: 84px; }
  .hero__ctas { margin-bottom: 1.4rem; }
  .mmenu { padding-top: calc(var(--head-h) + 1rem); }
  .mmenu__list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .mmenu__list a { font-size: 1.7rem; }
  .story__collage { max-width: 460px; }
}

/* ---------- tablets ---------- */
@media (min-width: 701px) and (max-width: 1080px) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
  .st-media { grid-auto-rows: clamp(52px, 8vw, 80px); }
}

/* ---------- big screens: a little more breathing room ---------- */
@media (min-width: 1600px) {
  .wrap { max-width: 1400px; }
}

@keyframes nudge { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
  .tl-hint span { animation: none; }
}


/* ==========================================================================
   WORDPRESS
   ========================================================================== */
/* keep the sticky header below the admin toolbar when logged in */
.admin-bar .site-head { top: calc(32px + env(safe-area-inset-top, 0px)); }
.admin-bar .mmenu { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-head { top: calc(46px + env(safe-area-inset-top, 0px)); }
  .admin-bar .mmenu { top: 46px; }
}
@media screen and (max-width: 600px) {
  .admin-bar .site-head { top: env(safe-area-inset-top, 0px); }
}
/* plain pages and posts (anything that is not the home page) */
.wp-page { min-height: 60vh; }
.wp-page .site-head__inner { justify-content: space-between; }
.wp-content { max-width: 760px; margin-inline: auto; }
.wp-content .entry { padding-block: 0 3rem; }
.wp-content .entry + .entry { border-top: 1.5px solid var(--line); padding-top: 3rem; }
.wp-content .entry-title { font: 400 clamp(2.2rem, 5vw, 3.6rem)/.95 var(--f-display); text-transform: uppercase; margin-bottom: 1.2rem; text-wrap: balance; }
.wp-content .entry-title a { text-decoration: none; }
.wp-content .entry-meta { font: 600 .78rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 1.6rem; }
.wp-content .entry-content > * + * { margin-top: 1.1rem; }
.wp-content .entry-content h2, .wp-content .entry-content h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: 1; margin-top: 2rem; }
.wp-content .entry-content a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.wp-content .entry-content img { height: auto; }
.wp-content .entry-content ul { list-style: disc; padding-left: 1.4rem; }
.wp-content .entry-content ol { list-style: decimal; padding-left: 1.4rem; }
.wp-content .pagination { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.wp-foot { background: var(--navy-deep); color: var(--muted-d); padding-block: 2rem; font-size: .9rem; }
.wp-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.wp-foot a { color: #fff; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bypostauthor, .sticky { display: block; }
