/* ============================================
   BASALT BIO — HOME.CSS
   Homepage sections
   ============================================ */

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--bb-banner-h) - var(--bb-nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--bb-sp-8) 0 var(--bb-sp-9);
  background: transparent;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(60deg, rgba(45, 133, 89, 0.8) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(45, 133, 89, 0.8) 1px, transparent 1px);
  background-size: 80px 140px;
  opacity: 0.02;
  pointer-events: none;
}

.hero__grain {
  display: none;
}

.hero__crack {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--bb-fs-xs);
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--bb-forest-hot);
  font-weight: 600;
  margin-bottom: var(--bb-sp-5);
  padding: 6px 0;
  border-top: 1px solid var(--bb-forest-dim);
  border-bottom: 1px solid var(--bb-forest-dim);
  animation: hero-reveal 800ms var(--bb-ease-out) 100ms both;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: var(--bb-sp-6);
  text-transform: lowercase;
}

.hero__title-1 {
  display: block;
  color: var(--bb-text);
  animation: hero-reveal 900ms var(--bb-ease-out) 200ms both;
}

.hero__title-2 {
  display: block;
  color: var(--bb-text);
  font-weight: 500;
  animation: hero-reveal 900ms var(--bb-ease-out) 350ms both;
}

.hero__title-2 .amber-dot { color: var(--bb-forest-hot); }

@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  font-size: var(--bb-fs-md);
  color: var(--bb-text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--bb-sp-6);
  animation: hero-reveal 900ms var(--bb-ease-out) 500ms both;
}

.hero__actions {
  display: flex;
  gap: var(--bb-sp-3);
  flex-wrap: wrap;
  animation: hero-reveal 900ms var(--bb-ease-out) 650ms both;
}

.hero__scrollhint {
  position: absolute;
  bottom: var(--bb-sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--bb-text-muted);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  font-weight: 500;
  animation: hero-reveal 900ms var(--bb-ease-out) 900ms both;
}

.scrollhint__arrow {
  width: 14px;
  height: 14px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ============================================
   FLAGSHIP GRID
   ============================================ */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bb-border);
  border: 1px solid var(--bb-border);
}

@media (max-width: 900px) { .flagship-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flagship-grid { grid-template-columns: 1fr; } }

.flagship-grid .compound-card { border: none; }

/* ============================================
   PROTOCOLS SECTION
   ============================================ */
.protocols-section {
  background:
    linear-gradient(180deg, var(--bb-bg) 0%, var(--bb-surface-1) 50%, var(--bb-bg) 100%);
  position: relative;
}

.protocols-intro {
  max-width: 640px;
  font-size: var(--bb-fs-md);
  color: var(--bb-text-dim);
  line-height: 1.7;
  margin-bottom: var(--bb-sp-6);
}

.protocols-grid {
  display: flex;
  gap: var(--bb-sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--bb-sp-2) var(--bb-sp-5);
  margin: 0 calc(var(--bb-sp-5) * -1) var(--bb-sp-6);
  padding-left: var(--bb-sp-5);
  padding-right: var(--bb-sp-5);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bb-forest) transparent;
}

.protocols-grid::-webkit-scrollbar { height: 6px; }
.protocols-grid::-webkit-scrollbar-track { background: transparent; }
.protocols-grid::-webkit-scrollbar-thumb { background: var(--bb-forest); border-radius: 3px; }

.protocols-grid > .stack-card {
  min-width: 320px;
  max-width: 360px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  scroll-margin-left: var(--bb-sp-5);
}

@media (min-width: 900px) {
  .protocols-grid > .stack-card { min-width: 340px; }
}

.protocols-footer {
  text-align: center;
  padding-top: var(--bb-sp-5);
  border-top: 1px solid var(--bb-border);
}

/* ============================================
   BEDROCK REWARDS
   ============================================ */
.bedrock {
  padding: var(--bb-sp-9) 0;
  background:
    radial-gradient(ellipse at center, rgba(26, 95, 63, 0.12), transparent 70%),
    var(--bb-surface-1);
  border-top: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
  position: relative;
  overflow: hidden;
}

