:root {
  --night: #07131d;
  --night-2: #0c1e28;
  --ink: #122027;
  --emerald: #0f6a50;
  --emerald-bright: #18a979;
  --gold: #f4c85a;
  --gold-deep: #c99727;
  --ivory: #f7f3e8;
  --paper: #f1eee5;
  --muted: #9aa8ad;
  --line: rgba(247, 243, 232, .14);
  --shadow: 0 24px 70px rgba(0, 0, 0, .26);
  --radius: 22px;
  --sticky-header-height: 98px;
  --display: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--body); }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 10px 16px; background: var(--gold); color: var(--night); font-weight: 800; }
.skip-link:focus { top: 12px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--gold-deep); font: 700 .76rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold); }
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: -.025em; line-height: .98; }
.muted { color: #627078; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #6e797d; font-size: .84rem; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid rgba(15, 106, 80, .22); border-radius: 999px; color: var(--emerald); background: rgba(15, 106, 80, .07); font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-outline { border-color: rgba(255,255,255,.38); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.arrow { transition: transform .2s ease; }
a:hover .arrow { transform: translateX(4px); }

#site-header { position: sticky; top: 0; z-index: 100; }
.site-header { position: relative; color: white; background: rgba(7, 19, 29, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.notice-bar { background: #061016; border-bottom: 1px solid rgba(255,255,255,.08); color: #bdc7ca; font-size: .72rem; text-align: center; padding: 5px 16px; letter-spacing: .04em; }
.nav-shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 39px; height: 43px; color: var(--night); font: 800 1rem/1 var(--display); background: var(--gold); clip-path: polygon(50% 0, 96% 18%, 86% 78%, 50% 100%, 14% 78%, 4% 18%); }
.brand-mark::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(7,19,29,.45); clip-path: inherit; }
.brand-text strong { display: block; font: 600 1.15rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.brand-text small { display: block; color: var(--gold); font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; margin-top: 5px; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a { position: relative; color: #dce3e5; text-decoration: none; font-size: .86rem; font-weight: 700; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--gold); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; width: 43px; height: 43px; border: 1px solid var(--line); background: transparent; color: #fff; border-radius: 50%; cursor: pointer; }

.hero { position: relative; min-height: 720px; display: grid; align-items: center; isolation: isolate; color: #fff; background: var(--night) url("assets/hero-stadium.jpg") 50% 55%/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,15,23,.98) 0%, rgba(5,15,23,.86) 36%, rgba(5,15,23,.28) 70%, rgba(5,15,23,.12)), linear-gradient(0deg, rgba(5,15,23,.88), transparent 45%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to right, #000, transparent 55%); }
.hero-content { padding: 112px 0 140px; max-width: 720px; }
.hero h1 { margin: 0; max-width: 680px; font-size: clamp(4rem, 9vw, 8.2rem); }
.hero h1 span { display: block; color: var(--gold); }
.hero-dek { max-width: 580px; margin: 26px 0 32px; color: #d4dde0; font-size: clamp(1rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stat { position: absolute; right: max(20px, calc((100% - 1180px)/2)); bottom: 54px; width: 255px; padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(4,14,21,.76); backdrop-filter: blur(9px); }
.hero-stat strong { display: block; font: 600 1.35rem/1.2 var(--display); text-transform: uppercase; }
.hero-stat span { color: #abb9bd; font-size: .76rem; }

.ticker { position: relative; z-index: 2; margin-top: -30px; }
.ticker-inner { display: grid; grid-template-columns: 190px 1fr; min-height: 92px; color: white; background: var(--emerald); box-shadow: var(--shadow); }
.ticker-title { display: grid; place-content: center; padding: 18px 26px; background: #0a503d; }
.ticker-title span { color: #cfe7de; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.ticker-title strong { font: 600 1.25rem/1 var(--display); text-transform: uppercase; margin-top: 6px; }
.ticker-items { display: grid; grid-template-columns: repeat(5, 1fr); }
.ticker-item { padding: 17px 18px; border-left: 1px solid rgba(255,255,255,.15); }
.ticker-item span { display: block; color: #b7d9ce; font-size: .66rem; text-transform: uppercase; }
.ticker-item strong { display: block; margin-top: 3px; font-family: var(--display); font-size: 1rem; text-transform: uppercase; }
.ticker-item small { color: var(--gold); }

.section { padding: 100px 0; }
.section.dark { color: var(--ivory); background: var(--night); }
.section.emerald { color: white; background: var(--emerald); }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-header h2 { margin: 0; font: 600 clamp(2.4rem, 5vw, 4.7rem)/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.section-header p { max-width: 480px; margin: 0; color: #647177; }
.dark .section-header p { color: #a9b5b9; }
.text-link { color: var(--emerald); font-weight: 800; text-decoration: none; white-space: nowrap; }
.dark .text-link { color: var(--gold); }

.story-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; }
.story-card { min-width: 0; background: white; border: 1px solid #dedbd2; border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.story-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(10,24,32,.13); }
.story-card:first-child { grid-row: span 2; }
.story-art { position: relative; min-height: 210px; display: flex; align-items: end; padding: 22px; color: white; overflow: hidden; background: linear-gradient(140deg, #0e7558, #07131d); }
.story-card:first-child .story-art { min-height: 410px; }
.story-art::before { content: ""; position: absolute; width: 230px; height: 230px; right: -40px; top: -60px; border: 42px solid rgba(244,200,90,.2); border-radius: 50%; }
.story-art::after { content: attr(data-code); position: absolute; right: 12px; bottom: -25px; color: rgba(255,255,255,.08); font: 700 8rem/1 var(--display); }
.story-card:first-child .story-art { background: linear-gradient(0deg, rgba(7,19,29,.72), rgba(7,19,29,.08)), url("assets/hero-stadium.jpg") center/cover; }
.story-card:first-child .story-art::after { content: "XI"; }
.story-card-content { padding: 24px; }
.story-card h3 { margin: 8px 0 11px; font: 600 clamp(1.45rem, 2.4vw, 2.2rem)/1.05 var(--display); text-transform: uppercase; }
.story-card p { margin: 0 0 17px; color: #667278; font-size: .92rem; }
.story-card a { text-decoration: none; }

.team-strip { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.team-tile { position: relative; min-height: 190px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: white; text-decoration: none; overflow: hidden; }
.team-tile::before { content: ""; position: absolute; inset: auto -25px -55px auto; width: 130px; height: 130px; border: 22px solid var(--accent, var(--gold)); opacity: .18; border-radius: 50%; transition: transform .25s ease; }
.team-tile:hover::before { transform: scale(1.14); }
.team-flag { position: absolute; right: 13px; top: 13px; font-size: 2rem; filter: drop-shadow(0 5px 10px rgba(0,0,0,.25)); }
.team-code { color: var(--gold); font: 700 2.8rem/1 var(--display); }
.team-tile strong { font: 500 1.15rem/1.1 var(--display); text-transform: uppercase; }
.team-tile small { color: #8ea0a6; }

.player-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.player-card { position: relative; min-height: 320px; padding: 24px; display: flex; flex-direction: column; justify-content: end; color: white; background: linear-gradient(160deg, var(--player-color, #0f6a50), #07131d 72%); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.player-card::before { content: attr(data-initials); position: absolute; inset: 25px 0 auto; color: rgba(255,255,255,.09); text-align: center; font: 700 8rem/1 var(--display); }
.player-card::after { content: attr(data-number); position: absolute; top: 16px; right: 20px; color: rgba(244,200,90,.3); font: 700 3.7rem/1 var(--display); }
.player-card.has-photo::before { display: none; }
.player-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .35s ease; }
.player-card:hover .player-photo { transform: scale(1.035); }
.player-card-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,14,21,.98) 0%, rgba(4,14,21,.68) 35%, rgba(4,14,21,.05) 75%); }
.player-card-content { position: relative; z-index: 1; }
.player-card h3 { margin: 9px 0 5px; font: 600 1.55rem/1 var(--display); text-transform: uppercase; }
.player-card p { margin: 0; color: #b8c4c7; font-size: .84rem; }

.page-hero { position: relative; padding: 98px 0 76px; color: white; background: radial-gradient(circle at 80% 0%, rgba(21,140,101,.38), transparent 34%), var(--night); overflow: hidden; }
.page-hero::after { content: attr(data-word); position: absolute; right: -30px; bottom: -55px; color: rgba(255,255,255,.035); font: 700 clamp(8rem, 24vw, 20rem)/1 var(--display); text-transform: uppercase; }
.page-hero h1 { margin: 0; max-width: 850px; font-size: clamp(3.6rem, 8vw, 7.5rem); }
.page-hero p { max-width: 640px; margin: 22px 0 0; color: #b7c3c7; font-size: 1.08rem; }
.filters { position: sticky; top: var(--sticky-header-height); z-index: 20; display: grid; grid-template-columns: minmax(230px, 1.3fr) repeat(3, minmax(140px, .6fr)); gap: 12px; padding: 16px; margin: -30px auto 42px; background: rgba(247,243,232,.96); border: 1px solid #d9d5ca; border-radius: 14px; box-shadow: 0 12px 32px rgba(7,19,29,.1); backdrop-filter: blur(12px); }
.filters label { position: relative; }
.filters span { position: absolute; left: 14px; top: 7px; color: #6b7477; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.filters input, .filters select { width: 100%; min-height: 54px; padding: 20px 14px 5px; color: var(--ink); background: white; border: 1px solid #d4d0c6; border-radius: 8px; }
.result-count { margin: 0 0 18px; color: #667278; font-size: .88rem; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.directory-grid.players { grid-template-columns: repeat(4, 1fr); }
.empty-state { grid-column: 1/-1; padding: 70px 24px; text-align: center; border: 1px dashed #b9b5ac; border-radius: var(--radius); }

.profile-hero { position: relative; padding: 90px 0 76px; color: white; background: linear-gradient(120deg, var(--profile-color, #0f6a50), var(--night) 68%); overflow: hidden; }
.profile-hero::after { content: attr(data-code); position: absolute; right: 2vw; bottom: -5vw; color: rgba(255,255,255,.055); font: 700 clamp(10rem, 30vw, 26rem)/1 var(--display); }
.profile-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 320px; gap: 70px; align-items: end; }
.profile-hero h1 { margin: 10px 0 20px; font-size: clamp(3.5rem, 7vw, 7.2rem); }
.profile-hero .lead { max-width: 690px; color: #d2dcde; font-size: 1.1rem; }
.crest { position: relative; width: 230px; aspect-ratio: .9; display: grid; place-items: center; margin-left: auto; color: var(--night); font: 700 5rem/1 var(--display); background: var(--gold); clip-path: polygon(50% 0, 95% 17%, 87% 78%, 50% 100%, 13% 78%, 5% 17%); }
.crest::after { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(7,19,29,.45); clip-path: inherit; }
.team-crest { grid-template-rows: 1fr auto; padding: 40px 20px 32px; font-family: var(--body); }
.team-crest span { font-size: 4.7rem; line-height: 1; }
.team-crest small { font: 800 .8rem/1 var(--body); letter-spacing: .18em; }
.profile-photo { width: 280px; margin: 0 0 0 auto; background: rgba(4,14,21,.5); border: 1px solid rgba(255,255,255,.2); box-shadow: var(--shadow); }
.profile-photo img { width: 100%; height: 330px; object-fit: cover; object-position: center top; }
.profile-photo figcaption { padding: 8px 10px; color: #b9c5c8; font-size: .62rem; line-height: 1.35; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 40px 0; background: #d8d4ca; border: 1px solid #d8d4ca; }
.fact { padding: 24px; background: white; }
.fact span { display: block; color: #738084; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.fact strong { display: block; margin-top: 5px; font-size: 1rem; }
.article-shell { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 70px; align-items: start; }
.article-body { font-family: Georgia, serif; font-size: 1.17rem; line-height: 1.86; }
.article-body p:first-child::first-letter { float: left; margin: .1em .12em 0 0; color: var(--emerald); font: 700 4.8rem/.75 var(--display); }
.article-aside { position: sticky; top: 120px; padding-left: 24px; border-left: 2px solid var(--gold-deep); }
.article-aside h2 { font: 600 1.2rem/1 var(--display); text-transform: uppercase; }
.article-aside a { display: block; overflow-wrap: anywhere; margin: 12px 0; color: var(--emerald); font-size: .78rem; }
.prose h2 { margin: 45px 0 14px; font: 600 2rem/1.1 var(--display); text-transform: uppercase; }
.prose h3 { margin-top: 30px; }
.prose a { color: var(--emerald); }
.callout { margin: 35px 0; padding: 22px 24px; background: #e5ede9; border-left: 4px solid var(--emerald); }
.credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.credit-card { display: grid; grid-template-columns: 74px 1fr; gap: 14px; min-width: 0; padding: 10px; background: white; border: 1px solid #dedbd2; border-radius: 10px; }
.credit-card img { width: 74px; height: 88px; object-fit: cover; object-position: center top; border-radius: 6px; }
.credit-card strong, .credit-card span, .credit-card a { display: block; }
.credit-card strong { font-size: .85rem; }
.credit-card span, .credit-card a { font-size: .7rem; line-height: 1.45; overflow-wrap: anywhere; }

.site-footer { padding: 68px 0 24px; color: #a9b5b9; background: #041016; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; padding-bottom: 44px; }
.footer-brand p { max-width: 360px; margin-top: 20px; }
.footer-col strong { display: block; color: white; font: 600 1rem/1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; margin: 9px 0; color: #a9b5b9; text-decoration: none; font-size: .86rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .72rem; }
.footer-disclaimer { color: var(--gold); }

@media (max-width: 980px) {
  .primary-nav { position: fixed; inset: 98px 0 0; display: none; flex-direction: column; align-items: stretch; padding: 30px 24px; background: var(--night); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 13px 0; font-size: 1.1rem; }
  .menu-toggle { display: grid; place-items: center; }
  .hero { min-height: 650px; }
  .hero-stat { display: none; }
  .ticker-items { grid-template-columns: repeat(3, 1fr); }
  .ticker-item:nth-child(n+4) { display: none; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-card:first-child { grid-column: 1/-1; grid-row: auto; }
  .team-strip { grid-template-columns: repeat(3, 1fr); }
  .player-grid, .directory-grid.players { grid-template-columns: repeat(2, 1fr); }
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .profile-layout { grid-template-columns: 1fr 200px; gap: 30px; }
  .crest { width: 180px; }
  .profile-photo { width: 200px; }
  .profile-photo img { height: 250px; }
  .article-shell { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 28px, 1180px); }
  .notice-bar { font-size: .62rem; }
  .nav-shell { min-height: 66px; }
  .brand-text small { display: none; }
  .hero { min-height: 610px; background-position: 60% center; }
  .hero-content { padding: 88px 0 110px; }
  .hero h1 { font-size: clamp(3.5rem, 19vw, 5.5rem); }
  .ticker { margin-top: -20px; }
  .ticker-inner { grid-template-columns: 1fr; }
  .ticker-title { display: block; padding: 12px 16px; }
  .ticker-title strong { margin-left: 8px; }
  .ticker-items { grid-template-columns: 1fr 1fr; }
  .ticker-item:nth-child(n+3) { display: none; }
  .section { padding: 72px 0; }
  .section-header { align-items: start; flex-direction: column; }
  .story-grid, .directory-grid, .directory-grid.players { grid-template-columns: 1fr; }
  .story-card:first-child .story-art { min-height: 280px; }
  .team-strip { grid-template-columns: repeat(2, 1fr); }
  .team-tile { min-height: 160px; }
  .player-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 72px 0 62px; }
  .page-hero h1 { font-size: clamp(3.3rem, 17vw, 5.4rem); }
  .filters { position: static; grid-template-columns: 1fr; margin-top: -20px; }
  .profile-layout { grid-template-columns: 1fr; }
  .crest { display: none; }
  .profile-photo { width: min(100%, 320px); margin: 0; }
  .profile-photo img { height: 330px; }
  .facts-grid { grid-template-columns: 1fr; }
  .credits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
