/* About page only: everything scoped to body.about-page, so /ai, /marketing and /404 don't download it with the
 * shared /assets/il/site-subpage.css (whose CTA block still holds the rules About shares with /ai). Load right
 * after site-subpage.css: some rules here have the same specificity as shared ones there, so file order decides. */
/* ABOUT HERO */
body.portfolio-page.about-page .about-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--site-navbar-height) + 42px) 0 88px;
  background: linear-gradient(180deg, #f6f6f5 0%, #f2f2f2 45%, #f0f0ef 100%);
  overflow: hidden;
}
@media (max-width: 768px) {
  body.portfolio-page.about-page .about-hero {
    padding: calc(var(--site-navbar-height) + 56px) 0 88px;
  }
}
body.portfolio-page.about-page .about-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
body.portfolio-page.about-page .about-hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 64px;
  line-height: 70px;
  letter-spacing: -3.2px;
  text-transform: uppercase;
  color: var(--neutral-950);
  margin: 0 0 28px;
}
body.portfolio-page.about-page .about-hero__title-accent { color: var(--brand-blue); }
body.portfolio-page.about-page .about-hero__subtitle {
  font-size: 18px;
  line-height: 30px;
  font-weight: 400;
  color: var(--neutral-800);
  margin: 0;
}
body.portfolio-page.about-page .about-hero__col-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  min-height: min(480px, 62vh);
}
body.portfolio-page.about-page .about-hero__bg-ripple {
  position: absolute;
  inset: -45% -35%;
  z-index: 2; /* behind main visual */
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: multiply;
  filter: none;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform;
}
body.portfolio-page.about-page .about-hero__bg-ripple::before,
body.portfolio-page.about-page .about-hero__bg-ripple::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62vmin;
  height: 62vmin;
  transform: translate(-50%, -50%) scale(0.92);
  border-radius: 999px;
  /* Topographic / radar rings (less dense, with edge breaks) */
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(10, 10, 10, 0.00) 0px,
      rgba(10, 10, 10, 0.00) 28px,
      rgba(10, 10, 10, 0.18) 29px,
      rgba(10, 10, 10, 0.00) 30px);
  -webkit-mask-image:
    radial-gradient(circle at 50% 50%,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 58%,
      rgba(0,0,0,0) 76%),
    repeating-conic-gradient(from 18deg,
      rgba(0,0,0,1) 0deg,
      rgba(0,0,0,1) 14deg,
      rgba(0,0,0,0) 16deg,
      rgba(0,0,0,1) 22deg,
      rgba(0,0,0,1) 34deg,
      rgba(0,0,0,0) 36deg,
      rgba(0,0,0,1) 52deg,
      rgba(0,0,0,1) 62deg,
      rgba(0,0,0,0) 64deg,
      rgba(0,0,0,1) 90deg);
  mask-image:
    radial-gradient(circle at 50% 50%,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 58%,
      rgba(0,0,0,0) 76%),
    repeating-conic-gradient(from 18deg,
      rgba(0,0,0,1) 0deg,
      rgba(0,0,0,1) 14deg,
      rgba(0,0,0,0) 16deg,
      rgba(0,0,0,1) 22deg,
      rgba(0,0,0,1) 34deg,
      rgba(0,0,0,0) 36deg,
      rgba(0,0,0,1) 52deg,
      rgba(0,0,0,1) 62deg,
      rgba(0,0,0,0) 64deg,
      rgba(0,0,0,1) 90deg);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: 0;
  animation: aboutHeroTopoRipple 4200ms ease-out infinite;
}
body.portfolio-page.about-page .about-hero__bg-ripple::after { animation-delay: 1200ms; }
@keyframes aboutHeroTopoRipple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
  18% { opacity: 0.55; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.10); }
}
@media (prefers-reduced-motion: reduce) {
  body.portfolio-page.about-page .about-hero__bg-ripple::before,
  body.portfolio-page.about-page .about-hero__bg-ripple::after {
    animation: none;
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(1);
  }
}
body.portfolio-page.about-page .about-hero__hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
body.portfolio-page.about-page .about-hero__scramble-layer { position: absolute; inset: 0; pointer-events: none; }
body.portfolio-page.about-page .about-hero__scramble-float {
  position: absolute;
  transform: translate(-100%, 0);
  opacity: 0;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.25s ease;
  mix-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
body.portfolio-page.about-page .about-hero__scramble-float.is-in { opacity: 0.92; }
body.portfolio-page.about-page .about-hero__scramble-float.is-out { opacity: 0; }
body.portfolio-page.about-page .about-hero__scramble-line-wrap {
  position: relative;
  flex-shrink: 0;
  width: 1.25em;
  min-height: 12ch;
}
body.portfolio-page.about-page .about-hero__scramble-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(63, 117, 245, 0.72);
  text-shadow: 0 0 18px rgba(63, 117, 245, 0.12);
  white-space: nowrap;
  line-height: 1;
}
body.portfolio-page.about-page .about-hero__visual { position: relative; width: min(560px, 100%); height: 100%; }
body.portfolio-page.about-page .about-hero__visual-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 100%);
  height: auto;
  transform: translate(-50%, -52%);
  opacity: 0.9;
  filter: blur(0px);
  pointer-events: none;
  user-select: none;
}
body.portfolio-page.about-page .about-hero__visual-tilt {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
  /* Default angle: rotateX 55deg, rotateZ -25deg */
  transform: perspective(920px) rotateX(55deg) rotateZ(-25deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
body.portfolio-page.about-page .about-hero__visual {
  width: min(560px, 100%);
  height: 100%;
}
body.portfolio-page.about-page .about-hero__img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 92%); height: auto; }
body.portfolio-page.about-page .about-hero__img--ghost { opacity: 0.0; transition: opacity 240ms ease; }
body.portfolio-page.about-page .about-hero__visual--interactive:hover .about-hero__img--ghost { opacity: 0.22; }
/* Radar / topo contours layer (shows over main visual) */
body.portfolio-page.about-page .about-hero__contours {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  pointer-events: none;
  z-index: 4;
  transform: translateZ(120px) rotateX(55deg) rotateZ(-25deg) scaleY(0.72);
  background-image: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 40px,
    rgba(63, 117, 245, 0.2) 41px,
    transparent 42px
  );
  opacity: 0.42;
  mix-blend-mode: multiply;
}
/* Ensure rotated base image matches our hero angle spec */
body.portfolio-page.about-page .about-hero__img--base {
  transform: translate(-50%, -50%) rotate(40deg);
}
body.portfolio-page.about-page .about-hero__img--ghost {
  transform: translate(-50%, -50%) rotate(40deg);
}
/* Mid-bottom vertical gradient line (flow) */
body.portfolio-page.about-page .about-hero__line {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}
body.portfolio-page.about-page .about-hero__line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(63, 117, 245, 0.55), transparent);
  animation: about-hero-line-flow 2s infinite ease-in-out;
}
@keyframes about-hero-line-flow {
  0%,
  100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
}
body.portfolio-page.about-page .about-hero__ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(63,117,245,0.55);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}
body.portfolio-page.about-page .about-hero__ripple.is-anim { animation: aboutRipple 780ms ease-out 1; }
@keyframes aboutRipple {
  0% { opacity: 0.0; transform: translate(-50%, -50%) scale(0.65); }
  25% { opacity: 0.55; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(10); }
}
@media (prefers-reduced-motion: reduce) {
  body.portfolio-page.about-page .about-hero__line::before { animation: none; transform: none; }
  body.portfolio-page.about-page .about-hero__visual-tilt { transition: none; transform: none !important; }
}
@media (max-width: 1024px) {
  body.portfolio-page.about-page .about-hero__inner { grid-template-columns: 1fr; }
  body.portfolio-page.about-page .about-hero__title { font-size: 48px; line-height: 54px; letter-spacing: -2.4px; }
  body.portfolio-page.about-page .about-hero__col-visual { min-height: 380px; }
}
/* JOURNEY */
body.portfolio-page.about-page .about-journey {
  padding: 120px 0 120px;
  background: #ffffff;
}
body.portfolio-page.about-page .about-journey__copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}
body.portfolio-page.about-page .about-journey__title {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
body.portfolio-page.about-page .about-journey__lead {
  color: var(--neutral-950);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 46ch;
}
body.portfolio-page.about-page .about-journey__lead--strong { font-weight: 500; }
body.portfolio-page.about-page .about-journey__lead-rule {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  color: rgba(17,24,39,0.55);
}
body.portfolio-page.about-page .about-journey__lead-rule-line {
  height: 1px;
  background: rgba(17,24,39,0.12);
  width: 100%;
}
body.portfolio-page.about-page .about-journey__lead-rule-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}
body.portfolio-page.about-page .about-journey__body-wrap {
  position: relative;
  padding-left: clamp(18px, 2.2vw, 32px);
}
body.portfolio-page.about-page .about-journey__body-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(17,24,39,0.10);
}
body.portfolio-page.about-page .about-journey__body {
  margin: 0;
  color: var(--neutral-800);
  font-size: 14px;
  line-height: 1.75;
  max-width: 70ch;
}
body.portfolio-page.about-page .about-journey__logo-marquee {
  position: relative;
  margin-top: 38px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  display: flex;
}
body.portfolio-page.about-page .about-journey__logo-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 12px 0;
  animation: journeyMarquee 36s linear infinite;
  flex: 0 0 auto;
}
body.portfolio-page.about-page .about-journey__logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  height: 44px;
  box-sizing: border-box;
  overflow: visible;
}
body.portfolio-page.about-page .about-journey__logo-img {
  width: auto;
  max-width: 100%;
  height: 32px;
  max-height: 100%;
  padding: 0 14px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0.75;
  filter: grayscale(100%);
}
body.portfolio-page.about-page .about-journey__logo-img:hover {
  opacity: 0.95;
  filter: grayscale(0%);
}
body.portfolio-page.about-page .about-journey__logo-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  pointer-events: none;
}
body.portfolio-page.about-page .about-journey__logo-fade--left {
  left: 0;
  background: linear-gradient(90deg, #ffffff 10%, rgba(255,255,255,0) 100%);
}
body.portfolio-page.about-page .about-journey__logo-fade--right {
  right: 0;
  background: linear-gradient(270deg, #ffffff 10%, rgba(255,255,255,0) 100%);
}
@keyframes journeyMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  body.portfolio-page.about-page .about-journey__logo-track { animation: none; }
}
@media (max-width: 900px) {
  body.portfolio-page.about-page .about-journey { padding: 64px 0 64px; }
  body.portfolio-page.about-page .about-journey__copy-grid { grid-template-columns: 1fr; }
  body.portfolio-page.about-page .about-journey__body-wrap { padding-left: 0; padding-top: 16px; }
  body.portfolio-page.about-page .about-journey__body-wrap::before { display: none; }
  body.portfolio-page.about-page .about-journey__logo-fade { width: 70px; }
  body.portfolio-page.about-page .about-journey__logo-item { width: 138px; height: 40px; }
  body.portfolio-page.about-page .about-journey__logo-img { height: 30px; padding: 0 12px; }
}
/* IMPACT */
body.portfolio-page.about-page .about-impact {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 120px 0;
  background: var(--neutral-950);
  color: var(--white);
  --impact-rays-scale: 1.28;
}
/* Line-by-line copy reveal (assets/copy-line-reveal.js); re-triggers each time the section enters */
body.portfolio-page.about-page .about-impact.il-line-reveal--pending .about-impact__lead,
body.portfolio-page.about-page .about-impact.il-line-reveal--pending .about-impact__note {
  opacity: 0;
}
body.portfolio-page.about-page .about-impact:not(.about-impact--revealed) .il-line-reveal__line,
body.portfolio-page.about-page .about-impact:not(.about-impact--revealed) .about-impact__kicker,
body.portfolio-page.about-page .about-impact:not(.about-impact--revealed) .about-impact__stats {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: none;
}
body.portfolio-page.about-page .about-impact.about-impact--revealed .il-line-reveal__line,
body.portfolio-page.about-page .about-impact.about-impact--revealed .about-impact__kicker,
body.portfolio-page.about-page .about-impact.about-impact--revealed .about-impact__stats {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.04s + var(--il-line-stagger, 0) * 0.055s);
}
body.portfolio-page.about-page .about-impact .il-line-reveal__line {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  body.portfolio-page.about-page .about-impact .il-line-reveal__line,
  body.portfolio-page.about-page .about-impact .about-impact__kicker,
  body.portfolio-page.about-page .about-impact .about-impact__stats {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body.portfolio-page.about-page .about-impact .about-impact__lead,
  body.portfolio-page.about-page .about-impact .about-impact__note {
    opacity: 1;
  }
}
/* Layout: statement on the left, the numbers on the right (one column below 1280px). */
body.portfolio-page.about-page .about-impact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 56px;
}
body.portfolio-page.about-page .about-impact__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255,255,255,0.86);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  /* Match index .stats: 32px between section label and content below */
  margin: 0 0 32px;
}
body.portfolio-page.about-page .about-impact__lead {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -1.6px;
  max-width: 800px;
  color: var(--white);
  /* Match index hero .hero-heading → .hero-sub rhythm (28px) */
  margin: 0 0 28px;
}
body.portfolio-page.about-page .about-impact__accent { color: var(--brand-blue); }
/* copy-line-reveal.js can wrap a whole line inside an accent span, which turned plain words blue ("HAS",
   "AND"). Colour each word by its own class instead of by the span it ended up in. */
