/* =====================================================================
   LA LIGA MALDONADO — core stylesheet
   Aesthetic: dark editorial sports-magazine, warm sunset accent, grit.
   Type: Fraunces (display serif) · Hanken Grotesk (body) · JetBrains Mono (labels)
   Single source of truth for all pages. Mobile-first.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------- */
:root {
  /* — colour — */
  --bg:          #0c0d10;
  --bg-2:        #101218;
  --surface:     #15181f;
  --surface-2:   #1c212b;
  --border:      #262b35;
  --border-2:    #353c49;
  --text:        #f1efe9;   /* warm off-white — headings */
  --text-body:   #b3b8c1;   /* muted body copy */
  --text-mut:    #7d838f;   /* meta / dim */
  --accent:      #ff5b2e;   /* the one warm accent — sunset orange */
  --accent-2:    #ff7a4d;   /* accent hover */
  --accent-ink:  #0c0d10;   /* ink on accent fill */
  --accent-soft: rgba(255, 91, 46, .10);
  --accent-line: rgba(255, 91, 46, .35);
  --good:        #6fcf97;   /* form 'W' chip only */
  --bad:         #d96b6b;   /* form 'L' chip only */

  /* — type — */
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body:    "Hanken Grotesk", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* — fluid type scale (clamp) — */
  --t-eyebrow: clamp(.72rem, .68rem + .2vw, .8rem);
  --t-meta:    clamp(.78rem, .74rem + .2vw, .86rem);
  --t-body:    clamp(1rem, .96rem + .25vw, 1.12rem);
  --t-lead:    clamp(1.15rem, 1.04rem + .55vw, 1.4rem);
  --t-h4:      clamp(1.1rem, 1rem + .55vw, 1.35rem);
  --t-h3:      clamp(1.4rem, 1.2rem + 1.1vw, 2rem);
  --t-h2:      clamp(2rem, 1.55rem + 2.4vw, 3.4rem);
  --t-h1:      clamp(2.7rem, 1.8rem + 4.6vw, 6rem);
  --t-mega:    clamp(3.4rem, 2rem + 7vw, 8.5rem);

  /* — spacing — */
  --space-section: clamp(4.5rem, 3rem + 9vw, 9rem);
  --gutter:        clamp(1.15rem, .6rem + 4vw, 3rem);
  --maxw:          1220px;
  --maxw-prose:    68ch;

  /* — shape & motion — */
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --line:      1px solid var(--border);
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --dur:       .45s;
  --shadow:    0 18px 50px -22px rgba(0, 0, 0, .8);
  --shadow-accent: 0 22px 60px -26px rgba(255, 91, 46, .45);
}

/* ---------------------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(255, 91, 46, .10), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(255, 91, 46, .05), transparent 60%),
    linear-gradient(transparent 0 calc(100% - 1px), rgba(255,255,255,.018) 100%),
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(255,255,255,.018) 100%);
  background-size: 100% 100%, 100% 100%, 100% 64px, 64px 100%;
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* faint grain overlay for atmosphere */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-2); }

::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ---------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--text);
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -.015em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); line-height: 1.18; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); font-weight: 460; }

p { max-width: var(--maxw-prose); }
p + p { margin-top: 1.1em; }

strong { color: var(--text); font-weight: 600; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--text-body);
  max-width: 60ch;
}

/* eyebrow / small-caps label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.eyebrow::before {
  content: "";
  width: 1.6em; height: 1px;
  background: var(--accent);
  opacity: .8;
}
.eyebrow.no-rule::before { display: none; }

.mono { font-family: var(--f-mono); }
.muted { color: var(--text-mut); }

/* ---------------------------------------------------------------------
   4. LAYOUT
   --------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
.wrap--narrow { max-width: 880px; }

section { position: relative; z-index: 2; }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 2rem + 5vw, 5rem); }
.section--hairline { border-top: var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.1rem; }

.stack > * + * { margin-top: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

/* generic auto-fit grids */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--cards   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--wide    { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--two     { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--stats   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* ---------------------------------------------------------------------
   5. NAVIGATION (fixed, blurred, JS-injected)
   --------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(12, 13, 16, .62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 700;
  flex: none;
}
.brand small {
  display: block;
  font-family: var(--f-mono);
  font-size: .56rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-mut);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
  list-style: none;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-body);
  padding: .35rem 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-cta {
  font-family: var(--f-mono);
  font-size: .74rem !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem .95rem !important;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent) !important;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent); color: var(--accent-ink) !important; }

