/* ============================================================
   TriplA Portfolio — Company Dossier
   --------------------------------------------------------------
   Detail page styles for /portfolio/{slug}/index.html.
   Loaded after styles.css so it can use --green / --ink / --paper.

   Aesthetic: refined editorial. Reads like a confidential
   fund dossier — institutional, monied, document-like —
   with two italic-green typographic moments:
     · the dropcap that opens the "About" prose
     · the accent word in the closing CTA headline
   ============================================================ */

/* ── 0. Body ──────────────────────────────────────────────── */
.inner-page {
  background: var(--paper);
  color: var(--ink);
}

/* ── 1. Nav (kebab-case variants used by inner pages) ─────── */
/* Use .inner-page .nav to beat the styles.css `.nav { position:fixed }` rule */
.inner-page .nav {
  position: sticky; top: 0; z-index: 50;
  left: auto; right: auto;           /* cancel fixed-nav leftovers */
  display: flex; align-items: center; gap: 16px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(246, 245, 240, 0.80);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  width: 100%;
}
.inner-page .nav.has-shadow,
.inner-page .nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(246, 245, 240, 0.94);
}
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; max-width: 200px; display: block; object-fit: contain; }

.nav-tabs {
  display: flex; align-items: center; gap: 28px;
  margin-inline: auto;
}
.nav-tab {
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 2px;
  transition: color .2s var(--ease);
}
.nav-tab:hover { color: var(--ink); }
.nav-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-tab:hover::after { transform: scaleX(1); }
.nav-tab--cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.nav-tab--cta::after { display: none; }
.nav-tab--cta:hover {
  background: var(--ink); color: var(--white);
  transform: translateY(-1px);
}

.nav-aux { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-login {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-login:hover { color: var(--green-hi); }

.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink);
}

/* ── 2. Hero — Dossier cover ────────────────────────────── */
.dossier-hero {
  position: relative;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
  padding: clamp(80px, 11vw, 140px) clamp(20px, 4vw, 48px) clamp(64px, 8vw, 110px);
  isolation: isolate;
}

/* Grain texture overlay */
.dossier-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; mix-blend-mode: overlay;
}

/* Green radial glow upper-right */
.dossier-hero::after {
  content: "";
  position: absolute;
  top: -180px; right: -160px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(74, 186, 100, 0.22) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* Hair-thin glowing rule at the bottom edge */
.dossier-hero__rule {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(74, 186, 100, 0.0) 10%,
    rgba(74, 186, 100, 0.45) 50%,
    rgba(74, 186, 100, 0.0) 90%,
    transparent 100%);
  z-index: 1;
}

.dossier-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
/* Collapse to single column when there's no clip to show */
.dossier-hero__inner:has(.dossier-clip.is-empty) {
  grid-template-columns: 1fr;
  max-width: 820px;
}
/* Hide the entire visual wrapper when clip is empty */
.dossier-hero__visual:has(.dossier-clip.is-empty) {
  display: none;
}

/* Folio number — sits at the very top like a magazine page mark */
.dossier-folio {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 30px;
}
.dossier-folio__num {
  color: var(--green);
  font-weight: 500;
}
.dossier-folio__rule {
  width: 56px; height: 1px;
  background: rgba(255, 255, 255, 0.20);
}

/* Back link */
.dossier-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 38px;
  transition: color .2s, gap .25s var(--ease);
}
.dossier-back:hover { color: var(--green); gap: 12px; }
.dossier-back svg { transition: transform .25s var(--ease); }
.dossier-back:hover svg { transform: translateX(-2px); }

/* Logo wrap — script injects either <img.hero-logo-large> or <div.hero-logo-fallback> */
.dossier-logo-wrap { margin-bottom: 28px; }
.dossier-logo-wrap:empty { display: none; }

/* Style for either child the hydration script puts in */
.hero-logo-large {
  display: inline-block;
  padding: 14px 22px;
  background: var(--white);
  border-radius: 16px;
  max-height: 88px;
  max-width: 240px;
  object-fit: contain;
  box-shadow:
    0 24px 48px -16px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform .45s var(--ease);
}
.hero-logo-large:hover { transform: translateY(-3px); }

.hero-logo-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 92px; height: 92px;
  border-radius: 22px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--white);
  background: var(--green); /* script overrides with --hero-color */
  box-shadow:
    0 24px 48px -16px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform .45s var(--ease);
}
.hero-logo-fallback:hover { transform: translateY(-3px); }

