/* ============================================================
   ventures.css — Marinox Group

   Rebuilt per the Marinox Audit findings + accepted enhancements.
   Depends on: styles.css (global tokens, nav, footer, reset),
               cursor.css (custom cursor system)

   Audit fixes addressed:
   [F1] V-CODA H2 italic-noun tic → color-only span
   [F2] V-CODA sub-CTA leftover margin-left zeroed
   [F3] MARIIX panel DOM order notes (aria-hidden canvas)
   [F4] vp-list: <ul><li> → semantic <dl><dt><dd>
   [F5] V-COMPARE: div[role=table] → real <table>
   [F6] vp-role: <br/> removed, 22ch cap handles wrap
   [F7] v-index-cell-link whole-cell clickability
   [F8] Canvas captions verified accurate
   [F9] v-panel-media: <div> → <figure> + <figcaption>
   [F10] Hero em-tag use confirmed editorial (not H2 tic)

   Enhancements:
   [E1] V-INDEX 3-segment progress glyphs
   [E2] V-INDEX "Compare all three →" skip link
   [E3] V-COMPARE accent top-border on column headers
   [E4] V-CODA tightened copy + standalone closing line
   [E5] Mobile V-COMPARE data-label venture kickers

   Palette: per-venture scoped --acc
     MARVEX gold  #d4a832  (Foundation)
     MARIIX cyan  #3ecfcf  (Destination)
     OCEION purple #9b6fc9 (Digital)
   ============================================================ */

.ventures-page {
  --prose-strong: rgba(200,216,222,.88);
  --prose-body:   rgba(200,216,222,.82);
  --prose-dim:    rgba(200,216,222,.62);
  --rule:         rgba(200,216,222,.10);
  --rule-strong:  rgba(200,216,222,.18);
  --c-marvex:   #d4a832;
  --c-mariix:   #3ecfcf;
  --c-oceion:   #9b6fc9;
}

/* ─── V-HERO ────────────────────────────────────────── */
.v-hero {
  padding: calc(var(--nav-h) + 4.5rem) 0 4.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.v-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
.v-crumbs {
  font-family: var(--fb);
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--prose-dim);
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: 2.5rem;
}
.v-crumbs a {
  color: var(--prose-dim);
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.v-crumbs a:hover { color: var(--acc); border-bottom-color: rgba(62,207,207,.5); }
.v-crumbs .sep { opacity: .4; }
.v-crumbs .here { color: var(--prose-strong); }

.v-hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: end;
}
.v-hero-eyebrow {
  font-family: var(--fb);
  font-size: .7rem; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 1.2rem;
  display: inline-flex; align-items: center; gap: .8rem;
}
.v-hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--acc);
  opacity: .6;
}
.v-hero-title {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.02em;
  color: #e8f0f3;
}
.v-hero-title .a { color: var(--acc); font-style: normal; }
.v-hero-lede {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.55;
  color: var(--prose-strong);
  max-width: 52ch;
  margin-top: .5rem;
}
.v-hero-lede em { color: var(--acc); font-style: italic; }

/* ─── V-INDEX ───────────────────────────────────────── */
.v-index {
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
}
.v-index-inner { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
.v-index-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 3.5rem;
  align-items: baseline;
}
.v-index-kicker {
  font-family: var(--fb);
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--prose-dim);
}
.v-index-kicker::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--rule-strong);
  margin-right: .8rem;
  vertical-align: middle;
}

/* [E2] header right side now holds desc + skip-link */
.v-index-head-right {
  display: flex; flex-direction: column; gap: 1.4rem;
  align-items: flex-start;
}
.v-index-desc {
  font-family: var(--fb);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--prose-body);
  max-width: 56ch;
}
/* [E2] Skip-to-compare link */
.v-index-skip {
  font-family: var(--fb);
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--prose-dim);
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color .25s, gap .25s, border-color .25s;
}
.v-index-skip:hover, .v-index-skip:focus-visible {
  color: var(--acc);
  border-bottom-color: rgba(62,207,207,.5);
  gap: 1rem;
}
.v-index-skip .arr { transition: transform .25s; }
.v-index-skip:hover .arr { transform: translateX(3px); }

