/* TimeTickle website. Cream and dark like the app, Space Grotesk + Manrope, mint accents.
   Scroll scenes get --p (0 → 1) from site.js; everything degrades to static under
   prefers-reduced-motion. */

:root {
  --cream: #f6f1e7;
  --surface: #fffdf8;
  --surface-alt: #efe8da;
  --border: #e3daca;
  --ink: #1a1814;
  --dim: #5e574c;
  --mint: #3ddc97;
  --mint-ink: #0b7a52;
  --mint-soft: #ddf5ea;
  --on-mint: #062a1c;
  --warn: #b45309;
  --night: #0b0e13;
  --night-surface: #141922;
  --night-alt: #1c2330;
  --night-text: #eef2f6;
  --night-dim: #a3adbb;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.9, 0.1, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.hero,
.scene-widget {
  overflow-x: clip;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}
p {
  margin: 0;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-ink);
  margin-bottom: 18px;
}

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: grid;
  place-items: center;
  clip-path: inset(0 0 0 0);
  animation: curtain 0.9s var(--ease) 1.5s forwards;
}
.intro-mark {
  width: 120px;
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-t {
  stroke: var(--cream);
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw 0.7s var(--ease) 0.15s forwards;
}
.intro-tick {
  stroke: var(--mint);
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: draw 0.5s var(--ease) 0.75s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes curtain {
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}

/* ---------- Cursor (fine pointers only) ---------- */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--mint);
  pointer-events: none;
  z-index: 90;
  mix-blend-mode: multiply;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1));
  transition:
    transform 0.12s linear,
    width 0.25s var(--ease),
    height 0.25s var(--ease);
  display: none;
}
@media (pointer: fine) {
  .cursor {
    display: block;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  transition:
    background 0.4s,
    border-color 0.4s,
    color 0.4s;
}
.nav nav {
  display: flex;
  gap: 26px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav nav a {
  text-decoration: none;
  opacity: 0.75;
}
.nav nav a:hover {
  opacity: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-tile {
  fill: var(--ink);
  stroke: none;
}
.brand-t {
  stroke: var(--cream);
}
.brand-tick {
  stroke: var(--mint);
}
.nav-cta {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}
body.is-night .nav {
  background: color-mix(in srgb, var(--night-surface) 72%, transparent);
  border-color: color-mix(in srgb, var(--night-alt) 80%, transparent);
  color: var(--night-text);
}
body.is-night .nav-cta {
  background: var(--mint);
  color: var(--on-mint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.3s,
    color 0.3s;
  will-change: transform;
}
.btn-primary {
  background: var(--mint);
  color: var(--on-mint);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--mint) 80%, transparent);
}
.btn-ghost {
  border: 1.5px solid var(--ink);
}
.btn-xl {
  min-height: 64px;
  padding: 0 38px;
  font-size: 1.1rem;
}
.magnetic {
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.35s var(--spring);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 120px var(--gutter) 80px;
  max-width: 1240px;
  margin: 0 auto;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: -1;
  animation: float 14s ease-in-out infinite alternate;
}
.blob-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  top: -80px;
  right: -120px;
}
.blob-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #ffd7a8 0%, transparent 70%);
  bottom: -60px;
  left: -140px;
  animation-delay: -7s;
}
@keyframes float {
  to {
    transform: translate(-60px, 50px) scale(1.15);
  }
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image: radial-gradient(
    color-mix(in srgb, var(--ink) 18%, transparent) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}
.hero-title {
  font-size: clamp(3.2rem, 8.4vw, 7.4rem);
  font-weight: 700;
  margin: 0 0 26px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.12em;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease);
}
body.ready .hero-title .word {
  transform: none;
}
body.ready .hero-title .line:nth-child(2) .word {
  transition-delay: 0.08s;
}
body.ready .hero-title .line:nth-child(3) .word {
  transition-delay: 0.16s;
}
.rotator {
  display: inline-block;
  position: relative;
  min-width: 4.6em;
  height: 1.16em;
  overflow: hidden;
  vertical-align: top;
  color: var(--mint-ink);
  transform: translateY(110%);
  transition: transform 1.1s var(--ease) 0.12s;
}
body.ready .rotator {
  transform: none;
}
.rotator .rot {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.16;
  white-space: nowrap;
  transform: translateY(var(--ry, 100%));
  transition: transform 0.7s var(--ease);
}
.rotator .rot.on {
  --ry: 0%;
}
.rotator .rot.gone {
  --ry: -100%;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--dim);
  max-width: 34ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-actions.reveal {
  transition-delay: 0.3s;
}
.lede.reveal {
  transition-delay: 0.2s;
}

