/* ═══════════════════════════════════════════════════════════
   Get Started Ventures · v1 — "Index"
   Grille suisse visible — document institutionnel.
   Flux vertical, filets 1px tracés au scroll, tableaux alignés.
   Palette monde froid clair : bleu-gris doux.
   Geist + Geist Mono.
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:      #F8FAFC;
  --panel:   #D9EAFD;
  --line:    #BCCCDC;
  --muted:   #5f6b7a;
  --ink:     #1d2530;
  --accent:  #4a6fa5;

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* Grille */
  --gutter:      clamp(16px, 3vw, 40px);
  --col-width:   calc((100% - var(--gutter) * 11) / 12);
  --section-px:  clamp(24px, 5vw, 80px);
  --section-py:  clamp(64px, 10vh, 120px);
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body { overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

ul, ol { list-style: none; }

/* ── Typography tokens ──────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

::selection { background: var(--panel); color: var(--ink); }

/* ── Scroll progress bar ────────────────────────────────── */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transform-origin: left;
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px var(--section-px);
}

.header-rule {
  height: 1px;
  background: var(--line);
  /* drawn by JS — scaleX 0 → 1 */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.header-rule.is-drawn { transform: scaleX(1); }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.logo-mark { color: var(--accent); flex-shrink: 0; }
.logo-v    { color: var(--accent); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 36px);
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Apply button */
.btn-apply {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-apply:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-apply:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ══════════════════════════════════════════════════════════
   SECTION SKELETON — shared across all sections
══════════════════════════════════════════════════════════ */
.section {
  position: relative;
  padding: var(--section-py) 0 0;
}
.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--section-px) var(--section-py);
}

/* Section header — num + horizontal rule + label */
.section-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.section-num {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.section-label { color: var(--muted); }

/* Horizontal rule in section header — traced by JS */
.section-rule-h {
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.section-rule-h.is-drawn { transform: scaleX(1); }

/* Bottom horizontal rule of each section */
.section-rule-bottom {
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.section-rule-bottom.is-drawn { transform: scaleX(1); }

/* Vertical rules — traced by JS — scaleY 0 → 1 */
.js-rule-v {
  width: 1px;
  background: var(--line);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .7s var(--ease-out);
}
.js-rule-v.is-drawn { transform: scaleY(1); }

/* Horizontal rules inside tables */
.table-rule-h {
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.table-rule-h.is-drawn { transform: scaleX(1); }

.thead-rule td { padding: 0 !important; border: 0 !important; }

/* Reveal animations */
.reveal-row,
.reveal-col {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal-row.is-visible,
.reveal-col.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero-section {
  padding-top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

/* Visible column grid lines */
.grid-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns:
    var(--section-px)
    1fr 1fr 1fr 1fr
    var(--section-px);
  z-index: 0;
}
.grid-col-line {
  border-left: 1px solid var(--line);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s var(--ease-out);
}
.grid-col-line.gcl-1 { grid-column: 2; transition-delay: .0s; }
.grid-col-line.gcl-2 { grid-column: 3; transition-delay: .1s; }
.grid-col-line.gcl-3 { grid-column: 4; transition-delay: .2s; }
.grid-col-line.gcl-4 { grid-column: 5; transition-delay: .3s; }
.grid-col-line.is-drawn { transform: scaleY(1); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(20px, 3vh, 32px);
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--section-py) + 80px) var(--section-px) var(--section-py);
}

.hero-kicker {
  color: var(--muted);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: clamp(52px, 9vw, 144px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--ink);
}
.hero-line { display: block; }

.hero-sub {
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateX(2px);
}
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary-lg { padding: 17px 34px; font-size: 15px; }

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ══════════════════════════════════════════════════════════
   01 · FIRM
══════════════════════════════════════════════════════════ */
.firm-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  align-items: start;
}

.firm-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 52ch;
}

.firm-text {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: 24px;
}

.firm-signature {
  color: var(--accent);
  letter-spacing: .1em;
}

/* Stats panel */
.firm-stats {
  position: relative;
  padding-left: 40px;
}
.stats-rule-v {
  position: absolute;
  left: 0; top: 0; bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}

.stat-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-cell:nth-child(even) { border-right: 0; }
.stat-cell:nth-child(n+3) { border-bottom: 0; }

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--accent);
  line-height: 1;
  text-transform: none;
}

