/* ====================================================================
   ESTEEP INVESTMENTS
   Dark, minimal, VC-modern. Uses Esteep brand palette but with
   the navy/charcoal dominance and green-accent language of DTFA.
   Colors are darker than the real-estate blue — nearly black with
   a cool charcoal tint. Green (#B4EA3D bloodline) stays the accent.
   ==================================================================== */

:root {
  /* Override the navy tokens to be darker / charcoal for Investments pages */
  --esteep-navy:      #0A1220;   /* charcoal-navy for cards, borders */
  --esteep-navy-deep: #05090F;   /* near-black page background       */
  --esteep-line-dark: rgba(255,255,255,0.08);
}

.inv-body {
  background: var(--esteep-navy-deep);
  color: rgba(255,255,255,0.9);
}
.inv-body h1, .inv-body h2, .inv-body h3, .inv-body h4 {
  color: #fff;
}
.inv-body p { color: rgba(255,255,255,0.74); }
.inv-body .eyebrow { color: var(--esteep-green); }

.inv-body .divider { background: var(--esteep-green); }

.inv-body .site-header {
  background: rgba(5,9,15,0.88);
  border-bottom-color: var(--esteep-line-dark);
}
.inv-body .nav-links a { color: rgba(255,255,255,0.88); font-weight: 400; }
.inv-body .nav-links a:hover { color: #fff; }

/* Brand logo sizing */
.nav-brand--inv img { height: 44px; max-width: 260px; object-fit: contain; }
@media (max-width: 560px) { .nav-brand--inv img { height: 36px; max-width: 200px; } }

/* ---- Hero (split layout — text left, square image right; parity with .re-hero) ---- */
.inv-hero {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.inv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at top right, rgba(180,234,61,0.10), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(255,255,255,0.04), transparent 55%),
    var(--esteep-navy-deep);
}
.inv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.inv-hero-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.inv-hero-content { max-width: 36rem; }

.inv-hero .eyebrow {
  color: var(--esteep-green);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.inv-hero .eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.inv-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 1.3rem;
}
.inv-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--esteep-green);
}
.inv-hero p.lead {
  color: rgba(255,255,255,0.72);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 2.1rem;
  line-height: 1.55;
}
.inv-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Primary button variant — green on the dark hero */
.btn-primary.btn-primary--green {
  background: var(--esteep-green);
  color: var(--esteep-navy-deep);
  border-color: var(--esteep-green);
}
.btn-primary.btn-primary--green:hover {
  background: var(--esteep-green-dark);
  border-color: var(--esteep-green-dark);
  color: var(--esteep-navy-deep);
}

/* Circle-ring CTA (mirrors the real-estate variant; lives here for .inv-body pages) */
.inv-body .btn-circle {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s var(--ease);
}
.inv-body .btn-circle-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--esteep-green);
  color: var(--esteep-green);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
  flex: 0 0 auto;
}
.inv-body .btn-circle-ring svg { width: 18px; height: 18px; }
.inv-body .btn-circle:hover .btn-circle-ring {
  background: var(--esteep-green);
  color: var(--esteep-navy-deep);
  transform: rotate(-8deg);
}
.inv-body .btn-circle:hover .btn-circle-ring svg {
  transform: translateX(2px);
  transition: transform 0.3s var(--ease);
}

