/* ============================================================
   Infoesearch homepage — hero variants + viz
   ============================================================ */

/* ----- Hero A — Authority Statement (default) ----- */
.hero-a {
  position: relative;
  min-height: 92vh;
  padding: 120px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-a__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 500;
  max-width: 14ch;
  margin: 0;
  text-wrap: balance;
}
.hero-a__title .it {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-300);
}
.hero-a__title .ac { color: var(--green); }
.hero-a__sub {
  max-width: 580px;
  margin-top: 36px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-300);
  font-weight: 300;
}
.hero-a__bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-top: 64px;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  align-items: end;
}
.hero-a__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-a__meta .stat__num { font-size: clamp(28px, 2.6vw, 40px); }
.hero-a__bg-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.hero-a__bg-marks .oct {
  position: absolute;
  width: 360px; height: 360px;
  border: 1px solid var(--hairline);
  clip-path: var(--oct-lg);
  opacity: 0.6;
}
.hero-a__bg-marks .oct--1 { top: 8%; right: -120px; width: 460px; height: 460px; }
.hero-a__bg-marks .oct--2 { bottom: -20%; right: 24%; width: 280px; height: 280px; opacity: 0.4; }
.hero-a__bg-marks .oct--3 { top: 30%; right: 12%; width: 120px; height: 120px; background: var(--green); opacity: 0.04; border: none; }

/* ----- Hero B — Living Surface ----- */
.hero-b {
  position: relative;
  min-height: 92vh;
  padding: 100px 0 60px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-b { grid-template-columns: 1fr; }
}
.hero-b__copy h1 {
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
  max-width: 14ch;
}
.hero-b__copy .it { font-style: italic; font-weight: 300; color: var(--ink-300); }
.hero-b__copy .ac { color: var(--green); }
.hero-b__copy p {
  max-width: 520px;
  margin: 24px 0 32px;
  color: var(--ink-300);
  font-size: 17px;
  line-height: 1.55;
}
.hero-b__surface {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  margin-left: auto;
}

/* Live surface inner */
.surface-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.surface-tile {
  position: relative;
  background: var(--ink-850);
  clip-path: var(--oct);
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.surface-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.surface-tile__name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.surface-tile__name b { color: var(--pcolor); margin-right: 4px; }
.surface-tile__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pcolor);
  box-shadow: 0 0 8px var(--pcolor);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* tracker — bar viz */
.viz-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 100px;
  margin-top: 4px;
}
.viz-bars span {
  flex: 1;
  background: var(--pcolor);
  opacity: 0.85;
  animation: bars 2.4s ease-in-out infinite;
}
.viz-bars span:nth-child(2) { animation-delay: 0.15s; }
.viz-bars span:nth-child(3) { animation-delay: 0.3s; }
.viz-bars span:nth-child(4) { animation-delay: 0.45s; }
.viz-bars span:nth-child(5) { animation-delay: 0.6s; }
.viz-bars span:nth-child(6) { animation-delay: 0.75s; }
.viz-bars span:nth-child(7) { animation-delay: 0.9s; }
.viz-bars span:nth-child(8) { animation-delay: 1.05s; }
@keyframes bars {
  0%, 100% { height: 30%; }
  50% { height: 90%; }
}
.surface-tile__foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-300);
}
.surface-tile__foot b { color: var(--fg); font-weight: 500; }

/* subs — caption stream */
.viz-captions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.viz-captions .cap {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-200);
  display: flex;
  gap: 8px;
  opacity: 0;
  animation: capFade 8s ease-in-out infinite;
}
.viz-captions .cap small {
  color: var(--pcolor);
  font-weight: 500;
  flex-shrink: 0;
  width: 28px;
}
.viz-captions .cap:nth-child(1) { animation-delay: 0s; }
.viz-captions .cap:nth-child(2) { animation-delay: 1.6s; }
.viz-captions .cap:nth-child(3) { animation-delay: 3.2s; }
.viz-captions .cap:nth-child(4) { animation-delay: 4.8s; }
.viz-captions .cap:nth-child(5) { animation-delay: 6.4s; }
@keyframes capFade {
  0%, 8% { opacity: 0; transform: translateY(8px); }
  12%, 22% { opacity: 1; transform: translateY(0); }
  28%, 100% { opacity: 0.25; }
}

