/* Round 2 design tweaks (2026-11-16), /book only. Loads after site.css.
   Closed, /book is the waitlist (tweak 04). Open, it is the booking page with the same lockup
   (the "open state" block at the end of this file, scoped to .bk--open). */

/* tw-book: the /book waitlist page (tweak 04).
   Back plane: OPEN IN plus the italic city. Middle: the camera cutout, in front of the letters.
   Top: the header strip and the blue submit bar. Uses the shared .big, .cut, .lab and .btn.bar recipes. */

.bk{overflow-x:clip}
@media(max-width:1099px){.bk{padding-top:clamp(5.9rem,12vh,9rem)}}

/* Eyebrow row: "Waitlist" left, the closure as one tiny label on the right. */
.bk-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem 1rem;
  max-width:38rem;margin:0 0 1.1rem}
.bk-top .eyebrow{margin:0}
.bk-top .lab{color:var(--ink)}

/* ---------- the lockup ----------
   .bk-lock carries the one font size. The letters and the camera are both measured in em from it,
   so the camera keeps its place on the letters at every width. */
.bk-head{container-type:inline-size;max-width:38rem;margin:0}
/* The bottom padding is the room the camera needs under the letters, so it grows with them. */
.bk-lock{position:relative;font-size:min(28.4cqi,30svh);width:max-content;max-width:100%;padding-bottom:.23em}
.bk-h1{font-size:1em;white-space:nowrap;text-wrap:nowrap;word-spacing:.07em}
.bk-open{display:block;margin:-.13em 0 -.15em -.035em}
/* The city line. The block holds a fixed box (so nothing below moves as the name changes) and the
   name inside shrinks by --k, set from its measured width in tw-book.js. */
.bk-city{display:flex;align-items:flex-start;width:var(--bk-city-w);height:.6em;margin-top:.02em;word-spacing:0}
.bk-city .ital{display:block;flex:0 0 auto;font-size:calc(var(--bk-city-f) * var(--k,1));line-height:1.12;
  letter-spacing:-.02em;text-transform:none;white-space:nowrap;
  color:rgba(255,255,255,.36);transition:color var(--t-med) var(--ease-slow)}
.bk-city .ital.is-set{color:var(--accent-text)}   /* the typed city in the accent blue (Maurice, 2026-11-16) */
/* DOM order does the stacking: the h1 first, the camera after it, no z-index.
   The photo is Blackmagic's own press cutout of the URSA Mini Pro 12K with a ZEISS Supreme Prime 29,
   viewfinder and top handle (3/4 view, lens to the left, 1600 x 1406, Maurice's pick on 2026-11-16). The slight tilt is the `rotate` property, not `transform`, so the .lift entrance animation
   (which ends on transform:none) cannot cancel it. Counter-clockwise lifts the eyecup into the letters
   and drops the matte box away from them. No drop shadow here (the shared cut shadow is dropped): on
   the dark ground it only ever showed as a gray smudge on the letters, so the occlusion alone does the
   layering and the letters stay clean white right up to the edge of the camera. */
.bk-cam{position:absolute;max-width:none;pointer-events:none;user-select:none;rotate:-6deg;filter:grayscale(1)}

/* Phone and tablet: OPEN IN on one line across the column. The rig sits under IN: the eyecup and
   viewfinder cross the foot of the N (the end of its diagonal and its right stem), the top handle runs
   just under the N's left stem, and the I reads whole to the baseline. The matte box points back at the
   city line and starts clear of its fixed 2.02em box, so a long name such as "Philadelphia" never runs
   into it. The rig is no deeper than the city line, so the lock keeps its original bottom padding. */
.bk-lock{--bk-city-w:1.86em;--bk-city-f:.52em;padding-bottom:.23em}
.bk-cam{width:1.42em;left:2.02em;top:.44em}