.hero-stage {
  position: relative;
  height: 640px;
  perspective: 1400px;
}
.phone {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 300px;
  height: 610px;
  border-radius: 46px;
  background: var(--ink);
  padding: 12px;
  box-shadow:
    0 60px 120px -40px rgba(26, 24, 20, 0.55),
    inset 0 0 0 2px #3a352c;
  transform: rotateY(var(--ty, -14deg)) rotateX(var(--tx, 6deg)) rotateZ(-2deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  opacity: 0;
  translate: 0 80px;
}
body.ready .phone {
  opacity: 1;
  translate: 0 0;
  transition:
    transform 0.6s var(--ease),
    opacity 1s var(--ease) 0.3s,
    translate 1.4s var(--ease) 0.3s;
}
.phone-screen {
  height: 100%;
  border-radius: 36px;
  background: var(--cream);
  padding: 34px 16px 16px;
  overflow: hidden;
}
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-day {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.app-date {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}
.ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(var(--mint) 0 50%, var(--surface-alt) 50% 100%);
  display: grid;
  place-items: center;
}
.ring span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}
.tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-alt);
  font-size: 0.68rem;
  font-weight: 700;
}
.tabs span {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  border-radius: 10px;
}
.tabs .on {
  background: var(--mint);
  color: var(--on-mint);
}
.row {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateX(40px);
}
body.ready .row {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--spring);
}
body.ready .r1 {
  transition-delay: 0.7s;
}
body.ready .r2 {
  transition-delay: 0.8s;
}
body.ready .r3 {
  transition-delay: 0.9s;
}
body.ready .r4 {
  transition-delay: 1s;
}
body.ready .r5 {
  transition-delay: 1.1s;
}
.row i {
  grid-row: span 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--mint-ink);
}
.row b {
  font-size: 0.82rem;
}
.row em {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--dim);
}
.row.late i {
  border-color: var(--warn);
}
.row.late em {
  color: var(--warn);
}
.row.done i {
  background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23062A1C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/14px no-repeat;
  border-color: var(--mint);
}
.row.done b {
  text-decoration: line-through;
  opacity: 0.5;
}
.chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 18px 40px -20px rgba(26, 24, 20, 0.35);
  white-space: nowrap;
  opacity: 0;
  animation: bob 6s ease-in-out infinite;
}
body.ready .chip {
  opacity: 1;
  transition: opacity 0.8s var(--ease) 1.3s;
}
.chip-a {
  top: 6px;
  left: -10px;
}
.chip-b {
  bottom: 52px;
  right: -40px;
  animation-delay: -2s;
  background: var(--mint);
  border-color: var(--mint);
  color: var(--on-mint);
}
.chip-c {
  bottom: 30px;
  left: 0;
  animation-delay: -4s;
}
@keyframes bob {
  50% {
    transform: translateY(-14px);
  }
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 26px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  translate: -50% 0;
  opacity: 0.5;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  60% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 22px 0;
  transform: rotate(-2deg) scale(1.04);
  margin: 40px 0;
}
.marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  animation: marquee 38s linear infinite;
}
.marquee-track span:nth-child(even) {
  color: var(--mint);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Pinned scenes ---------- */
[data-pin] {
  position: relative;
}
.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Done scene */
.scene-done {
  height: 320vh;
}
.scene-done .pin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 0 var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 14px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 16px 18px 16px 60px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--dim);
  opacity: 0.45;
  transform: scale(0.97);
  transition: all 0.5s var(--ease);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--ink);
}
.steps li.on {
  opacity: 1;
  color: var(--ink);
  transform: none;
  border-color: var(--mint);
  box-shadow: 0 20px 40px -26px rgba(11, 122, 82, 0.6);
}
.steps li.on::before {
  background: var(--mint);
  color: var(--on-mint);
}
.lock-screen {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
  height: min(640px, 84vh);
  border-radius: 46px;
  padding: min(70px, 8vh) 22px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, #2f6b56 0%, transparent 55%),
    radial-gradient(circle at 90% 80%, #6b4a2f 0%, transparent 50%), #12161d;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.6);
}
.ls-time {
  font-family: var(--display);
  font-size: 5.2rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.04em;
}
.ls-date {
  text-align: center;
  opacity: 0.8;
  font-weight: 600;
  margin-bottom: 40px;
}
.notif {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  transform: translateY(calc(-260px * (1 - var(--a, 0)))) scale(calc(0.9 + 0.1 * var(--a, 0)));
  opacity: var(--a, 0);
}
.notif-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dim);
}
.mini-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--ink);
  position: relative;
}
.mini-mark::after {
  content: '';
  position: absolute;
  inset: 4px 3px 5px 4px;
  border: solid var(--mint);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.notif-title {
  font-weight: 800;
  margin-top: 6px;
}
.notif-body {
  font-size: 0.9rem;
  color: var(--dim);
}
.notif-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--mint-ink);
}
.act {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--mint-soft);
}
.act-done {
  transition:
    transform 0.2s,
    background 0.2s;
}
.scene-done.tapped .act-done {
  background: var(--mint);
  color: var(--on-mint);
  transform: scale(0.94);
}
.notif-ok {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--on-mint);
  font-weight: 800;
  clip-path: circle(0% at 22% 82%);
  transition: clip-path 0.7s var(--ease);
}
.scene-done.done .notif-ok {
  clip-path: circle(150% at 22% 82%);
}
.tap {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  left: 38px;
  top: 0;
  opacity: 0;
  transform: translate(120px, 600px);
  transition:
    transform 0.9s var(--ease),
    opacity 0.4s;
}
.scene-done.aiming .tap {
  opacity: 1;
  transform: translate(10px, 432px);
}
.scene-done.tapped .tap {
  transform: translate(10px, 432px) scale(0.6);
  background: rgba(255, 255, 255, 0.5);
}
.scene-done.done .tap {
  opacity: 0;
}