/* dubs — waveform */
.viz-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 80px;
  margin-top: 16px;
}
.viz-wave span {
  flex: 1;
  background: var(--pcolor);
  border-radius: 1px;
  animation: wave 1.4s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { height: 20%; }
  50% { height: 75%; }
}
.viz-wave span:nth-child(odd) { animation-delay: 0.1s; }
.viz-wave span:nth-child(3n) { animation-delay: 0.25s; }
.viz-wave span:nth-child(5n) { animation-delay: 0.4s; }

/* shield — radar */
.viz-radar {
  position: relative;
  width: 100%;
  height: 100px;
  margin-top: 4px;
}
.viz-radar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-ring {
  fill: none;
  stroke: var(--pcolor);
  opacity: 0.18;
  stroke-width: 1;
}
.radar-sweep {
  transform-origin: 50% 50%;
  animation: sweep 3.6s linear infinite;
}
@keyframes sweep {
  to { transform: rotate(360deg); }
}
.radar-dot {
  fill: var(--pcolor);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ----- Hero C — Manifesto Counter ----- */
.hero-c {
  position: relative;
  min-height: 92vh;
  padding: 100px 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-c__manifesto {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 22ch;
  margin: 0 0 64px;
}
.hero-c__manifesto .dim { color: var(--ink-500); }
.hero-c__manifesto .ac { color: var(--green); font-style: italic; font-weight: 300; }
.hero-c__counter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}
@media (max-width: 820px) {
  .hero-c__counter-row { grid-template-columns: 1fr 1fr; }
}
.hero-c__counter {
  padding: 16px 24px 16px 0;
  border-right: 1px solid var(--hairline);
}
.hero-c__counter:last-child { border-right: none; }
.hero-c__counter .stat__num { font-size: clamp(36px, 4vw, 56px); }
.hero-c__counter .stat__num .unit {
  font-size: 0.45em;
  color: var(--ink-400);
  font-weight: 300;
  margin-left: 4px;
}

/* ----- Hero D — Lattice ----- */
.hero-d {
  position: relative;
  min-height: 92vh;
  padding: 100px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-d { grid-template-columns: 1fr; }
}
.hero-d__copy h1 {
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}
.hero-d__copy .ac { color: var(--green); }
.hero-d__copy .it { font-style: italic; font-weight: 300; color: var(--ink-300); }
.hero-d__copy p {
  margin: 24px 0 32px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-300);
  max-width: 480px;
}

.lattice {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  margin-left: auto;
}
.lattice svg.lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.lattice__core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--ink-850);
  border: 1px solid var(--green);
  clip-path: var(--oct);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  z-index: 2;
  text-align: center;
}
.lattice__core small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-top: 4px;
  font-weight: 400;
}
.lattice__node {
  position: absolute;
  width: 152px;
  background: var(--ink-850);
  border: 1px solid var(--hairline-strong);
  clip-path: var(--oct);
  padding: 14px 16px;
  z-index: 1;
  transition: transform 220ms ease, border-color 220ms ease;
}
.lattice__node:hover {
  transform: scale(1.04);
  border-color: var(--pcolor);
}
.lattice__node-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.lattice__node-chip {
  width: 22px; height: 22px;
  background: var(--pcolor);
  clip-path: var(--oct-sm);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
}
.lattice__node-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
}
.lattice__node-name b { font-weight: 700; color: var(--pcolor); }
.lattice__node-desc {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  line-height: 1.4;
}

.lattice__node--tr { top: 6%; right: 4%; }
.lattice__node--br { bottom: 6%; right: 4%; }
.lattice__node--bl { bottom: 6%; left: 4%; }
.lattice__node--tl { top: 6%; left: 4%; }

/* Variant toggling — show only one hero */
[data-hero="a"] .hero-b, [data-hero="a"] .hero-c, [data-hero="a"] .hero-d { display: none; }
[data-hero="b"] .hero-a, [data-hero="b"] .hero-c, [data-hero="b"] .hero-d { display: none; }
[data-hero="c"] .hero-a, [data-hero="c"] .hero-b, [data-hero="c"] .hero-d { display: none; }
[data-hero="d"] .hero-a, [data-hero="d"] .hero-b, [data-hero="d"] .hero-c { display: none; }