body.portfolio-page.about-page .about-impact__lead .il-line-reveal__w { color: var(--white); }
body.portfolio-page.about-page .about-impact__lead .il-line-reveal__w.about-impact__accent { color: var(--brand-blue); }
body.portfolio-page.about-page .about-impact__note {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.7;
  max-width: 62ch;
}

/* The numbers: one panel with hairline dividers (the index "A Proven Track Record" grid, on dark).
   It is opaque so the rays run behind it rather than through the figures. */
body.portfolio-page.about-page .about-impact__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: #101113;
  overflow: hidden;
}
body.portfolio-page.about-page .about-impact__stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 28px;
}
body.portfolio-page.about-page .about-impact__stat + .about-impact__stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
body.portfolio-page.about-page .about-impact__stat-number {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -1.6px;
  color: var(--brand-blue);
  white-space: nowrap;
}
body.portfolio-page.about-page .about-impact__stat-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
body.portfolio-page.about-page .about-impact__stat-label {
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--white);
}
body.portfolio-page.about-page .about-impact__stat-sub {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 1280px) {
  body.portfolio-page.about-page .about-impact__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(56px, 6vw, 104px);
    align-items: end;
  }
  body.portfolio-page.about-page .about-impact__lead {
    font-size: clamp(32px, 2.65vw, 38px);
  }
  /* A ledger: figure on the left, label and context on the right, one row per stat. The rows share the
     panel's two columns (subgrid), so the labels line up whatever the width of the widest figure. */
  body.portfolio-page.about-page .about-impact__stats {
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 32px;
  }
  body.portfolio-page.about-page .about-impact__stat {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
    padding: 30px 32px;
  }
  body.portfolio-page.about-page .about-impact__stat + .about-impact__stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  body.portfolio-page.about-page .about-impact__stat-number {
    font-size: clamp(32px, 2.6vw, 40px);
  }
}

