/* ============================================================
   TRIPLA VENTURES — WORLD-CLASS VC STYLES
   ============================================================ */

:root {
  /* Brand — Material Green palette */
  --green-900: #2E7D32;   /* hover / darken states      */
  --green-700: #4ABA64;   /* primary brand              */
  --green-500: #3DAA58;   /* mid accent                 */
  --green-400: #6ACC7E;   /* lighter mid                */
  --green-300: #A5D6A7;   /* light accent / lines       */
  --green-200: #C8E6C9;   /* lines on hover, hairlines  */
  --green-50:  #F1F8E9;   /* barely-there bg            */

  /* Neutrals */
  --ink:       #0a0a0a;
  --ink-500:   #444444;
  --ink-400:   #666666;
  --ink-300:   #8a8a8a;
  --ink-200:   #b8b8b8;
  --ink-100:   #e6e6e6;
  --ink-50:    #f6f6f4;
  --paper:     #ffffff;
  --paper-warm:#faf9f6;
  --dark-bg:   #0a1a0a;

  /* Type */
  --f-serif: 'Montserrat', sans-serif;
  --f-sans:  'Montserrat', sans-serif;

  /* Scale */
  --pad-x: clamp(24px, 5vw, 80px);
  --pad-y: clamp(80px, 12vw, 160px);
  --max-w: 1400px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* z */
  --z-nav: 50;
  --z-cursor: 200;
  --z-panel: 100;
  --z-loader: 300;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green-700); color: var(--paper); }

a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Focus rings — visible only on keyboard nav */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 4px;
}
body.on-dark :focus-visible {
  outline-color: var(--green-300);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}
.cursor {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  margin: -4px 0 0 -4px;
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), opacity .25s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(10,10,10,.2);
  border-radius: 50%;
  margin: -18px 0 0 -18px;
  transition: width .35s var(--ease), height .35s var(--ease), border-color .35s var(--ease), opacity .25s, transform .35s var(--ease);
}
body.cursor-link .cursor { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
body.cursor-link .cursor-ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: rgba(10,10,10,.35); }
body.cursor-button .cursor { width: 6px; height: 6px; background: var(--green-700); margin: -3px 0 0 -3px; }
body.cursor-button .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--green-500); border-width: 1.5px; }
body.cursor-hidden .cursor,
body.cursor-hidden .cursor-ring { opacity: 0; }
body.on-dark .cursor { background: var(--paper); }
body.on-dark .cursor-ring { border-color: rgba(255,255,255,.3); }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }

/* Logo displayed during load */
.loader-logo {
  width: clamp(180px, 28vw, 340px);
  height: auto;
  opacity: 0;
  mix-blend-mode: multiply; /* transparent-bg treatment for white-bg logo */
  animation: loaderLogoIn .7s var(--ease-out) .1s forwards;
}
@keyframes loaderLogoIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad-x);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(10,10,10,.05);
  transition: transform .5s var(--ease), background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
  transform: translateY(-100%);
}
.nav.is-ready { transform: translateY(0); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.on-dark {
  background: rgba(10, 26, 10, .62);
  border-bottom-color: rgba(255,255,255,.07);
  color: var(--paper);
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav-logo:hover { opacity: .75; }
.nav-logo img {
  height: 72px;
  width: auto;
  transition: opacity .3s var(--ease);
}

.nav-tabs {
  display: flex;
  gap: 4px;
  background: rgba(10,10,10,.04);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(10,10,10,.04);
}
.nav.on-dark .nav-tabs {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}

.nav-tab {
  position: relative;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-500);
  border-radius: 999px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav.on-dark .nav-tab { color: rgba(255,255,255,.7); }
.nav-tab:hover { color: var(--ink); background: rgba(10,10,10,.05); }
.nav.on-dark .nav-tab:hover { color: var(--paper); background: rgba(255,255,255,.08); }
.nav-tab--cta {
  background: var(--green-700);
  color: var(--paper) !important;
}
.nav-tab--cta:hover {
  background: var(--green-900) !important;
  box-shadow: 0 4px 16px -4px rgba(74,186,100,.4);
}
.nav.on-dark .nav-tab--cta {
  background: var(--green-400);
  color: var(--ink) !important;
}
.nav.on-dark .nav-tab--cta:hover {
  background: var(--green-300) !important;
  color: var(--ink) !important;
}

.nav-burger {
  width: 36px; height: 36px;
  display: none; /* hidden by default, shown at breakpoint */
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  border-radius: 999px;
  transition: background .3s var(--ease);
}
.nav-burger:hover { background: rgba(10,10,10,.05); }
.nav.on-dark .nav-burger:hover { background: rgba(255,255,255,.08); }
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: width .3s var(--ease), background .3s var(--ease), transform .4s var(--ease);
}
.nav-burger span:nth-child(1) { width: 20px; }
.nav-burger span:nth-child(2) { width: 13px; }
.nav.on-dark .nav-burger span { background: var(--paper); }
.nav-burger:hover span:nth-child(2) { width: 20px; }

@media (max-width: 820px) {
  .nav-tabs { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================================
   SCROLL CONTAINER
   ============================================================ */
#home {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
#homeContainer { width: 100%; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(110px, 14vh, 160px) var(--pad-x) clamp(96px, 12vh, 140px);
  overflow: hidden;
  background: var(--paper);
}
#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 8px 16px;
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(74,186,100,.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,186,100,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(74,186,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,186,100,0); }
}

/* Hero title — tight leading for display text */
.hero-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 78px);
  line-height: .95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-top: 32px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .12em;
}

