/* 248 Anthems — May River Golf Club at Palmetto Bluff · "The Walk"
 * Brand System v2: bone page, graphite ink, Barlow Condensed display,
 * Inter text, IBM Plex Mono data. Lime = the one system signal.
 *
 * ONE course support colour: tidewater, the May River at low water. The bone
 * is warmed toward oyster shell — Lowcountry light is warmer than the coastal
 * grey of the Monterey sites. Orange appears at most once.
 */

/* ---------- fonts ---------- */
@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 Var';
  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;
}

/* ---------- tokens ---------- */
:root {
  --bone: #F5F3EC;          /* oyster — warmer than the Monterey bone */
  --bone-hi: #FBFAF4;
  --graphite: #1E1E1E;
  --charcoal: #0D0D0D;
  --ash: #DAD6CB;
  --ink: #21211D;
  --ink-dim: #5A5A50;
  --lime: #CCFF00;
  --orange: #FF6A00;

  /* the single course support colour */
  --tide: #4E7570;          /* the May River at low water */
  --tide-deep: #2F4B48;
  --tide-pale: #A9C0BB;

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

  --maxw: 1440px;
  --gutter: clamp(1rem, 5vw, 4.5rem);
  --hairline: color-mix(in srgb, var(--graphite) 14%, transparent);
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  font-family: var(--font-text);
  font-variation-settings: 'wght' 420;
  background: var(--bone);
  color: var(--ink);
  font-size: clamp(0.98rem, 0.93rem + 0.25vw, 1.08rem);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; }
::selection { background: var(--lime); color: var(--graphite); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tide-deep); outline-offset: 3px; }
.anthems :focus-visible, .footer :focus-visible { outline-color: var(--lime); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: .005em; }
em { font-style: normal; border-bottom: 2px solid var(--lime); }
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lime); color: var(--graphite);
  padding: .8rem 1.2rem; font-family: var(--font-mono); text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: .75rem var(--gutter);
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: border-color .6s ease;
}
body.is-playing .masthead { border-bottom-color: color-mix(in srgb, var(--tide) 60%, transparent); }
.masthead-mark { display: inline-flex; align-items: baseline; gap: .45rem; text-decoration: none; font-family: var(--font-display); }
.mark-num { background: var(--graphite); color: var(--bone); font-weight: 700; font-size: 1.05rem; padding: .1em .3em .12em; letter-spacing: .02em; }
.mark-word { font-weight: 600; letter-spacing: .3em; font-size: .82rem; }
.masthead-nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); }
.masthead-nav a {
  text-decoration: none; font-size: .84rem; font-variation-settings: 'wght' 560;
  color: var(--ink-dim); padding-bottom: .15em;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.masthead-nav a:hover, .masthead-nav a[aria-current] { color: var(--ink); border-color: var(--lime); }
.masthead-meta { font-size: .62rem; color: var(--ink-dim); display: inline-flex; align-items: center; gap: .55em; }
.key-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ash); transition: background .6s ease; }
body.is-playing .key-dot { background: var(--lime); animation: dot-beat 1.071s ease-in-out infinite; }
@keyframes dot-beat { 0%, 100% { transform: scale(1); } 28% { transform: scale(1.45); } }
@media (max-width: 900px) { .masthead-meta { display: none; } }

