/* =============================================================
   THE HOUSE.
   Derived from claude.ai/design hi-fi handoff.
   Dark ground, strict black & white, editorial.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --ink:     #ffffff;
  --paper:   #000000;
  --ink-90:  rgba(255,255,255,0.9);
  --ink-70:  rgba(255,255,255,0.7);
  --ink-50:  rgba(255,255,255,0.5);
  --ink-35:  rgba(255,255,255,0.35);
  --ink-20:  rgba(255,255,255,0.2);
  --ink-10:  rgba(255,255,255,0.1);
  --ink-5:   rgba(255,255,255,0.05);
  --line:    rgba(255,255,255,0.14);
  --line-soft: rgba(255,255,255,0.08);
  --panel:   rgba(255,255,255,0.035);
  --panel-strong: rgba(255,255,255,0.075);
  --field:   rgba(255,255,255,0.045);
  --shadow-soft: 0 28px 110px rgba(0,0,0,0.42);
  --shadow-tight: 0 14px 48px rgba(0,0,0,0.38);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans:    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --motion-feedback: 150ms;
  --motion-small: 240ms;
  --motion-medium: 420ms;
  --motion-page-exit: 260ms;
  --motion-dock: 520ms;
}

:root[data-theme="light"] {
  --ink:     #000000;
  --paper:   #fbfbfa;
  --ink-90:  rgba(0,0,0,0.9);
  --ink-70:  rgba(0,0,0,0.7);
  --ink-50:  rgba(0,0,0,0.5);
  --ink-35:  rgba(0,0,0,0.35);
  --ink-20:  rgba(0,0,0,0.2);
  --ink-10:  rgba(0,0,0,0.1);
  --ink-5:   rgba(0,0,0,0.05);
  --line:    rgba(0,0,0,0.14);
  --line-soft: rgba(0,0,0,0.08);
  --panel:   rgba(0,0,0,0.035);
  --panel-strong: rgba(0,0,0,0.075);
  --field:   rgba(0,0,0,0.045);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

html { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

::selection { background: var(--ink); color: var(--paper); }

button { font-family: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
.admin-row:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

/* =========== Layout =========== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: page-enter var(--motion-medium) var(--ease-out) both;
}

@keyframes page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}
.top .brand-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  z-index: 30;
}
.top .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--ink);
  line-height: 0;
}
.top .brand-word {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.top .brand-word:hover {
  color: var(--ink-70);
}
.top .brand-shell.is-open .brand-word {
  color: var(--ink);
}
/* Tiny caret removed per design — wordmark is the toggle, no chevron. */
.brand-word-caret { display: none; }
/* Inline nav — at rest, nothing is shown. Click the wordmark to reveal
   the whole menu (divider + links) sliding out to the right. */
.site-menu {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: max-width 520ms var(--ease-out),
              opacity 260ms var(--ease-out),
              margin-left 520ms var(--ease-out),
              padding-left 520ms var(--ease-out),
              transform 420ms var(--ease-out);
}
.site-menu[hidden] { display: none; }
.brand-shell.is-open .site-menu {
  max-width: 360px;
  opacity: 1;
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--ink-20);
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0ms, 120ms, 0ms, 0ms, 80ms;
}
.site-menu a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding: 4px 0;
  position: relative;
  transition: color 180ms var(--ease-out);
  white-space: nowrap;
}
.site-menu a + a {
  margin-left: 22px;
}
/* "Selected" helper label on the active link — only hide when there are
   two spans (the active link has <span>Home</span><span>Selected</span>). */
.site-menu a span + span { display: none; }
.site-menu a:hover,
.site-menu a:focus-visible { color: var(--ink); }

/* Sliding active underline — one rail under all links, positioned via JS
   (or via :has() fallback). The rail animates between link positions when
   the user moves the hover, giving the "slides over on selection" feel. */
