/* Site v3. One deliberate look: black, white type, full-bleed media, huge headlines, small mono labels.
   Layout: full-bleed bands; text on a 1280px measure; the product tour pins one screen and moves the camera. */
:root {
  --bg: #000000;
  --panel: #0b0c0e;
  --line: #22252a;
  --fg: #f5f5f3;
  --dim: #8b8f96;
  --faint: #4a4e55;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
[id] { scroll-margin-top: 80px; }

.wrap { max-width: calc(1280px + 40px); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.mega { font-size: clamp(52px, 10vw, 160px); line-height: 0.92; letter-spacing: -0.05em; }
h1 { font-size: clamp(44px, 7.4vw, 112px); line-height: 0.95; }
h2 { font-size: clamp(36px, 5.6vw, 80px); line-height: 1; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; max-width: 60ch; }
.sub { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; color: var(--dim); max-width: 46ch; }
.sub b { color: var(--fg); font-weight: 500; }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.dim { color: var(--dim); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }

/* Draft strip, header */
.draft { background: #15171a; font: 500 11px/1.5 var(--mono); letter-spacing: 0.06em; color: var(--dim); }
.draft .wrap { padding-block: 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.draft b { color: var(--fg); font-weight: 600; }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand svg.mark { width: 34px; height: 21px; }
.brand svg.word { width: 56px; height: 14px; }
.brand svg.lockup { width: 115px; height: 22px; }
.brand .lockup-still { display: none; align-items: center; gap: 10px; }
.foot-word .foot-svg { display: block; width: 100%; height: 100%; }
.word-still { display: none !important; }
@media (prefers-reduced-motion: reduce) { .word-anim { display: none !important; } .word-still { display: block !important; } .brand .lockup-still { display: inline-flex !important; } }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; color: var(--dim); padding: 8px 12px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 10px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gr) 20px var(--gl); display: grid;
}
.menu-panel a { padding: 14px 0; text-decoration: none; font: 500 24px/1.1 var(--display); letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .nav { display: none; } .menu { display: block; } .site-head .wrap { position: relative; } }

.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  font: 500 15px/1 var(--body); padding: 15px 22px; border: 1px solid rgba(255,255,255,0.35); background: transparent; color: var(--fg);
  border-radius: 0; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { border-color: var(--fg); }
.btn.solid { background: var(--fg); color: #000; border-color: var(--fg); }
.btn.solid:hover { background: #d9d9d6; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.btn .arrow { font-family: var(--mono); }
.nav .btn { margin-left: 10px; color: #000; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { text-decoration: none; border-bottom: 1px solid var(--faint); padding-bottom: 2px; font-size: 15px; }
.textlink:hover { border-color: var(--fg); }

/* Bands */
.band { padding-block: clamp(96px, 14vw, 200px); }
.band.tight { padding-block: clamp(64px, 8vw, 120px); }
.rule { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 22px; align-content: start; }
.stack-xl { display: grid; gap: clamp(48px, 7vw, 96px); }

/* Hero: full-bleed product film */
.hero { position: relative; min-height: min(88vh, 940px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.85) 78%, #000 100%),
              linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
}
.hero .wrap { width: 100%; padding-block: 0 clamp(40px, 6vw, 80px); display: grid; gap: 28px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }

.chip {
  position: absolute; z-index: 3; font: 600 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(0,0,0,0.75); color: #f5f5f3; border: 1px solid rgba(255,255,255,0.22); padding: 6px 8px;
}
.chip.tr { top: 12px; right: 12px; }
.chip.br { bottom: 12px; right: 12px; }
.hero .chip.tr { top: 16px; right: var(--gr); }
.vid-toggle {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; cursor: pointer;
  font: 600 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(0,0,0,0.75); color: #f5f5f3; border: 1px solid rgba(255,255,255,0.22); padding: 6px 8px;
}
.hero .vid-toggle { left: auto; bottom: auto; top: 16px; right: var(--gr); }

/* Statement that lights up as you read */
.statement { font: 500 clamp(32px, 5vw, 72px)/1.08 var(--display); letter-spacing: -0.035em; max-width: 18ch; text-wrap: balance; }
.statement .w { color: var(--faint); transition: color .4s; }
.statement .w.on { color: var(--fg); }

/* Highlights carousel */
.hl-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hl-pause { margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); background: none; border: 0; padding: 12px 0; cursor: pointer; }
.hl-pause:hover { color: var(--fg); }
.hl-tabs button {
  font: 500 14px/1 var(--body); color: var(--dim); background: transparent; border: 1px solid var(--line);
  padding: 12px 16px; cursor: pointer; position: relative; overflow: hidden;
}
.hl-tabs button[aria-selected="true"] { color: var(--fg); border-color: rgba(255,255,255,0.5); }
.hl-tabs button .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--fg); }
.hl-stage { position: relative; aspect-ratio: 16 / 9; max-width: 100%; width: min(100%, (100svh - 300px) * 16 / 9); margin-inline: auto; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.hl-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.hl-slide.on { opacity: 1; transition: opacity .45s .18s; }
.hl-slide img, .hl-slide video { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.hl-caption { min-height: 3.2em; font: 500 clamp(20px, 2.2vw, 30px)/1.25 var(--display); letter-spacing: -0.02em; max-width: 34ch; }
.hl-caption span { color: var(--dim); }

/* Pinned product tour */
.tour { position: relative; height: 640vh; }
.tour-pin { position: sticky; top: var(--pin-top, 60px); height: calc(100vh - var(--pin-top, 60px)); height: calc(100svh - var(--pin-top, 60px)); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 20px; padding-block: 24px 28px; }
.tour-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; min-height: 6.6em; }
.tour-copy h2 { font-size: clamp(30px, 4.4vw, 64px); transition: opacity .35s; }
.tour-copy p { color: var(--dim); font-size: 17px; max-width: 44ch; transition: opacity .35s; }
.tour-copy .fade { opacity: 0; }
.tour-steps { display: flex; gap: 6px; }
.tour-steps i { width: 26px; height: 2px; background: var(--faint); display: block; transition: background .3s; }
.tour-steps i.on { background: var(--fg); }
.tour-view { position: relative; min-height: 0; display: grid; place-items: center; container-type: size; }
.tour-frame { position: relative; aspect-ratio: 16 / 9; width: min(100cqw, 100cqh * 16 / 9); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.tour-frame img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s, transform 1.1s cubic-bezier(.2,.7,.1,1); transform-origin: 50% 50%; }
.tour-frame img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tour-frame img { transition: opacity .2s; } }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stats > div { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats .num { font-size: clamp(44px, 5.4vw, 84px); line-height: 0.95; font-weight: 500; }
.stats p { font-size: 15px; color: var(--dim); }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div, .stats > div + div { padding: 24px 16px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Platform tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--bg); padding: 28px; display: grid; gap: 14px; align-content: space-between; min-height: 260px; text-decoration: none; transition: background .25s; min-width: 0; }
.tile:hover { background: var(--panel); }
.tile-shot { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; transform: scale(1.35); transform-origin: 30% 30%; transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.tile:hover .tile-shot img { transform: scale(1.5); }
.tile h3 { font-size: clamp(28px, 2.8vw, 40px); }
.tile p { font-size: 15px; color: var(--dim); }
.tile .go { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.tile:hover .go { color: var(--fg); }
.tile .tag { justify-self: start; }
@media (max-width: 900px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 0; } }

/* Big principle rows */
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 16px 64px; padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); align-items: end; }
.principle h3 { font-size: clamp(32px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.04em; }
.principle p { color: var(--dim); font-size: 16px; }
@media (max-width: 900px) { .principle { grid-template-columns: minmax(0, 1fr); } }

/* Splits, frames, figures */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.frame { position: relative; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.frame img, .frame video { width: 100%; height: auto; }
figure { margin: 0; display: grid; gap: 12px; }
figcaption { font-size: 14px; color: var(--dim); }

/* Chapter pages (product): local sticky nav like a product page */
.localnav { position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 40; background: rgba(0,0,0,0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.localnav .wrap { display: flex; align-items: center; gap: 4px 20px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.localnav .wrap::-webkit-scrollbar { display: none; }
.localnav strong { font: 500 16px var(--display); letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; }
.localnav a { text-decoration: none; font-size: 13px; color: var(--dim); white-space: nowrap; }
.localnav a:hover { color: var(--fg); }
.chapter { display: grid; gap: clamp(32px, 5vw, 64px); }
.chapter-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; }
.chapter-head ul { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line); }
.chapter-head li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--dim); }
@media (max-width: 900px) { .chapter-head { grid-template-columns: minmax(0, 1fr); } }
.tag { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--faint); color: var(--dim); padding: 6px 8px; vertical-align: middle; }
.crops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .crops { grid-template-columns: minmax(0, 1fr); } }