/* Italic third line — distinct from bold lines */
.hero-title .line--italic {
  padding-bottom: .18em;
}
.hero-title .line--italic em {
  font-style: italic;
  font-weight: 600;
  color: var(--green-700);
  letter-spacing: -0.025em;
}

.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.hero-title.is-revealed .word {
  animation: wordIn .9s var(--ease-out) forwards;
}
.hero-title.is-revealed .line:nth-child(1) .word:nth-child(1) { animation-delay: .00s; }
.hero-title.is-revealed .line:nth-child(1) .word:nth-child(2) { animation-delay: .07s; }
.hero-title.is-revealed .line:nth-child(1) .word:nth-child(3) { animation-delay: .14s; }
.hero-title.is-revealed .line:nth-child(1) .word:nth-child(4) { animation-delay: .21s; }
.hero-title.is-revealed .line:nth-child(2) em .word:nth-child(1) { animation-delay: .34s; }
.hero-title.is-revealed .line:nth-child(2) em .word:nth-child(2) { animation-delay: .41s; }
.hero-title.is-revealed .line:nth-child(2) em .word:nth-child(3) { animation-delay: .48s; }
.hero-title.is-revealed .line:nth-child(2) em .word:nth-child(4) { animation-delay: .55s; }
.hero-title.is-revealed .line:nth-child(2) em .word:nth-child(5) { animation-delay: .62s; }
@keyframes wordIn {
  to { transform: translateY(0); opacity: 1; }
}

/* Hero sub — readable contrast */
.hero-sub {
  max-width: 580px;
  margin-top: 32px;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--ink-500);
  font-weight: 400;
}

.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { padding: 13px 22px; }
}

/* Hero meta — coordinate stamp, polished */
.hero-meta {
  position: absolute;
  right: var(--pad-x);
  bottom: 88px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.hero-meta-row { display: flex; gap: 8px; }
@media (max-width: 900px) { .hero-meta { display: none; } }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-300);
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
@media (max-width: 600px) {
  .hero-scroll { display: none; }
}
.hero-scroll:hover { color: var(--ink-500); }
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--ink-200) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--green-700);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%   { top: -20px; }
  100% { top: 44px; }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  background: var(--paper-warm);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
/* Edge fades — premium polish */
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--paper-warm), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--paper-warm), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 50s linear infinite;
}
.ticker-set {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--ink);
  white-space: nowrap;
}
.ticker-set em {
  font-style: italic;
  font-weight: 500;
  color: var(--green-700);
}
.ticker-dot {
  color: var(--green-300);
  font-size: 1.1em;
  opacity: .7;
}
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { position: relative; }

.section-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x) clamp(48px, 5vw, 72px);
}
.section-head--split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
@media (max-width: 820px) {
  .section-head--split { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* Section tag — deliberate design accent */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 28px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.section-tag--light { color: var(--green-300); }
.section-tag--light::before { background: var(--green-300); }

/* Section titles — tight display leading */
.section-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--green-700);
}
.section-title--light { color: var(--paper); }
.section-title--light em { color: var(--green-300); }

.section-lede {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--ink-400);
  max-width: 46ch;
  margin-top: 22px;
  font-weight: 400;
}
.section-lede--light { color: rgba(255,255,255,.6); }


/* ============================================================
   THESIS
   ============================================================ */
.thesis-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .thesis-grid { grid-template-columns: 1fr; gap: 16px; } }

.thesis-card {
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 44px 40px 40px;
  transition:
    transform .6s var(--ease-out),
    border-color .4s var(--ease),
    background .4s var(--ease),
    box-shadow .6s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: default;
}
/* Premium glow on hover */
.thesis-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(74,186,100,.14), transparent 55%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.thesis-card:hover {
  transform: translateY(-6px);
  border-color: var(--green-300);
  background: var(--paper);
  box-shadow: 0 30px 60px -22px rgba(74,186,100,.22), 0 0 0 0.5px rgba(74,186,100,.18);
}
.thesis-card:hover::after { opacity: 1; }

/* Number accent — confident, branded */
.thesis-card-num {
  display: inline-block;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 11px;
  color: var(--green-700);
  letter-spacing: .18em;
  margin-bottom: 36px;
  padding: 4px 10px;
  border: 1px solid var(--green-200);
  border-radius: 999px;
  background: var(--paper);
}
.thesis-card-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.15;
}
.thesis-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-400);
}
@media (max-width: 900px) {
  .thesis-card { padding: 36px 32px 32px; }
  .thesis-card-num { margin-bottom: 28px; }
}

