/* LOOP website, version 3: "A day in the hotel".
   Layout: one hotel day told by scrolling. The sky behind the page follows the hour
   (drawn by script.js); a single phone stays on screen and shows LOOP at that hour.
   Night hours use LOOP's dark glass; day hours (07:00–17:45) switch to a light glass.
   Brand: cyan → indigo → purple from the app's logo ring; Outfit + JetBrains Mono. */

:root {
  /* night (default) */
  --ink: #050816;
  --text: #eef0ff;
  --muted: #b3b9de;
  --faint: #8a90b8;
  --accent: #67e8f9;
  --g1: #67e8f9; --g2: #818cf8; --g3: #c084fc;
  --glass-bg: rgba(4, 8, 28, 0.58);
  --glass-line: rgba(196, 181, 253, 0.26);
  --glass-ring: rgba(165, 180, 252, 0.14);
  --glass-shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.75);
  --chip-bg: rgba(255, 255, 255, 0.07);
  --nav-bg: rgba(5, 8, 22, 0.55);

  /* fixed (the phone is always LOOP's dark app) */
  --cyan: #67e8f9; --indigo: #818cf8; --violet: #a78bfa; --purple: #c084fc;
  --ok: #6ee7b7; --warn: #fcd34d; --bad: #fca5a5;
  --app-text: #eef0ff; --app-muted: #a9b0d6; --app-faint: #7d84ad;

  --grad: linear-gradient(100deg, var(--g1), var(--g2) 50%, var(--g3));
  --radius: 24px;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1160px;
  --pw: 250px; --ph: 510px; --ps: 1; /* phone width, height, scale */
  color-scheme: dark;
}

