/* ============================================================
   USPP — US Precision Peptides
   Mobile-first. Dark. Cinematic.
   Fonts: Syne (display) + Figtree (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Figtree:wght@300;400;500;600&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --black:  #000000;
  --navy:   #0B2A5A;
  --blue:   #1E73BE;
  --cyan:   #4FA3E3;
  --red:    #D62828;
  --white:  #FFFFFF;
  --gray:   #E9EEF3;
  --muted:  #6B7A8D;
  --border: rgba(78,163,227,0.18);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Figtree', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

/* ── Grain overlay ────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── Intro Loader ─────────────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 22px;
  z-index: 9000;
  transition: opacity 0.2s ease;
  overflow: hidden;
}
#intro.fade-out { opacity: 0; pointer-events: none; }

#intro-video {
  width: min(300px, 80vw);
  height: auto;
  display: block;
  flex-shrink: 0;
}

#intro-loader {
  width: min(300px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ── Loading bar ──────────────────────────────────────────── */
#intro-bar-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

#intro-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  /* Full red→white→blue gradient revealed left-to-right */
  background: linear-gradient(
    to right,
    #D62828 0%,
    #c0392b 12%,
    #e8e8e8 42%,
    #ffffff 50%,
    #4FA3E3 72%,
    #1E73BE 100%
  );
  clip-path: inset(0 100% 0 0);
  animation: barReveal 5s linear forwards;
  /* Metallic glow — drop-shadow works through clip-path */
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,0.95))
    drop-shadow(0 0 8px rgba(78,163,227,0.7))
    drop-shadow(0 0 16px rgba(30,115,190,0.45));
}
@keyframes barReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0%   0 0); }
}

/* ── Loading text ─────────────────────────────────────────── */
#intro-loading-text {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  animation: loadingPulse 1.5s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes loadingPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1;    }
}

/* ── Mobile adjustments ───────────────────────────────────── */
@media (max-width: 767px) {
  #intro-video  { width: min(300px, 88vw); }
  #intro-loader { width: min(300px, 88vw); }
}

/* ── Main (hidden until intro done) ──────────────────────── */
#main {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out) 0.2s;
}
#main.visible { opacity: 1; }

/* ── Nav ──────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
#nav.visible { opacity: 1; transform: translateY(0); }
#nav-logo { height: 32px; width: auto; }
#nav-links {
  display: none;
  gap: 32px;
}
#nav-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
#nav-links a:hover { color: var(--cyan); }

@media (min-width: 768px) {
  #nav { padding: 24px 48px; }
  #nav-logo { height: 38px; }
  #nav-links { display: flex; }
}
@media (min-width: 1024px) {
  #nav { padding: 28px 80px; }
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}
/* Mobile: autoplay video fallback */
#hero-video-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 1024px) {
  #hero-video-mobile { display: none; }
  #hero-canvas { display: block; }
}

/* fade at bottom so hero bleeds into next section */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

/* Overlay — headline/sub centered */
#hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  z-index: 10;
}
.hero-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
  margin-bottom: 24px;
  /* GSAP owns initial state */
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-weight: 400;
  color: rgba(233,238,243,0.75);
  max-width: 480px;
  line-height: 1.7;
  /* GSAP owns initial state */
}
.scroll-hint {
  position: absolute;
  bottom: 36px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 20px;
  background: rgba(6, 13, 26, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(78, 163, 227, 0.28);
  border-radius: 999px;
  z-index: 20;
  cursor: default;
  opacity: 0;
}
@media (min-width: 768px) {
  .scroll-hint { bottom: 48px; right: 48px; }
}
.scroll-hint-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}
.scroll-hint-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(78,163,227,0.5);
  background: rgba(78,163,227,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  animation: arrowBounce 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.8; }
  50%       { transform: translateY(3px); opacity: 1;   }
}

/* ── Section Shared ───────────────────────────────────────── */
.section {
  padding: 80px 24px;
  position: relative;
}
.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: block;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
}

@media (min-width: 768px) { .section { padding: 100px 48px; } }
@media (min-width: 1024px) { .section { padding: 120px 80px; } }
@media (min-width: 1280px) { .section { padding: 140px 120px; } }

