/* //EYERUS sign-in page.
   Direction: "the product performs" (design-taste-frontend, seed 16375087), brand palette and type kept.
   One face (Geist), five sizes, one ground with one lighter step, the accent is the light action. */

:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --surface: #12161b;
  --surface-2: #181d23;
  --ink: #e8ebee;
  --muted: #9aa2ab;
  --line: #262d36;
  --alpr: #ff5c4d;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --m: clamp(20px, 2.8vw, 40px);           /* the one pair of page margins */
  --s1: 13px;                               /* interface text inside fragments */
  --s2: 17px;                               /* body */
  --s3: clamp(24px, 2.2vw, 32px);           /* headline, lead line */
  --s4: clamp(30px, 3vw, 44px);             /* the question */
  --s5: clamp(120px, 19vw, 320px);          /* the figure */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--s2)/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--ink); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #9fc4ff; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.hero-left { display: flex; flex-direction: column; padding: var(--m); background: var(--bg); }
.hero-right { display: grid; place-items: center; padding: var(--m); background: var(--surface); }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.mark { font-weight: 700; font-size: var(--s2); letter-spacing: .04em; text-decoration: none; }
.mark span { color: var(--muted); margin-right: 2px; letter-spacing: -.04em; }
.mode-link { background: none; border: 0; padding: 6px 0; font-size: var(--s2); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; cursor: pointer; transition: text-decoration-color .2s; }
.mode-link:hover { text-decoration-color: var(--ink); }

