/* ==========================================================================
   pages — layouts that belong to one screen
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: the floodlit pitch seen from the touchline
   Three stacked layers — turf in perspective, lamp bloom, content. No photo.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-block-size: min(100svh, 62rem);
  display: grid;
  align-items: center;
  overflow: clip;
  padding-block: 7rem 4rem;
  isolation: isolate;
}

.hero__ground {
  position: absolute;
  inset-block-end: -6%;
  inset-inline: -12%;
  block-size: 78%;
  z-index: -2;
  perspective: 900px;
  perspective-origin: 50% 0%;
  pointer-events: none;
}
.hero__ground-inner {
  position: absolute;
  inset: 0;
  transform: rotateX(68deg);
  transform-origin: 50% 0%;
  background:
    repeating-linear-gradient(90deg, rgba(12,74,43,.55) 0 8%, rgba(10,63,36,.55) 8% 16%),
    linear-gradient(to bottom, #0d5130, #072a18);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 62%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 62%, transparent 96%);
}
.hero__lines {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 60%, transparent 94%);
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 60%, transparent 94%);
}
.hero__lines [stroke] { stroke: rgba(255,255,255,.55); }

/* The lamp bloom. Two pairs of masts, breathing very slowly. */
.hero__bloom {
  position: absolute;
  inset-block-start: -18%;
  inset-inline: 0;
  block-size: 70%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(34vw 30vh at 16% 12%, rgba(255,238,186,.26), transparent 66%),
    radial-gradient(34vw 30vh at 84% 12%, rgba(255,238,186,.22), transparent 66%);
  animation: bloom-breathe 9s var(--e-both) infinite alternate;
}
@keyframes bloom-breathe { from { opacity: .82; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__bloom { animation: none; } }

.hero__content { position: relative; z-index: 1; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
}
.hero h1 {
  font-size: var(--t-hero);
  letter-spacing: -.025em;
  max-inline-size: 16ch;
  margin-block-end: var(--s-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--sodium);
  /* The word that names the light, lit. */
  text-shadow: 0 0 44px rgba(255,190,61,.45);
}
.hero .lede { margin-block-end: var(--s-6); }
.hero__cta { gap: var(--s-4); }

.hero__facts {
  margin: var(--s-8) 0 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-inline-size: 44rem;
}
@media (min-width: 720px) { .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__fact { border-block-start: var(--line-chalk) solid var(--hairline); padding-block-start: var(--s-3); }
.hero__fact dt { font-size: var(--t-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--chalk-mute); font-weight: 700; margin-block-end: var(--s-1); }
.hero__fact dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); color: var(--chalk); }

.hero__scroll {
  position: absolute;
  inset-block-end: var(--s-5);
  inset-inline-start: 50%;
  translate: 50% 0;
  display: none;
  font-size: var(--t-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--chalk-mute);
  align-items: center;
  gap: var(--s-2);
  flex-direction: column;
}
:dir(ltr) .hero__scroll { translate: -50% 0; }
@media (min-width: 1024px) and (min-height: 720px) { .hero__scroll { display: flex; } }
.hero__scroll i { display: block; inline-size: var(--line); block-size: 2.5rem; background: linear-gradient(var(--hairline), transparent); animation: scroll-hint 2.4s var(--e-both) infinite; }
@keyframes scroll-hint { 0% { opacity: 0; transform: scaleY(.3); transform-origin: top; } 40% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll i { animation: none; } }

/* Staggered first paint. Runs once, on load, and only if motion is allowed. */
.hero__content > * { animation: hero-in 900ms var(--e-out) backwards; }
.hero__content > *:nth-child(1) { animation-delay: 80ms; }
.hero__content > *:nth-child(2) { animation-delay: 180ms; }
.hero__content > *:nth-child(3) { animation-delay: 280ms; }
.hero__content > *:nth-child(4) { animation-delay: 380ms; }
.hero__content > *:nth-child(5) { animation-delay: 480ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); } }
@media (prefers-reduced-motion: reduce) { .hero__content > * { animation: none; } }