/* ============================================================
   FOCUS
   ============================================================ */
.focus-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
@media (max-width: 900px) { .focus-grid { grid-template-columns: 1fr; } }

.focus-card {
  padding: 56px 44px 60px;
  border-left: 1px solid var(--ink-100);
  transition: background .4s var(--ease);
  position: relative;
}
.focus-card:first-child { border-left: 0; }

/* Top accent rail on hover — premium polish */
.focus-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--green-700);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s var(--ease-out);
}
.focus-card:hover { background: var(--green-50); }
.focus-card:hover::before { transform: scaleX(1); }

/* Clean top border at mobile */
@media (max-width: 900px) {
  .focus-card { border-left: 0; border-top: 1px solid var(--ink-100); padding: 44px 28px 48px; }
  .focus-card:first-child { border-top: 0; }
  .focus-card::before { display: none; }
}

.focus-card-glyph {
  color: var(--green-700);
  margin-bottom: 32px;
  transition: transform .5s var(--ease-spring), color .3s var(--ease);
}
.focus-card:hover .focus-card-glyph { transform: rotate(4deg) scale(1.08); color: var(--green-500); }

.focus-card-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 32px);
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.1;
}
.focus-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-400);
  margin-bottom: 28px;
}
.focus-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.focus-tags span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  color: var(--ink-400);
  background: rgba(255,255,255,.7);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.focus-card:hover .focus-tags span {
  border-color: var(--green-200);
  color: var(--green-700);
  background: rgba(255,255,255,.9);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-filter {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  padding: 0 var(--pad-x);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--paper);
  letter-spacing: .01em;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.filter-pill span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-300);
  padding-left: 10px;
  border-left: 1px solid var(--ink-100);
  transition: color .3s var(--ease), border-left-color .3s var(--ease);
}
.filter-pill:hover {
  border-color: var(--ink-400);
  color: var(--ink);
  box-shadow: 0 2px 10px -2px rgba(10,10,10,.08);
}
.filter-pill.is-active {
  background: var(--green-700);
  color: var(--paper);
  border-color: var(--green-700);
  box-shadow: 0 6px 20px -6px rgba(74,186,100,.45);
}
.filter-pill.is-active span {
  color: rgba(255,255,255,.7);
  border-left-color: rgba(255,255,255,.25);
}

.portfolio-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 580px)  { .portfolio-grid { grid-template-columns: 1fr; gap: 14px; } }

/* Cards — consistent 4/5 aspect ratio on all breakpoints */
.pcard {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-100);
  transition: transform .7s var(--ease-out), opacity .5s var(--ease);
  cursor: pointer;
}
.pcard.is-hidden { display: none; }
.pcard-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}
.pcard:hover .pcard-img { transform: scale(1.06); }
.pcard-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(0,0,0,.12) 0%,
    rgba(0,0,0,.0) 30%,
    rgba(0,0,0,.52) 72%,
    rgba(0,0,0,.86) 100%);
  transition: background .5s var(--ease);
}
.pcard:hover .pcard-veil {
  background: linear-gradient(180deg,
    rgba(0,0,0,.22) 0%,
    rgba(0,0,0,.18) 30%,
    rgba(0,0,0,.68) 72%,
    rgba(0,0,0,.93) 100%);
}
.pcard-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 30px;
  z-index: 2;
  color: var(--paper);
}
.pcard-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pcard-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,.1);
}
.pcard-sector {
  color: rgba(255,255,255,.85);
}
.pcard-name {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -.025em;
  line-height: 1;
  margin-bottom: 12px;
}
.pcard-tag {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  max-width: 30ch;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity .45s var(--ease), max-height .5s var(--ease), transform .45s var(--ease);
}
.pcard:hover .pcard-tag {
  opacity: 1;
  max-height: 120px;
  transform: translateY(0);
}
.pcard-arrow {
  position: absolute;
  top: 22px; right: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: background .3s var(--ease), transform .5s var(--ease-spring), color .3s var(--ease), border-color .3s var(--ease);
  z-index: 2;
}
.pcard:hover .pcard-arrow {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: rotate(-45deg) scale(1.08);
}
/* When pcard is an <a> tag it needs block display and no decoration */
a.pcard {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Logo badge — shown top-left of every card.
   Shows the startup logo image when available, otherwise brand-coloured
   initials square (same size & position so the layout never shifts). */
.pcard-logo-badge {
  position: absolute;
  top: 20px; left: 20px;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  overflow: hidden;
  flex-shrink: 0;
}
.pcard-logo-badge img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}
/* Initials fallback (no logo yet) */
.pcard-init {
  position: absolute;
  top: 20px; left: 20px;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-style: normal;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* ============================================================
   ECOSYSTEM / GALAXY
   ============================================================ */
.ecosystem {
  position: relative;
  background: var(--dark-bg);
  color: var(--paper);
  min-height: clamp(640px, 88vh, 880px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Subtle radial glow at center */
.ecosystem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,186,100,.08), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Vignette edges — blend into adjacent sections */
.ecosystem::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--dark-bg) 0%, transparent 14%),
    linear-gradient(to top, var(--dark-bg) 0%, transparent 14%);
  pointer-events: none;
  z-index: 2;
}

#galaxyCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

/* Text overlay — readable and well-spaced */
.ecosystem-inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  width: 100%;
  pointer-events: none;
}
.ecosystem-inner > * { pointer-events: auto; }
.ecosystem-inner .section-title { max-width: 16ch; }
.ecosystem-inner .section-lede { max-width: 48ch; }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition:
    transform .35s var(--ease),
    background .35s var(--ease),
    color .35s var(--ease),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform .35s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--green-700);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--green-900);
  box-shadow: 0 16px 40px -10px rgba(74,186,100,.45);
  transform: translateY(-1px);
}

/* Ghost button — smooth fill transition */
.btn--ghost {
  border: 1.5px solid var(--ink-200);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(10,10,10,.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--ink-100);
  padding: 0 0 36px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: stretch;
  /* Same pattern as .section-head — padding inside max-width container */
  padding: clamp(64px, 8vw, 96px) var(--pad-x);
  border-bottom: 1px solid var(--ink-100);
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: clamp(48px, 8vw, 64px) var(--pad-x);
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent grid-item overflow — lets column shrink below content size */
}
.footer-col--brand {
  justify-content: flex-start;
  align-items: flex-start; /* prevents flex stretch from distorting the logo or any child */
  gap: 20px;
}
.footer-col--brand p {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.4;
  color: var(--ink-500);
  max-width: 22ch;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

/* Footer logo — same size as nav */
.footer-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: 260px;
  align-self: flex-start;
  flex-shrink: 0;
  margin-bottom: 20px;
}

/* Big Apply CTA — fills right column */
.footer-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* label anchors top, subtext anchors bottom */
  min-width: 0; /* prevent grid-item overflow */
  background: var(--green-700);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 3.5vw, 48px);
  color: var(--paper);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: clamp(220px, 22vw, 280px);
  width: 100%;
  transition: background .4s var(--ease), transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(165,214,167,.28), transparent 58%),
    radial-gradient(ellipse at bottom left, rgba(46,125,50,.35), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.footer-cta > * { position: relative; z-index: 1; }
.footer-cta:hover {
  background: var(--green-900);
  transform: translateY(-4px);
  box-shadow: 0 28px 64px -16px rgba(74,186,100,.4);
}

/* "Apply now" text */
.footer-cta-label {
  font-family: var(--f-serif);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--paper);
  display: block;
  margin-bottom: 16px;
}
.footer-cta-sub {
  display: block;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 400;
  color: rgba(255,255,255,.78);
  max-width: 34ch;
  line-height: 1.55;
}
.footer-cta-arrow {
  position: absolute; /* floats above flex flow — doesn't affect label/subtext spacing */
  top: clamp(24px, 2.8vw, 36px);
  right: clamp(24px, 2.8vw, 36px);
  z-index: 2;
  color: rgba(255,255,255,.8);
  transition: transform .4s var(--ease-spring), color .3s var(--ease);
}
.footer-cta:hover .footer-cta-arrow {
  transform: translate(6px, -6px);
  color: var(--paper);
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-500);
  transition: color .3s var(--ease);
  position: relative;
  width: fit-content;
  font-weight: 500;
  letter-spacing: .01em;
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--green-700);
  transition: width .35s var(--ease);
}
.footer-links a:hover { color: var(--green-700); }
.footer-links a:hover::after { width: 100%; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  /* Same padding pattern as .footer-grid for consistent horizontal alignment */
  padding: 28px var(--pad-x) 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-300);
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px var(--pad-x) 28px;
  }
}


/* ============================================================
   NAV PANEL
   ============================================================ */
.navpanel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
  z-index: calc(var(--z-panel) - 1);
}
.navpanel-overlay.is-open { opacity: 1; visibility: visible; }

.navpanel {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(480px, 100vw);
  background: var(--paper);
  z-index: var(--z-panel);
  transform: translateX(100%);
  transition: transform .65s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 28px 36px 28px;
}
.navpanel.is-open { transform: translateX(0); }

.navpanel-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink);
  transition: background .3s var(--ease), transform .4s var(--ease), color .3s var(--ease);
}
.navpanel-close:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(90deg);
}

.navpanel-tabs {
  display: flex;
  gap: 0;
  margin-top: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
}
.navpanel-tab {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 17px;
  font-style: italic;
  padding: 6px 0;
  margin-right: 28px;
  color: var(--ink-300);
  position: relative;
  transition: color .3s var(--ease);
}
.navpanel-tab.is-active { color: var(--ink); }
.navpanel-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -25px; left: 0; right: 0;
  height: 2px;
  background: var(--green-700);
}

.navpanel-content {
  flex: 1;
  overflow-y: auto;
  margin-top: 24px;
}
.navpanel-pane { display: none; }
.navpanel-pane.is-active { display: block; }

.navpanel-viewall {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 16px;
  transition: color .3s var(--ease);
}
.navpanel-viewall:hover { color: var(--ink); }
.navpanel-viewall svg { margin-left: auto; }