/* The map itself */
.v-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.v-index-cell {
  padding: 2.2rem 2rem 2rem;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 1.1rem;
  color: inherit;
  transition: background .3s ease;
  position: relative;
}
.v-index-cell:last-child { border-right: none; }
.v-index-cell:hover,
.v-index-cell:focus-within { background: rgba(255,255,255,.012); }
.v-index-cell[data-v="marvex"]:hover .vi-num { color: var(--c-marvex); }
.v-index-cell[data-v="mariix"]:hover .vi-num { color: var(--c-mariix); }
.v-index-cell[data-v="oceion"]:hover .vi-num { color: var(--c-oceion); }

.vi-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.vi-num {
  font-family: var(--fb);
  font-size: .72rem; letter-spacing: .28em;
  color: var(--prose-dim);
  transition: color .3s ease;
}
.vi-force {
  font-family: var(--fb);
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--prose-dim);
}

/* [E1] 3-segment progress glyph in V-INDEX cells (mirrors V-PANEL .bar) */
.vi-progress {
  display: flex; gap: 4px;
  margin: -.4rem 0 .2rem;
}
.vi-progress span {
  flex: 0 0 22px;
  height: 1px;
  background: var(--rule-strong);
  transition: background .3s ease;
}
.v-index-cell[data-v="marvex"] .vi-progress span:nth-child(1) { background: var(--c-marvex); }
.v-index-cell[data-v="mariix"] .vi-progress span:nth-child(1),
.v-index-cell[data-v="mariix"] .vi-progress span:nth-child(2) { background: var(--c-mariix); }
.v-index-cell[data-v="oceion"] .vi-progress span { background: var(--c-oceion); }

.vi-wordmark {
  font-family: var(--fd);
  font-weight: 400;
  font-size: clamp(2.6rem, 3.8vw, 3.4rem);
  letter-spacing: .06em;
  line-height: .95;
  color: #e8f0f3;
  margin-top: .3rem;
}
.v-index-cell[data-v="marvex"] .vi-wordmark-accent { color: var(--c-marvex); }
.v-index-cell[data-v="mariix"] .vi-wordmark-accent { color: var(--c-mariix); }
.v-index-cell[data-v="oceion"] .vi-wordmark-accent { color: var(--c-oceion); }

.vi-role {
  font-family: var(--fd);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--prose-strong);
  line-height: 1.45;
}
.vi-one {
  font-family: var(--fb);
  font-size: .96rem;
  line-height: 1.7;
  color: var(--prose-body);
}
.vi-link {
  font-family: var(--fb);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  transition: gap .3s ease;
  /* Raise above the full-cell overlay so hover/cursor-label fires on the link only.
     Whole-cell clickability is preserved by the overlay underneath. */
  position: relative;
  z-index: 2;
  width: fit-content;  /* keep hover region tight to the visible text */
}
.v-index-cell[data-v="marvex"] .vi-link { color: var(--c-marvex); }
.v-index-cell[data-v="mariix"] .vi-link { color: var(--c-mariix); }
.v-index-cell[data-v="oceion"] .vi-link { color: var(--c-oceion); }
.v-index-cell:hover .vi-link,
.v-index-cell:focus-within .vi-link { gap: 1rem; }
.vi-link-arr { transition: transform .3s ease; }
.v-index-cell:hover .vi-link-arr { transform: translateX(4px); }

.v-index-cell-link {
  position: absolute; inset: 0;
  z-index: 1;
}
.v-index-cell-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -8px;
}

/* ─── V-PANEL ───────────────────────────────────────── */
.v-panel {
  padding: 6.5rem 0 7rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.v-panel[data-v="marvex"] { --acc: var(--c-marvex); background: #070e14; }
.v-panel[data-v="mariix"] { --acc: var(--c-mariix); background: #050f17; }
.v-panel[data-v="oceion"] { --acc: var(--c-oceion); background: #070915; }

.v-panel-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  gap: 4rem;
  align-items: start;
}
.v-panel[data-v="marvex"] .v-panel-inner,
.v-panel[data-v="oceion"] .v-panel-inner {
  grid-template-columns: 5fr 7fr;
}
.v-panel[data-v="mariix"] .v-panel-inner {
  grid-template-columns: 7fr 5fr;
}
.v-panel[data-v="mariix"] .v-panel-text  { order: 2; }
.v-panel[data-v="mariix"] .v-panel-media { order: 1; }

.vp-topline {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--fb);
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--prose-dim);
  margin-bottom: 1.8rem;
}
.vp-topline .n { color: var(--acc); }
.vp-topline .bar { flex: 0 0 28px; height: 1px; background: var(--acc); opacity: .5; }

.vp-wordmark {
  font-family: var(--fd);
  font-weight: 400;
  font-size: clamp(4rem, 7.5vw, 6.8rem);
  line-height: .92;
  letter-spacing: .04em;
  color: #e8f0f3;
  margin-bottom: .9rem;
}
.vp-wordmark .dot { color: var(--acc); }

/* [F6] role no longer relies on <br/>; 22ch cap handles wrap naturally */
.vp-role {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  line-height: 1.35;
  color: var(--prose-strong);
  margin-bottom: 1.8rem;
  max-width: 22ch;
}

.vp-body {
  font-family: var(--fb);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--prose-body);
  max-width: 46ch;
  margin-bottom: 1.1rem;
}