/* Square image tile on the right */
.inv-hero-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  overflow: visible;
  isolation: isolate;
}
.inv-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: inset(0);
  transform: scale(1.02);
  transition: transform 14s var(--ease);
}
.inv-hero.is-loaded .inv-hero-media img { transform: scale(1); }
/* Green corner square, top-right */
.inv-hero-media::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 56px;
  height: 56px;
  background: var(--esteep-green);
  z-index: 2;
}
/* Brand arrow sticker, bottom-left */
.inv-arrow-accent {
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 72px;
  height: 72px;
  background: var(--esteep-green);
  color: var(--esteep-navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.inv-arrow-accent svg { width: 55%; height: 55%; }

@media (max-width: 900px) {
  .inv-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .inv-hero-media {
    max-width: 100%;
    order: 2;
  }
  .inv-hero-content { order: 1; }
}

/* ---- Shared dark section base ---- */
.inv-section { padding: var(--section-y) 0; position: relative; }
.inv-section--alt { background: var(--esteep-navy); }

.inv-body .link-arrow {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.4);
}
.inv-body .link-arrow:hover { border-bottom-color: #fff; }

/* ---- Thesis pillars ---- */
.inv-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}
.inv-pillar {
  background: var(--esteep-navy-deep);
  padding: 2.5rem;
  position: relative;
  transition: background 250ms ease;
}
.inv-pillar:hover { background: #0b1323; }
.inv-pillar-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.5rem, 5.5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--esteep-green);
  text-stroke: 1.5px var(--esteep-green);
  display: block;
  position: relative;
  padding-bottom: 1.15rem;
  margin-bottom: 1.4rem;
  /* accent bar moved to background-image so ::before/::after are free for the glitch layers */
  background-image: linear-gradient(to right, var(--esteep-green) 32px, transparent 32px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
}
/* Glitch duplicate layers — top slice (shifts left) and bottom slice (shifts right).
   Idle state: invisible, no animation. Only runs while hovering the card. */
.inv-pillar-num::before,
.inv-pillar-num::after {
  content: attr(data-num);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--esteep-green);
  pointer-events: none;
  opacity: 0;
}
.inv-pillar-num::before { clip-path: polygon(0 0, 100% 0, 100% 48%, 0 48%); }
.inv-pillar-num::after  { clip-path: polygon(0 52%, 100% 52%, 100% 92%, 0 92%); }

/* On hover: run the glitch animations on the number and both slice layers */
.inv-pillar:hover .inv-pillar-num         { animation: inv-num-flicker 0.9s infinite; }
.inv-pillar:hover .inv-pillar-num::before { animation: inv-num-glitch-top 0.9s infinite; }
.inv-pillar:hover .inv-pillar-num::after  { animation: inv-num-glitch-bottom 0.9s infinite; }

