/* AramVera. Night (navy) for the first and last screens, day (cool paper) between.
   Gold means "office hours" in the visuals and marks the main action on night grounds. */

:root {
  --night: #071030; --night-2: #0f1e52; --day: #f2f5fc; --paper: #fff;
  --gold: #e3b54c; --gold-hi: #f6d98e; --gold-ink: #1d1505;

  /* day defaults; .night overrides */
  --bg: var(--day); --fg: #071030; --mut: #3f4a6b; --ln: rgba(7, 16, 48, .16);
  --surface: var(--paper); --btn: #071030; --btn-hi: #142663; --btn-ink: #f2f5fc;
  --ring: #071030; --ok: #1f7a52;

  --font-d: "Source Serif 4", "AV Serif Fallback", Georgia, serif;
  --font-t: "Libre Franklin", system-ui, sans-serif;

  --gut: 24px; --nav: 56px; --padt: 96px; --padb: 48px; --gap: 12px;
  --r: 12px; --r-sm: 8px;
}
@media (min-width: 640px)  { :root { --gut: 48px; --nav: 72px; --padt: 120px; --padb: 72px; --gap: 24px; } }
@media (min-width: 1024px) { :root { --gut: 80px; } }

.night {
  --bg: var(--night); --fg: #f2f5fc; --mut: #aeb9d6; --ln: rgba(242, 245, 252, .18);
  --surface: var(--night-2); --btn: var(--gold); --btn-hi: var(--gold-hi); --btn-ink: var(--gold-ink);
  --ring: var(--gold); --ok: #86ddb0;
}

/* Georgia set 8% smaller takes the same room as Source Serif 4, so the headline does not re-wrap when the web font arrives */
@font-face { font-family: "AV Serif Fallback"; src: local("Georgia"); size-adjust: 92%; }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
body {
  margin: 0; background: var(--night); color: var(--fg);
  font: 400 16px/1.6 var(--font-t); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(227, 181, 76, .25);
}
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
p, dd, li { text-wrap: pretty; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
.night, .section { background: var(--bg); color: var(--fg); }
.section--paper { --bg: var(--paper); --surface: var(--day); }

/* type */
h1, h2, h3 { font-family: var(--font-d); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 10vw + .5rem, 9rem); line-height: 1; letter-spacing: -.026em; }
h2 { font-size: clamp(1.875rem, 1.7vw + 1.45rem, 3rem); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: clamp(1.5rem, .4vw + 1.4rem, 1.75rem); line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(1.125rem, .2vw + 1.08rem, 1.25rem); line-height: 1.5; max-width: 42ch; text-wrap: pretty; }
.label { font: 500 13px/1.3 var(--font-t); color: var(--mut); letter-spacing: 0; }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-sm);
  background: var(--btn); color: var(--btn-ink);
  font: 500 16px/1 var(--font-t); text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: transform .15s ease-out, background-color .15s ease-out;
}
.btn:hover { background: var(--btn-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); transition-duration: .05s; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn--quiet { background: none; color: var(--fg); box-shadow: inset 0 0 0 1px var(--ln); }
.btn--quiet:hover { background: var(--day); }
.btn--nav { min-height: 44px; padding: 0 18px; }
.link {
  background: none; border: 0; padding: 12px 0; color: var(--fg); cursor: pointer;
  font: 500 14px/1.4 var(--font-t); text-decoration: underline; text-underline-offset: 3px;
  min-height: 44px; white-space: nowrap; touch-action: manipulation;
}
.link:hover { text-decoration-thickness: 2px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; height: var(--nav); border-bottom: 1px solid var(--ln); }
.nav__row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.brand { display: block; padding: 10px 0; }
.brand img { display: block; width: auto; height: clamp(24px, 7.4vw, 32px); }   /* never under the logo's 120px minimum width */
@media (max-width: 359px) { .btn--nav { padding: 0 12px; font-size: 15px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding: 10px 14px; border-radius: var(--r-sm); background: var(--gold); color: var(--gold-ink); font-weight: 500; z-index: 1; }
.skip:not(:focus-visible) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; }

/* sections: one per screen from 1024 up, natural height below; the close is as tall as its content */
.hero { padding: calc(var(--nav) + 32px) 0 20px; min-height: 100svh; }
@media (min-width: 640px) { .hero { padding-bottom: var(--padb); min-height: 0; } } /* tablet: natural height, no empty band */
.section { padding: var(--padt) 0 var(--padb); }
.section__head { max-width: 20ch; margin-bottom: 48px; }
.closing { padding: var(--padt) 0 32px; }
@media (min-width: 1024px) {
  .hero, .section { min-height: 100svh; }
  .hero { padding: calc(var(--nav) + 40px) 0 48px; }
}
@media (min-width: 1024px) and (max-height: 800px) { /* short laptop screens: keep the hero on one screen */
  .hero { padding: calc(var(--nav) + 20px) 0 20px; }
  .hero h1 { font-size: min(13vw, 11.5rem, 20svh); margin-bottom: 24px; }
}

/* the split: text on the left line, the visual from the centre line, on every section */
.split { display: grid; gap: 40px var(--gap); }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .split__text { grid-column: 1 / span 5; }
  .split__visual { grid-column: 7 / span 6; }
}

