/* ==========================================================================
   GCD NETWORK — "MAIN STREET BROADCAST"
   County-fair Americana × broadcast studio. Cream paper · old-glory navy ·
   old-glory red · stars & bunting hardware. Letterpress energy: things stamp.
   ========================================================================== */

:root {
  --cream: #f4efe4;
  --cream-2: #ece5d4;
  --navy: #1f2a5a;
  --navy-deep: #16204a;
  --navy-70: rgba(31, 42, 90, 0.72);
  --navy-45: rgba(31, 42, 90, 0.45);
  --navy-15: rgba(31, 42, 90, 0.16);
  --red: #bf2f38;
  --red-dark: #9e2530;

  --font-display: "Anton", "Arial Black", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.16rem + 0.5vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem);
  --step-3: clamp(2rem, 1.7rem + 1.3vw, 2.9rem);
  --step-4: clamp(2.5rem, 2rem + 2.2vw, 4rem);
  --step-display: clamp(3.2rem, 1.2rem + 9vw, 9.6rem);

  --pad-section: clamp(5rem, 12vh, 9.5rem);
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --container: 1200px;
  --rule: 3px solid var(--navy);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--cream); }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }

/* ---- type ---- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }

.red { color: var(--red); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--navy-70); max-width: 34em; }
p { color: var(--navy-70); max-width: 64ch; }

.kicker {
  font-family: var(--font-body); font-weight: 800; font-size: 0.74rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--red);
}
.kicker .star { color: var(--navy); }

.section { padding-block: var(--pad-section); position: relative; }

/* star divider */
.stars-divider { display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--red); font-size: 1.05rem; letter-spacing: 0.6em; padding-left: 0.6em; }
.stars-divider::before, .stars-divider::after { content: ""; flex: 1; max-width: 12rem; border-top: var(--rule); }

/* paper grain */
.grain {
  position: fixed; inset: -50%; z-index: 2000; pointer-events: none;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* ---- bunting (top of page + section caps) ---- */

.bunting { position: relative; height: 34px; background: var(--navy); overflow: visible; z-index: 5; }
.bunting::before { content: "★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★";
  position: absolute; inset: 0; color: rgba(244, 239, 228, 0.9); font-size: 13px; line-height: 34px;
  text-align: center; letter-spacing: 1.1em; white-space: nowrap; overflow: hidden; }
.bunting::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
  background:
    radial-gradient(circle at 25% -2px, var(--red) 0 16px, transparent 17px),
    radial-gradient(circle at 75% -2px, var(--navy) 0 16px, transparent 17px);
  background-size: 72px 18px; background-repeat: repeat-x; }

/* stripes band */
.stripes { height: 16px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--cream) 14px 28px, var(--navy) 28px 42px, var(--cream) 42px 56px); }

/* ---- buttons: stamped plates ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  font-family: var(--font-body); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1.05em 2.2em;
  border: 3px solid var(--navy);
  color: var(--navy); background: var(--cream);
  box-shadow: 5px 5px 0 var(--navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--navy); }
.btn--red { background: var(--red); border-color: var(--navy); color: var(--cream); }
.btn--red:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: var(--cream); box-shadow: 5px 5px 0 var(--red); }
.btn--navy:hover { box-shadow: 2px 2px 0 var(--red); }

/* ---- header ---- */

.site-header { position: sticky; top: 0; z-index: 400; background: rgba(244, 239, 228, 0.95);
  backdrop-filter: blur(8px); border-bottom: var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.9rem; }
.wordmark { font-family: var(--font-display); font-size: 1.5rem; line-height: 0.9;
  text-transform: uppercase; letter-spacing: 0.02em; }
