/* ==========================================================================
   Page 2 — the booking. Arrives drenched in the red the film ended on,
   which recedes as ink to reveal the page.
   ========================================================================== */

.bookpage { background: var(--bg); }

/* the red you arrive in: a solid layer with the ink bloom punched out of it */
.curtain {
  position: fixed; inset: 0; z-index: 200;
  background: var(--blood);
  pointer-events: none;
  -webkit-mask: linear-gradient(#000, #000), url('../img/ink/bloom-sprite.webp') 0 0 / 3200% 100% no-repeat;
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000, #000), url('../img/ink/bloom-sprite.webp') 0 0 / 3200% 100% no-repeat;
          mask-composite: exclude;
}
.curtain.is-going { animation: curtain 1.5s steps(31, jump-end) forwards; }
@keyframes curtain {
  from { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; }
  to { -webkit-mask-position: 0 0, 100% 0; mask-position: 0 0, 100% 0; }
}
.no-js .curtain { display: none; }

.nav__links--always { display: none; }
@media (min-width: 700px) { .nav__links--always { display: flex; } }

/* ─────────── hero ─────────── */
.bhero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  overflow: clip;
  isolation: isolate;
}
.bhero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1;
  opacity: 1;
}
.bhero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(11,11,10,0.85) 0%, rgba(11,11,10,0.35) 26%, rgba(11,11,10,0) 48%);
}
.bhero__copy {
  padding: calc(var(--nav-h) + 40px) var(--gutter) calc(40px + env(safe-area-inset-bottom));
  display: grid; gap: 18px; justify-items: start;
}
.bhero__title {
  font: 300 clamp(76px, 20vw, 300px)/0.84 var(--serif);
  letter-spacing: -0.05em; margin-left: -0.04em;
}
.bhero__lede { max-width: 34ch; color: var(--bone-2); }
.bhero__ref { display: flex; align-items: baseline; gap: 12px; font: 300 26px/1 var(--serif); }
.bhero__ref[hidden] { display: none; }
.btn--bone { background: var(--blood); color: var(--on-blood); }
.btn--bone:hover { background: var(--blood-hi); }

.w { display: inline-block; overflow: clip; padding: 0.16em 0 0.22em; margin: -0.16em 0 -0.22em; vertical-align: top; }
.w > span { display: inline-block; transform: translateY(150%); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i) * 80ms + 0.5s); }
.is-in .w > span, .no-js .w > span { transform: none; }
.bhero__copy > :not(h1) { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) 1s, transform 1.2s var(--ease) 1s; }
.is-in .bhero__copy > :not(h1) { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .bhero__copy { grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; padding-bottom: 7vh; }
  .bhero__copy .label, .bhero__title { grid-column: 1 / -1; }
  .bhero__lede { grid-column: 1; }
  .bhero__ref { grid-column: 1; }
  .bhero__copy .btn { grid-column: 2; grid-row: 3 / 5; align-self: end; }
}

/* ─────────── sections reused from the film ─────────── */
.book { background: var(--bg); padding-top: clamp(90px, 12vw, 160px); }
.book .section-head .label { margin-bottom: 14px; }
.book__lede { margin-top: 0; }
.artist__figure { background: var(--bg-2); }

/* soft rise for sections */
.rise { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

/* ─────────── footer over living ink ─────────── */
.foot--ink { position: relative; isolation: isolate; overflow: clip; min-height: 80vh; display: grid; align-content: end; }
.foot__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 1; }
.foot--ink::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11,11,10,0) 28%, rgba(11,11,10,0) 62%, rgba(11,11,10,0.8) 100%);
}
.foot__row a:hover { color: var(--bone); }

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .w > span, .bhero__copy > :not(h1), .rise { transform: none !important; opacity: 1 !important; }
}


/* type system (see site.css) */
.bhero__title { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: -0.012em; line-height: 0.88; font-size: clamp(88px, 25vw, 360px); margin-left: 0; }
.bhero__ref { font-family: var(--serif); text-transform: uppercase; font-size: 24px; letter-spacing: 0; }
.bhero__lede { font: 500 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: 0.035em; max-width: 34ch; }

