/* MODE3 site v4 · ROUND A style frames · shared
   Colour = state. The page is the time of day, never just "dark".
   One signature motion: the diagonal stroke that re-colours the page. */
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --prime: #9fe6d3; --perform: #ffd400; --unwind: #b07acd;
  /* the five skies */
  --sky-wake: #10151d;  --ink-wake: #d9dde5;
  --sky-prime: #0d2420; --ink-prime: #e6f4ef;
  --sky-perform: #f1eee7; --ink-perform: #0b0d10;
  --sky-unwind: #24132d; --ink-unwind: #efe7f3;
  --sky-night: #050507;  --ink-night: #cfd0d6;
  --bg: var(--sky-wake); --ink: var(--ink-wake); --accent: #8fa4bd;
  --ink-2: color-mix(in srgb, var(--ink) 72%, transparent);
  --ink-3: color-mix(in srgb, var(--ink) 50%, transparent);
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --t-hero: clamp(2.3rem, 6.4vw, 5.2rem);
  --t-clock: clamp(5.5rem, 22vw, 17rem);
  --t-lead: clamp(1rem, 1.5vw, 1.2rem);
  --t-micro: 0.72rem;
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Montserrat", system-ui, sans-serif; font-weight: 500;
  background: var(--bg); color: var(--ink); line-height: 1.45; overflow-x: hidden;
  transition: background-color 600ms var(--e-out), color 600ms var(--e-out);
}
body.lenis { height: auto; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.micro { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- header: brand · live clock + state · Reserve ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  pointer-events: none; mix-blend-mode: normal;
}
.hud > * { pointer-events: auto; }
.hud-brand { font-weight: 800; letter-spacing: 0.08em; text-decoration: none; font-size: 1rem; }
.hud-brand sup { font-size: 0.6em; }
.hud-chip {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.55em 0.95em; border-radius: 100px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--ink);
  transition: background-color 250ms, color 250ms, border-color 250ms;
}
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: background 300ms, box-shadow 300ms; }
.hud-reserve {
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  padding: 0.6em 1em; border-radius: 100px; border: 1px solid var(--line);
}
@media (max-width: 720px) { .hud-reserve { display: none; } }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.6rem; border-radius: 4px; text-decoration: none;
  font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  transition: filter 200ms, transform 200ms var(--e-out);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-secondary { border: 1px solid var(--line); color: var(--ink); }
.btn-primary:hover, .btn-secondary:hover { filter: brightness(1.15); }
@media (max-width: 720px) { .cta-row { flex-direction: column; } .btn-primary, .btn-secondary { width: 100%; } }

/* ---------- split text (React Bits SplitText, ported): words rise 40px → 0, 50 ms stagger, 1.25 s ---------- */
.st { display: inline-block; }
.st .wd { display: inline-block; opacity: 0; transform: translateY(0.7em); will-change: transform, opacity;
  transition: opacity 700ms var(--e-out), transform 900ms var(--e-out); transition-delay: calc(var(--i) * 50ms); }
.st.in .wd { opacity: 1; transform: none; }

/* ---------- rolling clock digits (odometer) ---------- */
.clock { display: inline-flex; align-items: baseline; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dg { position: relative; display: inline-block; height: 1em; width: 0.62em; overflow: hidden; }
.dg-roll { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; will-change: transform;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.25, 1); }
.dg-roll span { display: block; height: 1em; line-height: 1; text-align: center; }
.colon { display: inline-block; width: 0.34em; text-align: center; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- THE DAY: one pinned scene ---------- */
.day { position: relative; height: 320svh; }
.day-stick { position: sticky; top: 0; height: 100svh; overflow: clip; }
.day-scene { position: absolute; inset: 0; }
.day-copy { position: absolute; left: clamp(1rem, 6vw, 5rem); bottom: clamp(6rem, 14vh, 9rem); max-width: 34ch; }
.day-state { font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; min-height: 1em; }
.day-line { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
.day-line .ln { display: block; opacity: 0; transform: translateY(0.4em); transition: opacity 500ms var(--e-out), transform 700ms var(--e-out); }
.day-line .ln.on { opacity: 1; transform: none; }
.day-clock { position: absolute; left: clamp(1rem, 6vw, 5rem); top: clamp(5.5rem, 14vh, 9rem); font-size: var(--t-clock); }

/* the stroke: the brand's diagonal, as light */
.stroke {
  position: absolute; top: -20%; height: 140%; width: clamp(60px, 9vw, 150px); left: 0;
  transform: translateX(-140%) skewX(-22deg); will-change: transform;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--stroke-c, #fff) 92%, transparent) 45%, #fff 50%, color-mix(in srgb, var(--stroke-c, #fff) 92%, transparent) 55%, transparent);
  filter: blur(0.6px); opacity: 0; pointer-events: none; z-index: 6;
  box-shadow: 0 0 60px 10px color-mix(in srgb, var(--stroke-c, #fff) 40%, transparent);
}

/* the hold-to-switch ring */
.hold {
  position: absolute; left: 50%; bottom: clamp(1.4rem, 4vh, 2.4rem); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.7em; padding: 0.7em 1.1em 0.7em 0.8em; border-radius: 100px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 72%, transparent); color: var(--ink);
  font: inherit; font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; z-index: 8;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hold svg { width: 22px; height: 22px; }
.hold .ring-track { fill: none; stroke: var(--line); stroke-width: 3; }
.hold .ring-fill { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--hold, 0)); transform: rotate(-90deg); transform-origin: 50% 50%; }
.hold.done { display: none; }

/* bottles revealed through a diagonal mask */
.bottle { position: absolute; right: clamp(0.5rem, 8vw, 10rem); bottom: 8svh; height: min(62svh, 560px); width: auto; opacity: 0;
  clip-path: polygon(-40% 0, -40% 0, -10% 100%, -10% 100%); filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45)); will-change: clip-path, transform; }
.bottle.on { opacity: 1; }
@media (max-width: 720px) { .bottle { right: -4%; bottom: 20svh; height: 42svh; } .day-copy { bottom: 7rem; max-width: 24ch; } }

/* ---------- reduced motion: static skies, no stroke, no WebGL ---------- */
@media (prefers-reduced-motion: reduce) {
  .st .wd { opacity: 1; transform: none; transition: none; }
  .dg-roll { transition: none; }
  .stroke, .hold { display: none; }
  .colon { animation: none; }
  .bottle { transition: none; }
}
.rm-note { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; font-size: var(--t-micro); letter-spacing: 0.14em; color: var(--ink-3); pointer-events: none; }