.wordmark .net { color: var(--red); }
.wordmark small { display: block; font-family: var(--font-body); font-weight: 800; font-size: 0.5rem;
  letter-spacing: 0.34em; color: var(--navy-45); margin-top: 0.2rem; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { font-family: var(--font-body); font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy-70);
  border-bottom: 3px solid transparent; padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.nav-links a:hover { color: var(--red); border-color: var(--red); }
.nav .btn { padding: 0.7em 1.5em; font-size: 0.7rem; }
.nav-toggle { display: none; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.mobile-menu { display: none; }
.mobile-menu.active { display: flex; flex-direction: column; border-top: 2px solid var(--navy-15);
  padding: 0.4rem var(--pad-x) 1.4rem; background: var(--cream); }
.mobile-menu a { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85em 0; color: var(--navy-70); border-bottom: 2px solid var(--navy-15); }
.mobile-menu a:last-child { color: var(--red); border-bottom: 0; }

/* ---- hero: the playbill ---- */

.hero { position: relative; min-height: 92svh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding: clamp(3rem, 8vh, 5rem) var(--pad-x); text-align: center; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(244, 239, 228, 0.55), rgba(244, 239, 228, 0.32) 45%, rgba(244, 239, 228, 0.9)); }

.playbill { position: relative; z-index: 1; background: var(--cream); border: var(--rule);
  box-shadow: 12px 12px 0 var(--navy); padding: clamp(2rem, 5vw, 3.6rem) clamp(1.6rem, 5vw, 4rem);
  max-width: 56rem; width: 100%; }
.playbill::before { content: ""; position: absolute; inset: 7px; border: 2px solid var(--red); pointer-events: none; }

.onair { display: inline-flex; align-items: center; gap: 0.7em; background: var(--navy);
  border: 3px solid var(--navy); color: var(--cream); font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: 0.28em; text-transform: uppercase; padding: 0.45em 1.2em 0.4em 1.35em;
  margin-bottom: 1.6rem; }
.onair i { width: 11px; height: 11px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 10px rgba(191, 47, 56, 0.9); animation: onair-blink 2.2s infinite; }
@keyframes onair-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 { font-size: var(--step-display); }
.hero h1 .red { display: block; }
.hero .lede { margin: 1.6rem auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.2rem; }
.playbill .kicker { display: block; margin-bottom: 1.2rem; }
.playbill .fineline { margin-top: 2rem; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--navy-45); }

/* ---- marquee ---- */

.marquee { overflow: hidden; white-space: nowrap; background: var(--red); color: var(--cream);
  border-block: var(--rule); padding: 0.55rem 0; }
.marquee-track { display: inline-flex; animation: marquee 26s linear infinite; }
.marquee-track span { display: inline-block; padding-right: 0.6em; font-family: var(--font-display);
  font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- story band ---- */

.story-band { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.story-band .kicker { color: var(--cream); opacity: 0.85; }
.story-band .kicker .star { color: var(--red); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.story-band h2 { font-size: var(--step-4); margin: 1rem 0 1.4rem; }
.story-band h2 .red { color: #ff8f8f; }
.story-band p { color: rgba(244, 239, 228, 0.78); }
.story-band .poster-frame { border: 3px solid var(--cream); box-shadow: 10px 10px 0 var(--red); }
.story-milestones { list-style: none; margin-top: 1.6rem; border-top: 2px solid rgba(244, 239, 228, 0.25); }
.story-milestones li { display: flex; gap: 1rem; align-items: baseline; padding: 0.8em 0.1em;
  border-bottom: 2px solid rgba(244, 239, 228, 0.25); color: rgba(244, 239, 228, 0.85); font-size: var(--step--1); }
.story-milestones .yr { font-family: var(--font-display); color: var(--red); font-size: 1rem; flex: none; width: 5.2em; }
.story-milestones li b { color: var(--cream); }

/* ---- offers ---- */

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.3rem, 2.6vw, 2.2rem);
  align-items: stretch; }
.offer-card { border: var(--rule); background: #fff; box-shadow: 8px 8px 0 var(--navy-15);
  display: flex; flex-direction: column; }
.offer-card.featured { box-shadow: 8px 8px 0 var(--red); }
.offer-card img { border-bottom: var(--rule); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.offer-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.offer-body .kicker { margin-bottom: 0.5rem; }
.offer-body p { font-size: var(--step--1); }
.offer-body ul { list-style: none; margin-top: 1rem; border-top: 2px solid var(--navy-15); flex: 1; }
.offer-body li { padding: 0.6em 0.1em; border-bottom: 2px solid var(--navy-15); font-size: var(--step--1);
  color: var(--navy-70); }
.offer-body li::before { content: "★ "; color: var(--red); font-size: 0.8em; }
.offer-body .btn { margin-top: 1.3rem; width: 100%; }

/* ---- how the show works ---- */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--rule); background: #fff; }
.step-card { padding: clamp(1.7rem, 3.4vw, 2.6rem); text-align: center; }
.step-card + .step-card { border-left: var(--rule); }
.step-card .no { font-family: var(--font-display); font-size: var(--step-4); color: var(--red); line-height: 1; }
.step-card .no small { display: block; font-family: var(--font-body); font-weight: 800; font-size: 0.62rem;
  letter-spacing: 0.3em; color: var(--navy-45); margin-top: 0.4rem; }
.step-card h3 { margin: 1rem 0 0.6rem; }
.step-card p { font-size: var(--step--1); margin-inline: auto; }

/* ---- plans band ---- */

.plans-band { background: var(--cream-2); border-block: var(--rule); }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); max-width: 56rem; margin-inline: auto; }
.plan-card { border: var(--rule); background: #fff; padding: clamp(1.8rem, 3.6vw, 2.6rem);
  text-align: center; box-shadow: 8px 8px 0 var(--navy-15); }