/* --------------------------------------------------------------------------
   Pitch diagram — a true 74 × 42 m scale drawing, used as a live diagram
   -------------------------------------------------------------------------- */

.pitch-figure { margin: 0; }
.pitch-svg {
  inline-size: 100%;
  block-size: auto;
  background: linear-gradient(170deg, #0f5c34, #072a18);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--s-3);
  box-shadow: var(--glow-turf);
}
.pitch-svg .mow { fill: rgba(255,255,255,.028); }
.pitch-svg .chalk { fill: none; stroke: rgba(255,255,255,.9); stroke-width: .28; }
.pitch-svg .dim { stroke: var(--sodium); stroke-width: .18; fill: none; }
.pitch-svg .dim-text { fill: var(--sodium); font-size: 2.1px; font-family: var(--font-display); font-weight: 700; }

.pitch-hot {
  fill: rgba(255,190,61,.001);
  stroke: rgba(255,190,61,.55);
  stroke-width: .22;
  stroke-dasharray: 1.4 1;
  cursor: pointer;
  transition: fill var(--d-quick) var(--e-out), stroke var(--d-quick) var(--e-out);
}
.pitch-hot:hover, .pitch-hot:focus-visible, .pitch-hot.is-active { fill: rgba(255,190,61,.18); stroke: var(--sodium); stroke-dasharray: none; }
.pitch-hot:focus-visible { outline: none; stroke-width: .5; }

.pitch-mast { fill: var(--flood); }
.pitch-mast-glow { fill: url(#mastGlow); }

.pitch-legend { display: grid; gap: var(--s-3); margin-block-start: var(--s-5); }
.pitch-legend button {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  inline-size: 100%;
  text-align: start;
  background: var(--night-2);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  color: var(--chalk-dim);
  font: inherit;
  font-size: var(--t-sm);
  cursor: pointer;
  transition: border-color var(--d-quick) var(--e-out), background var(--d-quick) var(--e-out);
}
.pitch-legend button:hover, .pitch-legend button[aria-pressed="true"] { border-color: var(--sodium); background: var(--night-3); color: var(--chalk); }
.pitch-legend b { display: block; color: var(--chalk); font-family: var(--font-display); }
.pitch-legend i { font-style: normal; font-size: 1.2rem; line-height: 1; flex: none; }

.pitch-layout { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .pitch-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

.spec-list { display: grid; gap: 0; margin: 0; }
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-block-end: var(--line) solid var(--hairline);
}
.spec-list dt { color: var(--chalk-dim); font-size: var(--t-sm); }
.spec-list dd { margin: 0; color: var(--chalk); font-family: var(--font-display); font-weight: 700; text-align: end; }

/* --------------------------------------------------------------------------
   Booking
   -------------------------------------------------------------------------- */

.booking-layout { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .booking-layout { grid-template-columns: minmax(0, 1fr) 24rem; } }

/* The three-step pipeline. No card is ever mentioned. */
.pipeline { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 640px) { .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pipeline__step {
  position: relative;
  padding: var(--s-4) var(--s-5);
  background: var(--night-2);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-2);
}
.pipeline__step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-block-start: var(--s-3);
  inset-inline-end: var(--s-4);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-lg);
  color: transparent;
  -webkit-text-stroke: 1px var(--hairline);
}
.pipeline__step b { display: block; font-family: var(--font-display); color: var(--chalk); margin-block-end: var(--s-1); }
.pipeline__step span { font-size: var(--t-xs); color: var(--chalk-dim); }
.pipeline__step[data-state="done"]    { border-color: var(--ok); }
.pipeline__step[data-state="current"] { border-color: var(--sodium); background: var(--night-3); }

/* Day strip */
.daystrip { display: flex; gap: var(--s-2); overflow-x: auto; padding-block-end: var(--s-2); scroll-snap-type: x mandatory; }
.daystrip::-webkit-scrollbar { block-size: 6px; }
.daystrip::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: var(--r-pill); }
.day {
  flex: 0 0 4.5rem;
  scroll-snap-align: start;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: var(--s-3) var(--s-2);
  background: var(--night-2);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-2);
  color: var(--chalk-dim);
  font: inherit;
  font-size: var(--t-xs);
  cursor: pointer;
  transition: border-color var(--d-quick) var(--e-out), background var(--d-quick) var(--e-out), color var(--d-quick) var(--e-out);
}
.day:hover { border-color: var(--chalk-mute); color: var(--chalk); }
.day b { font-family: var(--font-display); font-size: var(--t-md); color: var(--chalk); font-variant-numeric: tabular-nums; }
.day[aria-pressed="true"] { background: var(--sodium); border-color: var(--sodium); color: #1a1103; }
.day[aria-pressed="true"] b { color: #1a1103; }
.day small { color: inherit; opacity: .8; font-size: 10px; }

/* --------------------------------------------------------------------------
   Month calendar — replaces the day-strip above on the live booking page.
   The owner asked for a real month grid rather than a horizontal scroller:
   weekday header, a real 7-column grid, month navigation, and a per-day
   state a visitor can read at a glance without opening the day.
   -------------------------------------------------------------------------- */
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-block-end: var(--s-4); }
.cal__month { font-family: var(--font-display); font-size: var(--t-lg); color: var(--chalk); min-inline-size: 11ch; text-align: center; }
.cal__nav {
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-2);
  background: var(--night-2);
  color: var(--chalk);
  cursor: pointer;
  transition: border-color var(--d-quick) var(--e-out), background var(--d-quick) var(--e-out);
}
.cal__nav:hover:not(:disabled) { border-color: var(--turf-bright); background: var(--night-3); }
.cal__nav:disabled { opacity: .35; cursor: not-allowed; }
.cal__nav svg { inline-size: 1.1rem; block-size: 1.1rem; }
/* The prev/next buttons swap DOM position under RTL (prev renders on the
   inline-end side there), so their arrowheads flip together with them —
   in LTR the "<"/">" glyphs already point the right way unflipped. */
