/* =============================================================================
   VERTEX DIMENSION — Sections
   Hero stage and per-section composition. Parts meet the page here.
   ========================================================================== */

/* =============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 5vw, 4rem);
  align-items: center;
}
/* Generative logo stage */
.hero__stage {
  position: relative;
  order: -1;
  aspect-ratio: 1;
  width: min(100%, 560px);
  margin-inline: auto;
}

/* Desktop: text in flow; burst absolute right — decoupled from wordmark width */
@media (min-width: 1040px) {
  /* Inner static: burst centers against viewport, not text block height */
  .hero__inner {
    display: block;
    position: static;
  }
  .hero__content {
    max-width: 56%;
    position: relative;
    z-index: 2;
  }
  /* Wordmark width: content box — mask clips to glyphs, not column */
  .hero__title {
    width: max-content;
    max-width: 80vw;
  }
  .hero__stage {
    position: absolute;
    top: 50%;
    right: 1vw;
    transform: translateY(-50%);
    order: 0;
    width: min(46vw, 760px);
    height: min(46vw, 760px);
    margin: 0;
    z-index: 1;
  }
}
#logo-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out) 0.2s;
}
.is-loaded #logo-canvas {
  opacity: 1;
}

/* Hero text */
.hero__content {
  position: relative;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: var(--space-5);
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--weight-thin);
  line-height: 0.96;
  letter-spacing: var(--track-display);
  color: var(--ink-100);
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .word {
  display: inline-block;
}
.hero__statement {
  margin-top: clamp(1.75rem, 1.2rem + 1.4vw, 2.75rem);
  max-width: 34ch;
  font-size: var(--fs-lead);
  font-weight: var(--weight-light);
  line-height: 1.55;
  color: var(--ink-070);
}
.hero__meta {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  align-items: center;
}
.hero__meta .dot-sep {
  width: 3px;
  height: 3px;
  background: var(--ink-035);
  border-radius: 50%;
}

/* Hero readouts — corner coordinates, mono telemetry */
.hero__readout {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.5rem, 3vh, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-035);
  pointer-events: none;
}
.hero__readout span {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero__readout {
    display: none;
  }
}

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-050);
}
.scroll-cue__bar {
  display: block;
  width: 38px;
  height: 1px;
  background: var(--ink-020);
  position: relative;
  overflow: hidden;
}
.scroll-cue__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--vd-white);
  transform: translateX(-100%);
  animation: cue-sweep 2.6s var(--ease-in-out) infinite;
}

/* =============================================================================
   Statements — the large declarative voice (Mission + section headlines)
   ========================================================================== */
.statement-xl {
  font-size: clamp(2.7rem, 1.5rem + 6vw, 7rem);
  font-weight: var(--weight-thin);
  line-height: 1.02;
  letter-spacing: var(--track-display);
  color: var(--ink-100);
  max-width: 16ch;
}
.statement-xl em {
  font-style: normal;
  color: var(--ink-035);
}
.statement-lg {
  font-size: var(--fs-h2);
  font-weight: var(--weight-thin);
  line-height: 1.12;
  letter-spacing: var(--track-tight);
  color: var(--ink-100);
  max-width: 20ch;
}
.statement-lg em {
  font-style: normal;
  color: var(--ink-035);
}

/* =============================================================================
   THESIS / AXIOM
   ========================================================================== */
.thesis__statement {
  font-size: var(--fs-h1);
  font-weight: var(--weight-thin);
  line-height: 1.1;
  letter-spacing: var(--track-tight);
  color: var(--ink-100);
  max-width: 22ch;
}
.thesis__statement em {
  font-style: normal;
  color: var(--ink-035);
}
.thesis__support {
  font-size: var(--fs-lead);
  color: var(--ink-070);
  font-weight: var(--weight-light);
}
.thesis__support + .thesis__support {
  margin-top: var(--space-5);
}

/* =============================================================================
   CORE — single core radiating to three lines
   ========================================================================== */
.core {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 920px) {
  .core {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
.core__viz {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 440px);
  margin-inline: auto;
}
#core-canvas {
  width: 100%;
  height: 100%;
}
.core__title {
  font-size: var(--fs-h2);
  font-weight: var(--weight-light);
  color: var(--ink-100);
  margin-bottom: var(--space-5);
}
.core__copy {
  color: var(--ink-070);
  font-size: var(--fs-lead);
  font-weight: var(--weight-light);
  max-width: 46ch;
}
.core__copy + .core__copy {
  margin-top: var(--space-4);
}

/* =============================================================================
   METRICS section intro
   ========================================================================== */
.metrics-note {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-035);
}

/* =============================================================================
   CTA band
   ========================================================================== */
.cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.cta__title {
  font-size: var(--fs-h1);
  font-weight: var(--weight-thin);
  letter-spacing: var(--track-tight);
  color: var(--ink-100);
  max-width: 18ch;
}
.cta__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* =============================================================================
   Footer composition
   ========================================================================== */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 36ch;
}
.footer__mark {
  width: 40px;
  height: 40px;
}
.footer__statement {
  color: var(--ink-050);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-035);
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-4);
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__col a,
.footer__col li {
  color: var(--ink-070);
  font-size: var(--fs-small);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover {
  color: var(--ink-100);
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  color: var(--ink-035);
}
