.about-page {
  --page: #000;
  --page-deep: #10151a;
  --ink: #f3f5f6;
  --ink-soft: #c0c0c0;
  --aqua-deep: #a9d9f4;
  --line: #29353d;
  --line-bright: #536e7e;
  --glass-fallback: #10151a;
  --glass-live: rgba(12, 17, 21, 0.88);
  color-scheme: dark;
  background: #000;
}

.about-page .nav-links a[aria-current="page"] {
  color: #a9d9f4;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.about-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(410px, 43vw, 570px);
  padding-block: clamp(60px, 9vw, 116px);
  margin-bottom: clamp(18px, 3vw, 44px);
}

.about-copy {
  position: relative;
  z-index: 1;
}

.about-label {
  margin: 0 0 12px;
  color: #a9d9f4;
  font-weight: 650;
}

.about-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  font-weight: 670;
  letter-spacing: -0.065em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.about-intro {
  max-width: 37ch;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.about-intro p {
  margin: 0;
}

.about-intro p + p {
  margin-top: 0.45em;
}

.about-intro strong {
  font-weight: 650;
}

.about-art {
  position: absolute;
  inset: 0 0 0 27%;
  overflow: hidden;
  pointer-events: none;
}

.about-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000, transparent 26%, transparent 87%, #000),
    linear-gradient(0deg, #000, transparent 16%, transparent 88%, #000);
}

.about-art img,
.about-art video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-art video {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .about-art video {
    transition: opacity var(--motion-base) var(--motion-ease-out);
  }

  .about-art video.about-video-ready {
    opacity: 1;
  }
}

.about-people {
  padding-block: 0 clamp(42px, 5vw, 72px);
}

.about-people h2 {
  margin: 0 0 24px;
  font-size: clamp(1.6rem, 3.6vw, 2.75rem);
  letter-spacing: -0.035em;
}

.about-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 48px);
}

.about-people article h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.about-people article p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.about-page .about-product {
  gap: 12px;
  background: #a9d9f4;
  color: #10151a;
  white-space: normal;
}

.about-page .about-product:hover,
.about-page .about-product:focus-visible {
  background: #d9effc;
  color: #10151a;
}

.about-page .footer {
  border-top: 1px solid var(--line);
  background: #10151a;
  color: var(--ink-soft);
}

.about-page .footer a {
  color: #c6d8e5;
}

