/* 248 Anthems — Vaquero · "The Quiet Ranch"
 * Negative space as luxury: the page says less, slower, larger.
 * Warm bone tuned toward ranch light, post-oak bark ink, warm ash hairlines.
 * Prairie gold is a whisper (three small marks on the whole site). Lime stays
 * the system signal — the loudest element on the page is the play button. */

/* ---------- fonts (relative to css/) ---------- */
@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;
}

/* ---------- tokens ---------- */
:root {
  --bone: #F7F4EE;          /* warm bone — ranch light */
  --bone-2: #F1EDE4;        /* quiet tint band */
  --bark: #46392C;          /* post-oak bark — support ink */
  --ink: #211A13;           /* bark-black headlines */
  --graphite: #2C251D;      /* body ink, warm-tuned graphite */
  --ash: #DFD9CD;           /* warm ash hairlines */
  --gold: #8F6A1B;          /* prairie gold — whisper only */
  --lime: #CCFF00;          /* system signal */
  --charcoal: #12100D;      /* dark panels, warm-tuned */
  --ink-dim: rgba(44, 37, 29, .66);
  --ink-faint: rgba(44, 37, 29, .42);
  --hair: var(--ash);
  --hair-dark: rgba(247, 244, 238, .16);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Inter Variable', 'Helvetica Neue', Arial, sans-serif;
  --monoface: 'Plex Mono', ui-monospace, 'SF Mono', monospace;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --maxw: 1240px;
  /* the 128 rhythm — sections breathe in eight-rem strides */
  --s128: clamp(5.5rem, 16vh, 8rem);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--text);
  font-weight: 420;
  background: var(--bone);
  color: var(--graphite);
  font-size: clamp(.98rem, .93rem + .25vw, 1.08rem);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--bark); color: var(--bone); }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--monoface); font-weight: 500; }
.body-lg {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.72; max-width: 52ch; font-weight: 430;
}

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

/* ---------- masthead ---------- */
.masthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem var(--gutter) 1.4rem;
  border-bottom: 1px solid var(--hair);
}
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: 1.18rem;
  letter-spacing: .08em; text-decoration: none; white-space: nowrap; color: inherit;
}
.wm-slash { opacity: .45; }
.masthead-nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); flex-wrap: wrap; }
.masthead-nav a {
  font-size: .76rem; font-weight: 560; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-dim);
  border-bottom: 1px solid transparent; padding-bottom: .2em;
  transition: color .18s ease, border-color .18s ease;
}
.masthead-nav a:hover { color: var(--ink); border-color: var(--ink); }
.masthead-meta { font-size: .64rem; letter-spacing: .16em; color: var(--ink-faint); }
@media (max-width: 860px) { .masthead-meta { display: none; } }

/* ---------- hero — maximum display, minimum words ---------- */
.hero { padding: clamp(6rem, 18vh, 11rem) 0 0; }
.hero-kicker {
  display: flex; align-items: center; gap: .8em;
  font-size: .72rem; letter-spacing: .24em; color: var(--ink-dim);
  margin-bottom: clamp(2.2rem, 6vh, 4rem);
}
.gold-tick {
  width: .62em; height: .62em; background: var(--gold); flex: none;
}
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(5.2rem, 20vw, 17rem);
  line-height: .88; letter-spacing: .012em;
  color: var(--ink); text-transform: uppercase;
}
.hero-line {
  margin-top: clamp(2.4rem, 7vh, 4.5rem);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.72; max-width: 38ch; color: var(--graphite);
}
.hero-foot {
  margin-top: clamp(4rem, 14vh, 8rem);
  padding: 1.3rem 0 var(--s128);
  border-top: 1px solid var(--hair);
  display: grid; gap: 1.5rem;
}
.hero-data { font-size: .72rem; letter-spacing: .2em; color: var(--ink-dim); }