/* Columns of short statements */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cols > * { padding: 28px 28px 0 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.cols > * + * { padding-left: 28px; border-left: 1px solid var(--line); }
.cols p { font-size: 15px; color: var(--dim); }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .cols, .cols.two { grid-template-columns: minmax(0, 1fr); }
  .cols > *, .cols > * + * { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Source cards (integrations, pricing) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards > div { background: var(--bg); padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.cards p { font-size: 15px; color: var(--dim); }
.cards .first { background: var(--panel); }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Tables */
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 540px; }
th, td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
td.yes { font-family: var(--mono); }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.person { background: var(--bg); padding: 32px; display: grid; gap: 14px; align-content: start; }
.mono-avatar { width: 72px; height: 72px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font: 500 22px var(--display); letter-spacing: -0.02em; }
.person p { font-size: 15px; color: var(--dim); }
@media (max-width: 760px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; font: 500 clamp(18px, 1.6vw, 22px)/1.3 var(--display); letter-spacing: -0.015em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--dim); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 22px; color: var(--dim); }

/* Forms */
form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
label { font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
input, select, textarea { font: 400 16px/1.4 var(--body); color: var(--fg); background: var(--panel); border: 1px solid var(--line); padding: 14px; border-radius: 0; width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
textarea { min-height: 130px; resize: vertical; }
.notice { border: 1px solid var(--fg); padding: 14px 16px; font-size: 15px; }

/* Placeholders GG still has to fill */
.ph { border-bottom: 1px dashed var(--dim); color: var(--fg); }
.legal { display: grid; gap: 18px; max-width: 760px; }
.legal h2 { font-size: 26px; margin-top: 14px; }

/* Closing band and footer */
.closer { position: relative; overflow: hidden; isolation: isolate; }
.closer .bg { position: absolute; inset: 0; z-index: -2; opacity: 0.4; }
.closer .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.closer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 60%, rgba(0,0,0,0.35), #000 75%); }
.site-foot { border-top: 1px solid var(--line); padding-block: 72px 28px; font-size: 14px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid nav { display: grid; gap: 10px; align-content: start; }
.foot-grid a { text-decoration: none; color: var(--dim); }
.foot-grid a:hover { color: var(--fg); }
.foot-word { display: block; margin-top: clamp(56px, 8vw, 120px); width: 100%; height: auto; aspect-ratio: 430 / 108; color: var(--fg); max-width: 72%; }
.foot-base { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font: 400 11px/1.6 var(--mono); letter-spacing: 0.04em; color: var(--dim); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Page intros (inner pages) */
.intro { padding-block: clamp(72px, 10vw, 160px) clamp(56px, 7vw, 104px); }
.intro .stack { gap: 28px; }

@media (max-width: 760px) {
  .tour-copy { grid-template-columns: minmax(0, 1fr); min-height: 10.5em; align-items: start; }
  .tour-copy h2 { font-size: 30px; }
  .tour-copy p { font-size: 15px; }
  .tour-view { place-items: start center; }
}

/* ---------- v4 motion and new components ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.1,1), transform .9s cubic-bezier(.2,.7,.1,1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1); transition-delay: var(--d, 0s); }
.js .wipe.in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .js [data-reveal], .js .wipe { opacity: 1; transform: none; clip-path: none; } }

.hero-media { transform-origin: 60% 40%; will-change: transform; }
.hero .wrap { will-change: transform, opacity; }

/* Eyebrow with a live dot */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 0 rgba(245,245,243,.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245,245,243,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(245,245,243,0); } }
@media (prefers-reduced-motion: reduce) { .eyebrow::before { animation: none; } }

/* Logo marquee and grid */
.marquee { overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }
.logo { display: inline-flex; align-items: center; gap: 14px; padding: 34px 44px; color: var(--dim); white-space: nowrap; transition: color .3s; }
.logo:hover { color: var(--fg); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo span { font: 500 24px/1 var(--display); letter-spacing: -0.03em; }
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-grid .logo { background: var(--bg); justify-content: center; padding: 40px 16px; min-width: 0; }
@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-grid .logo { padding: 28px 10px; } .logo-grid .logo span { font-size: 18px; } .logo-grid .logo svg { width: 22px; height: 22px; } }

/* Spotlight that follows the cursor on tiles and cards */
.tile, .cards > div, .feature { --mx: 50%; --my: 50%; }
.tile:hover, .feature:hover { background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255,255,255,0.07), transparent 45%), var(--bg); }

/* Apple-style feature grid inside a workspace chapter */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature { position: relative; grid-column: span 2; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 14px; align-content: start; overflow: hidden; min-width: 0; }
.feature.wide { grid-column: span 3; }
.feature.full { grid-column: span 6; }
.feature .k { font: 500 clamp(40px, 4.6vw, 72px)/0.95 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.feature h3 { font-size: clamp(20px, 1.7vw, 24px); }
.feature p { font-size: 15px; color: var(--dim); }
.feature .shot { margin: 8px -28px -28px; border-top: 1px solid var(--line); overflow: hidden; }
.feature .shot { aspect-ratio: 16 / 10; }
.feature .shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 0 0); transform: scale(var(--z, 1)); transform-origin: var(--pos, 0 0); transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.feature:hover .shot img { transform: scale(calc(var(--z, 1) * 1.06)); }
.frame.lift { border-radius: 14px; box-shadow: 0 40px 120px -40px rgba(108,184,255,0.18), 0 0 0 1px var(--line); transition: opacity .9s ease, transform 1.4s cubic-bezier(.2,.7,.1,1); }
.js .frame.lift[data-reveal] { transform: perspective(1600px) rotateX(8deg) translateY(40px) scale(.96); }
.js .frame.lift[data-reveal].in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .frame.lift[data-reveal] { transform: none; } }
@media (max-width: 900px) { .features { grid-template-columns: minmax(0, 1fr); } .feature, .feature.wide, .feature.full { grid-column: auto; } }

/* Chapter opener: giant workspace name */
.opener { display: grid; gap: 24px; }
.opener .name { font: 500 clamp(72px, 15vw, 240px)/0.86 var(--display); letter-spacing: -0.06em; }
.opener .tagline { font: 500 clamp(26px, 3.2vw, 46px)/1.1 var(--display); letter-spacing: -0.03em; color: var(--dim); max-width: 24ch; }
.opener .tagline b { color: var(--fg); font-weight: 500; }

/* Local nav active state */
.localnav a.active { color: var(--fg); box-shadow: inset 0 -2px 0 var(--fg); padding-block: 14px; }

/* Device chips for fleet */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; }