/* ---------- ratio stripe ---------- */
.stripe { display: flex; gap: 3px; height: 24px; }
.stripe span { flex: 1; background: color-mix(in srgb, var(--graphite) 14%, transparent); transition: background .3s ease; }
.stripe span.u-down { background: color-mix(in srgb, var(--lime) 38%, var(--bone)); }
.stripe span.lit { background: var(--graphite); }
.stripe span.u-down.lit { background: var(--lime); }
.stripe-dark span { background: color-mix(in srgb, var(--bone) 13%, transparent); }
.stripe-dark span.u-down { background: color-mix(in srgb, var(--lime) 22%, transparent); }
.stripe-dark span.lit { background: var(--bone); }
.stripe-dark span.u-down.lit { background: var(--lime); }
.stripe-caption { display: flex; justify-content: space-between; gap: 1rem; font-size: .6rem; color: var(--ink-dim); margin-top: .55rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(5rem, 10vh, 7.5rem) var(--gutter) clamp(3rem, 6vh, 5rem); max-width: var(--maxw); margin: 0 auto; }
.crumb { font-size: .64rem; color: var(--ink-dim); margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); border-bottom: 1px solid var(--lime); }
.crumb [aria-current] { color: var(--ink); }
.hero-kicker { font-size: .72rem; color: var(--ink-dim); display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.hero-kicker::before { content: ''; width: 44px; height: 2px; background: var(--tide); flex: none; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(4.2rem, 14vw, 11rem);
  line-height: .88; letter-spacing: .002em;
  color: var(--charcoal);
}
.hero-sub {
  margin-top: 1.8rem; max-width: 60ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6;
  color: #3D3D36;
}

/* the claim block: the caddie requirement, stated once, up front */
.claim {
  margin-top: clamp(2.4rem, 5.5vh, 3.6rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--ash); border: 1px solid var(--ash);
}
.claim > div { background: color-mix(in srgb, var(--tide) 8%, var(--bone)); padding: 1.3rem 1.4rem 1.5rem; }
.claim .mono { font-size: .58rem; color: var(--tide-deep); }
.claim b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; line-height: 1.02; color: var(--charcoal); margin-top: .35rem; }
.claim p { font-size: .88rem; color: #3D3D36; margin-top: .5rem; max-width: 34ch; }
.hero .stripe { margin-top: clamp(2.4rem, 5.5vh, 3.6rem); }
@media (max-width: 820px) { .claim { grid-template-columns: 1fr; } }

/* ---------- section scaffolding ---------- */
.anthems, .system, .uses, .walk, .bluff, .related { padding-block: clamp(4rem, 9vh, 7.5rem); }
.sec-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: clamp(1.8rem, 4vh, 2.8rem); }
.sec-no { font-size: .78rem; color: var(--ink-dim); }
.sec-rule { flex: 1; height: 1px; background: var(--hairline); }
.sec-kicker { font-size: .66rem; color: var(--ink-dim); }
.sec-intro h2 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); color: var(--charcoal); max-width: 18ch; }
.sec-sub { margin-top: 1.1rem; max-width: 68ch; color: #3D3D36; }

/* ---------- 01 · anthems ---------- */
.anthems { background: var(--charcoal); color: var(--bone); }
.anthems .sec-no, .anthems .sec-kicker { color: color-mix(in srgb, var(--bone) 55%, transparent); }
.anthems .sec-rule { background: color-mix(in srgb, var(--bone) 16%, transparent); }
.anthems .sec-intro h2 { color: var(--bone); }
.anthems .sec-sub { color: color-mix(in srgb, var(--bone) 72%, transparent); }
.pending {
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
  border-left: 3px solid var(--orange);
  background: color-mix(in srgb, var(--bone) 6%, transparent);
  padding: 1.2rem clamp(1.1rem, 2.6vw, 1.8rem);
  max-width: 78ch;
}
.pending-kicker { display: block; font-size: .6rem; color: var(--orange); margin-bottom: .55rem; }
.pending p { font-size: .95rem; color: color-mix(in srgb, var(--bone) 82%, transparent); }
.pending p + p { margin-top: .6rem; }
.player-shell {
  position: relative; margin-top: clamp(1.6rem, 4vh, 2.4rem);
  background: var(--graphite);
  border: 1px solid color-mix(in srgb, var(--bone) 13%, transparent);
  border-top: 3px solid color-mix(in srgb, var(--bone) 13%, transparent);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  transition: border-top-color .6s ease;
}
body.is-playing .player-shell { border-top-color: var(--lime); }
#spectrum { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
#player { position: relative; }
.anthems .ap { --ap-accent: var(--lime); --ap-accent-fg: var(--charcoal); --ap-font: var(--font-text); --ap-radius: 0; --ap-row-radius: 0; }
.anthems .ap-title { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .01em; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.anthems .ap-kicker, .anthems .ap-panel-title, .anthems .ap-time, .anthems .ap-row-num,
.anthems .ap-badge, .anthems .ap-lib-course, .anthems .ap-sub, .anthems .ap-status { font-family: var(--font-mono); }
.anthems .ap-sub, .anthems .ap-status { font-size: .72rem; letter-spacing: .06em; }
.rs-progress-wrap { position: relative; margin-top: 1.5rem; }
.rs-progress-wrap .stripe { height: 18px; }
.rs-progress-wrap .stripe-caption { color: color-mix(in srgb, var(--bone) 45%, transparent); }
.stage-note { margin-top: 1.1rem; font-size: .6rem; color: color-mix(in srgb, var(--bone) 42%, transparent); text-align: center; }

/* ---------- 02 · system ---------- */
.system-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.6rem, 4vw, 3.2rem); margin-top: clamp(1.8rem, 4vh, 2.6rem); align-items: start; }
.frames-ribbon { border: 1px solid var(--hairline); padding: 1.1rem; }
.frames { display: flex; gap: 3px; height: 30px; }
.frames.down { margin-top: 3px; }
.frames span { flex: 1; background: var(--graphite); opacity: .09; transition: opacity .18s ease; }
.frames.down span { background: var(--lime); opacity: .22; }
.frames span.lit { opacity: .92; }
.frames.down span.lit { opacity: 1; }
.frames-caption { display: flex; justify-content: space-between; font-size: .58rem; color: var(--ink-dim); margin-top: .6rem; }
.pulse-block { margin-top: 1px; background: var(--graphite); color: var(--bone); padding: clamp(1.2rem, 2.5vw, 2rem); display: grid; justify-items: center; gap: .6rem; }
.pulse-ring { width: min(210px, 58vw); height: auto; }
.pulse-ring .pr-outer { stroke: color-mix(in srgb, var(--bone) 30%, transparent); stroke-width: 1; }
.pulse-ring .pr-inner { stroke: var(--lime); stroke-width: 1.6; }
.pulse-ring .pr-num { font-family: var(--font-display); font-weight: 600; font-size: 34px; fill: var(--bone); }
.pulse-ring .pr-unit { font-family: var(--font-mono); font-size: 10px; letter-spacing: .35em; fill: color-mix(in srgb, var(--bone) 55%, transparent); }
#pulse-ticks line { stroke: color-mix(in srgb, var(--bone) 38%, transparent); stroke-width: 1; }
#pulse-ticks line.q { stroke: var(--lime); stroke-width: 1.6; }
.pulse-core { transform-origin: 100px 100px; }
body:not(.is-playing) .pulse-core { animation: breathe 1.071s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.05); } }
.pulse-caption { font-size: .56rem; color: color-mix(in srgb, var(--bone) 48%, transparent); text-align: center; }
.method-cards { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.method-card { background: var(--bone-hi); padding: clamp(1.3rem, 2.6vw, 2rem); }
.method-card h3 { font-size: 1.5rem; display: flex; gap: .8rem; align-items: baseline; margin-bottom: .7rem; }
.card-no { font-size: .62rem; color: var(--ink-dim); }
.method-card p { color: #3D3D36; font-size: .96rem; max-width: 62ch; }
.method-card.is-key { background: color-mix(in srgb, var(--tide) 9%, var(--bone-hi)); border-left: 3px solid var(--tide); }
.footnote { margin-top: 1rem; padding-top: .7rem; border-top: 1px dashed var(--hairline); font-size: .62rem !important; letter-spacing: .04em; line-height: 1.7; color: var(--ink-dim) !important; font-weight: 400; }

/* ---------- 03 · uses ---------- */
.uses { padding-top: 0; }
.uses-grid { list-style: none; padding: 0; margin: clamp(1.6rem, 4vh, 2.4rem) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.use { background: var(--bone); padding: clamp(1.2rem, 2.4vw, 1.8rem); }
.use-no { display: block; font-size: .6rem; color: var(--ink-dim); margin-bottom: 1.6rem; }
.use h3 { font-size: 1.45rem; margin-bottom: .45rem; }
.use p { font-size: .92rem; color: #3D3D36; max-width: 40ch; }

/* ═════════════ 04 · THE WALK — the signature ═════════════ */
.walk { border-top: 1px solid var(--hairline); }
.walk-frame {
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
  border: 1px solid var(--ash); background: var(--bone-hi);
  padding: clamp(.9rem, 2vw, 1.6rem);
}
#walk-svg { display: block; width: 100%; height: auto; }

.wk-river { fill: color-mix(in srgb, var(--tide) 26%, transparent); }
.wk-river-edge { fill: none; stroke: var(--tide); stroke-width: 1.1; opacity: .55; }
.wk-marsh line { stroke: var(--tide); stroke-width: 1; opacity: .38; stroke-linecap: round; }
.wk-oak circle { fill: var(--tide-deep); }
.wk-oak-trunk { stroke: var(--tide-deep); stroke-width: 1.4; opacity: .5; }

.wk-line { fill: none; stroke: var(--graphite); stroke-width: 2.6; stroke-linecap: round; }
.wk-node { fill: var(--bone-hi); stroke: var(--graphite); stroke-width: 2; }
.wk-node-label { font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; fill: var(--ink-dim); }

/* the constant: step ticks at a fixed interval, whatever the ground does */
.wk-step { stroke: var(--graphite); stroke-width: 1.6; opacity: .42; stroke-linecap: round; }
.wk-step.beat { stroke: var(--lime); opacity: 1; stroke-width: 2.6; }

.wk-caption { font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; fill: var(--ink-dim); }
.wk-caption-hi { fill: var(--graphite); }
.wk-caption-tide { fill: var(--tide-deep); }

.walk-frame .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.walk-frame.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.4, 0, .2, 1) .2s; }
.wk-step { opacity: 0; }
.walk-frame.in .wk-step { opacity: .42; transition: opacity .5s ease 1.6s; }
.walk-frame.in .wk-step.beat { opacity: 1; }

.walk-legend { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; margin-top: 1.1rem; font-size: .6rem; color: var(--ink-dim); }
.walk-legend span { display: inline-flex; align-items: center; gap: .5em; }
.walk-legend i { width: 16px; height: 10px; display: inline-block; }
.lg-river { background: color-mix(in srgb, var(--tide) 40%, var(--bone)); border: 1px solid var(--tide); }
.lg-walk { background: var(--graphite); height: 3px !important; }
.lg-step { background: var(--lime); width: 3px !important; height: 14px !important; }

/* the record */
.record { margin-top: clamp(2.6rem, 6vh, 4rem); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.rec-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); display: flex; gap: .9rem; align-items: baseline; margin-bottom: 1.4rem; }
.rec-no { font-size: .64rem; color: var(--ink-dim); }
.rec-grid { border-top: 1px solid var(--hairline); }
.rec-row { display: grid; grid-template-columns: minmax(170px, 250px) 1fr; gap: .8rem 2rem; padding: .8rem 0; border-bottom: 1px solid var(--hairline); }
.rec-row dt { font-size: .62rem; color: var(--ink-dim); padding-top: .3em; }
.rec-row dd { margin: 0; font-size: .95rem; }
.tees { width: 100%; border-collapse: collapse; margin-top: 1.6rem; }
.tees caption { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); padding-bottom: .6rem; }
.tees th, .tees td { text-align: left; padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--hairline); font-size: .92rem; }
.tees th { font-family: var(--font-mono); font-weight: 500; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.tees td:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; }
.tees tbody tr:first-child { background: color-mix(in srgb, var(--tide) 7%, transparent); }
.caveat { margin-top: 1.4rem; border-left: 3px solid var(--ash); padding: .1rem 0 .1rem 1.1rem; }
.caveat p { font-size: .82rem; color: var(--ink-dim); max-width: 74ch; }
.rec-side { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); align-self: start; }
.rec-note { background: var(--bone-hi); padding: 1.2rem 1.3rem 1.4rem; }
.rec-note h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; color: var(--charcoal); margin-bottom: .5rem; }
.rec-note p { font-size: .88rem; color: #3D3D36; }
.rec-note .mono { display: block; font-size: .58rem; color: var(--tide-deep); margin-bottom: .5rem; }

/* ---------- 05 · the bluff ---------- */
.bluff { background: color-mix(in srgb, var(--tide) 7%, var(--bone)); border-top: 1px solid var(--hairline); }
.bluff-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.6rem, 4vw, 3.4rem); margin-top: clamp(1.6rem, 4vh, 2.4rem); align-items: start; }
.bluff-figs { display: grid; gap: 1px; background: var(--ash); border: 1px solid var(--ash); }
.bfig { background: var(--bone-hi); padding: 1.1rem 1.3rem 1.3rem; }
.bfig .mono { display: block; font-size: .58rem; color: var(--ink-dim); }
.bfig b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--tide-deep); margin-top: .3rem; }
.bfig p { font-size: .86rem; color: #3D3D36; margin-top: .4rem; }
.bluff-body p { color: #3D3D36; max-width: 68ch; }
.bluff-body p + p { margin-top: .9rem; }
.timeline { list-style: none; padding: 0; margin-top: 1.6rem; border-top: 1px solid var(--hairline); }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--hairline); font-size: .92rem; color: #3D3D36; }
.timeline .yr { font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .06em; color: var(--tide-deep); padding-top: .2em; }
@media (max-width: 900px) { .bluff-grid { grid-template-columns: 1fr; } }

/* ---------- 06 · related ---------- */
.related { border-top: 1px solid var(--hairline); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: clamp(1.6rem, 4vh, 2.4rem); }
.rel-card { position: relative; background: var(--bone); text-decoration: none; padding: clamp(1.4rem, 2.8vw, 2.2rem); min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem; transition: background .25s ease; }
.rel-card:hover { background: var(--bone-hi); }
.rel-no { position: absolute; top: 1.2rem; left: 1.4rem; font-size: .6rem; color: var(--ink-dim); }
.rel-card h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--charcoal); }
.rel-card p { font-size: .62rem; color: var(--ink-dim); }
.rel-arrow { position: absolute; top: 1.05rem; right: 1.4rem; font-size: 1.1rem; color: var(--ink-dim); transition: transform .25s ease, color .25s ease; }
.rel-card:hover .rel-arrow { transform: translateX(5px); color: var(--ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: clamp(2.4rem, 5vh, 3.6rem); }
.footer .stripe { margin-bottom: 2.2rem; height: 16px; }
.footer-cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-end; }
.footer-line { margin-top: 1rem; font-variation-settings: 'wght' 560; }
.footer-sub { font-size: .6rem; color: var(--ink-dim); margin-top: .4rem; }
.footer-links { display: grid; gap: .8rem; font-size: .64rem; justify-items: end; }
.footer-links a { text-decoration: none; color: var(--ink-dim); border-bottom: 1px solid var(--hairline); padding-bottom: .15em; }
.footer-links a:hover { color: var(--ink); border-color: var(--lime); }
@media (max-width: 700px) { .footer-links { justify-items: start; } }

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

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .system-grid { grid-template-columns: 1fr; } .record { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .uses-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .related-grid { grid-template-columns: 1fr; }
  .rel-card { min-height: 0; padding-top: 2.6rem; }
  .rec-row { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 700px) {
  .walk-frame { overflow-x: auto; }
  #walk-svg { min-width: 820px; }
  .timeline li { grid-template-columns: 1fr; gap: .1rem; }
}
@media (max-width: 600px) { .uses-grid { grid-template-columns: 1fr; } .masthead-nav a { font-size: .78rem; } }
@media (max-width: 400px) { .mark-word { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .walk-frame .draw { stroke-dashoffset: 0; transition: none; }
  .wk-step { opacity: .42; transition: none; }
  .wk-step.beat { opacity: 1; }
  body:not(.is-playing) .pulse-core { animation: none; }
  body.is-playing .key-dot { animation: none; }
  .masthead, .player-shell, .key-dot, .rel-card, .rel-arrow, .stripe span, .reveal { transition: none; }
}
