/* =====================================================================
   KYST VENTURES — Design system
   Text:  #313131   Blue accent: #4358C4   Typeface: Inter
   One stylesheet drives every page. Keep components here, not inline.
   ===================================================================== */

/* ---------- Tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --ink:          #313131;   /* primary text + display */
  --ink-strong:   #232323;   /* largest display, slightly deeper */
  --muted:        #8a8a8a;   /* advisor names, de-emphasised (AA large-text on white) */
  --label:        #6f6f6f;   /* eyebrows, captions */
  --line:         #e6e6e6;   /* hairline borders / grid lines */
  --line-soft:    #efefef;
  --blue:         #4358c4;   /* accent */
  --blue-dark:    #38489f;   /* accent hover */
  --bg:           #ffffff;
  --bg-soft:      #f4f4f2;   /* footer / soft sections */
  --white:        #ffffff;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(104px, 14vw, 208px);
  --radius: 4px;
  --radius-lg: 14px;
  --header-h: 78px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select, button { font-family: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(68px, 9vw, 132px); }
.section--flush-top { padding-top: 0; }
/* balances a section's top padding with the CTA band that follows it */
.section--pre-cta { padding-top: clamp(60px, 8vw, 110px); }

/* ---------- Typography ------------------------------------------------ */
.display {
  font-weight: 800;
  font-size: clamp(1.82rem, 4.48vw, 3.64rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink-strong);
  text-transform: uppercase;
}
.display--lg { font-size: clamp(2.1rem, 5.6vw, 4.2rem); }
.display--mid { font-size: clamp(1.5rem, 3.4vw, 2.7rem); }   /* "And now you can invest" */

.statement {
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.statement--light { font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink);
}
.muted { color: var(--label); }
.measure { max-width: 46ch; }
.measure-wide { max-width: 60ch; }

