/* Tension's client ledger, scoped to the About page. */
.proof-ledger {
  color: var(--ink);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.proof-ledger-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
}

.proof-ledger-heading h2 {
  margin: 0;
  font: 900 clamp(3rem, 6.2vw, 7rem)/0.83 var(--head);
  letter-spacing: -0.065em;
}

.proof-ledger-heading h2 span {
  display: block;
}

.proof-ledger-heading h2 span + span {
  margin-left: clamp(1.5rem, 7vw, 8rem);
  color: var(--orange);
}

.proof-ledger-heading p {
  margin: 0;
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.35rem);
}

.proof-ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  margin-top: clamp(3rem, 6vh, 6rem);
  border: 2px solid var(--ink);
}

.proof-ledger .named-clients {
  margin: 0;
  padding: clamp(1.2rem, 2.5vw, 2.5rem);
  border-top: 0;
}

.proof-ledger .client-row {
  grid-template-columns: minmax(12rem, 0.58fr) minmax(0, 1.42fr);
  padding: 1.35rem 0;
}

.confidential-proof {
  padding: clamp(1.8rem, 3vw, 3.5rem);
  color: var(--white);
  background: var(--ink);
}

.confidential-proof > p:not(.confidential-copy) {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 0.35rem solid var(--orange);
  font: 900 clamp(1.6rem, 2.7vw, 3.1rem)/0.92 var(--head);
  letter-spacing: -0.045em;
}

.confidential-proof .confidential-copy {
  margin: 2.5rem 0 0;
  color: #cfc8bc;
}

