/* P3 brand refresh — restrained black-and-white system */
:root {
  --black: #080808;
  --white: #f7f7f7;
  --gray-50: #f2f2f2;
  --gray-100: #e6e6e6;
  --gray-200: #d0d0d0;
  --gray-300: #adadad;
  --gray-400: #858585;
  --gray-500: #626262;
  --gray-600: #454545;
  --gray-700: #303030;
  --gray-800: #1c1c1c;
  --gray-900: #111111;
  --accent: #f7f7f7;
  --accent-dim: rgba(255, 255, 255, 0.08);
  --accent-glow: transparent;
  --font-display: "Jost", "Avenir Next", "Century Gothic", sans-serif;
  --font-body: "Jost", "Avenir Next", "Century Gothic", sans-serif;
  --font-copy: "Source Sans 3", "Segoe UI", sans-serif;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --page-max: 1400px;
  --line: rgba(255, 255, 255, 0.14);
}

html {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--black);
  font-size: clamp(15px, 0.22vw + 14px, 17px);
}

body {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  letter-spacing: 0.005em;
}

p,
li,
input,
textarea,
.portfolio-card-detail,
.team-card-title,
.testimonial-role,
.letter-modal-body,
.bio-modal-body,
.footer-address {
  font-family: var(--font-copy);
}

::selection {
  background: var(--white);
  color: var(--black);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

/* Navigation */
nav {
  min-height: 92px;
  padding: 0.65rem var(--page-gutter);
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

nav .nav-inner {
  width: 100%;
  max-width: var(--page-max);
  position: relative;
  justify-content: center;
}

.nav-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.nav-logo img {
  width: auto;
  height: clamp(64px, 5vw, 78px);
  filter: none;
}

.nav-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  margin: 0;
  column-gap: clamp(8.5rem, 12vw, 11rem);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.4rem);
}

.nav-group-left {
  justify-content: flex-end;
}

.nav-group-right {
  justify-content: flex-start;
}