.bedrock::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(60deg, var(--bb-forest-hot) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.025;
  pointer-events: none;
}

.bedrock__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.bedrock__eyebrow {
  font-size: var(--bb-fs-xs);
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--bb-forest-hot);
  font-weight: 600;
  margin-bottom: var(--bb-sp-4);
}

.bedrock__title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--bb-text);
  margin-bottom: var(--bb-sp-3);
}

.bedrock__subtitle {
  font-size: var(--bb-fs-md);
  color: var(--bb-text-dim);
  letter-spacing: 0.02em;
  margin-bottom: var(--bb-sp-7);
}

.bedrock__tiers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--bb-sp-4);
  margin-bottom: var(--bb-sp-7);
  flex-wrap: wrap;
}

.bedrock__tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bb-sp-2);
}

.bedrock__tier-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bb-forest-dim);
  border-radius: 50%;
  color: var(--bb-forest-hot);
  transition: all var(--bb-dur) var(--bb-ease);
}

.bedrock__tier-icon svg { width: 24px; height: 24px; }

.bedrock__tier:hover .bedrock__tier-icon {
  border-color: var(--bb-forest-hot);
  box-shadow: 0 0 0 6px var(--bb-forest-glow);
}

.bedrock__tier-name {
  font-size: var(--bb-fs-xs);
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: var(--bb-text);
  font-weight: 700;
}

.bedrock__tier-rate {
  font-size: var(--bb-fs-sm);
  color: var(--bb-forest-hot);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.bedrock__tier-threshold {
  font-size: 10px;
  color: var(--bb-text-muted);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  max-width: 180px;
  text-align: center;
  line-height: 1.4;
  margin-top: 4px;
}

.bedrock__tier-connector {
  width: 32px;
  height: 1px;
  background: var(--bb-border-hot);
  align-self: center;
  margin-top: 26px;
}

@media (max-width: 560px) { .bedrock__tier-connector { display: none; } }

.bedrock__rule {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-dim);
  letter-spacing: 0.04em;
  margin-bottom: var(--bb-sp-6);
}

.bedrock__rule strong { color: var(--bb-forest-hot); font-weight: 600; }

/* ============================================
   STANDARDS
   ============================================ */
.standards {
  padding: var(--bb-sp-9) 0;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bb-sp-5);
}

@media (max-width: 900px) { .standards-grid { grid-template-columns: 1fr; gap: var(--bb-sp-4); } }

.standard {
  padding: var(--bb-sp-6);
  background: var(--bb-surface-1);
  border: 1px solid var(--bb-border);
  display: flex;
  flex-direction: column;
  gap: var(--bb-sp-3);
  transition: border-color var(--bb-dur) var(--bb-ease);
  position: relative;
  overflow: hidden;
}

.standard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--bb-forest-hot);
  transition: width var(--bb-dur) var(--bb-ease);
}

.standard:hover { border-color: var(--bb-border-hot); }
.standard:hover::before { width: 100%; }

.standard__icon {
  width: 40px;
  height: 40px;
  color: var(--bb-forest-hot);
  margin-bottom: var(--bb-sp-3);
}

.standard__title {
  font-size: var(--bb-fs-md);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--bb-text);
  text-transform: lowercase;
}

.standard__body {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-dim);
  line-height: 1.7;
}

/* ============================================
   BLOG TEASER
   ============================================ */
.blog-teaser {
  padding: var(--bb-sp-9) 0;
  border-top: 1px solid var(--bb-border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bb-sp-4);
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================
   PRE-ORDER EXPLAINER — homepage section
   ============================================ */
.preorder {
  padding: var(--bb-sp-9) 0;
  position: relative;
}

.preorder__inner {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.preorder__ribbon {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  font-weight: 600;
  color: var(--bb-forest-hot);
  padding: 6px 16px;
  border: 1px solid var(--bb-forest-hot);
  border-radius: 100px;
  margin-bottom: var(--bb-sp-5);
  background: var(--bb-forest-glow);
}

.preorder__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--bb-text);
  text-transform: lowercase;
  margin-bottom: var(--bb-sp-4);
}

