/* One scene, one timeline. The office and its lettering share an exact crop. */
.cinematic-hero { position: relative; height: 100svh; background: var(--ivory); }
.motion-ready .cinematic-hero { height: 310svh; }
.hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; contain: layout paint; }
.hero-sky { position: absolute; inset: 0; background: radial-gradient(ellipse at 5% 100%,#f3ccae 0%,transparent 62%),linear-gradient(170deg,#a9c6dc 0%,#d0e0e9 58%,#e9e3d9 100%); }
.hero-sky::before { content: ''; position: absolute; inset: 0; background: url('assets/office-blue-hour-clean.jpg') center top / auto 500% no-repeat; opacity: .32; }
.hero-sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#f8f4e74d,transparent 65%); }
.hero-building-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-office { position: absolute; width: max(100vw,179svh); max-width: none; height: auto; top: 0; left: 0; transform-origin: 0 0; transform: translate3d(0,34svh,0) scale(1.035); will-change: transform; backface-visibility: hidden; -webkit-mask-image: linear-gradient(transparent,#000 16%,#000 88%,transparent 100%); mask-image: linear-gradient(transparent,#000 16%,#000 88%,transparent 100%); }
.hero-intro { position: absolute; top: clamp(126px,16svh,177px); left: 0; right: 0; z-index: 3; text-align: center; }
.hero-kicker { font-size: 9px; letter-spacing: .24em; font-weight: 600; color: #455057; margin: 0 0 23px; }
.hero-kicker span { color: var(--orange); margin-inline: 9px; }
.hero-intro h1 { font-family: var(--sans); color: #2e383b; font-size: clamp(54px,5.4vw,86px); font-weight: 500; letter-spacing: -.065em; line-height: 1.02; margin: 0; text-wrap: balance; }
.hero-intro h1 em { font-family: var(--serif); font-size: 1.13em; letter-spacing: -.045em; font-weight: 500; color: var(--brown); }
.hero-intro > p:not(.hero-kicker) { font-size: 13px; line-height: 1.7; color: #4a5558; margin: 20px auto 22px; max-width: 470px; text-wrap: balance; }
.hero-intro .hero-cta { padding: 13px 19px 13px 24px; border-radius: 999px; }
.hero-wordmark { position: absolute; width: min(89vw,1440px); aspect-ratio: 1200 / 440; left: 50%; top: 52%; transform: translate3d(-50%,-50%,0); z-index: 4; pointer-events: none; }
.hero-wordmark-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-letter-photo, .hero-letter-outline { opacity: 0; }
.hero-cloud-bank { position: absolute; width: 120vw; top: 0; left: 0; z-index: 6; pointer-events: none; will-change: transform; transform-origin: 0 0; }
.hero-cloud-bank img { width: 100%; height: auto; max-width: none; display: block; filter: blur(4px); -webkit-mask-image: linear-gradient(transparent,#000 60%); mask-image: linear-gradient(transparent,#000 60%); }
.hero-cloud-bank::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 46%,var(--ivory) 98%); }
.hero-cloud-bank::after { content: ''; position: absolute; top: calc(100% - 1px); inset-inline: 0; height: 100svh; background: var(--ivory); }
.hero-cloud-bank-left { transform: translate3d(-10vw,69svh,0); }
.hero-cloud-bank-right { transform: translate3d(-19vw,78svh,0); }
.hero-wash { position: absolute; z-index: 7; inset: 0; background: var(--ivory); opacity: 0; pointer-events: none; }
.hero-scroll { position: absolute; z-index: 8; right: 32px; bottom: 32px; display: flex; align-items: center; gap: 16px; writing-mode: vertical-rl; font-size: 8px; letter-spacing: .19em; font-weight: 500; color: var(--brown); }
.hero-scroll i { width: 1px; height: 49px; background: currentColor; }
/* Search enters during the closing mist, not after an empty sticky viewport. */
.motion-ready .cinematic-hero + .search-section { margin-top: -50svh; }
.motion-ready .cinematic-hero + .search-section::before { content: ''; position: absolute; inset-inline: 0; bottom: 100%; height: 18svh; background: linear-gradient(transparent,var(--ivory)); pointer-events: none; }
.site-header.hero-over:not(:has(.is-open)) { background: rgba(248,244,231,.95); }

@media (max-width:760px) {
  .motion-ready .cinematic-hero { height: 275svh; }
  .hero-intro { top: max(115px,14svh); }
  .hero-intro h1 { font-size: clamp(38px,7.9vw,59px); line-height: 1.08; }
  .hero-intro h1 em { font-size: 1.11em; }
  .hero-kicker { font-size: 8px; letter-spacing: .15em; margin-bottom: 22px; }
  .hero-kicker span { margin-inline: 5px; }
  .hero-intro > p:not(.hero-kicker) { font-size: 12px; max-width: 290px; margin-block: 19px 22px; }
  .hero-intro .hero-cta { font-size: 12px; padding-block: 13px; }
  /* Side edges are offscreen. Do not apply a radial mask through the building. */
  .hero-office { width: 165vw; transform: translate3d(-32.5vw,44svh,0); }
  .hero-wordmark { width: 96vw; top: 48%; }
  .hero-cloud-bank { width: 210vw; }
  .hero-cloud-bank-left { transform: translate3d(-55vw,69svh,0); }
  .hero-cloud-bank-right { transform: translate3d(-65vw,78svh,0); }
  .hero-scroll { right: 14px; font-size: 7px; bottom: 25px; }
}
@media (max-width:380px) {
  .hero-intro h1 { font-size: 36px; }
  .hero-intro > p:not(.hero-kicker) { max-width: 270px; }
}
@media (max-height:700px) and (min-width:761px) {
  .hero-intro { top: 112px; }
  .hero-intro h1 { font-size: 49px; }
  .hero-kicker { margin-bottom: 15px; }
  .hero-intro > p:not(.hero-kicker) { margin-block: 14px; }
}
@media (max-height:510px) {
  .hero-intro { top: 96px; }
  .hero-intro h1 { font-size: 38px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-intro > p:not(.hero-kicker) { display: none; }
  .hero-intro .hero-cta { margin-top: 17px; }
}
@media (prefers-reduced-motion:reduce) {
  .motion-ready .cinematic-hero, .cinematic-hero { height: 100svh; }
  .hero-wordmark, .hero-scroll { display: none; }
  .hero-office { transform: var(--hero-static-transform,translate3d(0,34svh,0) scale(1.035))!important; will-change: auto; }
  .hero-intro, .hero-building-layer { opacity: 1!important; }
  .hero-wash { opacity: 0!important; }
  .motion-ready .cinematic-hero + .search-section { margin-top: 0; }
  .motion-ready .cinematic-hero + .search-section::before { display: none; }
  .site-header.hero-playing { transform: none; }
}