@keyframes inv-num-flicker {
  0%, 100%   { opacity: 1; filter: none; transform: translate(0, 0); }
  5%         { opacity: 0.3; filter: blur(0.6px); transform: translate(-1px, 0); }
  5.6%       { opacity: 1;   filter: none; transform: translate(0, 0); }
  21%        { opacity: 0.85; filter: blur(0.4px); transform: translate(1px, 0); }
  21.3%      { opacity: 1;   filter: none; transform: translate(0, 0); }
  34%        { opacity: 0.5; filter: blur(0.5px); transform: translate(-1px, 1px); }
  34.6%      { opacity: 1;   filter: none; transform: translate(0, 0); }
  52%        { opacity: 0.4; filter: blur(0.7px); transform: translate(1px, -1px); }
  52.9%      { opacity: 1;   filter: none; transform: translate(0, 0); }
  68%        { opacity: 0.75; filter: blur(0.3px); transform: translate(0, 1px); }
  68.4%      { opacity: 1;   filter: none; transform: translate(0, 0); }
  81%        { opacity: 0.35; filter: blur(0.8px); transform: translate(-1px, 0); }
  82%        { opacity: 1;   filter: none; transform: translate(0, 0); }
  93%        { opacity: 0.6; filter: blur(0.4px); transform: translate(1px, 0); }
  93.5%      { opacity: 1;   filter: none; transform: translate(0, 0); }
}
@keyframes inv-num-glitch-top {
  0%, 4%, 100%   { transform: translate(0, 0) skewX(0);   opacity: 0; }
  4.5%           { transform: translate(-5px, -1px) skewX(-3deg); opacity: 0.9; }
  5.2%           { transform: translate(4px, 0)    skewX(2deg);   opacity: 0.8;  }
  5.9%           { transform: translate(-3px, 2px) skewX(-2deg);  opacity: 1;    }
  6.6%           { transform: translate(2px, -1px) skewX(1deg);   opacity: 0.7;  }
  7.3%           { transform: translate(-4px, 0)   skewX(0);      opacity: 0.9;  }
  8%             { transform: translate(1px, 0)    skewX(0);      opacity: 0;    }
  20%, 21%       { transform: translate(0, 0);     opacity: 0; }
  21.3%          { transform: translate(-3px, 0);  opacity: 0.8; }
  21.9%          { transform: translate(4px, -1px); opacity: 0;  }
  33%, 34%       { transform: translate(0, 0);     opacity: 0; }
  34.2%          { transform: translate(-6px, 1px); opacity: 0.95; }
  34.8%          { transform: translate(3px, 0);    opacity: 0.8;  }
  35.4%          { transform: translate(-2px, 0);   opacity: 0;    }
  52%            { transform: translate(0, 0);     opacity: 0; }
  52.4%          { transform: translate(-4px, -1px); opacity: 0.9; }
  53.1%          { transform: translate(5px, 1px);  opacity: 0.7; }
  53.8%          { transform: translate(-2px, 0);   opacity: 0;   }
  67%            { transform: translate(0, 0);     opacity: 0; }
  67.4%          { transform: translate(-3px, 0);  opacity: 0.85; }
  68%            { transform: translate(2px, -1px); opacity: 0;   }
  81%            { transform: translate(0, 0);     opacity: 0; }
  81.4%          { transform: translate(-5px, 1px); opacity: 1;   }
  82%            { transform: translate(3px, 0);    opacity: 0.8; }
  82.6%          { transform: translate(-2px, 0);   opacity: 0;   }
  93%            { transform: translate(0, 0);     opacity: 0; }
  93.3%          { transform: translate(-4px, 0);  opacity: 0.8; }
  93.9%          { transform: translate(2px, 0);   opacity: 0;   }
}
@keyframes inv-num-glitch-bottom {
  0%, 4%, 100%   { transform: translate(0, 0) skewX(0);  opacity: 0; }
  4.5%           { transform: translate(5px, 1px)  skewX(3deg);   opacity: 0.85; }
  5.2%           { transform: translate(-4px, 0)  skewX(-2deg);  opacity: 0.9;  }
  5.9%           { transform: translate(3px, -2px) skewX(2deg);   opacity: 0.7;  }
  6.6%           { transform: translate(-2px, 1px) skewX(-1deg);  opacity: 0.95; }
  7.3%           { transform: translate(4px, 0)    skewX(0);      opacity: 0.8;  }
  8%             { transform: translate(0, 0)      skewX(0);      opacity: 0;    }
  20%, 21%       { transform: translate(0, 0); opacity: 0; }
  21.3%          { transform: translate(3px, 0); opacity: 0.75; }
  21.9%          { transform: translate(-4px, 1px); opacity: 0; }
  33%, 34%       { transform: translate(0, 0); opacity: 0; }
  34.2%          { transform: translate(6px, -1px); opacity: 0.85; }
  34.8%          { transform: translate(-3px, 0);   opacity: 0.9;  }
  35.4%          { transform: translate(2px, 0);    opacity: 0;    }
  52%            { transform: translate(0, 0);     opacity: 0; }
  52.4%          { transform: translate(4px, 1px);  opacity: 0.8; }
  53.1%          { transform: translate(-5px, -1px); opacity: 0.75; }
  53.8%          { transform: translate(2px, 0);    opacity: 0;    }
  67%            { transform: translate(0, 0);     opacity: 0; }
  67.4%          { transform: translate(3px, 0);   opacity: 0.8; }
  68%            { transform: translate(-2px, 1px); opacity: 0;  }
  81%            { transform: translate(0, 0);     opacity: 0; }
  81.4%          { transform: translate(5px, -1px); opacity: 0.95; }
  82%            { transform: translate(-3px, 0);   opacity: 0.75; }
  82.6%          { transform: translate(2px, 0);    opacity: 0;    }
  93%            { transform: translate(0, 0);     opacity: 0; }
  93.3%          { transform: translate(4px, 0);   opacity: 0.75; }
  93.9%          { transform: translate(-2px, 0);  opacity: 0;    }
}

