/* ==========================================================================
   Holding page
   Loaded after site.css, so it inherits every brand token and component and
   only adds what this page needs: a slimmed-down header, a footer, and the
   enquiry popup.
   ========================================================================== */

.holding { overflow-x: hidden; }

/* --- header -------------------------------------------------------------- */
.hold-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(6, 10, 18, .72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.hold-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; height: var(--header-h); }
.hold-bar-right { display: flex; align-items: center; gap: 1.4rem; }
.hold-bar-right .nav-link { font-size: .92rem; color: var(--text-2); text-decoration: none; transition: color .25s; }
.hold-bar-right .nav-link:hover { color: #fff; }
.holding main { padding-top: var(--header-h); }

/* the hero fills the first screen, as it does on the home page */
.holding .hero--home { min-height: calc(100svh - var(--header-h)); }

/* --- footer -------------------------------------------------------------- */
.hold-foot { border-top: 1px solid var(--line); padding: 2rem 0 2.4rem; }
.hold-foot-row { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between; align-items: center; }
.hold-foot p { margin: 0; font-size: .85rem; color: var(--text-3); }
.hold-foot a { color: var(--text-2); text-decoration: none; }
.hold-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* --- the enquiry popup --------------------------------------------------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.modal-back {
  position: absolute; inset: 0; background: rgba(3, 6, 11, .72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.modal.is-open .modal-back { opacity: 1; }
.modal-panel {
  position: relative; width: min(680px, 100%); max-height: calc(100vh - 2.4rem); overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: calc(var(--r) + 4px); border: 1px solid var(--line-bright);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(var(--accent-rgb), .16), transparent 60%),
    linear-gradient(170deg, #111826, #0A0F18);
  box-shadow: 0 50px 110px -40px rgba(0,0,0,.95), 0 0 80px -40px var(--glow);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-panel h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: .2rem 0 .7rem; }
.modal-lede { color: var(--text-2); margin: 0 0 1.6rem; font-size: .98rem; }
.modal-x {
  position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 50%;
  font: inherit; font-size: 1.3rem; line-height: 1; color: var(--text-2); cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  transition: color .25s, background .25s, transform .25s var(--ease);
}
.modal-x:hover { color: #fff; background: rgba(255,255,255,.1); transform: rotate(90deg); }

.modal-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.modal-form .field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .4rem; }
.modal-form label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.modal-form label span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.modal-form input, .modal-form textarea {
  font: inherit; color: var(--text); padding: .8rem .9rem; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-bright);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.modal-form input:focus, .modal-form textarea:focus {
  outline: none; border-color: rgba(var(--accent-rgb), .8);
  background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14);
}
.modal-form textarea { resize: vertical; min-height: 110px; }
.modal-form .err { display: none; font-style: normal; font-size: .8rem; color: var(--bad); }
.modal-form .field.is-bad .err { display: block; }
.modal-form .field.is-bad input, .modal-form .field.is-bad textarea { border-color: rgba(255,107,107,.7); }
.modal-send { width: 100%; justify-content: center; margin-top: .4rem; }
.modal-send[disabled] { opacity: .6; pointer-events: none; }
.modal-note { margin: 1rem 0 0; font-size: .78rem; color: var(--text-3); text-align: center; }
.modal-note a { color: var(--text-2); }
/* the honeypot: off-screen for people, irresistible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.modal-done { text-align: center; padding: 1rem 0 .4rem; }
.modal-done h2 { margin-bottom: .6rem; }
.modal-done p { color: var(--text-2); margin: 0 0 1.8rem; }
.modal-tick {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.2rem;
  border-radius: 50%; background: rgba(47,212,138,.14); border: 1px solid rgba(47,212,138,.5);
}
.modal-tick::before {
  content: ""; width: 14px; height: 26px; border: solid var(--ok); border-width: 0 3px 3px 0;
  transform: translate(-50%, -59%) rotate(45deg); position: absolute; left: 50%; top: 50%;
}
.modal-tick { position: relative; }
.js .modal.is-open .modal-tick::before { animation: tick-draw .5s var(--ease) both .15s; }
@keyframes tick-draw { from { opacity: 0; transform: translate(-50%, -59%) rotate(45deg) scale(.4); } to { opacity: 1; } }

@media (max-width: 560px) {
  .modal-form .field-row { grid-template-columns: 1fr; }
  .hold-bar-right .hide-sm { display: none; }
  .hold-foot-row { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-back, .modal-panel { transition: none; }
  .modal-panel { transform: none; }
  .modal-x:hover { transform: none; }
}

/* The popup owns its scrolling: a wheel or drag inside it never reaches the
   page behind (holding.js also pauses the site's smooth scrolling). */
.modal { overscroll-behavior: contain; touch-action: none; }
.modal-panel { overscroll-behavior: contain; touch-action: auto; }

/* ==========================================================================
   Leaning into the craft: a console that types itself out,
   and a clock that says whether anyone is actually in.
   ========================================================================== */

/* a faint engineering grid behind the whole page */
.holding main::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
.holding main > * { position: relative; z-index: 1; }

/* --- the clock ----------------------------------------------------------- */
.hours-card {
  position: relative; max-width: 420px; margin: 0 0 2rem; padding: 1.3rem 1.5rem 1.4rem;
  border-radius: 16px; border: 1px solid var(--line-bright);
  background: radial-gradient(120% 120% at 0% 0%, rgba(var(--accent-rgb), .12), transparent 60%), rgba(255,255,255,.025);
}
.hours-label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.hours-now { display: flex; align-items: baseline; gap: .5rem; margin: .5rem 0 .7rem; }
.hours-now b {
  font-family: var(--mono); font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 700; line-height: 1;
  letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums;
}
.hours-now em { font-style: normal; font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-2); }
.hours-state { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: .92rem; font-weight: 600; color: var(--text); }
.hours-state i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--bad); box-shadow: 0 0 10px rgba(255,107,107,.7); }
.hours-state.is-open i { background: var(--ok); box-shadow: 0 0 10px rgba(47,212,138,.8); animation: blink 2.4s ease-in-out infinite; }
.hours-note { margin: .55rem 0 0; font-size: .85rem; color: var(--text-3); }