/* ---------- ratio stripe (24 quiet + 8 signal) ---------- */
.stripe { display: flex; gap: 3px; height: 11px; }
.stripe i { flex: 1; background: var(--bark); }
.stripe i.s8 { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(18, 16, 13, .35); }
.stripe-quiet i { opacity: .22; }
.stripe-quiet i.s8 { opacity: 1; }

/* ---------- quiet interstitial ---------- */
.quiet { padding: clamp(7rem, 26vh, 13rem) 0; }
.quiet-line {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.5vw, 6.4rem); line-height: .95;
  letter-spacing: .012em; color: var(--ink);
}
.gold-period { color: var(--gold); }
.quiet-sub {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  font-family: var(--monoface); font-weight: 500;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- bands & section heads ---------- */
.band { padding: var(--s128) 0; border-top: 1px solid var(--hair); }
.band-tint { background: var(--bone-2); }
.band-dark {
  background: var(--charcoal); color: var(--bone);
  --hair: var(--hair-dark);
  --ink-dim: rgba(247, 244, 238, .64);
  --ink-faint: rgba(247, 244, 238, .4);
}
.band-dark ::selection { background: var(--bone); color: var(--charcoal); }
.band-dark .h2 { color: var(--bone); }

.sec-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: clamp(2.4rem, 7vh, 4rem); }
.sec-head.sub { margin-top: var(--s128); }
.sec-num { font-size: .86rem; letter-spacing: .1em; color: var(--ink-dim); }
.sec-rule { flex: 1; height: 1px; background: var(--hair); }
.sec-label { font-size: .68rem; letter-spacing: .24em; color: var(--ink-dim); text-align: right; }

.h2 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  line-height: .93; letter-spacing: .008em; color: var(--ink);
  max-width: 16ch;
}

/* ---------- 01 anthem ---------- */
.anthem-grid {
  display: grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
@media (max-width: 940px) { .anthem-grid { grid-template-columns: 1fr; } }
.anthem-copy .body-lg { margin-top: 2rem; color: rgba(247, 244, 238, .88); max-width: 40ch; }
.anthem-copy em { font-style: normal; border-bottom: 1px solid rgba(247, 244, 238, .4); }
.anthem-meta { margin-top: 2.4rem; font-size: .66rem; letter-spacing: .16em; line-height: 2.1; color: var(--ink-faint); }

/* player skin — quiet slab, loud play button */
#player { border: 1px solid var(--hair-dark); padding: clamp(1.3rem, 3vw, 2.2rem); }
#player .ap {
  --ap-accent: var(--lime);
  --ap-accent-fg: var(--charcoal);
  --ap-radius: 0; --ap-row-radius: 0;
  --ap-font: var(--text);
  --ap-line: rgba(247, 244, 238, .18);
  --ap-dim: rgba(247, 244, 238, .6);
}
#player .ap-kicker { font-family: var(--monoface); letter-spacing: .24em; }
#player .ap-title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); letter-spacing: .015em;
}
#player .ap-sub, #player .ap-time, #player .ap-row-num, #player .ap-row-meta,
#player .ap-panel-title, #player .ap-badge, #player .ap-status { font-family: var(--monoface); }
#player .ap-btn { border: 1px solid var(--ap-line); border-radius: 0; }
/* the one loud thing on the whole site — a solid lime slab, explicitly filled
 * (the base sheet's `.ap button { background: none }` outranks `.ap-play`) */
