/* 248 Anthems — TPC Las Colinas · "Thirty-Five Sundays"
 * Tournament-annual editorial: the print grammar of old box scores —
 * double score rules, tabular mono numerals, ruled callouts — reset in
 * the 248 system. Warm paper bone, graphite ink, lime as the signal,
 * blackland-prairie umber as the heritage support (≤5%).
 * Barlow Condensed / Inter Variable / IBM Plex Mono. */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Inter Variable';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}

:root {
  --bone: #F6F3EC;          /* warm annual paper */
  --bone-2: #EFEAE0;        /* quiet surface */
  --ash: #DBD4C6;           /* warm hairlines */
  --graphite: #1E1E1E;
  --charcoal: #0D0D0D;
  --lime: #CCFF00;
  --orange: #FF6A00;
  --umber: #7E5F3F;         /* blackland-prairie umber — ink accents on paper */
  --umber-2: #C2A276;       /* dusty bronze — accents on the dark panel */
  --ink-dim: #5E594F;       /* AA mono labels on bone */
  --ink-faint: #8B8477;     /* large/decorative only */
  --body-ink: #37332B;
  --dark-dim: rgba(246, 244, 241, .66);
  --dark-faint: rgba(246, 244, 241, .42);
  --dark-line: rgba(246, 244, 241, .14);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-text: 'Inter Variable', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, 'SF Mono', monospace;

  --gutter: clamp(1rem, 5vw, 4.5rem);
  --maxw: 1296px;
  --beat: .536s;            /* 60/112 s */
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: clamp(.95rem, .9rem + .25vw, 1.0625rem);
  line-height: 1.58;
  background: var(--bone);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: var(--charcoal); }
a { color: inherit; }

.mono { font-family: var(--font-mono); }

h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; line-height: .96; }

:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }
.dark :focus-visible, .dark:focus-visible { outline-color: var(--lime); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--graphite); color: var(--bone);
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em;
  padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* the double "score rule" — the annual's signature hairline */
.score-rule, .slabel::after, .box-head::after {
  background:
    linear-gradient(var(--rule-c, var(--graphite)), var(--rule-c, var(--graphite))) top / 100% 2px no-repeat,
    linear-gradient(var(--rule-f, var(--ash)), var(--rule-f, var(--ash))) bottom / 100% 1px no-repeat;
}

/* ============ masthead ============ */

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: .7rem var(--gutter);
  background: color-mix(in srgb, var(--bone) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ash);
}
.crumb { display: flex; align-items: baseline; gap: .6rem; white-space: nowrap; min-width: 0; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  letter-spacing: .04em; text-decoration: none;
}
.wordmark b { background: var(--graphite); color: var(--lime); font-weight: 700; padding: .1em .3em .12em; margin-right: .28em; }
.crumb-sep { color: var(--ink-faint); }
.crumb-here { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; color: var(--ink-dim); }
.masthead-nav { display: flex; gap: clamp(.8rem, 2.2vw, 1.7rem); }
.masthead-nav a {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-dim);
  border-bottom: 2px solid transparent; padding: .2em 0;
  transition: color .18s ease, border-color .18s ease;
}
.masthead-nav a:hover { color: var(--graphite); border-color: var(--graphite); }
.masthead-meta { font-size: .66rem; letter-spacing: .16em; color: var(--ink-dim); white-space: nowrap; }
@media (max-width: 1080px) { .masthead-meta { display: none; } }
@media (max-width: 700px) {
  .masthead-nav { display: none; }
  .crumb-here { overflow: hidden; text-overflow: ellipsis; }
}

/* ============ ratio stripe (brand signature) ============ */

.stripe { display: flex; gap: 2px; height: 26px; }
.stripe i { flex: 1; background: var(--graphite); opacity: .82; transform-origin: bottom; }
.stripe i:nth-child(4n) { opacity: .6; }
.stripe i:nth-child(n+25) { background: var(--lime); opacity: 1; border: 1px solid color-mix(in srgb, var(--graphite) 22%, transparent); }
.stripe-caption {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em;
  color: var(--ink-dim); margin-top: .55rem; text-transform: uppercase;
}
.reveal .stripe i { transform: scaleY(0); }
.reveal.in .stripe i { transform: scaleY(1); transition: transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 14ms); }

/* ============ hero ============ */

.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--gutter) 2.2rem;
  overflow: hidden;
}
.hero-inner { max-width: var(--maxw); margin-inline: auto; width: 100%; position: relative; z-index: 2; }