@media (max-width: 640px) {
  .hours-card { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .term-caret, .hours-state.is-open i { animation: none; }
}

/* the footer: the brand on one side, the clock on the other */
.hold-foot-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem; padding-bottom: 2rem;
}
.foot-brand { flex: 1 1 320px; max-width: 460px; }
.foot-brand .brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.foot-brand .brand-logo { width: 40px; height: 40px; }
.foot-brand .brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.foot-blurb { margin: 1.1rem 0 0; font-size: 1.02rem; line-height: 1.6; color: var(--text-2); max-width: 34ch; }
.hold-foot-top .hours-card { margin: 0; flex: 0 1 420px; }

@media (max-width: 760px) {
  .hold-foot-top { gap: 1.6rem; }
  .foot-brand, .hold-foot-top .hours-card { flex-basis: 100%; }
  .foot-blurb { font-size: .95rem; }
}

/* --- the privacy lightbox -------------------------------------------------
   The same words as the privacy page, shown here while the rest of the site
   is still being built. Longer than the enquiry form, so it reads as a
   document: wider, scrollable, with the heading pinned at the top. */
.modal--reading .modal-panel { width: min(780px, 100%); padding-top: clamp(1.4rem, 3vw, 2rem); }
.modal--reading .modal-panel:focus { outline: none; }
.modal--reading h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.pv-section { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.pv-section h3 { font-size: 1.08rem; margin: 0 0 .6rem; }
.pv-section div { color: var(--text-2); font-size: .95rem; }
.pv-section p { margin: 0 0 .8rem; }
.pv-section p:last-child { margin-bottom: 0; }
.pv-updated { margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; color: var(--text-3); }

/* the line that used to sit above the headline, now beside the wordmark */
.brand-tag {
  margin: 0 auto 0 0; padding-left: 1.1rem; position: relative;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
  white-space: nowrap;
}
.brand-tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: var(--line-bright); }
.hold-bar { gap: 1.1rem; }
@media (max-width: 900px) { .brand-tag { display: none; } }

/* the sign-in list, inside the lightbox */
.modal--reading .signin-list { margin-top: 1.4rem; }
.modal--reading .signin-row { padding: 1rem 1.1rem; }
.modal--reading .signin-row:hover { transform: translateX(4px); }
.modal--reading .signin-row h3 { font-size: 1.02rem; }
/* listed, but not open yet: readable rather than faded away */
.signin-row.is-soon { opacity: 1; pointer-events: none; border-style: dashed; background: rgba(255,255,255,.02); }
.signin-row.is-soon .signin-id { opacity: .72; }
.signin-row.is-soon .signin-go {
  color: var(--text-3); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 99px; border: 1px solid var(--line-bright); background: rgba(255,255,255,.03);
}