#player .ap-play {
  width: 76px; height: 76px; border-color: var(--lime);
  background: var(--lime); color: var(--charcoal);
}
#player .ap-play svg { width: 32px; height: 32px; }
@media (max-width: 560px) { #player .ap-play { width: 64px; height: 64px; } }
#player .ap-bar::before, #player .ap-bar-buffer, #player .ap-bar-fill { border-radius: 0; }
#player .ap-bar-knob { border-radius: 0; width: 3px; box-shadow: none; }
#player .ap-mini, #player .ap-filter { border-radius: 0; font-family: var(--monoface); font-size: .7rem; letter-spacing: .08em; }
#player .ap-eq i { background: var(--lime); }

.progress-stripe { margin-top: 1.1rem; }
.progress-stripe .stripe { height: 9px; }
.progress-stripe .stripe i { background: rgba(247, 244, 238, .12); box-shadow: none; }
.progress-stripe .stripe i.lit { background: var(--bone); opacity: .8; }
.progress-stripe .stripe i.s8.lit { background: var(--lime); opacity: 1; }
.stripe-note { margin-top: .7rem; font-size: .62rem; letter-spacing: .14em; color: var(--ink-faint); }

/* ---------- 02 system ---------- */
.numbers-strip {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hair); border-right: 0;
  margin: clamp(2.6rem, 7vh, 4.2rem) 0 0;
}
.numbers-strip li {
  border-right: 1px solid var(--hair);
  padding: clamp(1.2rem, 2.8vw, 2.4rem);
  display: grid; gap: .6rem;
}
.numbers-strip strong {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1; color: var(--ink);
}
.numbers-strip span { font-size: .62rem; letter-spacing: .18em; color: var(--ink-dim); }
@media (max-width: 640px) {
  .numbers-strip { grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .numbers-strip li { border-bottom: 1px solid var(--hair); }
}

.method-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 4.5vw, 3.6rem);
  margin-top: clamp(3rem, 8vh, 5rem);
}
@media (max-width: 940px) { .method-grid { grid-template-columns: 1fr; max-width: 640px; } }
.method { border-top: 2px solid var(--bark); padding-top: 1.4rem; }
.method h3 { font-size: .72rem; letter-spacing: .18em; font-weight: 500; color: var(--ink); }
.method p { margin-top: 1rem; font-size: .96rem; color: var(--graphite); }
.fn {
  margin-top: 1.1rem; font-size: .6rem; line-height: 1.8; letter-spacing: .08em;
  color: var(--ink-faint); max-width: 72ch;
}