/* the annual's spine — faint mono years bleeding off the right edge */
.hero-years {
  position: absolute; z-index: 1; pointer-events: none;
  right: calc(-1 * clamp(1rem, 4vw, 3rem)); top: 4.5rem;
  display: grid; justify-items: end; gap: .1em;
  font-weight: 500; font-size: clamp(3.6rem, 8.5vw, 7.5rem);
  line-height: 1.02; letter-spacing: -.02em;
  color: var(--ash); font-variant-numeric: tabular-nums;
  user-select: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 92%);
  mask-image: linear-gradient(#000 55%, transparent 92%);
}
.hero-years span:nth-child(odd) { color: color-mix(in srgb, var(--umber) 26%, var(--bone)); }
@media (max-width: 700px) { .hero-years { display: none; } }
@media (max-width: 900px) { .hero-years { font-size: 3.4rem; opacity: .75; top: 5.5rem; } }

.hero-kicker {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .22em;
  color: var(--ink-dim); text-transform: uppercase;
}
.hero-kicker::before { content: ''; width: 34px; height: 3px; background: var(--orange); }
.hero-kicker .chip {
  background: var(--umber); color: var(--bone);
  padding: .28em .7em .3em; letter-spacing: .18em;
}
.hero h1 {
  margin-top: 1.1rem;
  font-weight: 700; font-size: clamp(3.7rem, 12.5vw, 12rem);
  line-height: .88; letter-spacing: .005em;
}
.hero h1 .thin { font-weight: 500; color: var(--ink-faint); }
.hero-sub {
  margin-top: 1.4rem; max-width: 62ch;
  font-size: clamp(.98rem, 1.15vw, 1.12rem); line-height: 1.65;
  color: var(--body-ink);
}
.hero-sub strong { font-weight: 620; color: var(--graphite); }

/* box score in the hero — mono numerals, ruled like a line score */
.scorebug {
  margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(6, auto); justify-content: start;
  border-top: 2px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}
.scorebug > div {
  padding: .8rem clamp(.9rem, 2vw, 1.6rem) .9rem;
  border-right: 1px solid var(--ash);
  display: grid; gap: .3rem; align-content: start;
}
.scorebug > div:first-child { padding-left: 0; }
.scorebug > div:last-child { border-right: 0; }
.sb-label { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .2em; color: var(--ink-dim); text-transform: uppercase; }
.sb-val {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(1.15rem, 1.9vw, 1.7rem); line-height: 1.1;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.sb-val small { font-size: .62em; font-weight: 400; color: var(--ink-dim); letter-spacing: 0; }
.sb-val.txt { font-size: clamp(1.05rem, 1.6vw, 1.4rem); }
.sb-val.lime-mark, .sb-val.umber-mark { position: relative; }
.sb-val.lime-mark::after {
  content: ''; position: absolute; left: 0; bottom: -.34em; width: 2.2em; height: 4px;
  background: var(--lime); border: 1px solid color-mix(in srgb, var(--graphite) 25%, transparent);
}
.sb-val.umber-mark::after {
  content: ''; position: absolute; left: 0; bottom: -.34em; width: 3.2em; height: 4px;
  background: var(--umber);
}
@media (max-width: 980px) {
  .scorebug { grid-template-columns: repeat(3, 1fr); }
  .scorebug > div { border-bottom: 1px solid var(--ash); }
  .scorebug > div:nth-child(n+4) { border-bottom: 0; }
  .scorebug > div:nth-child(3n) { border-right: 0; }
  .scorebug > div:nth-child(4) { padding-left: 0; }
}
@media (max-width: 560px) {
  .scorebug { grid-template-columns: repeat(2, 1fr); }
  .scorebug > div { border-right: 0; border-bottom: 1px solid var(--ash); padding-left: 0; }
  .scorebug > div:nth-child(n+5) { border-bottom: 0; }
}

.hero-stripe { margin-top: 2.4rem; }

/* ============ sections ============ */

main > section { padding: clamp(4rem, 9vh, 7.5rem) 0; }
.ap section { padding: 0; }   /* player's internal panels keep their own rhythm */

.shead { display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-items: flex-start; margin-bottom: clamp(2rem, 5vh, 3.4rem); }
.sno {
  font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .06em;
  background: var(--graphite); color: var(--lime);
  padding: .5em .6em; line-height: 1; flex: none; margin-top: .4rem;
}
.shead-text { flex: 1; min-width: 0; }
.slabel {
  display: flex; align-items: center; gap: 1.1rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .24em;
  color: var(--ink-dim); text-transform: uppercase;
}
.slabel::after { content: ''; flex: 1; height: 5px; }
.shead h2 { margin-top: .55rem; font-weight: 600; font-size: clamp(2.3rem, 5.2vw, 4.2rem); letter-spacing: .005em; max-width: 24ch; }
.slede { margin-top: 1rem; max-width: 64ch; color: var(--body-ink); }
.slede em { font-style: italic; }

.dark { background: var(--charcoal); color: var(--bone); }
.dark .sno { background: var(--lime); color: var(--charcoal); }
.dark .slabel { color: var(--dark-dim); --rule-c: rgba(246,244,241,.5); --rule-f: var(--dark-line); }
.dark .slede { color: var(--dark-dim); }
.dark ::selection { background: var(--lime); color: var(--charcoal); }

/* ============ 01 · anthem / player ============ */

.anthem-panel {
  background: var(--charcoal); color: var(--bone);
  padding: clamp(1.2rem, 3vw, 2.6rem);
  position: relative;
  border-top: 3px solid var(--umber);
}
.anthem-panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em;
  color: var(--dark-dim); text-transform: uppercase;
  margin-bottom: 1.1rem;
}
[data-beats] { color: var(--dark-faint); transition: color .3s ease; font-variant-numeric: tabular-nums; }
.is-playing [data-beats] { color: var(--lime); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dark-faint); vertical-align: 1px; margin-right: .5em; }
.is-playing .live-dot { background: var(--lime); animation: beat calc(var(--beat) * 2) ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .75; } }