/* [F4] semantic dl replaces ul. Layout identical, semantics cleaner.
   FIX: widen kicker column so "PARTNERS" / "HORIZON" don't overflow into <dd>. */
.vp-list {
  margin: 2rem 0 2.2rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 1.4rem;
  row-gap: 0;
}
.vp-list dt, .vp-list dd {
  padding: .95rem 0;
  border-bottom: 1px solid var(--rule);
}
.vp-list dt {
  font-family: var(--fb);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acc);
  padding-top: 1.07rem;     /* baseline-align with body text */
  white-space: nowrap;       /* belt + braces against any future wrap */
}
.vp-list dd {
  font-family: var(--fb);
  font-size: .95rem;
  line-height: 1.55;
  color: var(--prose-body);
}

.vp-cta {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .95rem 1.6rem .95rem 1.8rem;
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  color: var(--acc);
  font-family: var(--fb);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
  background: transparent;
}
.vp-cta:hover, .vp-cta:focus-visible {
  background: var(--acc); color: #06131b; border-color: var(--acc);
}
.vp-cta .arr { transition: transform .3s ease; }
.vp-cta:hover .arr { transform: translateX(4px); }

.vp-sub-cta {
  display: inline-flex; gap: .7rem;
  margin-left: 1.4rem;
  font-family: var(--fb);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--prose-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: .3rem;
  transition: color .3s, border-color .3s;
}
.vp-sub-cta:hover { color: var(--prose-strong); border-color: var(--rule-strong); }

/* [F9] semantic figure/figcaption for canvas + caption */
.v-panel-media {
  position: relative;
  aspect-ratio: 7 / 6;
  min-height: 440px;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.015);
  overflow: hidden;
  margin: 0;  /* reset figure default */
}
.v-panel-media canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.v-panel-media::before,
.v-panel-media::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent);
  pointer-events: none;
}
.v-panel-media::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.v-panel-media::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.vpm-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .75rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--fb);
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--prose-dim);
  background: linear-gradient(to top, rgba(3,8,12,.72), rgba(3,8,12,0));
  pointer-events: none;
  margin: 0;
}
.vpm-caption .c-accent { color: var(--acc); }

/* ─── V-COMPARE ─────────────────────────────────────── */
.v-compare {
  padding: 6rem 0;
  border-bottom: 1px solid var(--rule);
}
.v-compare-inner { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
.v-compare-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 3rem;
  align-items: baseline;
}
.v-compare-title {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: #e8f0f3;
  max-width: 18ch;
}
.v-compare-desc {
  font-family: var(--fb);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--prose-body);
  max-width: 56ch;
}

/* [F5] real <table> with proper semantics replaces div role="table" */
.v-matrix {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--rule-strong);
  border-spacing: 0;
}
.v-matrix th, .v-matrix td {
  padding: 1.4rem 1.3rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--fb);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--prose-body);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.v-matrix th:last-child, .v-matrix td:last-child { border-right: none; }
.v-matrix tr:last-child th, .v-matrix tr:last-child td { border-bottom: none; }

/* Dimension column (row headers) */
.v-matrix th[scope="row"] {
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--prose-dim);
  background: rgba(255,255,255,.008);
  width: 200px;
}