/* ---------------------------------------------------------------------
   6. BUTTONS (ghost → fill)
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: .9em 1.5em;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--accent-2); }

.btn--ghost-light { border-color: var(--border-2); color: var(--text); }
.btn--ghost-light:hover { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.link-arrow .arrow { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   7. CARDS
   --------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  height: 100%;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.card__index {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent);
}
.card h3, .card h4 { color: var(--text); }
.card p { color: var(--text-body); font-size: .98rem; }
.card .link-arrow { margin-top: auto; padding-top: .4rem; }

a.card { color: inherit; }
a.card:hover { color: inherit; }

/* card with a leading icon glyph */
.card__glyph {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 1rem;
  color: var(--accent);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover .card__glyph { border-color: var(--accent); background: var(--accent-soft); }

.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: .25em .7em;
  border-radius: 100px;
}

/* ---------------------------------------------------------------------
   8. BREADCRUMBS
   --------------------------------------------------------------------- */
.breadcrumb {
  padding-top: clamp(5.5rem, 5rem + 3vw, 7rem);
  padding-bottom: 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-mono);
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mut);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .55rem; }
.breadcrumb li::after { content: "/"; color: var(--border-2); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-mut); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text-body); }

/* ---------------------------------------------------------------------
   9. HERO
   --------------------------------------------------------------------- */
.hero {
  padding-top: clamp(8rem, 6rem + 12vh, 12rem);
  padding-bottom: clamp(3rem, 2rem + 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 1.6rem; max-width: 16ch; }
.hero .lead { margin-bottom: .5rem; }

.hero--home h1 { font-size: var(--t-mega); line-height: .94; letter-spacing: -.03em; }

/* page hero (interior pages) */
.page-hero { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 0; }
.page-hero .eyebrow { margin-bottom: 1.3rem; }
.page-hero h1 { margin-bottom: 1.4rem; }

/* big watermark numeral / word behind hero */
.hero__ghost {
  position: absolute;
  right: -2%; top: 8%;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(8rem, 30vw, 24rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  opacity: .05;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* ---------------------------------------------------------------------
   10. STATS STRIP
   --------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 1px;
  background: var(--border);
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg-2);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -.02em;
}
.stat__num span { color: var(--accent); }
.stat__label {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mut);
  margin-top: .7rem;
}

/* ---------------------------------------------------------------------
   11. CLUB MARQUEE (pure CSS)
   --------------------------------------------------------------------- */