/* Horizontal run */
.scene-run {
  height: 420vh;
}
.scene-run .pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.run-head {
  padding: 0 var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.run-track {
  display: flex;
  gap: 28px;
  padding: 0 var(--gutter);
  width: max-content;
  transform: translateX(calc(var(--p, 0) * (var(--run-max, 0px) * -1)));
  will-change: transform;
}
.card {
  width: min(420px, 82vw);
  flex: none;
  padding: 22px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  transform: rotate(var(--rot, 0deg)) translateY(var(--lift, 0));
  transition: transform 0.6s var(--spring);
}
.card:hover {
  --lift: -10px;
}
.card:nth-child(odd) {
  --rot: -1.2deg;
}
.card:nth-child(even) {
  --rot: 1.2deg;
}
.card h3 {
  font-size: 1.6rem;
  margin: 22px 0 10px;
}
.card p {
  color: var(--dim);
}
.card-art {
  height: 220px;
  border-radius: 22px;
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.run-progress {
  margin: 0 auto;
  width: min(420px, 60vw);
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.run-progress span {
  display: block;
  height: 100%;
  background: var(--mint);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
/* card arts */
.cal {
  display: grid;
  grid-template-columns: repeat(7, 26px);
  gap: 8px;
}
.cal span {
  height: 26px;
  border-radius: 8px;
  background: var(--surface);
}
.cal .hit {
  background: var(--mint);
  animation: pop 2.4s var(--spring) infinite;
}
.cal .hit:nth-child(3n) {
  animation-delay: 0.3s;
}
.cal .skip {
  background: repeating-linear-gradient(45deg, var(--border) 0 4px, var(--surface) 4px 8px);
}
.cal .end {
  background: var(--ink);
}
@keyframes pop {
  0%,
  60%,
  100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25);
  }
}
.contact {
  position: absolute;
  left: 22px;
  top: 30px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  display: grid;
  animation: drift 5s ease-in-out infinite;
}
.contact.c2 {
  left: auto;
  right: 26px;
  top: 74px;
  animation-delay: -2.5s;
}
.contact em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--dim);
}
.bday {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--on-mint);
  font-weight: 800;
  font-size: 0.9rem;
}
@keyframes drift {
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}
.plate {
  padding: 10px 22px;
  border-radius: 10px;
  background: #f4d03f;
  border: 3px solid #1a1814;
  font-family: 'Arial Narrow', var(--display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.06em;
}
.plate-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  animation: typing 4s steps(8) infinite;
  width: 8.2ch;
}
@keyframes typing {
  0% {
    width: 0;
  }
  45%,
  100% {
    width: 8.2ch;
  }
}
.dvla {
  position: absolute;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 6px 10px;
  align-items: baseline;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.85rem;
  animation: fadeup 4s var(--ease) infinite;
}
.dvla span {
  color: var(--dim);
}
@keyframes fadeup {
  0%,
  45% {
    opacity: 0;
    transform: translateY(10px);
  }
  60%,
  100% {
    opacity: 1;
    transform: none;
  }
}
.c-quiet .card-art {
  background: var(--night);
}
.moon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: -18px 10px 0 0 #fef3c7;
  translate: 12px -6px;
  animation: drift 6s ease-in-out infinite;
}
.zz {
  position: absolute;
  right: 36%;
  top: 30px;
  color: var(--night-text);
  font-family: var(--display);
  font-weight: 700;
}
.zz span {
  display: inline-block;
  animation: zz 3s ease-in-out infinite;
  opacity: 0;
}
.zz span:nth-child(2) {
  animation-delay: 0.5s;
  font-size: 1.3em;
}
.zz span:nth-child(3) {
  animation-delay: 1s;
  font-size: 1.6em;
}
@keyframes zz {
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(16px, -30px);
  }
}
.quiet-label {
  position: absolute;
  bottom: 22px;
  color: var(--night-dim);
  font-weight: 700;
}
.qa {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  font-weight: 700;
  width: 80%;
  display: flex;
  align-items: center;
}
.qa-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing2 5s steps(19) infinite;
  width: 19ch;
}
@keyframes typing2 {
  0% {
    width: 0;
  }
  40%,
  100% {
    width: 19ch;
  }
}
.caret {
  width: 2px;
  height: 1.2em;
  background: var(--mint-ink);
  margin-left: 2px;
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.qa-out {
  position: absolute;
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--on-mint);
  display: grid;
  animation: fadeup 5s var(--ease) infinite;
}
.qa-out em {
  font-style: normal;
  font-size: 0.85rem;
}
.c-sync .card-art {
  grid-template-columns: auto auto auto;
  gap: 18px;
  place-content: center;
}
.mini-phone {
  width: 70px;
  height: 130px;
  border-radius: 16px;
  background: var(--ink);
  padding: 22px 8px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.mini-phone span {
  height: 14px;
  border-radius: 5px;
  background: var(--cream);
  animation: syncrow 3s var(--ease) infinite;
}
.mini-phone.p2 span {
  animation-delay: 0.4s;
}
.mini-phone span:nth-child(2) {
  width: 70%;
}
@keyframes syncrow {
  0%,
  100% {
    background: var(--cream);
  }
  40% {
    background: var(--mint);
  }
}
.sync-arrows {
  font-size: 2rem;
  font-weight: 800;
  color: var(--mint-ink);
  animation: pop 3s var(--spring) infinite;
}

/* Night scene: a circle grows from the centre and turns the page dark. */
.scene-night {
  height: 260vh;
}
.night-wipe {
  position: absolute;
  inset: 0;
  background: var(--night);
  clip-path: circle(calc(var(--w, 0) * 75%) at 50% 50%);
}
.night-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 0 var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
  color: var(--night-text);
  opacity: calc((var(--w, 0) - 0.55) * 3);
  transform: translateY(calc((1 - min(1, var(--w, 0) * 1.4)) * 60px));
}
.night-copy .eyebrow {
  color: var(--mint);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 14px;
  color: var(--night-dim);
}
.ticks li {
  padding-left: 34px;
  position: relative;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23062A1C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/14px no-repeat;
}
.vault {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 24px;
}
.fp {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, var(--night-alt) 0%, var(--night-surface) 70%);
  box-shadow:
    0 0 0 1px var(--night-alt),
    0 0 80px -10px color-mix(in srgb, var(--mint) 40%, transparent);
  overflow: hidden;
}
.fp svg {
  width: 130px;
  fill: none;
  stroke: var(--night-dim);
  stroke-width: 4;
  stroke-linecap: round;
}
.fp svg path {
  stroke-dasharray: 160;
  stroke-dashoffset: calc(160 * (1 - var(--scan, 0)));
  stroke: var(--mint);
}
.scanline {
  position: absolute;
  left: 15%;
  right: 15%;
  height: 3px;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 0 0 20px var(--mint);
  top: calc(18% + var(--scan, 0) * 64%);
  opacity: calc(1 - var(--unlocked, 0));
}
.vault-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  position: relative;
  height: 1.4em;
  overflow: hidden;
  text-align: center;
  min-width: 10ch;
}
.vault-label span {
  display: block;
  transition: transform 0.6s var(--ease);
}
.vault-label .unlocked {
  color: var(--mint);
}
.scene-night.unlocked .vault-label span {
  transform: translateY(-100%);
}