.site-menu::before {
  content: '';
  position: absolute;
  left: 18px; /* matches padding-left when open */
  bottom: 2px;
  width: var(--nav-rail-w, 0px);
  height: 1px;
  background: var(--ink);
  transform: translateX(var(--nav-rail-x, 0px));
  opacity: 0;
  transition: transform 380ms var(--ease-out),
              width 380ms var(--ease-out),
              opacity 200ms var(--ease-out);
  pointer-events: none;
}
.brand-shell.is-open .site-menu::before { opacity: 1; transition-delay: 140ms, 140ms, 140ms; }
.site-menu.no-rail-anim::before { transition: none !important; }
.site-menu a.is-active { color: var(--ink); }
/* Legacy per-link underline is replaced by the rail. */
.site-menu a.is-active::after { display: none; }
.top .meta {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.top .mark { width: 18px; height: 18px; }

/* Home and Labels share the pinned header, including room for Request dates. */
.top .brand-shell[data-site-nav-open] { min-height: 40px; }
@media (min-width: 701px) {
  .top:has([data-site-nav-open]) { padding: 1.67vw 40px 1.67vw 3.77vw; }
  .top .brand-shell[data-site-nav-open] { gap: 1.26vw; }
  .top .brand-shell[data-site-nav-open] .brand-mark,
  .top .brand-shell[data-site-nav-open] .mark { width: max(24px, 2.21vw); height: max(24px, 2.21vw); }
  .top .brand-shell[data-site-nav-open] .mark svg { width: max(36px, 3.3vw); height: max(36px, 3.3vw); margin: min(-6px, -0.54vw); } /* glyph fills 80/120 of its box */
  .top .brand-shell[data-site-nav-open] .brand-word { font-size: max(11px, 0.72vw); }
  .top .brand-shell[data-site-nav-open].is-open .site-menu { margin-left: 0.72vw; padding-left: 1.8vw; }
  .top .brand-shell[data-site-nav-open] .site-menu::before { left: 1.8vw; }
  .top .brand-shell[data-site-nav-open] .site-menu a { font-size: max(11px, 0.78vw); }
  .top .brand-shell[data-site-nav-open] .site-menu a + a { margin-left: 2.4vw; }
}
@media (max-width: 700px) {
  .top:has([data-site-nav-open]) { padding: 24px; }
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 80px;
  text-align: center;
  /* Offset half the header height so content centers against the viewport,
     not against the post-header band. (The header is ~77px; pulling the
     stage up by ~38px makes the content midpoint land at 50vh.) */
  margin-top: calc(-1 * var(--header-h, 77px) / 2);
}

.footer-tiny {
  position: fixed;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.footer-tiny > * { pointer-events: auto; }

/* =========== Label-facing route =========== */
.label-route {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 40px 92px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.label-hero {
  max-width: 840px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.label-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 104px;
  line-height: 0.92;
  letter-spacing: 0;
}
.label-hero p:not(.label),
.booking-section > div > p:not(.label),
.label-operations p {
  margin: 0;
  color: var(--ink-70);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0;
}
.label-operations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.label-operations article {
  min-height: 280px;
  padding: 26px 28px 30px 0;
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background var(--motion-small) var(--ease-out),
              padding-left var(--motion-small) var(--ease-out),
              padding-right var(--motion-small) var(--ease-out);
}
.label-operations article:first-child {
  border-left: 0;
}
.label-operations article:not(:first-child) {
  padding-left: 28px;
}
.label-operations article:hover {
  background: var(--panel);
  padding-left: 28px;
  padding-right: 28px;
}
.label-operations span,
.booking-form label span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.label-operations h2,
.booking-section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
}
.booking-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: start;
  border-top: 1px solid var(--ink);
  padding-top: 42px;
}
.booking-section > div {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  padding: 0 14px;
  border-radius: 0;
}
.booking-form input:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.booking-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
}
.booking-form.is-complete input {
  border-color: var(--ink-35);
  color: var(--ink-50);
}

/* =========== Landing — hero stack + morphing mark =========== */
.landing-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.landing-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  transition: opacity var(--motion-page-exit) var(--ease-in),
              transform var(--motion-page-exit) var(--ease-in);
}