.preorder__sub {
  color: var(--bb-text-dim);
  font-size: var(--bb-fs-md);
  max-width: 560px;
  margin: 0 auto var(--bb-sp-7);
  line-height: 1.6;
}

.preorder__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bb-sp-4);
  margin-bottom: var(--bb-sp-7);
  text-align: left;
}

@media (max-width: 700px) {
  .preorder__grid { grid-template-columns: 1fr; }
}

.preorder__card {
  padding: var(--bb-sp-5);
  border: 1px solid var(--bb-border);
  border-top: 2px solid var(--bb-forest-hot);
  background: rgba(26, 42, 71, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform var(--bb-dur) var(--bb-ease),
              border-color var(--bb-dur) var(--bb-ease);
}

.preorder__card:hover {
  transform: translateY(-3px);
  border-color: var(--bb-border-hot);
  border-top-color: var(--bb-forest-hot);
}

.preorder__card-num {
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-xs);
  letter-spacing: 0.14em;
  color: var(--bb-forest-hot);
  margin-bottom: var(--bb-sp-3);
  font-weight: 600;
}

.preorder__card-title {
  font-size: var(--bb-fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bb-text);
  text-transform: lowercase;
  margin-bottom: var(--bb-sp-3);
}

.preorder__card-body {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-dim);
  line-height: 1.6;
}

.preorder__actions {
  display: flex;
  gap: var(--bb-sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--bb-sp-5);
}

.preorder__fine {
  font-size: var(--bb-fs-xs);
  letter-spacing: 0.08em;
  color: var(--bb-text-faint);
  text-transform: lowercase;
}

/* ============================================
   OATH SECTION — mantra + trust rail + badges
   Inspired by brand-mantra anchor patterns.
   ============================================ */
.oath {
  padding: var(--bb-sp-9) 0 var(--bb-sp-8);
  position: relative;
}

.oath__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

/* Declarative two-line mantra with period accents in forest-green */
.oath__mantra {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--bb-text);
  text-transform: lowercase;
  margin: 0 0 var(--bb-sp-5);
}

.oath__mantra-second {
  color: var(--bb-text-dim);
  font-weight: 500;
}

.oath__period {
  color: var(--bb-forest-hot);
}

.oath__sub {
  color: var(--bb-text-dim);
  font-size: var(--bb-fs-md);
  max-width: 620px;
  margin: 0 auto var(--bb-sp-7);
  line-height: 1.6;
}

/* Three-step trust rail */
.oath__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bb-sp-4);
  margin-bottom: var(--bb-sp-7);
  text-align: left;
}

@media (max-width: 760px) {
  .oath__rail { grid-template-columns: 1fr; }
}

.oath__step {
  padding: var(--bb-sp-5);
  background: rgba(26, 42, 71, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bb-border);
  border-top: 2px solid var(--bb-forest-hot);
  transition: transform var(--bb-dur) var(--bb-ease),
              border-color var(--bb-dur) var(--bb-ease);
}

.oath__step:hover {
  transform: translateY(-3px);
  border-color: var(--bb-border-hot);
  border-top-color: var(--bb-forest-hot);
}

.oath__step-num {
  font-family: var(--bb-font-mono, 'IBM Plex Mono', monospace);
  font-size: var(--bb-fs-xs);
  letter-spacing: 0.14em;
  color: var(--bb-forest-hot);
  font-weight: 600;
  margin-bottom: var(--bb-sp-3);
}

.oath__step-title {
  font-size: var(--bb-fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bb-text);
  text-transform: lowercase;
  margin: 0 0 var(--bb-sp-2);
}

.oath__step-body {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-dim);
  line-height: 1.55;
  margin: 0;
}

/* Credibility badges — worn openly */
.oath__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--bb-sp-3) var(--bb-sp-5);
  padding-top: var(--bb-sp-6);
  border-top: 1px solid var(--bb-border);
}

.oath__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--bb-text-dim);
  font-weight: 600;
}

.oath__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bb-forest-hot);
  box-shadow: 0 0 0 3px var(--bb-forest-glow);
}

