/* ============================================
   SOAPBAR — style.css
   BitcoinTalk • Est. 2014 • Relaunched
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Bebas+Neue&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Core Colors */
  --bg:             #080808;
  --surface:        #101010;
  --surface-2:      #181616;
  --surface-3:      #201e1e;

  /* Brand Colors */
  --primary:        #c13b52;   /* soap rose — from the bar itself */
  --primary-dark:   #8c2a3b;
  --primary-light:  #d45a6e;
  --primary-glow:   rgba(193, 59, 82, 0.12);

  --accent:         #c8991a;   /* bitcoin gold — from the coin */
  --accent-light:   #e8b830;
  --accent-glow:    rgba(200, 153, 26, 0.1);

  /* Text */
  --text:           #ece6dc;
  --text-muted:     #a89f96;
  --text-dim:       #3d3a38;

  /* Borders */
  --border:         #252222;
  --border-light:   #333030;

  /* Typography */
  --font-display:   'Bebas Neue', sans-serif;
  --font-serif:     'Cormorant Garamond', serif;
  --font-mono:      'IBM Plex Mono', monospace;

  /* Layout */
  --nav-h:          72px;
  --section-pad:    110px;
  --container-max:  1200px;

  /* Motion */
  --ease:           0.3s ease;
  --ease-slow:      0.65s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain texture overlay — adds richness to dark bg */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.section      { padding: var(--section-pad) 0; }
.section--sm  { padding: 60px 0; }

.text-primary  { color: var(--primary); }
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--text-muted); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 4px 12px;
  margin-bottom: 20px;
}

.tag--gold {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible              { opacity: 1; transform: translateY(0); }
.reveal-delay-1              { transition-delay: 0.1s; }
.reveal-delay-2              { transition-delay: 0.2s; }
.reveal-delay-3              { transition-delay: 0.32s; }
.reveal-delay-4              { transition-delay: 0.44s; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(193,59,82,0.25); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-gold { background: var(--accent); color: #0a0a0a; }
.btn-gold:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,153,26,0.25); }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-light); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.navbar__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.navbar__logo img { height: 40px; width: auto; }

.navbar__logo-info { display: flex; flex-direction: column; line-height: 1.2; }

.navbar__logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.navbar__logo-ticker {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--ease);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--ease);
}

.navbar__links a:hover,
.navbar__links a.active { color: var(--text); }

.navbar__links a:hover::after,
.navbar__links a.active::after { transform: scaleX(1); }

.navbar__right { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-slow);
}

.mobile-nav.open { opacity: 1; pointer-events: all; }

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--ease);
  padding: 8px 24px;
}

.mobile-nav__link:hover { color: var(--primary); }

.mobile-nav__divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.mobile-nav__social {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.mobile-nav__social a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--ease);
}

.mobile-nav__social a:hover { color: var(--text); }

/* ============================================
   TICKER / MARQUEE BAR
   ============================================ */
.ticker {
  background: var(--primary);
  overflow: hidden;
  padding: 10px 0;
  border-bottom: 1px solid var(--primary-dark);
}

/* Inline variant — sits inside hero content, not fixed top */
.ticker--inline {
  max-width: 520px;
  border: 1px solid var(--primary-dark);
  margin-bottom: 36px;
  border-radius: 0;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}

.ticker__track:hover { animation-play-state: paused; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.ticker__item::after {
  content: '◆';
  color: rgba(255,255,255,0.3);
  font-size: 0.4rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('assets/banner.png') center top / cover no-repeat;
  filter: brightness(0.22) saturate(0.7);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8,8,8,0.97) 0%, rgba(8,8,8,0.55) 60%, rgba(8,8,8,0.82) 100%),
    radial-gradient(ellipse at 70% 50%, var(--accent-glow) 0%, transparent 60%);
}

.hero__fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 240px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

/* Bubble decorations */
.hero__bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  animation: bubble-float linear infinite;
}

.hero__bubble:nth-child(1) { width: 80px; height: 80px; left: 72%; top: 20%; animation-duration: 18s; animation-delay: 0s; }
.hero__bubble:nth-child(2) { width: 40px; height: 40px; left: 80%; top: 55%; animation-duration: 14s; animation-delay: -5s; }
.hero__bubble:nth-child(3) { width: 120px; height: 120px; left: 65%; top: 65%; animation-duration: 22s; animation-delay: -10s; }
.hero__bubble:nth-child(4) { width: 24px; height: 24px; left: 90%; top: 30%; animation-duration: 11s; animation-delay: -3s; }
.hero__bubble:nth-child(5) { width: 56px; height: 56px; left: 78%; top: 80%; animation-duration: 16s; animation-delay: -7s; }

