/* About — sticky hero + scrolling sheet. Geist Black name. Studio-ground blend. */

/* Page ground is continuous: kill the UA body margin so the sheet is not a white-framed card. */
html {
  margin: 0;
  background: #bebebe;
  transition: background-color 0.45s ease;
}
html:has(body.about-voice-he) {
  background: #6e6e6e;
}

.about-page {
  --about-ground: #bebebe;
  margin: 0;
  width: 100%;
  --about-ink: #1a1a1a;
  --about-muted: #4a4a4a;
  --about-chip: rgba(0, 0, 0, 0.08);
  --about-chip-active: #111;
  --about-chip-active-ink: #f4f4f4;
  --about-border: rgba(0, 0, 0, 0.14);
  --about-trail-muted: #666;
  /* Grow stage by one top-bar so sheet/text drop the same amount (Dex phone). */
  --about-hero-h: calc(50dvh + var(--top-h, 52px));
  --about-hero-blur: 0px;
  --about-hero-fade: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--about-ground);
  color: var(--about-ink);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  transition: background-color 0.45s ease, color 0.45s ease;
}

.about-page.about-voice-he {
  --about-ground: #6e6e6e;
  --about-ink: #f2f2f2;
  --about-muted: #d0d0d0;
  --about-chip: rgba(255, 255, 255, 0.12);
  --about-chip-active: #f2f2f2;
  --about-chip-active-ink: #222;
  --about-border: rgba(255, 255, 255, 0.18);
  --about-trail-muted: #b0b0b0;
}

/* Light-mode hamburger: dark bars on mid-grey ground */
.about-page.about-voice-i .nav-toggle,
.about-page.about-voice-i .nav-burger {
  color: #111;
}
.about-page.about-voice-i .nav-burger span {
  background: #111 !important;
}
.about-page.about-voice-i .site-nav.is-open .nav-toggle,
.about-page.about-voice-i .site-nav.is-open .nav-burger {
  color: #f2f2f2;
}
.about-page.about-voice-i .site-nav.is-open .nav-burger span {
  background: #f2f2f2 !important;
}

/* About title bar adapts to I / He grounds — ~25% more translucent frost */
.about-page .site-topbar {
  background: rgba(190, 190, 190, 0.66);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: #111;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.about-page.about-voice-he .site-topbar {
  background: rgba(110, 110, 110, 0.69);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: #f2f2f2;
}
.about-page.about-voice-i .site-topbar .nav-toggle,
.about-page.about-voice-i .site-topbar .nav-burger {
  color: #111;
}
.about-page.about-voice-i .site-topbar .nav-burger span {
  background: #111 !important;
}
.about-page.about-voice-i .site-topbar .site-nav.is-open .nav-toggle,
.about-page.about-voice-i .site-topbar .site-nav.is-open .nav-burger {
  color: #f2f2f2;
}
.about-page.about-voice-i .site-topbar .site-nav.is-open .nav-burger span {
  background: #f2f2f2 !important;
}

.about-page .site-footer {
  --footer-muted: #555;
  position: relative;
  z-index: 2;
  background: var(--about-ground);
  border-top: 1px solid var(--about-border);
  color: var(--about-muted);
}
.about-page.about-voice-i .site-footer .footer-home,
.about-page.about-voice-i .site-footer .footer-links a,
.about-page.about-voice-i .site-footer .copy,
.about-page.about-voice-i .site-footer .footer-credit {
  color: #444;
}
.about-page.about-voice-i .site-footer .footer-icon {
  color: #333;
  border-color: rgba(0, 0, 0, 0.25);
}
.about-page.about-voice-he .site-footer {
  --footer-muted: #c8c8c8;
}
.about-page.about-voice-he .site-footer .footer-home,
.about-page.about-voice-he .site-footer .footer-links a,
.about-page.about-voice-he .site-footer .copy,
.about-page.about-voice-he .site-footer .footer-credit {
  color: #ddd;
}
.about-page.about-voice-he .site-footer .footer-icon {
  color: #eee;
  border-color: rgba(255, 255, 255, 0.28);
}

.about-main {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
  /* Opaque ground under sheet/footer seam so fixed hero cannot leak through. */
  background: var(--about-ground);
}