:root[data-sky="day"] {
  --text: #0e1236;
  --muted: #3e4570;
  --faint: #5c6390;
  --accent: #4f46e5;
  --g1: #0e7490; --g2: #4f46e5; --g3: #9333ea;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(99, 102, 241, 0.24);
  --glass-ring: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 24px 60px -32px rgba(30, 41, 99, 0.45);
  --chip-bg: rgba(79, 70, 229, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color 0.6s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* the two logos: white at night, navy by day */
.logo-day { display: none !important; }
:root[data-sky="day"] .logo-day { display: block !important; }
:root[data-sky="day"] .logo-night { display: none !important; }

/* ---------- Sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.sky-cosmos {
  position: absolute; inset: -12px;
  background: url("assets/bg-cosmos.webp") center / cover no-repeat;
  filter: blur(2px);
  opacity: 1;
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: 0 0 0 1px var(--glass-ring), var(--glass-shadow);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(34px) saturate(150%);
  backdrop-filter: blur(34px) saturate(150%);
  transition: background-color 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-glow {
  color: #fff;
  background: linear-gradient(100deg, #0ea5c6, #6366f1 50%, #a855f7);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(168, 85, 247, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-glass {
  color: var(--text);
  background: var(--chip-bg);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.btn-glass:hover { transform: translateY(-2px); }
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  border-bottom: 1px solid var(--glass-line);
  transition: background-color 0.7s ease;
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.clock {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 14px; color: var(--text);
  background: var(--chip-bg); border: 1px solid var(--glass-line);
}
.clock-icon { width: 12px; height: 12px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px #ffb84d; flex: none; }
.clock-icon.moon { background: transparent; box-shadow: inset -4px -1px 0 0 #e9e7ff; transform: rotate(-20deg); }

/* ---------- Hero chip (shared) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 13.5px; color: var(--muted);
  background: var(--glass-bg); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.dot, .live-pill i, .ld-now, .sync i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(110, 231, 183, 0); } }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* the day dial */
.dial { position: relative; width: min(760px, 100%); margin-top: 18px; aspect-ratio: 720 / 230; max-width: 100%; }
.dial-arc { position: absolute; inset: 0 0 auto; width: 100%; height: auto; overflow: visible; }
.dial-path { fill: none; stroke: url(#arcGrad); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: 0.9; }
.dial-horizon { stroke: var(--glass-line); stroke-width: 1; }
.dial-stops { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.dial-stop { position: absolute; transform: translate(-50%, -50%); }
.dial-stop a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--text);
}
.dial-stop .pt {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--glass-bg); border: 2px solid var(--accent);
  box-shadow: 0 0 14px -2px var(--accent);
  transition: transform 0.2s ease, background 0.2s ease;
}
.dial-stop a:hover .pt { transform: scale(1.35); background: var(--accent); }
.dial-stop .t { font: 500 12px/1 var(--mono); }
.dial-stop .n { font-size: 11.5px; color: var(--muted); white-space: nowrap; line-height: 1.1; }
.dial-stop.below a { flex-direction: column-reverse; }

/* ---------- The day ---------- */
.day { padding-block: 30px 40px; }
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--pw) * var(--ps) + 40px); gap: 48px; align-items: start; }
.chapters { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
.device-col { grid-column: 2; grid-row: 1; height: 100%; }
.device-sticky {
  position: sticky; top: max(84px, calc(50vh - (var(--ph) * var(--ps)) / 2 - 40px));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hour { min-height: 92vh; display: flex; align-items: center; padding-block: 24px; }
.hour:first-child { min-height: 80vh; }
.hour-card { padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; max-width: 600px; width: 100%; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1), opacity 0.6s ease, background-color 0.7s ease, border-color 0.7s ease; opacity: 0.72; transform: scale(0.97); }
.hour.is-active .hour-card { opacity: 1; transform: none; }
.hour-time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.hh {
  font-size: clamp(3.2rem, 7vw, 5.2rem); font-weight: 200; line-height: 0.95; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hour-when { font: 500 12.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hour-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.hour-card > p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font: 400 12.5px/1 var(--mono); padding: 8px 11px; border-radius: 999px; color: var(--text); background: var(--chip-bg); border: 1px solid var(--glass-line); }

/* phone */
.device-frame { width: calc(var(--pw) * var(--ps)); height: calc(var(--ph) * var(--ps)); flex: none; }
.phone {
  position: relative; width: var(--pw); height: var(--ph);
  transform: scale(var(--ps)); transform-origin: top left;
  border-radius: 40px; padding: 10px;
  color: var(--app-text);
  background: linear-gradient(160deg, rgba(30, 27, 75, 0.94), rgba(2, 6, 23, 0.96) 55%, rgba(46, 16, 101, 0.94));
  border: 1px solid rgba(196, 181, 253, 0.38);
  box-shadow: 0 0 0 1px rgba(165, 180, 252, 0.12), 0 40px 70px -24px rgba(0, 0, 0, 0.7), 0 0 60px -12px rgba(129, 140, 248, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.phone::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.05));
}
.status { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 8px; font-size: 10.5px; color: var(--app-muted); }
.island { width: 64px; height: 18px; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.screens { position: relative; height: calc(100% - 32px); border-radius: 30px; overflow: hidden; background: rgba(2, 6, 23, 0.6); border: 1px solid rgba(196, 181, 253, 0.16); }
.screen {
  position: absolute; inset: 0; padding: 14px 12px; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 12px; line-height: 1.35; text-align: left;
  opacity: 0; transform: translateY(18px) scale(0.98); visibility: hidden;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.2, .8, .2, 1), visibility 0s linear 0.55s;
}
.screen.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.app-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14.5px; }
.pill, .live-pill {
  font: 500 10px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 99px; color: #e0e7ff;
  background: rgba(129, 140, 248, 0.2); border: 1px solid rgba(165, 180, 252, 0.3);
  display: inline-flex; align-items: center; gap: 6px;
}
.live-pill { color: var(--ok); background: rgba(110, 231, 183, 0.1); border-color: rgba(110, 231, 183, 0.3); }
.live-pill i { width: 6px; height: 6px; }
.muted { color: var(--app-faint); font-size: 11px; font-weight: 400; }
.tabs { display: flex; gap: 6px; }
.tabs span { flex: 1; text-align: center; padding: 6px 0; border-radius: 10px; font-size: 10.5px; color: var(--app-muted); background: rgba(255, 255, 255, 0.04); }
.tabs span.on { color: #fff; background: rgba(129, 140, 248, 0.25); box-shadow: inset 0 0 0 1px rgba(165, 180, 252, 0.35); }
.tabs b { font-family: var(--mono); font-weight: 500; }

.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.feed li {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(196, 181, 253, 0.13);
  animation: slideIn 0.6s cubic-bezier(.2, .8, .2, 1);
}
.feed li.fresh { border-color: rgba(103, 232, 249, 0.55); box-shadow: 0 0 18px -6px rgba(103, 232, 249, 0.7); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px) scale(0.97); } to { opacity: 1; transform: none; } }
.feed .tx { flex: 1; min-width: 0; }
.feed b { display: block; font-weight: 600; font-size: 12px; }
.feed small { display: block; color: var(--app-muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-sm li { padding: 7px 9px; }
.tag { font: 500 9.5px/1 var(--mono); padding: 5px 7px; border-radius: 8px; white-space: nowrap; }
.t-new { color: #a5f3fc; background: rgba(103, 232, 249, 0.14); }
.t-prog { color: #c7d2fe; background: rgba(129, 140, 248, 0.2); }
.t-pend { color: var(--warn); background: rgba(252, 211, 77, 0.12); }
.t-done { color: var(--ok); background: rgba(110, 231, 183, 0.12); }
.t-hot { color: var(--bad); background: rgba(252, 165, 165, 0.14); }
.nd { width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); flex: none; box-shadow: 0 0 10px currentColor; color: var(--indigo); }
.nd-red { background: var(--bad); color: var(--bad); }
.nd-green { background: var(--ok); color: var(--ok); }
.nd-amber { background: var(--warn); color: var(--warn); }

.gauge { position: relative; width: 120px; height: 120px; margin: 4px auto 2px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 9; }
.g-val { fill: none; stroke: var(--cyan); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.2s ease; filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.7)); }
.g-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-num b { font-size: 30px; font-weight: 500; line-height: 1; }
.g-num small { color: var(--app-muted); font-size: 10px; margin-top: 3px; }

.paper { position: relative; padding: 10px; border-radius: 14px; background: rgba(238, 240, 255, 0.94); color: #1e1b4b; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.paper-row { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; }
.paper-row span { flex: 1; }
.paper-row i { width: 15px; height: 15px; border: 1.5px solid #6366f1; border-radius: 4px; position: relative; }
.paper-row i.on::after { content: "✓"; position: absolute; inset: -3px 0 0 1px; font-style: normal; font-weight: 700; color: #4338ca; font-size: 13px; }
.paper-row i.hit { background: rgba(34, 211, 238, 0.35); box-shadow: 0 0 8px rgba(34, 211, 238, 0.9); }
.scanline { position: absolute; left: 0; right: 0; height: 30px; top: -30px; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.55), transparent); animation: scan 2.6s linear infinite; }
@keyframes scan { to { top: 100%; } }
.scan-ok { color: var(--ok); font-size: 11px; }
.score, .kpi { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(196, 181, 253, 0.13); display: flex; align-items: baseline; justify-content: space-between; }
.score small, .kpi small { color: var(--app-muted); font-size: 10.5px; }
.score b { font-size: 24px; font-weight: 500; }

.oracle { padding: 12px; border-radius: 16px; background: linear-gradient(160deg, rgba(129, 140, 248, 0.18), rgba(192, 132, 252, 0.08)); border: 1px solid rgba(196, 181, 253, 0.3); display: flex; flex-direction: column; gap: 7px; min-height: 250px; }
.o-tag { font-size: 9.5px; color: var(--cyan); letter-spacing: 0.08em; }
.o-title { font-weight: 600; font-size: 14px; line-height: 1.25; min-height: 36px; }
.o-text { color: var(--app-muted); font-size: 11.5px; min-height: 30px; }
.o-do { margin-top: auto; padding: 9px 10px; border-radius: 12px; background: rgba(2, 6, 23, 0.55); border: 1px solid rgba(103, 232, 249, 0.3); font-size: 11.5px; }
.o-do b { display: block; color: var(--cyan); font: 500 9.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.caret { display: inline-block; width: 6px; height: 12px; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.o-actions { display: flex; gap: 8px; }
.o-actions span { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; font-size: 11px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(196, 181, 253, 0.18); }
.o-actions span:first-child { background: rgba(129, 140, 248, 0.28); }

.sync { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--app-muted); }
.sync i { width: 6px; height: 6px; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.kpi { flex-direction: column; align-items: flex-start; gap: 3px; }
.kpi b { font-size: 20px; font-weight: 500; }
.hbars { display: flex; flex-direction: column; gap: 9px; padding: 4px 2px; }
.hbar { display: grid; grid-template-columns: 66px 1fr; align-items: center; gap: 8px; font-size: 10.5px; color: var(--app-muted); }
.hbar i { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); position: relative; overflow: hidden; }
.hbar i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(100deg, var(--cyan), var(--indigo) 50%, var(--purple)); transition: width 1.2s ease; box-shadow: 0 0 10px rgba(129, 140, 248, 0.6); }
.spark { margin-top: auto; height: 80px; display: flex; align-items: flex-end; gap: 4px; }
.spark span { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--violet), rgba(129, 140, 248, 0.15)); height: var(--h); transition: height 1s ease; }