#trace { display: block; width: 100%; height: 54px; margin-bottom: 1.1rem; }

.anthem-panel .ap {
  --ap-accent: var(--lime);
  --ap-accent-fg: var(--charcoal);
  --ap-font: var(--font-text);
  --ap-radius: 0; --ap-row-radius: 0;
}
.anthem-panel .ap-kicker, .anthem-panel .ap-panel-title, .anthem-panel .ap-time,
.anthem-panel .ap-row-num, .anthem-panel .ap-badge, .anthem-panel .ap-lib-course,
.anthem-panel .ap-mini, .anthem-panel .ap-row-meta { font-family: var(--font-mono); }
.anthem-panel .ap-title { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: .01em; }
.anthem-panel .ap-play { box-shadow: 0 0 0 1px color-mix(in srgb, var(--lime) 45%, transparent); }

.progress-stripe { margin-top: 1.6rem; }
.progress-stripe .stripe { height: 14px; }
.progress-stripe .stripe i { opacity: .14; transform: none; background: var(--bone); border: 0; transition: opacity .2s linear, background .2s linear; }
.progress-stripe .stripe i:nth-child(n+25) { background: var(--bone); }
.progress-stripe .stripe i.lit { opacity: .92; }
.progress-stripe .stripe i:nth-child(n+25).lit { background: var(--lime); opacity: 1; }
.progress-stripe .stripe-caption { color: var(--dark-faint); }

/* ============ 02 · tempo system ============ */

.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ash); border: 1px solid var(--ash);
  border-top: 2px solid var(--graphite);
  margin-bottom: clamp(2rem, 5vh, 3.2rem);
}
.num-cell { background: var(--bone-2); padding: 1.5rem 1.3rem 1.3rem; display: grid; gap: .45rem; align-content: start; }
.num-val { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.num-cell:last-child .num-val { color: var(--umber); }
.num-unit { font-size: .5em; font-weight: 500; color: var(--ink-dim); }
.num-label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; color: var(--ink-dim); text-transform: uppercase; }
@media (max-width: 700px) { .numbers { grid-template-columns: repeat(2, 1fr); } }

.method-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--ash); border: 1px solid var(--ash);
}
.method-card { background: var(--bone); padding: clamp(1.3rem, 2.4vw, 2.1rem); }
.method-card h3 { font-weight: 600; font-size: 1.45rem; letter-spacing: .015em; display: flex; gap: .7rem; align-items: baseline; }
.method-card h3 .no { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--umber); font-weight: 500; }
.method-card p { margin-top: .85rem; font-size: .95rem; color: var(--body-ink); }
.footnote { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px dashed var(--ash); font-family: var(--font-mono); font-size: .64rem; line-height: 1.65; color: var(--ink-dim); }
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr; } }

/* ============ 03 · use this anthem for ============ */