@media (max-width: 560px) {
  .oath__badges { gap: var(--bb-sp-2) var(--bb-sp-4); }
  .oath__badge { font-size: 10px; }
}

/* ============================================
   OATH-INFUSION: BRAND MANTRA + TRUST RAIL + BADGES
   Editorial, confident, declarative. Sits between
   hero and protocols.
   ============================================ */
.oath {
  padding: var(--bb-sp-9) 0 var(--bb-sp-8);
  position: relative;
}

.oath__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.oath__mantra {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--bb-text);
  text-transform: lowercase;
  margin-bottom: var(--bb-sp-5);
}

.oath__mantra-second {
  color: var(--bb-text-dim);
  font-weight: 500;
}

.oath__period {
  color: var(--bb-forest-hot);
}

.oath__sub {
  color: var(--bb-text-dim);
  font-size: var(--bb-fs-md);
  max-width: 560px;
  margin: 0 auto var(--bb-sp-8);
  line-height: 1.6;
}

/* Trust rail: 01 / 02 / 03 */
.oath__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bb-sp-5);
  margin-bottom: var(--bb-sp-8);
  text-align: left;
}

@media (max-width: 760px) {
  .oath__rail { grid-template-columns: 1fr; }
}

.oath__step {
  padding: var(--bb-sp-5);
  border-left: 2px solid var(--bb-forest-hot);
  background: rgba(26, 42, 71, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background var(--bb-dur) var(--bb-ease);
}

.oath__step:hover { background: rgba(26, 42, 71, 0.75); }

.oath__step-num {
  font-family: var(--bb-font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bb-forest-hot);
  font-weight: 600;
  margin-bottom: var(--bb-sp-3);
}

.oath__step-title {
  font-size: var(--bb-fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bb-text);
  text-transform: lowercase;
  margin-bottom: var(--bb-sp-2);
}

.oath__step-body {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-dim);
  line-height: 1.6;
}

/* Badge row */
.oath__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--bb-sp-3);
  padding-top: var(--bb-sp-6);
  border-top: 1px solid var(--bb-border);
}

.oath__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--bb-border);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  font-weight: 600;
  color: var(--bb-text-dim);
  transition: all var(--bb-dur) var(--bb-ease);
}

.oath__badge:hover {
  border-color: var(--bb-forest-hot);
  color: var(--bb-text);
}

.oath__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bb-forest-hot);
  box-shadow: 0 0 8px var(--bb-forest-hot);
  flex-shrink: 0;
}

.oath__badge-text {
  line-height: 1;
}

/* ============================================
   RESEARCHER ACKNOWLEDGMENT (shop / category pages)
   Softer version of a gated catalog — inline banner
   user dismisses once, persists in storage.
   ============================================ */
.researcher-ack {
  position: sticky;
  top: calc(var(--bb-banner-h) + 60px);
  z-index: 40;
  background: rgba(20, 33, 58, 0.98);
  border-top: 1px solid var(--bb-border);
  border-bottom: 2px solid var(--bb-forest-hot);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 320ms var(--bb-ease), transform 320ms var(--bb-ease);
}

.researcher-ack.active {
  opacity: 1;
  transform: translateY(0);
}

.researcher-ack__inner {
  display: flex;
  align-items: center;
  gap: var(--bb-sp-4);
  padding: var(--bb-sp-4) var(--bb-sp-5);
}

.researcher-ack__text {
  flex: 1;
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-dim);
  line-height: 1.55;
}

.researcher-ack__text strong {
  color: var(--bb-text);
  font-weight: 700;
  text-transform: lowercase;
}

.researcher-ack__text a {
  color: var(--bb-forest-hot);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.researcher-ack__btn {
  flex: 0 0 auto;
  background: var(--bb-forest-hot);
  color: #ffffff;
  border: 1px solid var(--bb-forest-hot);
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--bb-dur) var(--bb-ease);
}

.researcher-ack__btn:hover {
  background: #3aa06a;
  border-color: #3aa06a;
}