.plan-card.featured { background: var(--navy); color: var(--cream); box-shadow: 8px 8px 0 var(--red); }
.plan-card .kicker { display: block; margin-bottom: 0.8rem; }
.plan-card.featured p { color: rgba(244, 239, 228, 0.78); }
.plan-card h3 { font-size: var(--step-3); }
.plan-card p { font-size: var(--step--1); margin: 0.8rem auto 0; }
.plan-card .btn { margin-top: 1.5rem; }

/* ---- family / cross-brand ---- */

.family-band { text-align: center; }
.family-band .plate { max-width: 46rem; margin-inline: auto; border: var(--rule); background: #fff;
  box-shadow: 10px 10px 0 var(--navy-15); padding: clamp(1.8rem, 4vw, 3rem); }
.family-band p { margin-inline: auto; }

/* ---- footer ---- */

.site-footer { background: var(--navy-deep); color: var(--cream); text-align: center;
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x) 3rem; }
.site-footer .wordmark { color: var(--cream); font-size: 2rem; }
.site-footer .wordmark small { color: rgba(244, 239, 228, 0.5); }
.site-footer .stars-divider { color: var(--red); margin: 1.6rem 0; }
.site-footer .stars-divider::before, .site-footer .stars-divider::after { border-color: rgba(244, 239, 228, 0.3); }
.site-footer .copyright { font-weight: 700; font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(244, 239, 228, 0.5); }

/* ---- reveals (IntersectionObserver adds .in) ---- */

[data-stamp] { opacity: 0; transform: translateY(16px) scale(0.985); }
[data-stamp].in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); }

/* ---- responsive ---- */

@media (max-width: 960px) {
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: block; }
  .story-grid { grid-template-columns: 1fr; }
  .offer-grid, .steps-grid, .plans-grid { grid-template-columns: 1fr; }
  .step-card + .step-card { border-left: 0; border-top: var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .onair i { animation: none; }
  .marquee-track { animation: none; }
  [data-stamp] { opacity: 1; transform: none; }
}

/* ---- playbill rows (show-bill hierarchy) ---- */
.bill-row--presents { display: flex; align-items: center; justify-content: center; gap: 0.9em;
  flex-wrap: wrap; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--navy-70); border-block: 2px solid var(--navy); padding: 0.7em 0; margin-bottom: 1.6rem; }
.bill-row--presents .star { color: var(--red); letter-spacing: 0; }
.bill-row--mission { border-block: 2px solid var(--navy-15); padding: 1rem 0; margin-top: 1.6rem; }
.bill-row--mission p { font-size: var(--step-1); line-height: 1.45; color: var(--navy-70); max-width: none; }
.bill-row--mission strong { color: var(--red); font-weight: 800; }
.playbill .lede { margin-top: 1.4rem; }
.playbill .onair { position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%); margin-bottom: 0; z-index: 2; }
.playbill { margin-top: 1.4rem; }

/* ---- creed planks ---- */
.creed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.6vw, 2rem);
  margin-top: clamp(2.4rem, 5vh, 3.6rem); text-align: center; }
.creed-plank { border: var(--rule); background: #fff; padding: 1.8rem 1.5rem; box-shadow: 6px 6px 0 var(--navy-15); }
.creed-plank .no { display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--cream); background: var(--red);
  border: 3px solid var(--navy); width: 2.4em; height: 2.4em; margin-bottom: 0.9rem; }
.creed-plank h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.creed-plank p { font-size: var(--step--1); margin-inline: auto; }
@media (max-width: 960px) { .creed-grid { grid-template-columns: 1fr; } }

/* ---- reach band ---- */
.reach-band { background: var(--red); color: var(--cream); border-block: var(--rule); }
.reach-band h2 { color: var(--cream); }
.reach-band .gold { color: #f7d087; }
.reach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.6vw, 2rem);
  margin-top: clamp(2.4rem, 5vh, 3.6rem); }
.reach-cell { border: 3px solid var(--cream); padding: 1.7rem 1.2rem; background: rgba(31, 42, 90, 0.16); }
.reach-num { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; }
.reach-label { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244, 239, 228, 0.8); margin-top: 0.7rem; }
.reach-plate { max-width: 46rem; margin: clamp(2.4rem, 5vh, 3.6rem) auto 0; border: 3px solid var(--cream);
  background: var(--navy); padding: clamp(1.6rem, 3.6vw, 2.6rem); box-shadow: 8px 8px 0 rgba(22, 32, 74, 0.45); }
.reach-plate p { color: rgba(244, 239, 228, 0.85); margin-inline: auto; }
.reach-plate strong { color: var(--cream); }
@media (max-width: 960px) { .reach-grid { grid-template-columns: 1fr; } }