.navpanel-list {
  list-style: none;
}
.navpanel-list li {
  opacity: 0;
  transform: translateX(20px);
}
.navpanel.is-open .navpanel-list li {
  animation: panelItemIn .6s var(--ease-out) forwards;
}
.navpanel.is-open .navpanel-list li:nth-child(1)  { animation-delay: .15s; }
.navpanel.is-open .navpanel-list li:nth-child(2)  { animation-delay: .19s; }
.navpanel.is-open .navpanel-list li:nth-child(3)  { animation-delay: .23s; }
.navpanel.is-open .navpanel-list li:nth-child(4)  { animation-delay: .27s; }
.navpanel.is-open .navpanel-list li:nth-child(5)  { animation-delay: .31s; }
.navpanel.is-open .navpanel-list li:nth-child(6)  { animation-delay: .35s; }
.navpanel.is-open .navpanel-list li:nth-child(7)  { animation-delay: .39s; }
.navpanel.is-open .navpanel-list li:nth-child(8)  { animation-delay: .43s; }
.navpanel.is-open .navpanel-list li:nth-child(9)  { animation-delay: .47s; }
.navpanel.is-open .navpanel-list li:nth-child(10) { animation-delay: .51s; }
.navpanel.is-open .navpanel-list li:nth-child(11) { animation-delay: .55s; }
.navpanel.is-open .navpanel-list li:nth-child(12) { animation-delay: .59s; }
@keyframes panelItemIn {
  to { opacity: 1; transform: translateX(0); }
}

.navpanel-list li button,
.navpanel-list li a {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--ink-100);
  transition: padding .35s var(--ease), color .3s var(--ease);
}
.navpanel-list li button:hover,
.navpanel-list li a:hover {
  padding-left: 8px;
  color: var(--green-700);
}

.np-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
  transition: transform .35s var(--ease-spring);
}
.navpanel-list li button:hover .np-dot,
.navpanel-list li a:hover .np-dot { transform: scale(1.4); }

.np-name {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.015em;
  color: var(--ink);
  flex-shrink: 0;
}
.np-tag {
  font-size: 12.5px;
  color: var(--ink-400);
  margin-left: auto;
  text-align: right;
  font-style: italic;
}

.navpanel-list--firm li a {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.025em;
  color: var(--ink);
  padding: 18px 0;
}

.navpanel-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--ink-100);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-300);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .word { opacity: 1; transform: none; }
}

/* ============================================================
   NAV AUX — lang toggle + login button
   ============================================================ */
.nav-aux {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(10,10,10,.04);
}
.nav.on-dark .lang-toggle {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.lang-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-400);
  transition: color .3s var(--ease), background .3s var(--ease);
  border-radius: 999px;
}
.lang-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}
.nav.on-dark .lang-btn { color: rgba(255,255,255,.5); }
.nav.on-dark .lang-btn.is-active { background: var(--paper); color: var(--ink); }

.nav-login {
  padding: 8px 18px;
  border: 1.5px solid var(--ink-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.nav-login:hover { color: var(--ink); border-color: var(--ink); }
.nav.on-dark .nav-login { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
.nav.on-dark .nav-login:hover { border-color: var(--paper); color: var(--paper); }
@media (max-width: 1000px) { .nav-login { display: none; } }
@media (max-width: 820px) { .nav-aux { gap: 6px; } }

/* Nav scroll shadow */
.nav.has-shadow {
  border-bottom-color: rgba(10,10,10,.1);
  box-shadow: 0 2px 20px -4px rgba(10,10,10,.08);
}

/* ============================================================
   SECTION LINK — "see all →" in section heads
   ============================================================ */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-700);
  letter-spacing: .01em;
  transition: gap .3s var(--ease), color .3s var(--ease);
  align-self: flex-end;
  white-space: nowrap;
}
.section-link:hover { gap: 14px; color: var(--green-900); }

/* HERO — stacked layout: text above, full-width card below */
#hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: clamp(24px, 3.5vw, 44px);
  padding: 0 clamp(24px, 3vw, 48px);
  box-sizing: border-box;
}
.hero-visual .hero-mockup {
  width: 100%;
}
@media (max-width: 720px) {
  .hero-visual { display: none; }
}

.hero-mockup {
  width: 100%;
  background: rgba(10,26,10,.94);
  border: 1px solid rgba(74,186,100,.15);
  border-radius: 20px;
  padding: 24px;
  transform: rotate(2deg);
  box-shadow:
    0 32px 80px -16px rgba(74,186,100,.28),
    0 0 0 1px rgba(74,186,100,.08);
  animation: mockupFloat 4s ease-in-out infinite;
}
@keyframes mockupFloat {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%       { transform: rotate(2deg) translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) { .hero-mockup { animation: none; } }

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mockup-logo {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--paper);
  letter-spacing: -.01em;
}
.mockup-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 8px rgba(74,186,100,.55);
  animation: pulse 2.4s infinite;
}
.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 72px;
  gap: 8px;
  margin-bottom: 16px;
}
.mockup-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.mockup-stat-n {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
  letter-spacing: -.02em;
  line-height: 1;
}
.mockup-stat-l {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.mockup-ring { justify-content: center; }
.mockup-rows { display: flex; flex-direction: column; gap: 1px; }
.mockup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  border-radius: 8px;
  transition: background .3s;
}
.mockup-row:hover { background: rgba(255,255,255,.04); }
.mockup-row-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-700);
  flex-shrink: 0;
}
.mockup-row-info { flex: 1; min-width: 0; }
.mockup-row-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.2;
}
.mockup-row-tag {
  font-size: 10px;
  color: rgba(255,255,255,.38);
}
.mockup-row-badge {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-400);
  padding: 3px 7px;
  border: 1px solid rgba(74,186,100,.2);
  border-radius: 999px;
}

