/* Block 3: before / after midnight on the night the stage has fallen into by now. The Sphinx leans in from both edges in profile (stone, then the night queen),
   a gold hand-written word sits on the choice under the cursor, then the hostesses at the bar rise and fill the screen */
.b3 { position: relative; z-index: 1; height: 300vh; color: var(--cream); }
.b3__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.b3__edge { position: absolute; bottom: 0; height: 86vh; width: auto; max-width: none; pointer-events: none; will-change: transform; }
.b3__edge--l { left: 0; translate: -38% 0; }
.b3__edge--r { right: 0; translate: 30% 0; }

.b3__core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.b3__kicker { font: 600 13px/1 var(--sans); color: var(--gold); margin-bottom: clamp(26px, 4vh, 44px); }
.b3__pair { position: relative; display: grid; grid-template-columns: auto auto; gap: clamp(28px, 3.4vw, 64px); }
.b3__opt { display: grid; justify-items: end; text-align: right; color: inherit; text-decoration: none; }
.b3__opt--r { justify-items: start; text-align: left; }
.b3__w1 { font: 700 clamp(30px, 3.4vw, 62px)/1 var(--serif); text-transform: uppercase; }
.b3__w2 { font: 900 clamp(38px, 4.6vw, 86px)/.92 var(--sans); text-transform: uppercase; letter-spacing: -.02em; }
.b3__d { max-width: 27ch; margin-top: 18px; font: 500 14px/1.5 var(--sans); color: color-mix(in srgb, currentColor 80%, transparent); }
.b3__go { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; margin-top: 18px; border-radius: 3px; font: 600 13px/1 var(--sans); background: var(--gold); color: var(--night); transition: background .3s, color .3s; }
.b3__go svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b3__opt:hover .b3__go, .b3__opt:focus-visible .b3__go { background: var(--cream); color: var(--night); }
.b3__opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }

/* the hand-written word: gold strokes masked from the same script as the hero signature, moved by JS */
.b3__script { position: absolute; left: 0; top: 0; width: clamp(140px, 13vw, 250px); aspect-ratio: 287 / 161; pointer-events: none; will-change: transform; }
.b3__s { position: absolute; inset: 0; background: var(--gold); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; filter: drop-shadow(0 1px 0 rgba(90, 60, 10, .6)); transition: opacity .35s; }
.b3__s--before { -webkit-mask-image: url("before.svg"); mask-image: url("before.svg"); }
.b3__s--after { -webkit-mask-image: url("after.svg"); mask-image: url("after.svg"); opacity: 0; }
.b3__script.is-after .b3__s--before { opacity: 0; }
.b3__script.is-after .b3__s--after { opacity: 1; }

/* the hostesses rise from below and cover the screen */
.b3__photo { position: absolute; inset: 0; overflow: hidden; transform: translateY(100%); will-change: transform; }
.b3__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.18); will-change: transform; }

@media (max-width: 760px) {
  .b3 { height: 240vh; }
  .b3__edge { height: 34vh; }
  .b3__edge--l { translate: -30% 0; }
  .b3__edge--r { translate: 26% 0; }
  .b3__core { justify-content: flex-start; padding-top: 13vh; }
  .b3__pair { grid-template-columns: 1fr; gap: 26px; }
  .b3__opt, .b3__opt--r { justify-items: center; text-align: center; }
  .b3__w1 { font-size: 30px; }
  .b3__w2 { font-size: 44px; }
  .b3__d { margin-top: 10px; }
  .b3__go { margin-top: 12px; }
  .b3__script { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { .b3__s { transition: none; } }