.field { padding: 9px 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(196, 181, 253, 0.13); min-height: 50px; }
.field small { display: block; color: var(--app-muted); font-size: 10px; }
.field b { font-weight: 500; font-size: 12.5px; }
.field.typing { border-color: rgba(103, 232, 249, 0.55); }
.send { margin-top: auto; text-align: center; padding: 12px; border-radius: 14px; font-weight: 600; background: linear-gradient(100deg, #22d3ee, #6366f1 50%, #a855f7); transition: transform 0.2s, filter 0.3s; }
.send.pressed { transform: scale(0.96); filter: brightness(1.3); }
.send.sent { background: rgba(110, 231, 183, 0.18); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.4); }

/* under the phone */
.device-meta { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.device-caption {
  font: 500 13px var(--mono); color: var(--text); text-align: center;
  padding: 7px 14px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: background-color 0.7s ease;
}
.rail { position: relative; display: flex; justify-content: space-between; width: calc(var(--pw) * var(--ps)); padding: 6px 2px; }
.rail::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; transform: translateY(-50%); background: var(--glass-line); border-radius: 2px; }
.rail-fill { position: absolute; left: 8px; top: 50%; height: 2px; transform: translateY(-50%); background: var(--grad); border-radius: 2px; width: 0; transition: width 0.4s ease; }
.rail button {
  position: relative; width: 16px; height: 16px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--glass-bg); border: 2px solid var(--glass-line);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.rail button.done { border-color: var(--accent); }
.rail button.on { border-color: var(--accent); background: var(--accent); transform: scale(1.2); box-shadow: 0 0 12px var(--accent); }
.rail button::after { content: ""; position: absolute; inset: -14px; } /* bigger tap area */
.device-note { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); text-align: center; }