.marquee {
  border-block: var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  position: relative;
  z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  color: var(--text-mut);
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
}
.marquee__item::after {
  content: "●";
  font-size: .4em;
  color: var(--accent);
  vertical-align: middle;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   12. FIXTURE / SCORE CARDS
   --------------------------------------------------------------------- */
.fixtures { display: grid; gap: .9rem; }
.fixture {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.fixture:hover { border-color: var(--accent); background: var(--surface-2); }
.fixture__date {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mut);
  line-height: 1.5;
}
.fixture__date b { display: block; color: var(--accent); font-size: 1.1rem; font-weight: 600; }
.fixture__teams {
  font-family: var(--f-display);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.fixture__teams .vs { font-family: var(--f-mono); font-size: .7rem; color: var(--text-mut); letter-spacing: .1em; }
.fixture__meta {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mut);
  text-align: right;
  line-height: 1.5;
}
.fixture__score {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

/* ---------------------------------------------------------------------
   13. STANDINGS TABLE
   --------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: var(--line); border-radius: var(--radius); }
table.standings {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: .92rem;
}
.standings thead th {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mut);
  text-align: center;
  padding: 1rem .6rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.standings thead th:first-child,
.standings tbody td:first-child { text-align: left; padding-left: 1.3rem; }
.standings thead th:nth-child(2),
.standings tbody td:nth-child(2) { text-align: left; }
.standings tbody td {
  padding: .95rem .6rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  font-family: var(--f-mono);
}
.standings tbody tr:last-child td { border-bottom: 0; }
.standings tbody tr:hover { background: var(--surface); }
.standings .pos { color: var(--accent); font-weight: 700; }
.standings .club { font-family: var(--f-display); color: var(--text); font-size: 1.02rem; }
.standings .pts { color: var(--text); font-weight: 700; }
.standings tbody tr:nth-child(-n+3) .pos { position: relative; }

.form-row { display: inline-flex; gap: 3px; justify-content: center; }
.form-chip {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 4px;
  font-size: .6rem;
  font-weight: 700;
  font-family: var(--f-mono);
}
.form-chip.w { background: rgba(111,207,151,.16); color: var(--good); }
.form-chip.l { background: rgba(217,107,107,.16); color: var(--bad); }
.form-chip.d { background: var(--surface-2); color: var(--text-mut); }

/* ---------------------------------------------------------------------
   14. SPLIT / FEATURE BLOCKS
   --------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.split--top { align-items: start; }

.feature-media {
  border: var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(255,91,46,.22), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  display: grid;
  place-items: center;
}
.feature-media__label {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mut);
  text-align: center;
  padding: 1rem;
}
.feature-media__label b { display: block; color: var(--accent); margin-bottom: .4rem; font-size: 1rem; }

/* numbered process / list */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: var(--line);
}
.step:last-child { border-bottom: var(--line); }
.step__n {
  font-family: var(--f-mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .1em;
  padding-top: .35rem;
}
.step h4 { margin-bottom: .4rem; }

/* definition rows (event facts, pricing) */
.facts { display: grid; gap: 0; border-top: var(--line); }
.fact {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: var(--line);
}
.fact dt {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mut);
  padding-top: .15rem;
}
.fact dd { color: var(--text); font-size: 1.02rem; }
.fact dd small { display: block; color: var(--text-mut); font-size: .85rem; margin-top: .2rem; }

/* ---------------------------------------------------------------------
   15. GALLERY (CSS frames; real <img> kept as comments)
   --------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(.8rem, 1.6vw, 1.2rem);
}
.frame {
  position: relative;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(70% 60% at 70% 10%, rgba(255,91,46,.18), transparent 60%),
    linear-gradient(155deg, var(--surface-2), var(--bg-2));
  display: flex;
  align-items: flex-end;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.frame:nth-child(3n) { aspect-ratio: 1 / 1; }
.frame:nth-child(4n) { aspect-ratio: 4 / 5; }
.frame:hover { border-color: var(--accent); transform: translateY(-4px); }
.frame::before {
  content: "◎";
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--f-mono);
  color: var(--accent);
  opacity: .5;
}
.frame__cap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(transparent, rgba(12,13,16,.85));
}
.frame__cap b {
  display: block;
  font-family: var(--f-display);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: .25rem;
}
.frame__cap span {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mut);
}

/* ---------------------------------------------------------------------
   16. JOURNAL / ARTICLE
   --------------------------------------------------------------------- */
.post-card { gap: .7rem; }
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mut);
}
.post-card h3 { font-size: var(--t-h4); }
.post-card:hover h3 { color: var(--accent); }