/* ---------- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 1.05em 1.7em;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink); color: #fff;
  border-radius: var(--radius);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover { background: #000; }
.btn:hover .arrow { transform: translateX(5px); }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--on-blue { background: #fff; color: var(--ink); }
.btn--on-blue:hover { background: #f0f0f0; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 0.85rem;
}
.textlink .arrow { transition: transform .3s var(--ease); }
.textlink:hover .arrow { transform: translateX(5px); }

/* ---------- Header / nav --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand {
  font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em;
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav a {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; position: relative; padding-block: 6px;
  color: inherit; opacity: 0.85;
  transition: opacity .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: currentColor; transition: width .3s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { opacity: 1; }

/* Header colour modes */
.site-header.scrolled {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
/* Pages whose hero is dark/blue: header text is white until scrolled */
body.hero-dark .site-header:not(.scrolled) { color: #fff; }
body.hero-dark .site-header.scrolled { color: var(--ink); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; width: 44px; height: 44px; position: relative;
  z-index: 130; color: inherit;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero: home ------------------------------------------------ */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding-top: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(48px, 7vw, 110px);
}
.hero__copy { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); min-width: 0; }
.hero__map { width: 100%; min-width: 0; }
.hero__map svg, .hero__map img { width: 90%; height: auto; margin-inline: auto; color: var(--ink-strong); }

/* ---------- Hero: blue (Fund) ---------------------------------------- */
.hero-blue {
  background: var(--blue); color: #fff;
  padding-top: clamp(90px, 16vw, 220px);
  padding-bottom: clamp(64px, 10vw, 130px);
  margin-top: calc(-1 * var(--header-h));   /* slide under the transparent header */
}
.hero-blue .display { color: #fff; }
.hero-blue__inner { padding-top: var(--header-h); }

/* ---------- Marquee (logo strip) ------------------------------------- */
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.marquee__track {
  display: flex; align-items: center; width: max-content;
  gap: clamp(40px, 6vw, 84px);
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > * { flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
.logo-mark {
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
  color: #1d1d1d; opacity: 0.65;
  display: inline-flex; align-items: center; height: 40px;
  white-space: nowrap;
  transition: opacity .25s var(--ease);
}
.marquee:hover .logo-mark { opacity: 0.65; }
.marquee .logo-mark:hover { opacity: 1; }
.logo-img {
  height: clamp(20px, 2.3vw, 30px); width: auto; flex: 0 0 auto;
  object-fit: contain; opacity: 0.6;
  transition: opacity .25s var(--ease);
}
.marquee .logo-img:hover { opacity: 1; }

/* ---------- Stat grid ------------------------------------------------- */
.stat-grid {
  display: grid; gap: 0;
  grid-auto-rows: 1fr;            /* every row the same height -> identical cells */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stat-grid--5 { grid-template-columns: repeat(5, 1fr); }
.stat-grid--4 .stat { min-height: 196px; }   /* short single-row content sits tighter */
.stat {
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 248px;
}
.stat__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--label);
  min-height: 2.6em;             /* reserve up to two lines so every value aligns */
}
.stat__value {
  font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.02; margin-top: 4px;
  text-wrap: balance;
}
.stat__value--sm { font-size: clamp(1.35rem, 1.9vw, 1.85rem); }
.stat__note { font-size: 0.92rem; color: var(--label); margin-top: auto; padding-top: 14px; }
.stat--cta { gap: 18px; }
.stat--cta .stat__label { white-space: normal; }
.stat--cta .btn { margin-top: auto; align-self: flex-start; }

/* Fund page: every cell centred and equal, matching the original design */
.stat-grid--5 .stat { text-align: center; align-items: center; }
.stat-grid--5 .stat--cta .btn { align-self: center; }
/* smaller values so they fit comfortably in the narrow 5-up cells */
.stat-grid--5 .stat__value { font-size: clamp(1.55rem, 2.3vw, 2.3rem); }
.stat-grid--5 .stat__value--sm { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }

/* close the right/bottom edges so the outer border reads cleanly */
.stat-grid--4 .stat:nth-child(4n) { border-right: 0; }
.stat-grid--5 .stat:nth-child(5n) { border-right: 0; }

/* ---------- Split section (fund-of-funds / about) -------------------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.split__head { display: flex; flex-direction: column; gap: 22px; align-self: start; }
.split__body { display: flex; flex-direction: column; gap: 1.2em; padding-top: 6px; }
.split__body p { color: var(--ink); }
/* vertically centred in the column (level with the middle of the heading); text stays left-aligned */
.split__body--center { align-self: center; }

/* ---------- People grid ---------------------------------------------- */
.people-intro { max-width: 22ch; }
.people-grid {
  display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
.person-card {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 48px;
  padding: clamp(30px, 3vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 230px;
  position: relative;
  transition: background .3s var(--ease);
}
.person-card:hover { background: #fafafa; }
.person-card__name {
  font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 4rem);
  letter-spacing: -0.04em; line-height: 0.9; text-transform: uppercase;
}
.person-card--advisor .person-card__name { color: var(--muted); }
.person-card__foot {
  display: flex; align-items: center; justify-content: space-between;
}
.person-card__role { font-size: 0.95rem; color: var(--label); }
.person-card__arrow { transition: transform .3s var(--ease); }
.person-card:hover .person-card__arrow { transform: translateX(6px); }
.people-grid--advisors { grid-template-columns: repeat(3, 1fr); }
.people-grid--advisors .person-card:nth-child(3n) { border-right: 0; }
.people-grid--founders .person-card:nth-child(2n) { border-right: 0; }
/* founders + advisors read as one continuous table: flatten the touching corners */
.people-grid--founders { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.people-grid--advisors { border-top-left-radius: 0; border-top-right-radius: 0; }

/* ---------- CTA band -------------------------------------------------- */
.cta-band {
  background: var(--blue); color: #fff;
  padding-block: clamp(60px, 8vw, 110px);
}
.cta-band h2 {
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1; margin-bottom: 22px;
}
.cta-band p { max-width: 52ch; opacity: 0.92; margin-bottom: 32px; }

/* ---------- Footer ---------------------------------------------------- */
.site-footer { background: var(--bg-soft); padding-block: clamp(56px, 7vw, 88px); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
}
.footer-col h3 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 18px;
}
.footer-col p, .footer-col li, .footer-col a { color: var(--label); font-size: 0.95rem; line-height: 1.9; }
.footer-col a:hover { color: var(--ink); }
.footer-meta { margin-top: 26px; font-size: 0.9rem; color: var(--label); }
.footer-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: clamp(40px, 5vw, 64px); gap: 24px; flex-wrap: wrap;
}
.footer-bottom .brand { font-size: 1.5rem; }
.footer-bottom small { color: var(--label); }

/* ---------- Person (bio) page ---------------------------------------- */
.bio {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(40px, 5vw, 72px);
}
.bio__main { min-width: 0; }
.bio__name {
  font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 18px;
}
.bio__role { font-size: 0.95rem; margin-bottom: 30px; }
.bio__role strong { font-weight: 700; }
.bio__role span { color: var(--label); }
.bio__intro { font-weight: 700; font-size: 1.18rem; line-height: 1.5; margin-bottom: 24px; }
.bio__text { display: flex; flex-direction: column; gap: 1.1em; color: var(--ink); }
.bio__aside { display: flex; flex-direction: column; gap: 26px; }
.bio__photo {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--bg-soft);
}
.portfolio { margin-top: clamp(48px, 6vw, 88px); }
.portfolio__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.portfolio__cell {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px;
}
.portfolio__cell:nth-child(3n) { border-right: 0; }
.portfolio__cell .logo-mark { opacity: 0.7; font-size: 1.05rem; }

/* ---------- About: principles ---------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.principle { display: flex; flex-direction: column; gap: 16px; }
.principle__num {
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--blue);
}
.principle h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.principle p { color: var(--label); }
.principle { padding-top: 26px; border-top: 2px solid var(--ink); }

/* ---------- Contact --------------------------------------------------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  height: calc(100dvh - var(--header-h));   /* exactly one viewport, no overflow */
  min-height: 540px;                         /* floor for very short windows */
}
.contact__media { position: relative; background: var(--blue); overflow: hidden; }
.contact__media img, .contact__media svg { width: 100%; height: 100%; object-fit: cover; }
/* scrim so the white caption stays readable over any photo */
.contact__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 42%);
}
.contact__media-cap {
  position: absolute; z-index: 2;
  left: clamp(28px, 4vw, 56px); bottom: clamp(28px, 4vw, 56px);
  right: clamp(28px, 4vw, 56px); color: #fff;
}
.contact__media-cap .display { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact__panel {
  padding: clamp(22px, 3vw, 44px) clamp(28px, 6vw, 96px);
  display: flex; flex-direction: column; justify-content: safe center;
  max-width: 760px; width: 100%; margin-inline: auto;   /* centred in the right column */
  overflow-y: auto;                                      /* form scrolls inside if a window is very short */
}
.form { display: grid; gap: 14px; margin-top: 22px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.field input, .field textarea, .field select {
  border: 0; border-bottom: 1.5px solid var(--line); background: transparent;
  padding: 12px 2px; font-size: 1rem; color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
/* keep the global 2px outline for keyboard focus; drop it only for mouse focus */
.field input:focus:not(:focus-visible),
.field textarea:focus:not(:focus-visible),
.field select:focus:not(:focus-visible) { outline: none; }
.field textarea { resize: vertical; min-height: 64px; }
.form__status { font-size: 0.95rem; color: var(--blue); min-height: 1.2em; }
.contact-meta { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin-top: 22px; }
.contact-meta__label { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); margin-bottom: 6px; }

/* ---------- Reveal on scroll ----------------------------------------- */
/* Only hide content for the animation when JS is present to reveal it again. */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities ------------------------------------------------- */
.center { text-align: center; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-md { display: flex; flex-direction: column; gap: 26px; }
.divider { height: 1px; background: var(--line); border: 0; }
.flow > * + * { margin-top: 1.1em; }
.statement--sm { font-size: clamp(1.6rem, 3.5vw, 2.88rem); }   /* ~20% smaller statement */

/* =====================================================================
   Team drawer (slide-out)
   ===================================================================== */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer__scrim {
  position: absolute; inset: 0; background: rgba(18, 18, 22, 0.46);
  opacity: 0; transition: opacity .4s var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 80vw;
  background: #fff; box-shadow: -30px 0 90px rgba(0, 0, 0, 0.28);
  transform: translateX(100%); transition: transform .45s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { transform: none; }
/* on larger screens (roughly 14" and up) the slide-out only takes 40% */
@media (min-width: 1280px) {
  .drawer__panel { width: 40vw; }
  .drawer-person__layout { grid-template-columns: 1fr; }
  .drawer-person__photo { max-width: 300px; }
}
.drawer__close {
  position: sticky; top: clamp(16px, 2vw, 28px); float: right;
  margin: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px) 0 0;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; background: #fff; color: var(--ink); z-index: 3;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.drawer__close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.drawer__body { padding: clamp(32px, 5vw, 80px); }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__scrim { transition: none; }
}
.drawer-person__role { font-size: .9rem; color: var(--label); margin-bottom: 10px; }
.drawer-person__role strong { color: var(--ink); font-weight: 700; }
.drawer-person__name {
  font-weight: 800; font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.035em; line-height: .98; margin-bottom: clamp(24px, 3vw, 40px);
}
.drawer-person__layout {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.drawer-person__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: 12px; background: var(--bg-soft);
}
.drawer-person__intro { font-weight: 700; font-size: 1.15rem; line-height: 1.5; margin-bottom: 20px; }
.drawer-person__text { display: flex; flex-direction: column; gap: 1em; color: var(--ink); margin-bottom: 28px; }
.drawer-person .portfolio { margin-top: clamp(36px, 5vw, 64px); }

/* =====================================================================
   Fund timeline
   ===================================================================== */
.timeline {
  list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 70px; height: 2px; background: var(--line);
}
.timeline::after {
  content: ""; position: absolute; left: 0; top: 70px; width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .1s;
}
.timeline.is-visible::after { transform: scaleX(1); }
.timeline__item { position: relative; padding-right: clamp(16px, 2vw, 30px); }
.timeline__year { display: block; font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.02em; line-height: 1; }
.timeline__dot {
  display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--blue);
  margin: 30px 0 22px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); position: relative; z-index: 1;
}
.js .timeline__dot { transform: scale(0); transition: transform .5s var(--ease); }
.timeline.is-visible .timeline__dot { transform: scale(1); transition-delay: calc(.2s + var(--i, 0) * .16s); }
.timeline__text { color: var(--label); font-size: .98rem; max-width: 22ch; }
.js .timeline__text { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.timeline.is-visible .timeline__text { opacity: 1; transform: none; transition-delay: calc(.32s + var(--i, 0) * .16s); }
@media (prefers-reduced-motion: reduce) {
  .js .timeline__dot, .js .timeline__text { transform: none; opacity: 1; transition: none; }
  .timeline::after { transform: scaleX(1); transition: none; }
}

/* =====================================================================
   About — enhancements
   ===================================================================== */
.principle {
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.principle:hover { transform: translateY(-4px); border-top-color: var(--blue); }
.accent-rule { width: 64px; height: 4px; background: var(--blue); border: 0; margin: 0; }
.quote-band { background: var(--ink); color: #fff; padding-block: clamp(64px, 9vw, 128px); }
.quote-band blockquote {
  margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem); max-width: 20ch;
}
.quote-band blockquote .hl { color: #97a6ff; }
.quote-band cite { display: block; margin-top: 28px; font-style: normal; color: rgba(255,255,255,.7); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.why-nordics { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.why-nordics__map { width: 78%; margin-inline: auto; color: var(--ink-strong); }
.why-list { display: grid; gap: 22px; }
.why-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.why-list .why-list__k { font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; color: var(--blue); min-width: 2.6ch; }
.why-list .why-list__v { color: var(--ink); padding-top: 4px; }
.why-list .why-list__v strong { font-weight: 700; }

/* =====================================================================
   Access gate page (no header/footer)
   ===================================================================== */
.access { min-height: 100dvh; display: flex; flex-direction: column; }
.access__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 2.5vw, 28px) var(--gutter); border-bottom: 1px solid var(--line); }
.access__bar .brand { font-size: 1.4rem; }
.access__main { flex: 1; display: flex; justify-content: center; padding: clamp(32px, 5vw, 72px) var(--gutter); }
.access__col { width: 100%; max-width: 600px; }
.access__doc-note { font-size: .82rem; color: var(--label); margin-top: 10px; }
.access__form { display: grid; gap: 18px; margin-top: 28px; }
.doc-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 26px 0 4px; }
.doc-card__badge { width: 44px; height: 54px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .68rem; font-weight: 700; letter-spacing: .08em; flex: 0 0 auto; }
.doc-card__meta { flex: 1; min-width: 150px; }
.doc-card__meta h2 { font-size: 1.05rem; font-weight: 700; }
.doc-card__meta p { font-size: .9rem; color: var(--label); margin-top: 2px; }
.doc-card__actions { display: flex; gap: 10px; }
.doc-card__actions .btn { padding: .7em 1.1em; font-size: .78rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.check:hover { border-color: #cfcfcf; }
.check:has(input:checked) { border-color: var(--blue); background: rgba(67,88,196,.04); }
.check input { width: 22px; height: 22px; accent-color: var(--blue); margin-top: 1px; }
.check span { font-size: .96rem; line-height: 1.5; }
.access .btn[disabled] { opacity: .4; pointer-events: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .stat-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .stat-grid--5 .stat:nth-child(5n) { border-right: 1px solid var(--line); }
  .stat-grid--5 .stat:nth-child(3n) { border-right: 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 40px;
    background: #fff; color: var(--ink);
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.12);
  }
  body.nav-open .nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav a { font-size: 1.1rem; opacity: 1; padding-block: 12px; }

  .hero { grid-template-columns: 1fr; }
  .hero__map { order: -1; max-width: 380px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .bio { grid-template-columns: 1fr; }
  .bio__aside { order: -1; max-width: 360px; }
  .contact { grid-template-columns: 1fr; min-height: 0; }
  .contact__media { min-height: 320px; order: -1; }
  .principles { grid-template-columns: 1fr; gap: 0; }
  .principle { border-top: 1px solid var(--line); padding-block: 26px; }
  .principle:first-child { border-top: 2px solid var(--ink); }
  .principle:hover { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-nordics { grid-template-columns: 1fr; }
  .why-nordics__map { order: -1; width: 64%; max-width: 300px; }
  .drawer__panel { width: 92vw; }
  .drawer-person__layout { grid-template-columns: 1fr; }
  .drawer-person__photo { max-width: 320px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  /* two columns: only the right-hand (even) cell drops its right border */
  .stat-grid--4, .stat-grid--5 { grid-template-columns: 1fr 1fr; }
  .stat-grid--4 .stat, .stat-grid--5 .stat { border-right: 1px solid var(--line); }
  .stat-grid--4 .stat:nth-child(2n), .stat-grid--5 .stat:nth-child(2n) { border-right: 0; }
  .people-grid, .people-grid--advisors, .people-grid--founders { grid-template-columns: 1fr; }
  .person-card { border-right: 0 !important; min-height: 150px; gap: 28px; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__cell { border-right: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Vertical timeline on narrow screens */
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; padding-left: 30px; }
  .timeline::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .timeline::after { left: 7px; top: 6px; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .timeline.is-visible::after { transform: scaleY(1); }
  .timeline__item { padding: 0 0 34px 0; }
  .timeline__item:last-child { padding-bottom: 0; }
  .timeline__dot { position: absolute; left: -30px; top: 6px; margin: 0; }
  .timeline__year { font-size: 1.5rem; }
  .timeline__text { margin-top: 8px; max-width: none; }
}