.hero-copy { margin-top: auto; max-width: 30rem; }
h1 { margin: 0; font-size: var(--s3); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.lede { margin: 14px 0 0; color: var(--ink); max-width: 44ch; }

.auth-form { margin-top: 32px; display: grid; gap: 14px; max-width: 26rem; }
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--s2); color: var(--muted); }
.field input {
  height: 46px; padding: 0 12px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0; outline: 0; font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
.field input:hover { border-color: #39424d; }
.field input:focus { border-color: var(--ink); background: var(--surface-2); }
.hint { margin: -2px 0 0; color: var(--muted); font-size: var(--s1); }
.form-error { margin: 0; color: #ff8a7d; font-size: var(--s2); }
.action {
  justify-self: start; height: 48px; padding: 0 28px; margin-top: 6px;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 0;
  font-weight: 600; cursor: pointer;
  transition: background-color .2s, transform .12s var(--ease);
}
.action:hover { background: #fff; }
.action:active { transform: scale(.97); }
.action:disabled { opacity: .6; cursor: progress; }

/* ---------- the fragment: the real map, working ---------- */
.preview { width: min(470px, 100%); background: var(--bg); }
.preview-cities { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: #0d1014; }
.preview-cities button {
  flex: 1 1 auto; height: 34px; padding: 0 10px; border: 0; border-radius: 4px; background: none;
  color: var(--muted); font-size: var(--s1); font-weight: 500; cursor: pointer;
  transition: background-color .16s, color .16s, transform .12s var(--ease);
}
.preview-cities button:hover { color: var(--ink); }
.preview-cities button:active { transform: scale(.96); }
.preview-cities button[aria-selected="true"] { background: #2d343e; color: var(--ink); }
.preview-map { position: relative; aspect-ratio: 1 / 1; background: #0e1116; }
.preview-map .maplibregl-ctrl-attrib { font-size: 10px; }
.preview-fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: var(--s1); }
.preview-readout { padding: 14px 16px 16px; font-size: var(--s1); }
.ro-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.ro-head b { color: var(--ink); font-weight: 600; }
.ro-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 12px 0 0; }
.ro-figs > div { display: flex; flex-direction: column; justify-content: space-between; padding: 10px 10px 9px; background: #12161b; border-radius: 4px; }
.ro-figs dt { color: var(--muted); }
.ro-figs dd { margin: 4px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.ro-figs > div:first-child dd { color: var(--alpr); }
.ro-pointer { margin: 12px 0 0; color: var(--muted); min-height: 1.5em; }
.ro-pointer b { color: var(--ink); }

/* ---------- intro: lead line over four columns ---------- */
.intro { padding: 120px var(--m) 96px; }
.lead { margin: 0; max-width: 62rem; font-size: var(--s3); line-height: 1.25; letter-spacing: -.01em; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; align-items: start; }
.cols p { margin: 0; color: var(--ink); font-size: var(--s2); line-height: 1.5; max-width: 34ch; }
.cols b { color: var(--ink); font-weight: 600; }



/* ---------- figure set by a slider ---------- */
.figure-set { min-height: 88svh; display: flex; flex-direction: column; justify-content: space-between; margin-top: 180px; padding: 96px var(--m) 72px; background: var(--surface); }
.figure-set h2 { margin: 0; font-size: var(--s4); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
.fs-control { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; width: min(520px, 100%); margin-top: 28px; font-size: var(--s1); }
.fs-control span { display: block; margin-bottom: 6px; color: var(--muted); }
.fs-control output { color: var(--ink); font-weight: 600; margin-left: 4px; }
.fs-control select { height: 36px; padding: 0 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.fs-control input[type="range"] { width: 100%; height: 36px; accent-color: var(--ink); cursor: pointer; }
.fs-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 48px; }
.fs-figure { margin: 0; font-size: var(--s5); font-weight: 700; line-height: .8; letter-spacing: -.045em; }
.fs-unit { font-size: var(--s4); font-weight: 600; letter-spacing: -.01em; margin-left: .35em; color: var(--muted); }
.fs-how { margin: 0; max-width: 30ch; color: var(--muted); }

/* ---------- footer: one quiet line ---------- */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; padding: 30svh var(--m) 30px; font-size: var(--s2); color: var(--muted); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--ink); text-decoration: none; transition: opacity .2s; }
.foot-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.foot-links a:hover, .foot-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { justify-self: end; }

/* ---------- motion ---------- */
.masked .line { display: block; overflow: hidden; padding-bottom: .08em; }
.masked .line > span { display: inline-block; }
.js .masked .line > span { transform: translateY(105%); }
.js.ready .masked .line > span { transform: none; transition: transform .9s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .js .masked .line > span, .js .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- phone: its own composition ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-right { order: -1; min-height: 0; padding: 64px 20px 20px; }
  .preview { width: min(88vw, 440px); }
  .preview-cities { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .preview-cities::-webkit-scrollbar { display: none; }
  .preview-cities button { flex: none; height: 40px; }
  .preview-map { aspect-ratio: 16 / 11; }
  .ro-pointer { display: none; }
  .ro-figs dd { font-size: 20px; }
  .hero-left { padding: 28px 20px 48px; }
  .hero-top { position: absolute; top: 16px; left: 20px; right: 20px; }
  .hero-copy { margin-top: 0; }
  h1 { font-size: var(--s3); }
  .intro { padding: 80px 20px 64px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 40px 20px; margin-top: 48px; }
  .figure-set { min-height: 84svh; margin-top: 96px; padding: 64px 20px 48px; }

  .fs-control { grid-template-columns: 1fr; }
  .fs-control input[type="range"] { height: 44px; }
  .fs-bottom { flex-direction: column; align-items: flex-start; }
  .fs-figure { font-size: 30vw; }
  .fs-unit { display: block; margin: 10px 0 0; }
  .foot { grid-template-columns: 1fr; gap: 8px; padding: 20svh 20px 24px; }
  .foot-links { flex-wrap: wrap; gap: 16px; }
  .foot-legal { justify-self: start; }
}
@media (max-width: 420px) {
  .cols { grid-template-columns: 1fr; gap: 32px; }
}

/* Web Interface Guidelines pass */
button, a, select, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#about, #privacy, #signin { scroll-margin-top: 24px; }
.hero { padding-top: env(safe-area-inset-top); }
.foot { padding-bottom: max(30px, env(safe-area-inset-bottom)); }

/* ---------- boot: typed wordmark + one line, then fades ---------- */
/* (its own class: .intro is the about section further down the page) */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 22px;
  padding: 24px; background: var(--bg); text-align: center;
  transition: opacity .5s var(--ease), visibility .5s;
  /* if the script never runs, don't leave a curtain up */
  animation: boot-failsafe 0s 9s forwards;
}
.boot:not(.run) > * { visibility: hidden; }
.boot.out { opacity: 0; visibility: hidden; }
@keyframes boot-failsafe { to { opacity: 0; visibility: hidden; } }
.boot-word {
  position: relative; display: inline-flex; align-items: center; min-height: 1em;
  font: 700 clamp(44px, 9vw, 104px)/1 var(--sans); letter-spacing: .03em; color: var(--ink); font-style: italic;
}
.boot-word .sl { color: var(--muted); letter-spacing: -.04em; margin-right: .03em; }
.boot-line { min-height: 1.5em; max-width: 30ch; margin: 0; font: 500 clamp(17px, 2vw, 22px)/1.45 var(--sans); color: var(--muted); text-wrap: balance; }
.boot .caret { display: inline-block; vertical-align: -0.12em; width: .06em; height: .86em; margin-left: .07em; background: var(--ink); animation: caret 1s steps(1) infinite; }
/* the word's caret floats past the slanted S and takes no space, so the word never shifts */
.boot-word .caret { position: absolute; left: 100%; top: 50%; margin: 0 0 0 .14em; transform: translateY(-50%); }
.boot-line .caret { width: 2px; height: 1em; background: var(--muted); }
.boot.typed .caret { animation-duration: .45s; }
.boot-skip { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; font-size: 13px; color: var(--muted); opacity: .7; }
@keyframes caret { 50% { opacity: 0; } }

/* italic wordmark, matching the intro */
.mark { font-style: italic; }

/* ---------- live right now: real cameras from the map ---------- */
.live { padding: 0 var(--m) 24px; }
.live-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.live-head h2 { margin: 0; font-size: var(--s3); font-weight: 600; letter-spacing: -.01em; }
.live-head p { margin: 0; max-width: 52ch; color: var(--muted); font-size: var(--s1); }
.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.live-cam { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--surface); }
.live-cam img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s var(--ease); }
.live-cam img.loading { opacity: 0; }
.live-cam figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(6,8,10,.88), rgba(6,8,10,0));
  font-size: var(--s1); line-height: 1.35; color: var(--ink);
}
.live-cam figcaption b { display: flex; align-items: center; font-weight: 600; }
.live-cam figcaption span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-cam .dot { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--muted); vertical-align: 1px; }
.live-cam .dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; }
.live-cam.skel { background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%) 0 0 / 200% 100%; animation: live-skel 1.4s linear infinite; }
@keyframes live-skel { to { background-position: -200% 0; } }
@media (max-width: 900px) { .live-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .live-cam.skel { animation: none; } }
.live-off { margin: 0; color: var(--muted); }

/* ---------- what you can do: six verbs set large, no cards ---------- */
.verbs { padding: 40px var(--m) 160px; background: var(--surface); }
.verbs h2 { margin: 0 0 56px; font-size: var(--s3); font-weight: 600; letter-spacing: -.01em; }
.verb-list { margin: 0; display: grid; gap: 22px; }
.verb-list div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; }
.verb-list dt { font-size: clamp(48px, 6.6vw, 104px); font-weight: 600; line-height: .9; letter-spacing: -.04em; }
.verb-list dd { margin: 0; max-width: 36ch; font-size: var(--s2); line-height: 1.5; color: var(--ink); }
.live-now { max-width: 60ch; font-size: var(--s2) !important; line-height: 1.55; color: var(--ink) !important; }
.live-now span { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 640px) {
  .verbs { padding: 32px 20px 96px; }
  .verb-list { gap: 32px; }
  .verb-list div { grid-template-columns: 1fr; gap: 8px; }
  .verb-list dt { font-size: 64px; }
}