/* The copy under it: one short run on a phone (first sentence in ink, the rest quiet). */
.bk-say{position:relative;font-size:var(--t-s);line-height:1.5;max-width:38rem;margin:0}
.bk-quiet{color:var(--warm)}
.bk .form{margin-top:1.6rem}
.bk-send{margin-top:.35rem;min-width:0}

/* ---------- the city echo, repeated where the visitor is looking ----------
   Below 1100px the lockup has scrolled off by the time anyone reaches the City field (and a phone
   keyboard hides even more), so tw-book.js writes the same text into two small italic lines:
   beside the City label while that field has focus, and above the submit bar once it has a value.
   Neutral white, not blue: neither is tappable. Hidden on desktop, where the lockup stays in view.
   --k is set by tw-book.js so a long name shrinks to fit (the ellipsis is only the last resort). */
.bk-echo{margin:0;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-echo__city{color:var(--accent-text)}   /* the typed city in the accent blue (Maurice, 2026-11-16) */
.bk-cf{position:relative}
.bk-echo--field{position:absolute;top:-.3rem;right:0;max-width:calc(100% - 4.5rem);font-size:calc(1.0625rem * var(--k,1));
  line-height:1.3;opacity:0;transition:opacity var(--t-med) var(--ease-slow);pointer-events:none}
.bk-cf:focus-within .bk-echo--field.is-set{opacity:1}
.bk-echo--send{font-size:calc(1.5rem * var(--k,1));line-height:1.2;margin:0 0 .7rem;padding-right:.1em}
.bk-echo--send:not(.is-set){display:none}
/* One echo at a time: while the City field has focus its own label carries the line, and the one
   above the bar waits (it keeps its room, so nothing moves). */
.bk-echo--send{transition:opacity var(--t-med) var(--ease-slow)}
.bk .form:has(.bk-cf:focus-within) .bk-echo--send{opacity:0}
@media(min-width:1100px){.bk-echo{display:none}}
/* Phones under 380px: "4 fields left" needs the room the arrow takes, so the arrow waits for "Ready".
   Under 340px the label tightens too (and tw-book.js falls back to "4 fields" if it still cannot fit). */
@media(max-width:379px){
  .bk .btn.bar{padding-inline:1rem;gap:.75rem}
  .bk .btn.bar[data-aside]::before{content:attr(data-aside)}
  .bk .btn.bar[data-aside="Ready"]::before{content:attr(data-aside) "\2002\2192"}
}
@media(max-width:339px){.bk .btn.bar{padding-inline:.9rem;gap:.5rem;letter-spacing:.04em}}

/* ---------- desktop: the form keeps the left column, the lockup holds the right one ---------- */
@media(min-width:1100px){
  .bk{display:grid;grid-template-columns:minmax(0,38rem) minmax(26rem,1fr);
    column-gap:clamp(3rem,7vw,8rem);align-items:start}
  .bk > *{grid-column:1}
  .bk > .bk-head{grid-column:2;grid-row:1 / span 5;position:sticky;top:clamp(6.75rem,14vh,9rem);
    max-width:none;margin:0}
  /* Capped by the screen height as well as the column, so three lines never outgrow a large display. */
  .bk-lock{font-size:min(38cqi,24svh);padding-bottom:0;--bk-city-w:2.5em;--bk-city-f:.56em}
  .bk-open{margin:-.13em 0 0 -.035em}
  .bk-in{display:block;margin-top:-.15em}
  .bk-city{height:.66em;margin-top:0}
  /* The rig stands in the room right of IN, between OPEN's baseline and the city line. The eyecup,
     viewfinder and top handle cover the foot of OPEN's N (its top half, both stems and the diagonal
     still read), the E's bottom arm stays clear so it never turns into an F, and the matte box points
     at IN with a small gap so IN reads whole. */
  .bk-cam{width:1.75em;left:1.1em;top:.4em}
  .bk-lede,.bk-quiet{display:block}
  .bk-lede{font-size:clamp(1.05rem,1.3vw,1.2rem);line-height:1.45;max-width:30ch;margin:.4rem 0 .7rem}
  /* The band's bottom padding moves onto the form, so the lockup's column runs to the very end of
     the band and the lockup stays put instead of being pushed up under the header on the last screen. */
  .bk{padding-bottom:0}
  .bk .form{margin-top:2.5rem;margin-bottom:clamp(4.5rem,13vh,10rem)}
}

/* ---------- the header becomes a solid strip once the page has moved ----------
   The nav builder's tw-nav.css now does this site-wide (html.tw-solid .top::after). This is only the
   fallback for /book if that file is not shipped: the same opaque ground and hairline, on the
   header's existing ::before, and it switches itself off whenever tw-solid is present. */
html.is-scrolled:not(.tw-solid) .top::before{background:var(--ground);border-bottom:var(--hair)}

/* ============================================================
   Open state (2026-11-16): the bookable /book (.bk--open, CLOSED = False in build.py).
   The same three planes as the waitlist: OPEN IN at the back, the camera in front, the gate,
   the form and the blue submit bar on top. The italic line names the neighborhood, so it reads
   "Open in Charlotte" until the visitor's own neighborhood arrives (from the pop-up, or as the
   Neighborhood field is filled in). It is real copy, not a prompt, so it is ink from the start.
   ============================================================ */
.bk--open .bk-city .ital{color:var(--ink)}

/* The gate sits under the lockup on a phone and in the left column on desktop, so it no longer
   needs most of a screen of its own to be centred in. */
.bk--open .gate{min-height:0;align-content:start;padding-block:clamp(1.25rem,3.5vh,2.5rem) 0}

/* Once the form opens, the gate folds to one line: who, which day, where, and a way back. */
.gate__done{display:none}
.bk--open .gate.is-done{padding-block:clamp(.75rem,2.5vh,1.5rem) 0}
.bk--open .gate.is-done .gate__step{display:none}
.bk--open .gate.is-done .gate__done{display:flex;flex-wrap:nowrap;align-items:baseline;gap:.35rem 1.25rem;
  margin:0;max-width:none;border-top:var(--hair);border-bottom:var(--hair);padding:.95rem 0}
.gate__done .lab{color:var(--ink);line-height:1.6;min-width:0}
/* Each part (name, day, neighborhood) stays whole: a narrow phone breaks between parts, never
   inside a date, and Change keeps its place at the end of the first line. */
.gate__part{white-space:nowrap}
/* One day left: the day picker is never shown, so it must not hold the gate open at its own height
   (Change goes back to the name, and the tall hidden picker left a screen of room under it). */
.gate[data-only-day] .gate__step--day{display:none}
/* Under 360px the line's tracking comes in a little, so a name, the day and Change share one line. */
@media(max-width:359.98px){.gate__done .lab{letter-spacing:.12em}}
/* Small text button: blue, since it is tappable. 44px tall tap area, the line keeps its height. */
.gate__change{background:none;border:0;padding:.85rem 0;margin:-.85rem 0;font:inherit;
  font-size:var(--t-eyebrow);font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent-text);cursor:pointer;transition:color var(--t-med) var(--ease-slow)}