@media (max-width: 700px) {
  .about-hero,
  .about-people-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-hero {
    min-height: 0;
    gap: 12px;
    padding-block: clamp(40px, 9vw, 60px) 0;
  }

  .about-art {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    justify-self: center;
  }

  .about-art::after {
    background:
      linear-gradient(90deg, #000, transparent 9%, transparent 91%, #000),
      linear-gradient(0deg, #000, transparent 13%, transparent 89%, #000);
  }
}

@media (max-width: 420px) {
  .about-page .nav-links {
    gap: 8px;
  }

  .about-page .nav-links a[aria-current="page"] {
    font-size: 0.8125rem;
  }
}

.about-people .about-profile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  border: 1px solid #334653;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #111e29, #070b10 70%);
  padding: 0;
  color: #a9d9f4;
}

.about-people .about-profile-care {
  color: #e3e3e3;
  background: linear-gradient(145deg, #1b242c, #0a0d11 70%);
}

.about-portrait-art {
  display: block;
  width: 100%;
  height: clamp(132px, 18vw, 190px);
}

.about-engineering-art {
  background: radial-gradient(ellipse at 48% 70%, #364c53, transparent 70%), #20343f;
}

.about-surgery-art {
  background: radial-gradient(ellipse at 48% 65%, #68716c, transparent 72%), #465455;
}

.about-profile-copy {
  padding: 18px clamp(18px, 3vw, 30px) 24px;
  border-top: 1px solid #334653;
}

.about-fusion {
  display: grid;
  justify-items: center;
  margin-inline: auto;
}

.about-fusion-path {
  position: relative;
  width: 100%;
  height: 54px;
}

.about-fusion-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.about-fusion-desktop {
  --rail-inset: calc((100% - clamp(16px, 4vw, 48px)) / 4);
  left: var(--rail-inset);
  width: calc(100% - 2 * var(--rail-inset));
}

.about-fusion-mobile,
.about-mobile-feed,
.about-code-caret {
  display: none;
}

.about-rail {
  stroke: #536e7e;
  stroke-width: 1;
}

.about-rail-center { stroke: #a9d9f4; }
.about-binding { stroke: #b4d5da; stroke-width: 1.7; opacity: 0; }
.about-binding-care { stroke: #d6d7be; }
.about-product img { border-radius: 7px; }

@media (max-width: 700px) {
  .about-people-grid {
    position: relative;
    gap: 14px;
    padding-left: 16px;
  }

  .about-people-grid::before,
  .about-mobile-feed {
    position: absolute;
    inset: calc((100% - 14px) / 4) auto 0 0;
    width: 1px;
    pointer-events: none;
  }

  .about-people-grid::before {
    content: "";
    background: #536e7e;
  }

  .about-profile-link {
    position: relative;
    min-width: 0;
  }

  .about-profile-link::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    width: 16px;
    border-top: 1px solid #536e7e;
  }

  .about-fusion-desktop { display: none; }
  .about-fusion-mobile { display: block; }
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .about-people { --about-take: 7.6s; }

  /* Start when the existing site reveal brings the workbench into view. */
  .about-people.visible .about-code-line {
    animation: about-type var(--about-take) linear infinite;
  }

  .about-people.visible .about-code-caret {
    display: block;
    animation: about-caret var(--about-take) linear infinite;
  }

  .about-people.visible .about-return-key {
    animation: about-return var(--about-take) var(--motion-ease-settle) infinite;
  }

  .about-people.visible .about-code-check {
    animation: about-check var(--about-take) var(--motion-ease-out) infinite;
  }

  .about-people.visible .about-scalpel-gesture {
    animation: about-cut var(--about-take) linear infinite;
  }

  .about-people.visible .about-incision {
    stroke-dasharray: 100;
    animation: about-score var(--about-take) linear infinite;
  }

  .about-people.visible .about-binding {
    stroke-dasharray: 100;
    animation: about-bind var(--about-take) var(--motion-ease-settle) infinite;
  }

  .about-people.visible .about-binding-care { animation-delay: .32s; }
  .about-people.visible .about-binding-stem { animation-delay: .94s; }

  @keyframes about-type {
    0%, 5% { clip-path: inset(0 100% 0 0) fill-box; }
    6% { clip-path: inset(0 100% 0 0) fill-box; animation-timing-function: steps(4, end); }
    14%, 17% { clip-path: inset(0 70% 0 0) fill-box; }
    18% { clip-path: inset(0 70% 0 0) fill-box; animation-timing-function: steps(3, end); }
    23%, 26% { clip-path: inset(0 37% 0 0) fill-box; }
    27% { clip-path: inset(0 37% 0 0) fill-box; animation-timing-function: steps(4, end); }
    34%, 88% { opacity: 1; clip-path: inset(0 0 0 0) fill-box; }
    97%, 100% { opacity: 0; clip-path: inset(0 0 0 0) fill-box; }
  }

  .about-code-line { transform-box: fill-box; clip-path: inset(0 0 0 0) fill-box; }

  @keyframes about-caret {
    0%, 5% { opacity: 1; transform: translateX(0); }
    6% { transform: translateX(0); animation-timing-function: steps(4, end); }
    14%, 17% { transform: translateX(25px); }
    18% { transform: translateX(25px); animation-timing-function: steps(3, end); }
    23%, 26% { transform: translateX(49px); }
    27% { transform: translateX(49px); animation-timing-function: steps(4, end); }
    34%, 38% { transform: translateX(78px); opacity: 1; }
    39%, 100% { transform: translateX(78px); opacity: 0; }
  }

  @keyframes about-return {
    0%, 35%, 41%, 100% { transform: translateY(0); }
    37%, 38% { transform: translateY(2.2px); }
  }

  @keyframes about-check {
    0%, 38% { opacity: 0; }
    42%, 88% { opacity: 1; }
    96%, 100% { opacity: 0; }
  }

  /* The tip holds the pad during the scored stroke and lifts clear on return. */
  @keyframes about-cut {
    0%, 6%, 100% { transform: translate(-6px, -13px) rotate(-6deg); }
    14%, 19% { transform: translate(0, 0) rotate(0); }
    27% { transform: translate(13px, -3.85px) rotate(1.8deg); }
    40%, 45% { transform: translate(54px, -16px) rotate(3deg); }
    51% { transform: translate(56px, -20px) rotate(-1deg); }
    60%, 72% { transform: translate(44px, -23px) rotate(-1deg); }
    90% { transform: translate(-2px, -12px) rotate(-3deg); }
  }

  @keyframes about-score {
    0%, 19% { stroke-dashoffset: 100; opacity: 1; }
    27% { stroke-dashoffset: 76; }
    40%, 76% { stroke-dashoffset: 0; opacity: 1; }
    92%, 100% { stroke-dashoffset: 0; opacity: 0; }
  }

  @keyframes about-bind {
    0%, 46% { stroke-dashoffset: 100; opacity: 0; }
    47% { opacity: 1; }
    61%, 76% { stroke-dashoffset: 0; opacity: 1; }
    89%, 100% { stroke-dashoffset: 0; opacity: 0; }
  }

  @media (max-width: 700px) {
    .about-people.visible .about-mobile-feed {
      display: block;
      background: #b4d5da;
      transform-origin: top;
      animation: about-vertical-bind var(--about-take) var(--motion-ease-settle) infinite;
    }

    .about-people.visible .about-fusion-mobile .about-binding-arm { animation-delay: .58s; }
    .about-people.visible .about-fusion-mobile .about-binding-stem { animation-delay: 1.4s; }

    @keyframes about-vertical-bind {
      0%, 41% { transform: scaleY(0); opacity: 0; }
      42% { opacity: 1; }
      55%, 76% { transform: scaleY(1); opacity: 1; }
      89%, 100% { transform: scaleY(1); opacity: 0; }
    }
  }
}