:dir(rtl) .cal__nav[data-dir="prev"] svg,
:dir(rtl) .cal__nav[data-dir="next"] svg { transform: scaleX(-1); }

.cal__weekdays, .cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-1); }
.cal__weekdays { margin-block-end: var(--s-1); }
.cal__weekday { text-align: center; font-size: var(--t-xs); font-weight: 700; color: var(--chalk-mute); padding-block: var(--s-1); }
.cal__grid { display: grid; gap: var(--s-1); }

.cal__day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--night-2);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-2);
  color: var(--chalk);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color var(--d-quick) var(--e-out), background var(--d-quick) var(--e-out), transform var(--d-tap) var(--e-out);
}
.cal__day:hover:not(:disabled) { border-color: var(--turf-bright); background: var(--night-3); }
.cal__day:active:not(:disabled) { transform: scale(.96); }
.cal__day-num { font-family: var(--font-display); font-size: var(--t-sm); }
.cal__day-dot { inline-size: .4rem; block-size: .4rem; border-radius: 50%; background: var(--ok); }
.cal__day[data-state="partial"] .cal__day-dot { background: var(--sodium); }
.cal__day[data-state="full"] .cal__day-dot { background: var(--busy); }
.cal__day[data-state="blocked"] .cal__day-dot { background: var(--chalk-mute); }
.cal__day[data-state="past"] { opacity: .38; cursor: not-allowed; }
.cal__day[data-state="past"] .cal__day-dot { display: none; }
.cal__day[aria-selected="true"] { background: var(--sodium); border-color: var(--sodium); color: #1a1103; }
.cal__day[aria-selected="true"] .cal__day-dot { box-shadow: 0 0 0 1px #1a1103; }
.cal__day--pad { visibility: hidden; pointer-events: none; }
.cal__day--today { border-color: var(--turf-bright); }

.cal__legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-block-start: var(--s-4); font-size: var(--t-xs); color: var(--chalk-dim); }
.cal__legend li { display: flex; align-items: center; gap: var(--s-2); }
.cal__legend .cal__day-dot { position: static; }

@media (max-width: 479px) {
  .cal__day-num { font-size: var(--t-xs); }
  .cal__month { font-size: var(--t-md); min-inline-size: 9ch; }
}

/* Hour slots */
.slots { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); margin-block-start: var(--s-5); }
.slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  min-block-size: 3.25rem;
  background: var(--night-2);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-2);
  color: var(--chalk);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: border-color var(--d-quick) var(--e-out), background var(--d-quick) var(--e-out), transform var(--d-tap) var(--e-out);
}
.slot:hover:not([disabled]) { border-color: var(--turf-bright); background: var(--night-3); }
.slot:active:not([disabled]) { transform: scale(.98); }
.slot__time { font-variant-numeric: tabular-nums; direction: ltr; }
.slot__tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--chalk-mute); }
.slot[data-state="taken"] { opacity: .42; cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--busy); }
.slot[data-state="lit"] { border-inline-start: 3px solid var(--flood); }
.slot[data-state="lit"] .slot__tag { color: var(--flood); }
.slot[aria-pressed="true"] { background: var(--sodium); border-color: var(--sodium); color: #1a1103; box-shadow: var(--glow-sodium); }
.slot[aria-pressed="true"] .slot__tag { color: #1a1103; }

.booking-summary { position: sticky; inset-block-start: 6rem; }
.summary-row { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-3); border-block-end: var(--line) solid var(--hairline); font-size: var(--t-sm); }
.summary-row dt { color: var(--chalk-mute); }
.summary-row dd { margin: 0; color: var(--chalk); font-weight: 600; }
.summary-total { font-family: var(--font-display); font-size: var(--t-lg); color: var(--sodium); }

.cash-note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border: var(--line) solid rgba(157,181,114,.4);
  border-radius: var(--r-2);
  background: rgba(77,97,54,.16);
  font-size: var(--t-sm);
  color: var(--chalk-soft);
}
.cash-note svg { flex: none; color: var(--olive); }