/* ============================================================
   FRAMEWORK SECTION — 4 product tiles
   ============================================================ */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 820px) {
  .framework-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   OPERATING LAYER — diagrammatic
   ============================================================ */
.op-stack {
  border: 1px solid var(--hairline);
  background: var(--ink-850);
  padding: 8px;
}
.op-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--hairline);
}
.op-row:last-child { border-bottom: none; }
.op-row__label {
  padding: 24px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--hairline);
}
.op-row__cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.op-cell {
  padding: 24px 20px;
  border-right: 1px solid var(--hairline);
  font-size: 13.5px;
  line-height: 1.5;
}
.op-cell:last-child { border-right: none; }
.op-cell b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}
.op-cell--head {
  background: var(--ink-800);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
}
.op-cell--head .pmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.op-cell--head .pmark span {
  width: 18px; height: 18px;
  background: var(--pcolor);
  clip-path: var(--oct-sm);
  display: inline-block;
}
@media (max-width: 1024px) {
  .op-row { grid-template-columns: 1fr; }
  .op-row__label { border-right: none; border-bottom: 1px solid var(--hairline); }
  .op-row__cells { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PROOF — case study cards
   ============================================================ */
.proof-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1024px) {
  .proof-grid { grid-template-columns: 1fr; }
}
.proof-card {
  background: var(--ink-850);
  clip-path: var(--oct);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
}
.proof-card--hero {
  background: var(--ink-100);
  color: var(--ink-1000);
}
.proof-card--hero .stat__label,
.proof-card--hero .eyebrow { color: var(--ink-500); }
.proof-card__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
  flex: 1;
}
.proof-card__quote .it { font-style: italic; font-weight: 300; }
.proof-card__attrib {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.proof-card--hero .proof-card__attrib { border-top-color: var(--ink-200); }
.proof-card__avatar {
  width: 36px; height: 36px;
  background: var(--ink-700);
  clip-path: var(--oct-sm);
}
.proof-card--hero .proof-card__avatar { background: var(--ink-400); }
.proof-card__name {
  font-size: 13px;
  font-weight: 500;
}
.proof-card__role {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.08em;
}
.proof-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.proof-card__metric .stat__num { font-size: 32px; }

/* ============================================================
   INTELLIGENCE — research / thought leadership
   ============================================================ */
.intel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1024px) {
  .intel-grid { grid-template-columns: 1fr; }
}
.intel-card {
  background: transparent;
  border: 1px solid var(--hairline);
  clip-path: var(--oct);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
  transition: background 220ms ease;
}
.intel-card:hover { background: var(--ink-850); }
.intel-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.intel-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  flex: 1;
  text-wrap: balance;
}
.intel-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 820px) {
  .ind-grid { grid-template-columns: 1fr 1fr; }
}
.ind-card {
  background: var(--ink-850);
  clip-path: var(--oct);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: background 220ms ease;
}
.ind-card:hover { background: var(--ink-800); }
.ind-card h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.ind-card ul {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ind-card ul li::before { content: "— "; color: var(--accent); }

/* ============================================================
   ROADMAP / OUR EVOLUTION
   ============================================================ */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 820px) {
  .roadmap { grid-template-columns: 1fr 1fr; }
}
.roadmap__phase {
  padding: 32px 24px;
  border-right: 1px solid var(--hairline);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.roadmap__phase:last-child { border-right: none; }
.roadmap__phase::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--ink-500);
  clip-path: var(--oct-sm);
}
.roadmap__phase--active::before { background: var(--green); }
.roadmap__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.roadmap__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.roadmap__phase--active .roadmap__title { color: var(--green); }
.roadmap__phase ul {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-200);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: 120px 0 140px;
  background: var(--ink-1000);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, var(--green-glow), transparent 70%);
  opacity: 0.45;
}
.final-cta__inner {
  position: relative;
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(48px, 7vw, 112px);
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 16ch;
  margin: 0 auto;
}
.final-cta h2 .it { color: var(--ink-400); font-style: italic; font-weight: 300; }
.final-cta p {
  max-width: 540px;
  margin: 28px auto 36px;
  color: var(--ink-300);
  font-size: 18px;
  line-height: 1.5;
}
.final-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
