/* ==========================================================================
   Apex Evergreen Pharma — Products & Capabilities Page Styles
   --------------------------------------------------------------------------
   Self-contained page styles. Consumes tokens from design-system.css and
   builds on global.css. Redefines the shared components (reveal, node-divider,
   media-frame, orbital-node icons) with identical values so this page looks
   like the same site without loading home.css.

   Sections:
     1. Hero   2. Flagship PCV-13   3. Capability taxonomy
     4. Therapy segments   5. Packaging   6. Demand-sensing CTA   7. Closing
   ========================================================================== */

/* ==========================================================================
   SHARED — SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   SHARED — CONNECTIVE NODE DIVIDER
   ========================================================================== */
.node-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding-block: var(--space-2xl);
}
.node-divider--cream  { background-color: var(--color-cream); }
.node-divider--forest { background-color: var(--color-forest); }
.node-divider::before,
.node-divider::after {
  content: "";
  height: 1px;
  width: clamp(48px, 14vw, 180px);
  background: linear-gradient(to right, transparent, rgba(201, 169, 74, 0.45));
}
.node-divider::after { transform: scaleX(-1); }
.node-divider__mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.node-divider__mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-box: fill-box;
  transform-origin: center;
}
.node-mark__ring { stroke: var(--color-gold); stroke-width: 1.25; opacity: 0.7; fill: none; }
.node-mark__core { fill: var(--color-gold); transform-box: fill-box; transform-origin: center; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.15); }
}
.node-divider__mark .node-mark__core { animation: node-pulse 3.2s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) {
  .node-divider__mark .node-mark__core { animation: none; }
}

/* ==========================================================================
   SHARED — MEDIA FRAME
   ========================================================================== */
.media-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(201, 169, 74, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--dark {
  background: linear-gradient(160deg, rgba(30, 58, 42, 0.55), rgba(12, 26, 18, 0.35));
}
.media-frame::before,
.media-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-gold);
  opacity: 0.6;
  z-index: 1;
}
.media-frame::before {
  top: var(--space-md);
  left: var(--space-md);
  border-right: 0;
  border-bottom: 0;
}
.media-frame::after {
  bottom: var(--space-md);
  right: var(--space-md);
  border-left: 0;
  border-top: 0;
}
.media-frame__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  max-width: 40ch;
}
.media-frame__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-xs);
}
.media-frame__icon svg { width: 100%; height: 100%; overflow: visible; }
.media-frame__kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.media-frame__caption {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted-dark);
}
.cap-icon__ring { stroke: var(--color-gold); stroke-width: 1.25; opacity: 0.8; }
.cap-icon__core,
.cap-icon__sats circle { fill: var(--color-gold); }
.cap-icon__sats circle { opacity: 0.9; }

.pr-noscript { font-family: var(--font-body); color: var(--color-text-muted-light); }

/* ==========================================================================
   SHARED — CHIPS
   ========================================================================== */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.chip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-muted-light);
  background-color: transparent;
  border: 1px solid var(--color-cream-dark);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
/* Chip cloud (flat lists). */
.chip-cloud .chip-list { gap: var(--space-sm); }
/* Dark-surface chip variant. */
.chip-cloud--dark .chip {
  color: var(--color-text-muted-dark);
  border-color: rgba(201, 169, 74, 0.3);
}

/* ==========================================================================
   1. HERO  (cream)
   ========================================================================== */
.pr-hero {
  background-color: var(--color-cream);
  color: var(--color-ink);
  padding-block: calc(var(--header-height) + var(--space-2xl)) var(--space-2xl);
}
.pr-hero__content { max-width: 62ch; }
.pr-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}
.pr-hero__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.3rem);
  line-height: 1.6;
  color: var(--color-text-muted-light);
  max-width: 66ch;
}

/* ==========================================================================
   2. FLAGSHIP PCV-13  (deep forest, cinematic)
   ========================================================================== */
.pr-flagship {
  position: relative;
  overflow: hidden;
  background-color: var(--color-forest); /* fallback behind the video */
  color: var(--color-text-light);
  padding-block: var(--space-xl) var(--space-2xl);
}
/* Full-bleed background video behind the flagship content. */
.pr-flagship__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Subtle scrim — just enough for the badge/headline/text to stay readable
   over the footage (left-biased behind the text, clearing to the right). */
.pr-flagship__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 20% 20%, rgba(201, 169, 74, 0.08) 0%, rgba(201, 169, 74, 0) 50%),
    linear-gradient(
      to right,
      rgba(12, 26, 18, 0.55) 0%,
      rgba(12, 26, 18, 0.30) 40%,
      rgba(12, 26, 18, 0.08) 70%,
      rgba(12, 26, 18, 0) 100%
    );
}
.pr-flagship__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.pr-flagship__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  margin-bottom: var(--space-lg);
  background-color: var(--color-gold);
  color: var(--color-forest);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pr-flagship__badge-mark {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--color-forest);
}
.pr-flagship__badge-mark svg { width: 100%; height: 100%; overflow: visible; }
.pr-flagship__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}
.pr-flagship__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.02rem, 0.7vw + 0.9rem, 1.2rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-text-light) 72%, var(--color-text-muted-dark) 28%);
  max-width: 60ch;
  margin-bottom: var(--space-md);
}
.pr-figure { color: var(--color-gold); font-weight: 600; }
.pr-species { font-style: italic; color: var(--color-sage-light); }
.pr-flagship__imperative {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.6vw + 1rem, 1.9rem);
  line-height: 1.25;
  color: var(--color-text-light);
}
.pr-flagship__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.pr-flagship__aside .media-frame { width: 100%; }
/* Second named flagship card */
.pr-secondary {
  padding: var(--space-lg);
  border-radius: var(--radius);
  background-color: rgba(30, 58, 42, 0.35);
  border: 1px solid rgba(201, 169, 74, 0.2);
}
.pr-secondary__mark {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-gold);
  margin-bottom: var(--space-sm);
}
.pr-secondary__mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  opacity: 0.45;
}
.pr-secondary__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}
.pr-secondary__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted-dark);
}