.article { max-width: var(--maxw-prose); }
.article > * { margin-inline: 0; }
.article p { color: var(--text-body); }
.article h2 { font-size: var(--t-h3); margin-top: 2.6rem; margin-bottom: 1rem; }
.article h3 { font-size: var(--t-h4); margin-top: 2rem; margin-bottom: .8rem; }
.article ul, .article ol { margin: 1.2rem 0; padding-left: 1.3rem; color: var(--text-body); }
.article li { margin-bottom: .55rem; }
.article li::marker { color: var(--accent); }
.article blockquote {
  margin: 2rem 0;
  padding: 1.3rem 1.6rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--f-display);
  font-size: var(--t-h4);
  font-style: italic;
  color: var(--text);
}
.article blockquote cite {
  display: block;
  margin-top: .8rem;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mut);
}
.article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.article a:hover { text-decoration-color: var(--accent); }

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mut);
  padding-bottom: 1.6rem;
  margin-bottom: 2.2rem;
  border-bottom: var(--line);
}
.byline .dot { color: var(--accent); }

/* ---------------------------------------------------------------------
   17. CONTACT / MAILTO
   --------------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.contact-method {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.4rem 0;
  border-top: var(--line);
}
.contact-method .label {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mut);
}
.contact-method .value { font-family: var(--f-display); font-size: var(--t-h4); }
.contact-method .value a { color: var(--text); }
.contact-method .value a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------
   18. RELATED LINKS (spiderweb block)
   --------------------------------------------------------------------- */
.related-links {
  border-top: var(--line);
  padding-block: clamp(3rem, 5vw, 5rem);
}
.related-links .eyebrow { margin-bottom: 1.6rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--border);
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.related-link {
  background: var(--bg-2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color: var(--text-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.related-link:hover { background: var(--surface-2); color: var(--text); }
.related-link__kicker {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.related-link b { font-family: var(--f-display); font-size: 1.12rem; color: var(--text); font-weight: 540; }
.related-link span.desc { font-size: .9rem; color: var(--text-mut); }
.related-link .go { font-family: var(--f-mono); font-size: .8rem; margin-top: auto; padding-top: .4rem; color: var(--accent); }

/* ---------------------------------------------------------------------
   19. CTA BANNER
   --------------------------------------------------------------------- */
.cta-banner {
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255,91,46,.16), transparent 55%),
    var(--surface);
  text-align: center;
}
.cta-banner h2 { margin-bottom: 1rem; max-width: 18ch; margin-inline: auto; }
.cta-banner p { margin-inline: auto; }
.cta-banner .btn-row { justify-content: center; }

/* ---------------------------------------------------------------------
   20. FOOTER (JS-injected)
   --------------------------------------------------------------------- */
.site-footer {
  border-top: var(--line);
  background: var(--bg-2);
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 6vw, 6rem);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3rem, 5vw, 4.5rem) var(--gutter) 2rem;
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(140px, 1fr));
}
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand p { font-size: .92rem; color: var(--text-mut); max-width: 34ch; }
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mut);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: .65rem; }
.footer-col a { color: var(--text-body); font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.6rem var(--gutter);
  border-top: var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mut);
}
.footer-bottom a { color: var(--text-mut); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------
   21. ANIMATIONS (page-load staggered reveal)
   --------------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: rise .9s var(--ease) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .30s; }
.reveal.d4 { animation-delay: .42s; }
.reveal.d5 { animation-delay: .54s; }

/* ---------------------------------------------------------------------
   22. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
  .fixture { grid-template-columns: 70px 1fr; }
  .fixture__meta { grid-column: 1 / -1; text-align: left; padding-top: .4rem; border-top: 1px dashed var(--border); }
  .fact { grid-template-columns: 1fr; gap: .25rem; }
  .footer-bottom { flex-direction: column; }
}

/* hide nav links below 480px — keep brand + CTA */
@media (max-width: 480px) {
  .nav-links { display: none; }
  .site-nav__inner { padding-inline: var(--gutter); }
  .brand small { display: none; }
}

/* ---------------------------------------------------------------------
   23. MOTION PREFERENCES
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
  .marquee__track { animation: none; }
}