/* hero */
.notice { display: flex; align-items: center; gap: 8px; font: 500 14px/1.4 var(--font-t); color: var(--mut); margin-bottom: 16px; }
.live-dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok); }
.notice .live-dot { margin-right: 0; }
.hero { --sand: 1; }   /* share of the sand that has run through; hourglass.js moves it, 1 is the resting state */
.hero h1 { font-size: clamp(3.5rem, 17vw, 11.5rem); line-height: .95; margin-bottom: clamp(32px, 6vh, 72px); color: var(--gold); }
.hero h1 > span { display: block; }
/* The headline is ghosted gold that fills from the bottom like the lower bulb, with a pale line at the level */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    color: transparent;
    background: linear-gradient(to top, var(--gold) calc(var(--sand) * 100% - .03em), var(--gold-hi) calc(var(--sand) * 100%), rgba(174, 185, 214, .5) calc(var(--sand) * 100%));   /* unfilled: slate, still 3:1 on the navy */
    -webkit-background-clip: text; background-clip: text;
  }
}
.dots i { display: inline-block; width: .1em; height: .1em; margin-left: .07em; border-radius: 50%; background: var(--gold); }
.hero .lead { margin-bottom: 24px; }

.hours .label { margin-bottom: 8px; }
.hours__list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px 16px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--ln);
}
.hours__city { font-size: 18px; line-height: 1.3; }
.hours__city small { display: none; font-size: 13px; color: var(--mut); } /* phone: the lead above already names the countries */
.hours__state { grid-area: 2 / 1; font-size: 14px; color: var(--mut); white-space: nowrap; }   /* phone: under the city */
.is-open .hours__state { color: var(--gold); }
.hours__time { grid-area: 1 / 2 / 3; align-self: center; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.hours__track { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 4px; background: rgba(242, 245, 252, .12); }
.hours__win { position: absolute; inset: 0 auto 0 37.5%; width: 33.33%; border-radius: 4px; background: var(--gold); }
.hours__now { position: absolute; left: var(--now, 0%); top: -5px; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: #fff; opacity: 0; }
[style*="--now"] .hours__now { opacity: 1; }
.hours__list .hours__axis { border: 0; padding: 0; }
.hours__axis .hours__track { background: none; height: 20px; }
.hours__axis b { position: absolute; top: 0; transform: translateX(-50%); font: 500 13px/1.5 var(--font-t); color: var(--mut); }
@media (min-width: 640px) {
  .hours__list li { grid-template-columns: 10.5rem 7.5rem 5.5rem 1fr; align-items: center; padding: 14px 0; }
  .hours__city small { display: block; }
  .hours__state { grid-area: auto; order: 3; }
  .hours__time { grid-area: auto; text-align: left; }
  .hours__track { grid-column: 4; order: 4; }
}
/* hero: the 3D hourglass. A still picture first; the canvas fades in over it once it has drawn. */
.hero__grid { display: grid; gap: 32px var(--gap); align-content: start; }
.loader { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stage { position: relative; height: 250px; }
.stage img, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage img { object-fit: contain; }
.stage canvas { opacity: 0; transition: opacity .6s ease-out; }
.stage.is-live canvas { opacity: 1; }
.stage.is-live img { opacity: 0; transition: opacity .1s .6s; }
.ready { width: min(100%, 360px); margin-inline: auto; }
.ready__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.ready__bar { height: 4px; border-radius: 2px; background: var(--ln); overflow: hidden; }
.ready__bar i { display: block; height: 100%; border-radius: 2px; background: var(--gold); transform-origin: left; transform: scaleX(var(--sand)); }
@media (min-width: 1024px) {
  .hero { display: flex; }
  .hero__grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr; }
  .hero__text { grid-area: 1 / 1 / 2 / 9; position: relative; z-index: 1; }
  .hero .lead { max-width: 38ch; }
  .loader { grid-area: 1 / 9 / 2 / 13; }
  .stage { flex: 1; height: auto; min-height: 0; }
  .hero h1 { font-size: min(13vw, 11.5rem, 22svh); white-space: nowrap; }   /* two lines in its eight columns, clear of the glass */
}

/* waitlist form */
.card { background: var(--paper); border: 1px solid var(--ln); border-radius: var(--r); padding: 24px; }
@media (min-width: 640px) { .card { padding: 32px; } }
#waitlist h2 { margin-bottom: 24px; }
.wl__count { margin-bottom: 12px; }
.wl__progress { height: 3px; margin-bottom: 20px; border-radius: 2px; background: var(--ln); overflow: hidden; }
.wl__progress i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(var(--step, .333)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.wl:not(.is-stepped) .wl__progress { display: none; }
.step legend { font: 400 1.5rem/1.2 var(--font-d); letter-spacing: -.01em; padding: 0; outline-offset: 6px; }
.step + .step { margin-top: 32px; }
.hint { color: var(--mut); margin: 4px 0 16px; }
.chips { display: grid; gap: 8px; }
@media (min-width: 480px) { .chips { grid-template-columns: 1fr 1fr; } }
.chip {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px;
  border: 1px solid var(--ln); border-radius: var(--r-sm); line-height: 1.3; cursor: pointer;
  transition: border-color .15s, background-color .15s; touch-action: manipulation;
}
.chip:hover { border-color: var(--fg); }
.chip:has(:checked) { border-color: var(--fg); background: var(--day); }
.chip input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #071030; }
.field__label { display: block; font: 500 14px/1.4 var(--font-t); margin-bottom: 6px; }
.field {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(7, 16, 48, .45); border-radius: var(--r-sm);
  background: #fff; color: var(--fg); font: 400 16px/1 var(--font-t);
}
.field[aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 14px; min-height: 22px; margin-top: 4px; }
.step__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }   /* wraps on the narrowest phones */
.step__nav .btn:last-child { flex: 1; }
.wl__status { color: #b3261e; font-size: 14px; }
.wl__status:not(:empty) { margin-top: 12px; }
.wl__note { color: var(--mut); font-size: 14px; margin-top: 16px; }
.wl__done { display: grid; gap: 12px; justify-items: start; outline: none; }
.wl__done svg { color: var(--ok); }
.wl__done[hidden] { display: none; }
/* with script: one step at a time, the card as tall as its tallest step so nothing below jumps */
.is-stepped .wl__steps { display: grid; }
.is-stepped .step { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; }
.is-stepped .step__nav { margin-top: auto; padding-top: 20px; }
.is-stepped .step { transition: opacity .3s ease-out, transform .3s ease-out; }
.is-stepped .step:not(.is-active) { visibility: hidden; opacity: 0; transform: translateX(16px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.wl:not(.is-stepped) [data-go] { display: none; }

/* services: a slow ticker of the service names opens the section (decoration: the lists below say the same) */
#services { padding-top: 0; }
.ticker { overflow: hidden; padding: 28px 0; margin-bottom: var(--padb); border-bottom: 1px solid var(--ln); }
.ticker__track { display: flex; width: max-content; }
.ticker ul { display: flex; gap: 12px; padding-right: 12px; }
.ticker li { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--ln); border-radius: 99px; font: 500 16px/1.3 var(--font-t); white-space: nowrap; }
.ticker li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.services { display: grid; gap: 40px var(--gap); }
@media (min-width: 640px)  { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.services h3 { margin-bottom: 12px; }
.rows li { padding: 14px 0; border-top: 1px solid var(--ln); color: var(--mut); }
.rows strong { display: block; font-weight: 500; color: var(--fg); }
.services__terms { margin-top: 48px; }

/* steps and the request board */
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; padding: 20px 0; border-top: 1px solid var(--ln); }
.steps li::before { content: counter(step); font: 400 1.75rem/1.2 var(--font-d); grid-row: span 2; }
.promises dt { display: flex; align-items: center; gap: 10px; font: 500 clamp(1.125rem, .2vw + 1.08rem, 1.25rem)/1.4 var(--font-t); letter-spacing: 0; }
.steps p { color: var(--mut); }

.board { background: var(--paper); border: 1px solid var(--ln); border-radius: var(--r); padding: 12px 20px 20px; }
.board__head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 4px; }
.board__lanes { display: grid; gap: 12px; }
.lane { background: var(--day); border-radius: var(--r-sm); padding: 12px; }
.lane .label { margin-bottom: 8px; }
.lane ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; min-height: 120px; }
.task { background: #fff; border: 1px solid var(--ln); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; line-height: 1.35; }
.task small { display: block; margin-top: 4px; font-size: 13px; color: var(--mut); }
.task.is-done small::before { content: ""; display: inline-block; width: 12px; height: 7px; margin: 0 6px 3px 2px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
@media (min-width: 640px) {
  .board__lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lane ul { grid-template-columns: 1fr; min-height: 196px; }
}
@media (min-width: 1024px) {
  #steps .split { align-items: stretch; }
  .board { display: flex; flex-direction: column; }
  .board__lanes { flex: 1; }
}

/* promises, beside the form */
.promises { margin-top: 40px; }
@media (max-width: 1023px) { /* stacked: the form comes straight after the lead, the promises after the form */
  #waitlist .split__text { display: contents; }
  #waitlist h2 { margin-bottom: -16px; }
  #waitlist .promises { order: 1; margin-top: 0; }
}
.promises > div { padding: 16px 0; border-top: 1px solid var(--ln); }
.promises dd { color: var(--mut); }
.pcheck { flex: none; }
.pcheck path { fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }

/* close and footer */
.close__head { margin-bottom: clamp(32px, 5vh, 56px); }
.close__head h2 { font-size: clamp(2.25rem, 3vw + 1.5rem, 4.5rem); line-height: 1.05; letter-spacing: -.024em; }
/* the departures board: drawn by script.js, so it only takes room once it is built */
.flap { display: none; width: 100%; height: auto; }
.flap.is-built { display: block; }
.flap text { font: 600 60px var(--font-t); text-anchor: middle; fill: #f2e6cb; }
.close .lead { margin-bottom: 32px; color: var(--mut); }
.legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--ln); color: var(--mut); font-size: 14px;
}
.legal__logo { display: block; width: auto; height: 26px; }
.markets { display: flex; gap: 8px; margin-left: auto; }
.markets li { padding: 4px 10px; border: 1px solid var(--ln); border-radius: 99px; font: 500 13px/1.4 var(--font-t); }

/* thanks page */
.thanks { min-height: 100svh; padding: calc(var(--nav) + 40px) 0 var(--padb); }
.thanks h1 { font-size: clamp(2.5rem, 6vw + 1rem, 6rem); margin: 16px 0 24px; }
.thanks .lead { margin-bottom: 32px; }
.thanks svg { color: var(--ok); }

/* ---- Motion. Everything here runs only when script.js has set .motion / .reveal on <html>, which it does
   only when reduced motion is not asked for. "Pause" on the page sets .motion-paused and freezes the loops. ---- */
.motion .dots i { animation: dot 1.4s ease-in-out infinite; }
.motion .dots i:nth-child(2) { animation-delay: .2s; }
.motion .dots i:nth-child(3) { animation-delay: .4s; }
.motion .live-dot { animation: live 1.8s ease-in-out infinite; }
.motion .ticker__track { animation: ticker 50s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.motion-paused * { animation-play-state: paused !important; }
@keyframes dot { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes live { 50% { opacity: .3; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { display: none; }
  .is-stepped .step, .wl__progress i { transition: none; }
}

/* On scroll: rows rise in turn while a gold line runs along their top rule; single blocks just rise. */
.reveal [data-reveal="self"], .reveal [data-reveal="rows"] > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease-out, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal [data-reveal="self"].in, .reveal [data-reveal="rows"].in > * { opacity: 1; transform: none; }
.reveal [data-reveal="rows"] > * { position: relative; }
.reveal [data-reveal="rows"] > *::after {
  content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
}
.reveal [data-reveal="rows"].in > *::after { animation: sweep 1.2s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms + .1s); }
.reveal .hours__axis::after { display: none; }
[data-reveal] > :nth-child(2) { --i: 1; } [data-reveal] > :nth-child(3) { --i: 2; } [data-reveal] > :nth-child(4) { --i: 3; }
[data-reveal] > :nth-child(5) { --i: 4; } [data-reveal] > :nth-child(6) { --i: 5; }
.reveal [data-reveal] .pcheck path { stroke-dashoffset: 1; transition: stroke-dashoffset .6s ease-out; transition-delay: calc(var(--i, 0) * 80ms + .4s); }
.reveal [data-reveal].in .pcheck path { stroke-dashoffset: 0; }
@keyframes sweep { from { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }

/* A gold line under the nav that follows the scroll (where the browser can tie an animation to scrolling) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav::after {
      content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--gold);
      transform-origin: left; animation: read linear both; animation-timeline: scroll(root);
    }
    @keyframes read { from { transform: scaleX(0); } }
  }
}