/* --------------------------------------------------------------------------
   Fixtures & results
   -------------------------------------------------------------------------- */

.fixture {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: var(--s-5);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-3);
  background: var(--night-2);
  transition: border-color var(--d-quick) var(--e-out), background var(--d-quick) var(--e-out);
}
.fixture:hover { border-color: var(--turf-bright); background: var(--night-3); }
@media (min-width: 720px) { .fixture { grid-template-columns: 8rem minmax(0, 1fr) auto; gap: var(--s-5); } }

.fixture__when { font-size: var(--t-xs); color: var(--chalk-mute); display: grid; gap: 2px; }
.fixture__when b { font-family: var(--font-display); font-size: var(--t-md); color: var(--chalk); font-variant-numeric: tabular-nums; }
.fixture__teams { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.fixture__team { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; color: var(--chalk); }
.fixture__team--us { color: var(--sodium); }
.fixture__crest {
  inline-size: 2.25rem; block-size: 2.25rem;
  border-radius: 50%;
  background: var(--night-4);
  border: var(--line) solid var(--hairline);
  display: grid; place-items: center;
  font-size: var(--t-xs); font-weight: 700; color: var(--chalk-mute);
  flex: none;
}
.fixture__score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-lg);
  color: var(--chalk);
  background: var(--night-1);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-2);
  padding: var(--s-2) var(--s-4);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.fixture__vs { color: var(--chalk-mute); font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; }

.result-w { border-inline-start: 3px solid var(--ok); }
.result-d { border-inline-start: 3px solid var(--chalk-mute); }
.result-l { border-inline-start: 3px solid var(--busy); }

/* Win/draw/loss as a labelled badge, not just the border-colour above — a
   colour-only signal fails for colour-blind visitors and disappears entirely
   in a printed or grayscale view. */
