/* craft30-b.css — late-session niche finish */

/* Ensure picture fills hero */
.hero-media picture {
  z-index: 0;
}

.hero-media .hero-wash {
  z-index: 2;
}

.hero-media .hero-seal {
  z-index: 3;
}

/* Subtle red accent line under gold section kickers */
.section-kicker .kicker-line {
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 10px rgba(191, 10, 48, 0.35);
}

/* Pillar ornament gold */
.pillar__ornament {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

/* Flow rank numbers */
.flow-rank {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Protocol cards equal height text */
.protocol-card p {
  flex: 1;
}

.protocol-card {
  display: flex;
  flex-direction: column;
}

/* Distinction title breathing */
.distinction .section-title {
  margin-bottom: 1.5rem;
}

/* Mobile menu brand */
.mobile-menu__brand {
  letter-spacing: 0.35em;
  color: var(--gold-bright);
}

/* Copyright row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: var(--max, 1120px);
  margin: 0 auto;
}

.footer-made {
  opacity: 0.65;
  font-size: 0.78rem;
}

/* Avoid text overflow on CA */
.ca-code {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Better hover for outline buttons on dark oil BGs */
.has-patriot-bg .btn-outline {
  background: rgba(5, 8, 10, 0.35);
  backdrop-filter: blur(4px);
}

.has-patriot-bg .btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
}

/* Reduce grain on mobile for perf */
@media (max-width: 640px) {
  .fx-grain {
    opacity: 0.025;
  }

  .fx-sheen {
    display: none;
  }
}

/* Final pass: consistent card radius + borders */
.has-patriot-bg .token-card,
.has-patriot-bg .countdown-shell,
.has-patriot-bg .flow-board,
.has-patriot-bg .cta__frame,
.has-patriot-bg .protocol-card,
.has-patriot-bg .phase,
.has-patriot-bg .stat,
.has-patriot-bg .story-panel {
  border-radius: 2px;
}

/* Nav wordmark tick gold */
.nav-wordmark__tick {
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

/* Smooth loader exit */
.loader.is-done {
  transition: opacity 0.5s ease, visibility 0.5s;
  opacity: 0;
}

/* Hero lead max width */
.hero-lead {
  max-width: 28rem;
}

/* Section title gold span glow */
.title-gold {
  text-shadow: 0 0 28px rgba(212, 175, 55, 0.22);
}

/* Prevent double scrollbar color fight — craft30 wins */
html {
  scrollbar-color: var(--gold) var(--navy-2);
}

/* Sticky visual consistency for chapter marks */
.chapter-mark span:first-child,
.chapter-mark span:last-child {
  font-family: var(--font-cond, "Barlow Condensed", sans-serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Oil barrel sections: slight warm tint on text blocks */
.token .token-card,
.window .countdown-shell {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(212, 175, 55, 0.12),
    0 0 0 1px rgba(191, 10, 48, 0.08);
}

/* Eagle sections: cool blue edge */
.protocol .protocol-card,
.cta .cta__frame {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(212, 175, 55, 0.12),
    0 0 0 1px rgba(0, 40, 104, 0.25);
}

/* Final 5-min niches */
.nav.is-scrolled {
  border-bottom-color: rgba(212, 175, 55, 0.22);
}

.marquee {
  letter-spacing: 0.12em;
}

.countdown-label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  opacity: 0.7;
}

.stat-label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.stat-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.pillar h3 {
  letter-spacing: 0.02em;
}

.pillar p {
  line-height: 1.6;
}

/* Focus-visible for copy when enabled later */
.btn-copy:not(:disabled):hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Smooth dock without fighting is-show transform */
.dock.is-show {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .phase-live,
  .live-dot,
  .cta__seal {
    animation: none !important;
  }

  .hero-title .line:last-child span {
    color: var(--gold-bright);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

/* Session close: page feels finished */
body.is-ready .hero-content {
  opacity: 1;
}

.btn span {
  display: inline-block;
  transition: transform 0.35s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
