/* Layout: the court is the system. Hero = goal area (video inside the 6 m line, dashed 9 m line around it).
   Quiet paper sections after that; training reads like a match sheet; sponsors sit on one run of perimeter boards. */
:root {
  --navy: #0a1730;      /* club navy, from theme 2.1.2 */
  --red: #be1622;       /* club red, from the logo */
  --ink: #0e1626;
  --muted: #4f5a6b;
  --paper: #f1f3f7;     /* cool hall-white, biased to navy */
  --white: #ffffff;
  --line: #d6dbe4;
  --on-navy: #c9d3e4;
  --focus: #ffb400;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1240px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --fast: 180ms; --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--white); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .98; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.9rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: calc(var(--max) + 2 * 48px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); } }
.skip { position: fixed; left: 16px; top: -80px; background: var(--white); color: var(--navy); padding: 10px 16px; z-index: 60; font-weight: 600; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }
.utility { font: 600 .8rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 22px; font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.btn .arr { transition: transform var(--fast) var(--ease); }
.btn:hover .arr { transform: translate(3px,-3px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; transition: color var(--fast) var(--ease); }
.link:hover { color: var(--red); }

/* Header */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 76px; }
.brand { flex-shrink: 0; display: block; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; padding: 10px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--fast) var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav .btn { padding: 0 18px; min-height: 44px; }
.nav .btn::after { display: none; }
.nav .btn-red:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.langs { display: flex; gap: 2px; }
.langs button { font: 600 .82rem/1 var(--body); letter-spacing: .06em; background: none; border: 0; padding: 10px 8px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.langs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--red); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); min-height: 44px; padding: 0 14px; font: 600 .9rem var(--body); color: var(--ink); cursor: pointer; align-items: center; gap: 10px; }
@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter-r) 20px var(--gutter); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: space-between; border-bottom: 0; }
  .langs { order: 3; }
}
@media (max-width: 420px) { .brand img { height: 38px; } .langs button { padding: 10px 5px; } }

