/* ─────────────────────────────────────────────────────────────
   V3 — one added layer on top of V2:
   1) the door intro (the lit doorway, then the zoom-through)
   2) hover cards on the faces in the hero collage
   Everything else is V2, untouched. Same palette, same type.
   ───────────────────────────────────────────────────────────── */

:root {
  --v3-paper: #ECE3D1;
  --v3-ink: #43282A;
  --v3-rust: #A86438;
  --v3-rust-lt: #D79B6B;
  --v3-cream: #EFE2C6;
  --v3-ease: cubic-bezier(.16, 1, .3, 1);
  /* where the open doorway sits in the picture (percent of the frame) */
  --door-x: 81%;
  --door-y: 46%;
}

/* ── 1 · THE DOOR INTRO ───────────────────────────────────── */
.intro { display: none; }
html.intro-on { overflow: hidden; height: 100%; }
html.intro-on body { overflow: hidden; height: 100%; }
html.intro-on .intro { display: block; }
/* the V2 hero holds its breath until the door is open, then plays as normal */
html.intro-on .hero, html.intro-on .hero * { animation-play-state: paused !important; }

.intro { position: fixed; inset: 0; z-index: 10000; background: #050505; color: var(--v3-cream); overflow: hidden; isolation: isolate; }
.intro__plate { position: absolute; inset: 0; transform-origin: var(--door-x) var(--door-y); will-change: transform; }
.intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--door-x) 50%; background: #050505; pointer-events: none; transform-origin: var(--door-x) var(--door-y); animation: v3-push 16s ease-out both; }
@keyframes v3-push { from { transform: scale(1); } to { transform: scale(1.07); } }


.intro__veil { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to bottom, rgba(5, 5, 5, .55) 0%, rgba(5, 5, 5, 0) 24%, rgba(5, 5, 5, 0) 52%, rgba(5, 5, 5, .72) 78%, #050505 100%),
  linear-gradient(to right, rgba(5, 5, 5, .55), transparent 22%, transparent 78%, rgba(5, 5, 5, .55)); }

.intro__top { position: absolute; left: clamp(18px, 4vw, 56px); right: clamp(18px, 4vw, 56px); top: clamp(16px, 3vh, 30px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.intro__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--v3-cream); }
.intro__brand svg { flex: none; }
.intro__brand span { font-family: var(--serif); font-variation-settings: "opsz" 11; font-optical-sizing: none; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.intro__brand i { font-style: italic; text-transform: lowercase; letter-spacing: .02em; }
.intro__top .label { color: var(--v3-rust-lt); font-size: 10.5px; }

.intro__foot { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); display: grid; justify-items: center; gap: clamp(14px, 2.4vh, 24px); text-align: center; padding-inline: 20px; }
.intro__line { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 2.4vw, 2.1rem); line-height: 1.18; color: var(--v3-cream); max-width: 28ch; }
.intro__line i { font-style: italic; color: var(--v3-rust-lt); }
.intro__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }
.intro .btn--text, .intro .btn--text span { color: var(--v3-cream); }
.intro .btn--text:hover { color: var(--v3-rust-lt); }
.intro .btn--gold:hover { background: var(--v3-cream); border-color: var(--v3-cream); color: var(--v3-ink); }