/* Column header row */
.v-matrix thead th {
  font-family: var(--fb);
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--prose-dim);
  background: rgba(255,255,255,.015);
  padding: 1rem 1.3rem;
  /* [E3] subtle 1px top border in venture accent on column headers */
  border-top: 1px solid transparent;
}
.v-matrix thead th[data-v="marvex"] { border-top-color: var(--c-marvex); }
.v-matrix thead th[data-v="mariix"] { border-top-color: var(--c-mariix); }
.v-matrix thead th[data-v="oceion"] { border-top-color: var(--c-oceion); }

.vmh-venture {
  font-family: var(--fd);
  font-style: normal;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .05em;
  text-transform: none;
  color: #e8f0f3;
  display: block;
  margin-bottom: .2rem;
}
.v-matrix thead th[data-v="marvex"] .vmh-venture { color: var(--c-marvex); }
.v-matrix thead th[data-v="mariix"] .vmh-venture { color: var(--c-mariix); }
.v-matrix thead th[data-v="oceion"] .vmh-venture { color: var(--c-oceion); }

/* ─── V-CODA ────────────────────────────────────────── */
.v-coda { padding: 7rem 0 8rem; }
.v-coda-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: left;
}
.v-coda-eyebrow {
  font-family: var(--fb);
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 1.4rem;
  display: block;
}
/* [F1] FIX italic-noun H2 voice tic.
   Was: <em>One continuum.</em> (italic + accent) — exact pattern audit warned against.
   Now: color-only span (.a) matching the hero pattern. No italic. */
.v-coda-title {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: #e8f0f3;
  margin-bottom: 1.8rem;
}
.v-coda-title .a { color: var(--acc); font-style: normal; }

/* [E4] coda compressed to one tighter paragraph */
.v-coda-body {
  font-family: var(--fb);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--prose-body);
  margin-bottom: 1.2rem;
}
/* [E4] standalone closing line — single, harder landing */
.v-coda-close {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--prose-strong);
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
}

.v-coda-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
/* [F2] zero out the leftover margin-left when sub-cta lives in coda links */
.v-coda-links .vp-sub-cta { margin-left: 0; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 1020px) {
  .v-hero-inner, .v-index-inner, .v-panel-inner, .v-compare-inner {
    padding-left: 1.5rem; padding-right: 1.5rem;
  }
  .v-hero-grid, .v-index-head, .v-compare-head { grid-template-columns: 1fr; gap: 1.8rem; }
  .v-hero-grid { align-items: start; }
  .v-index-grid { grid-template-columns: 1fr; }
  .v-index-cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .v-index-cell:last-child { border-bottom: none; }
  .v-panel { padding: 4.5rem 0 5rem; }
  .v-panel[data-v="marvex"] .v-panel-inner,
  .v-panel[data-v="mariix"] .v-panel-inner,
  .v-panel[data-v="oceion"] .v-panel-inner {
    grid-template-columns: 1fr;
  }
  .v-panel[data-v="mariix"] .v-panel-text  { order: 1; }
  .v-panel[data-v="mariix"] .v-panel-media { order: 2; }
  .v-panel-media { min-height: 340px; aspect-ratio: 5/4; }

  /* [F5/E5] Mobile compare table — collapse rows + surface venture name */
  .v-matrix, .v-matrix thead, .v-matrix tbody,
  .v-matrix tr, .v-matrix th, .v-matrix td { display: block; width: 100%; }
  .v-matrix thead { display: none; }
  .v-matrix tr {
    border-bottom: 1px solid var(--rule-strong);
    padding: 0;
  }
  .v-matrix tr:last-child { border-bottom: none; }
  .v-matrix th[scope="row"] {
    width: auto; padding: 1rem 1.3rem;
    background: rgba(255,255,255,.02);
    font-size: .68rem; letter-spacing: .26em;
    border-bottom: 1px solid var(--rule);
    border-right: none;
  }
  .v-matrix td {
    padding: 1.1rem 1.3rem;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    position: relative;
  }
  .v-matrix tr td:last-child { border-bottom: none; }
  /* [E5] Surface venture name as a small accented kicker above each cell */
  .v-matrix td::before {
    content: attr(data-label);
    display: block;
    font-size: .58rem; letter-spacing: .28em; text-transform: uppercase;
    margin-bottom: .5rem;
    font-weight: 500;
  }
  .v-matrix td[data-label="MARVEX"]::before { color: var(--c-marvex); }
  .v-matrix td[data-label="MARIIX"]::before { color: var(--c-mariix); }
  .v-matrix td[data-label="OCEION"]::before { color: var(--c-oceion); }
}