/* Eyebrow — mono dotted dividers like an institutional stamp */
.dossier-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.dossier-eyebrow::before,
.dossier-eyebrow::after {
  content: "·";
  color: rgba(74, 186, 100, 0.6);
}

/* Title */
.dossier-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -.036em;
  color: var(--white);
  margin-bottom: 22px;
}
.dossier-title em {
  font-style: italic;
  color: var(--green);
  font-weight: 800;
}

/* Subtitle */
.dossier-sub {
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.70);
  max-width: 56ch;
  margin-bottom: 38px;
}

/* Meta row — Sector / Stage / Location */
.dossier-meta-row {
  display: flex; flex-wrap: wrap;
  gap: 18px 30px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  align-items: center;
}
.dossier-meta-row__item { display: inline-flex; align-items: center; gap: 9px; }
.dossier-meta-row__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 186, 100, 0.18);
  animation: dossier-pulse 2.4s var(--ease) infinite;
}
@keyframes dossier-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 186, 100, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(74, 186, 100, 0); }
}

/* ── 3. Hero right column — clip frame ───────────────────── */
.dossier-hero__visual { position: relative; min-width: 0; }

.dossier-clip {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--night-2);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.dossier-clip.is-empty { display: none; }
.dossier-clip video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Corner brackets — institutional document hairlines */
.dossier-clip__bracket {
  position: absolute;
  width: 22px; height: 22px;
  border-color: rgba(74, 186, 100, 0.62);
  border-style: solid;
  pointer-events: none;
}
.dossier-clip__bracket--tl { top: 14px; left: 14px;     border-width: 1.5px 0 0 1.5px; }
.dossier-clip__bracket--tr { top: 14px; right: 14px;    border-width: 1.5px 1.5px 0 0; }
.dossier-clip__bracket--bl { bottom: 14px; left: 14px;  border-width: 0 0 1.5px 1.5px; }
.dossier-clip__bracket--br { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; }

.dossier-clip__label {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.55);
  padding: 7px 11px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: 7px;
}
.dossier-clip__label::before {
  content: ""; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 0 2.5px rgba(74, 186, 100, 0.35);
  animation: dossier-pulse 2s var(--ease) infinite;
}

/* Fallback when no clip — large stylized triangle mark */
.dossier-mark {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 25%, rgba(74, 186, 100, 0.18), transparent 60%),
    var(--night-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.dossier-mark svg {
  width: 58%; height: auto;
  color: var(--green);
  opacity: 0.7;
  animation: dossier-mark-rotate 60s linear infinite;
}
@keyframes dossier-mark-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── 4. Stats strip — front-matter card grid ─────────────── */
.dossier-stats-wrap {
  background: var(--paper);
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px);
}
.dossier-stats {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--line);
}
.dossier-stat {
  background: var(--paper);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .25s var(--ease);
}
.dossier-stat:hover { background: var(--white); }
.dossier-stat__label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.dossier-stat__value {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.15;
  word-break: break-word;
}
.dossier-stat__value a {
  color: var(--green-hi);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.dossier-stat__value a:hover { border-bottom-color: var(--green-hi); }

/* ── 5. About — editorial chapter ────────────────────────── */
.dossier-about {
  background: var(--paper);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 48px) clamp(40px, 5vw, 60px);
  position: relative;
}
.dossier-about__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.dossier-about__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.dossier-about__label::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--green);
}
.dossier-about__body {
  font-family: var(--sans);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -.005em;
  font-weight: 400;
  max-width: 64ch;
}
/* Dropcap on first letter — the editorial signature moment */
.dossier-about__body::first-letter {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 800;
  font-size: 2.05em;
  line-height: 0.82;
  float: left;
  margin: 0.10em 0.13em -0.04em -0.04em;
  color: var(--green);
}