body[data-page="home"] .nav-logo {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body[data-page="home"] .nav-links {
  column-gap: clamp(1.1rem, 3vw, 3rem);
}

.nav-links a {
  position: relative;
  color: var(--gray-400);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
  transform: scaleX(1);
}

.nav-toggle-icon {
  color: var(--white);
  font-family: var(--font-display);
}

/* Shared page structure */
.content-wrap,
.portfolio-grid,
.testimonials-grid,
.reputation-page,
.section-grid {
  max-width: var(--page-max) !important;
}

.content-wrap {
  padding-right: 0;
  padding-left: 0;
}

#page-portfolio > div,
#page-realized > div,
#page-reputation > div,
.team-page,
.investor-page {
  padding-top: 9rem !important;
  padding-right: var(--page-gutter) !important;
  padding-left: var(--page-gutter) !important;
}

/* Team — keep the roster composed on ultrawide displays. */
.team-page {
  width: 100%;
  max-width: var(--page-max);
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.team-page > p {
  max-width: 640px;
}

.team-page .exec-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.team-page > .team-grid:not(.exec-grid) {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.page[id^="page-case-"] > div {
  max-width: var(--page-max) !important;
  padding-top: 8rem !important;
  padding-right: var(--page-gutter) !important;
  padding-left: var(--page-gutter) !important;
}

.case-back {
  padding-top: 0;
}

.section-label,
.team-tier-label {
  color: var(--gray-300);
  font-family: var(--font-display);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.section-label::before,
.team-tier-label::before {
  width: 30px;
  background: var(--gray-300);
}

.page h1,
.page h2,
.page h3 {
  font-family: var(--font-display) !important;
  font-style: normal !important;
}

.page h1 em,
.page h2 em,
.page h3 em {
  color: var(--gray-300) !important;
  font-style: normal !important;
}

.portfolio-section h2,
#page-portfolio > div > .content-wrap > h2,
#page-realized > div > .content-wrap > h2,
#page-reputation > div > .content-wrap > h2,
.team-page > h2,
.investor-page > h2,
.case-header h1,
.case-header h2,
.cta-section h2,
.about-heading {
  font-weight: 400 !important;
  letter-spacing: 0.045em !important;
  line-height: 1.05;
  text-transform: uppercase;
}

.team-page > h2,
.investor-page > h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

/* Realized — one centered opening and one shared content edge */
.realized-hero {
  width: min(100%, 880px);
  margin: 0 auto clamp(4.5rem, 7vw, 6.5rem);
  text-align: center;
}

.realized-hero .section-label {
  justify-content: center;
}

.realized-hero .section-label::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gray-300);
}

.realized-hero h1 {
  margin-bottom: 1.4rem !important;
  font-size: clamp(2.8rem, 5vw, 4.8rem) !important;
  font-weight: 400 !important;
  line-height: 1.02;
  letter-spacing: 0.055em !important;
  text-transform: uppercase;
}

.realized-hero-copy {
  margin-right: auto !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  color: var(--gray-300) !important;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem) !important;
  font-weight: 400 !important;
}

.realized-stats {
  width: min(100%, 720px);
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  margin: clamp(2.2rem, 4vw, 3rem) auto 0 !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.realized-stats > div {
  padding: 1.5rem 1rem;
  border-left: 1px solid var(--line);
  text-align: center;
}

.realized-stats > div:first-child {
  border-left: 0;
}

.realized-stats .hero-stat-label {
  color: var(--gray-300);
  font-size: 0.66rem;
}

.realized-section-header {
  padding-right: clamp(1.6rem, 2.4vw, 2.5rem) !important;
  padding-left: clamp(1.6rem, 2.4vw, 2.5rem) !important;
}

.realized-section-header p {
  color: var(--gray-300) !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

.realized-grid {
  margin-right: auto !important;
  margin-left: auto !important;
}

.realized-grid .portfolio-card-type {
  color: var(--gray-300);
  font-size: 0.7rem;
}

.realized-grid .portfolio-card-detail {
  color: var(--gray-300) !important;
  font-size: 0.9rem !important;
  font-weight: 400;
  line-height: 1.5;
}

.realized-grid .portfolio-card > div:first-child > div:last-child {
  color: var(--gray-300) !important;
  font-size: 0.9rem !important;
  font-weight: 400;
  line-height: 1.6 !important;
}

.realized-grid .portfolio-card-metric-label {
  color: var(--gray-300);
  font-size: 0.64rem;
}

/* Home — simple, centered, and intentionally quiet */
.home-hero {
  min-height: max(700px, 100svh);
  display: grid;
  place-items: center;
  padding: clamp(8rem, 13vh, 10rem) var(--page-gutter) clamp(4.5rem, 8vh, 7rem);
}

.home-hero::before,
.home-hero::after {
  display: none;
}

.home-hero-inner {
  width: min(100%, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero-logo {
  width: clamp(135px, 10vw, 180px);
  height: auto;
  display: block;
  filter: none;
}

.home-hero-inner.is-revealing .home-hero-logo {
  animation: p3-logo-reveal 720ms var(--ease-out) 80ms both;
}

.home-hero-rule {
  width: 42px;
  height: 1px;
  margin: clamp(1.8rem, 3vh, 2.7rem) 0;
  background: var(--gray-300);
}

.home-hero-inner.is-revealing .home-hero-rule {
  transform-origin: center;
  animation: p3-rule-reveal 640ms var(--ease-out) 540ms both;
}

.home-mantra {
  display: grid;
  gap: 0.1em;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.8vw, 6.25rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-mantra span {
  --mantra-shift: 0.18em;
  display: block;
  will-change: clip-path, opacity, transform;
}

.home-mantra span:nth-child(2) {
  --mantra-shift: -0.18em;
}

.home-hero-inner.is-revealing .home-mantra span {
  animation: p3-mantra-reveal 880ms var(--ease-out) both;
}

.home-hero-inner.is-revealing .home-mantra span:nth-child(1) {
  animation-delay: 680ms;
}

.home-hero-inner.is-revealing .home-mantra span:nth-child(2) {
  animation-delay: 820ms;
}

.home-hero-inner.is-revealing .home-mantra span:nth-child(3) {
  animation-delay: 960ms;
}

.home-mantra span + span::before {
  display: none;
}

.home-aum {
  margin-top: clamp(1.8rem, 3vh, 2.6rem);
  color: var(--gray-400);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-aum strong {
  color: var(--white);
  font-weight: 500;
}

.home-hero-inner.is-revealing .home-aum {
  animation: p3-detail-reveal 600ms var(--ease-out) 1.28s both;
}

.home-about-link {
  margin-top: 1.4rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--gray-300);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
}

.home-about-link span {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 160ms ease;
}

.home-hero-inner.is-revealing .home-about-link {
  animation: p3-detail-reveal 600ms var(--ease-out) 1.4s both;
}

.home-about-link:hover {
  color: var(--white);
  border-color: var(--white);
}

.home-about-link:hover span {
  transform: translateX(3px);
}

@keyframes p3-logo-reveal {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes p3-rule-reveal {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes p3-mantra-reveal {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translate3d(var(--mantra-shift), 0.6em, 0);
    letter-spacing: 0.11em;
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    letter-spacing: 0.06em;
  }
}

@keyframes p3-detail-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* About */
.about-page {
  padding-top: 92px;
}

.about-intro,
.core-focus,
.core-values {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.about-intro {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  border-top: 1px solid var(--line);
}

.about-kicker,
.about-section-heading > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray-300);
  font-family: var(--font-display);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-kicker::before,
.about-kicker::after,
.about-section-heading > span::before,
.about-section-heading > span::after {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.about-intro-grid {
  width: min(100%, 820px);
  margin-top: clamp(2.5rem, 4vw, 4rem);
  margin-right: auto;
  margin-left: auto;
}

.about-intro h2 {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  color: var(--white);
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.055em;
  text-align: center;
  text-transform: uppercase;
}

.about-story p {
  color: var(--gray-400);
  font-size: clamp(1rem, 1vw, 1.08rem);
  line-height: 1.72;
}

.about-story p + p {
  margin-top: 1.2rem;
}

.about-story .about-story-lead {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: var(--white);
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  line-height: 1.55;
  text-align: center;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-facts > div {
  min-height: 125px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.4rem clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
  text-align: center;
}

.about-facts > div:first-child {
  border-left: 0;
}

.about-facts strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
}

.about-facts span {
  margin-top: 0.6rem;
  color: var(--gray-500);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.core-focus,
.core-values {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.about-page > .core-focus:first-child {
  padding-top: clamp(6rem, 10vw, 9rem);
  border-top: 0;
}

.about-section-heading {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.about-section-heading h1,
.about-section-heading h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 3.5vw, 3.7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.core-focus-statement {
  max-width: 760px;
  margin: clamp(1rem, 1.8vw, 1.4rem) auto 0;
  padding-top: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
}

.core-focus-statement::before {
  display: none;
}

.core-focus-statement em {
  color: var(--gray-300);
  font-style: normal;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  width: min(100%, 1080px);
  margin: clamp(1.1rem, 1.6vw, 1.4rem) auto 0;
}

.value-card {
  min-width: 0;
  padding: 1.3rem 0 2.8rem;
  border-top: 2px solid var(--gray-300);
}

.value-card:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 1.5rem);
  justify-self: center;
}

.value-number {
  color: var(--gray-400);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.value-card h3 {
  margin-top: 0.65rem;
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.value-promise {
  margin-top: 0.7rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.value-card ul {
  margin-top: 1rem;
  list-style: none;
}

.value-card:last-child ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
}

.value-card li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  color: var(--gray-400);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Existing pages and components */
.portfolio-section,
.cta-section,
footer {
  border-color: var(--line);
}

.portfolio-section {
  padding: clamp(4.5rem, 7vw, 7rem) var(--page-gutter);
}

.portfolio-grid,
.team-grid,
.testimonials-grid {
  gap: 1px;
  background: var(--line);
}

.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-card,
.team-card,
.testimonial-card,
.team-placeholder {
  background: var(--black);
}

.portfolio-card:hover,
.team-card:hover,
.testimonial-card:hover {
  background: var(--gray-900);
}

.portfolio-card {
  min-height: clamp(250px, 20vw, 300px);
  padding: clamp(1.6rem, 2.4vw, 2.5rem);
}

.portfolio-card h3,
.case-body h3,
.case-outcome h3,
.investor-login-card h3,
.letter-modal-org {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.portfolio-card-type,
.portfolio-card-metric-label,
.hero-stat-label,
.case-metric-label,
.testimonial-context,
.investor-card-label,
.letter-modal-from {
  color: var(--gray-400);
  font-family: var(--font-display);
  letter-spacing: 0.15em;
}

.portfolio-card-badge,
.case-badge,
.investor-login-card,
.investor-card,
.case-outcome,
.letter-modal-content,
.bio-modal {
  border-color: var(--line);
}

.portfolio-card-badge.blue,
.case-badge.blue {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.portfolio-card-arrow,
.testimonial-card-read,
.team-card-acronym,
.bio-modal-acronym {
  color: var(--gray-300);
}

.case-metrics,
.case-metric {
  border-color: var(--line);
}

.case-hl::before {
  background: var(--white);
}

.case-outcome {
  background: rgba(255, 255, 255, 0.025);
}

.case-gallery img {
  filter: grayscale(100%) brightness(0.75);
}

.investor-login-card,
.investor-card,
.letter-modal-content,
.bio-modal {
  background: var(--gray-900);
}

.investor-login-card input {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--white);
}

.investor-login-error {
  color: var(--gray-300);
}

.btn-primary,
.investor-login-btn {
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-secondary,
.investor-logout {
  border-color: var(--line);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-section {
  padding: clamp(5rem, 8vw, 7.5rem) var(--page-gutter);
}

footer {
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: var(--page-max);
  padding-right: 0;
  padding-left: 0;
}

.footer-logo img {
  height: 38px;
  filter: none;
  opacity: 0.75;
}

@media (max-width: 1040px) {
  nav {
    min-height: 82px;
  }

  nav .nav-inner {
    justify-content: center;
  }

  .nav-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .nav-logo img {
    height: 60px;
  }

  .nav-toggle {
    position: absolute;
    right: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: none;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(8, 8, 8, 0.985);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }

  .nav-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-group-left,
  .nav-group-right {
    justify-content: flex-start;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block !important;
    padding: 0.95rem 0.8rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--white) !important;
  }

  .nav-group-left a:last-child {
    border-bottom: 1px solid var(--line);
  }

  .nav-group-right a:last-child {
    border-bottom: 0;
  }

  .nav-links a::after {
    display: none;
  }

  #page-portfolio > div,
  #page-realized > div,
  #page-reputation > div,
  .team-page,
  .investor-page {
    padding-top: 7.5rem !important;
  }

  .page[id^="page-case-"] > div {
    padding-top: 7rem !important;
  }

  .team-page .exec-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .team-page .exec-grid > .team-card {
    grid-column: span 2;
  }

  .team-page .exec-grid > .team-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .team-page .exec-grid > .team-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .team-page > .team-grid:not(.exec-grid) {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .team-page > .team-grid:not(.exec-grid) > * {
    grid-column: span 2;
  }

  .team-page > .team-grid:not(.exec-grid) > :nth-child(5) {
    grid-column: 2 / span 2;
  }

  .team-page > .team-grid:not(.exec-grid) > :nth-child(6) {
    grid-column: 4 / span 2;
  }

  .team-page > .team-grid:not(.exec-grid) > :nth-child(7) {
    grid-column: 6 / span 2;
  }

  .about-page {
    padding-top: 82px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .realized-hero {
    margin-bottom: 3.5rem;
  }

  .realized-stats > div {
    padding: 1.2rem 0.4rem;
  }

  .realized-stats .hero-stat-label {
    font-size: 0.55rem;
    line-height: 1.4;
  }

  .team-page .exec-grid,
  .team-page > .team-grid:not(.exec-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-page .exec-grid > .team-card,
  .team-page .exec-grid > .team-card:nth-child(4),
  .team-page .exec-grid > .team-card:nth-child(5) {
    grid-column: auto;
  }

  .team-page > .team-grid:not(.exec-grid) > *,
  .team-page > .team-grid:not(.exec-grid) > :nth-child(5),
  .team-page > .team-grid:not(.exec-grid) > :nth-child(6),
  .team-page > .team-grid:not(.exec-grid) > :nth-child(7) {
    grid-column: auto;
  }

  .team-page .exec-grid > .team-card:last-child {
    width: 50%;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .team-page > .team-grid:not(.exec-grid) > :last-child {
    width: 50%;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .home-hero {
    min-height: max(650px, 100svh);
    padding-top: 7.5rem;
  }

  .home-hero-logo {
    width: clamp(130px, 36vw, 160px);
  }

  .home-mantra {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .about-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-facts > div {
    min-height: 112px;
    border-bottom: 1px solid var(--line);
  }

  .about-facts > div:nth-child(odd) {
    border-left: 0;
  }

  .about-facts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .values-grid,
  .portfolio-grid,
  .testimonials-grid,
  .case-body {
    grid-template-columns: 1fr;
  }

  .value-card,
  .value-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .value-card:last-child ul {
    display: block;
  }

  .value-card li {
    font-size: 0.92rem;
  }

  footer,
  .footer-left,
  .footer-right {
    width: 100%;
  }

  .footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .team-page .exec-grid,
  .team-page > .team-grid:not(.exec-grid) {
    grid-template-columns: 1fr;
  }

  .team-page .exec-grid > .team-card:last-child {
    width: 100%;
    grid-column: auto;
  }

  .team-page > .team-grid:not(.exec-grid) > :last-child {
    width: 100%;
    grid-column: auto;
  }

  nav {
    min-height: 82px;
  }

  .nav-logo img {
    height: 60px;
  }

  .about-page {
    padding-top: 82px;
  }

  .about-intro h2 {
    font-size: clamp(2.9rem, 14vw, 3.9rem);
  }

  .about-facts strong {
    font-size: 1.9rem;
  }

  .portfolio-card {
    min-height: 235px;
  }

  .cta-buttons,
  .cta-buttons a {
    width: 100%;
  }

  .cta-buttons a {
    justify-content: center;
  }
}

/* Interior pages — strict black-and-white editorial system. Home stays black. */
body:not([data-page="home"]) {
  --black: #ffffff;
  --white: #111111;
  --gray-50: #151515;
  --gray-100: #1d1d1d;
  --gray-200: #2b2b2b;
  --gray-300: #3d3d3d;
  --gray-400: #555555;
  --gray-500: #707070;
  --gray-600: #989898;
  --gray-700: #d5d5d5;
  --gray-800: #e8e8e8;
  --gray-900: #f5f5f5;
  --accent: #111111;
  --accent-dim: rgba(17, 17, 17, 0.06);
  --accent-glow: transparent;
  --line: rgba(17, 17, 17, 0.16);
  background: #ffffff;
  color: #111111;
}

body:not([data-page="home"]) .page.active {
  background: #ffffff;
}

body:not([data-page="home"]) nav {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.025);
}

body:not([data-page="home"]) .nav-logo img,
body:not([data-page="home"]) .footer-logo img {
  filter: invert(1);
}

body:not([data-page="home"]) .portfolio-card,
body:not([data-page="home"]) .team-card,
body:not([data-page="home"]) .testimonial-card,
body:not([data-page="home"]) .team-placeholder,
body:not([data-page="home"]) .investor-login-card,
body:not([data-page="home"]) .investor-card,
body:not([data-page="home"]) .letter-modal-content,
body:not([data-page="home"]) .bio-modal,
body:not([data-page="home"]) .case-outcome {
  background: #ffffff;
}

body:not([data-page="home"]) .portfolio-card:hover,
body:not([data-page="home"]) .team-card:hover,
body:not([data-page="home"]) .testimonial-card:hover {
  background: #f5f5f5;
}

body:not([data-page="home"]) .team-card-cfo:hover {
  background: #ffffff;
}

body:not([data-page="home"]) .team-card-blank {
  background: #f1f1f1;
}

body:not([data-page="home"]) .portfolio-grid,
body:not([data-page="home"]) .team-grid,
body:not([data-page="home"]) .testimonials-grid {
  background: var(--line);
}

body:not([data-page="home"]) .portfolio-card-badge,
body:not([data-page="home"]) .portfolio-card-badge.dim,
body:not([data-page="home"]) .case-badge,
body:not([data-page="home"]) .case-metrics,
body:not([data-page="home"]) .case-metric,
body:not([data-page="home"]) .case-outcome,
body:not([data-page="home"]) .team-placeholder,
body:not([data-page="home"]) .investor-coming-soon {
  border-color: var(--line);
}

body:not([data-page="home"]) .investor-login-card input {
  background: #ffffff;
  border-color: var(--line);
  color: var(--white);
}

body:not([data-page="home"]) .investor-login-card input:focus {
  border-color: rgba(17, 17, 17, 0.48);
}

body:not([data-page="home"]) .case-gallery img {
  filter: grayscale(100%) brightness(0.92) contrast(0.96);
}

body:not([data-page="home"]) .case-gallery img:hover {
  filter: grayscale(0%) brightness(1) contrast(1);
}

body:not([data-page="home"]) .team-card-links a:hover {
  color: var(--white);
}

@media (max-width: 1040px) {
  body:not([data-page="home"]) .nav-links {
    background: rgba(255, 255, 255, 0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