@media (max-width: 640px) {
  .researcher-ack__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--bb-sp-3);
    padding: var(--bb-sp-3) var(--bb-sp-4);
  }
  .researcher-ack__btn { width: 100%; }
}

/* ============================================
   HERO TWO-COLUMN + PHOTOREAL VIAL STAGE
   ============================================ */
.hero__inner {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--bb-sp-7);
  align-items: center;
}

.hero__content {
  /* inherits existing hero typography */
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--bb-sp-6);
  }
  .hero__stage {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* Stage — the floor the vial sits on */
.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero__stage-floor {
  position: absolute;
  bottom: 20%;
  left: -10%;
  right: -10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74, 104, 153, 0.3) 20%,
    rgba(74, 104, 153, 0.6) 50%,
    rgba(74, 104, 153, 0.3) 80%,
    transparent 100%
  );
}

.hero__stage-vial {
  position: relative;
  animation: vialBreathe 6s ease-in-out infinite;
}

@keyframes vialBreathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}


/* ============================================
   MEDICAL VIAL (mvial)
   Proportions: 2R pharmaceutical vial aesthetic.
   - short body, slight shoulder
   - narrow neck
   - aluminum crimp seal with center flip-off button
   - rubber stopper visible just beneath crimp
   - lyophilized powder cake in the bottom
   - clinical label with monospace data
   ============================================ */

.mvial {
  position: relative;
  width: 180px;
  height: 360px;
  margin: 0 auto;
  filter:
    drop-shadow(0 24px 32px rgba(0, 0, 0, 0.55))
    drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

/* Aluminum crimp collar — the trademark of a sealed pharmaceutical vial */
.mvial__crimp {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 26px;
  background:
    linear-gradient(
      90deg,
      #6b7280 0%,
      #9ca3af 12%,
      #d1d5db 28%,
      #e5e7eb 40%,
      #d1d5db 52%,
      #9ca3af 72%,
      #6b7280 88%,
      #4b5563 100%
    );
  border-radius: 4px 4px 2px 2px;
  box-shadow:
    inset 0 -3px 5px rgba(0, 0, 0, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.5);
  z-index: 5;
}

/* The characteristic ridged/fluted texture of crimp aluminum */
.mvial__crimp::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  right: 4px;
  bottom: 3px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.22) 0,
      rgba(0, 0, 0, 0.22) 1px,
      rgba(255, 255, 255, 0.28) 1px,
      rgba(255, 255, 255, 0.28) 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 3px
    );
  border-radius: 2px;
}

/* Plastic flip-off button — the colored tab researchers pop off before piercing */
.mvial__flip-top {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 8px;
  background: linear-gradient(
    180deg,
    #2d8559 0%,
    #1a5f3f 50%,
    #0f3d27 100%
  );
  border-radius: 4px 4px 0 0;
  box-shadow:
    inset 0 -1px 2px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* Rubber stopper visible through the open part of the crimp */
.mvial__stopper {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 12px;
  background: linear-gradient(
    180deg,
    #3a3530 0%,
    #5a5248 30%,
    #3a3530 70%,
    #25211d 100%
  );
  border-radius: 2px;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.5),
    inset 0 -1px 1px rgba(255, 255, 255, 0.1);
  z-index: 4;
}

/* Glass neck — narrower than the body */
.mvial__neck {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 14px;
  background:
    linear-gradient(
      90deg,
      rgba(60, 75, 95, 0.85) 0%,
      rgba(140, 160, 190, 0.75) 30%,
      rgba(180, 200, 220, 0.55) 50%,
      rgba(140, 160, 190, 0.75) 70%,
      rgba(60, 75, 95, 0.85) 100%
    );
  border: 1px solid rgba(200, 220, 240, 0.3);
  border-bottom: none;
  box-shadow:
    inset 0 -2px 3px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  z-index: 3;
}

/* Shoulder — the transition curve from neck to body */
.mvial__shoulder {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(60, 80, 110, 0.6) 0%,
      rgba(110, 130, 160, 0.4) 50%,
      rgba(40, 55, 80, 0.3) 100%
    );
  border-radius: 60px 60px 8px 8px / 100% 100% 8px 8px;
  border: 1px solid rgba(180, 200, 220, 0.25);
  border-bottom: none;
  z-index: 2;
}