/* ============================================================
   IMPACT NUMBERS STRIP
   ============================================================ */
.impact {
  background: #111111;
  padding: clamp(56px, 8vw, 88px) 0;
}
.impact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) {
  .impact-inner { grid-template-columns: repeat(2, 1fr); }
}
.impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-left: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.impact-stat:first-child { border-left: 0; }
@media (max-width: 700px) {
  .impact-stat:nth-child(3) { border-left: 0; }
  .impact-stat:nth-child(1),
  .impact-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 28px; }
  .impact-stat:nth-child(3),
  .impact-stat:nth-child(4) { padding-top: 28px; }
}
.impact-num {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -.03em;
  color: var(--paper);
  line-height: 1;
  display: block;
}
.impact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
}

/* ============================================================
   WHY TRIPLA
   ============================================================ */
.why { background: var(--paper); }
.why .section-head { padding-bottom: clamp(40px, 4vw, 60px); }
.why-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 14px; } }

.why-card {
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition:
    transform .5s var(--ease-out),
    border-color .4s var(--ease),
    background .4s var(--ease),
    box-shadow .5s var(--ease-out);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-300);
  background: var(--paper);
  box-shadow: 0 20px 50px -16px rgba(74,186,100,.18);
}
.why-glyph {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  margin-bottom: 24px;
  transition: background .4s var(--ease), color .3s var(--ease), transform .5s var(--ease-spring);
}
.why-card:hover .why-glyph {
  background: var(--green-700);
  color: var(--paper);
  transform: scale(1.08) rotate(-3deg);
}
.why-card h3 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}
.why-card p { font-size: 15px; line-height: 1.65; color: var(--ink-400); }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--paper-warm);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
.services .section-head { padding-bottom: clamp(40px, 4vw, 60px); }
.services-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-700);
}
.services-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  transition:
    transform .4s var(--ease-out),
    border-color .3s var(--ease),
    box-shadow .4s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-200);
  box-shadow: 0 12px 32px -10px rgba(74,186,100,.14);
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  margin-bottom: 18px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.service-card:hover .service-icon { background: var(--green-700); color: var(--paper); }
.service-card h4 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.service-card p { font-size: 14px; line-height: 1.6; color: var(--ink-400); }

/* ============================================================
   GRANTS TEASER
   ============================================================ */
.grants {
  background: var(--green-50);
  border-top: 1px solid var(--green-200);
  border-bottom: 1px solid var(--green-200);
  padding: var(--pad-y) 0;
}
.grants-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .grants-inner { grid-template-columns: 1fr; gap: 40px; } }
.grants-text .section-title { max-width: 20ch; }
.grants-list { list-style: none; display: flex; flex-direction: column; }
.grants-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--green-200);
  font-size: 15px;
}
.grants-list li:last-child { border-bottom: 0; }
.grants-list li div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}
.grants-list li strong { font-weight: 600; color: var(--ink); }
.grants-list li span { font-size: 13px; font-weight: 600; color: var(--green-700); white-space: nowrap; }
.grants-check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  flex-shrink: 0;
}

/* ============================================================
   PORTFOLIO TEASER
   ============================================================ */
.port-teaser { background: var(--paper); border-top: 1px solid var(--ink-100); }
.port-teaser-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .port-teaser-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 580px)  { .port-teaser-grid { grid-template-columns: 1fr; gap: 14px; } }

.pt-card {
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition:
    transform .5s var(--ease-out),
    border-color .4s var(--ease),
    box-shadow .5s var(--ease-out);
}
.pt-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-300);
  box-shadow: 0 20px 48px -14px rgba(74,186,100,.18);
}
.pt-avatar {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  color: var(--paper);
  background: var(--green-700);
  flex-shrink: 0;
}
.pt-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pt-sector {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-700);
  padding: 4px 10px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 999px;
}
.pt-stage {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 4px 10px;
  border: 1px solid var(--ink-100);
  border-radius: 999px;
}
.pt-name {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 22px);
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.15;
}
.pt-desc { font-size: 14px; line-height: 1.6; color: var(--ink-400); flex: 1; }
.pt-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-top: auto;
  transition: gap .3s var(--ease);
}
.pt-card:hover .pt-link { gap: 13px; }

/* ============================================================
   ARTICLES TEASER
   ============================================================ */