/* ---------- Midnight ---------- */
.midnight { padding-block: 60px 20px; text-align: center; }
.midnight .eyebrow { margin-bottom: 18px; }
.closing { font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; max-width: 900px; margin-inline: auto; text-wrap: balance; }
.ticker {
  margin-top: 48px; overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--glass-line);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; gap: 44px; padding-block: 14px; animation: marquee 70s linear infinite; font: 400 13px var(--mono); color: var(--muted); }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; }
.ticker-track em { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 48px 24px; text-align: left; }
.num { padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.num strong { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 500; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.num span { color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding-block: 110px 20px; }
.section-head { max-width: 760px; margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.head-glass { padding: 30px 32px; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 64ch; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.chapter { padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.ch-n { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.chapter h3 { font-size: 1.2rem; }
.chapter p { color: var(--muted); font-size: 15.5px; }
.quote { margin: 32px auto 0; max-width: 860px; padding: 34px 38px; text-align: center; }
.quote p { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 400; line-height: 1.35; letter-spacing: -0.01em; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.f-wide { grid-column: span 2; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(34, 211, 238, 0.28), rgba(99, 102, 241, 0.32), rgba(168, 85, 247, 0.32)); border: 1px solid var(--glass-line); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: 15.5px; }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lane { display: flex; flex-direction: column; gap: 14px; }
.lane-head {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
  padding: 10px 14px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-line); align-self: flex-start;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.ld { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ld-next { background: var(--indigo); box-shadow: 0 0 12px var(--indigo); }
.ld-far { background: transparent; border: 1.5px dashed var(--purple); }
.rm { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.rm h3 { font-size: 1.08rem; }
.rm p { color: var(--muted); font-size: 15px; }
.rm-far { border-style: dashed; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font-size: 2.2rem; font-weight: 500; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: 15.5px; }

#contact { padding-bottom: 120px; }
.contact { padding: 52px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.contact-logo { width: 150px; height: auto; }
.contact h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.contact .hero-cta { margin-top: 10px; }
.contact-facts { justify-content: center; }
.contact-note { color: var(--faint); font-size: 14px; user-select: all; }

.footer { border-top: 1px solid var(--glass-line); background: var(--nav-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.footer-inner { display: flex; align-items: center; gap: 20px; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--faint); flex-wrap: wrap; }
.footer-inner img { height: 26px; width: auto; }
.footer-inner a { margin-left: auto; text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* ---------- Hero "escalator" ----------
   Text on the left; real LOOP screens ride a slanted path from small at the back-left
   (behind the text) to big at the front-right. The section is tall and its inside stays
   pinned while the page scrolls, so scrolling moves the screens. Positions: script.js. */
.esc { position: relative; margin-top: -68px; height: calc(100vh + var(--esc-steps, 4) * 55vh); }
.esc-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.esc-pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 620px at 72% 46%, rgba(99, 102, 241, 0.28), transparent 70%); }
.esc-pin::after { content: ""; position: absolute; inset: 0; z-index: 15; pointer-events: none; background: linear-gradient(90deg, rgba(5, 8, 22, 0.94) 0%, rgba(5, 8, 22, 0.8) 30%, rgba(5, 8, 22, 0.22) 50%, rgba(5, 8, 22, 0) 60%); }
.esc-stage { position: absolute; inset: 0; perspective: 1800px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.esc-stage.dragging { cursor: grabbing; }
.esc-card {
  position: absolute; left: 0; top: 0; width: var(--fw, 600px); aspect-ratio: 1600 / 998; padding: 0;
  border: 1px solid rgba(165, 180, 252, 0.3); border-radius: 16px; overflow: hidden; background: #0b1030;
  cursor: pointer; will-change: transform, opacity, filter;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.esc-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 35%); }
.esc-card img, .viewer-frame img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.esc-card.is-front { border-color: rgba(103, 232, 249, 0.75); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 60px -18px rgba(129, 140, 248, 0.8); }
.esc-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.esc-copy { position: relative; z-index: 20; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 68px; padding-bottom: 40px; pointer-events: none; }
.esc-copy > * { max-width: 520px; pointer-events: auto; }
.esc h1 { margin-top: 20px; font-size: clamp(2.4rem, 4.6vw, 4.1rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-shadow: 0 2px 30px rgba(5, 8, 22, 0.4); }
.esc .lead { margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.esc .hero-cta { justify-content: flex-start; margin-top: 28px; }
.proof-line { margin-top: 18px; font-size: 12.5px; letter-spacing: 0.06em; color: var(--faint); }
.esc-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; }
.esc-list button { display: flex; align-items: center; gap: 12px; padding: 4px 0; font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); background: none; border: 0; cursor: pointer; transition: color 0.25s; }
.esc-list button::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.5; transition: width 0.35s, opacity 0.35s; }
.esc-list button:hover { color: var(--text); }
.esc-list button.on { color: var(--cyan); }
.esc-list button.on::before { width: 42px; opacity: 1; background: var(--grad); }
.esc-hint { position: absolute; z-index: 20; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 22px; margin: 0; color: var(--faint); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.esc-label { position: absolute; z-index: 16; left: 0; top: 0; display: flex; flex-direction: column; gap: 3px; pointer-events: none; transition: opacity 0.3s; text-shadow: 0 1px 12px rgba(5, 8, 22, 0.95), 0 0 2px rgba(5, 8, 22, 0.9); }
.esc-label b { font-size: 1.2rem; font-weight: 600; color: var(--text); }
.esc-label span { font-size: 0.95rem; color: var(--muted); }

/* the day intro (moved out of the old hero) */
.day-intro { padding-block: 90px 10px; text-align: center; }
.day-intro-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.day-intro h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); letter-spacing: -0.03em; }
.day-intro .section-lead { max-width: 620px; }

/* ---------- Full-size view after a tap ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(5, 8, 22, 0.78); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  animation: vIn 0.3s ease; color: #eef0ff;
}
.viewer[hidden] { display: none; }
@keyframes vIn { from { opacity: 0; } to { opacity: 1; } }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.viewer-title { font-size: 1.3rem; font-weight: 600; }
.viewer-close, .nav-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: #eef0ff; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(196, 181, 253, 0.3); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.viewer-close:hover, .nav-btn:hover { border-color: #67e8f9; background: rgba(103, 232, 249, 0.12); }
.viewer-body { flex: 1; min-height: 0; display: flex; overflow: auto; padding: 10px 0; -webkit-overflow-scrolling: touch; }
.viewer-frame { position: relative; flex: none; margin: auto; border-radius: 16px; overflow: hidden; border: 1px solid rgba(103, 232, 249, 0.5); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(129, 140, 248, 0.8); animation: vZoom 0.45s cubic-bezier(.2, .75, .2, 1); }
@keyframes vZoom { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.viewer-nav { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 8px; }
.viewer-count { color: #b3b9de; font-size: 13px; letter-spacing: 0.1em; }
.viewer-tip { display: none; text-align: center; color: #b3b9de; font-size: 13px; padding-top: 6px; }
html.viewer-open { overflow: hidden; }

/* ---------- One stay ---------- */
.stay { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.stay-step { position: relative; padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 9px; opacity: 0.35; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1), background-color 0.7s ease, border-color 0.7s ease; }
.stay-step.lit { opacity: 1; transform: none; }
.stay-when { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.stay-step h3 { font-size: 1.2rem; }
.stay-step p { color: var(--muted); font-size: 15.5px; }
.tag-s { align-self: flex-start; margin-top: auto; font-size: 11.5px; padding: 6px 10px; border-radius: 999px; color: var(--text); background: var(--chip-bg); border: 1px solid var(--glass-line); }
.stay-step.lit .tag-s { border-color: rgba(110, 231, 183, 0.45); }
.stay-note { margin-top: 18px; text-align: center; color: var(--faint); font-size: 14px; }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-item { padding: 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.trust-item h3 { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; }
.trust-item h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 10px rgba(110, 231, 183, 0.8); }
.trust-item p { color: var(--muted); font-size: 15.5px; }

@media (max-width: 1080px) {
  .stay, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .esc-pin::after { background: linear-gradient(180deg, rgba(5, 8, 22, 0.96) 0%, rgba(5, 8, 22, 0.86) 40%, rgba(5, 8, 22, 0) 58%); }
  .esc-copy { justify-content: flex-start; padding-top: 84px; }
  .esc h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-top: 14px; }
  .esc .lead { font-size: 0.95rem; margin-top: 12px; }
  .esc .hero-cta { margin-top: 18px; gap: 10px; }
  .esc .hero-cta .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
  .proof-line { display: none; }
  .esc-list { display: none; }
  .esc-label b { font-size: 1rem; }
  .esc-label span { font-size: 0.82rem; }
  .esc-hint { left: 0; right: 0; text-align: center; bottom: 14px; }
}
@media (max-width: 800px) and (max-height: 700px) { .esc .lead { display: none; } }
@media (max-width: 720px) {
  .esc { margin-top: -60px; }
  .day-intro { padding-block: 60px 0; }
  .stay, .trust { grid-template-columns: 1fr; }
}
@media (max-width: 680px) and (orientation: portrait) { .viewer-tip { display: block; } }
@media (prefers-reduced-motion: reduce) {
  .stay-step { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap { grid-template-columns: 1fr; }
  .lane { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .lane-head { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --ps: 0.88; }
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
  .clock { margin-left: auto; }
  .day-grid { gap: 28px; }
  .hour-card { padding: 26px 24px; }
}

/* ---------- Phone: the phone sticks to the top, the hours scroll below it ---------- */
@media (max-width: 720px) {
  :root { --ps: 0.56; }
  body { font-size: 16px; }
  .nav-inner { height: 60px; }
  .brand img { height: 24px; }
  .btn-sm { padding: 0 14px; font-size: 13px; }
  .clock { padding: 6px 10px; font-size: 13px; }
  .dial-stop .n { display: none; }
  .day-grid { display: flex; flex-direction: column; gap: 0; }
  .device-col { order: -1; position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 5; height: auto; margin-inline: -20px; padding: 12px 20px 10px; }
  .device-col::before {
    content: ""; position: absolute; inset: 0;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
    mask-image: linear-gradient(180deg, #000 78%, transparent);
  }
  .device-sticky { position: relative; top: 0; flex-direction: row; justify-content: center; gap: 16px; }
  .device-meta { width: auto; align-items: flex-start; gap: 8px; max-width: 170px; }
  .device-caption { text-align: left; font-size: 12px; }
  .rail { display: none; }
  .device-note { text-align: left; font-size: 10px; }
  .hour { min-height: 70vh; align-items: flex-start; padding-block: 20px; }
  .hour:first-child { min-height: 60vh; padding-top: 16px; }
  .hour-card { padding: 22px 20px; gap: 12px; }
  .hh { font-size: 3rem; }
  .numbers { gap: 12px; padding-block: 36px 10px; }
  .num { padding: 20px 18px; }
  .num span { font-size: 14px; }
  .num strong { font-size: 1.8rem; }
  .section { padding-block: 80px 10px; }
  .head-glass { padding: 24px 20px; }
  .timeline, .features, .steps { grid-template-columns: 1fr; }
  .f-wide { grid-column: auto; }
  .quote { padding: 26px 22px; }
  .contact { padding: 40px 20px; }
  .footer-inner a { margin-left: 0; }
}
@media (max-width: 420px) {
  .nav .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- New: the guest's phone (guest portal) ---------- */
.new-badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 3px; color: #1E1B19; background: linear-gradient(100deg, #F3A68C, #EE7A5B); }
.hour-time .new-badge { margin-left: 10px; vertical-align: 1px; }
.gp-ask { padding: 10px 12px; border-radius: 16px 16px 16px 5px; background: linear-gradient(160deg, rgba(129, 140, 248, 0.22), rgba(192, 132, 252, 0.1)); border: 1px solid rgba(196, 181, 253, 0.3); min-height: 64px; }
.gp-ask small { display: block; color: var(--app-muted); font-size: 10px; margin-bottom: 3px; }
.gp-ask b { font-weight: 500; font-size: 12.5px; line-height: 1.35; }
.gp-steps { list-style: none; margin: 0; padding: 2px 2px 0; display: flex; flex-direction: column; gap: 0; }
.gp-steps li { position: relative; display: flex; gap: 10px; padding: 0 0 12px; opacity: .38; transition: opacity .5s ease; }
.gp-steps li::before { content: ""; position: absolute; left: 6px; top: 15px; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.12); }
.gp-steps li:last-child { padding-bottom: 0; }
.gp-steps li:last-child::before { display: none; }
.gp-steps li.on { opacity: 1; }
.gp-steps li.on::before { background: rgba(110, 231, 183, 0.45); }
.gp-steps i { width: 14px; height: 14px; flex: none; margin-top: 1px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); }
.gp-steps li.on i { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 10px rgba(110, 231, 183, 0.7); }
.gp-steps b { display: block; font-size: 12px; font-weight: 600; }
.gp-steps small { display: block; color: var(--app-muted); font-size: 10.5px; }
.gp-rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(196, 181, 253, 0.13); font-size: 11px; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.gp-rate.show { opacity: 1; transform: none; }
.gp-rate b { color: #fcd34d; font-size: 14px; letter-spacing: 1px; font-weight: 400; }
.gp-push { position: absolute; left: 10px; right: 10px; top: 8px; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 16px; background: rgba(30, 27, 25, 0.92); border: 1px solid rgba(238, 122, 91, 0.45); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .7); transform: translateY(-130%); opacity: 0; transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; }
.gp-push.show { transform: none; opacity: 1; }
.gp-push-ic { width: 26px; height: 26px; flex: none; border-radius: 8px; background: #1E1B19 url(assets/favicon.svg) center/cover; }
.gp-push b { display: block; font-size: 11.5px; font-weight: 600; }
.gp-push small { display: block; color: #d6cfc8; font-size: 10.5px; }
.gp-tabs { margin-top: auto; display: flex; justify-content: space-between; padding: 8px 6px 2px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 10px; color: var(--app-muted); }
.gp-tabs .on { color: #fff; font-weight: 600; }