/* health + consent */
.field__intro { color: var(--bone-2); max-width: 60ch; margin: -4px 0 18px; font-size: 15px; }
.checks { display: grid; gap: 12px; }
@media (min-width: 800px) { .checks:not(.checks--consent) { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.checks .check { font-size: 15px; line-height: 1.45; }
.checks--consent { margin-top: 26px; }
.input--full { margin-top: 20px; }
.input em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.7; }
.guardian { margin-top: 22px; padding: 22px; border-radius: 4px; background: var(--bg-3); display: grid; gap: 18px; }
.guardian[hidden] { display: none; }
.guardian .field--grid { display: grid; gap: 18px 28px; }
@media (min-width: 700px) { .guardian .field--grid { grid-template-columns: 1fr 1fr; } }

/* release & waiver */
.release { margin-top: 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.release summary { cursor: pointer; list-style: none; padding: 16px 0; font: 500 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; display: flex; justify-content: space-between; }
.release summary::-webkit-details-marker { display: none; }
.release summary::after { content: '+'; font: 300 20px/0.6 var(--sans); color: var(--ash); transition: transform 0.4s var(--ease); }
.release[open] summary::after { transform: rotate(45deg); }
.release__body { padding: 0 0 20px; color: var(--bone-2); font-size: 14px; line-height: 1.55; max-width: 70ch; }
.release__body ol { margin: 10px 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.release__body strong { color: var(--bone); font-weight: 500; }
.release__note { color: var(--ash); font-size: 13px; }
.check em { font-style: normal; color: var(--ash); }
.field__hint { margin: 14px 0 0; color: var(--ash); font-size: 14px; }
.field__hint[hidden] { display: none; }

/* the studio's consent & release, shown in full */
.terms { padding: 22px; border-radius: 4px; background: var(--bg-3); color: var(--bone-2); font-size: 14px; line-height: 1.55; max-height: 420px; overflow: auto; overscroll-behavior: contain; }
.terms__title { font: 500 12px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--bone); margin: 0 0 12px; }
.terms p { margin: 0 0 12px; }
.terms ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.terms strong { color: var(--bone); font-weight: 500; }
.terms li strong { display: block; }
.check[hidden] { display: none; }
@media (min-width: 700px) { .input--wide { grid-column: 1 / -1; } }
.input__sign { font-family: var(--serif); font-size: 26px; letter-spacing: 0.01em; }
input[readonly] { color: var(--ash); }
.input input { resize: none; }
.input input[type=date] { -webkit-appearance: none; appearance: none; min-height: 52px; }
/* Safari draws today's date in an empty date field; fade it so it reads as a placeholder */
.input input[type=date]:invalid { color: var(--ash); opacity: 0.45; }

/* ─────────── credit: a stencil, tattooed over on hover ─────────── */
.credit {
  --stencil: #9a86ec;
  display: inline-flex; align-items: center; gap: 0.42em; white-space: nowrap;
  font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ash); text-decoration: none; vertical-align: 1px;
}
.credit__mark { width: 1.05em; height: 1.05em; overflow: visible; margin-left: 0.1em; }
.credit__line { fill: none; stroke: var(--stencil); stroke-width: 1.1; vector-effect: non-scaling-stroke; opacity: 0.95; filter: drop-shadow(0 0 1.5px rgba(154,134,236,0.55)); }
.credit__ink { fill: var(--blood); clip-path: inset(0 100% 0 0); transition: clip-path 0.45s cubic-bezier(.6,0,.2,1); }
.credit__name {
  color: transparent;
  background: linear-gradient(90deg, var(--blood) 0 50%, var(--stencil) 50% 100%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 0 2px rgba(154,134,236,0.35);
  transition: background-position 0.7s cubic-bezier(.6,0,.2,1) 0.3s, text-shadow 0.4s 0.3s;
}
.credit:hover .credit__ink, .credit:focus-visible .credit__ink, .credit.is-inked .credit__ink { clip-path: inset(0 0 0 0); }
.credit:hover .credit__name, .credit:focus-visible .credit__name, .credit.is-inked .credit__name { background-position: 0 0; text-shadow: 0 0 0 transparent; }
.credit:hover .credit__by, .credit:focus-visible .credit__by { color: var(--bone-2); }
.credit:focus-visible { outline: 1px solid var(--stencil); outline-offset: 4px; }
@media (max-width: 699px) {
  .foot__row { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .credit__ink, .credit__name { transition: none; } }
@media (max-width: 899px) {
  .foot--ink::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(11,11,10,0) 62%, rgba(11,11,10,0.82) 80%, rgba(11,11,10,0.94) 100%); }
}