/* Hero slot — this is the "home" rect the mover animates from/to at rest.
   It only *reserves space*; the actual pixel is drawn by .landing-mark-mover. */
.landing-mark-slot {
  display: block;
  width: 156px;
  height: 156px;
}

/* Header slot — the "away" rect in the top-left lockup.
   Same deal: reserves space; painted by the mover. */
.top .mark[data-mark-target] {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--ink);
}

/* The actual painted mark. Lives in a fixed overlay so we can animate
   across the page without disturbing layout. Positioned by JS (FLIP). */
.landing-mark-mover {
  position: fixed;
  top: 0;
  left: 0;
  color: var(--ink);
  pointer-events: none;
  z-index: 5;
  line-height: 0;
  /* JS handles transform + transition; don't set them here. */
  will-change: transform;
}
.landing-mark-mover svg { display: block; width: 100%; height: 100%; }

/* =========== Entry line =========== */
.entry {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-size: 56px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  min-height: 72px; /* holds shape when empty */
  transition: border-color var(--motion-feedback) var(--ease-out),
              box-shadow var(--motion-feedback) var(--ease-out),
              opacity var(--motion-page-exit) var(--ease-in),
              transform var(--motion-page-exit) var(--ease-in),
              min-width var(--motion-small) var(--ease-in-out);
  white-space: nowrap;
}
.entry::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ink);
  opacity: 0;
  transform: scaleX(0.16);
  transform-origin: center;
  transition: opacity var(--motion-feedback) var(--ease-out),
              transform var(--motion-feedback) var(--ease-out);
  pointer-events: none;
}
.entry.is-complete {
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink-50);
}
.entry.is-complete::after {
  opacity: 0.65;
  transform: scaleX(1);
}

.entry-plus {
  color: var(--ink-70);
  font-size: 48px;
  line-height: 1;
}
.entry-plus-btn {
  appearance: none;
  border: 0;
  padding: 0 2px;
  margin: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.82em;
  height: 0.92em;
  flex: 0 0 auto;
  align-self: baseline;
  vertical-align: baseline;
  transform: translateY(0.03em);
  -webkit-tap-highlight-color: transparent;
}
.entry-plus-btn:focus-visible {
  outline: 0;
}
.entry-plus-glyph {
  color: currentColor;
  font-size: 1em;
  line-height: 1;
  display: block;
  transform-origin: 50% 53%;
  transition: color var(--motion-small) var(--ease-out),
              transform var(--motion-small) var(--ease-out);
}
.entry-plus-btn:focus-visible .entry-plus-glyph {
  color: var(--ink);
}
.entry-plus,
.entry-cc,
.entry-sep,
.entry-phone,
.entry-dim {
  transition: opacity var(--motion-small) var(--ease-out),
              color var(--motion-small) var(--ease-out),
              transform var(--motion-small) var(--ease-out);
}
.entry-cc { color: var(--ink); }
.entry-sep { color: var(--ink-50); font-size: 32px; }
.entry-phone { color: var(--ink); }
.entry-dim { color: var(--ink-20); }

/* A persistent, tiny country label sits above the local number when a
   country is selected or the user starts typing. */
.entry-cc-label {
  position: absolute;
  top: -24px;
  left: 0;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-50);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--motion-small) var(--ease-out),
              transform var(--motion-small) var(--ease-out);
  pointer-events: none;
}
.entry { position: relative; }

/* Resting stage: only "+" visible with a visible underscore seed after it.
   The dim span is repurposed as the "_" seed. */
.entry.is-resting .entry-cc,
.entry.is-resting .entry-phone,
.entry.is-resting .entry-sep { display: none; }
.entry.is-resting .entry-dim {
  display: inline;
  color: var(--ink-35);
  letter-spacing: 0.2em;
}