.uses { background: var(--bone-2); border-block: 1px solid var(--ash); }
.uses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ash); border: 1px solid var(--ash); }
.use-card {
  background: var(--bone-2); padding: clamp(1.3rem, 2.2vw, 1.9rem);
  display: grid; grid-template-rows: auto 1fr; gap: 1.4rem;
  transition: background .25s ease;
}
.use-card:hover { background: var(--bone); }
.use-top { display: flex; justify-content: space-between; align-items: flex-start; }
.use-no { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; color: var(--ink-dim); }
.use-icon { width: 30px; height: 30px; color: var(--graphite); }
.use-icon .tick { color: var(--umber); }
.use-card h3 { font-weight: 600; font-size: 1.4rem; letter-spacing: .02em; }
.use-card p { margin-top: .5rem; font-size: .92rem; color: var(--body-ink); align-self: start; }
@media (max-width: 980px) { .uses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .uses-grid { grid-template-columns: 1fr; } }

/* ============ 04 · thirty-five sundays ============ */

.sundays { position: relative; overflow: hidden; }
#wind { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sundays .wrap { position: relative; z-index: 2; }

/* --- the year river --- */

.river-frame { margin-top: clamp(1rem, 3vh, 2rem); }
.river {
  --yrw: clamp(10rem, 17vw, 14rem);
  position: relative; height: clamp(9.5rem, 19vw, 14rem);
  overflow: hidden; cursor: grab; touch-action: pan-y;
  border-top: 2px solid rgba(246,244,241,.5);
  border-bottom: 1px solid var(--dark-line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.river.dragging { cursor: grabbing; }
.river-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.yr {
  flex: none; width: var(--yrw); position: relative;
  display: grid; align-content: center; justify-items: center; row-gap: .5rem;
  padding-bottom: 1.6rem;
}
.yr::after {                      /* quarter ticks between years */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--dark-line) 0 1px, transparent 1px calc(var(--yrw) / 4)) bottom / 100% 8px no-repeat,
    linear-gradient(rgba(246,244,241,.45), rgba(246,244,241,.45)) left bottom / 1px 14px no-repeat;
}
.yr .n {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(3.1rem, 7.2vw, 5.8rem); line-height: 1;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  color: rgba(246,244,241,.26);
  transition: color .25s ease;
}
.yr .tag {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .2em;
  color: transparent; text-transform: uppercase; white-space: nowrap;
  transition: color .25s ease;
}
.yr.mile .n { color: color-mix(in srgb, var(--umber-2) 55%, rgba(246,244,241,.2)); }
.yr.mile .tag { color: color-mix(in srgb, var(--umber-2) 45%, transparent); }
.yr.active .n { color: var(--bone); }
.yr.mile.active .n { color: var(--umber-2); }
.yr.active .tag { color: var(--dark-dim); }
.yr.mile.active .tag { color: var(--lime); }
.river-center {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(rgba(246,244,241,.55), rgba(246,244,241,.08));
  pointer-events: none;
}
.river-center::before {
  content: ''; position: absolute; top: 0; left: -3px; width: 7px; height: 14px;
  background: var(--lime);
}
.river-caption { color: var(--dark-faint); }
.river:focus-visible { outline-offset: -2px; }

/* --- moment cards --- */

.moments {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--dark-line); border: 1px solid var(--dark-line);
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
}
.moment {
  background: var(--charcoal); padding: clamp(1.1rem, 2vw, 1.7rem);
  position: relative;
}
.moment > * { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.moment::before {                 /* score rule that lights when live */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--dark-line);
  transition: background .3s ease;
}
.moments.gated .moment:not(.on) > * { opacity: .14; transform: translateY(10px); }
.moment.live::before { background: var(--lime); }
.m-yr {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1;
  letter-spacing: -.03em; color: var(--umber-2); font-variant-numeric: tabular-nums;
}
.moment h3 { margin-top: .7rem; font-weight: 600; font-size: 1.32rem; letter-spacing: .02em; }
.moment p:last-child { margin-top: .55rem; font-size: .87rem; line-height: 1.6; color: var(--dark-dim); }
@media (max-width: 1020px) { .moments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .moments { grid-template-columns: 1fr; } }

/* --- box score (fine print) --- */