/* ==========================================================================
   3. CAPABILITY TAXONOMY  (cream) — grouped category cards
   ========================================================================== */
.pr-taxonomy {
  background-color: var(--color-cream);
  color: var(--color-ink);
  padding-block: var(--space-lg) var(--space-2xl);
}
.pr-taxonomy__header {
  max-width: 60ch;
  margin-bottom: var(--space-2xl);
}
.pr-taxonomy__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3vw + 0.75rem, 3rem);
  line-height: 1.12;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}
.pr-taxonomy__intro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.15rem);
  line-height: 1.6;
  color: var(--color-text-muted-light);
  max-width: 64ch;
}
/* Category cards laid out in a tidy grid, natural heights. */
.tax-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}
.tax-card {
  padding: var(--space-lg);
  border-radius: var(--radius);
  background-color: #fff;
  border: 1px solid var(--color-cream-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tax-card:hover {
  border-color: rgba(201, 169, 74, 0.5);
  box-shadow: var(--shadow-soft);
}
.tax-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-cream-dark);
}
.tax-card__mark {
  position: relative;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-gold-deep);
}
.tax-card__mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  opacity: 0.45;
}
.tax-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--color-ink);
  margin-right: auto;
}
.tax-card__count {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-gold-deep);
  background-color: rgba(201, 169, 74, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
/* Chips inside taxonomy cards. */
.tax-card .chip {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
}

/* ==========================================================================
   4. THERAPY SEGMENTS  (forest)
   ========================================================================== */
.pr-therapies {
  background-color: var(--color-forest);
  color: var(--color-text-light);
  padding-block: var(--space-lg) var(--space-2xl);
}
.pr-therapies .eyebrow { color: var(--color-gold); }
.pr-therapies__header {
  max-width: 60ch;
  margin-bottom: var(--space-xl);
}
.pr-therapies__intro {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.6vw + 0.9rem, 1.75rem);
  line-height: 1.3;
  color: var(--color-text-light);
}

/* ==========================================================================
   5. PACKAGING  (cream)
   ========================================================================== */
.pr-packaging {
  background-color: var(--color-cream);
  color: var(--color-ink);
  padding-block: var(--space-lg) var(--space-2xl);
}
.pr-packaging__header {
  max-width: 60ch;
  margin-bottom: var(--space-xl);
}
.pr-packaging__intro {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.6vw + 0.9rem, 1.75rem);
  line-height: 1.3;
  color: var(--color-ink);
}

/* ==========================================================================
   6. DEMAND-SENSING / REQUEST A MEETING  (forest) — key CTA
   ========================================================================== */
.pr-demand {
  position: relative;
  overflow: hidden;
  background-color: var(--color-forest);
  color: var(--color-text-light);
  padding-block: var(--space-2xl) var(--space-3xl);
}
.pr-demand__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 100% at 50% 0%, rgba(201, 169, 74, 0.12) 0%, rgba(201, 169, 74, 0) 55%);
}
.pr-demand__inner {
  position: relative;
  z-index: 1;
  max-width: 56ch;
  text-align: center;
  margin-inline: auto;
}
.pr-demand .eyebrow { color: var(--color-gold); }
.pr-demand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw + 0.75rem, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.pr-demand__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.7vw + 0.9rem, 1.2rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-text-light) 70%, var(--color-text-muted-dark) 30%);
  margin-bottom: var(--space-xl);
}
.pr-demand__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}
/* Gold-outline button reads clearly on the forest surface. */
.pr-demand .btn-secondary { color: var(--color-gold); }
.pr-demand .btn-secondary:hover { color: var(--color-forest); }

/* ==========================================================================
   7. CLOSING CTA  (forest, flows into footer)
   ========================================================================== */
.pr-closing {
  background-color: var(--color-forest);
  color: var(--color-text-light);
  padding-block: var(--space-2xl) var(--space-3xl);
}
.pr-closing__inner { text-align: center; }
.pr-closing .eyebrow { color: var(--color-gold); }
.pr-closing__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw + 0.75rem, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.pr-closing__line {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.7vw + 0.9rem, 1.2rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text-light) 70%, var(--color-text-muted-dark) 30%);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .tax-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pr-flagship__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .pr-flagship__aside { max-width: 460px; }
}
@media (max-width: 620px) {
  .tax-grid { grid-template-columns: 1fr; }
  .pr-demand__cta .btn,
  .pr-closing__cta .btn { width: 100%; }
}