/* CC-only stage: "+{cc}" — the cc digit is full ink, phone/dim hidden. */
.entry.is-cc .entry-dim,
.entry.is-cc .entry-phone,
.entry.is-cc .entry-sep { display: inline; }
.entry.is-cc .entry-phone { color: transparent; } /* holds its slot, invisible */
.entry.is-cc .entry-dim { color: var(--ink-10); }

/* Phone stage: the country code moves out of the field and into the
   label, leaving the hi-fi local-number underline as the focus. */
.entry.is-phone .entry-plus,
.entry.is-phone .entry-cc,
.entry.is-phone .entry-sep { display: none; }
.entry.has-country-label .entry-cc-label {
  opacity: 1;
  transform: translateY(0);
}

/* Leading-1 absorbed: brief "intercept" pulse on the country label + plus
   glyph so the keystroke isn't silently eaten. 420ms, single shot. */
.entry-cc-label.is-code-absorbed {
  animation: cc-label-absorb 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.entry-plus-btn.is-code-absorbed .entry-plus-glyph {
  animation: cc-plus-absorb 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cc-label-absorb {
  0%   { opacity: 0;   transform: translateY(6px) scale(0.94); color: var(--ink); letter-spacing: 0.44em; }
  35%  { opacity: 1;   transform: translateY(0)   scale(1.04); color: var(--ink); letter-spacing: 0.36em; }
  70%  { opacity: 1;   transform: translateY(0)   scale(1);    color: var(--ink); letter-spacing: 0.32em; }
  100% { opacity: 1;   transform: translateY(0)   scale(1);    color: var(--ink-50); letter-spacing: 0.32em; }
}
@keyframes cc-plus-absorb {
  0%   { transform: scale(1)   translateY(0.03em); color: var(--ink); }
  30%  { transform: scale(1.18) translateY(0.03em); color: var(--ink); }
  60%  { transform: scale(0.92) translateY(0.03em); color: var(--ink); }
  100% { transform: scale(1)   translateY(0.03em); color: var(--ink-70); }
}
.entry.is-phone .entry-phone {
  animation: local-number-in var(--motion-small) var(--ease-out) both;
}
.entry.is-phone-entering .entry-phone {
  animation-duration: 320ms;
}
.entry.is-complete .pe-caret { opacity: 0.72; }
.landing-stack.is-focused .pe-caret {
  animation: pe-blink 1.12s var(--ease-in-out) infinite;
}
.landing-stack.is-blurred .pe-caret,
.landing-stack:not(.is-focused) .pe-caret {
  animation: none;
  opacity: 0.26;
}
.landing-stack.is-focused .entry.is-complete .pe-caret {
  animation: none;
  opacity: 0.72;
}
.landing-stack.is-country-open .entry-plus {
  color: var(--ink);
}
.landing-stack.is-country-open .entry-plus-glyph {
  transform: rotate(45deg);
}
.landing-stack.is-exiting .entry {
  opacity: 0.28;
  transform: translateY(-4px);
}
.landing-stack.is-exiting [data-pe-submit] {
  opacity: 0;
  transform: translateY(4px);
}

/* The blinking caret inline */
.entry .pe-caret { align-self: center; }

@keyframes local-number-in {
  from { opacity: 0.68; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.country-tray {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 6;
  width: 360px;
  max-width: min(360px, calc(100vw - 56px));
  max-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid transparent;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  margin-top: 0;
  opacity: 0;
  transform: translate(-50%, -10px) scaleY(0.98);
  transform-origin: top center;
  pointer-events: none;
  scrollbar-width: none;
  transition: max-height var(--motion-medium) var(--ease-out),
              border-color var(--motion-small) var(--ease-out),
              opacity var(--motion-small) var(--ease-out),
              transform var(--motion-small) var(--ease-out);
}
.country-tray::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.landing-stack.is-country-open .country-tray {
  max-height: 248px;
  border-color: var(--ink);
  opacity: 1;
  transform: translate(-50%, 0) scaleY(1);
  pointer-events: auto;
  overflow-y: auto;
}
.country-option {
  appearance: none;
  border: 0;
  border-top: 1px solid var(--ink-10);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 40px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-feedback) var(--ease-out),
              color var(--motion-feedback) var(--ease-out),
              opacity var(--motion-feedback) var(--ease-out);
}
.country-option:first-child { border-top: 0; }
.country-option:hover,
.country-option:focus-visible,
.country-option.is-selected {
  background: var(--ink);
  color: var(--paper);
}
.country-option:focus-visible {
  outline: 0;
}
.country-option span:first-child {
  white-space: nowrap;
}

.landing-input {
  /* Invisible real input. Clicks on the stack focus it via JS, but it does
     not cover the visual controls, so Enter remains a real button target. */
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
  cursor: text;
  pointer-events: none;
}

/* =========== Typography =========== */
.display {
  font-family: var(--display);
  font-weight: 300;
  font-size: 112px;
  letter-spacing: 0;
  line-height: 0.95;
  color: var(--ink);
  margin: 0;
}
.display.sm { font-size: 72px; }
.display.xs { font-size: 48px; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.label.xs { font-size: 9px; letter-spacing: 0.3em; }

.sub {
  /* Secondary text matches .label: mono caps, the way the closed screen reads. (Kolton, 2026-09-03) */
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-50);
}

/* =========== Phone-entry field =========== */
.pe-cc {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.pe-field {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-size: 56px;
  min-width: min(480px, 100%);
  transition: box-shadow var(--motion-feedback) var(--ease-out),
              border-color var(--motion-feedback) var(--ease-out);
}
.pe-field:focus-within {
  box-shadow: 0 1px 0 var(--ink-50);
}
.pe-field.sm {
  font-size: 32px;
  padding-bottom: 4px;
  border-bottom-width: 1.5px;
  min-width: 240px;
}
.pe-field .pe-dim { color: var(--ink-20); }

.pe-caret {
  display: inline-block;
  width: 2px;
  height: 0.8em;
  background: var(--ink);
  animation: none;
  margin: 0 2px;
  align-self: center;
}
@keyframes pe-blink {
  0%, 48% { opacity: 1; }
  62%, 100% { opacity: 0; }
}

.pe-seed {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-weight: 400;
  cursor: text;
}
.pe-seed .plus { font-size: 48px; color: var(--ink-70); line-height: 1; }
.pe-seed .slot {
  display: inline-block;
  min-width: 56px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  position: relative;
  height: 44px;
}
.pe-seed.sm .plus { font-size: 32px; }
.pe-seed.sm .slot { min-width: 40px; height: 32px; border-bottom-width: 1.5px; }

/* invisible real input overlaid on the seed/field */
.pe-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: transparent;
  caret-color: transparent;
}
.pe-input.landing-input {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.name-stack {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.name-field {
  min-width: min(420px, 100%);
  /* Text you type is set in the display face; only the phone number is mono. */
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: 0;
}
.name-input {
  position: static;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--ink);
  font: inherit;
  text-align: center;
  outline: 0;
}

/* =========== Buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, color 0.2s,
              transform var(--motion-feedback) var(--ease-out);
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.btn.block { width: 100%; }
.btn.dim { opacity: 0.25; pointer-events: none; }
.btn.sm { min-height: 44px; font-size: 11px; padding: 0 24px; }
.btn.is-pressed {
  opacity: 0.76;
  transform: translateY(1px);
}
.btn.is-waiting {
  background: transparent;
  color: var(--ink);
  opacity: 1;
  pointer-events: none;
}
[data-pe-submit] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion-small) var(--ease-out),
              transform var(--motion-small) var(--ease-out);
  pointer-events: none;
}
[data-pe-submit].is-ready {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}
.link:hover { color: var(--ink); }

/* =========== Confirm card =========== */
.confirm {
  width: 720px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: left;
}
.confirm-meta,
.confirm-name {
  transition: opacity var(--motion-small) var(--ease-out),
              transform var(--motion-small) var(--ease-out);
}
.confirm.is-committing .confirm-meta,
.confirm.is-committing .confirm-name {
  opacity: 0.48;
  transform: translateY(-2px);
}
.confirm-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.confirm-date {
  font-family: var(--display);
  font-weight: 300;
  font-size: 56px;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}
.confirm-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 12px;
}
.confirm-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink-70);
}
.confirm-spots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  color: var(--ink);
  white-space: nowrap;
}
.confirm-spots b {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--paper);
  background: var(--ink);
  padding: 4px 8px;
  line-height: 1;
  display: inline-block;
}
.confirm-spots > span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
/* =========== Signature slide-fill (Confirm / Decline) ===========
   One filled pill lives inside .choice-pair and translates between
   the Confirm and Decline slots. On mobile the pair stacks and the
   pill translates vertically. Button labels flip color when the
   pill is beneath them. */