body.portfolio-page.about-page .about-impact__radial {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  transform: translateX(-50%) scale(var(--impact-rays-scale));
  transform-origin: 50% 100%;
  width: min(1600px, 160vw);
  pointer-events: none;
  opacity: 0.62;
  line-height: 0;
  /* The rays rise from the bottom edge and fade out before they reach the copy. */
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 18%, transparent 72%);
  mask-image: linear-gradient(to top, #000 0%, #000 18%, transparent 72%);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
body.portfolio-page.about-page .about-impact:not(.about-impact--revealed) .about-impact__radial {
  opacity: 0;
  transform: translateX(-50%) scale(calc(var(--impact-rays-scale) * 0.88));
}
@media (prefers-reduced-motion: reduce) {
  body.portfolio-page.about-page .about-impact .about-impact__radial {
    opacity: 0.62;
    transform: translateX(-50%) scale(var(--impact-rays-scale));
    transition: none;
  }
}
body.portfolio-page.about-page .about-impact__radial-svg {
  width: 100%;
  height: auto;
  display: block;
}
/* Draw-in animation variables (set by assets/about-impact-rays-animate.js) */
body.portfolio-page.about-page .about-impact__radial path {
  stroke-dasharray: var(--about-impact-dash, none);
  stroke-dashoffset: var(--about-impact-offset, 0);
  opacity: 0.62;
}
@media (max-width: 899px) {
  body.portfolio-page.about-page .about-impact__stat {
    padding: 24px 20px;
  }
  body.portfolio-page.about-page .about-impact__stat-number {
    font-size: 32px;
    letter-spacing: -1.2px;
  }
}
@media (max-width: 700px) {
  body.portfolio-page.about-page .about-impact {
    padding: 72px 0;
    --impact-rays-scale: 1.05;
  }
  body.portfolio-page.about-page .about-impact__inner {
    row-gap: 40px;
  }
  body.portfolio-page.about-page .about-impact__kicker {
    margin: 0 0 20px;
  }
  body.portfolio-page.about-page .about-impact__lead {
    font-size: clamp(28px, 7.2vw, 34px);
    line-height: 1.06;
    letter-spacing: -1.1px;
    margin: 0 0 18px;
  }
  body.portfolio-page.about-page .about-impact__note {
    font-size: 15px;
    line-height: 1.65;
  }
}
/* Phones: one stat per row, figure beside its label. */
@media (max-width: 599px) {
  body.portfolio-page.about-page .about-impact__stats {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }
  body.portfolio-page.about-page .about-impact__stat {
    gap: 8px;
    padding: 20px;
  }
  body.portfolio-page.about-page .about-impact__stat + .about-impact__stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  body.portfolio-page.about-page .about-impact__stat-number {
    font-size: 30px;
  }
}
/* ECOSYSTEM */
body.portfolio-page.about-page .about-ecosystem {
  padding: 120px 0 120px;
  background: #ffffff;
}
body.portfolio-page.about-page .about-ecosystem__inner { width: 100%; }
body.portfolio-page.about-page .about-community {
  /* Light “institutional” cards */
  --mm-surface: var(--neutral-50);
  --mm-border: rgba(17, 24, 39, 0.1);
  --mm-text-muted: rgba(17, 24, 39, 0.62);
  --mm-meta: rgba(17, 24, 39, 0.45);
  padding: 0 0 120px;
  background: #ffffff;
}
body.portfolio-page.about-page .about-community__container { width: 100%; }
body.portfolio-page.about-page .about-ecosystem__card {
  border: 0;
  background: #f6f6f5;
  border-radius: 32px;
  padding: clamp(24px, 3vw, 36px);
}
body.portfolio-page.about-page .about-ecosystem__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 34px;
  letter-spacing: -0.8px;
  margin: 16px 0 18px;
}
body.portfolio-page.about-page #about-ecosystem-title {
  font-size: 24px;
  letter-spacing: -0.4px;
}
body.portfolio-page.about-page #about-community-title {
  font-size: 24px;
  letter-spacing: -0.5px;
}
body.portfolio-page.about-page .about-ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--neutral-200);
  border-left: 1px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}