/* Widget scene */
.scene-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 140px var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}
.widget-copy p:not(.eyebrow) {
  color: var(--dim);
  margin-top: 22px;
  max-width: 40ch;
  font-size: 1.1rem;
}
.home {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
  height: 600px;
  border-radius: 46px;
  overflow: hidden;
  box-shadow: 0 60px 120px -50px rgba(26, 24, 20, 0.5);
  transform: rotate(calc((var(--p, 0.5) - 0.5) * -10deg));
}
.wallpaper {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 30% 20%, #8fd9b6 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, #f2b880 0%, transparent 45%),
    linear-gradient(160deg, #2d3a4b, #12161d);
  transform: translateY(calc((var(--p, 0.5) - 0.5) * -60px)) scale(1.1);
}
.widget {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 60px;
  padding: 14px;
  border-radius: 26px;
  background: var(--surface);
  display: grid;
  gap: 8px;
}
.w-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.w-head b {
  font-family: var(--display);
  font-size: 1.2rem;
  display: block;
}
.w-head em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--dim);
  font-weight: 600;
}
.w-plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--on-mint);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.w-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-alt);
  overflow: hidden;
  max-height: 70px;
  transition:
    max-height 0.6s var(--ease),
    padding 0.6s var(--ease),
    opacity 0.4s,
    margin 0.6s;
}
.w-row i {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--mint-ink);
  transition: background 0.3s;
}
.w-row b {
  display: block;
  font-size: 0.88rem;
}
.w-row em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--dim);
}
.w-row em.late {
  color: var(--warn);
}
.w1 i {
  border-color: var(--warn);
}
.w-row.ticked i {
  background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23062A1C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/16px no-repeat;
  border-color: var(--mint);
}
.w-row.gone {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  margin-top: -8px;
}
.icons {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
}
.icons span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}
.icons .tt {
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M46 18v46c0 9 5 14 14 14h6' fill='none' stroke='%23F6F1E7' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M26 42 46 56 78 26' fill='none' stroke='%233DDC97' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/34px no-repeat;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 60%, transparent);
}