/* ── Centered section headers ─────────────────────────────── */
#pillars .pillars-header,
#products .products-header,
#special-order .products-header,
#contact .section-heading,
#contact .contact-sub {
  text-align: center;
}
#contact .contact-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Pillars ──────────────────────────────────────────────── */
#pillars {
  border-top: 1px solid var(--navy);
}
.pillars-header {
  margin-bottom: 60px;
}
.pillars-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.pillar {
  text-align: center;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.pillar-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
  }
}
@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0 24px;
  }
  .pillar + .pillar {
    border-left: 1px solid var(--border);
    padding-left: 24px;
  }
}

/* ── In-Stock Products ────────────────────────────────────── */
#products {
  border-top: 1px solid var(--navy);
}
.products-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}
.products-heading-sub {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.5em;
}
.products-sub {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

/* Featured tile — L-Carnitine */
.product-tile.featured {
  grid-column: 1 / -1;
  background: var(--blue);
  padding: 28px 24px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
}
.product-tile.featured::before {
  content: 'FEATURED';
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.product-tile.featured:hover,
.product-tile.featured:focus { background: #1a65a8; }
.product-tile.featured .tile-name {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
}
.product-tile.featured .tile-dose { color: rgba(255,255,255,0.7); }

/* Standard tiles */
.product-tile {
  background: #080808;
  border: 1px solid #111;
  padding: 22px 18px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s, z-index 0s;
}
.product-tile:hover,
.product-tile:focus-within { z-index: 20; }
.product-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.product-tile:hover,
.product-tile:focus { border-color: var(--blue); background: #0a0f18; }
.product-tile:hover::after,
.product-tile:focus::after { transform: scaleX(1); }

.tile-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 6px;
}
.tile-dose {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}
.tile-info-icon {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}
.product-tile:hover .tile-info-icon { border-color: var(--cyan); color: var(--cyan); }

@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .product-tile.featured { grid-column: span 2; }
}
@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .product-tile.featured { grid-column: span 2; }
}

/* ── Desktop Info Card (hover) ────────────────────────────── */
@media (max-width: 1023px) {
  .info-card { display: none !important; }
}
.info-card {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 320px;
  background: #060d1a;
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
  padding: 20px 20px 18px;
  z-index: 500;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.info-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.info-card-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.info-card-text {
  font-size: 0.82rem;
  line-height: 1.68;
  color: rgba(233,238,243,0.8);
}

/* ── Mobile Info Sheet ────────────────────────────────────── */
#info-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s;
}
#info-sheet-overlay.active { opacity: 1; }

#info-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #060d1a;
  border-top: 2px solid var(--cyan);
  border-radius: 16px 16px 0 0;
  padding: 28px 24px 40px;
  max-height: 65vh;
  overflow-y: auto;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
}
#info-sheet.active { transform: translateY(0); }

#info-sheet-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
#info-sheet-close:hover { color: var(--white); }
#info-sheet-handle {
  width: 36px; height: 3px;
  background: var(--muted);
  border-radius: 2px;
  margin: 0 auto 20px;
  opacity: 0.4;
}
#info-sheet-product-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}
#info-sheet-text {
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(233,238,243,0.82);
}

/* ── Special Order ────────────────────────────────────────── */
#special-order {
  border-top: 1px solid var(--navy);
}
.so-heading-block {
  text-align: center;
  margin-bottom: 36px;
}
/* The pill toggle button */
.so-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 16px 40px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 28px;
  box-shadow: 0 4px 24px rgba(30,115,190,0.35), 0 1px 4px rgba(0,0,0,0.4);
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.so-toggle-btn:hover {
  background: #1a65a8;
  box-shadow: 0 6px 32px rgba(30,115,190,0.5), 0 1px 4px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}
.so-toggle-btn:active { transform: translateY(0); }
.so-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
}
.so-toggle-btn.open .so-toggle-icon { transform: rotate(45deg); }

.so-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out);
}
.so-body.open { max-height: 4000px; }
.so-inner { padding-top: 40px; }

