/* Pin-spacer styling: prevent white gap when scrolling past pinned section */
.pin-spacer:has(.about-black-section) {
  background-color: #0F1513;
  overflow: hidden;
}

.about-page-root {
  background: #EAE6E5;
  --about-dual-line-gap: calc(var(--grid-gutter, 12px) * 1.3333333333);
  --about-space-xl: 128px;
  --about-v-line-color: rgba(207, 85, 65, 0.12);
  --about-h-line-color: rgba(207, 85, 65, 0.24);
}

/* Override global tablet dark background (#0F1513) so About page matches desktop:
   - html: light top bar (#F8F7F7)
   - body: EA color for main content (#EAE6E5) */
@media (min-width: 768px) and (max-width: 1024px) {
  html.about-page {
    background-color: #F8F7F7 !important;
    background: #F8F7F7 !important;
  }
  body.about-page-root {
    background-color: #EAE6E5 !important;
    background: #EAE6E5 !important;
  }
}

.about-col-grid {
  --about-line-color: var(--about-v-line-color);
  --about-col-width: calc((100% - (2 * var(--grid-margin, 24px)) - (11 * var(--grid-gutter, 12px))) / 12);
  --about-span-width: calc((var(--about-col-width) * 3) + (var(--grid-gutter, 12px) * 2));
  --about-span-step: calc(var(--about-span-width) + var(--grid-gutter, 12px));
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.about-col-span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--about-span-width);
  border-left: 1px solid var(--about-line-color);
  border-right: 1px solid var(--about-line-color);
}

.about-col-span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 0;
  border-right: 0;
  mix-blend-mode: normal;
  pointer-events: none;
}

.about-col-span--1 {
  left: var(--grid-margin, 24px);
}

.about-col-span--2 {
  left: calc(var(--grid-margin, 24px) + var(--about-span-step));
}

.about-col-span--3 {
  left: calc(var(--grid-margin, 24px) + (var(--about-span-step) * 2));
}

.about-col-span--4 {
  left: calc(var(--grid-margin, 24px) + (var(--about-span-step) * 3));
}

.about-main {
  min-height: 100vh;
  position: relative;
  z-index: 2;
  padding-bottom: calc(var(--about-space-xl) * 2);
}

.about-rhythm-section {
  position: relative;
  z-index: 2;
  padding: 32px var(--grid-margin, 24px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter, 12px);
  margin-top: 0;
  border-bottom: 1px solid var(--about-h-line-color);
}

.about-rhythm-inner {
  grid-column: 1 / span 12;
}

.about-rhythm-text {
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  color: rgba(15, 21, 19, 0.6);
  letter-spacing: 0;
}

.about-rhythm-glitch {
  color: rgba(15, 21, 19, 0.6);
  transition: color 0.28s ease;
}

.about-rhythm-glitch.active,
.about-rhythm-glitch.glitching {
  color: #0F1513;
}

.about-story-section {
  position: relative;
  z-index: 2;
  padding: 24px var(--grid-margin, 24px) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter, 12px);
}

.about-story-inner {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-story-inner p {
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.28;
  color: #0F1513;
}

.about-copy-muted {
  color: rgba(15, 21, 19, 0.6);
}

.about-identity-section {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter, 12px);
}

.about-identity-row {
  grid-column: 1 / span 12;
  padding: 0 var(--grid-margin, 24px);
}

.about-identity-title {
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: 72px;
  line-height: 1;
  color: rgba(15, 21, 19, 0.6);
}

.about-identity-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--about-h-line-color);
}

.about-identity-section > .about-identity-line {
  grid-column: 1 / -1;
  margin-top: 24px;
}

.about-identity-tagline-row {
  grid-column: 1 / span 12;
  padding: 24px var(--grid-margin, 24px) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter, 12px);
}

.about-identity-tagline {
  grid-column: 4 / span 9;
  margin: 0;
  font-family: ohno-blazeface, sans-serif;
  font-weight: 100;
  font-size: 96px;
  line-height: 0.95;
  color: #CF5541;
}

.about-identity-double-lines {
  grid-column: 1 / span 12;
  margin-top: 24px;
}

.about-identity-line--lower {
  margin-top: var(--about-dual-line-gap);
}

.about-black-section {
  --about-black-label-size: clamp(28px, 1.94vw, 40px);
  --about-black-copy-size: clamp(48px, 3.33vw, 72px);
  --about-black-copy-lh: 1.08;
  width: calc(100% - (2 * var(--grid-margin, 24px)));
  margin: 0 var(--grid-margin, 24px);
  min-height: 100vh;
  background: #0F1513;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter, 12px);
  padding: 8px;
  position: relative;
  z-index: 2;
}

.about-black-section-inner {
  grid-column: 1 / span 12;
  min-height: 100%;
  position: relative;
  z-index: 2;
}

.about-black-double-lines {
  margin-top: var(--about-space-xl);
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
}