/* Body — the cylindrical glass vial */
.mvial__body {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 148px;
  height: 280px;
  border-radius: 2px 2px 12px 12px;
  background:
    /* Vertical highlight strip left of center */
    linear-gradient(
      90deg,
      rgba(220, 235, 250, 0.12) 0%,
      rgba(255, 255, 255, 0.18) 14%,
      rgba(220, 235, 250, 0.08) 24%,
      transparent 40%,
      transparent 78%,
      rgba(200, 220, 240, 0.1) 88%,
      rgba(180, 210, 240, 0.15) 96%,
      rgba(80, 100, 130, 0.2) 100%
    ),
    /* Overall glass tint with subtle green/blue */
    linear-gradient(
      180deg,
      rgba(120, 160, 180, 0.18) 0%,
      rgba(20, 35, 60, 0.4) 20%,
      rgba(15, 28, 50, 0.55) 60%,
      rgba(10, 20, 38, 0.7) 100%
    );
  border: 1px solid rgba(180, 200, 220, 0.28);
  border-top: 1px solid rgba(80, 100, 130, 0.4);
  overflow: hidden;
  box-shadow:
    inset 0 0 24px rgba(180, 210, 240, 0.08),
    inset 2px 0 3px rgba(255, 255, 255, 0.1),
    inset -2px 0 3px rgba(0, 0, 0, 0.35),
    inset 0 -6px 10px rgba(0, 0, 0, 0.3);
}

/* Lyophilized powder cake — dense, cream-colored, flat on top with shadow */
.mvial__cake {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  height: 58px;
  background:
    linear-gradient(
      180deg,
      rgba(245, 240, 228, 0.98) 0%,
      rgba(232, 224, 208, 0.95) 30%,
      rgba(200, 188, 168, 0.88) 70%,
      rgba(170, 158, 138, 0.78) 100%
    );
  border-radius: 2px 2px 10px 10px / 4px 4px 10px 10px;
  box-shadow:
    /* Shadow cast by the cake into the glass below */
    0 4px 6px rgba(60, 45, 25, 0.3),
    /* Top edge crisp highlight */
    inset 0 2px 3px rgba(255, 252, 240, 0.7),
    /* Micro texture — suggests the crystalline structure */
    inset 0 -3px 6px rgba(100, 85, 60, 0.3);
}

/* Cake top surface — slight tilt highlight */
.mvial__cake::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(120, 100, 75, 0.4) 0%,
    rgba(60, 50, 35, 0.6) 50%,
    rgba(120, 100, 75, 0.4) 100%
  );
}

/* Primary specular highlight — vertical strip near the left edge */
.mvial__shine-primary {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 4px;
  height: calc(100% - 80px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.3) 80%,
    rgba(255, 255, 255, 0.55) 95%,
    transparent 100%
  );
  border-radius: 50%;
  filter: blur(1.2px);
}

/* Secondary thin highlight — further in from edge */
.mvial__shine-secondary {
  position: absolute;
  top: 20px;
  left: 22px;
  width: 1.5px;
  height: 70%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent 100%
  );
  filter: blur(0.5px);
}

/* Right-side edge highlight — suggests cylinder curvature */
.mvial__edge-right {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 3px;
  height: calc(100% - 70px);
  background: linear-gradient(
    180deg,
    rgba(200, 220, 240, 0.3) 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(200, 220, 240, 0.25) 80%,
    rgba(255, 255, 255, 0.35) 100%
  );
  border-radius: 50%;
  filter: blur(0.8px);
}

