@font-face {
  font-family: "Context Signature";
  src: url("/assets/fonts/Allura-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.about-page {
  min-height: 100svh;
  overflow-y: auto;
  background: #ffffff;
  color: var(--ink);
}

.about-page .nav-shell a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.about-page .site-header {
  transform: translateZ(0);
  will-change: transform;
}

/* Clip page scroll here — never on body — so the fixed header dropdown is not clipped. */
.about-main {
  overflow: hidden;
}

.about-screen {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Progress Favorit", Arial, sans-serif;
  font-weight: 300;
}

.about-screen::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -18px;
  right: -18px;
  left: -18px;
  height: clamp(560px, 58vw, 960px);
  background: #ffffff;
  pointer-events: none;
}

body.about-page section.about-screen {
  max-width: none;
  margin: 0;
  padding: 0;
}

.about-screen-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 136px 48px 32px;
}

.about-intro {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: space-between;
  max-width: 32rem;
  padding: 0 0 4px;
}

.about-intro h1,
.note-letter h2 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.about-vision {
  max-width: 28rem;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
}

.about-socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-socials a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 300;
  line-height: 20px;
  text-decoration: none;
}

.about-socials a:hover,
.about-socials a:focus-visible {
  color: var(--muted);
}

.about-socials span {
  font-size: 10px;
}

.note-letter {
  width: min(100%, 768px);
  max-height: 100%;
  margin: 0;
}

.note-letter h2 {
  margin-bottom: 32px;
}

.note-letter p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0;
}

.note-letter .note-salutation {
  margin-bottom: 20px;
  color: var(--ink);
}

.note-letter .note-close {
  margin-top: 20px;
  color: var(--ink);
}

.note-signature {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 15, 15, 0.08);
}

.note-signature .signature-script {
  display: inline-block;
  width: clamp(300px, 25vw, 380px);
  max-width: 68%;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.signature-art {
  display: block;
  width: 100%;
  height: auto;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.signature-script[data-drawn="true"] .signature-art {
  animation: contextSignatureDraw 3.6s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes contextSignatureDraw {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.note-signature small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  text-align: right;
}

.about-video-section {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 19.4vw), 1656px);
  margin: 0 auto;
  padding: 0 0 128px;
}

.about-page .about-video-section {
  padding-top: 0;
  padding-right: 0;
  padding-left: 0;
}

.about-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 18px;
  background: #d8d8d3;
  box-shadow:
    0 44px 100px rgba(20, 20, 18, 0.18),
    0 16px 42px rgba(20, 20, 18, 0.12),
    0 2px 8px rgba(20, 20, 18, 0.08);
}

.about-video-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 10, 0.08);
  content: "";
  pointer-events: none;
  transition: opacity 220ms ease;
}

.about-team-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: clamp(76px, 6.5vw, 104px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(24, 24, 22, 0.7);
  color: #fff;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  place-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.about-video-play svg {
  width: 34%;
  height: 34%;
  fill: currentColor;
}

.about-video-play:hover {
  background: rgba(15, 15, 14, 0.82);
  transform: translate(-50%, -50%) scale(1.04);
}

.about-video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.about-video-frame.is-playing::after,
.about-video-frame.is-playing .about-video-play {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .about-screen-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .about-intro h1,
  .note-letter h2 {
    font-size: 32px;
  }

  .about-intro {
    padding-top: 0;
  }

  .note-letter h2 {
    margin-bottom: 24px;
  }

  .note-letter p {
    font-size: 13px;
    line-height: 20px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .note-letter h2 {
    margin-bottom: 22px;
  }

  .note-letter p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 20px;
  }

  .note-letter .note-salutation {
    margin-bottom: 16px;
  }

  .note-letter .note-close {
    margin-top: 16px;
  }

  .note-signature {
    margin-top: 18px;
    padding-top: 16px;
  }
}

@media (max-width: 900px) {
  .about-page {
    height: auto;
    min-height: 100svh;
  }

  .about-main,
  .about-screen {
    height: auto;
    min-height: 100svh;
  }

  .about-page .about-screen,
  .about-page .about-video-section {
    padding-right: 0;
    padding-left: 0;
  }

  .about-main {
    overflow: visible;
  }

  .about-screen-shell {
    grid-template-columns: 1fr;
    gap: 64px;
    padding: 120px 32px 64px;
  }

  .about-intro {
    order: 2;
    gap: 48px;
    padding: 0;
  }

  .note-letter {
    order: 1;
    width: min(100%, 768px);
  }

  .about-video-section {
    width: calc(100% - 64px);
    padding-bottom: 96px;
  }
}

@media (max-width: 640px) {
  .about-screen-shell {
    gap: 52px;
    padding: calc(100px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(44px, calc(32px + env(safe-area-inset-bottom))) max(20px, env(safe-area-inset-left));
  }

  .about-video-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 0;
  }

  .about-video-frame {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .about-team-video {
    object-fit: contain;
  }

  .about-intro h1,
  .note-letter h2 {
    font-size: 30px;
  }

  .about-vision {
    margin-top: 24px;
  }

  .note-letter h2 {
    margin-bottom: 28px;
  }

  .note-signature {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .note-signature small {
    text-align: left;
  }

  .note-signature .signature-script {
    width: min(100%, 340px);
    max-width: 100%;
  }

  .about-socials {
    gap: 12px;
  }

  .about-socials a {
    min-height: 44px;
    align-items: center;
    padding: 8px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-art {
    clip-path: none;
    animation: none !important;
  }

  .about-video-frame::after,
  .about-video-play {
    transition: none;
  }
}