/* ===== Glitch effect on the green "rebuilding" em in the hero h1 ===== */
.inv-hero h1 em {
  position: relative;
  display: inline-block;
  animation: inv-em-flicker 6s infinite;
}
.inv-hero h1 em::before,
.inv-hero h1 em::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--esteep-green);
  pointer-events: none;
  opacity: 0;
  font-style: italic;
}
.inv-hero h1 em::before {
  clip-path: polygon(0 0, 100% 0, 100% 48%, 0 48%);
  animation: inv-em-glitch-top 6s infinite;
  text-shadow: 2px 0 rgba(255, 255, 255, 0.55);
}
.inv-hero h1 em::after {
  clip-path: polygon(0 52%, 100% 52%, 100% 100%, 0 100%);
  animation: inv-em-glitch-bottom 6s infinite;
  text-shadow: -2px 0 rgba(127, 168, 101, 0.65);
}
@keyframes inv-em-flicker {
  0%, 100%   { opacity: 1; filter: none; }
  6%         { opacity: 0.6; filter: blur(0.5px); }
  6.6%       { opacity: 1; filter: none; }
  27%        { opacity: 0.8; filter: blur(0.3px); }
  27.4%      { opacity: 1; filter: none; }
  48%        { opacity: 0.5; filter: blur(0.7px); }
  49%        { opacity: 1; filter: none; }
  72%        { opacity: 0.7; filter: blur(0.4px); }
  72.5%      { opacity: 1; filter: none; }
  89%        { opacity: 0.4; filter: blur(0.6px); }
  89.8%      { opacity: 1; filter: none; }
}
@keyframes inv-em-glitch-top {
  0%, 5%, 100%   { transform: translate(0, 0); opacity: 0; }
  5.5%           { transform: translate(-4px, -1px); opacity: 0.9; }
  6.2%           { transform: translate(3px, 0);     opacity: 0.7; }
  6.9%           { transform: translate(-2px, 1px);  opacity: 0.9; }
  7.6%           { transform: translate(1px, 0);     opacity: 0;   }
  27%            { transform: translate(0, 0); opacity: 0; }
  27.3%          { transform: translate(-3px, 0);  opacity: 0.8; }
  27.8%          { transform: translate(2px, -1px); opacity: 0;  }
  48%            { transform: translate(0, 0); opacity: 0; }
  48.3%          { transform: translate(-5px, 1px); opacity: 0.95; }
  48.9%          { transform: translate(3px, 0);   opacity: 0.8;  }
  49.4%          { transform: translate(-1px, 0);  opacity: 0;    }
  72%            { transform: translate(0, 0); opacity: 0; }
  72.3%          { transform: translate(-3px, 0); opacity: 0.85; }
  72.7%          { transform: translate(2px, 0);  opacity: 0;    }
  89%            { transform: translate(0, 0); opacity: 0; }
  89.3%          { transform: translate(-4px, 1px); opacity: 0.9; }
  89.8%          { transform: translate(2px, 0);   opacity: 0;   }
}
@keyframes inv-em-glitch-bottom {
  0%, 5%, 100%   { transform: translate(0, 0); opacity: 0; }
  5.5%           { transform: translate(4px, 1px);  opacity: 0.8; }
  6.2%           { transform: translate(-3px, 0);   opacity: 0.9; }
  6.9%           { transform: translate(2px, -1px); opacity: 0.6; }
  7.6%           { transform: translate(0, 0);      opacity: 0;   }
  27%            { transform: translate(0, 0); opacity: 0; }
  27.3%          { transform: translate(3px, 0);  opacity: 0.75; }
  27.8%          { transform: translate(-2px, 0); opacity: 0;    }
  48%            { transform: translate(0, 0); opacity: 0; }
  48.3%          { transform: translate(5px, -1px); opacity: 0.85; }
  48.9%          { transform: translate(-3px, 0);   opacity: 0.9;  }
  49.4%          { transform: translate(1px, 0);    opacity: 0;    }
  72%            { transform: translate(0, 0); opacity: 0; }
  72.3%          { transform: translate(3px, 0); opacity: 0.8; }
  72.7%          { transform: translate(-2px, 0); opacity: 0;  }
  89%            { transform: translate(0, 0); opacity: 0; }
  89.3%          { transform: translate(4px, -1px); opacity: 0.9; }
  89.8%          { transform: translate(-2px, 0);   opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .inv-hero h1 em,
  .inv-hero h1 em::before,
  .inv-hero h1 em::after { animation: none; opacity: 1; }
  .inv-hero h1 em::before,
  .inv-hero h1 em::after { display: none; }
}
/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .inv-pillar-num,
  .inv-pillar-num::before,
  .inv-pillar-num::after,
  .inv-pillar:hover .inv-pillar-num,
  .inv-pillar:hover .inv-pillar-num::before,
  .inv-pillar:hover .inv-pillar-num::after { animation: none; opacity: 1; }
  .inv-pillar-num::before,
  .inv-pillar-num::after { display: none; }
}
.inv-pillar h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.inv-pillar p {
  color: rgba(255,255,255,0.68);
  font-size: 0.98rem;
  margin: 0;
}
@media (max-width: 820px) {
  .inv-pillars { grid-template-columns: 1fr; }
}

