/* ==========================================================================
   The inspection dive: through the button, past the stars, down to Earth,
   into Arizona, onto a roof, where the request form waits.
   ========================================================================== */
.jr {
  position: fixed; inset: 0; z-index: 300; background: #03060c; color: var(--bone);
  clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%));
  font-family: var(--sans);
}
.jr[hidden] { display: none; }
.jr.open { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); transition: clip-path 0.75s cubic-bezier(0.7, 0, 0.3, 1); }
.jr.closing { opacity: 0; transition: opacity 0.45s ease; }
.jr__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.jr__roof { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.9s ease; }
.jr__roof img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--rs, 2.6)); filter: blur(var(--rb, 10px)) saturate(0.9) sepia(0.12); will-change: transform; }
.jr__roof::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 6, 12, 0.45), rgba(3, 6, 12, 0.25) 40%, rgba(3, 6, 12, 0.7)); }
.jr.on-roof .jr__roof { opacity: 1; }

/* instrument read-outs */
.jr__hud { position: absolute; inset: 0; pointer-events: none; font-variation-settings: "wdth" 125; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(243, 238, 231, 0.75); }
.jr__hud > * { position: absolute; }
.jr__tl { top: calc(24px + env(safe-area-inset-top, 0px)); left: 24px; display: flex; align-items: center; gap: 10px; }
.jr__tl img { width: 22px; }
.jr__bl { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 24px; display: grid; gap: 6px; }
.jr__alt { color: #e0a674; font-variant-numeric: tabular-nums; }
.jr__cross { left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 1px solid rgba(224, 166, 116, 0.55); border-radius: 50%; transition: opacity 0.5s; }
.jr__cross::before, .jr__cross::after { content: ""; position: absolute; background: rgba(224, 166, 116, 0.55); }
.jr__cross::before { left: 50%; top: -10px; bottom: -10px; width: 1px; }
.jr__cross::after { top: 50%; left: -10px; right: -10px; height: 1px; }
.jr.on-roof .jr__cross, .jr.form-in .jr__cross { opacity: 0; }

.jr__btn { position: absolute; pointer-events: auto; background: rgba(243, 238, 231, 0.08); border: 1px solid rgba(243, 238, 231, 0.22); color: var(--bone); border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 11px 16px; cursor: pointer; backdrop-filter: blur(10px); }
.jr__btn:hover { background: rgba(243, 238, 231, 0.18); }
.jr__btn:focus-visible { outline: 2px solid #e0a674; outline-offset: 2px; }
.jr__skip { right: 24px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.jr__close { right: 20px; top: calc(18px + env(safe-area-inset-top, 0px)); width: 44px; height: 44px; padding: 0; font-size: 20px; letter-spacing: 0; }
.jr.form-in .jr__skip { display: none; }

/* the request form, landed on the roof */
.jr__form {
  position: absolute; left: 50%; top: 50%; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 120px); overflow: auto;
  transform: translate(-50%, -40%); opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(250, 247, 242, 0.94); color: var(--ink); border-radius: 26px; padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
}
.jr.form-in .jr__form { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.jr__form .label { color: var(--copper); display: block; margin-bottom: 10px; }
.jr__form h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1; margin: 0 0 8px; letter-spacing: -0.02em; }
.jr__form h2 em { color: var(--copper); }
.jr__form .hint { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.jr__steps { display: flex; gap: 8px; margin-bottom: 20px; }
.jr__steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.jr__steps i.on { background: var(--metal); }
.jr__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.jr__grid .wide { grid-column: 1 / -1; }
.jr__form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); }
.jr__form label small { font-weight: 400; color: var(--ink-3); }
.jr__form input, .jr__form select, .jr__form textarea {
  font: 15px/1.3 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.jr__form textarea { resize: vertical; min-height: 70px; }
.jr__form input:focus, .jr__form select:focus, .jr__form textarea:focus { outline: 2px solid rgba(176, 104, 58, 0.45); border-color: var(--copper); }
.jr__consent { display: flex !important; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; font-size: 11.5px !important; color: var(--ink-2) !important; line-height: 1.5; margin-top: 4px; }
.jr__consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--copper); }
.jr__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.jr__actions .btn { --h: 50px; }
.jr__back { background: none; border: 0; font: 600 13px var(--sans); color: var(--ink-2); cursor: pointer; padding: 8px 0; }
.jr__err { color: #b3261e; font-size: 13px; margin: 12px 0 0; }
.jr__note { font-size: 11px; color: var(--ink-3); margin: 14px 0 0; text-align: center; }
.jr__done { text-align: center; padding: 10px 0; }
.jr__done .seal { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--metal); display: grid; place-items: center; color: #fff; font-size: 28px; }

@media (max-width: 560px) {
  .jr__grid { grid-template-columns: 1fr; }
  .jr__form { top: auto; bottom: 12px; transform: translate(-50%, 30%); max-height: calc(100% - 90px); }
  .jr.form-in .jr__form { transform: translate(-50%, 0); }
  .jr__bl { display: none; }
  .jr__tl { right: 76px; font-size: 9px; letter-spacing: 0.18em; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .jr.open { transition: none; }
  .jr__form { transition: none; }
}

/* spam trap: hidden from people, filled by bots */
.jr__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