/* ===== Hero — fixed/parked full-bleed, shorter stage ===== */
.about-hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: var(--about-hero-h);
  min-height: var(--about-hero-h);
  max-height: var(--about-hero-h);
  width: 100%;
  overflow: hidden;
  background: var(--about-ground);
  border: none;
  outline: none;
  box-shadow: none;
  opacity: var(--about-hero-fade);
  filter: blur(var(--about-hero-blur));
  transform: translateZ(0);
  will-change: opacity, filter;
  pointer-events: none;
}
/* Fully parked: hide so blur filter cannot bleed through sheet/footer seam. */
.about-hero.is-parked {
  opacity: 0 !important;
  filter: none !important;
  visibility: hidden;
}
.about-hero__stage {
  position: absolute;
  /* Full bleed under translucent top bar — no soft-crown inset / page-ground gap. */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: none;
  outline: none;
  box-shadow: none;
  overflow: hidden;
}
.about-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Flush under frost: tighter Y (v10) shrinks crown air; face fills more. Horizontally centered. */
  object-position: center 60%;
  opacity: 0;
  transition: opacity 0.42s ease;
  pointer-events: none;
  border: none;
  outline: none;
  box-shadow: none;
}
.about-hero__img[data-voice="he"] {
  /* Was 8%: nudge + soft crown so curls clear frost.
     Soft crown lives on THIS layer (not body-class stage) so He→I / I→He
     crossfade never mutates the outgoing image’s crop mid-fade. */
  object-position: center 12%;
  top: var(--top-h, 52px);
  height: calc(100% - var(--top-h, 52px));
}
.about-hero__img.is-active {
  opacity: 1;
}

/* ===== Scrolling sheet over parked hero ===== */
.about-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  /* v11: deeper overlap so sheet fully covers hero once scrolled past (no leak strip). */
  margin-top: calc(var(--about-hero-h) - 14vh);
  margin-left: 0;
  margin-right: 0;
  background: var(--about-ground);
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  transition: background-color 0.45s ease;
}
.about-sheet__veil {
  /* Absolute so the negative offset cannot collapse into .about-sheet's
     margin and yank the solid ground up over the face. */
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  --veil-h: min(28vh, 240px);
  top: calc(-1 * var(--veil-h));
  /* 2px extra so the solid stop tucks under the sheet and cannot hairline. */
  height: calc(var(--veil-h) + 2px);
  margin: 0;
  background: var(--about-ground);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 14%,
    rgba(0, 0, 0, 0.22) 36%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.86) 84%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 14%,
    rgba(0, 0, 0, 0.22) 36%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.86) 84%,
    #000 100%
  );
  pointer-events: none;
  transition: background-color 0.45s ease;
}

/* ===== Intro ===== */
.about-intro {
  position: relative;
  z-index: 1;
  padding: 8px 24px 48px;
}
.about-intro__inner {
  max-width: 40rem;
  margin: 0 auto;
}
.about-name {
  margin: 0 0 22px;
  font-family: "Geist", Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: var(--site-name-tracking, 0);
  text-transform: uppercase;
  color: var(--about-ink);
  line-height: 1.05;
  /* Long unbroken strings wrap instead of widening the page. */
  overflow-wrap: anywhere;
}