/* ── 6. CTA — closing dossier insert ─────────────────────── */
.dossier-cta-wrap {
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(80px, 10vw, 140px);
  background: var(--paper);
}
.dossier-cta {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  background: var(--night);
  color: var(--white);
  border-radius: 24px;
  padding: clamp(48px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 40px;
  align-items: center;
  box-shadow: 0 30px 80px -30px rgba(13, 13, 12, 0.45);
}

/* Green glow upper-left */
.dossier-cta::before {
  content: "";
  position: absolute;
  top: -130px; left: -130px;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(74, 186, 100, 0.22) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* Diagonal triangle motif lower-right */
.dossier-cta::after {
  content: "";
  position: absolute;
  bottom: -100px; right: -60px;
  width: 400px; height: 400px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 L95 90 L5 90 Z' fill='none' stroke='%234ABA64' stroke-width='0.3' opacity='0.45'/%3E%3Cpath d='M50 25 L82 80 L18 80 Z' fill='none' stroke='%234ABA64' stroke-width='0.3' opacity='0.30'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none; z-index: 0;
}

.dossier-cta__body { position: relative; z-index: 1; min-width: 0; }
.dossier-cta__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.dossier-cta__label::before,
.dossier-cta__label::after {
  content: "·";
  color: rgba(74, 186, 100, 0.6);
}
.dossier-cta__headline {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -.028em;
  margin-bottom: 16px;
  color: var(--white);
}
.dossier-cta__headline em {
  font-style: italic;
  color: var(--green);
  font-weight: 800;
}
.dossier-cta__sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 46ch;
}

.dossier-cta__action {
  position: relative; z-index: 1;
  display: flex; align-items: center;
}
.dossier-cta__btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px;
  background: var(--green);
  color: var(--night);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -.005em;
  transition: transform .25s var(--ease), background .25s, gap .25s, box-shadow .25s;
  white-space: nowrap;
  box-shadow: 0 12px 28px -8px rgba(74, 186, 100, 0.4);
}
.dossier-cta__btn:hover {
  transform: translateY(-2px);
  background: var(--white);
  gap: 18px;
  box-shadow: 0 18px 36px -8px rgba(74, 186, 100, 0.55);
}
.dossier-cta__btn svg { transition: transform .25s var(--ease); }
.dossier-cta__btn:hover svg { transform: translateX(2px); }

/* ── 7. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--night);
  color: var(--white);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 48px) 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(74, 186, 100, 0.45) 50%,
    transparent 100%);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: 56px;
  align-items: start;
}
.footer-col--brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo {
  width: 140px; height: auto; max-height: 48px;
  object-fit: contain; display: block;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}
.footer-col--brand p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 36ch;
  line-height: 1.55;
}
.footer-links {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  margin-top: 6px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  transition: color .2s;
  position: relative;
  padding-bottom: 4px;
}
.footer-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.footer-links a:hover { color: var(--green); }
.footer-links a:hover::after { transform: scaleX(1); }

.footer-cta {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 30px 32px 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  position: relative;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
  overflow: hidden;
}
.footer-cta:hover {
  background: rgba(74, 186, 100, 0.10);
  border-color: rgba(74, 186, 100, 0.32);
  transform: translateY(-2px);
}
.footer-cta-arrow {
  color: var(--green);
  align-self: flex-start;
  margin-bottom: 12px;
  transition: transform .35s var(--ease);
}
.footer-cta:hover .footer-cta-arrow { transform: translate(4px, -4px); }
.footer-cta-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.018em;
  color: var(--white);
}
.footer-cta-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* ── 8. Page-load reveal cascade ─────────────────────────── */
@keyframes dossier-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dossier-folio,
.dossier-back,
.dossier-logo-wrap,
.dossier-eyebrow,
.dossier-title,
.dossier-sub,
.dossier-meta-row,
.dossier-hero__visual {
  animation: dossier-rise 0.7s var(--ease) both;
}
.dossier-folio         { animation-delay: 0ms;   }
.dossier-back          { animation-delay: 70ms;  }
.dossier-logo-wrap     { animation-delay: 140ms; }
.dossier-eyebrow       { animation-delay: 220ms; }
.dossier-title         { animation-delay: 300ms; }
.dossier-sub           { animation-delay: 400ms; }
.dossier-meta-row      { animation-delay: 500ms; }
.dossier-hero__visual  { animation-delay: 380ms; }

@media (prefers-reduced-motion: reduce) {
  .dossier-folio,
  .dossier-back,
  .dossier-logo-wrap,
  .dossier-eyebrow,
  .dossier-title,
  .dossier-sub,
  .dossier-meta-row,
  .dossier-hero__visual,
  .dossier-meta-row__dot,
  .dossier-clip__label::before,
  .dossier-mark svg {
    animation: none !important;
  }
}