@keyframes bubble-float {
  0%   { transform: translateY(40px) scale(0.9); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-200px) scale(1.05); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--primary);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 15vw, 14rem);
  letter-spacing: 0.02em;
  line-height: 0.88;
  color: var(--text);
  margin-bottom: 10px;
}

.hero__title span { color: var(--primary); display: block; }

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 44px;
  max-width: 520px;
}

.hero__quote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 48px;
  max-width: 460px;
}

.hero__quote p {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero__quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
}

/* CA Bar */
.ca-bar {
  display: flex;
  align-items: stretch;
  max-width: 500px;
  border: 1px solid var(--border-light);
  margin-bottom: 36px;
  overflow: hidden;
}

.ca-bar__label {
  background: var(--surface-2);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ca-bar__address {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  background: transparent;
}

.ca-bar__btn {
  background: var(--primary);
  border: none;
  padding: 12px 18px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ca-bar__btn:hover { background: var(--primary-dark); }
.ca-bar__btn svg { width: 12px; height: 12px; flex-shrink: 0; }

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--surface-2);
  border: 1px solid var(--primary);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 14px 22px;
  z-index: 8000;
  transform: translateY(60px);
  opacity: 0;
  transition: transform var(--ease), opacity var(--ease);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================
   ABOUT SECTION (index)
   ============================================ */
.about {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__overline {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.about__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 28px;
}

.about__body {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.95;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about__body strong { color: var(--text); font-weight: 500; }

.about__img-wrap {
  position: relative;
}

.about__img-frame {
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 1px solid var(--border);
  z-index: 0;
  pointer-events: none;
}

.about__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background var(--ease);
}

.stat-item:hover { background: var(--surface-2); }
.stat-item:last-child { border-right: none; }

.stat-item__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-item__value em { color: var(--primary); font-style: normal; }

.stat-item__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   THE DIRT SECTION (index)
   ============================================ */
.dirt {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.dirt__header {
  margin-bottom: 60px;
}

.dirt__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.dirt__heading em {
  font-style: normal;
  color: var(--primary);
}

.dirt__sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 500px;
}

.headlines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 60px;
}

.headline-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background var(--ease);
  position: relative;
  overflow: hidden;
}

.headline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.headline-card:hover { background: var(--surface-2); }
.headline-card:hover::before { transform: scaleX(1); }

.headline-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.headline-card__date {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.headline-card__source {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.headline-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 14px;
}

.headline-card__summary {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.dirt__foot {
  border: 1px solid var(--border);
  padding: 40px;
  background: var(--surface);
  text-align: center;
}

.dirt__foot-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.dirt__foot-text strong { color: var(--text); font-style: normal; }
.dirt__foot-text em { color: var(--primary); font-style: normal; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: 'SOAP';
  position: absolute;
  font-family: var(--font-display);
  font-size: 22vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.5;
}

.cta-section__tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.cta-section__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}

.cta-section__sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  position: relative;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand-logo { height: 32px; width: auto; margin-bottom: 18px; }

.footer__brand-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 260px;
  margin-bottom: 20px;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__links a::before { content: '—'; color: var(--text-dim); }
.footer__links a:hover { color: var(--primary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__disclaimer {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.9;
  color: var(--text-dim);
  max-width: 680px;
}

.footer__ticker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero--center { text-align: center; }

.page-hero__bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: 22vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  bottom: -10%;
  left: -2%;
  pointer-events: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.5;
}

.page-hero__overline {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-hero--center .page-hero__overline {
  justify-content: center;
}

.page-hero__overline::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--primary);
}

.page-hero--center .page-hero__overline::before { display: none; }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
}

.page-hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--text-muted);
  max-width: 560px;
  position: relative;
}

.page-hero--center .page-hero__sub { margin: 0 auto; }

/* ============================================
   LORE PAGE
   ============================================ */
.lore-body {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--section-pad) 28px;
}

.lore-chapter { margin-bottom: 80px; }

.lore-chapter__num {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.lore-chapter__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.lore-chapter__body {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2.05;
  color: var(--text-muted);
}

.lore-chapter__body p { margin-bottom: 22px; }
.lore-chapter__body p:last-child { margin-bottom: 0; }
.lore-chapter__body strong { color: var(--text); font-weight: 500; }
.lore-chapter__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Pull quote */
.lore-pullquote {
  margin: 48px 0;
  padding: 36px 40px;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  position: relative;
}

.lore-pullquote::before {
  content: '"';
  position: absolute;
  font-family: var(--font-serif);
  font-size: 8rem;
  color: var(--primary);
  line-height: 1;
  top: -20px;
  left: 28px;
  opacity: 0.2;
}

.lore-pullquote__text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 16px;
}