/* I / He toggle — sliding circular thumb */
.about-voice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
}
.about-voice__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--about-muted);
}
.about-voice__toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: var(--about-chip);
  isolation: isolate;
}
.about-voice__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--about-chip-active);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.about-page.about-voice-he .about-voice__thumb {
  transform: translateX(100%);
}
.about-voice__btn {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--about-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.22s ease;
}
.about-voice__btn.is-active,
.about-voice__btn[aria-pressed="true"] {
  background: transparent;
  color: var(--about-chip-active-ink);
}
.about-voice__btn:focus-visible {
  outline: 2px solid var(--about-ink);
  outline-offset: 2px;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  margin: 0 0 8px;
}
.about-bio p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--about-ink);
  opacity: 0.94;
  /* `anywhere` (not break-word) so flex min-content shrinks too. */
  overflow-wrap: anywhere;
}
.about-bio.is-fading {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.about-bio.is-ready {
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* Work trail */
.about-trail {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px 24px 40px;
}
.about-trail__heading {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--about-muted);
}
.about-trail__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-trail__list a {
  color: var(--about-ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .about-trail__list a:hover {
    border-bottom-color: currentColor;
  }
}
.about-trail__list a:focus-visible {
  outline: 1px solid var(--about-ink);
  outline-offset: 3px;
}
.about-trail__list .is-muted {
  color: var(--about-trail-muted);
  font-size: 16px;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
}
.about-trail__list .is-muted em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Soft close — Contact + IG only */
.about-close {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.about-close__link {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--about-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
@media (hover: hover) and (pointer: fine) {
  .about-close__link:hover {
    opacity: 0.7;
  }
}

/* Page enter.
   Fixed hero: slow fade only. translateY on a fixed layer reads as a glitch
   against the parked photo, so the hero does not travel.
   Intro: small float-up so the copy lands. Veil stays put (moving it
   would tear the seam). Transition class is removed after enter so the
   scroll-driven hero fade/blur is not eased. */
.about-hero.float-up:not(.is-in) {
  opacity: 0;
}
.about-hero.float-up.is-entering {
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-hero.float-up.is-in {
  opacity: var(--about-hero-fade);
}
.about-intro.float-up:not(.is-in) {
  opacity: 0;
  transform: translateY(14px);
}
.about-intro.float-up.is-entering {
  transition:
    opacity 1.08s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 1.08s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.about-intro.float-up.is-in {
  opacity: 1;
  transform: none;
}



/* ===== Landscape / iPad / web: sticky photo + page scroll =====
   Portrait mobile stays stacked (hero top + top veil + sheet).
   Landscape: sharp vertical column cut (no L→R dissolve / overlap).
   Sticky hero + page scroll + full-width footer (v8 layout), solid sheet. */
@media (min-width: 768px) and (orientation: landscape) {
  .about-main {
    display: grid;
    /* True 50/50 — each column half screen; minmax(0,…) prevents overflow blowout. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    flex: 1 1 auto;
    min-height: 0;
    padding-top: var(--top-h, 52px);
    box-sizing: border-box;
    /* Page scroll owns the axis — do not lock overflow here. */
  }
  /* No seam stripe — hard column edge only. */
  .about-main::after {
    content: none;
    display: none;
  }
  .about-hero {
    position: sticky;
    top: var(--top-h, 52px);
    left: auto;
    right: auto;
    z-index: 0;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: calc(100dvh - var(--top-h, 52px));
    min-height: calc(100dvh - var(--top-h, 52px));
    max-height: calc(100dvh - var(--top-h, 52px));
    /* No scroll-park fade in split — sticky image stays present */
    opacity: 1;
    filter: none;
    visibility: visible;
    pointer-events: none;
    /* Contain image in 50% column; never stretch column or distort photo. */
    overflow: hidden;
  }
  .about-hero.is-parked {
    /* Landscape keeps photo visible — park class is portrait-only. */
    opacity: 1 !important;
    filter: none !important;
    visibility: visible;
  }
  .about-hero__img {
    /* Keep cover inside 50% column — crop as needed, never fill-stretch. */
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  /* Column already sits under the top bar — no He soft-crown inset. */
  .about-hero__img[data-voice="he"] {
    top: 0;
    height: 100%;
  }
  .about-sheet {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-left: 0;
    /* Natural height → page scroll. No nested overflow / max-height. */
    height: auto;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Solid ground — sharp cut at column edge (no dissolve overlap). */
    background: var(--about-ground);
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Portrait top-veil off in split — landscape is a hard column edge. */
  .about-sheet__veil {
    display: none;
  }
  .about-intro {
    /* v11: top breathing matches space below Instagram/Contact before footer. */
    padding: 80px 28px 28px;
    flex: 0 0 auto;
  }
  .about-intro__inner {
    margin: 0;
    max-width: none;
  }
  .about-trail,
  .about-close {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    padding: 8px 28px 40px;
  }
  .about-close {
    /* Bottom breathing ≈ intro top pad (80px) — symmetric text-column air. */
    margin-bottom: 0;
    padding-bottom: 80px;
  }
  /* Work list must stay fully opaque end-to-end (no leftover bottom fade). */
  .about-trail,
  .about-trail__heading,
  .about-trail__list,
  .about-trail__list a {
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Full-width footer after the split — reachable via page scroll. */
  .about-page > .site-footer {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  /* Enter motion: hero already in-column — keep fade, skip travel */
  .about-hero.float-up:not(.is-in) {
    opacity: 0;
  }
  .about-hero.float-up.is-in {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page,
  .about-hero,
  .about-hero__img,
  .about-sheet,
  .about-voice__btn,
  .about-voice__thumb,
  .about-name,
  .about-bio,
  .about-hero.float-up,
  .about-intro.float-up,
  .about-hero.float-up.is-entering,
  .about-intro.float-up.is-entering {
    transition: none !important;
    animation: none !important;
  }
  .about-hero {
    filter: none !important;
  }
  .about-hero.float-up,
  .about-intro.float-up {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
  }
  .about-hero.float-up.is-in {
    opacity: var(--about-hero-fade) !important;
  }
}