.about-black-line {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  background: var(--about-h-line-color);
}

.about-black-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(207, 85, 65, 0.18);
  mix-blend-mode: screen;
  pointer-events: none;
}

.about-black-line--lower {
  margin-top: var(--about-dual-line-gap);
}

.about-black-story-row {
  margin-top: 0;
}

.about-black-story-stack {
  position: relative;
}

.about-black-story-step {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter, 12px);
  align-items: start;
}

.about-black-story-step + .about-black-story-step {
  margin-top: 48px;
}

.about-black-story-label {
  grid-column: 1 / span 3;
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: var(--about-black-label-size);
  line-height: 1.1;
  color: rgba(248, 247, 247, 0.55);
  display: inline-block;
  transform-origin: left center;
}

.about-label-glyph {
  display: inline-block;
  will-change: transform, opacity;
  margin-right: -0.02em;
}

.about-label-glyph:last-child {
  margin-right: 0;
}

.about-label-word {
  display: inline-block;
  white-space: nowrap;
}

.about-black-story-copy {
  grid-column: 4 / span 9;
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 400;
  font-size: var(--about-black-copy-size);
  line-height: var(--about-black-copy-lh);
  color: rgba(248, 247, 247, 0.9);
}

.about-black-section--animated .about-black-story-stack {
  height: var(--about-black-stack-height, clamp(420px, 58vh, 680px));
}

.about-black-section--animated .about-black-story-step {
  position: absolute;
  inset: 0;
  margin-top: 0;
  will-change: transform, opacity;
}

.about-black-section--animated .about-black-story-step + .about-black-story-step {
  margin-top: 0;
}

.about-post-double-lines {
  position: relative;
  z-index: 2;
}

.about-post-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--about-h-line-color);
}

.about-post-line--lower {
  margin-top: var(--about-dual-line-gap);
}

.about-post-line-pair--spaced {
  margin-top: var(--about-space-xl);
}

.about-people-section {
  position: relative;
  z-index: 2;
  padding: 0 var(--grid-margin, 24px);
}

.about-people-title {
  margin: 12px 0 24px;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: rgba(15, 21, 19, 0.6);
}

.about-people-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter, 12px);
  row-gap: 32px;
}

.about-people-item {
  grid-column: span 3;
}

.about-people-name {
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 3.33vw, 48px);
  line-height: 1;
  color: #0F1513;
}

.about-people-role {
  margin: 12px 0 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 1.94vw, 28px);
  line-height: 1.15;
  color: rgba(15, 21, 19, 0.6);
}

.about-recognitions-section {
  position: relative;
  z-index: 2;
  margin-top: var(--about-space-xl);
  padding: 0 var(--grid-margin, 24px);
}

.about-recognitions-kicker {
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  color: rgba(15, 21, 19, 0.6);
}

.about-recognitions-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter, 12px);
  align-items: start;
}