/* Clinical label — black pharmaceutical label, prominent Manrope */
.mvial__label {
  position: absolute;
  top: 90px;
  left: 4px;
  right: 4px;
  padding: 14px 14px 12px;
  background:
    /* Side curvature shadows to sell cylinder wrap */
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0) 12%,
      rgba(0, 0, 0, 0) 88%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    linear-gradient(180deg, #0a0d14 0%, #050810 100%);
  color: #f5f3ef;
  font-family: 'Manrope', var(--bb-font-body);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.mvial__label-brand {
  font-family: 'Manrope', var(--bb-font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--bb-forest-hot);
  margin-bottom: 8px;
}

.mvial__label-compound {
  font-family: 'Manrope', var(--bb-font-body);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: #f5f3ef;
  margin-bottom: 8px;
}

.mvial__label-ruo {
  font-family: 'Manrope', var(--bb-font-body);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.55);
  padding-top: 6px;
  border-top: 0.5px solid rgba(245, 243, 239, 0.15);
}

/* Base — vial bottom edge with curvature shading */
.mvial__base {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 6px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 15%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.4) 85%,
    transparent 100%
  );
  filter: blur(1.2px);
}

/* Cast shadow */
.mvial__shadow {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 18px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.3) 45%,
    transparent 80%
  );
  filter: blur(5px);
  z-index: -1;
}

/* Mobile: smaller vial */
@media (max-width: 560px) {
  .mvial {
    width: 150px;
    height: 300px;
  }
  .mvial__crimp { width: 60px; height: 22px; }
  .mvial__flip-top { width: 40px; height: 7px; }
  .mvial__stopper { top: 18px; width: 42px; height: 10px; }
  .mvial__neck { top: 26px; width: 40px; height: 12px; }
  .mvial__shoulder { top: 36px; width: 100px; height: 14px; }
  .mvial__body { top: 46px; width: 122px; height: 238px; }
  .mvial__label { top: 74px; padding: 10px 10px 8px; }
  .mvial__label-compound { font-size: 20px; }
  .mvial__label-brand { font-size: 8px; margin-bottom: 6px; }
  .mvial__label-ruo { font-size: 6px; padding-top: 5px; }
  .hero__stage { min-height: 340px; }
}

/* ============================================
   STACK CAROUSEL — rotating featured protocols
   Fills the vacant hero-adjacent space with depth.
   ============================================ */
.stack-carousel {
  padding: var(--bb-sp-8) 0 var(--bb-sp-6);
  position: relative;
}

.stack-carousel__header {
  text-align: center;
  margin-bottom: var(--bb-sp-7);
}

.stack-carousel__eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--bb-forest-hot);
  font-weight: 600;
  margin-bottom: var(--bb-sp-3);
}

.stack-carousel__title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--bb-text);
  text-transform: lowercase;
  margin: 0;
}

/* Track container */
.stack-carousel__track {
  position: relative;
  overflow: hidden;
}

.stack-carousel__slides {
  position: relative;
  min-height: 520px;
}

/* Individual slide — two-column layout, positioned absolutely for cross-fade */
.stack-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--bb-sp-7);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--bb-ease),
              transform 600ms var(--bb-ease);
  pointer-events: none;
  padding: var(--bb-sp-5);
  background: rgba(20, 33, 58, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--bb-border);
  border-left: 3px solid var(--bb-forest-hot);
}

.stack-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

@media (max-width: 900px) {
  .stack-carousel__slides { min-height: 720px; }
  .stack-slide { grid-template-columns: 1fr; text-align: center; }
}

/* Left column: vial visual */
.stack-slide__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

.stack-slide__vials {
  transform: scale(0.85);
  transform-origin: center;
}

@media (max-width: 900px) {
  .stack-slide__visual { min-height: 340px; }
  .stack-slide__vials { transform: scale(0.72); }
}

/* Right column: copy */
.stack-slide__body {
  display: flex;
  flex-direction: column;
  gap: var(--bb-sp-3);
}

.stack-slide__num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bb-text-faint);
  text-transform: lowercase;
  margin-bottom: 4px;
}

.stack-slide__body .badge {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .stack-slide__body .badge { align-self: center; }
}

.stack-slide__name {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--bb-text);
  text-transform: lowercase;
  margin: 8px 0 0;
}

.stack-slide__tagline {
  font-size: var(--bb-fs-md);
  color: var(--bb-text-dim);
  line-height: 1.5;
  margin: 0;
}