/* ---- Portfolio grid ---- */
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 820px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  background: var(--esteep-navy-deep);
  padding: 2.4rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: transform 0.5s var(--ease);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Hover preview video layer (DTFA-style) */
.portfolio-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.55s var(--ease), transform 1.8s var(--ease);
  pointer-events: none;
}
.portfolio-video--poster {
  background-size: cover;
  background-position: center;
}
.portfolio-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,21,40,0.55) 0%, rgba(7,21,40,0.94) 100%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
.portfolio-card:hover .portfolio-video { opacity: 1; transform: scale(1.0); }
.portfolio-card:hover .portfolio-scrim { opacity: 1; }

.portfolio-card::after {
  content: "→";
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  color: rgba(255,255,255,0.22);
  font-size: 1.2rem;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 4;
}
.portfolio-card:hover::after { color: var(--esteep-green); transform: translate(4px, -4px); }

/* =====================================================================
   Easter-egg "data-stream" hover FX (Investments portfolio cards).
   On hover: a thin hex-byte ticker runs across the top of the card and a
   faint CRT scan-line overlay drifts vertically. Reads as "we're pulling
   live telemetry on this company." Idle state is completely quiet.
   Respects prefers-reduced-motion. Disabled on touch (no hover).
   ===================================================================== */
.portfolio-scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(180, 234, 61, 0.045) 0,
      rgba(180, 234, 61, 0.045) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: screen;
  transition: opacity 0.5s var(--ease);
}
.portfolio-card:hover .portfolio-scanlines { opacity: 1; animation: portfolio-scanlines-drift 5.5s linear infinite; }

@keyframes portfolio-scanlines-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 18px; }
}

.portfolio-stream {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 21, 40, 0.75) 0%,
    rgba(7, 21, 40, 0.35) 65%,
    rgba(7, 21, 40, 0) 100%
  );
  border-bottom: 1px solid rgba(180, 234, 61, 0.14);
  transition: opacity 0.35s var(--ease);
}
.portfolio-stream-track {
  display: inline-block;
  white-space: nowrap;
  padding: 4px 0 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--esteep-green);
  opacity: 0.72;
  /* duplicated stream content → -50% translate yields seamless loop */
  transform: translateX(0);
}
.portfolio-card:hover .portfolio-stream { opacity: 1; }
.portfolio-card:hover .portfolio-stream-track { animation: portfolio-stream-scroll 22s linear infinite; }

@keyframes portfolio-stream-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Tiny "LIVE" status pill, bottom-left. Idle = dim; on hover = pulsing green. */
.portfolio-status {
  position: absolute;
  bottom: 1.2rem;
  left: 2rem;
  z-index: 4;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.3s var(--ease);
}
.portfolio-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.portfolio-card:hover .portfolio-status { color: var(--esteep-green); }
.portfolio-card:hover .portfolio-status-dot {
  background: var(--esteep-green);
  box-shadow: 0 0 10px rgba(180, 234, 61, 0.8);
  animation: portfolio-status-pulse 1.2s ease-in-out infinite;
}
@keyframes portfolio-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

/* ---- ACQUIRED signal — used when a portfolio company has exited via
       acquisition. Gold/champagne accent to read as "graduated" (not
       "live"), a rotated-square glyph instead of the circular LIVE dot,
       and a slow steady shimmer instead of the LIVE pulse. Reserved and
       confident, not flashy. */