/* ── 9. Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
  .dossier-hero__inner { grid-template-columns: 1fr; }
  .dossier-clip,
  .dossier-mark { aspect-ratio: 16/10; max-width: 100%; }
  .dossier-stats { grid-template-columns: repeat(2, 1fr); }
  .dossier-cta { grid-template-columns: 1fr; }
  .nav-tabs { display: none; }
  .nav-burger { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 560px) {
  .dossier-stats { grid-template-columns: 1fr; }
  .dossier-about__body { font-size: 18px; }
  .dossier-title { font-size: clamp(38px, 11vw, 56px); }
  .dossier-meta-row { gap: 14px 20px; }
  .dossier-cta { padding: 40px 28px; }
  .inner-page .nav { padding: 14px 20px; }
  .nav-logo img { height: 36px; max-width: 160px; }
}

/* ── 10. Hide legacy markup not used by the new design ──── */
/* (page-hero / page-hero-inner intentionally NOT hidden —
    inner pages like articles.html, team.html, events.html
    use those classes for their own hero sections)          */
.startup-detail,
.startup-detail-meta,
.startup-detail-body,
.startup-detail-grid,
.startup-detail-item,
.hero-clip-wrap {
  display: none !important;
}
/* page-hero-visual: kept hidden only on dossier pages
   where it's a legacy stub with [hidden] attribute too   */
.dossier-hero ~ .page-hero-visual,
.page-hero-visual[hidden] {
  display: none !important;
}

/* ── 11. Accessibility — focus styles ────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.dossier-clip__label,
.nav-tab--cta {
  outline-offset: 4px;
}

/* ══════════════════════════════════════════════════════════
   12. Inner-page shared layout  (articles / events / team)
   ══════════════════════════════════════════════════════════ */

/* ── Page hero banner ──────────────────────────────────── */
.page-hero {
  background: var(--night, #0c0d0b);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
}
.page-hero-inner {
  max-width: var(--maxw, 1240px);
  margin: 0 auto;
}
.page-tag {
  display: inline-block;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green, #4ABA64);
  border: 1px solid rgba(74,186,100,.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.page-title {
  font-family: var(--sans, Montserrat, sans-serif);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: #fff;
}
.page-title em {
  font-style: italic;
  color: var(--green, #4ABA64);
}
.page-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
}

/* ── Inner content wrapper ─────────────────────────────── */
.inner-content {
  max-width: var(--maxw, 1240px);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 64px);
}

/* ── Filter bar (articles page) ────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-pill {
  font-family: var(--sans, Montserrat, sans-serif);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line, #e6e3da);
  background: transparent;
  color: var(--ink-500, #555);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.filter-pill:hover {
  border-color: var(--green, #4ABA64);
  color: var(--night, #0c0d0b);
}
.filter-pill.is-active {
  background: var(--night, #0c0d0b);
  border-color: var(--night, #0c0d0b);
  color: #fff;
}

/* ── 3-column grids ─────────────────────────────────────── */
.inner-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .inner-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .inner-grid-3 { grid-template-columns: 1fr; }
}

/* ── Empty state ───────────────────────────────────────── */
.inner-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  font-size: 15px;
  color: var(--ink-400, #888);
}

/* ── Section labels (team "Join us") ───────────────────── */
.inner-section-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green, #4ABA64);
  margin-bottom: 4px;
}
.inner-section-title {
  font-family: var(--sans, Montserrat, sans-serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--night, #0c0d0b);
  margin: 0 0 16px;
}
.inner-section-title em {
  font-style: italic;
  color: var(--green, #4ABA64);
}

/* ── Team cards ─────────────────────────────────────────── */
.team-card {
  background: #fff;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .2s, transform .2s;
}
.team-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans, Montserrat, sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.team-name {
  font-family: var(--sans, Montserrat, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--night, #0c0d0b);
  line-height: 1.2;
}
.team-title {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green, #4ABA64);
  margin-bottom: 4px;
}
.team-bio {
  font-size: 14px;
  color: var(--ink-400, #666);
  line-height: 1.65;
  flex: 1;
}
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--night, #0c0d0b);
  text-decoration: none;
  opacity: .6;
  transition: opacity .15s;
}
.team-linkedin:hover { opacity: 1; }

/* ── Article cards ──────────────────────────────────────── */
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line, #e6e3da);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.article-card-cover {
  height: 6px;
  flex-shrink: 0;
}
.article-card-body {
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-tag {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green, #4ABA64);
  margin-bottom: 6px;
}
.article-card-date {
  font-size: 12px;
  color: var(--ink-400, #999);
  margin-bottom: 8px;
}
.article-card-title {
  font-family: var(--sans, Montserrat, sans-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--night, #0c0d0b);
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 13px;
  color: var(--ink-400, #666);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.article-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--night, #0c0d0b);
  text-decoration: none;
  margin-top: auto;
}

/* ── Primary button ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans, Montserrat, sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn--primary {
  background: var(--green, #4ABA64);
  color: #fff;
}