.intro__flash { position: absolute; inset: 0; background: radial-gradient(circle at var(--door-x) var(--door-y), #fffaf0 0%, #ffeccb 38%, #f3d9a8 100%); opacity: 0; pointer-events: none; }

/* arrival: the scene comes up from black, the words rise in */
.intro__top, .intro__line, .intro__ctas { animation: v3-rise 1.1s var(--v3-ease) both; }
.intro__line { animation-delay: .5s; }
.intro__ctas { animation-delay: .8s; }
@keyframes v3-rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* the zoom-through */
.intro.is-entering .intro__top, .intro.is-entering .intro__line, .intro.is-entering .intro__ctas { animation: none; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .6s var(--v3-ease); pointer-events: none; }
.intro.is-entering .intro__veil { opacity: 0; transition: opacity 1.6s ease; }
.intro.is-entering .intro__plate { transform: scale(var(--zoom, 16)); transition: transform 2.5s cubic-bezier(.7, 0, .86, .32); }
.intro.is-entering .intro__flash { opacity: 1; transition: opacity 1.1s cubic-bezier(.5, 0, .9, .4) .95s; }
.intro.is-leaving { opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.intro.is-leaving .intro__flash { opacity: 1; }
/* "go straight in": no zoom, a soft dissolve */
.intro.is-quick { opacity: 0; transition: opacity .7s ease; pointer-events: none; }

/* the hero meets the light: it settles out of a bright wash as the intro lifts */
html.hero-arrive .hero__stage { animation: v3-arrive 1.8s var(--v3-ease) both; }
@keyframes v3-arrive { from { filter: brightness(2.1) saturate(.6); } to { filter: none; } }

/* ── 2 · FACES IN THE COLLAGE ─────────────────────────────── */
.hs-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hs { position: absolute; display: block; aspect-ratio: 1; border-radius: 50%; pointer-events: auto; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.hs::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(239, 226, 198, .0); transform: scale(.82); transition: transform .6s var(--v3-ease), border-color .4s, box-shadow .6s; }
.hs.is-on::before, .hs:focus-visible::before { transform: scale(1); border-color: rgba(239, 226, 198, .85); box-shadow: 0 0 0 5px rgba(168, 100, 56, .28), 0 0 38px rgba(215, 155, 107, .35); }
.hs-dim { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .55s ease; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 40%), rgba(15, 8, 6, 0) 0, rgba(15, 8, 6, 0) calc(var(--sr, 60px) * 1.05), rgba(15, 8, 6, .66) calc(var(--sr, 60px) * 2.6)); }
.hs-dim.is-on { opacity: 1; }

.hs-hint { position: absolute; left: 0; right: 0; bottom: 2.4%; text-align: center; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.hs-hint span { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(20, 10, 8, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--v3-cream); border: 1px solid rgba(239, 226, 198, .2); font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.hs-hint.is-on { opacity: 1; }

/* the card that pops out */
.hc { position: fixed; z-index: 900; left: 0; top: 0; width: min(318px, calc(100vw - 24px)); padding: 16px 18px 16px; background: var(--v3-paper); color: var(--v3-ink); border-radius: 3px;
  box-shadow: 0 34px 60px -26px rgba(15, 8, 6, .85), 0 10px 22px -12px rgba(15, 8, 6, .55), 0 0 0 1px rgba(67, 40, 42, .18);
  opacity: 0; visibility: hidden; transform: translate3d(var(--hx, 0), 10px, 0) scale(.94); transform-origin: var(--ox, 0) 50%; filter: blur(6px);
  transition: opacity .38s ease, transform .55s var(--v3-ease), filter .45s ease, visibility 0s linear .55s; }
.hc.is-on { opacity: 1; visibility: visible; transform: translate3d(var(--hx, 0), 0, 0) scale(1); filter: none; transition: opacity .38s ease, transform .6s var(--v3-ease), filter .45s ease, visibility 0s; }
.hc__top { display: flex; align-items: center; gap: 14px; }
.hc__face { flex: none; width: 74px; height: 74px; border-radius: 50%; background-color: #1b100d; background-repeat: no-repeat; box-shadow: 0 0 0 1px var(--v3-rust), 0 0 0 5px var(--v3-paper), 0 0 0 6px rgba(168, 100, 56, .4), 0 10px 20px -8px rgba(15, 8, 6, .7); transform: scale(.7); transition: transform .7s var(--v3-ease) .05s; }
.hc.is-on .hc__face { transform: scale(1); }
.hc__k { font-family: var(--sans); font-weight: 600; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--v3-rust); line-height: 1.5; }
.hc__n { margin-top: 4px; font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-optical-sizing: none; text-transform: uppercase; font-size: 24px; line-height: 1; letter-spacing: .01em; }
.hc__s { margin-top: 3px; font-family: var(--serif); font-style: italic; font-size: 14px; color: rgba(67, 40, 42, .78); }
.hc__t { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(67, 40, 42, .16); font-family: var(--sans); font-size: 13px; line-height: 1.6; color: rgba(67, 40, 42, .86); }
.hc__a { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--v3-ink); text-decoration: none; padding: 9px 16px; border: 1px solid var(--v3-ink); border-radius: 999px; transition: background-color .35s var(--v3-ease), color .35s, border-color .35s, transform .4s var(--v3-ease); }
.hc__a:hover, .hc__a:focus-visible { background: var(--v3-rust); border-color: var(--v3-rust); color: #fff; transform: translateY(-1px); outline: none; }
.hc__a b { font-weight: 600; transition: transform .4s var(--v3-ease); }
.hc__a:hover b { transform: translateX(3px); }
.hc::before { content: ""; position: absolute; top: var(--ay, 40px); width: 12px; height: 12px; background: var(--v3-paper); transform: translateY(-50%) rotate(45deg); box-shadow: -1px 1px 0 rgba(67, 40, 42, .14); }
.hc[data-side="r"]::before { left: -6px; }
.hc[data-side="l"]::before { right: -6px; box-shadow: 1px -1px 0 rgba(67, 40, 42, .14); }
.hc[data-side="m"]::before { display: none; }

/* small screens: the card becomes a sheet at the foot of the screen */
@media (max-width: 760px) {
  .intro__line { max-width: 20ch; }
  .intro__top .label { display: none; }
  .hc { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; transform: translate3d(0, 24px, 0) scale(.98); transform-origin: 50% 100%; }
  .hc.is-on { transform: none; }
  .hc::before { display: none; }
  .hs-hint { bottom: 1%; }
  .hs-hint span { font-size: 9px; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro__top, .intro__line, .intro__ctas, .intro__video { animation: none; }
  .intro.is-entering .intro__plate { transition: none; transform: none; }
  html.hero-arrive .hero__stage { animation: none; }
  .hc, .hc.is-on, .hc__face, .hs::before { transition-duration: .01s; }
}

/* faces: no ring or spotlight around the head on hover — the card alone introduces them */
.hs::before, .hs-dim { display: none !important; }
/* the hint sits in the empty dark above the heads, clear of the title block below */
.hs-hint { top: 9%; bottom: auto; }
@media (max-width: 760px) { .hs-hint { top: 6%; bottom: auto; } }
