:root {
  --ink: #f2f0e9;
  --muted: #b4b5b0;
  --line: #343735;
  --panel: #171a19;
  --panel-2: #1c2228;
  --accent: #e9c85c;
  --accent-ink: #191b19;
  --navy: #1a3a5c;
  --navy-bright: #2a5a8c;
  --navy-ink: #f2f0e9;
  --bg: #0e100f;
  --dim: #7a7d78;
  --max: 1120px;
  --tap: 2.875rem;
  --radius: 2px;
  --space-section: clamp(2.75rem, 6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 5.75rem;
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(26, 58, 92, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(233, 200, 92, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible,
button:focus-visible,
.social-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(233, 200, 92, 0.22);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

.site-header,
main,
.site-footer {
  width: min(calc(100% - 1.75rem), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  min-height: var(--tap);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.brand-text { font-size: 0.95rem; }
nav[aria-label="Primary"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
nav[aria-label="Primary"] a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
nav[aria-label="Primary"] a:hover,
.social-links a:hover,
.channel-nudge a:hover,
.soft-channel a:hover,
.tip-bridge a:hover { color: var(--accent); }

/* —— Hero —— */
.hero {
  display: grid;
  gap: 1.85rem;
  padding: 2.25rem 0 2.75rem;
  align-items: center;
}
.eyebrow,
.section-number,
.hero-badge {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.95rem;
}
.signal {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(233, 200, 92, 0.12);
  animation: pulse 2.2s ease-in-out infinite;
}
h1, h2, p, figure { margin-top: 0; }
h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(2.75rem, 12vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 800;
}
h1 em { color: var(--accent); font-style: normal; }
.lede {
  max-width: 30rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.hero-actions .button { width: 100%; }

/* Stacked Tip + Watch CTAs */
.button-hero-tip,
.button-hero-watch,
.button-tip-punch {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding-block: 0.7rem;
  min-height: 3.35rem;
  position: relative;
  padding-right: 2.4rem;
}
.button-hero-tip {
  min-height: 3.65rem;
  padding-block: 0.85rem;
  font-size: 0.95rem;
  box-shadow:
    0 0 0 1px rgba(233, 200, 92, 0.55),
    0 10px 28px -10px rgba(233, 200, 92, 0.55),
    0 0 36px -8px rgba(233, 200, 92, 0.35);
}
.button-hero-tip .button-label,
.button-hero-watch .button-label,
.button-tip-punch .button-label {
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}
.button-hero-tip .button-label { font-size: 1.05rem; font-weight: 800; }
.button-hero-tip .button-sub,
.button-hero-watch .button-sub,
.button-tip-punch .button-sub {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.button-hero-tip .button-sub { color: rgba(25, 27, 25, 0.72); }
.button-hero-watch .button-sub { color: rgba(242, 240, 233, 0.72); }
.button-tip-punch .button-sub { color: rgba(25, 27, 25, 0.7); }
.button-hero-tip .button-arrow,
.button-hero-watch .button-arrow,
.button-tip-punch .button-arrow {
  position: absolute;
  right: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.9;
}
@media (min-width: 420px) {
  .hero-actions .button:not(.button-hero-tip):not(.button-hero-watch) {
    width: auto;
    flex: 1 1 auto;
    min-width: 8.5rem;
  }
  .button-hero-tip,
  .button-hero-watch {
    width: 100%;
    flex: 1 1 100%;
  }
}
.channel-nudge {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 28rem;
}
.channel-nudge a,
.soft-channel a,
.tip-bridge a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  font-weight: 650;
}
.fine-print {
  color: var(--dim);
  font-size: 0.72rem;
  margin: 0.7rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: var(--tap);
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: var(--navy);
  color: var(--navy-ink);
  border-color: var(--navy-bright);
  box-shadow: 0 0 0 1px rgba(42, 90, 140, 0.35);
}
.button-primary:hover {
  background: var(--navy-bright);
  border-color: #3d73ad;
}
.button-gold {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.button-gold:hover { background: #f5d879; }
.button-quiet {
  background: transparent;
  color: var(--ink);
}
.button-quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.button-lg { min-height: 3.25rem; padding-inline: 1.4rem; font-size: 0.9rem; }
.button-watch-secondary {
  margin-top: 0.65rem !important;
  margin-left: 0;
}

/* Frank portrait */
.hero-portrait { margin: 0; }
.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow:
    0 24px 48px -28px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(233, 200, 92, 0.08);
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center top;
}
.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--muted);
  font-size: 0.6rem;
}
.hero-badge .dot { color: var(--accent); }

/* Sections */
.intro,
.cta-grid,
.merch-banner,
.tip-banner { border-top: 1px solid var(--line); }
.intro {
  display: grid;
  gap: 1.25rem;
  padding: var(--space-section) 0;
}
.section-number { margin: 0 0 0.85rem; }
h2 {
  font-size: clamp(1.75rem, 5.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin-bottom: 0.95rem;
  font-weight: 800;
}
h2 span { color: var(--muted); }
.intro p:not(.section-number),
.cta-card > p:not(.section-number):not(.soft-channel):not(.tip-bridge),
.merch-banner p:not(.section-number):not(.merch-friends),
.tip-banner p:not(.section-number) {
  max-width: 32rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.cta-grid {
  display: grid;
  gap: 0;
  padding: 0;
}
.cta-card {
  padding: var(--space-section) 0;
  border-bottom: 1px solid var(--line);
}
.cta-card:last-child { border-bottom: 0; }
.cta-card .button { margin-top: 1.35rem; }
.cta-watch { border-bottom: 1px solid var(--line); }
.soft-channel {
  margin: 0.95rem 0 0;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.4;
}
.tip-bridge {
  margin: 1.15rem 0 0;
  padding: 0.85rem 1rem;
  max-width: 28rem;
  border: 1px solid rgba(233, 200, 92, 0.28);
  background: rgba(233, 200, 92, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.social-links {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.social-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--tap);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}
.social-links a span:last-child { color: var(--accent); }

.merch-banner,
.tip-banner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: var(--space-section) 0;
}
.merch-banner h2,
.tip-banner h2 { margin-bottom: 0.65rem; }
.merch-friends {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.merch-banner .button,
.tip-banner .button { align-self: flex-start; }

.tip-banner {
  padding-bottom: calc(var(--space-section) + 0.25rem);
  background:
    linear-gradient(180deg, rgba(233, 200, 92, 0.05), transparent 55%);
}
.button-tip-punch {
  box-shadow:
    0 0 0 1px rgba(233, 200, 92, 0.5),
    0 12px 32px -12px rgba(233, 200, 92, 0.5);
  min-height: 3.65rem;
  padding-block: 0.85rem;
  padding-inline: 1.5rem 2.6rem;
}

.site-footer {
  display: grid;
  gap: 0.55rem;
  padding: 1.35rem 0 1.85rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.72rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-brand .brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.5rem;
}
.footer-tag {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 600;
}
.footer-note { color: var(--dim); }

/* Sticky mobile CTA — Tip weighted first */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1.5fr 1.15fr 1fr;
  gap: 0.4rem;
  padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 16, 15, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sticky-cta .button {
  min-height: 2.85rem;
  padding-inline: 0.45rem;
  font-size: 0.8rem;
}
.sticky-cta .button-gold {
  box-shadow:
    0 0 0 1px rgba(233, 200, 92, 0.55),
    0 6px 18px -8px rgba(233, 200, 92, 0.75);
  font-weight: 800;
}
.sticky-cta .button-primary {
  box-shadow: 0 0 0 1px rgba(42, 90, 140, 0.45), 0 6px 16px -8px rgba(26, 58, 92, 0.8);
}

@keyframes pulse {
  50% { opacity: 0.45; box-shadow: 0 0 0 8px rgba(233, 200, 92, 0); }
}

@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .site-header, main, .site-footer {
    width: min(calc(100% - 4rem), var(--max));
  }
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    gap: 2.75rem;
    min-height: 0;
    padding: 4rem 0 4.5rem;
  }
  .hero-actions { flex-wrap: wrap; }
  .button-hero-tip,
  .button-hero-watch {
    width: auto;
    flex: 1 1 100%;
    max-width: 22rem;
  }
  .hero-actions .button:not(.button-hero-tip):not(.button-hero-watch) {
    width: auto;
    flex: 0 1 auto;
  }
  .hero-frame { transform: rotate(0.8deg); }
  .intro {
    grid-template-columns: 0.55fr 1.45fr;
    gap: 2rem;
  }
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    padding: var(--space-section) 0;
  }
  .cta-card {
    padding: 0;
    border-bottom: 0;
  }
  .cta-watch {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding-right: 3rem;
  }
  .merch-banner,
  .tip-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
  }
  .merch-banner .button,
  .tip-banner .button { margin-bottom: 0.25rem; }
  .site-footer {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
  }
  .footer-tag { text-align: center; }
}

@media (min-width: 960px) {
  h1 { font-size: clamp(4.5rem, 7vw, 6.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .button:hover { transform: none; }
  .hero-frame { transform: none; }
}