.proof-note {
  margin: 1.3rem 0 0;
  font: 700 0.76rem/1.35 var(--utility);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Keep viewport-sized sections as a minimum, then let long content continue
   in the document's natural scroll instead of creating nested scroll traps. */
.page-main {
  overflow-x: clip;
  overflow-y: visible;
}

.page-main > section {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  scrollbar-gutter: auto;
}

.about-page .page-main > .hero {
  height: calc(100vh - var(--site-head-height));
  height: calc(100svh - var(--site-head-height));
  height: calc(100dvh - var(--site-head-height));
  min-height: 0;
  overflow: hidden;
}

.page-main > section > .section-shell {
  display: grid;
  align-content: center;
  min-height: inherit;
}

.about-page .inside-hero .hero-grid {
  height: 100%;
  min-height: 0;
}

.about-page .inside-hero .hero-copy {
  min-width: 0;
  justify-content: center;
  padding-top: clamp(1.8rem, 4.5vh, 4rem);
  padding-bottom: clamp(1.8rem, 4.5vh, 4rem);
}

.about-page .inside-hero h1 {
  max-width: min(13ch, 100%);
  margin-bottom: clamp(1.4rem, 3.6vh, 3.5rem);
  font-size: clamp(3.8rem, min(9vw, 13.5vh), 10.2rem);
}

.about-page .inside-hero .hero-side p::first-line {
  color: var(--white);
}

.about-page .inside-hero .hero-side p span,
.about-page .quote-break h2 span {
  color: var(--orange);
}

.team-section,
.team-section > .section-shell {
  min-height: 0 !important;
}

.team-section > .section-shell {
  display: block;
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.team-section .plain-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.team-section .plain-grid h2 {
  max-width: 16ch;
}

.team-section .plain-grid .copy-column {
  max-width: 58rem;
}

.team-section .plain-grid .copy-column p {
  margin-bottom: 0;
}

.team-section .people-list {
  display: grid;
}

.team-leads {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-advisors {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-section .person {
  min-width: 0;
  padding: clamp(1.6rem, 2.4vw, 2.5rem);
}

.team-section .person:first-child {
  padding-left: 0;
}

.team-section .person:last-child {
  padding-right: 0;
}

.team-section .person + .person {
  border-left: 1px solid var(--line);
}

.team-section .person-heading {
  display: block;
  margin-bottom: 1rem;
}

.team-section .person-heading h3 {
  font-size: clamp(1.9rem, 2.8vw, 3.35rem);
}

.team-section .person-heading p {
  margin-top: 0.65rem;
}

.team-section .person-bio {
  margin-bottom: 0;
}

.team-section .external-links {
  gap: 0.8rem 1.35rem;
  margin-top: 1.2rem;
}

.team-section .advisor-note {
  margin-top: clamp(2.2rem, 4vw, 3.5rem);
  padding: 1.4rem 0 1rem;
}

.team-section .advisor-note .section-heading {
  margin-bottom: 0.8rem;
  font-size: clamp(2.3rem, 4vw, 4.4rem);
}

.team-section .advisor-note p {
  margin-bottom: 0;
}

.page-main > section.closing-cta > .section-shell {
  align-content: normal;
}

/* 1024px-wide laptops need the same stacked hero logic as tablets. Keeping
   the black counterpoint as a bottom rail preserves the original composition
   while giving the headline and supporting copy enough room. */
@media (min-width: 701px) and (max-width: 1100px) {
  .about-page .inside-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(6.5rem, 0.22fr);
  }

  .about-page .inside-hero .hero-copy {
    min-height: 0;
    padding-top: clamp(1.15rem, 2.6vh, 1.8rem);
    padding-bottom: clamp(1.15rem, 2.6vh, 1.8rem);
  }

  .about-page .inside-hero h1 {
    max-width: 14ch;
    margin-bottom: clamp(0.75rem, 1.8vh, 1.15rem);
    font-size: clamp(3.2rem, min(8.5vw, 8.2vh), 4.8rem);
  }

  .about-page .inside-hero h1 .cut,
  .about-page .inside-hero .hero-lead,
  .about-page .inside-hero .hero-link {
    margin-left: clamp(0rem, 3vw, 2rem);
  }

  .about-page .inside-hero .hero-lead {
    max-width: 48rem;
    margin-bottom: 0.75rem;
    font-size: clamp(0.94rem, 1.5vw, 1.08rem);
    line-height: 1.3;
  }

  .about-page .inside-hero .hero-side {
    min-height: 0;
    justify-content: center;
    padding: 1rem var(--gutter);
  }

  .about-page .inside-hero .hero-side p {
    max-width: 30ch;
    font-size: clamp(1.45rem, min(3.2vw, 3.8vh), 2rem);
    line-height: 0.94;
  }
}

@media (max-width: 980px) {
  .about-page .page-main > .hero {
    height: calc(100vh - var(--site-head-height));
    height: calc(100svh - var(--site-head-height));
    height: calc(100dvh - var(--site-head-height));
    min-height: 0;
  }

  .about-page .inside-hero .hero-grid {
    grid-template-rows: minmax(0, 1fr) minmax(6.5rem, 0.24fr);
  }

  .about-page .inside-hero .hero-copy {
    padding-top: clamp(1.7rem, 4vh, 3.4rem);
    padding-bottom: clamp(1.7rem, 4vh, 3.4rem);
  }

  .about-page .inside-hero h1 {
    font-size: clamp(3.5rem, min(12vw, 11vh), 7.3rem);
  }

  .proof-ledger-heading,
  .proof-ledger-grid {
    grid-template-columns: 1fr;
  }

  .proof-ledger-grid {
    border: 0;
  }

  .proof-ledger .named-clients,
  .confidential-proof {
    border: 2px solid var(--ink);
  }

  .confidential-proof {
    border-top: 0;
  }
}

@media (max-width: 700px) {
  .proof-ledger-heading h2 span + span {
    margin-left: 0;
  }

  .proof-ledger .client-row {
    grid-template-columns: 1fr;
  }

  .about-page .page-main > .hero {
    height: calc(100vh - var(--site-head-height));
    height: calc(100svh - var(--site-head-height));
    height: calc(100dvh - var(--site-head-height));
    min-height: 0;
  }

  .about-page .inside-hero .hero-grid {
    grid-template-rows: minmax(0, 1fr) minmax(6.2rem, 0.22fr);
  }

  .about-page .inside-hero .hero-copy {
    padding-top: clamp(1rem, 2.3vh, 1.5rem);
    padding-bottom: clamp(1rem, 2.3vh, 1.5rem);
  }

  .about-page .inside-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(3rem, min(15.5vw, 10.5vh), 5.4rem);
  }

  .about-page .inside-hero .hero-lead {
    margin-bottom: 0.85rem;
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
    line-height: 1.3;
  }

  .about-page .inside-hero .hero-side {
    padding: 1rem 1.3rem;
  }

  .about-page .inside-hero .hero-side p {
    font-size: clamp(1.15rem, 5.4vw, 1.4rem);
    line-height: 0.94;
  }

  .team-leads,
  .team-advisors {
    grid-template-columns: 1fr;
  }

  .team-section .person,
  .team-section .person:first-child,
  .team-section .person:last-child {
    padding-right: 0;
    padding-left: 0;
  }

  .team-section .person + .person {
    border-left: 0;
  }
}

@media (max-height: 720px) and (min-width: 701px) {
  .about-page .page-main > .hero {
    height: calc(100vh - var(--site-head-height));
    height: calc(100svh - var(--site-head-height));
    height: calc(100dvh - var(--site-head-height));
    min-height: 0;
  }

  .about-page .inside-hero .hero-copy {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .about-page .inside-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(3.1rem, 8.2vh, 5.2rem);
  }

  .about-page .inside-hero .hero-lead {
    margin-bottom: 0.8rem;
    font-size: clamp(0.95rem, 2vh, 1.2rem);
  }
}

/* Keep the desktop split hero at wider laptop widths, but scale its typography
   to the available vertical space before clipping can occur. */
@media (min-width: 1101px) and (max-width: 1600px) and (max-height: 950px),
       (min-width: 1601px) and (max-height: 820px) {
  .about-page .inside-hero .hero-copy {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .about-page .inside-hero h1 {
    margin-bottom: 0.85rem;
    font-size: clamp(3.1rem, 8vh, 4.5rem);
  }

  .about-page .inside-hero .hero-lead {
    margin-bottom: 0.7rem;
    font-size: clamp(0.93rem, 1.9vh, 1.08rem);
    line-height: 1.28;
  }

  .about-page .inside-hero .hero-side p {
    font-size: clamp(2rem, 5.9vh, 3.4rem);
  }
}

@media (min-width: 1501px) and (max-width: 1920px) and (max-height: 1100px) {
  .about-page .inside-hero .hero-copy {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
  }

  .about-page .inside-hero h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(4.5rem, min(calc(21.5vw - 16.45rem), 13.5vh), 9.1rem);
  }

  .about-page .inside-hero .hero-lead {
    margin-bottom: 0.75rem;
    font-size: clamp(1rem, 1.9vh, 1.2rem);
    line-height: 1.3;
  }

  .about-page .inside-hero .hero-side p {
    font-size: clamp(2.2rem, 5.8vh, 3.8rem);
  }
}

/* On laptops and tablets, content determines section height. This removes the
   empty viewport-sized tails while leaving large-monitor composition intact. */
@media (max-width: 1440px), (max-height: 900px) {
  .about-page .page-main > section:not(.hero),
  .about-page .page-main > section:not(.hero) > .section-shell,
  .about-page .closing-cta .contact-layout {
    height: auto;
    min-height: 0;
  }

  .about-page .quote-break .section-shell {
    align-items: start;
  }
}

/* Preserve both halves of the hero on short landscape devices without
   clipping either one. */
@media (min-width: 701px) and (max-width: 1100px) and (max-height: 650px) {
  .about-page .inside-hero .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(13rem, 0.65fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .about-page .inside-hero .hero-copy {
    padding: clamp(0.65rem, 2vh, 1rem) var(--gutter);
  }

  .about-page .inside-hero h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2.35rem, 10vh, 3.5rem);
  }

  .about-page .inside-hero h1 .cut,
  .about-page .inside-hero .hero-lead,
  .about-page .inside-hero .hero-link {
    margin-left: clamp(0rem, 2.5vw, 1.2rem);
  }

  .about-page .inside-hero .hero-lead {
    margin-bottom: 0.5rem;
    font-size: clamp(0.76rem, 2.4vh, 0.95rem);
    line-height: 1.2;
  }

  .about-page .inside-hero .hero-link {
    font-size: 0.58rem;
  }

  .about-page .inside-hero .hero-side {
    min-height: 0;
    padding: 0.9rem;
  }

  .about-page .inside-hero .hero-side p {
    font-size: clamp(1.15rem, 6.2vh, 1.8rem);
  }
}

@media (max-width: 700px) and (max-height: 650px) {
  .about-page .inside-hero .hero-grid {
    grid-template-rows: minmax(0, 1fr);
  }

  .about-page .inside-hero .hero-side {
    display: none;
  }

  .about-page .inside-hero .hero-copy {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .about-page .inside-hero h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(2.55rem, min(14vw, 8.5vh), 3.2rem);
  }

  .about-page .inside-hero .hero-lead {
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.22;
  }

  .about-page .inside-hero .hero-link {
    font-size: 0.58rem;
    letter-spacing: 0.045em;
  }
}

@media (max-width: 600px) and (max-height: 340px) and (min-aspect-ratio: 4 / 3) {
  .about-page .inside-hero .hero-copy {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .about-page .inside-hero h1 {
    margin-bottom: 0.4rem;
  }

  .about-page .inside-hero .hero-lead {
    margin-bottom: 0.35rem;
  }
}

@media print {
  .page-main > section,
  .page-main > .hero {
    height: auto;
    min-height: auto;
    overflow: visible;
  }
}