.so-category {
  margin-bottom: 36px;
}
.so-category-title {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.so-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.so-products-list {
  font-size: 0.85rem;
  color: rgba(233,238,243,0.65);
  font-family: var(--font-body);
  font-weight: 400;
}

/* Mobile: one product per line */
.so-product {
  display: block;
  padding: 4px 0;
  line-height: 1.5;
}
.so-product strong {
  color: rgba(233,238,243,0.9);
  font-weight: 600;
}
.so-product em {
  font-style: italic;
  color: var(--cyan);
  opacity: 0.85;
}

/* Desktop: inline with dot separators */
@media (min-width: 768px) {
  .so-product {
    display: inline;
    padding: 0;
  }
  .so-product::after {
    content: ' · ';
    color: var(--muted);
    font-style: normal;
    font-weight: 400;
  }
  .so-product:last-child::after {
    content: '';
  }
}

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  border-top: 1px solid var(--navy);
}
.contact-inner {
  max-width: 640px;
}
.contact-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* Contact form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.form-field {
  width: 100%;
  background: #080808;
  border: 1px solid #1a1a1a;
  border-bottom: 1px solid rgba(78,163,227,0.25);
  color: var(--white);
  padding: 16px 18px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-field::placeholder { color: rgba(107,122,141,0.7); }
.form-field:focus {
  border-color: var(--cyan);
  background: #060d1a;
}
select.form-field {
  cursor: pointer;
  color: rgba(107,122,141,0.7);
}
select.form-field.has-value { color: var(--white); }
select.form-field option { background: #0a0a0a; color: var(--white); }
textarea.form-field {
  resize: vertical;
  min-height: 140px;
}
.form-row-span { grid-column: 1 / -1; }

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 18px 44px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(30,115,190,0.35), 0 1px 4px rgba(0,0,0,0.4);
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.form-submit:hover {
  background: #1a65a8;
  box-shadow: 0 6px 32px rgba(30,115,190,0.5);
  transform: translateY(-1px);
}
.form-submit:active { transform: translateY(0); }
.form-submit-arrow { font-size: 1.1rem; transition: transform 0.2s; }
.form-submit:hover .form-submit-arrow { transform: translateX(4px); }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--navy);
  padding: 60px 24px 40px;
  text-align: center;
}
#footer-logo {
  height: 176px;
  width: auto;
  max-width: 85vw;
  margin: 0 auto 36px;
  opacity: 0.85;
}
.footer-compliance {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 24px;
}
.footer-research-badge {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(107,122,141,0.5);
  letter-spacing: 0.06em;
}

@media (min-width: 768px) { #footer { padding: 80px 48px 48px; } }

/* ── Marquee ──────────────────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(78,163,227,0.25);
  padding-right: 60px;
  flex-shrink: 0;
  line-height: 1;
}
.marquee-item.accent {
  color: var(--blue);
  -webkit-text-stroke: 0;
  opacity: 0.15;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Email Popup ──────────────────────────────────────────── */
#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
#popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#popup {
  position: relative;
  width: min(92vw, 520px);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(78,163,227,0.12);
}
#popup-overlay.active #popup {
  transform: translateY(0) scale(1);
}

/* Three-logo background layer */
#popup-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
  background: #060d1a;
  overflow: hidden;
}
#popup-bg img {
  width: 30%;
  height: auto;
  opacity: 0.08;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* Close X */
#popup-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  padding: 4px 8px;
  transition: color 0.2s;
}
#popup-close:hover { color: var(--white); }

/* Raised content box */
#popup-box {
  position: relative;
  z-index: 5;
  margin: 44px 28px 28px;
  background: rgba(4, 10, 22, 0.92);
  border: 1px solid rgba(78,163,227,0.2);
  border-radius: 8px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(78,163,227,0.1);
}

.popup-offer {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.popup-hate {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.popup-desc {
  font-size: 0.88rem;
  color: rgba(233,238,243,0.75);
  line-height: 1.65;
  margin-bottom: 10px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.popup-never {
  font-size: 0.85rem;
  color: rgba(233,238,243,0.55);
  font-style: italic;
  margin-bottom: 2px;
}
.popup-promise {
  font-size: 0.82rem;
  color: rgba(233,238,243,0.45);
  margin-bottom: 22px;
}

#popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
#popup-email {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(78,163,227,0.25);
  border-radius: 999px;
  color: var(--white);
  padding: 13px 20px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
#popup-email::placeholder { color: rgba(107,122,141,0.6); }
#popup-email:focus {
  border-color: var(--cyan);
  background: rgba(78,163,227,0.06);
}
#popup-submit {
  width: 100%;
  background: var(--blue);
  border: none;
  border-radius: 999px;
  color: var(--white);
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30,115,190,0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
#popup-submit:hover {
  background: #1a65a8;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(30,115,190,0.55);
}
#popup-submit:active { transform: translateY(0); }

#popup-decline {
  background: none;
  border: none;
  color: rgba(107,122,141,0.55);
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(107,122,141,0.25);
  display: block;
  margin: 0 auto;
}
#popup-decline:hover { color: rgba(233,238,243,0.6); }

/* ── Utility ──────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