body.portfolio-page.about-page .about-ecosystem__cell {
  border-right: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  padding: 40px 32px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.portfolio-page.about-page .about-ecosystem__cell.is-revealed {
  opacity: 1;
}
body.portfolio-page.about-page .about-ecosystem__logo {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  max-width: 160px;
  max-height: 44px;
  opacity: 1;
  filter: saturate(0.9);
  transform: translateY(1px) scale(0.98);
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}
body.portfolio-page.about-page .about-ecosystem__cell:hover .about-ecosystem__logo,
body.portfolio-page.about-page .about-ecosystem__cell.is-active .about-ecosystem__logo {
  filter: saturate(1);
  transform: translateY(0) scale(1.04);
}
body.portfolio-page.about-page .about-community__inner {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: clamp(24px, 3vw, 36px);
  padding-right: clamp(24px, 3vw, 36px);
}
body.portfolio-page.about-page .about-community__subtitle {
  margin: -8px 0 28px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(17, 24, 39, 0.58);
}
body.portfolio-page.about-page .about-community__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
body.portfolio-page.about-page .about-community__highlight-item {
  min-width: 0;
  display: flex;
}
body.portfolio-page.about-page .about-community__highlight-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
body.portfolio-page.about-page .about-community__highlight-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease;
  box-shadow: none;
}
body.portfolio-page.about-page .about-community__highlight-link:hover {
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: none;
}
body.portfolio-page.about-page .about-community__highlight-link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}
body.portfolio-page.about-page .about-community__highlight-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--neutral-100);
}
body.portfolio-page.about-page .about-community__highlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
body.portfolio-page.about-page .about-community__highlight-link:hover .about-community__highlight-media img {
  transform: scale(1.07);
}
@media (prefers-reduced-motion: reduce) {
  body.portfolio-page.about-page .about-community__highlight-media img {
    transition: none;
  }
  body.portfolio-page.about-page .about-community__highlight-link:hover .about-community__highlight-media img {
    transform: none;
  }
}
body.portfolio-page.about-page .about-community__highlight-media--video::after {
  content: "Video";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.52);
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}
body.portfolio-page.about-page .about-community__highlight-media--placeholder {
  background: linear-gradient(135deg, #ecebe8 0%, #f6f6f5 45%, #e8e7e4 100%);
}
body.portfolio-page.about-page .about-community__highlight-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  gap: 10px;
}
body.portfolio-page.about-page .about-community__highlight-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--neutral-950);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body.portfolio-page.about-page .about-community__highlight-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mm-text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex: 1;
}
body.portfolio-page.about-page .about-community__highlight-meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mm-meta);
}
body.portfolio-page.about-page .about-community__highlight-ref {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.38);
}
body.portfolio-page.about-page .about-community__highlight-ref svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
}
@media (max-width: 900px) {
  body.portfolio-page.about-page .about-ecosystem { padding: 96px 0 96px; }
  body.portfolio-page.about-page .about-ecosystem__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.portfolio-page.about-page .about-ecosystem__cell { padding: 34px 26px; height: 120px; }
  body.portfolio-page.about-page .about-ecosystem__logo { max-width: 150px; max-height: 40px; }
  body.portfolio-page.about-page .about-community__highlights {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    /* Room for the 5px focus ring on every side (the scroller clips it); the margin keeps cards in place. */
    padding: 6px;
    margin: -6px -6px 0;
    scroll-padding-inline: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  body.portfolio-page.about-page .about-community__highlights::-webkit-scrollbar { display: none; }
  body.portfolio-page.about-page .about-community__highlight-item {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }
}
@media (max-width: 600px) {
  body.portfolio-page.about-page .about-ecosystem { padding: 72px 0 72px; }
  body.portfolio-page.about-page .about-ecosystem__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.portfolio-page.about-page .about-ecosystem__cell { padding: 28px 18px; height: 110px; }
  body.portfolio-page.about-page .about-ecosystem__logo { max-width: 140px; }
  body.portfolio-page.about-page .about-community__subtitle {
    font-size: 14px;
    margin-bottom: 22px;
  }
}

/* Per-logo sizing for the "Ecosystem Presence" grid. */
body.portfolio-page.about-page .about-ecosystem__logo[src*="ronin"] {
  max-width: 176px;
  max-height: 48px;
}
body.portfolio-page.about-page .about-ecosystem__logo[src*="solana"] {
  max-width: 184px;
  max-height: 46px;
}
body.portfolio-page.about-page .about-ecosystem__logo[src*="logos/beam."] {
  max-width: 184px;
  max-height: 46px;
}
body.portfolio-page.about-page .about-ecosystem__logo[src*="base"] {
  max-width: 164px;
  max-height: 42px;
}
body.portfolio-page.about-page .about-ecosystem__logo[src*="monad"] {
  max-width: 176px;
  max-height: 46px;
}
body.portfolio-page.about-page .about-ecosystem__logo[src*="arbitrum"] {
  max-width: 182px;
  max-height: 50px;
}
body.portfolio-page.about-page .about-ecosystem__logo[src*="ethereum"] {
  max-width: 184px;
  max-height: 50px;
}

@media (max-width: 900px) {
  body.portfolio-page.about-page .about-ecosystem__logo[src*="ronin"] { max-width: 166px; max-height: 44px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="solana"] { max-width: 172px; max-height: 42px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="logos/beam."] { max-width: 170px; max-height: 42px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="base"] { max-width: 154px; max-height: 38px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="monad"] { max-width: 166px; max-height: 42px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="arbitrum"] { max-width: 170px; max-height: 46px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="ethereum"] { max-width: 172px; max-height: 46px; }
}

@media (max-width: 600px) {
  body.portfolio-page.about-page .about-ecosystem__logo[src*="ronin"] { max-width: 156px; max-height: 42px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="solana"] { max-width: 162px; max-height: 40px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="logos/beam."] { max-width: 160px; max-height: 40px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="base"] { max-width: 146px; max-height: 36px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="monad"] { max-width: 156px; max-height: 40px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="arbitrum"] { max-width: 160px; max-height: 44px; }
  body.portfolio-page.about-page .about-ecosystem__logo[src*="ethereum"] { max-width: 162px; max-height: 44px; }
}

/* Portfolio ecosystems only (#18): 4 columns on desktop, 2 below. The last cell stretches over whatever is left
 * of its row, so the bordered grid never ends in empty cells, whatever the number of logos. */
@media (min-width: 1024px) {
  body.portfolio-page.about-page .about-ecosystem__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.portfolio-page.about-page .about-ecosystem__cell:last-child:nth-child(4n + 1) { grid-column: span 4; }
  body.portfolio-page.about-page .about-ecosystem__cell:last-child:nth-child(4n + 2) { grid-column: span 3; }
  body.portfolio-page.about-page .about-ecosystem__cell:last-child:nth-child(4n + 3) { grid-column: span 2; }
}
@media (max-width: 1023px) {
  body.portfolio-page.about-page .about-ecosystem__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.portfolio-page.about-page .about-ecosystem__cell:last-child:nth-child(odd) { grid-column: span 2; }
}

/* Hero title: "BUILDERS" must fit the 320-360px content width (48px clips the last letter at 320px). */
@media (max-width: 360px) {
  body.portfolio-page.about-page .about-hero__title {
    font-size: clamp(36px, 13vw, 48px);
    line-height: 1.125;
    letter-spacing: -0.05em;
  }
}

/* Investor marquee (/assets/about/investors/): per-logo sizing for wordmarks and stacked marks that read
 * too tight or too small at the default strip height. */
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/cms."],
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/incuba-alpha."],
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/ternary-capital."],
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/thelao."],
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/gbv."],
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/divergence."],
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/hashed."],
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/d1."] { height: 30px; padding: 0 18px; }
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/illusionist-group."],
body.portfolio-page.about-page .about-journey__logo-img[src*="investors/sanctor."] { height: 34px; padding: 0 12px; }
@media (max-width: 900px) {
  body.portfolio-page.about-page .about-journey__logo-img[src*="investors/illusionist-group."],
  body.portfolio-page.about-page .about-journey__logo-img[src*="investors/sanctor."] { height: 32px; padding: 0 10px; }
}

/* Pause on hover and on keyboard focus (the strip is focusable for that reason); reduced motion already stops it. */
body.portfolio-page.about-page .about-journey__logo-marquee:hover .about-journey__logo-track,
body.portfolio-page.about-page .about-journey__logo-marquee:focus-within .about-journey__logo-track {
  animation-play-state: paused;
}
/* Reduced motion: the strip does not scroll, so a single clipped row would hide most investors. Wrap the first
 * track into rows instead; the aria-hidden copy and the edge fades only exist for the loop. */
@media (prefers-reduced-motion: reduce) {
  body.portfolio-page.about-page .about-journey__logo-track {
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
  }
  body.portfolio-page.about-page .about-journey__logo-track[aria-hidden="true"],
  body.portfolio-page.about-page .about-journey__logo-fade {
    display: none;
  }
}
body.portfolio-page.about-page .about-journey__logo-marquee:focus { outline: none; }
body.portfolio-page.about-page .about-journey__logo-marquee:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Community & Events cards */
body.portfolio-page.about-page .about-community {
  --mm-meta: var(--neutral-500); /* 4.6:1 on the card surface (was 2.9:1) */
}
body.portfolio-page.about-page .about-community__subtitle { color: var(--neutral-500); }
/* Contain the absolutely positioned .sr-only hint inside the card, so cards scrolled out of the
 * phone/tablet carousel cannot widen the page. */
body.portfolio-page.about-page .about-community__highlight-link { position: relative; }
/* No clamp on descriptions: flex:1 let the clamped box grow past 2 lines (text showed under the ellipsis),
 * and each description is one short sentence. Meta + link sit at the bottom of every card. */
body.portfolio-page.about-page .about-community__highlight-desc {
  display: block;
  -webkit-line-clamp: none;
  overflow: visible;
  flex: none;
}
body.portfolio-page.about-page .about-community__highlight-meta { margin-top: auto; }
body.portfolio-page.about-page .about-community__highlight-ref {
  margin-top: 0;
  color: var(--neutral-500);
}