/* Facts */
.scene-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px var(--gutter) 120px;
  max-width: 1240px;
  margin: 0 auto;
}
.fact {
  padding: 30px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.fact b {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--mint-ink);
}
.fact span {
  display: block;
  margin-top: 12px;
  color: var(--dim);
}
.fact.reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.fact.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

/* CTA */
.scene-get {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--gutter);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  clip-path: inset(
    calc((1 - min(1, var(--p, 0) * 2)) * 12%) round calc((1 - min(1, var(--p, 0) * 2)) * 60px)
  );
}
.get-inner {
  display: grid;
  gap: 26px;
  justify-items: center;
}
.get-title {
  font-size: clamp(3rem, 9vw, 8.5rem);
}
.get-title span {
  display: block;
}
.get-title span:last-child {
  color: var(--mint);
  transform: translateX(calc((0.5 - var(--p, 0.5)) * 30%));
}
.get-title span:first-child {
  transform: translateX(calc((var(--p, 0.5) - 0.5) * 30%));
}
.scene-get p {
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  font-size: 1.2rem;
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px var(--gutter);
  background: var(--ink);
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  font-size: 0.9rem;
  border-top: 1px solid #2a2620;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}
.foot .brand-tile {
  fill: var(--cream);
}
.foot .brand-t {
  stroke: var(--ink);
}
.foot nav {
  display: flex;
  gap: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav nav,
  .scroll-hint {
    display: none;
  }
  .hero,
  .scene-done .pin,
  .night-inner,
  .scene-widget {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 110px;
    text-align: left;
  }
  .hero-stage {
    height: 560px;
  }
  .phone {
    width: 260px;
    height: 530px;
  }
  .chip-a {
    left: 0;
  }
  .chip-b {
    right: 0;
  }
  .scene-done .pin {
    gap: 20px;
    align-content: center;
  }
  .done-copy h2 {
    font-size: 2rem;
  }
  .steps {
    margin-top: 18px;
    gap: 8px;
  }
  .steps li {
    padding: 10px 12px 10px 52px;
    font-size: 0.92rem;
  }
  .lock-screen {
    height: 420px;
    padding: 30px 16px;
    border-radius: 34px;
  }
  .ls-time {
    font-size: 3.4rem;
  }
  .ls-date {
    margin-bottom: 16px;
  }
  .scene-done.aiming .tap,
  .scene-done.tapped .tap {
    transform: translate(4px, 236px);
  }
  .night-inner {
    gap: 30px;
    align-content: center;
  }
  .night-copy h2 {
    font-size: 2rem;
  }
  .fp {
    width: 150px;
    height: 150px;
  }
  .fp svg {
    width: 90px;
  }
  .scene-facts {
    grid-template-columns: 1fr;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion: everything visible, nothing moving ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .intro {
    display: none;
  }
  .reveal,
  .hero-title .word,
  .rotator,
  .phone,
  .row,
  .chip {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    translate: none !important;
  }
}