/* ---------- 03 use — hairline list, generous air ---------- */
.use-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.2rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.6rem, 7vh, 4.2rem);
}
.use {
  border-top: 1px solid var(--bark);
  padding-top: 1.3rem;
  display: grid; gap: .7rem; align-content: start;
}
.use-num { font-size: .7rem; letter-spacing: .14em; color: var(--ink-faint); }
.use h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: 1.45rem; letter-spacing: .02em; line-height: 1.02; color: var(--ink);
}
.use p { font-size: .93rem; color: var(--ink-dim); max-width: 30ch; }
@media (max-width: 940px) { .use-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .use-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- 04 the survey ---------- */
.survey-lead { margin-top: 2rem; }
.survey-fig { margin: clamp(3rem, 9vh, 5.5rem) 0 0; }
.survey-frame {
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: var(--bone);
}
.survey-drawing { overflow-x: auto; }
.survey-drawing svg { display: block; width: 100%; height: auto; }
/* the plat stays legible on small screens: minimum sheet width, sideways scroll */
@media (max-width: 760px) {
  .survey-drawing svg { min-width: 780px; }
}
.survey-caption {
  margin-top: 1rem; font-size: .62rem; letter-spacing: .14em; line-height: 1.9;
  color: var(--ink-faint); max-width: none;
}

/* svg internals — plat ink */
.svy-draw { fill: none; stroke: var(--bark); }
.svy-bound { stroke-width: 2; }
.svy-sec { stroke-width: 1; stroke-opacity: .42; }
.svy-cross { stroke: var(--bark); stroke-width: 1.1; stroke-opacity: .6; }
.svy-fence { stroke-width: 1; stroke-opacity: .65; stroke-dasharray: 7 5; }
.svy-fx { stroke: var(--bark); stroke-width: 1; stroke-opacity: .65; }
.svy-water { stroke-width: 1.3; stroke-opacity: .8; }
.svy-pond { fill: none; stroke: var(--bark); stroke-width: 1.2; stroke-opacity: .8; }
.svy-pond-lines { stroke: var(--bark); stroke-width: .7; stroke-opacity: .45; }
.svy-contour { stroke-width: .9; stroke-opacity: .32; }
.svy-stipple { fill: var(--bark); }
.svy-mon { fill: var(--bone); stroke: var(--bark); stroke-width: 1.2; }
.svy-label {
  font-family: var(--monoface); font-weight: 500; font-size: 11.5px;
  letter-spacing: 1.5px; fill: var(--graphite);
}
.svy-dim { fill: var(--ink-dim); }
.svy-small { font-size: 9.5px; letter-spacing: 1.1px; }
.svy-leader { stroke: var(--bark); stroke-opacity: .5; stroke-width: .8; fill: none; }
.svy-gold-dot { fill: var(--gold); }
.svy-seat-ring { stroke: var(--bark); fill: none; }
.svy-seat-dot { fill: var(--lime); stroke: var(--charcoal); stroke-width: 1; }
.svy-title-block rect { fill: var(--bone); stroke: var(--bark); stroke-opacity: .5; stroke-width: .9; }
.svy-hair { stroke: var(--bark); stroke-opacity: .3; stroke-width: .8; fill: none; }
.svy-scale-u { fill: var(--bark); opacity: .8; }
.svy-scale-u.s8 { fill: var(--lime); opacity: 1; stroke: var(--charcoal); stroke-width: .6; }

/* fade-in groups (stipples, labels, title block) — driven by scroll progress */
.svy-fade { opacity: 0; transition: opacity .9s ease; }
.svy-fade.on { opacity: 1; }

/* on-beat pulse: the land keeping time — section lines only, subtle */
.svy-secs.pulse path { animation: svy-beat .5s ease-out; }
@keyframes svy-beat {
  0% {
    stroke-opacity: calc(.42 + .3 * var(--svy-gain, 1));
    stroke-width: calc(1px + .7px * var(--svy-gain, 1));
  }
  100% { stroke-opacity: .42; stroke-width: 1px; }
}

/* seat ring breathes on the brand grid (2 beats = 1.071 s); audio drives the kick */
.svy-seat-ghost {
  transform-box: fill-box; transform-origin: center;
  animation: svy-breathe 1.0714s cubic-bezier(.3, .6, .4, 1) infinite;
}
@keyframes svy-breathe {
  0% { transform: scale(.72); opacity: .55; }
  100% { transform: scale(1.5); opacity: 0; }
}
.svy-seat.beat .svy-seat-ring-outer { animation: svy-seatbeat .5s ease-out; }
@keyframes svy-seatbeat {
  0% { stroke-width: calc(1.4px + 1.4px * var(--svy-gain, 1)); stroke-opacity: 1; }
  100% { stroke-width: 1.4px; stroke-opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .svy-secs.pulse path, .svy-seat-ghost, .svy-seat.beat .svy-seat-ring-outer { animation: none; }
  .svy-seat-ghost { opacity: 0; }
  .svy-fade { opacity: 1; transition: none; }
}

/* ---------- on the record ---------- */
.spec { margin: 0; border-top: 2px solid var(--bark); }
.spec-row {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 1.5rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--hair);
}
.spec-row dt { font-size: .68rem; letter-spacing: .18em; color: var(--ink-dim); padding-top: .3em; }
.spec-row dd { margin: 0; max-width: 62ch; }
@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr; gap: .4rem; }
}