.art-teaser {
  background: var(--paper-warm);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
.art-teaser-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .art-teaser-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 580px)  { .art-teaser-grid { grid-template-columns: 1fr; gap: 14px; } }

.acard {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.acard:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(10,10,10,.14);
}
.acard-cover {
  height: 124px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.acard-sector-badge {
  position: absolute;
  bottom: 10px; left: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
}
.acard-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.acard-date {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.acard-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 18px);
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.3;
}
.acard-excerpt { font-size: 13px; line-height: 1.6; color: var(--ink-400); flex: 1; }
.acard-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-top: 4px;
  transition: gap .3s var(--ease);
}
.acard:hover .acard-readmore { gap: 12px; }

/* ============================================================
   EVENTS TEASER
   ============================================================ */
.ev-teaser { background: var(--paper); border-top: 1px solid var(--ink-100); }
.ev-teaser-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .ev-teaser-grid { grid-template-columns: 1fr; } }

.evcard {
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition:
    transform .4s var(--ease-out),
    border-color .3s var(--ease),
    box-shadow .4s var(--ease-out);
}
.evcard:hover {
  transform: translateY(-3px);
  border-color: var(--green-200);
  box-shadow: 0 12px 32px -10px rgba(74,186,100,.12);
}
.evcard-date {
  min-width: 50px; width: 50px; height: 56px;
  border-radius: 12px;
  background: var(--green-700);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.evcard-day {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.02em;
}
.evcard-month {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: 2px;
}
.evcard-content { flex: 1; min-width: 0; }
.evcard-type {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 5px;
}
.evcard-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 7px;
  line-height: 1.3;
}
.evcard-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-400);
  margin-bottom: 12px;
}
.evcard-register {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.evcard-register:hover { background: var(--green-700); color: var(--paper); border-color: var(--green-700); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background: var(--paper-warm);
  border-top: 1px solid var(--ink-100);
  padding: var(--pad-y) 0;
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 40px; } }

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-400);
}
.contact-info li a {
  color: var(--green-700);
  font-weight: 500;
  transition: color .3s var(--ease);
}
.contact-info li a:hover { color: var(--green-900); }
.contact-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.cf-field input,
.cf-field textarea {
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-100);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  outline: none;
  width: 100%;
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(74,186,100,.08);
}
.cf-field input.is-error,
.cf-field textarea.is-error { border-color: #e53e3e; }
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-err { font-size: 11.5px; color: #e53e3e; min-height: 16px; display: block; }
.cf-success {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-700);
  padding: 14px 18px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 10px;
  text-align: center;
}

/* ============================================================
   FOOTER — newsletter + socials
   ============================================================ */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
}
.footer-nl-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 2px;
}
.footer-nl-row {
  display: flex;
  gap: 6px;
}
.footer-nl-input {
  flex: 1;
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-100);
  border-radius: 999px;
  padding: 9px 16px;
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  min-width: 0;
}
.footer-nl-input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(74,186,100,.08);
}
.footer-nl-btn {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--f-sans);
  transition: background .3s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-nl-btn:hover { background: var(--green-900); transform: translateY(-1px); }
.newsletter-msg {
  font-size: 12px;
  font-weight: 500;
  color: var(--green-700);
  min-height: 16px;
  display: block;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer-social-link {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.footer-social-link:hover {
  color: var(--green-700);
  border-color: var(--green-200);
  background: var(--green-50);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-email {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.footer-email:hover { color: var(--green-900); }

/* ============================================================
   INNER PAGE SHARED STYLES
   (pages other than index.html)
   ============================================================ */
body.inner-page {
  overflow: auto;
  height: auto;
}
body.inner-page .nav {
  position: sticky;
  transform: none !important;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
body.inner-page .nav.has-shadow {
  box-shadow: 0 2px 20px -4px rgba(10,10,10,.08);
  border-bottom-color: rgba(10,10,10,.1);
}
.page-hero {
  background: var(--dark-bg);
  color: var(--paper);
  padding: clamp(80px, 12vw, 140px) var(--pad-x) clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(74,186,100,.08), transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 20px;
}
.page-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
}
.page-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--paper);
  max-width: 16ch;
  margin-bottom: 20px;
}
.page-title em { font-style: italic; font-weight: 500; color: var(--green-300); }
.page-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,.6);
  max-width: 46ch;
}
.inner-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}
.inner-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .inner-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 580px)  { .inner-grid-3 { grid-template-columns: 1fr; gap: 14px; } }
.inner-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .inner-grid-2 { grid-template-columns: 1fr; } }

/* Filter pills (portfolio, articles) */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Portfolio cards (inner page) */
.pcard-inner {
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition:
    transform .5s var(--ease-out),
    border-color .4s var(--ease),
    box-shadow .5s var(--ease-out);
}
.pcard-inner:hover {
  transform: translateY(-4px);
  border-color: var(--green-300);
  box-shadow: 0 20px 48px -14px rgba(74,186,100,.18);
}
.pcard-inner .pt-link { margin-top: 0; }