.choice-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--ink);
  isolation: isolate;
  /* We don't use gap so the sliding pill can cross a seam cleanly. */
}

/* The sliding pill — positioned over one slot at rest; JS updates
   data-hover so the fill and label contrast stay in lockstep. */
.choice-pair::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--ink);
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.65,0,0.35,1);
  z-index: 1;
  pointer-events: none;
}

/* Default: pill sits on Confirm (first slot). */
.choice-pair[data-fill="confirm"]::before { transform: translateX(0); }
.choice-pair[data-fill="decline"]::before { transform: translateX(100%); }
.choice-pair[data-hover="confirm"]::before { transform: translateX(0); }
.choice-pair[data-hover="decline"]::before { transform: translateX(100%); }

.choice {
  position: relative;
  z-index: 2;
  height: 84px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
/* A hairline between the two buttons, recessed under the pill. */
.choice + .choice { box-shadow: inset 1px 0 0 var(--ink); }

.choice-label {
  position: relative;
  z-index: 3;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.35s cubic-bezier(0.65,0,0.35,1),
              opacity var(--motion-small) var(--ease-in),
              transform var(--motion-small) var(--ease-in);
}

/* When the pill is under a slot, only that slot's label inverts. The
   unfilled slot must stay white and readable. */
.choice-pair[data-fill="confirm"]:not([data-hover]) .choice:nth-child(1) .choice-label,
.choice-pair[data-fill="decline"]:not([data-hover]) .choice:nth-child(2) .choice-label,
.choice-pair[data-hover="confirm"] .choice:nth-child(1) .choice-label,
.choice-pair[data-hover="decline"] .choice:nth-child(2) .choice-label {
  color: var(--paper);
}
.choice-pair[data-committed] {
  pointer-events: none;
}
.choice-pair[data-committed] .choice-label {
  letter-spacing: 0.28em;
}
.choice-pair[data-committed="confirm"] .choice:nth-child(2) .choice-label {
  opacity: 0;
  transform: translateX(10px);
}
.choice-pair[data-committed="decline"] .choice:nth-child(1) .choice-label {
  opacity: 0;
  transform: translateX(-10px);
}

/* =========== Terminal arrivals =========== */
@keyframes terminal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.terminal-arrival .display,
.terminal-arrival .sub,
.terminal-arrival .btn {
  opacity: 0;
  animation: terminal-in var(--motion-medium) var(--ease-out) forwards;
}
.terminal-arrival .display { animation-delay: 160ms; }
.terminal-arrival .sub { animation-delay: 260ms; }
.terminal-arrival .btn { animation-delay: 340ms; }
.confirmed-flow [data-confirmed-mark],
.confirmed-flow [data-confirmed-title],
.confirmed-flow [data-confirmed-sub],
.confirmed-flow [data-confirmed-action] {
  opacity: 0;
  animation: terminal-in var(--motion-medium) var(--ease-out) forwards;
}
.confirmed-flow [data-confirmed-mark] { animation-delay: 80ms; }
.confirmed-flow [data-confirmed-title] { animation-delay: 180ms; }
.confirmed-flow [data-confirmed-sub] { animation-delay: 260ms; }
.confirmed-flow [data-confirmed-action] { animation-delay: 340ms; }
.confirmed-flow .footer-tiny {
  opacity: 0;
  animation: terminal-in var(--motion-medium) var(--ease-out) 520ms forwards;
}

/* =========== Mobile spatial system =========== */
@media (max-width: 560px) {
  .top { padding: 24px 24px; }
  .top .brand-word { font-size: 9px; letter-spacing: 0.24em; }
  .site-menu { gap: 14px; margin-left: 14px; padding-left: 14px; }
  .site-menu a { font-size: 9px; letter-spacing: 0.2em; }
  .site-menu-legacy {
    left: 0;
    width: min(240px, calc(100vw - 48px));
  }

  .stage {
    padding: 0 28px;
    gap: 24px;
  }

  /* Hero (landing / prompts) */
  .display { font-size: 54px; letter-spacing: 0; line-height: 0.98; }
  .display.sm { font-size: 44px; }

  /* Phone-entry shrinks */
  .pe-field { font-size: 32px; min-width: 240px; border-bottom-width: 1.5px; padding-bottom: 4px; }
  .pe-seed .plus { font-size: 32px; }
  .pe-seed .slot { min-width: 40px; height: 32px; border-bottom-width: 1.5px; }

  /* Landing entry line — shrink to fit 375px viewport with 28px side padding.
     Full `+1 323-555-0142` must fit without wrap. Mono at 24px × ~11 chars
     + spacing ≈ 300px, comfortable inside 319px (375 - 2×28). */
  .entry {
    font-size: 24px;
    padding-bottom: 4px;
    border-bottom-width: 1.5px;
    gap: 8px;
    min-height: 48px;
    max-width: 100%;
    overflow: visible;
  }
  .entry-plus { font-size: 22px; }
  .entry-sep  { font-size: 14px; }
  .entry-cc-label { font-size: 8px; letter-spacing: 0.28em; }

  .landing-mark-slot { width: 116px; height: 116px; }
  .country-tray {
    width: min(312px, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
  }

  /* Confirm card switches to hero layout */
  .confirm { width: 100%; gap: 20px; text-align: center; }
  .confirm-meta { flex-direction: column; align-items: center; gap: 12px; }
  .confirm-date { font-size: 56px; }
  .confirm-name { display: none; }
  .confirm-spots { align-self: center; }

  /* Choice pair: stack vertically, pill translates on Y axis */
  .choice-pair {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .choice-pair::before {
    width: 100%;
    height: 50%;
    transform: translateY(0);
  }
  .choice-pair[data-fill="confirm"]::before { transform: translateY(0); }
  .choice-pair[data-fill="decline"]::before { transform: translateY(100%); }
  .choice-pair[data-hover="confirm"]::before { transform: translateY(0); }
  .choice-pair[data-hover="decline"]::before { transform: translateY(100%); }

  /* Vertical hairline becomes horizontal between stacked buttons. */
  .choice + .choice { box-shadow: inset 0 1px 0 var(--ink); }

  .choice { height: 56px; }
  .choice-label { font-size: 11px; letter-spacing: 0.22em; }

  /* Full-width primary CTA fixed at bottom on form-ish screens */
  .btn.block-mobile { width: 100%; }

  .label-route {
    padding: 74px 24px 72px;
    gap: 54px;
  }
  .label-hero h1 {
    font-size: 56px;
    line-height: 0.96;
  }
  .label-hero p:not(.label),
  .booking-section > div > p:not(.label),
  .label-operations p {
    font-size: 17px;
  }
  .label-operations,
  .booking-section,
  .booking-form {
    grid-template-columns: 1fr;
  }
  .label-operations article,
  .label-operations article:not(:first-child) {
    min-height: auto;
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--ink-10);
  }
  .label-operations article:first-child {
    border-top: 0;
  }
  .booking-section {
    gap: 32px;
  }
}

/* =========== Shared feedback =========== */
.btn.is-pressed { transform: translateY(1px) scale(0.985); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