.stat-lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   02 · METHOD
══════════════════════════════════════════════════════════ */
.method-super {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: clamp(32px, 5vh, 56px);
  max-width: 40ch;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.method-step {
  position: relative;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: background .2s ease;
}
.method-step:last-child { border-right: 0; }
.method-step:hover { background: var(--panel); }

.step-rule-v {
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
}

.step-when {
  color: var(--muted);
}

.step-num {
  color: var(--accent);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
  font-family: var(--font-mono);
  line-height: 1;
}

.step-title {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 4px;
}

.step-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════════
   03 · SECTORS
══════════════════════════════════════════════════════════ */
.sectors-title {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: clamp(28px, 4vh, 48px);
  max-width: 40ch;
}

.sectors-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.sectors-table th {
  text-align: left;
  padding: 12px 16px 12px 0;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.sectors-table th:first-child { width: 60px; }
.sectors-table th:last-child { padding-right: 0; }

.sector-row td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sector-row:last-child td { border-bottom: 0; }

.row-num {
  color: var(--accent);
  width: 60px;
  padding-top: 20px;
}

.row-name {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  color: var(--ink);
  padding-right: 32px;
}

.row-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
}

.sector-row {
  transition: background .15s ease;
  cursor: default;
}
.sector-row:hover td { background: var(--panel); }
.sector-row:hover td:first-child { background: var(--panel); }

.sectors-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   04 · PORTFOLIO
══════════════════════════════════════════════════════════ */
.portfolio-title {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: clamp(28px, 4vh, 48px);
  max-width: 40ch;
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.portfolio-table th {
  text-align: left;
  padding: 12px 16px 12px 0;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.portfolio-table th:first-child { width: 60px; }
.portfolio-table th:last-child { padding-right: 0; }

.portfolio-row {
  cursor: pointer;
  transition: background .15s ease;
}
.portfolio-row:hover td { background: var(--panel); }
.portfolio-row:focus-visible td { background: var(--panel); outline: none; }
.portfolio-row:focus-visible { outline: 2px solid var(--accent); }

.portfolio-row td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.portfolio-row:last-child td { border-bottom: 0; }

.row-num   { width: 60px; color: var(--accent); }
.row-name  { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.row-desc  { font-size: 13px; color: var(--muted); max-width: 36ch; }
.row-sector { font-size: 11px; color: var(--muted); padding-right: 24px; }
.row-year  { font-size: 11px; color: var(--muted); text-align: right; padding-right: 0; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: .1em;
  border: 1px solid;
  white-space: nowrap;
}
.badge-launched {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.badge-pipeline {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

.portfolio-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.portfolio-link {
  color: var(--accent);
  transition: opacity .2s ease;
}
.portfolio-link:hover { opacity: .7; }

/* ══════════════════════════════════════════════════════════
   05 · THREE PATHS
══════════════════════════════════════════════════════════ */
.paths-title {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: clamp(28px, 4vh, 48px);
  max-width: 50ch;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  transition: background .2s ease;
  overflow: hidden;
}
.path-card:last-child { border-right: 0; }
.path-card:hover { background: var(--panel); }
.path-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.path-rule-v {
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
}

.path-num {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.path-label {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.2;
}

.path-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.path-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.path-cta {
  display: block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .12em;
  transition: transform .2s var(--ease-out);
}
.path-card:hover .path-cta { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════
   CTA CLOSER
══════════════════════════════════════════════════════════ */
.cta-section { background: var(--panel); }
.cta-inner { max-width: 1440px; }

.cta-title {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 20ch;
}

.cta-body {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 56ch;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-email {
  color: var(--accent);
  transition: opacity .2s ease;
}
.cta-email:hover { opacity: .7; }

.cta-note { margin-top: 0; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: var(--bg);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 80px) var(--section-px) clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.footer-logo { color: var(--bg); }
.footer-logo .logo-mark { color: var(--panel); }
.footer-logo .logo-v    { color: var(--panel); }

.footer-tagline {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(248, 250, 252, .6);
  max-width: 36ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 500;
  color: rgba(248, 250, 252, .45);
  margin-bottom: 16px;
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a,
.footer-col span {
  font-size: 13px;
  color: rgba(248, 250, 252, .75);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--bg); }
.footer-col a:focus-visible { outline: 2px solid var(--panel); outline-offset: 2px; }

.footer-base {
  border-top: 1px solid rgba(248, 250, 252, .12);
}
.footer-base-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px var(--section-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-base .mono { color: rgba(248, 250, 252, .35); }
.footer-sign { color: rgba(248, 250, 252, .35); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Medium tablets */
@media (max-width: 1100px) {
  .firm-grid { grid-template-columns: 1fr; gap: 48px; }
  .firm-stats { padding-left: 0; }
  .stats-rule-v { display: none; }

  .method-list { grid-template-columns: repeat(2, 1fr); }
  .method-step:nth-child(2) { border-right: 0; }
  .method-step:nth-child(3) { border-top: 1px solid var(--line); }
  .method-step:nth-child(4) { border-top: 1px solid var(--line); border-right: 0; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols  { grid-template-columns: repeat(2, 1fr); }
}

/* Hide some table columns on medium */
@media (max-width: 900px) {
  .col-hide-md { display: none; }
  .header-inner { grid-template-columns: auto auto auto; }
  .site-nav { gap: 12px; }
  .nav-link { font-size: 12px; }
}

/* Tablets */
@media (max-width: 768px) {
  :root { --section-px: 20px; }

  .header-inner { padding: 14px var(--section-px); }
  .site-nav { display: none; }

  .hero-title { font-size: clamp(44px, 12vw, 80px); }

  .firm-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .method-list { grid-template-columns: 1fr; border-right: 0; }
  .method-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .method-step:last-child { border-bottom: 0; }
  .method-step:nth-child(3),
  .method-step:nth-child(4) { border-top: 0; }

  .paths-grid { grid-template-columns: 1fr; }
  .path-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .path-card:last-child { border-bottom: 0; }

  .portfolio-table .col-hide-sm,
  .sectors-table .col-hide-sm { display: none; }

  .cta-title { font-size: clamp(28px, 8vw, 52px); }
}

/* Mobile */
@media (max-width: 480px) {
  :root { --section-px: 16px; --section-py: clamp(48px, 8vh, 80px); }

  .btn-apply { padding: 7px 14px; font-size: 12px; }

  .hero-title { font-size: clamp(38px, 14vw, 64px); letter-spacing: -.025em; }
  .hero-sub   { font-size: 14px; }

  .firm-title { font-size: clamp(20px, 5vw, 28px); }

  .sectors-table th:nth-child(3),
  .sectors-table td:nth-child(3) { display: none; }
  .portfolio-table th:nth-child(4),
  .portfolio-table td:nth-child(4) { display: none; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-base-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Tiny */
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .logo-word    { font-size: 13px; }
  .cta-actions  { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════
   INNER PAGES — shared skeleton
   apply.html · portfolio.html · portfolio/<slug>.html
══════════════════════════════════════════════════════════ */

/* Main wrapper — offset header */
.inner-main {
  padding-top: clamp(72px, 10vh, 100px);
}

/* Inner hero — page title block */
.inner-hero {
  position: relative;
  padding: var(--section-py) 0 0;
}
.inner-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--section-px) var(--section-py);
}

.inner-title {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 20px;
}

.inner-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 60ch;
  margin-bottom: 20px;
}

.inner-meta {
  color: var(--muted);
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════════════════════
   APPLY PAGE
══════════════════════════════════════════════════════════ */
.apply-section { background: var(--bg); }
.apply-inner { max-width: 1440px; margin: 0 auto; }

/* Tabs */
.apply-tabs {
  display: flex;
  border: 1px solid var(--line);
  margin-bottom: 0;
}

.apply-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-sans);
  text-align: left;
  transition: background .2s ease, color .2s ease;
  position: relative;
}
.apply-tab:last-child { border-right: 0; }
.apply-tab:hover { background: var(--panel); color: var(--ink); }
.apply-tab.is-active {
  background: var(--ink);
  color: var(--bg);
}
.apply-tab.is-active .tab-num { color: var(--panel); }
.apply-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.tab-num { flex-shrink: 0; }
.tab-label { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }

/* Tab descriptions */
.tab-desc-wrap {
  min-height: 52px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.tab-desc {
  display: none;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 72ch;
}
.tab-desc.is-active { display: block; }

/* Form layout */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field-full { grid-column: 1 / -1; }

.field-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.field-req { color: var(--accent); }
.field-opt { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 10px; }

.field-input,
.field-textarea,
.field-select {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  line-height: 1.5;
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--line); }
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, .15);
}
.field-input:focus-visible,
.field-textarea:focus-visible,
.field-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-input.is-error,
.field-textarea.is-error,
.field-select.is-error { border-color: #c0392b; }

.field-textarea { resize: vertical; min-height: 120px; }

.field-error {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: #c0392b;
  text-transform: uppercase;
  min-height: 14px;
}

.select-wrap {
  position: relative;
}
.select-wrap .field-select { padding-right: 40px; cursor: pointer; }
.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Tab fieldsets */
.tab-fields { border: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.tab-fields:not(.is-active) { display: none; }
.tab-fields.is-active { display: flex; }

/* Form footer */
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.form-note { color: var(--muted); }
.form-submit { cursor: pointer; }
.form-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Confirmation */
.form-thanks {
  padding: 48px 0 24px;
}
.thanks-inner {
  max-width: 52ch;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.thanks-mark { color: var(--accent); }
.thanks-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.thanks-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   PORTFOLIO LIST PAGE
══════════════════════════════════════════════════════════ */
.pf-group-section { position: relative; padding: var(--section-py) 0 0; }

.pf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.pf-cards-pipeline {
  grid-template-columns: repeat(2, 1fr);
}

.pf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  transition: background .2s ease;
  overflow: hidden;
}
.pf-card:last-child { border-right: 0; }
.pf-card:hover { background: var(--panel); }
.pf-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.pf-card-rule-v {
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
}

.pf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.pf-card-num { color: var(--accent); }

.pf-card-name {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ink);
}

.pf-card-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.pf-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.pf-card-meta .mono { font-size: 10px; }

.pf-card-lede {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.pf-card-cta {
  display: block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .12em;
  transition: transform .2s var(--ease-out);
}
.pf-card:hover .pf-card-cta { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════
   PORTFOLIO DETAIL PAGES
══════════════════════════════════════════════════════════ */

/* Detail hero */
.detail-hero {
  position: relative;
  padding: var(--section-py) 0 0;
  background: var(--panel);
}
.detail-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--section-px) var(--section-py);
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}
.detail-breadcrumb a { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.detail-breadcrumb a:hover { color: var(--ink); }
.detail-breadcrumb a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.breadcrumb-sep { color: var(--line); font-size: 13px; }
.breadcrumb-current { font-size: 13px; color: var(--ink); font-weight: 500; }

.detail-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
}

.detail-num {
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
  padding-top: 4px;
  opacity: .35;
}

.detail-sector {
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}

.detail-name {
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
}

.detail-tagline {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  max-width: 52ch;
}

.detail-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
  padding-top: 8px;
}
.detail-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.detail-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-key { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact-val { font-size: 14px; font-weight: 600; color: var(--ink); }
.fact-val a { color: var(--accent); transition: opacity .2s ease; }
.fact-val a:hover { opacity: .7; }

/* Detail body */
.detail-body {
  position: relative;
  padding: var(--section-py) 0 0;
}
.detail-body-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--section-px) var(--section-py);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

/* Long-form content */
.detail-long {}

.detail-lede {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  max-width: 68ch;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.detail-long p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--ink);
  max-width: 70ch;
  margin-bottom: 20px;
}
.detail-long p:last-of-type { margin-bottom: 0; }

/* Detail sub-sections */
.detail-section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.detail-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Services pills */
.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-pill {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.detail-pill:hover { background: var(--panel); border-color: var(--accent); }

/* Leadership */
.detail-leadership {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.leadership-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.leadership-item:last-child { border-bottom: 0; }
.leadership-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.leadership-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Key figures / targets */
.detail-targets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.target-cell {
  padding: 20px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.target-cell:nth-child(even) { border-right: 0; }
.target-cell:nth-last-child(-n+2) { border-bottom: 0; }
.target-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--accent);
  line-height: 1;
  text-transform: none;
}
.target-lab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sidebar */
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}

.side-card {
  border: 1px solid var(--line);
  padding: 24px;
}

.side-card-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* At a glance dl */
.side-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.side-dl dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 12px;
}
.side-dl dd {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.side-dl dd:last-child { border-bottom: 0; }
.side-dl dd a { color: var(--accent); transition: opacity .2s ease; }
.side-dl dd a:hover { opacity: .7; }
.side-dl dd a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Other ventures in sidebar */
.side-others {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.side-other-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
}
.side-other-link:last-child { border-bottom: 0; }
.side-other-link:hover { color: var(--accent); }
.side-other-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.side-other-stage { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* "More ventures" grid at bottom of detail page */
.detail-more {
  position: relative;
  padding: var(--section-py) 0 0;
  background: var(--panel);
}
.detail-more-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--section-px) var(--section-py);
}

.more-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.more-label {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.more-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 32px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  transition: background .2s ease;
  overflow: hidden;
}
.more-card:last-child { border-right: 0; }
.more-card:hover { background: var(--bg); }
.more-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.more-card-rule {
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s var(--ease-out);
}
.more-card:hover .more-card-rule { transform: scaleY(1); }

.more-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.more-card-num { color: var(--accent); }
.more-card-name {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.more-card-sector {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 1;
}
.more-card-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  margin-top: auto;
  transition: transform .2s var(--ease-out);
}
.more-card:hover .more-card-arrow { transform: translateX(4px); }

/* Detail page CTA section */
.detail-cta {
  position: relative;
  padding: var(--section-py) 0 0;
}
.detail-cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--section-px) var(--section-py);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — inner pages
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .detail-head { grid-template-columns: auto 1fr; }
  .detail-facts { flex-direction: row; flex-wrap: wrap; min-width: 0; grid-column: 1 / -1; }
  .detail-fact { flex: 1; min-width: 120px; }

  .pf-cards { grid-template-columns: repeat(2, 1fr); }
  .pf-cards-pipeline { grid-template-columns: repeat(2, 1fr); }
  .pf-card:nth-child(2n) { border-right: 0; }
  .pf-card:nth-child(n+3) { border-top: 1px solid var(--line); }

  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .more-card:nth-child(2n) { border-right: 0; }
  .more-card:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .detail-head { grid-template-columns: 1fr; gap: 20px; }
  .detail-num { font-size: clamp(40px, 8vw, 64px); }
  .apply-tabs { flex-direction: column; }
  .apply-tab { border-right: 0; border-bottom: 1px solid var(--line); }
  .apply-tab:last-child { border-bottom: 0; }
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: flex-start; gap: 16px; }

  .pf-cards { grid-template-columns: 1fr; }
  .pf-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .pf-card:last-child { border-bottom: 0; }
  .pf-card:nth-child(n+3) { border-top: 0; }
  .pf-cards-pipeline { grid-template-columns: 1fr; }

  .more-grid { grid-template-columns: 1fr; }
  .more-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .more-card:last-child { border-bottom: 0; }
  .more-card:nth-child(n+3) { border-top: 0; }

  .detail-targets { grid-template-columns: 1fr; }
  .target-cell { border-right: 0; }
  .target-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .target-cell:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .inner-title { font-size: clamp(26px, 8vw, 44px); }
  .detail-name { font-size: clamp(30px, 10vw, 52px); }
  .tab-label { font-size: 13px; }
  .tab-num { display: none; }
  .apply-tab { padding: 16px 18px; }
}

/* ══════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  /* Make everything visible without animation */
  .reveal-row,
  .reveal-col {
    opacity: 1 !important;
    transform: none !important;
  }
  .section-rule-h,
  .section-rule-bottom,
  .header-rule,
  .js-rule-v,
  .table-rule-h,
  .grid-col-line {
    transform: none !important;
  }
}