/* Hero: the goal area */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--s4); padding-block: var(--s5) var(--s5); }
.hero-text { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; position: relative; z-index: 2; }
.hero-where { color: var(--on-navy); }
.hero h1 { font-weight: 800; font-style: italic; font-size: clamp(3.6rem, 8.4vw, 8.2rem); line-height: .9; letter-spacing: -.015em; display: flex; flex-direction: column; }
.hero h1 .l { display: block; overflow: hidden; padding-right: .08em; }
.hero h1 .l > span { display: block; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
@supports not (-webkit-text-stroke: 2px white) { .hero h1 .outline { color: var(--white); } }
.hero-intro { color: var(--on-navy); font-size: 1.12rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.court { position: relative; min-width: 0; aspect-ratio: 6 / 5; max-width: 100%; }
.court video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: url(#goal-area); background: #1b2a48; }
.court svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.court .six { fill: none; stroke: var(--white); stroke-width: 6; }
.court .nine { fill: none; stroke: var(--red); stroke-width: 6; stroke-dasharray: 26 22; }
.court .tag { position: absolute; font: 700 .78rem/1 var(--body); letter-spacing: .12em; color: var(--on-navy); }
.court .tag.t6 { right: 4%; top: 3%; }
.court .tag.t9 { left: -9%; bottom: -5%; color: #f08a92; }
.vid-toggle { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(10,23,48,.55); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background var(--fast) var(--ease); }
.vid-toggle:hover { background: var(--red); border-color: var(--red); }
.vid-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.vid-toggle .i-play { display: none; }
.vid-toggle[aria-pressed="true"] .i-play { display: block; }
.vid-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: var(--s4) var(--s5); gap: var(--s4); }
  .court { order: -1; width: 86%; margin-left: 14%; }
  .court .tag.t9 { bottom: -8%; left: -12%; }
}

/* Load sequence (only when motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l > span { animation: rise 760ms var(--ease) both; }
  .hero h1 .l:nth-child(2) > span { animation-delay: 120ms; }
  .court .six { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease) 150ms forwards; }
  .court .nine-mask { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 800ms var(--ease) 450ms forwards; }
  .court video { animation: fade 700ms ease-out both; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Fixture line */
.fixture { background: var(--paper); border-bottom: 1px solid var(--line); }
.fixture .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 22px; }
.fixture strong { font: 700 1.5rem/1.1 var(--display); text-transform: uppercase; }
.fixture p { color: var(--muted); flex: 1 1 260px; min-width: 0; }
.fixture .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* Sections */
.section { padding-block: var(--s6); }
@media (max-width: 700px) { .section { padding-block: var(--s5); } }
.club .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: start; }
.club-copy { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.club-copy .lead { font: 600 1.45rem/1.3 var(--body); }
.club-copy p:not(.lead) { color: var(--muted); max-width: 52ch; }
.sig { display: flex; align-items: center; gap: 14px; font: italic 700 1.35rem var(--display); text-transform: uppercase; }
.sig::before { content: ""; width: 40px; height: 3px; background: var(--red); }
.club-photos { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.slides::-webkit-scrollbar { display: none; }
.slides.dragging { cursor: grabbing; scroll-snap-type: none; }
.slides img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: start; user-select: none; -webkit-user-drag: none; }
.slide-bar { display: flex; align-items: center; gap: 12px; }
.slide-count { font: 700 1.3rem/1 var(--display); font-variant-numeric: tabular-nums; margin-right: auto; }
.slide-count span { color: var(--muted); }
.slide-dots { display: flex; gap: 6px; margin-right: 8px; }
.slide-dots i { width: 28px; height: 3px; background: var(--line); transition: background var(--fast) var(--ease); }
.slide-dots i.on { background: var(--red); }
.slide-btn { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 1.1rem var(--body); cursor: pointer; transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.slide-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.slide-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) { .club .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }

.teams { background: var(--paper); }
.teams-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3); margin-bottom: var(--s4); }
.team-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 760px) { .team-row { grid-template-columns: minmax(0, 1fr); } }
.team { background: var(--white); display: flex; flex-direction: column; min-width: 0; }
.team figure { margin: 0; position: relative; overflow: hidden; }
.team img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 400ms var(--ease); }
.team:hover img { transform: scale(1.025); }
.team .side { position: absolute; left: 0; top: 18px; background: var(--red); color: var(--white); padding: 7px 14px; }
.team-body { padding: var(--s3) var(--s3) 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.team-body p { color: var(--muted); }
.team-body p strong { color: var(--ink); }
.team-body .link { margin-top: auto; align-self: flex-start; }

/* Match sheet */
.training { background: var(--navy); color: var(--white); }
.training .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s5); }
@media (max-width: 900px) { .training .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }
.training-intro { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; min-width: 0; }
.training-intro p { color: var(--on-navy); max-width: 40ch; }
.sheet { border-top: 3px solid var(--white); min-width: 0; }
.sheet-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 8px 24px; align-items: center; padding-block: 22px; border-bottom: 1px solid rgba(255,255,255,.2); }
.sheet-row .who { color: var(--on-navy); }
.sheet-row .days { font: 700 1.55rem/1.1 var(--display); text-transform: uppercase; white-space: pre-line; }
.sheet-row .where { display: block; font: 500 .9rem/1.4 var(--body); color: var(--on-navy); text-transform: none; margin-top: 6px; }
.time { font: 700 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.time span { color: var(--on-navy); font-weight: 600; }
@media (max-width: 560px) { .sheet-row { grid-template-columns: minmax(0, 1fr) auto; } .sheet-row .who { grid-column: 1 / -1; } }
.sheet-note { color: var(--on-navy); font-size: .95rem; padding-top: 20px; max-width: 64ch; }
.venue { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--s3); }
.venue svg { width: 22px; height: 22px; stroke: #f08a92; fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 3px; }

/* Perimeter boards */
.sponsors-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3); margin-bottom: var(--s4); }
.sponsors-head p { color: var(--muted); max-width: 46ch; margin-top: 14px; }
.boards { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.board { background: var(--white); display: grid; place-items: center; padding: 18px 12px; text-decoration: none; min-height: 132px; position: relative; transition: background var(--fast) var(--ease); }
.board img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.board.main { grid-column: span 2; }
.board .nm { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 600 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity var(--fast) var(--ease); }
a.board:hover .nm, a.board:focus-visible .nm { opacity: 1; }
a.board:hover { background: var(--paper); }
.boards { grid-template-columns: repeat(11, minmax(0, 1fr)); }
@media (max-width: 1000px) { .boards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .board.main, .board:last-child { grid-column: span 2; } }
@media (max-width: 520px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .board { min-height: 110px; } .board img { max-height: 64px; } .board .nm { opacity: 1; position: static; margin-top: 8px; } .board { display: flex; flex-direction: column; justify-content: center; } }

/* Contact */
.contact { background: var(--paper); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }
.contact-intro { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.contact-intro p { color: var(--muted); max-width: 44ch; }
.contact-list { display: flex; flex-direction: column; border-top: 3px solid var(--ink); min-width: 0; }
.c-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line); }
.c-item .utility { color: var(--muted); grid-column: 1 / -1; }
.c-item .v { font: 700 clamp(1.25rem, 2.6vw, 1.9rem)/1.15 var(--display); overflow-wrap: anywhere; }
.c-item .v small { display: block; font: 400 1rem/1.5 var(--body); color: var(--muted); margin-top: 4px; }
.c-btn { font: 600 .92rem var(--body); background: var(--white); border: 1px solid var(--line); min-height: 44px; padding: 0 16px; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.c-btn:hover { border-color: var(--red); color: var(--red); }
.c-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Footer */
footer { background: var(--navy); color: var(--on-navy); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: var(--s4); }
footer img { height: 48px; width: auto; }
footer .tagline { font: italic 700 1.6rem var(--display); text-transform: uppercase; color: var(--white); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .92rem; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--white); text-decoration: underline; }
.fine { border-top: 1px solid rgba(255,255,255,.15); }
.fine .wrap { padding-block: 18px; font-size: .85rem; }
.fine .credit { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: inherit; opacity: .8; transition: opacity .2s; }
.fine .credit:hover, .fine .credit:focus-visible { opacity: 1; }
footer .fine .credit img { height: 20px; width: auto; display: block; }