.portfolio-status--acquired {
  /* No base color override — inherits the same muted resting state as
     .portfolio-status so the card feels quiet until hover. */
}
.portfolio-status-mark {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.portfolio-card:hover .portfolio-status--acquired { color: #E6C46E; }
.portfolio-card:hover .portfolio-status--acquired .portfolio-status-mark {
  background: #E6C46E;
  box-shadow: 0 0 8px rgba(230, 196, 110, 0.7),
              0 0 2px rgba(230, 196, 110, 0.9);
  animation: portfolio-status-shimmer 2.6s ease-in-out infinite;
}
@keyframes portfolio-status-shimmer {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.55; }
}

/* Touch / no-hover devices: don't render any of the data-stream layer.
   Also drop them entirely for reduced-motion users. */
@media (hover: none) {
  .portfolio-scanlines,
  .portfolio-stream,
  .portfolio-status { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-card:hover .portfolio-scanlines { animation: none; }
  .portfolio-card:hover .portfolio-stream-track { animation: none; }
  .portfolio-card:hover .portfolio-status-dot { animation: none; }
  .portfolio-card:hover .portfolio-status--acquired .portfolio-status-mark { animation: none; }
}

.portfolio-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Logo lock-up — native color by default */
.portfolio-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 48px;
  margin-bottom: 1.6rem;
  color: #fff; /* used by logos with fill="currentColor" */
}
.portfolio-logo img {
  max-height: 44px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.4s var(--ease);
  opacity: 0.95;
}
/* Dark logos (black on transparent) → force to white */
.portfolio-logo[data-variant="invert"] img {
  filter: brightness(0) invert(1);
}
/* Already-light logos (cream/white) → render as-is */
.portfolio-logo[data-variant="light"] img {
  filter: none;
}
/* currentColor logos → inherit white from parent */
.portfolio-logo[data-variant="currentColor"] img {
  filter: none;
}
.portfolio-card:hover .portfolio-logo img { opacity: 1; }

.portfolio-initial {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: #fff;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
}

/* Don't attempt hover autoplay on touch devices — saves bandwidth */
@media (hover: none) {
  .portfolio-video { display: none; }
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--esteep-green);
  margin-bottom: 0.4rem;
}
.portfolio-company {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.15;
}
.portfolio-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.62);
  margin: 0 0 1.4rem;
  line-height: 1.5;
  transition: color 0.4s var(--ease);
}
.portfolio-card:hover p { color: rgba(255,255,255,0.88); }
.portfolio-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---- Team ---- */
.inv-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 720px) { .inv-team-grid { grid-template-columns: 1fr; } }

.inv-team-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
}
.inv-team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--esteep-navy);
  margin-bottom: 1.4rem;
}
.inv-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s var(--ease);
}
.inv-team-card:hover .inv-team-photo img { filter: grayscale(0); }

/* Ziad — keep BW always, adjust head position */
.inv-team-photo--ziad img {
  filter: grayscale(1) !important;
  object-position: center 28%;
}

.inv-team-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.15rem;
}
.inv-team-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--esteep-green);
  margin-bottom: 1rem;
}
.inv-team-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.inv-team-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.inv-team-links a { color: inherit; transition: color 0.2s; }
.inv-team-links a:hover { color: var(--esteep-green); }

/* ---- Stats / numbers ---- */
.inv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.inv-stat {
  background: var(--esteep-navy-deep);
  padding: 2rem 1.8rem;
  text-align: left;
}
.inv-stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  color: var(--esteep-green);
  line-height: 1;
  margin-bottom: 0.8rem;
  display: block;
}
.inv-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 720px) { .inv-stats { grid-template-columns: 1fr 1fr; } }

/* ---- CTA block (dark) ---- */
.inv-cta {
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.inv-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 24ch;
  margin: 0 auto 1rem;
}
.inv-cta p {
  max-width: 54ch;
  margin: 0 auto 2rem;
}
.inv-cta .btn-primary {
  background: var(--esteep-green);
  color: var(--esteep-navy-deep);
}
.inv-cta .btn-primary:hover { background: #fff; }

/* ---- Footer (dark) ---- */
.inv-body .site-footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---- Page head for interior pages ---- */
.inv-page-head {
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  isolation: isolate;
}
.inv-page-head > .wrap { max-width: none; padding-left: clamp(2rem, 5vw, 6rem); padding-right: clamp(2rem, 5vw, 6rem); }
/* Tighten the gap when a section follows the page head */
.inv-page-head + .inv-section { padding-top: clamp(2rem, 4vw, 3rem); }
.inv-page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top right, rgba(127,168,101,0.1), transparent 60%);
}
.inv-page-head h1 { margin-bottom: 0.5rem; max-width: none; }
.inv-page-head p { font-size: 1.2rem; color: rgba(255,255,255,0.72); max-width: none; }