.fixture__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 1.8rem;
  block-size: 1.8rem;
  padding-inline: var(--s-2);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-xs);
  line-height: 1;
}
.fixture__badge[data-result="w"] { background: rgba(69,209,126,.16); color: var(--ok); border: var(--line) solid rgba(69,209,126,.45); }
.fixture__badge[data-result="d"] { background: rgba(125,143,134,.16); color: var(--chalk-mute); border: var(--line) solid var(--hairline); }
.fixture__badge[data-result="l"] { background: rgba(224,106,90,.16); color: var(--busy); border: var(--line) solid rgba(224,106,90,.45); }

/* Filter bar, shared by fixtures / news / gallery */
.filters { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.filter {
  padding: var(--s-2) var(--s-4);
  min-block-size: 2.75rem;
  background: none;
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--chalk-dim);
  font: inherit;
  font-size: var(--t-xs);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--d-quick) var(--e-out), color var(--d-quick) var(--e-out), background var(--d-quick) var(--e-out);
}
.filter:hover { border-color: var(--chalk-mute); color: var(--chalk); }
.filter[aria-pressed="true"] { background: var(--chalk); border-color: var(--chalk); color: var(--night-1); }

/* --------------------------------------------------------------------------
   Teams
   -------------------------------------------------------------------------- */

.team-card { position: relative; overflow: hidden; display: block; text-decoration: none; }
.team-card .photo { border-radius: var(--r-2); margin-block-end: var(--s-4); }
.team-card__age { font-size: var(--t-xs); color: var(--sodium); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; }

.squad { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.player {
  display: grid;
  gap: var(--s-2);
  text-align: center;
  padding-block-end: var(--s-3);
}
.player .photo { --photo-ratio: 3 / 4; border-radius: var(--r-2); }
/* A real uploaded photo replaces the turf-placeholder background entirely —
   .photo's own ::after wash would otherwise sit on top of it. */
.player .photo:has(img) { background: var(--night-4); }
.player .photo:has(img)::after { display: none; }
.player .photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.player__num {
  position: absolute;
  inset-block-start: var(--s-2);
  inset-inline-start: var(--s-3);
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: rgba(255,255,255,.85);
  direction: ltr;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.player__name { font-family: var(--font-display); font-weight: 700; color: var(--chalk); font-size: var(--t-sm); }
.player__pos { font-size: var(--t-xs); color: var(--chalk-mute); }

/* --------------------------------------------------------------------------
   Gallery — forgiving of mixed aspect ratios by design
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  grid-auto-rows: 11rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2);
  /* Every tile is a <button> (it opens the lightbox), so it also needs the
     native button chrome stripped — done here, in the stylesheet, rather
     than with an inline `all: unset`, which would reset this rule's own
     `position`/`overflow` right along with the browser defaults. */
  display: block;
  inline-size: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.gallery-item .photo { block-size: 100%; aspect-ratio: auto; border-radius: var(--r-2); }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
@media (max-width: 479px) { .gallery-item--wide { grid-column: span 1; } }
.gallery-item__cap {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: var(--s-5) var(--s-3) var(--s-3);
  background: linear-gradient(transparent, rgba(4,9,8,.9));
  font-size: var(--t-xs);
  color: var(--chalk-soft);
  translate: 0 100%;
  transition: translate var(--d-move) var(--e-out);
}
.gallery-item:hover .gallery-item__cap,
.gallery-item:focus-within .gallery-item__cap { translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .gallery-item__cap { translate: 0 0; transition: none; } }

/* --------------------------------------------------------------------------
   Sponsors
   -------------------------------------------------------------------------- */

.tier { border-block-start: var(--line-chalk) solid var(--hairline); padding-block-start: var(--s-4); margin-block-start: var(--s-7); }
.tier--gold { border-color: var(--sodium); }
.tier--silver { border-color: var(--chalk-mute); }
.tier--olive { border-color: var(--olive); }
.tier__head { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin-block-end: var(--s-5); }
.tier__name { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 800; color: var(--chalk); }

.sponsor-slot {
  display: grid;
  place-items: center;
  gap: var(--s-2);
  aspect-ratio: 3 / 2;
  padding: var(--s-4);
  background: var(--night-2);
  border: var(--line) dashed var(--hairline);
  border-radius: var(--r-2);
  text-align: center;
  color: var(--chalk-mute);
  font-size: var(--t-xs);
  transition: border-color var(--d-quick) var(--e-out), background var(--d-quick) var(--e-out);
}
.sponsor-slot:hover { border-color: var(--sodium); background: var(--night-3); color: var(--chalk-dim); }
.sponsor-slot b { color: var(--chalk-soft); font-family: var(--font-display); font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */

.map-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--night-2);
}
.map-frame iframe { inline-size: 100%; block-size: 100%; border: 0; filter: grayscale(.35) invert(.92) hue-rotate(160deg) contrast(.92); }
.map-note { font-size: var(--t-xs); color: var(--chalk-mute); margin-block-start: var(--s-3); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.nf { min-block-size: 78svh; display: grid; place-items: center; text-align: center; padding-block: var(--s-9); }
.nf__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 3rem + 18vw, 16rem);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 2px var(--hairline);
  direction: ltr;
  margin-block-end: var(--s-5);
}