/* ---------- 05 related ---------- */
.related-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  margin-top: clamp(2.6rem, 7vh, 4.2rem);
}
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; max-width: 480px; } }
.related-card a {
  display: grid; gap: 2.8rem; align-content: space-between;
  min-height: 12.5rem; padding: 1.5rem 1.5rem 1.3rem;
  border: 1px solid var(--hair); background: var(--bone);
  text-decoration: none;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.rc-loc { font-size: .62rem; letter-spacing: .18em; color: var(--ink-dim); }
.rc-name {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: .98; letter-spacing: .01em;
  color: var(--ink);
}
.rc-go { font-size: .64rem; letter-spacing: .18em; color: var(--ink-dim); justify-self: start; }
.related-card a:hover, .related-card a:focus-visible {
  background: var(--bark); border-color: var(--bark); color: var(--bone);
}
.related-card a:hover .rc-name, .related-card a:focus-visible .rc-name { color: var(--bone); }
.related-card a:hover .rc-loc, .related-card a:focus-visible .rc-loc { color: rgba(247, 244, 238, .65); }
.related-card a:hover .rc-go, .related-card a:focus-visible .rc-go { color: var(--lime); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--charcoal); color: var(--bone);
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(2.4rem, 6vh, 3.6rem);
  --ink-dim: rgba(247, 244, 238, .62);
  --ink-faint: rgba(247, 244, 238, .4);
}
.site-foot .stripe i { background: var(--bone); opacity: .2; }
.site-foot .stripe i.s8 { background: var(--lime); opacity: 1; box-shadow: none; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-line { margin-top: 1.1rem; font-size: .92rem; color: var(--ink-dim); line-height: 1.7; }
.foot-nav { display: grid; gap: .7rem; align-content: start; }
.foot-nav a {
  font-size: .82rem; text-decoration: none; color: var(--ink-dim);
  border-bottom: 1px solid transparent; justify-self: start; padding-bottom: .15em;
  transition: color .18s ease, border-color .18s ease;
}
.foot-nav a:hover { color: var(--bone); border-color: var(--bone); }
.foot-note { font-size: .6rem; letter-spacing: .14em; line-height: 2.1; color: var(--ink-faint); }

/* ---------- motion ---------- */
/* Reveals are transform-only: content is never opacity-hidden, so the page
 * always reads — with or without JS, mid-scroll, or in a full-page capture. */
.reveal { transform: translateY(16px); transition: transform .8s cubic-bezier(.22, .61, .36, 1); }
.reveal.in { transform: none; }

/* load-time intro for the hero — plays once, ends composed */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-kicker { animation: rise .8s cubic-bezier(.22, .61, .36, 1) .05s backwards; }
.hero-title  { animation: rise .9s cubic-bezier(.22, .61, .36, 1) .18s backwards; }
.hero-line   { animation: rise .9s cubic-bezier(.22, .61, .36, 1) .36s backwards; }
.hero-foot   { animation: rise .9s cubic-bezier(.22, .61, .36, 1) .5s backwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  .hero-kicker, .hero-title, .hero-line, .hero-foot { animation: none; }
}

/* ---------- guide page ---------- */
.guide-hero { padding: clamp(3.5rem, 9vh, 6rem) 0 0; }
.guide-hero .hero-title { font-size: clamp(3rem, 10vw, 8.5rem); }
.guide-body { padding: clamp(3rem, 8vh, 5rem) 0; }
.guide-sec { margin-bottom: var(--s128); }
.guide-sec .body-lg { margin-top: 1.4rem; max-width: 62ch; }
.guide-sec p + p { margin-top: 1rem; }
.guide-sec ul { margin: 1.2rem 0 0; padding-left: 1.2rem; max-width: 68ch; }
.guide-sec li { margin-bottom: .55rem; }
.guide-sec li::marker { color: var(--ink-faint); }
.pass { border-top: 1px solid var(--hair); padding: 1.2rem 0; }
.pass h3 { font-size: .72rem; letter-spacing: .18em; font-weight: 500; color: var(--ink); }
.pass p { margin-top: .6rem; max-width: 68ch; color: var(--ink-dim); font-size: .95rem; }