.about-recognitions-featured {
  grid-column: 1 / span 3;
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.06;
  color: #CF5541;
  background: linear-gradient(110deg, #CF5541 0%, #CF5541 42%, #ABCB41 58%, #CF5541 78%, #CF5541 100%);
  background-size: 320% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: about-maxon-gradient 12s ease-in-out infinite;
}

.about-recognitions-copy {
  grid-column: 4 / span 9;
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.06;
}

.about-recognitions-copy-strong {
  color: #0F1513;
}

.about-recognitions-counter {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.about-recognitions-counter-value {
  display: inline-block;
  min-width: 3ch;
  max-width: 3ch;
  text-align: right;
}

.about-recognitions-counter-plus,
.about-recognitions-counter-label {
  display: inline-block;
}

.about-recognitions-copy-muted {
  color: rgba(15, 21, 19, 0.6);
}

@keyframes about-maxon-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.about-top-divider {
  width: 100%;
  height: 1px;
  background: var(--about-h-line-color);
  margin-top: calc(36px + 56px + var(--about-space-xl));
  pointer-events: none;
}

.about-hero {
  min-height: 100vh;
  padding: 140px var(--grid-margin, 24px) 96px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter, 12px);
  align-items: center;
}

.about-hero-inner {
  grid-column: 2 / span 10;
  text-align: center;
}

.about-hero-title {
  margin: 0;
  font-family: ohno-blazeface, sans-serif;
  font-weight: 100;
  font-size: clamp(48px, 5.56vw, 120px);
  line-height: 0.96;
  color: #CF5541;
}

.about-hero-copy {
  margin: 24px auto 0;
  max-width: 36ch;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.1;
  color: rgba(15, 21, 19, 0.6);
}

.footer-cta-section,
.site-footer {
  position: relative;
  z-index: 2;
}

.about-footer-cta {
  margin-top: 0;
  z-index: 5;
}

.about-page-root .site-footer {
  z-index: 5;
}

@media (max-width: 1024px) {
  .about-rhythm-text,
  .about-story-inner p,
  .about-identity-title,
  .about-black-story-label,
  .about-black-story-copy,
  .about-people-title,
  .about-recognitions-copy,
  .about-recognitions-copy-strong,
  .about-recognitions-copy-muted,
  .about-hero-title,
  .about-hero-copy {
    letter-spacing: 0 !important;
  }

  .about-page-root {
    --about-space-xl: 96px;
  }

  .about-black-section {
    padding: 8px;
  }

  .about-people-title {
    font-size: 26px;
    margin-top: 10px;
  }

  .about-people-grid {
    row-gap: 20px;
  }

  .about-people-item {
    grid-column: span 3;
  }

  .about-people-name {
    font-size: clamp(30px, 3.2vw, 36px);
  }

  .about-people-role {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.18;
  }

  .about-recognitions-kicker {
    font-size: 26px;
  }

  .about-recognitions-featured,
  .about-recognitions-copy {
    font-size: clamp(32px, 3.8vw, 40px);
  }

  .about-rhythm-text {
    font-size: clamp(56px, 8.5vw, 88px);
  }

  .about-story-inner {
    grid-column: 1 / span 8;
  }

  .about-story-inner p {
    font-size: 22px;
  }

  .about-identity-title {
    font-size: clamp(52px, 7vw, 68px);
  }

  .about-identity-tagline {
    grid-column: 3 / span 10;
    font-size: clamp(70px, 9vw, 92px);
  }

  .about-black-story-label {
    grid-column: 1 / span 12;
    font-size: 24px;
  }

  .about-black-story-step + .about-black-story-step {
    margin-top: 40px;
  }

  .about-black-story-copy {
    grid-column: 1 / span 12;
    margin-top: 12px;
    font-size: clamp(34px, 5vw, 44px);
  }

  .about-black-section--animated .about-black-story-stack {
    height: var(--about-black-stack-height, clamp(380px, 54vh, 560px));
  }

  .about-top-divider {
    margin-top: calc(max(24px, env(safe-area-inset-top)) + 58px + var(--about-space-xl));
  }

  .about-hero {
    padding-top: calc(max(24px, env(safe-area-inset-top)) + 58px + 80px);
    padding-bottom: 72px;
  }

  .about-hero-inner {
    grid-column: 1 / span 12;
  }

  .about-hero-title {
    font-size: clamp(80px, 9.2vw, 108px);
  }

  .about-hero-copy {
    font-size: 20px;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .about-page-root {
    --about-space-xl: 72px;
  }

  .about-rhythm-text {
    font-size: clamp(28px, 9.2vw, 56px);
    line-height: 1.05;
  }

  .about-people-title {
    font-size: 22px;
    margin-top: 8px;
  }

  .about-people-grid {
    row-gap: 24px;
  }

  .about-people-item {
    grid-column: span 12;
  }

  .about-people-name {
    font-size: clamp(24px, 7.2vw, 30px);
  }

  .about-people-role {
    font-size: clamp(15px, 4.6vw, 18px);
    line-height: 1.2;
    margin-top: 8px;
  }

  .about-recognitions-kicker {
    font-size: 20px;
  }

  .about-recognitions-grid {
    row-gap: 16px;
  }

  .about-recognitions-featured {
    grid-column: 1 / span 12;
    font-size: clamp(30px, 9vw, 36px);
  }

  .about-recognitions-copy {
    grid-column: 1 / span 12;
    font-size: clamp(30px, 8.2vw, 36px);
  }

  .about-story-inner {
    grid-column: 1 / span 12;
  }

  .about-story-inner p {
    font-size: 20px;
    line-height: 1.3;
  }

  .about-identity-title {
    font-size: clamp(40px, 10.8vw, 56px);
  }

  .about-identity-tagline {
    grid-column: 1 / span 12;
    font-size: clamp(44px, 13vw, 72px);
    line-height: 0.98;
  }

  .about-black-story-label {
    font-size: 20px;
  }

  .about-black-story-step + .about-black-story-step {
    margin-top: 32px;
  }

  .about-black-story-copy {
    font-size: clamp(26px, 8.4vw, 36px);
    line-height: 1.12;
  }

  .about-black-section--animated .about-black-story-stack {
    height: var(--about-black-stack-height, clamp(320px, 48vh, 460px));
  }

  .about-top-divider {
    margin-top: calc(max(24px, env(safe-area-inset-top)) + 50px + var(--about-space-xl));
  }

  .about-hero {
    padding-top: calc(max(24px, env(safe-area-inset-top)) + 58px + 64px);
    padding-bottom: 56px;
  }

  .about-hero-title {
    font-size: clamp(36px, 11.94vw, 48px);
  }

  .about-hero-copy {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .about-hero {
    padding-top: calc(max(24px, env(safe-area-inset-top)) + 58px + 36px);
  }
}