/* --------------------------------------------------------------------------
   Design system + logo pages
   -------------------------------------------------------------------------- */

.swatches { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.swatch { border: var(--line) solid var(--hairline); border-radius: var(--r-2); overflow: hidden; }
.swatch__chip { block-size: 4.5rem; }
.swatch__meta { padding: var(--s-3); font-size: var(--t-xs); }
.swatch__meta b { display: block; color: var(--chalk); font-family: var(--font-display); }
.swatch__meta code { color: var(--chalk-mute); font-family: var(--font-mono); font-size: 11px; direction: ltr; display: block; }

.spec-demo { border: var(--line) dashed var(--hairline); border-radius: var(--r-2); padding: var(--s-5); background: var(--night-2); }

.lockup { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: inherit; }
.lockup--vertical { flex-direction: column; text-align: center; }
.lockup__text { display: flex; flex-direction: column; line-height: 1.15; }
.lockup__ar { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.lockup__en { font-size: var(--t-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--chalk-mute); }

.logo-board { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .logo-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.logo-panel { border: var(--line) solid var(--hairline); border-radius: var(--r-3); overflow: hidden; background: var(--night-2); }
.logo-panel__dark { padding: var(--s-7) var(--s-5); display: grid; place-items: center; background: var(--night-1); min-block-size: 13rem; }
.logo-panel__light {
  padding: var(--s-7) var(--s-5);
  display: grid;
  place-items: center;
  background: var(--limestone);
  min-block-size: 13rem;
  /* The marks are drawn for a night ground: their "ink"/"chalk" strokes
     default to near-white. On this light swatch that default would sit at
     roughly 1.3:1 against the limestone background, so it is swapped for a
     dark ink here — the accent colours (sodium, olive, hill-green) are
     already legible on light and are left untouched. */
  --lg-ink: var(--night-2);
  --lg-chalk: var(--night-2);
}
.logo-panel__mono { padding: var(--s-5); display: flex; gap: var(--s-5); align-items: center; justify-content: center; background: var(--night-3); }
.logo-panel__body { padding: var(--s-5); border-block-start: var(--line) solid var(--hairline); }
.logo-panel h3 { margin-block-end: var(--s-2); }
.logo-sizes { display: flex; gap: var(--s-5); align-items: flex-end; flex-wrap: wrap; }

.verdict {
  border-inline-start: var(--line-chalk) solid var(--sodium);
  padding-inline-start: var(--s-5);
  background: rgba(255,190,61,.06);
  padding-block: var(--s-4);
  padding-inline-end: var(--s-4);
  border-radius: 0 var(--r-2) var(--r-2) 0;
}
:dir(ltr) .verdict { border-radius: var(--r-2) 0 0 var(--r-2); }