@media(hover:hover){.gate__change:hover{color:var(--ink)}}
.bk--open .booking{margin-top:clamp(1.75rem,4.5vh,2.75rem)}
/* The form scrolls into view under the header strip, not behind it. */
.bk--open .gate,.bk--open [data-booking]{scroll-margin-top:clamp(5.5rem,12vh,7rem)}

/* Desktop: the band's bottom padding lives on the form (see above). Before the form opens, the
   gate carries it instead. */
@media(min-width:1100px){
  .bk--open .gate:not(.is-done){margin-bottom:clamp(4.5rem,13vh,10rem)}
}

/* The day picker's dates. Under 1100px the gate has the full column and the long date fits beside
   its tag. From 1100px it shares the width with the lockup, so the rows use the pop-up's short date
   ("Wed Oct 7") and every row keeps its date and tag on one line. The long date stays readable to
   screen readers. The tag itself never breaks ("Check" and its arrow stay together). */
.daypick__short{display:none}
.gate .daypick .tag{white-space:nowrap}
@media(min-width:1100px){
  .bk--open .gate .daypick__short{display:inline}
  .bk--open .gate .daypick__long{position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
}
/* Under 380px the countdown drops its arrow (above). Once the form is ready the aside is the
   chosen day, which keeps its arrow like "Ready" does. */
@media(max-width:379px){
  .bk--open .btn.bar[data-day-ready]::before{content:attr(data-aside) "\2002\2192"}
}

/* ---------- open state: HEY THERE, then OPEN IN (Maurice, 2026-11-16) ----------
   The lockup holds two faces in one grid cell. It opens on HEY THERE with the visitor's first
   name in the italic line as it is typed (tw-book.js, data-name-echo), and fades to OPEN IN plus
   the neighborhood once the form opens (data-face on .bk-lock, set from the gate's fold). Change
   fades it back. The faces share the cell, so the page never moves when they swap. */
.bk-lock--swap .bk-h1{display:grid}
.bk-face{grid-area:1 / 1;display:block;transition:opacity .7s var(--ease-slow),visibility 0s linear 0s}
.bk-lock--swap[data-face="hey"] .bk-face--open,
.bk-lock--swap[data-face="open"] .bk-face--hey{opacity:0;visibility:hidden;
  transition:opacity .7s var(--ease-slow),visibility 0s linear .7s}
/* Under 1100px OPEN IN is one line and HEY THERE is two, so once OPEN IN shows, the hidden face
   leaves the cell's height (otherwise it held a 100px+ empty band above the folded gate line).
   The swap happens while the page scrolls down to the form, so the height change is not seen. */
@media(max-width:1099.98px){
  .bk-lock--swap[data-face="open"] .bk-face--hey{position:absolute;top:0;left:0}
  /* The same room under the rig as the approved version (measured: 31 to 47px above the line). */
  .bk-lock--swap[data-face="open"]{padding-bottom:.53em}
}
/* The name in the accent blue, like the typed city on the waitlist (Maurice, 2026-11-16). */
.bk--open .bk-face--hey .bk-city .ital{color:var(--accent-text)}
/* HEY over THERE on every screen (Maurice: THERE on its own line), a size down so THERE, the wide
   word, fits the column. The whole word block sits a little lower than OPEN IN, which leaves room
   for the rig up beside HEY, the short word; its foot just crosses the top of THERE. */
.bk-face--hey .bk-open{font-size:.9em;margin:.3em 0 0 -.035em}
.bk-face--hey .bk-in{display:block;margin-top:-.15em}
/* Tucked up under THERE (Maurice: less space between HEY THERE and the name). */
.bk-face--hey .bk-city{margin-top:-.1em}
/* The camera moves between the two faces instead of jumping. */
.bk-lock--swap .bk-cam{transition:left .7s var(--ease-slow),top .7s var(--ease-slow),width .7s var(--ease-slow)}
.bk-lock--swap[data-face="hey"] .bk-cam{width:1.45em;left:1.5em;top:-.1em}
@media(min-width:1100px){
  .bk-face--hey .bk-open{font-size:.84em;margin:.3em 0 0 -.035em}
  .bk-lock--swap[data-face="hey"] .bk-cam{width:1.3em;left:1.36em;top:-.07em}
}
@media(prefers-reduced-motion:reduce){.bk-face,.bk-lock--swap .bk-face{transition:none}}
/* The submit says "Reserve your commercial" now (one booking phrase everywhere), which does not
   share a phone's width with the field countdown (nor a 2000px+ screen's, where the type grows
   faster than the 38rem column). Wherever it does not fit, the label takes two lines and the
   countdown keeps its place on the right; the bar grows taller instead of running off. */
.bk--open .btn.bar[type=submit]{white-space:normal;line-height:1.25;padding-block:.7rem}
.bk--open .btn.bar[type=submit]::before{white-space:nowrap;flex:0 0 auto}