.stack-slide__components {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: var(--bb-fs-xs);
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--bb-forest-hot);
  margin: var(--bb-sp-2) 0;
  padding: var(--bb-sp-2) 0;
  border-top: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
}

.stack-slide__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bb-sp-4);
  margin-top: var(--bb-sp-4);
}

@media (max-width: 900px) {
  .stack-slide__footer { justify-content: center; }
}

.stack-slide__price {
  font-size: var(--bb-fs-xl);
  font-weight: 800;
  color: var(--bb-text);
  font-feature-settings: 'tnum';
}

/* Prev / next arrows */
.stack-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 33, 58, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bb-border);
  color: var(--bb-text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--bb-dur) var(--bb-ease);
}

.stack-carousel__nav:hover {
  color: var(--bb-forest-hot);
  border-color: var(--bb-forest-hot);
  background: rgba(45, 133, 89, 0.18);
}

.stack-carousel__nav svg { width: 20px; height: 20px; }
.stack-carousel__nav--prev { left: -6px; }
.stack-carousel__nav--next { right: -6px; }

@media (max-width: 560px) {
  .stack-carousel__nav { width: 36px; height: 36px; }
  .stack-carousel__nav svg { width: 16px; height: 16px; }
  .stack-carousel__nav--prev { left: 4px; }
  .stack-carousel__nav--next { right: 4px; }
}

/* Dots */
.stack-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--bb-sp-5);
}

.stack-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bb-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--bb-dur) var(--bb-ease);
}

.stack-carousel__dot:hover {
  background: var(--bb-border-hot);
}

.stack-carousel__dot.active {
  width: 26px;
  border-radius: 4px;
  background: var(--bb-forest-hot);
}

/* ============================================
   GOALS PAGE — research objective cards
   Each card maps a research area to compounds + stacks.
   ============================================ */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bb-sp-5);
  margin: var(--bb-sp-6) 0 var(--bb-sp-8);
}

@media (max-width: 900px) {
  .goals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .goals-grid { grid-template-columns: 1fr; gap: var(--bb-sp-4); }
}

.goal-card {
  padding: var(--bb-sp-5);
  background: rgba(26, 42, 71, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bb-border);
  border-top: 2px solid var(--bb-forest-hot);
  display: flex;
  flex-direction: column;
  gap: var(--bb-sp-3);
  transition: transform var(--bb-dur) var(--bb-ease),
              border-color var(--bb-dur) var(--bb-ease);
}

.goal-card:hover {
  transform: translateY(-3px);
  border-color: var(--bb-border-hot);
  border-top-color: var(--bb-forest-hot);
}

.goal-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bb-forest-hot);
  background: var(--bb-forest-glow);
  border-radius: 12px;
  margin-bottom: var(--bb-sp-2);
}

.goal-card__icon svg {
  width: 24px;
  height: 24px;
}

.goal-card__title {
  font-size: var(--bb-fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--bb-text);
  text-transform: lowercase;
  margin: 0;
}

.goal-card__body {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-dim);
  line-height: 1.55;
  margin: 0 0 var(--bb-sp-2);
}

.goal-card__section {
  padding-top: var(--bb-sp-3);
  border-top: 1px solid var(--bb-border);
}

.goal-card__section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--bb-text-faint);
  font-weight: 600;
  margin-bottom: var(--bb-sp-3);
}

.goal-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.goal-card__tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-weight: 600;
  color: var(--bb-text-dim);
  background: var(--bb-surface-2);
  border: 1px solid var(--bb-border);
  border-radius: 3px;
  text-decoration: none;
  transition: all var(--bb-dur-fast) var(--bb-ease);
}

.goal-card__tag:hover {
  color: var(--bb-text);
  border-color: var(--bb-forest-hot);
  background: var(--bb-forest-glow);
}

.goal-card__tag--stack {
  color: var(--bb-forest-hot);
  border-color: var(--bb-forest-hot);
  background: var(--bb-forest-glow);
  font-weight: 700;
}

.goal-card__tag--stack:hover {
  background: var(--bb-forest-hot);
  color: #ffffff;
}