/* Team cards */
.team-card {
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  align-items: center;
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  color: var(--paper);
  flex-shrink: 0;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.team-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-700);
}
.team-bio { font-size: 14px; line-height: 1.65; color: var(--ink-400); }
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-700);
  padding: 7px 16px;
  border: 1px solid var(--green-200);
  border-radius: 999px;
  background: var(--green-50);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.team-linkedin:hover { background: var(--green-700); color: var(--paper); border-color: var(--green-700); }

/* Article cards */
.article-card {
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(10,10,10,.14); }
.article-card-cover { height: 140px; flex-shrink: 0; }
.article-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-card-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  padding: 4px 10px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 999px;
  width: fit-content;
}
.article-card-date {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.article-card-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.25;
}
.article-card-excerpt { font-size: 13.5px; line-height: 1.6; color: var(--ink-400); flex: 1; }
.article-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-top: 4px;
  transition: gap .3s var(--ease);
}
.article-card:hover .article-card-read { gap: 12px; }

/* Event cards (full page) */
.event-card {
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: transform .4s var(--ease-out), border-color .3s var(--ease), box-shadow .4s var(--ease-out);
}
.event-card:hover { transform: translateY(-3px); border-color: var(--green-200); box-shadow: 0 12px 32px -10px rgba(74,186,100,.12); }
.event-date-badge {
  min-width: 54px; width: 54px; height: 60px;
  border-radius: 12px;
  background: var(--green-700);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-date-day {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
}
.event-date-month {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: 2px;
}
.event-info { flex: 1; min-width: 0; }
.event-type-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 6px;
}
.event-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}
.event-desc { font-size: 14px; line-height: 1.6; color: var(--ink-400); margin-bottom: 12px; }
.event-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-400);
  margin-bottom: 16px;
}

/* Registration modal */
.reg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.reg-overlay.is-open { display: flex; }
.reg-modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
}
.reg-modal-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 6px;
}
.reg-modal-sub { font-size: 14px; color: var(--ink-400); margin-bottom: 28px; }
.reg-form { display: flex; flex-direction: column; gap: 16px; }
.reg-field { display: flex; flex-direction: column; gap: 6px; }
.reg-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.reg-field input {
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1.5px solid var(--ink-100);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.reg-field input:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(74,186,100,.08); }
.reg-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  transition: background .3s, color .3s, transform .4s var(--ease);
  cursor: pointer;
}
.reg-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.reg-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px 0;
}
.reg-success.is-shown { display: flex; }
.reg-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
}

/* Past events collapse */
.collapsible-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-400);
  border-top: 1px solid var(--ink-100);
  transition: color .3s var(--ease);
}
.collapsible-toggle:hover { color: var(--ink); }
.collapsible-toggle svg { margin-left: auto; transition: transform .4s var(--ease); }
.collapsible-toggle.is-open svg { transform: rotate(180deg); }
.collapsible-body { display: none; }
.collapsible-body.is-open { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }

/* Portfolio slug page */
.startup-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}
.startup-detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.startup-detail-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-400);
  margin-bottom: 48px;
}
.startup-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 580px) { .startup-detail-grid { grid-template-columns: 1fr; } }
.startup-detail-item {
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  padding: 18px 20px;
}
.startup-detail-item-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 6px;
}
.startup-detail-item-value {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* Article slug page */
.article-hero {
  background: var(--dark-bg);
  padding: clamp(80px, 12vw, 140px) var(--pad-x) clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.article-body-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad-x);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-400);
}
.article-body-wrap p { margin-bottom: 24px; }
.startup-tag-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  margin-top: 48px;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s var(--ease), box-shadow .4s var(--ease-out);
}
.startup-tag-card:hover { border-color: var(--green-300); box-shadow: 0 8px 24px -8px rgba(74,186,100,.14); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-400);
  transition: color .3s var(--ease);
  margin-bottom: 20px;
}
.back-link:hover { color: var(--ink); }

/* Section heading inside inner pages */
.inner-section-head {
  margin-bottom: clamp(32px, 4vw, 52px);
}
.inner-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 16px;
}
.inner-section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
}
.inner-section-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.08;
}
.inner-section-title em { font-style: italic; font-weight: 500; color: var(--green-700); }
.inner-empty {
  font-size: 16px;
  color: var(--ink-300);
  padding: 48px 0;
  text-align: center;
}

/* Arabic font */
[lang="ar"] {
  font-family: 'Dubai', 'Noto Kufi Arabic', 'Segoe UI', Tahoma, var(--f-sans);
}
[lang="ar"] .hero-title,
[lang="ar"] .section-title,
[lang="ar"] .page-title,
[lang="ar"] .footer-cta-label,
[lang="ar"] .thesis-card-title,
[lang="ar"] .focus-card-title {
  font-family: 'Dubai', 'Noto Kufi Arabic', 'Segoe UI', Tahoma, var(--f-sans);
  font-style: normal;
}

/* Mobile responsive final fixes */
@media (max-width: 375px) {
  :root { --pad-x: 16px; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .btn { padding: 13px 20px; font-size: 13px; }
}
