/* Home: hero, round 4 (2026-10-24). Dr. Oskouian's composition in this site's light palette, unchanged:
   one photograph as the whole background, me on the right, the headline on the left over a soft frosted
   haze. The photograph is new: Kien's June 2026 portrait session in the surgical lab at the Seattle
   Science Foundation, scrubs, arms crossed, under both operating lights (source 100).

   It is built as two registered plates by tools/photos-2026/build_plates.py: the room with me removed
   (extended to the left into defocused wall, so the words sit on soft room) and me with an alpha matte.
   The haze sits BETWEEN them, so it softens the room and never me: where my arm reaches into the haze,
   I stand in front of it. At rest the plates register exactly and read as the photograph; hero.js parts
   them under the pointer and racks the room out of focus as the hero scrolls away.

   Geometry: the plates are 2240 x 1067, anchored right, and bleed 3 percent past the frame so the
   parallax never shows an edge. The frame is at most 1.62 times as wide as it is tall up to the
   viewport's height, which puts my folded arms at 44 percent of the width or further right; the copy
   column ends at 38.5 percent. Below 1100px the photograph stacks on top and the copy sits on a frosted
   panel over its lower edge. Round 3 (the podium photograph) is in tools/photos-2026/snapshot/. */

.hero-full {
  --hero-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  padding-top: var(--nav-h);
  background: var(--paper);
}
.hero-full__frame {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(520px, calc(100vw / 1.62), calc(100svh - var(--nav-h) - 2.5rem));
  background: #E6E9EC;                 /* the room's own wall, while the plates decode */
}
.hero-full__stage { position: absolute; inset: 0; }
.hero-full__plate { position: absolute; inset: -3%; display: block; will-change: transform; }
.hero-full__pic, .hero-full__soft { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-full__img, .hero-full__soft {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.hero-full__soft { opacity: 0; pointer-events: none; }   /* the defocused room, added by hero.js */
.hero-full__room { z-index: 0; transform-origin: 58% 30%; }
.hero-full__me { z-index: 2; transform-origin: 58% 26%; }   /* my face: the scroll dolly closes on it */

/* the frosted haze under the words: over the room, under me, strongest at the left edge */
.hero-full__veil {
  position: absolute; z-index: 1; inset: 0 auto 0 0; width: 54%; pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 247, 249, 0.62) 0%, rgba(246, 247, 249, 0.42) 55%, rgba(246, 247, 249, 0) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 73%);
  mask-image: linear-gradient(90deg, #000 50%, transparent 73%);
}

.hero-full__copy {
  position: absolute; z-index: 3; left: var(--gutter); top: 50%; translate: 0 -50%;
  width: calc(38.5vw - var(--gutter));
}
.hero-full__title {
  font-family: var(--display); font-weight: 700;
  /* "The surgeon other" is 8.21em wide in Vollkorn Bold and the column is 34.5vw, so 4.05vw keeps
     the headline on exactly three lines at every desktop width */
  font-size: clamp(2.5rem, 4.05vw, 5.3rem); line-height: 1.02; letter-spacing: -0.022em;
  color: var(--ink); max-width: 8.45em; text-wrap: balance;
}
.hero-full__lede {
  margin-top: 1.35rem; max-width: 44ch;
  font-size: clamp(1.02rem, 1.12vw, 1.25rem); line-height: 1.6; color: var(--ink-2);
}
.hero-full__actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
/* on desktop the two buttons always share a row */
@media (min-width: 1100px) { .hero-full__actions { flex-wrap: nowrap; width: max-content; } }
.hero-full__ghost { background: rgba(255, 255, 255, 0.62); border-color: rgba(10, 13, 18, 0.2); }
.hero-full__ghost:hover { background: #fff; border-color: var(--ink); }

/* arrival: the room settles, I rack into focus a beat later, the haze clears in, the words rise out
   of a short blur */
@media (prefers-reduced-motion: no-preference) {
  .hero-full__room { animation: hero-settle 1.9s var(--hero-ease) both; }
  .hero-full__me { animation: hero-focus 1.5s var(--hero-ease) 0.15s both; }
  .hero-full__veil { animation: hero-fade 1.2s var(--hero-ease) 0.2s both; }
  .hero-full__copy > * { animation: hero-rise 1s var(--hero-ease) both; animation-delay: calc(0.2s + var(--i, 0) * 0.1s); }
}
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes hero-focus { from { opacity: 0; transform: scale(1.035); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-rise { from { opacity: 0; translate: 0 18px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

/* tablets and phones: the photograph on top (a near-square crop of the same plates), the words on a
   frosted panel that rises over its lower edge */
@media (max-width: 1099px) {
  .hero-full__frame { height: auto; overflow: visible; background: none; }
  .hero-full__stage {
    position: relative; inset: auto; overflow: hidden; background: #E6E9EC;
    aspect-ratio: 1120 / 1007; max-height: calc(100svh - var(--nav-h) - 6rem); width: 100%;
  }
  .hero-full__plate { inset: 0; }
  .hero-full__img { object-position: center top; }
  .hero-full__me { transform-origin: 52% 30%; }
  .hero-full__veil { display: none; }
  .hero-full__copy {
    position: relative; left: auto; top: auto; translate: none; width: auto;
    margin: -3.4rem var(--gutter) 0; padding: 1.7rem 1.5rem 1.9rem;
    background: rgba(255, 255, 255, 0.74);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 18px;
    box-shadow: 0 20px 50px rgba(10, 13, 18, 0.10);
  }
  .hero-full__title { font-size: clamp(2.2rem, 7.4vw, 3.4rem); max-width: 11em; }
  .hero-full__lede { font-size: 1.02rem; }
}
@media (max-width: 420px) {
  .hero-full__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Desktop: the photograph runs up under the nav (nav round 3, 2026-09-24), so the bar floats on the
   room the way Dr. Oskouian's floats on his photograph; the words centre on the part below the bar. */
@media (min-width: 1100px) {
  .hero-full { padding-top: 0; }
  .hero-full__frame { height: clamp(520px, calc(100vw / 1.62), calc(100svh - 2.5rem)); }
  .hero-full__copy { top: calc(50% + var(--nav-h) / 2); }
}