/* ---- Contact form (dark) ---- */
.inv-body .form-field label { color: rgba(255,255,255,0.6); }
.inv-body .form-field input,
.inv-body .form-field select,
.inv-body .form-field textarea {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}
.inv-body .form-field input:focus,
.inv-body .form-field select:focus,
.inv-body .form-field textarea:focus { border-color: var(--esteep-green); }
.inv-body .form-field select option { background: var(--esteep-navy-deep); color: #fff; }
.inv-body .re-contact-info .info-row { border-color: rgba(255,255,255,0.12); }
.inv-body .re-contact-info .info-row:last-child { border-bottom-color: rgba(255,255,255,0.12); }
.inv-body .re-contact-info .info-label { color: rgba(255,255,255,0.5); }

/* Contact form submit button mirrors the .inv-cta primary treatment —
   green pill on the dark contact page, white hover state. */
.inv-body form .btn-primary {
  background: var(--esteep-green);
  color: var(--esteep-navy-deep);
}
.inv-body form .btn-primary:hover { background: #fff; }

/* =====================================================================
   Personal Investments Marquee — compact scrolling logo bar that sits
   directly under the Active Investments grid. Intentionally thin so it
   reads as a supporting strip, not a standalone section.
   ===================================================================== */
.inv-marquee {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-top: clamp(1.4rem, 2.4vw, 2rem);
  border-top: 1px solid var(--esteep-line-dark);
}
.inv-marquee-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--esteep-green);
  margin-bottom: 1rem;
}
.inv-marquee-label sup {
  font-size: 0.85em;
  margin-left: 0.15em;
}

.inv-marquee-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  /* Force GPU layer so the child track animates smoothly.
     NOTE: previously had `contain: layout paint` here, but on some iOS
     Safari versions that combines badly with the animated child and
     caused the marquee to flicker / stop / render at the wrong width
     after scroll. `translateZ(0)` alone is enough for the compositor
     layer without the containment side-effects. */
  transform: translateZ(0);
}
/* Fade overlays at each edge, in the body's navy-deep color.
   Replaced `mask-image` — mask caused compositor jank on desktop
   and could kill the animation entirely on some mobile browsers. */
.inv-marquee-viewport::before,
.inv-marquee-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 90px);
  pointer-events: none;
  z-index: 2;
}
.inv-marquee-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--esteep-navy-deep) 0%, rgba(7,21,40,0) 100%);
}
.inv-marquee-viewport::after {
  right: 0;
  background: linear-gradient(90deg, rgba(7,21,40,0) 0%, var(--esteep-navy-deep) 100%);
}
.inv-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: inv-marquee-scroll 32s linear infinite;
  /* GPU compositing hints — smooth the scroll on desktop and
     ensure the animation actually runs on iOS Safari */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Pause on hover, but only when hover is a real thing
   (desktop). Touch devices fire synthetic hover on tap,
   which otherwise freezes the marquee until you tap elsewhere. */
@media (hover: hover) {
  .inv-marquee:hover .inv-marquee-track {
    animation-play-state: paused;
  }
}
/* Animation duration is set dynamically in js/personal-investments.js
   based on the actual track width, so the scroll speed (px/sec) is
   consistent across screen sizes. This replaces the old media-query
   overrides which produced visible jitter on mobile when the track
   width changed as images loaded. */
.inv-marquee-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 clamp(1.2rem, 2.8vw, 2.6rem);
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.inv-marquee-item:hover { color: #fff; }
.inv-marquee-item img {
  height: 26px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: opacity 0.25s ease;
}
.inv-marquee-item:hover img { opacity: 1; }
@media (max-width: 560px) {
  .inv-marquee-item {
    height: 38px;
    padding: 0 1rem;
  }
  .inv-marquee-item img {
    height: 22px;
    max-width: 140px;
  }
}

.inv-marquee-note {
  margin-top: 1rem;
  /* Scales with viewport so the full sentence always fits on one line
     without being clipped — no ellipsis, no wrap. Caps at 0.72rem on
     very wide screens and shrinks down to ~0.5rem on phones. */
  font-size: clamp(0.5rem, 1.05vw, 0.68rem);
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.01em;
  font-style: italic;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .inv-marquee-note {
    /* Below this width the sentence can't fit on one line at any
       legible size — allow it to wrap rather than clip. */
    white-space: normal;
    font-size: 0.58rem;
    letter-spacing: 0;
  }
}

@keyframes inv-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .inv-marquee-track { animation: none; }
}
