/* Velaphi — site styles
   One family (Archivo, variable width + weight). Width carries the voice:
   expanded for display, normal for reading. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2-variations"),
       url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --flame: #F05A28;      /* brand orange */
  --ember: #B93A10;      /* orange for text on light, pressed states */
  --night: #22163A;      /* Kalahari night: primary ink */
  --night-2: #2F2150;
  --sand: #F7D2BC;       /* red sand */
  --dune: #FFF3EA;       /* light warm surface */
  --paper: #FFFFFF;
  --live: #1E9E5E;       /* live tracking / success */
  --ink-soft: #5B5070;   /* secondary text on light */
  --line: #EADBD0;

  --wide: 125%;
  --semi: 112%;

  --r-lg: 32px;
  --r-md: 18px;
  --r-sm: 12px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(84px, 11vw, 148px);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--night);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.05; }

:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--night); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type scale ---------- */
.display {
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.6vw, 5.3rem);
  line-height: .94;
  letter-spacing: -.025em;
}
.h2 {
  font-stretch: var(--wide);
  font-weight: 780;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.h3 {
  font-stretch: var(--semi);
  font-weight: 720;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 34em; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--night); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em;
  border: 2px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: inherit; font-weight: 700; font-stretch: var(--semi); font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .18s, color .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-flame { --bg: var(--flame); --fg: #fff; }
.btn-flame:hover { --bg: var(--ember); }
.btn-night:hover { --bg: var(--night-2); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost-light { --bg: rgba(255,255,255,.85); --fg: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--night); }
.btn-white { --bg: #fff; --fg: var(--night); }
.btn-sm { min-height: 44px; padding: 0 1.25em; font-size: .95rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 80px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: inherit; flex: none; }
.brand svg { width: 128px; height: auto; }
.nav-links { display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 560; font-size: .98rem;
}
.nav-links a:hover { background: rgba(255,255,255,.16); }
.nav .btn { --bg: var(--night); --fg: #fff; }
.nav-toggle { display: none; }

.nav.is-solid, .nav.is-light {
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--night);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid .brand, .nav.is-light .brand { color: var(--flame); }
.nav.is-solid .nav-links a:hover, .nav.is-light .nav-links a:hover { background: var(--dune); }
.nav.is-solid .nav-links a[aria-current], .nav.is-light .nav-links a[aria-current] { color: var(--ember); }
.nav.is-solid :focus-visible, .nav.is-light :focus-visible { outline-color: var(--night); }

@media (max-width: 920px) {
  .nav-inner { height: 68px; gap: 12px; }
  .brand svg { width: 112px; }
  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.18); color: inherit; cursor: pointer;
  }
  .nav.is-solid .nav-toggle, .nav.is-light .nav-toggle { background: var(--dune); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
    transition: transform .25s var(--ease-out), opacity .2s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav[data-open="true"] .nav-toggle span { background: transparent; }
  .nav[data-open="true"] .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav[data-open="true"] .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; color: var(--night);
    padding: 12px var(--gutter) 24px;
    box-shadow: 0 24px 40px -24px rgba(34,22,58,.35);
    display: none;
  }
  .nav[data-open="true"] { background: #fff; color: var(--night); }
  .nav[data-open="true"] .brand { color: var(--flame); }
  .nav[data-open="true"] .nav-toggle { background: var(--dune); }
  .nav[data-open="true"] .nav-menu { display: block; }
  .nav-links { flex-direction: column; margin: 0 0 16px; }
  .nav-links a { padding: 14px 4px; border-radius: 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: none; }
  .nav-menu .btn { width: 100%; }
}
@media (min-width: 921px) {
  .nav-menu { display: flex; align-items: center; gap: 20px; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--flame); color: #fff;
  padding: 132px 0 0;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column;
}
.hero-map { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::after, .page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.09 0 0 0 0 0.23 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .22; mix-blend-mode: multiply;
}
.hero-map .street { stroke: #fff; stroke-opacity: .085; stroke-width: 18; fill: none; stroke-linecap: round; }
.hero-map .street-thin { stroke: #fff; stroke-opacity: .06; stroke-width: 7; fill: none; stroke-linecap: round; }
.hero-map .block { fill: #fff; fill-opacity: .035; }

.hero-grid {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 32px; align-items: center;
  padding-bottom: 48px;
}
.hero-copy { position: relative; z-index: 2; }

.hero h1 { margin-bottom: 26px; text-wrap: balance; }
.hero h1 .line { display: block; }
.hero .lede { color: var(--night); font-weight: 470; margin-bottom: 36px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phone + tracker live in one box so they stay together at every width */
.hero-visual { position: relative; z-index: 2; display: flex; justify-content: flex-end; }
.device {
  position: relative; width: min(100%, 330px); margin-right: 3%;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .5s var(--ease-out);
  transform-style: preserve-3d;
}
.device .tracker { translate: var(--shift-x, 0) var(--shift-y, 0); transition: translate .5s var(--ease-out); }
.phone {
  width: 100%; height: auto;
  transform: rotate(3deg);
  filter: drop-shadow(0 40px 50px rgba(34,22,58,.35));
}

/* Live tracker card */
.tracker {
  position: absolute; left: -64%; bottom: 11%; z-index: 3;
  width: 312px;
  background: #fff; color: var(--night);
  border-radius: 24px; padding: 20px 20px 18px;
  box-shadow: 0 30px 60px -20px rgba(34,22,58,.45), 0 2px 0 rgba(34,22,58,.04);
}
.tracker-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tracker-item { font-size: .9rem; color: var(--ink-soft); line-height: 1.3; }
.tracker-item strong { display: block; color: var(--night); font-size: 1rem; font-weight: 700; }
.live {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: .8rem; font-weight: 700; color: var(--live);
  background: #E4F5EC; padding: 5px 10px; border-radius: 999px;
}
.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 rgba(30,158,94,.5); animation: ping 1.6s infinite;
}
.tracker[data-step="3"] .live::before { animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(30,158,94,0); } 100% { box-shadow: 0 0 0 0 rgba(30,158,94,0); } }

.tracker-status {
  font-stretch: var(--wide); font-weight: 780; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.015em;
  margin: 0 0 4px; min-height: 1.1em;
}
.tracker-eta { font-size: .92rem; color: var(--ink-soft); margin: 0; min-height: 1.4em; }
.tracker-replay {
  margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 650; color: var(--ember); text-decoration: underline; text-underline-offset: 3px;
  display: none;
}
.tracker[data-step="3"] .tracker-replay { display: inline-block; }

/* Journey band: the route from restaurant to door */
.journey { position: relative; z-index: 2; padding: 0 0 58px; }
.journey-track { position: relative; height: 56px; margin: 0 22px; }
.journey-road {
  position: absolute; left: 0; right: 0; top: 50%; height: 14px; transform: translateY(-50%);
  border-radius: 14px; background: rgba(34,22,58,.2);
}
.journey-road::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 8px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M9 1l3 3-3 3' fill='none' stroke='white' stroke-opacity='.7' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left center / 24px 8px;
}
.journey-fill {
  position: absolute; left: 0; top: 50%; height: 14px; width: 0; transform: translateY(-50%);
  border-radius: 14px; background: #fff;
}
.journey-stops { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.journey-stops li {
  position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--flame); box-shadow: inset 0 0 0 4px #fff;
  transition: background-color .3s;
}
.journey-stops li.done { background: var(--night); }
.journey-stops li:nth-child(1) { left: 0; }
.journey-stops li:nth-child(2) { left: 33.333%; }
.journey-stops li:nth-child(3) { left: 66.666%; }
.journey-stops li:nth-child(4) { left: 100%; }
.rider {
  position: absolute; top: 50%; left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--night); color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.28), 0 14px 26px -8px rgba(34,22,58,.6);
}
.rider svg { width: 28px; height: 28px; }
.rider .rider-done { display: none; }
.rider.is-done { background: var(--live); animation: pop .5s var(--ease-out); }
.rider.is-done svg:first-child { display: none; }
.rider.is-done .rider-done { display: block; }
@keyframes pop { 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.confetti { position: absolute; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; z-index: 3; }
.journey-labels {
  position: relative; height: 1.5em; margin: 12px 22px 0; padding: 0; list-style: none;
  font-size: .95rem; font-weight: 600; color: var(--night);
}
.journey-labels li { position: absolute; top: -3px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; transition: color .3s, background-color .3s; }
.journey-labels li:nth-child(1) { left: -12px; }
.journey-labels li:nth-child(2) { left: 33.333%; transform: translateX(-50%); }
.journey-labels li:nth-child(3) { left: 66.666%; transform: translateX(-50%); }
.journey-labels li:nth-child(4) { right: -12px; }
.journey-labels { margin-left: 22px; margin-right: 22px; height: 1.7em; }
.journey-labels li.on { color: var(--night); }
.journey-labels li:not(.on):not(.now) { opacity: .78; }
.journey-labels li.now { color: var(--night); background: #fff; }

@media (max-width: 1180px) {
  .device { width: min(100%, 290px); }
  .tracker { left: -30%; bottom: 6%; width: 270px; }
}
@media (max-width: 920px) {
  .hero { padding-top: 112px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { justify-content: flex-end; padding-right: 4%; }
  .device { width: min(38%, 260px); margin-right: 4%; }
  .tracker { left: auto; right: 78%; bottom: 14%; width: min(300px, 50vw); }
}
@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 140px; }
  .hero-visual { padding-right: 0; }
  .device { position: static; width: 46%; margin-right: 3%; }
  .tracker { left: 0; right: auto; bottom: 9%; width: min(240px, 62vw); padding: 15px 15px 13px; border-radius: 20px; }
  .tracker-top { margin-bottom: 10px; }
  .tracker-item { font-size: .8rem; }
  .tracker-item strong { font-size: .9rem; }
  .tracker-status { font-size: 1.15rem; }
  .tracker-eta { font-size: .84rem; }
  .journey-labels { font-size: .76rem; }
  .journey-labels li { padding: 3px 8px; }
  .journey-labels li:nth-child(1) { left: -10px; }
  .journey-labels li:nth-child(4) { right: -10px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-dune { background: var(--dune); }
.on-dark { background: var(--night); color: #fff; }
.on-dark .muted { color: #C9C0DA; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h2 { margin-bottom: 20px; text-wrap: balance; }

/* Food band */
.band { position: relative; z-index: 3; margin: -34px 0 -10px; padding: 18px 0; overflow: hidden; }
.band-tape {
  background: var(--night); color: #fff;
  transform: rotate(-2deg); width: 110%; margin-left: -5%;
  padding: 18px 0; box-shadow: 0 22px 40px -24px rgba(34,22,58,.6);
}
.band-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: band 48s linear infinite; }
.band:hover .band-track { animation-play-state: paused; }
.band-item {
  font-stretch: var(--wide); font-weight: 820; font-size: clamp(1.6rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -.02em; white-space: nowrap;
}
.band-item:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.6px #fff; }
.band-sep { width: clamp(16px, 1.8vw, 24px); color: var(--flame); flex: none; }
@keyframes band { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band-track { animation: none; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; background: #2a2a2a; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.play {
  position: absolute; left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 22px 8px 8px; border: 0; border-radius: 999px;
  background: #fff; color: var(--night);
  font: inherit; font-weight: 700; font-stretch: var(--semi); cursor: pointer;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
  transition: transform .18s var(--ease-out);
}
.play:hover { transform: scale(1.03); }
.play-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--flame); color: #fff; }
.play-icon svg { width: 16px; margin-left: 3px; }
.about-copy .h2 { margin-bottom: 28px; text-wrap: balance; }
.about-copy p { max-width: 32em; }
/* Why */
.split-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.split-head .h2 { text-wrap: balance; }
.split-head .lede { margin: 0; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin: 0; padding: 0; list-style: none; }
.why-list li {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start;
  padding: 32px 0 36px; border-top: 1px solid var(--sand);
}
.why-icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--flame); color: #fff;
}
.why-list li:nth-child(2) .why-icon { background: var(--night); }
.why-list li:nth-child(3) .why-icon { background: var(--sand); color: var(--ember); }
.why-list li:nth-child(4) .why-icon { background: #fff; color: var(--flame); box-shadow: inset 0 0 0 2px var(--sand); }
.why-icon svg { width: 30px; height: 30px; }
.why-list .h3 { margin: 6px 0 10px; }
.why-list p { margin: 0; color: var(--ink-soft); max-width: 30em; }
@media (max-width: 860px) {
  .split-head { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .why-list li { gap: 20px; grid-template-columns: 56px 1fr; padding: 26px 0 28px; }
  .why-icon { width: 56px; height: 56px; border-radius: 18px; }
}

/* How it works */
.how { position: relative; overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 0 clamp(20px, 3vw, 44px) 0 0; }
.step + .step { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid rgba(255,255,255,.14); }
.step-num {
  display: block; margin-bottom: 26px;
  font-stretch: var(--wide); font-weight: 850; font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px var(--flame);
}
.step:first-child .step-num { color: var(--flame); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step .step-num, .step:first-child .step-num {
      color: transparent;
      animation: num-fill linear both; animation-timeline: view(); animation-range: entry 60% cover 42%;
    }
    @keyframes num-fill { to { color: var(--flame); } }
  }
}
.step .h3 { margin-bottom: 14px; }
.step ul { margin: 0; padding: 0; list-style: none; color: #D9D2E6; }
.step li { position: relative; padding-left: 22px; margin-bottom: 10px; line-height: 1.5; }
.step li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px;
  border-top: 2px solid var(--flame); border-right: 2px solid var(--flame); transform: rotate(45deg);
}
.step a { color: #fff; text-decoration-color: var(--flame); text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 650; }
.how-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(48px, 7vw, 80px); padding-top: 36px; border-top: 1px solid rgba(255,255,255,.14); }
.how-cta p { margin: 0; color: #D9D2E6; }
.pay-note { display: inline-flex; align-items: center; gap: 10px; }
.pay-note svg { width: 22px; color: var(--flame); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step, .step + .step { padding: 0; border: 0; }
  .step-num { margin-bottom: 18px; }
}

/* Work with us */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px);
  min-height: 440px; display: flex; flex-direction: column; justify-content: flex-start;
}
.work-card .h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.work-card p { max-width: 24em; margin-bottom: 28px; }
.work-card .btn { align-self: flex-start; }
.work-art { position: absolute; z-index: -1; pointer-events: none; transition: transform .6s var(--ease-out); }
.work-drive { background: var(--sand); }
.work-card p { max-width: min(24em, 58%); }
.work-drive .work-art { right: 5%; bottom: 0; width: clamp(140px, 14vw, 200px); }
.work-store { background: var(--night); color: #fff; }
.work-store p { color: #D9D2E6; }
.work-store .work-art { right: 7%; bottom: -48px; width: clamp(130px, 14vw, 200px); transform: rotate(-8deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work-drive:hover .work-art { transform: translateX(-18px); }
  .work-store:hover .work-art { transform: rotate(-3deg) translateY(-14px); }
}
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 0; padding-bottom: 0; }
  .work-card .h2, .work-card p { max-width: none; }
  .work-art { position: relative; right: auto; bottom: auto; align-self: flex-end; }
  .work-drive .work-art { width: 190px; margin: 20px 4% 0 0; }
  .work-store .work-art { width: 160px; margin: 12px 10% -36px 0; }
}

/* Devices band + contact */
.devices {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px);
  border-radius: var(--r-lg); background: var(--flame); color: #fff;
  margin-bottom: var(--section);
}
.devices .h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 10px; }
.devices p { margin: 0; color: var(--night); font-weight: 480; max-width: 36em; }
.devices-icons { display: flex; gap: 10px; color: var(--night); margin-bottom: 16px; }
.devices-icons svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .devices { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy .h2 { margin-bottom: 22px; }
.contact-copy p { max-width: 28em; }
.contact-points { margin: 32px 0 0; padding: 0; list-style: none; }
.contact-points li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--sand); }
.contact-points li:last-child { border-bottom: 1px solid var(--sand); }
.contact-points svg { flex: none; width: 22px; height: 22px; color: var(--flame); margin-top: 2px; }
.contact-points .muted { display: block; font-size: .92rem; line-height: 1.4; }
.contact-points a { display: inline-block; font-weight: 650; text-decoration-color: var(--flame); text-underline-offset: 3px; line-height: 1.5; }

@media (max-width: 920px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(34,22,58,.35);
  border: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 650; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; color: var(--night);
  background: var(--dune); border: 1.5px solid transparent; border-radius: var(--r-sm);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
textarea.input { min-height: 150px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2322163A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.input::placeholder { color: #9A8FA8; }
.input:hover { border-color: var(--sand); }
.input:focus { outline: none; background: #fff; border-color: var(--flame); box-shadow: 0 0 0 4px rgba(240,90,40,.18); }
.input:user-invalid { border-color: #C0262D; }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; background: var(--dune); border: 1.5px solid transparent; cursor: pointer;
  font-weight: 600; transition: background-color .15s, border-color .15s, color .15s;
}
.choice input:checked + span { background: var(--night); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--night); outline-offset: 3px; }
.choice span:hover { border-color: var(--sand); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-status { margin: 0; font-weight: 600; font-size: .98rem; }
.form-status[data-tone="ok"] { color: var(--live); }
.form-status[data-tone="error"] { color: #C0262D; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 16px 0 0; }
.form-note a { color: var(--ember); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--flame); color: #fff; padding: 148px 0 64px; position: relative; overflow: hidden; isolation: isolate; }
.page-head .hero-map { opacity: .9; }
.crumbs { display: flex; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; font-weight: 560; color: var(--night); }
.crumbs a { text-decoration-color: rgba(34,22,58,.4); text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.page-head .display { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 14ch; }
.page-head .lede { color: var(--night); margin: 22px 0 0; font-weight: 470; }

.join-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.join-aside { position: sticky; top: 110px; }
.join-visual { border-radius: var(--r-lg); background: var(--sand); overflow: hidden; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; justify-content: flex-end; margin-bottom: 28px; }
.join-visual img { width: auto; height: 86%; margin-right: 12%; }
.join-visual.store { background: var(--night); }
.join-visual.store img { height: 92%; margin: 0 16% -12% 0; transform: rotate(-6deg); }
.section-join { padding-top: clamp(56px, 7vw, 88px); }
.perks { margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.perks svg { flex: none; width: 20px; height: 20px; color: var(--flame); margin-top: 3px; }
.form-card .h3 { margin-bottom: 8px; }
.form-card > p { color: var(--ink-soft); margin-bottom: 26px; }
@media (max-width: 920px) {
  .join-grid { grid-template-columns: 1fr; }
  .join-aside { position: static; }
  .join-visual, .join-visual.store { aspect-ratio: 16 / 10; }
}

.doc-frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--dune); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #fff; padding: clamp(64px, 8vw, 104px) 0 32px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer .brand svg { width: 150px; }
.footer-tag { color: #C9C0DA; max-width: 22em; }
.footer h2 { font-size: 1rem; font-weight: 700; font-stretch: var(--semi); margin-bottom: 16px; color: #fff; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: #C9C0DA; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 3px; }
.footer .btn { color: var(--night); }
.footer .btn:hover { text-decoration: none; color: #fff; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.footer-top { margin-bottom: clamp(48px, 6vw, 72px); }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
}
.social a:hover { background: var(--flame); }
.social svg { width: 18px; height: 18px; }
.footer-mark { margin: 0 0 clamp(24px, 3vw, 36px); color: #34265C; }
.footer-mark svg { width: 100%; height: auto; display: block; stroke-width: 2.6; }
.footer-mark .mark-a { stroke: var(--flame); }
@media (prefers-reduced-motion: no-preference) {
  .js .footer-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out); }
  .js .footer-mark.is-drawn path { stroke-dashoffset: 0; }
  .js .footer-mark path:nth-child(2) { transition-delay: .08s; }
  .js .footer-mark path:nth-child(3) { transition-delay: .16s; }
  .js .footer-mark path:nth-child(4) { transition-delay: .24s; }
  .js .footer-mark path:nth-child(5) { transition-delay: .32s; }
  .js .footer-mark path:nth-child(6) { transition-delay: .40s; }
  .js .footer-mark path:nth-child(7) { transition-delay: .48s; }
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .9rem; color: #A99FBD;
}
@media (max-width: 920px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Mobile order bar ---------- */
.order-bar { display: none; }
@media (max-width: 760px) {
  .order-bar {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 7px 7px 7px 22px; border-radius: 999px;
    background: var(--night); color: #fff; font-weight: 650; font-stretch: var(--semi);
    box-shadow: 0 18px 40px -12px rgba(34,22,58,.55);
    transform: translateY(160%); transition: transform .4s var(--ease-out);
  }
  .order-bar.is-on { transform: none; }
  .order-bar .btn { min-height: 46px; }
}

::selection { background: var(--flame); color: #fff; }

/* ---------- Video dialog ---------- */
.video-dialog { width: min(1000px, 94vw); padding: 0; border: 0; border-radius: 20px; background: #000; overflow: visible; }
.video-dialog::backdrop { background: rgba(34,22,58,.82); }
.video-dialog .frame { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; }
.video-dialog iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close {
  position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--night); cursor: pointer; display: grid; place-items: center;
}
.video-close svg { width: 18px; }

/* ---------- Hero load sequence (the one orchestrated moment) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .lede, .js .hero-actions { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease-out) forwards; }
  .js .hero h1 .line, .js .page-head h1 { opacity: 0; animation: stretch-in 1.1s var(--ease-out) forwards; }
  @keyframes stretch-in {
    0% { opacity: 0; font-stretch: 62%; transform: translateX(-14px); }
    35% { opacity: 1; }
    100% { opacity: 1; font-stretch: 125%; transform: none; }
  }
  .js .hero h1 .line:nth-child(1) { animation-delay: .05s; }
  .js .hero h1 .line:nth-child(2) { animation-delay: .13s; }
  .js .hero h1 .line:nth-child(3) { animation-delay: .21s; }
  .js .hero .lede { animation-delay: .32s; }
  .js .hero-actions { animation-delay: .4s; }
  .js .phone { opacity: 0; animation: phone-in 1.1s .2s var(--ease-out) forwards; }
  .js .tracker { opacity: 0; animation: rise .8s .7s var(--ease-out) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes phone-in { from { opacity: 0; transform: translateY(24px) rotate(9deg) scale(.94); } to { opacity: 1; transform: rotate(3deg); } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 920px) {
  @keyframes phone-in { from { opacity: 0; transform: translateY(20px) rotate(9deg); } to { opacity: 1; transform: rotate(3deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 404 ---------- */
.page-404 { min-height: 100svh; display: flex; align-items: center; padding-bottom: 96px; }
.page-404 .wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.err-code {
  margin: 0 0 8px; font-stretch: var(--wide); font-weight: 850; line-height: .85; letter-spacing: -.04em;
  font-size: clamp(6rem, 20vw, 14rem); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.7);
}
.page-404 .lede { margin-bottom: 32px; }