.boxscore { margin-top: clamp(3rem, 8vh, 5rem); }
.box-head {
  display: flex; align-items: center; gap: 1.1rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .24em;
  color: var(--dark-dim); text-transform: uppercase;
}
.box-head::after { content: ''; flex: 1; height: 5px; --rule-c: rgba(246,244,241,.5); --rule-f: var(--dark-line); }
.boxscore ol { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.boxscore li {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: clamp(1rem, 3vw, 2.6rem);
  padding: 1rem 0; border-bottom: 1px solid var(--dark-line);
}
.boxscore li:last-child { border-bottom: 0; }
.boxscore .yr {
  font-family: var(--font-mono); font-weight: 500; font-size: 1.05rem;
  letter-spacing: .02em; color: var(--umber-2); font-variant-numeric: tabular-nums;
  display: block; width: auto; padding: 0; align-self: start; padding-top: .15em;
}
.boxscore .yr::after { content: none; }
.boxscore .ev { font-size: .92rem; color: var(--dark-dim); max-width: 76ch; }
.boxscore .ev .data { font-family: var(--font-mono); font-size: .86em; color: var(--umber-2); letter-spacing: .02em; }
@media (max-width: 560px) { .boxscore li { grid-template-columns: 1fr; gap: .3rem; } }

.facility {
  margin-top: clamp(2.5rem, 6vh, 4rem); padding-top: 1.2rem;
  border-top: 1px solid var(--dark-line);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; line-height: 1.9;
  color: var(--dark-faint); text-transform: uppercase;
}

/* ============ 05 · related ============ */

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ash); border: 1px solid var(--ash); }
.rel-card {
  background: var(--bone); text-decoration: none;
  padding: clamp(1.2rem, 2vw, 1.7rem);
  min-height: 200px;
  display: flex; flex-direction: column; gap: .5rem;
  position: relative; overflow: hidden;
  transition: background .25s ease;
}
.rel-card::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.rel-card:hover { background: var(--bone-2); }
.rel-card:hover::after { transform: scaleX(1); }
.rel-loc { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; color: var(--ink-dim); text-transform: uppercase; }
.rel-name { margin-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 1.95rem); text-transform: uppercase; letter-spacing: .015em; line-height: .98; }
.rel-note { font-size: .82rem; color: var(--umber); }
.rel-cta { margin-top: auto; padding-top: 1.6rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; color: var(--ink-dim); display: flex; align-items: center; gap: .5em; }
.rel-cta::after { content: '→'; transition: transform .25s ease; }
.rel-card:hover .rel-cta::after { transform: translateX(4px); }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } .rel-card { min-height: 0; } }

/* ============ footer ============ */

.footer { border-top: 1px solid var(--ash); padding: 2.4rem 0 3rem; }
.footer-stripe { max-width: 260px; }
.footer-stripe .stripe { height: 12px; gap: 1.5px; }
.footer-cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 1.6rem; }
.footer-brand p:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.footer-sub { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; color: var(--ink-dim); margin-top: .5rem; text-transform: uppercase; }
.footer-links { display: grid; gap: .65rem; justify-items: end; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { text-decoration: none; color: var(--ink-dim); border-bottom: 1px solid var(--ash); padding-bottom: .15em; transition: color .18s ease, border-color .18s ease; }
.footer-links a:hover { color: var(--graphite); border-color: var(--graphite); }
@media (max-width: 640px) { .footer-links { justify-items: start; } }

/* ============ guide ============ */

.guide-main { padding-top: 7.5rem; }
.guide-main .shead h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.guide-art { max-width: 72ch; }
.guide-art h3 { font-weight: 600; font-size: 1.5rem; margin: 2.4rem 0 .7rem; letter-spacing: .02em; }
.guide-art p { margin: .8rem 0; color: var(--body-ink); }
.guide-art ul { margin: .8rem 0; padding-left: 1.2rem; color: var(--body-ink); }
.guide-art li { margin: .45rem 0; }
.guide-art code { font-family: var(--font-mono); font-size: .84em; background: var(--bone-2); border: 1px solid var(--ash); padding: .08em .35em; }
.guide-art .lbl { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; color: var(--umber); text-transform: uppercase; display: block; margin-top: 2.6rem; }
.guide-hr { border: 0; height: 5px; margin: 2.6rem 0; background:
  linear-gradient(var(--graphite), var(--graphite)) top / 100% 2px no-repeat,
  linear-gradient(var(--ash), var(--ash)) bottom / 100% 1px no-repeat; }

/* ============ motion ============ */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .reveal .stripe i, .reveal.in .stripe i { transform: none; transition: none; }
  .is-playing .live-dot { animation: none; }
  .moment > *, .moments.gated .moment:not(.on) > * { opacity: 1; transform: none; transition: none; }
  .rel-card::after, .rel-cta::after, .use-card, .masthead-nav a, .footer-links a { transition: none; }
}