/* Full-bleed media band */
.bleed-media { position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.bleed-media img, .bleed-media video { width: 100%; height: auto; }
.bleed-media .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px var(--gr) 40px var(--gl); background: linear-gradient(180deg, transparent, rgba(0,0,0,.9)); }
.fine { font: 400 11px/1.6 var(--mono); color: var(--dim); }

/* ---------- First screen: the live map ---------- */
.live { position: relative; height: calc(100vh - 60px); height: calc(100svh - 60px); min-height: 600px; overflow: hidden; isolation: isolate; cursor: crosshair; --sp: 0; }
@media (max-height: 760px) and (min-width: 761px) { .live { min-height: 560px; } .live-copy { bottom: 84px; gap: 18px; } .live-title { font-size: clamp(44px, 5.6vw, 96px); } }
.live-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: calc(1 - var(--sp) * 0.7); }
:root:has(.draft) .live { height: calc(100vh - 88px); height: calc(100svh - 88px); }
.live-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 26%, transparent 46%); -webkit-mask-image: linear-gradient(0deg, transparent 0 62px, #000 92px); mask-image: linear-gradient(0deg, transparent 0 62px, #000 92px); }
.js .live-map { opacity: 0; transition: opacity .4s ease; }
.js .live.awake .live-map { opacity: calc(1 - var(--sp) * 0.7); }
.live-copy { position: absolute; left: max(var(--gl), calc((100vw - 1280px) / 2)); bottom: 104px; max-width: min(640px, 52vw); display: grid; gap: 22px; cursor: auto; }
.live-title { font: 500 clamp(48px, 6.6vw, 112px)/0.95 var(--display); letter-spacing: -0.04em; }
.live-title .w { display: inline-block; --g: 0; color: rgb(245 245 243 / calc(0.84 + var(--g) * 0.16)); text-shadow: 0 0 calc(var(--g) * 34px) rgb(108 184 255 / calc(var(--g) * 0.75)); transition: color .25s, text-shadow .25s, transform .35s cubic-bezier(.2,.7,.1,1); }
.live-title .f:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.live-title .f { cursor: pointer; background: linear-gradient(currentColor, currentColor) 0 92% / 100% 2px no-repeat; background-image: linear-gradient(rgb(108 184 255 / calc(0.25 + var(--g) * 0.5)), rgb(108 184 255 / calc(0.25 + var(--g) * 0.5))); }
.live[data-focus="orders"] .live-title .f[data-focus="orders"], .live[data-focus="trucks"] .live-title .f[data-focus="trucks"], .live[data-focus="dollars"] .live-title .f[data-focus="dollars"] { color: #fff; transform: translateY(-4px); text-shadow: 0 0 28px rgb(108 184 255 / 0.95), 0 0 2px #fff; }
.live[data-focus] .w { color: rgb(245 245 243 / 0.38); text-shadow: none; }
.js .live-title .w { opacity: 0; transform: translateY(0.4em); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.7,.1,1), color .25s, text-shadow .25s; }
.js .live.awake .live-title .w { opacity: 1; transform: none; }
.js .live.awake .live-title .w:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; } .js .live.awake .live-title .w:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
.js .live.awake .live-title .w:nth-child(4) { transition-delay: .24s, .24s, 0s, 0s; } .js .live.awake .live-title .w:nth-child(5) { transition-delay: .32s, .32s, 0s, 0s; } .js .live.awake .live-title .w:nth-child(6) { transition-delay: .4s, .4s, 0s, 0s; }
.live-copy .sub { max-width: 34ch; }
.live-hud { position: absolute; top: 24px; left: max(var(--gl), calc((100vw - 1280px) / 2)); right: max(var(--gr), calc((100vw - 1280px) / 2)); pointer-events: none; }
.live-stats { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.live-stats div { display: grid; gap: 4px; }
.live-stats dt i { font-style: normal; }
.live-stats dd { margin: 0; font: 500 26px/1 var(--display); letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.s-risk dt i, .s-risk dd { color: #feda4d; } .s-late dt i, .s-late dd { color: #ff5539; } .s-blocked dt i, .s-blocked dd { color: #fe6cfc; } .s-fleet dd { color: #6cb8ff; }
.live-pill { position: absolute; top: 24px; right: max(var(--gr), calc((100vw - 1280px) / 2)); display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,12,14,0.7); backdrop-filter: blur(8px); font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg); cursor: auto; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #6cb8ff; box-shadow: 0 0 10px #6cb8ff; animation: livepulse 1.6s ease-in-out infinite; }
.live.paused .live-dot { background: var(--dim); box-shadow: none; animation: none; }
@keyframes livepulse { 50% { opacity: 0.35; } }
.live-clock { color: var(--dim); font-variant-numeric: tabular-nums; }
.live-back { font: inherit; letter-spacing: inherit; text-transform: inherit; color: #000; background: var(--fg); border: 0; border-radius: 999px; padding: 4px 9px; cursor: pointer; }
.live-hint { position: absolute; right: max(var(--gr), calc((100vw - 1280px) / 2)); bottom: 70px; margin: 0; transition: opacity .2s; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); pointer-events: none; white-space: nowrap; }
.live-card { position: absolute; left: 0; top: 0; width: 304px; padding: 12px 14px 12px; background: rgba(11,12,14,0.9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-left: 2px solid var(--c, #6cb8ff); box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 18px 50px rgba(0,0,0,0.6), -8px 0 30px -12px var(--c, #6cb8ff); font: 400 11.5px/1.45 var(--mono); color: var(--dim); pointer-events: none; opacity: 0; transition: opacity .2s ease; will-change: transform; }
.live-card.on { opacity: 1; }
.lc-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.lc-id { color: var(--fg); }
.lc-name { margin: 6px 0 8px; font: 500 16px/1.2 var(--display); letter-spacing: -0.01em; color: var(--fg); }
.lc-mini { display: none; color: var(--fg); }
.live.tipping .live-hint { opacity: 0; }
.live-card .lc-lane { margin: -2px 0 9px; font: 500 11px/1.3 var(--mono); letter-spacing: .02em; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .live-card .lc-lane { display: none; } }
.live-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.live-card dt { color: var(--dim); } .live-card .full { grid-column: 1 / -1; text-align: left; } .live-card dd.full { margin-top: -2px; } .live-card dd { margin: 0; color: var(--fg); text-align: right; }
.live-tip { position: absolute; left: 0; top: 0; padding: 5px 9px; border: 1px solid var(--line); background: rgba(11,12,14,0.92); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--fg); white-space: nowrap; pointer-events: none; }
.live-range { position: absolute; left: 32px; width: calc(100% - 64px); bottom: 6px; height: 54px; margin: 0; touch-action: none; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.live-range:focus-visible { opacity: 1; outline: 2px solid var(--fg); outline-offset: 2px; }
.live-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 40px; background: transparent; }
.live-range::-moz-range-thumb { width: 12px; height: 40px; background: transparent; border: 0; }
@media (max-width: 760px) {
  .live, :root:has(.draft) .live { height: auto; min-height: 0; aspect-ratio: auto; display: grid; grid-template-rows: 320px auto 64px; }
  .live-shade { background: linear-gradient(0deg, #000 0%, #000 calc(100% - 340px), transparent calc(100% - 270px)); }
  .live-copy { position: relative; grid-row: 2; left: auto; bottom: auto; max-width: none; gap: 16px; padding: 0 var(--gr) 8px var(--gl); }
  .live-title { font-size: clamp(42px, 12vw, 60px); }
  .live-pill { padding: 6px 10px; gap: 8px; } .live.paused [data-live-mode] { display: none; }
  .live-stats { gap: 6px 18px; } .live-stats dd { font-size: 20px; } .live-stats .s-fleet, .live-stats .s-blocked, .live-stats .s-late { display: none; }
  .live-hint { display: none; }
  .live-card { width: calc(100vw - 40px); padding: 9px 12px; }
  .live-card dl { display: none; } .lc-mini { display: block; } .lc-name { margin: 3px 0 2px; font-size: 15px; }
  .live-copy .actions { flex-wrap: nowrap; gap: 10px; } .live-copy .btn { padding: 12px 14px; font-size: 15px; white-space: nowrap; }
  .live-copy .sub { font-size: 17px; }
  .live-range { left: 12px; width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) { .js .live-map, .js .live-title .w { transition: none; } .live-dot { animation: none; } }

@media (max-width: 380px) { .live-copy .actions { flex-wrap: wrap; } }
@media (max-width: 420px) { .live.paused .s-risk { display: none; } }

body:has(.localnav) { --pin-top: 108px; }

/* Dissect: a pinned scene that takes one screen apart, then dives into its parts */
.dissect { position: relative; }
.dx-track { position: relative; height: calc(var(--n, 6) * 70vh + 100vh); height: calc(var(--n, 6) * 70svh + 100svh); }
.dx-pin { position: sticky; top: var(--pin-top, 60px); height: calc(100vh - var(--pin-top, 60px)); height: calc(100svh - var(--pin-top, 60px)); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 18px; padding-block: 22px 26px; }
.dx-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; min-height: 6.2em; }
.dx-copy .dx-title { font-size: clamp(28px, 4vw, 58px); letter-spacing: -0.02em; transition: opacity .3s; }
.dx-copy .dx-text { color: var(--dim); font-size: 17px; max-width: 46ch; transition: opacity .3s; }
.dx-copy .fade { opacity: 0; }
.dx-steps { display: flex; gap: 5px; align-self: end; }
.dx-steps i { width: 18px; height: 2px; background: var(--faint); display: block; transition: background .3s; }
.dx-steps i.on { background: var(--fg); }
.dx-view { position: relative; min-height: 0; display: grid; place-items: center; container-type: size; overflow: clip; }
/* blueprint grid that shows while the screen is taken apart */
.dx-view::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--e, 0) * .9);
  background-image: linear-gradient(rgb(108 184 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(108 184 255 / .07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.dx-stage { position: relative; aspect-ratio: 16 / 9; width: min(100cqw, 100cqh * 16 / 9); }
.dx-scene { position: absolute; inset: 0; perspective: 2200px; perspective-origin: 50% 40%; will-change: opacity, filter; }
.dx-world { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform; }
.dx-base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 1px solid var(--line); background: var(--panel); }
.dx-shade { position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.dx-layer { position: absolute; background-repeat: no-repeat; transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 calc(var(--e, 0) * 40px) calc(var(--e, 0) * 70px) rgb(0 0 0 / calc(var(--e, 0) * .7)),
              0 0 0 1px rgb(108 184 255 / calc(var(--e, 0) * .55 + var(--sp, 0) * .6)),
              0 0 calc(var(--sp, 0) * 60px) rgb(108 184 255 / calc(var(--sp, 0) * .22)); }
.dx-layer::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--ldim, 0); pointer-events: none; }
.dx-tag { position: absolute; left: 0; bottom: calc(100% + 8px); font: 600 15px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6cb8ff; white-space: nowrap;
  opacity: var(--e, 0); background: rgb(0 0 0 / .72); padding: 5px 7px; border-left: 2px solid #6cb8ff; transform: translateZ(90px); }
.dx-tag.below { bottom: auto; top: calc(100% + 8px); }
.dx-k { position: absolute; width: 14px; height: 14px; border: 0 solid #6cb8ff; opacity: var(--sp, 0); }
.dx-k.tl { left: -6px; top: -6px; border-left-width: 2px; border-top-width: 2px; }
.dx-k.tr { right: -6px; top: -6px; border-right-width: 2px; border-top-width: 2px; }
.dx-k.bl { left: -6px; bottom: -6px; border-left-width: 2px; border-bottom-width: 2px; }
.dx-k.br { right: -6px; bottom: -6px; border-right-width: 2px; border-bottom-width: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .dx-track { height: calc(var(--n, 6) * 60svh + 100svh); }
  .dx-copy { grid-template-columns: minmax(0, 1fr); min-height: 9.5em; align-items: start; }
  .dx-copy .dx-title { font-size: 28px; }
  .dx-copy .dx-text { font-size: 15px; }
  .dx-tag { font-size: 9px; padding: 3px 4px; bottom: calc(100% + 4px); }
  .dx-k { width: 8px; height: 8px; }
}

/* Highlights: each slide pushes in on one part of the screen */
.hl-cam { position: absolute; inset: 0; transform-origin: var(--ox, 50%) var(--oy, 50%); will-change: transform; backface-visibility: hidden; }
[data-highlights].seen .hl-slide.on .hl-cam { animation: hl-push var(--dur, 6.5s) cubic-bezier(.3, .05, .15, 1) both; }
@keyframes hl-push { 0%, 5% { transform: scale(1); } 80%, 100% { transform: scale(var(--zs, 1.08)); } }
.hl-ret { position: absolute; display: block; border: 1px solid rgb(108 184 255 / .95); opacity: 0; box-shadow: 0 0 0 200vmax rgb(0 0 0 / 0); }
[data-highlights].seen .hl-slide.on .hl-ret { animation: hl-ret var(--dur, 6.5s) ease-out both; }
@keyframes hl-ret {
  0%, 14% { opacity: 0; transform: scale(1.25); box-shadow: 0 0 0 200vmax rgb(0 0 0 / 0); }
  24% { opacity: 1; transform: scale(1); }
  34%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 200vmax rgb(0 0 0 / .5); }
}
.hl-ret::before, .hl-ret::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid #6cb8ff; }
.hl-ret::before { left: -5px; top: -5px; border-left-width: 2px; border-top-width: 2px; }
.hl-ret::after { right: -5px; bottom: -5px; border-right-width: 2px; border-bottom-width: 2px; }
.hl-ret b { position: absolute; left: -1px; bottom: calc(100% + 6px); transform: scale(calc(1 / var(--zs, 1))); transform-origin: 0 100%; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6cb8ff; background: rgb(0 0 0 / .78); padding: 5px 7px; white-space: nowrap; }
.hl-id { position: absolute; left: 12px; top: 12px; z-index: 2; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); background: rgb(0 0 0 / .66); padding: 6px 8px; border-left: 2px solid #6cb8ff; }
[data-highlights].paused .hl-cam, [data-highlights].paused .hl-ret, [data-highlights].off .hl-cam, [data-highlights].off .hl-ret { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  [data-highlights].seen .hl-slide.on .hl-cam { animation: none; }
  [data-highlights].seen .hl-slide.on .hl-ret { animation: none; opacity: 1; }
}
@media (max-width: 760px) { .hl-id { font-size: 9px; left: 8px; top: 8px; padding: 4px 6px; } .hl-ret b { font-size: 9px; padding: 3px 5px; } }
.hl-ret b.below { bottom: auto; top: calc(100% + 6px); transform-origin: 0 0; }
.frame img[src*="img/ws/"], .bleed-media video { aspect-ratio: 16 / 9; height: auto; }
/* set-type wordmark, used only while a new product name has no drawn wordmark */
.word-type { font: 600 17px/1 var(--display); letter-spacing: 0.32em; }
.foot-word.word-type { font-size: clamp(64px, 17vw, 260px); letter-spacing: 0.2em; aspect-ratio: auto; line-height: .9; }