.lore-pullquote__cite {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* OG Dev Card */
.og-dev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.og-dev-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
}

.og-dev-card__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.og-dev-card__badge {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.og-dev-card__badge-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.og-dev-card__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.og-dev-card__body {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.og-dev-card__body strong { color: var(--text); font-weight: 500; }

/* News section */
.news-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--section-pad) 0;
}

.news-section__inner { max-width: 800px; margin: 0 auto; padding: 0 28px; }

.news-section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.news-section__sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.news-list { display: flex; flex-direction: column; }

.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.news-item:last-child { border-bottom: none; }

.news-item__date {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding-top: 3px;
  line-height: 1.5;
}

.news-item__headline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.news-item__source {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ============================================
   TOKENOMICS PAGE
   ============================================ */
.token-stats {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}

.token-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.token-stat {
  background: var(--surface);
  padding: 52px 40px;
  text-align: center;
  transition: background var(--ease);
}

.token-stat:hover { background: var(--surface-2); }

.token-stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1;
}

.token-stat__value em { color: var(--primary); font-style: normal; }
.token-stat__value span.gold { color: var(--accent); }

.token-stat__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.token-stat__note {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
}

/* Distribution */
.distribution {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}

.distribution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* SVG Donut */
.donut-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.donut-svg { width: 100%; height: auto; transform: rotate(-90deg); }

.donut-track {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 28;
}

/* Donut segments */
.donut-seg-1 { fill: none; stroke: var(--primary);   stroke-width: 28; }
.donut-seg-2 { fill: none; stroke: var(--accent);    stroke-width: 28; }
.donut-seg-3 { fill: none; stroke: #5a8a6a;          stroke-width: 28; }
.donut-seg-4 { fill: none; stroke: #5a6b8a;          stroke-width: 28; }

.donut-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center__value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
}

.donut-center__label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Distribution list */
.dist-list { display: flex; flex-direction: column; }

.dist-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.dist-item:last-child { border-bottom: none; }

.dist-item__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dist-item__info { display: flex; flex-direction: column; gap: 2px; }

.dist-item__name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
}

.dist-item__detail {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
}

.dist-item__pct {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Token Table */
.token-table-section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.token-table-wrap { border: 1px solid var(--border); overflow-x: auto; }

.token-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.token-table thead tr { background: var(--surface-2); }

.token-table th {
  padding: 14px 24px;
  text-align: left;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.token-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}

.token-table tr:last-child td { border-bottom: none; }
.token-table tr:hover td { background: var(--surface-2); color: var(--text); }
.token-table td:first-child { color: var(--text); font-weight: 500; }
.token-table td.td-primary { color: var(--primary); }
.token-table td.td-accent  { color: var(--accent); }
.token-table td.td-green   { color: #5a8a6a; }

/* Chart Section */
.chart-section {
  padding: var(--section-pad) 0;
}

.chart-embed-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.chart-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chart-placeholder {
  text-align: center;
  padding: 40px;
}

.chart-placeholder__icon {
  font-size: 3rem;
  opacity: 0.2;
  margin-bottom: 16px;
}

.chart-placeholder__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.chart-placeholder__sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
}

/* ============================================
   COMMUNITY PAGE
   ============================================ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 72px;
}

.social-card {
  background: var(--surface);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.social-card::after {
  content: '↗';
  position: absolute;
  top: 28px; right: 28px;
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: var(--ease);
}

.social-card:hover { background: var(--surface-2); }
.social-card:hover::after { color: var(--primary); transform: translate(3px, -3px); }

.social-card--coming {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.5);
}

.social-card--coming::after { content: ''; }

.social-card__coming-tag {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
}

.social-card__emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.social-card__platform {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

.social-card__title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}

.social-card__desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.community-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.community-banner::before {
  content: '$SOAP';
  position: absolute;
  font-family: var(--font-display);
  font-size: 14vw;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}

.community-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}

.community-banner__sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  position: relative;
}

.community-banner__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================
   CLEANSE / PROTOCOL PAGE
   ============================================ */
.protocol-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-h) + 40px) 0 60px;
}

.protocol-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, var(--primary-glow) 0%, transparent 65%);
  pointer-events: none;
}

.protocol-hero__content { position: relative; z-index: 1; text-align: center; }

.protocol-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 24px;
}

.protocol-hero__title em { color: var(--primary); font-style: normal; display: block; }

.protocol-hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Steps */
.protocol-steps { padding: var(--section-pad) 0; border-bottom: 1px solid var(--border); }

.step-list {
  max-width: 880px;
  margin: 0 auto;
}

.protocol-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.protocol-step:last-child { border-bottom: none; }

.protocol-step__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--border-light);
  line-height: 1;
  text-align: right;
}

.protocol-step__tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.protocol-step__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}

.protocol-step__body {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.95;
  color: var(--text-muted);
}

.protocol-step__body strong { color: var(--text); font-weight: 500; }

/* Manifesto */
.manifesto {
  padding: var(--section-pad) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.manifesto__text {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-muted);
  text-align: center;
}

.manifesto__text p { margin-bottom: 32px; }
.manifesto__text p:last-child { margin-bottom: 0; }
.manifesto__text strong { color: var(--text); font-weight: 600; }
.manifesto__text em { color: var(--primary); font-style: normal; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about__grid  { gap: 48px; }
  .distribution__grid { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; }

  .navbar__links,
  .navbar__right .btn { display: none; }
  .hamburger { display: flex; }

  .about__grid          { grid-template-columns: 1fr; }
  .about__img-wrap      { order: -1; }
  .distribution__grid   { grid-template-columns: 1fr; }
  .headlines-grid       { grid-template-columns: 1fr; }
  .social-grid          { grid-template-columns: 1fr; }
  .token-stats__grid    { grid-template-columns: 1fr; }
  .footer__grid         { grid-template-columns: 1fr; gap: 36px; }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .ca-bar { max-width: 100%; }

  .news-item { grid-template-columns: 1fr; gap: 8px; }

  .protocol-step { grid-template-columns: 1fr; gap: 12px; }
  .protocol-step__num { text-align: left; font-size: 2.2rem; }

  .footer__bottom { flex-direction: column; }
  .community-banner { padding: 40px 24px; }

  .og-dev-card__header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --section-pad: 56px; }

  .hero__title { font-size: 4.2rem; }
  .stats-bar__grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(3) { border-right: none; border-top: none; }
  .stat-item:nth-child(4) { border-right: none; }
  .stat-item:last-child { border-bottom: none; }

  .toast { bottom: 16px; right: 16px; left: 16px; }
  .social-card { padding: 36px 28px; }
  .lore-pullquote { padding: 28px; }
  .og-dev-card { padding: 28px; }
}

/* ============================================
   MOBILE OVERFLOW FIX — hero section
   Prevents subtitle, ticker, CA bar, and buttons
   from bleeding outside the viewport on phones.
   ============================================ */

/* Lock the whole page */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 768px) {

  /* Container must never exceed viewport */
  .container {
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Hero section locked */
  .hero {
    overflow: hidden;
    width: 100%;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Subtitle — force wrap, kill the <br> effect */
  .hero__subtitle {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: clamp(0.88rem, 3.8vw, 1.1rem);
  }

  /* Quote — stays inside */
  .hero__quote {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Ticker — MUST have overflow hidden so the
     infinitely wide track doesn't push the page */
  .ticker--inline {
    max-width: 100% !important;
    width: 100%;
    overflow: hidden !important;
  }

  .ticker {
    overflow: hidden !important;
  }

  /* CA bar — full width, clamp the address text */
  .ca-bar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .ca-bar__address {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6rem;
  }

  /* Buttons — stack vertically, full width */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
  }

}

@media (max-width: 480px) {

  .container {
    padding: 0 16px;
  }

  /* Hide the <br> in the subtitle so it wraps naturally */
  .hero__subtitle br {
    display: none;
  }

  .hero__subtitle {
    font-size: 0.88rem;
  }

  /* CA bar — even tighter on small phones */
  .ca-bar__label {
    padding: 10px 10px;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .ca-bar__address {
    font-size: 0.5rem;
    padding: 10px 8px;
    letter-spacing: 0;
  }

  .ca-bar__btn {
    padding: 10px 10px;
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    gap: 4px;
  }

  .ca-bar__btn svg {
    display: none;
  }

  /* Eyebrow line */
  .hero__eyebrow {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero__eyebrow::before {
    width: 20px;
  }

  /* Title size */
  .hero__title {
    font-size: clamp(3.4rem, 22vw, 5rem);
  }

}
