/* ==========================================================================
   Atlas Automations
   One stylesheet for the whole site. Tokens first; every colour, size and
   gap below reads from them.
   ========================================================================== */

:root {
  /* Colour blocks: the logo's colours only, used as solid sections on true
     neutrals (charcoal = the logo's own backdrop, and white). Neutrals stay
     neutral: tinting them teal is what made v1 read as one flat cyan.
     Page rhythm: charcoal → teal → white → charcoal → petrol → white → charcoal */
  --abyss: #151515;        /* page (the logo backdrop) */
  --trench: #202020;       /* raised surfaces */
  --reef: #2d2d2d;         /* hover / borders on dark */
  --petrol: #0389a6;       /* logo, left half */
  --signal: #04d8d9;       /* logo, right half */
  --petrol-deep: #026a80;  /* the process section field (white text 6.2:1) */
  --deep: #041419;         /* the original dark cyan: "the load" scene + web band */
  --deep-text: #e6f5f4;    /* text on deep (16.7:1) */
  --deep-muted: #8fb0b3;   /* secondary text on deep (8:1) */
  --foam: #f5f5f5;         /* text on dark (16.8:1) */
  --haze: #a3a3a3;         /* secondary text on dark (7.2:1) */
  --line: rgba(255, 255, 255, 0.12);

  --daylight: #ffffff;     /* white fields: services, FAQ */
  --ink: #151515;
  --ink-soft: #555555;     /* 7.5:1 on white */
  --petrol-ink: #026a80;   /* petrol that passes as text on light */

  /* Type: Archivo, used across its width axis */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --t-sm: 0.875rem;                                   /* 14 */
  --t-base: 1.0625rem;                                /* 17 → 18 */
  --t-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.5rem); /* 19 → 24 */
  --t-h3: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);       /* 24 → 36 */
  --t-h2: clamp(2.25rem, 1.3rem + 3.4vw, 4.5rem);     /* 36 → 72 */
  /* 54 → 144; the min() floor lets it shrink on 320–360px phones instead of clipping */
  --t-d1: clamp(min(3.4rem, 13.5vw), 0.6rem + 7.6vw, 9rem);

  /* Space: 8px grid */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px;
  --s6: 64px; --s7: 96px; --s8: 128px; --s9: 160px;
  /* Side margin: never under 20px, never over 56px, and always clear of the
     notch / rounded corners when an iPhone is held sideways */
  --gutter: max(clamp(20px, 5vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --max: 1320px;
  --section: clamp(96px, 14vh, 168px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);

  color-scheme: dark;
  interpolate-size: allow-keywords;
}

@media (min-width: 1200px) { :root { --t-base: 1.125rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps keyboard focus clear of the fixed nav.
   overflow-x: clip is the safety net against sideways overflow: anything that
   pokes past the edge makes phones zoom the whole page out. clip (not hidden)
   creates no scroll container, so the sticky and pinned sections keep working. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
/* <i> is only used for decorative shapes; upright stops an italic font download */
i { font-style: normal; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--abyss); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--s2); top: -80px; z-index: 200;
  padding: 12px 18px; background: var(--signal); color: var(--abyss);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--s2); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Film grain over everything. Cheap: one fixed layer, transform-only motion. */
body::after {
  content: ""; position: fixed; inset: -10%; z-index: 90; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Type ---------- */
.h2 {
  font-size: var(--t-h2); font-stretch: 118%; font-weight: 760;
  line-height: 0.96; letter-spacing: -0.03em; text-wrap: balance;
}
.sl-mask { padding-bottom: 0.12em; margin-bottom: -0.12em; }

.textlink {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.textlink:hover { color: var(--signal); text-decoration-color: currentColor; }

/* ---------- Buttons: chamfered, like the mark's corners ---------- */
.btn {
  --cut: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 650; font-stretch: 112%;
  letter-spacing: 0.01em; line-height: 1; text-decoration: none; white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { clip-path: none; outline: 2px solid var(--foam); outline-offset: 3px; }
.btn--primary { background: var(--signal); color: var(--abyss); }
.btn--primary:hover { background: var(--foam); }
.btn--sm { --cut: 9px; min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--lg { --cut: 14px; min-height: 60px; padding: 0 36px; font-size: 1.0625rem; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: var(--s4);
  padding: 14px var(--gutter);
  transition: transform 0.5s var(--ease-out), background-color 0.35s, box-shadow 0.35s;
}
.nav.is-scrolled {
  background: rgba(21, 21, 21, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.nav__brand .mark { height: 36px; width: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-size: 1.125rem; font-weight: 800; font-stretch: 125%; letter-spacing: 0.05em; }
.wordmark span { margin-top: 4px; font-size: 0.6875rem; font-weight: 400; font-stretch: 125%; letter-spacing: 0.3em; color: var(--signal); }
.nav__links { display: flex; gap: var(--s4); }
.nav__links a {
  padding: 10px 0; font-size: 0.9375rem; text-decoration: none; color: var(--haze);
  transition: color 0.2s;
}
.nav__links a { position: relative; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--foam); }
.nav__links a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 7px;
  translate: -50% 0; background: var(--signal); clip-path: var(--hex);
}
.nav__toggle {
  display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 12px;
  background: none; border: 0; cursor: pointer; font-size: 0.9375rem; font-weight: 600;
}
.nav__toggle-icon { position: relative; width: 22px; height: 12px; }
.nav__toggle-icon i {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav__toggle-icon i:first-child { top: 0; }
.nav__toggle-icon i:last-child { top: 10px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:first-child { top: 5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:last-child { top: 5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 104px var(--gutter) var(--s5);
  background: var(--abyss);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0s 0.4s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease-out), visibility 0s; }
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  font-size: clamp(2.25rem, 10vw, 3.5rem); font-weight: 800; font-stretch: 125%;
  letter-spacing: -0.03em; line-height: 1.15; text-decoration: none;
  transform: translateY(24px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out), color 0.2s;
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.04s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.08s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.12s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.16s; }
.menu__links a:hover { color: var(--signal); }
.menu__foot { display: grid; gap: var(--s3); justify-items: start; color: var(--haze); }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero: the title sequence
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(38% 46% at 72% 50%, rgba(4, 216, 217, 0.12), transparent 70%),
    radial-gradient(55% 65% at 72% 52%, rgba(3, 137, 166, 0.2), transparent 72%);
}
/* Isometric lattice, the same 30° geometry as the mark */
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px);
  -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 70% 50%, #000 10%, transparent 75%);
}
.hero__mark {
  position: absolute; z-index: 1; top: 50%; right: max(var(--gutter), 7vw);
  height: min(70vh, 680px); aspect-ratio: 246 / 355;
  translate: 0 -46%;
}
.hero__mark .mark { width: 100%; height: 100%; overflow: visible; }
.hero__flash {
  position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(4, 216, 217, 0.5), rgba(4, 216, 217, 0) 60%);
  opacity: 0; transform: scale(0.4);
}
.hero.is-locked .hero__flash { animation: flash 1.4s var(--ease-out) forwards; }
@keyframes flash { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.4); } }

.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto;
  padding-top: 72px;
}
.hero__title {
  font-size: var(--t-d1); font-weight: 820; font-stretch: 125%;
  line-height: 0.9; letter-spacing: -0.045em;
}
.hero__line { display: block; overflow: clip; padding-bottom: 0.05em; margin-bottom: -0.05em; }
.hero__line:nth-child(2) { padding-left: 0.55em; }
.hero__line:nth-child(3) { padding-left: 1.1em; }
.hero__word { display: inline-block; }
.hero__foot { margin-top: var(--s5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.hero__lede { max-width: 31em; font-size: var(--t-lead); line-height: 1.45; color: var(--haze); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }

.hero__cue {
  position: absolute; z-index: 2; right: var(--gutter); bottom: var(--s4);
  display: flex; align-items: center; gap: 14px; font-size: var(--t-sm); color: var(--haze);
}
.hero__cue i { position: relative; width: 56px; height: 1px; background: var(--line); overflow: hidden; }
.hero__cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--signal);
  transform: translateX(-100%); animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

.hero__scene {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center;
  padding: var(--gutter); text-align: center; pointer-events: none;
  opacity: 0; visibility: hidden;
}
.hero__scene-line {
  max-width: 17ch; font-size: var(--t-h2); font-weight: 760; font-stretch: 118%;
  line-height: 1; letter-spacing: -0.03em; text-wrap: balance;
}
.hero__scene-sub { margin-top: var(--s3); color: var(--haze); font-size: var(--t-lead); }

/* JS-only initial states, so nothing flashes before the intro plays */
.js .hero__word { transform: translateY(112%); }
.js .hero [data-intro], .js .nav { opacity: 0; }
.js .hero .mark__piece, .js .hero .mark__sq { opacity: 0; }

/* Mid widths: let the mark bleed off the right edge so the title keeps its room */
@media (max-width: 1199px) { .hero__mark { height: min(62vh, 560px); right: -3vw; } }
@media (max-width: 900px) {
  .hero { min-height: 600px; }
  .hero__mark { top: 96px; right: var(--gutter); height: 30svh; translate: none; }
  .hero__content { justify-content: flex-end; padding-bottom: var(--s7); }
  .hero__line:nth-child(2) { padding-left: 0.35em; }
  .hero__line:nth-child(3) { padding-left: 0.7em; }
  .hero__foot { margin-top: var(--s4); }
  .hero__grid { -webkit-mask-image: radial-gradient(90% 50% at 80% 20%, #000 10%, transparent 75%); mask-image: radial-gradient(90% 50% at 80% 20%, #000 10%, transparent 75%); }
  .hero__bg { background: radial-gradient(70% 40% at 80% 22%, rgba(3, 137, 166, 0.3), transparent 72%); }
  .hero__cue, .hero__scene { display: none; }
}

/* ==========================================================================
   Phone (shared by the story and the services fan)
   ========================================================================== */
.phone {
  --h: min(72svh, 680px);
  position: relative; height: var(--h); aspect-ratio: 9 / 19.5;
  padding: calc(var(--h) * 0.013);
  border-radius: calc(var(--h) * 0.074);
  background: linear-gradient(150deg, #3a3a3a 0%, #1c1c1c 38%, #121212 62%, #2e2e2e 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 50px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 150px -30px rgba(3, 137, 166, 0.3);
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--h) * 0.062);
  background: #000; container-type: size; isolation: isolate;
}
.phone__screen > video { width: 100%; height: 100%; object-fit: cover; }
.phone__status {
  position: absolute; inset: 0 0 auto; z-index: 5; height: 7cqh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 7cqw 0 9cqw; font-size: 3.7cqw; font-weight: 650; color: #fff;
  font-variant-numeric: tabular-nums; transition: color 0.4s;
}
.phone[data-tone="light"] .phone__status { color: #1f2328; }
.phone__island {
  position: absolute; left: 50%; top: 1.8cqh; translate: -50% 0;
  width: 27cqw; height: 3.6cqh; border-radius: 99px; background: #000;
}
.phone__icons { display: flex; gap: 1.6cqw; align-items: center; }
.phone__icons svg { height: 2.8cqw; width: auto; fill: currentColor; }
.phone__icons svg:last-child { height: 3cqw; }

/* Screens stack and cross-fade */
.screen {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.035);
  transition: opacity 0.5s, transform 0.8s var(--ease-out), visibility 0s 0.5s;
}
.screen.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s, transform 0.8s var(--ease-out), visibility 0s;
}
.screen svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The reel */
.screen--reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 18%, transparent 70%, rgba(0,0,0,.65) 100%);
}
.reel__bars { position: absolute; top: 8cqh; left: 4cqw; right: 4cqw; display: flex; gap: 1.4cqw; }
.reel__bars i { flex: 1; height: 0.5cqh; border-radius: 9px; background: rgba(255,255,255,.35); overflow: hidden; }
.reel__bars i:first-child::after {
  content: ""; display: block; height: 100%; background: #fff; transform-origin: left;
  animation: bar 8.4s linear infinite;
}
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reel__who {
  position: absolute; top: 10.5cqh; left: 4cqw; display: flex; align-items: center; gap: 2.4cqw;
  font-size: 3.5cqw; font-weight: 650; color: #fff;
}
.reel__avatar {
  display: grid; place-items: center; width: 8.5cqw; height: 8.5cqw; border-radius: 50%;
  background: #e8b02f; color: #0a0a0a; font-size: 2.6cqw; font-weight: 800; font-stretch: 110%;
  box-shadow: 0 0 0 0.6cqw rgba(255,255,255,.9);
}
.reel__rail { position: absolute; right: 4cqw; bottom: 17cqh; display: grid; gap: 4.5cqh; color: #fff; }
.reel__rail svg { width: 7.5cqw; height: 7.5cqw; }
.reel__cap {
  position: absolute; left: 4.5cqw; right: 20cqw; bottom: 6cqh;
  font-size: 3.6cqw; line-height: 1.35; font-weight: 500; color: #fff;
}

/* The search */
.screen--search { background: #f3f4f6; color: #1f2328; padding: 12cqh 4.5cqw 0; }
.search__bar {
  display: flex; align-items: center; gap: 3cqw; height: 11cqw; padding: 0 4.5cqw;
  border-radius: 99px; background: #fff; box-shadow: 0 0.4cqw 2cqw rgba(31, 35, 40, 0.12);
  font-size: 3.9cqw;
}
.search__bar svg { width: 4.6cqw; height: 4.6cqw; color: #5f6368; flex: none; }
.search__q::after {
  content: ""; display: inline-block; width: 0.4cqw; height: 4.6cqw; margin-left: 0.4cqw;
  vertical-align: -0.8cqw; background: var(--petrol); animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.search__results {
  margin-top: 4cqh; display: grid; gap: 2.2cqh;
  opacity: 0; transform: translateY(2cqh); transition: opacity 0.5s, transform 0.7s var(--ease-out);
}
.search__results.is-shown { opacity: 1; transform: none; }
.result { position: relative; padding: 4cqw; border-radius: 3.5cqw; background: #fff; }
.result__site { display: flex; gap: 2.6cqw; align-items: center; font-size: 2.9cqw; line-height: 1.3; color: #5f6368; }
.result__site b { color: #1f2328; font-weight: 650; }
.result__fav {
  display: grid; place-items: center; width: 7cqw; height: 7cqw; border-radius: 50%;
  background: #0a0a0a; color: #e8b02f; font-size: 3cqw; font-weight: 800;
}
.result__title { margin-top: 2cqw; font-size: 4.6cqw; line-height: 1.25; font-weight: 600; color: var(--petrol-ink); }
.result__snip { margin-top: 1.4cqw; font-size: 3.2cqw; line-height: 1.4; color: #5f6368; }
.result__chips { display: flex; gap: 1.8cqw; margin-top: 3cqw; }
.result__chips span { padding: 1.2cqw 3cqw; border-radius: 99px; border: 1px solid #dadce0; font-size: 2.9cqw; color: #1f2328; }
.result--top::after {
  content: ""; position: absolute; left: 50%; top: 40%; width: 16cqw; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; background: rgba(3, 137, 166, 0.28);
  transform: scale(0); opacity: 0; pointer-events: none;
}
.result--top.is-tapped { box-shadow: 0 0 0 0.7cqw var(--signal); transition: box-shadow 0.3s; }
.result--top.is-tapped::after { animation: tap 0.6s var(--ease-out); }
@keyframes tap { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
.result--ghost { display: grid; gap: 2cqw; }
.result--ghost i { height: 2.4cqw; border-radius: 9px; background: #e8eaed; }
.result--ghost i:nth-child(1) { width: 40%; }
.result--ghost i:nth-child(2) { width: 85%; height: 3.4cqw; }
.result--ghost i:nth-child(3) { width: 70%; }

/* The site */
.screen--site { background: #0a0a0a; }
.site__url {
  position: absolute; z-index: 2; top: 7.4cqh; left: 5cqw; right: 5cqw; height: 8.4cqw;
  display: grid; place-items: center; border-radius: 99px;
  background: rgba(38, 38, 38, 0.92); color: #d9d9d9; font-size: 3.2cqw;
}
.site__page { position: absolute; left: 0; right: 0; top: 13.5cqh; }
.site__page img { width: 100%; height: auto; }
.screen--site.is-active .site__page img { animation: sitescroll 18s 0.8s ease-in-out infinite alternate; }
@keyframes sitescroll { to { transform: translateY(-58%); } }

/* Your phone: the lock screen */
.screen--lock {
  padding: 0 4cqw; color: var(--foam);
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(3, 137, 166, 0.5), transparent 70%),
    radial-gradient(70% 40% at 80% 100%, rgba(4, 216, 217, 0.16), transparent 70%),
    #151515;
}
.lock__time {
  margin-top: 12cqh; text-align: center; font-size: 21cqw; line-height: 1;
  font-weight: 300; font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.lock__date { margin-top: 1cqh; text-align: center; font-size: 3.8cqw; color: rgba(255, 255, 255, 0.75); }
.lock__list { margin-top: 5cqh; display: grid; gap: 1.5cqh; }
.notif {
  display: grid; grid-template-columns: 8.4cqw 1fr auto; align-items: center; gap: 0.6cqh 3cqw;
  padding: 3.2cqw 3.6cqw; border-radius: 5cqw;
  background: rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 3.1cqw; line-height: 1.3;
  opacity: 0; transform: translateY(-3cqh) scale(0.95);
}
.screen--lock.is-playing .notif {
  opacity: 1; transform: none;
  transition: opacity 0.5s calc(var(--i) * 0.7s + 0.35s), transform 0.7s var(--ease-out) calc(var(--i) * 0.7s + 0.35s);
}
.notif__icon {
  grid-row: span 2; display: grid; place-items: center; width: 8.4cqw; height: 8.4cqw;
  border-radius: 2.2cqw; background: var(--c); color: #fff; align-self: start;
}
.notif__icon svg { width: 4.8cqw; height: 4.8cqw; }
.notif__title { font-weight: 650; }
.notif__time { color: rgba(255, 255, 255, 0.6); font-size: 2.8cqw; }
.notif__body { grid-column: 2 / -1; color: rgba(255, 255, 255, 0.85); }

/* 09:00: the calendar */
.screen--cal { background: #f3f4f6; color: #1f2328; padding: 11cqh 5cqw 0; }
.cal__day { font-size: 3.4cqw; color: var(--petrol-ink); font-weight: 650; }
.cal__title { font-size: 8.5cqw; font-weight: 800; font-stretch: 120%; letter-spacing: -0.02em; line-height: 1.1; }
.cal__grid { --row: 10cqh; position: relative; margin-top: 3cqh; }
.cal__row { height: var(--row); border-top: 1px solid #dadce0; font-size: 2.8cqw; color: #70757a; padding-top: 0.6cqh; }
.cal__event {
  position: absolute; left: 14cqw; right: 0;
  top: calc(var(--row) * var(--top)); height: calc(var(--row) * var(--len) - 0.6cqh);
  padding: 1.6cqw 3cqw; border-radius: 2.4cqw; font-size: 3cqw; line-height: 1.3;
}
.cal__event--old { background: #e8eaed; color: #5f6368; }
.cal__event--new {
  display: grid; align-content: center; background: var(--petrol); color: #fff;
  box-shadow: inset 1cqw 0 0 var(--signal), 0 2cqw 5cqw rgba(3, 137, 166, 0.35);
  opacity: 0; transform: translateX(6cqw) scale(0.94);
}
.cal__event--new span { font-size: 2.6cqw; opacity: 0.85; }
.screen--cal.is-active .cal__event--new {
  opacity: 1; transform: none;
  transition: opacity 0.5s 0.5s, transform 0.8s var(--ease-out) 0.5s;
}

/* ==========================================================================
   Story: one customer, one morning
   ========================================================================== */
.story {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto;
}
.story__stage {
  grid-column: 2; grid-row: 1; position: sticky; top: 0;
  height: 100vh; height: 100svh; display: grid; place-items: center;
}
.story__device { display: grid; justify-items: center; gap: var(--s2); padding-top: 40px; }
.story__meta {
  display: flex; justify-content: space-between; gap: var(--s2);
  width: max(calc(min(72svh, 680px) * 9 / 19.5 + 40px), 340px);
  font-size: var(--t-sm); color: var(--haze); white-space: nowrap;
}
.story__real { transition: opacity 0.4s; }
.story__real[hidden] { display: inline; opacity: 0; }
.scrub { width: max(calc(min(72svh, 680px) * 9 / 19.5 + 40px), 340px); --p: 0; }
.scrub__track { position: relative; height: 2px; background: var(--line); }
.scrub__fill {
  position: absolute; inset: 0; background: linear-gradient(90deg, var(--petrol), var(--signal));
  transform-origin: left; transform: scaleX(var(--p));
}
.scrub__head {
  position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 10px; height: 12px;
  translate: -50% -50%; background: var(--signal); clip-path: var(--hex);
}
.scrub__ticks {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-size: 0.75rem; font-stretch: 115%; color: var(--haze); font-variant-numeric: tabular-nums;
}

.story__chapters { grid-column: 1; grid-row: 1; }
.chapter {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding-block: 12vh;
}
.chapter__card { max-width: 30rem; }
.chapter__time {
  font-size: clamp(3rem, 1.5rem + 4vw, 5.75rem); line-height: 1;
  font-weight: 200; font-stretch: 125%; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--signal);
}
.chapter__title {
  margin-top: 6px; font-size: var(--t-h2); line-height: 0.95;
  font-weight: 820; font-stretch: 125%; letter-spacing: -0.04em;
}
.chapter__text { margin-top: var(--s3); font-size: var(--t-lead); line-height: 1.5; }
.chapter__link { margin-top: var(--s3); font-size: var(--t-sm); color: var(--haze); }
.chapter__link a { color: var(--foam); text-underline-offset: 0.3em; }
.chapter__link a:hover { color: var(--signal); }
.chapter { transition: opacity 0.5s; }
.js .chapter:not(.is-current) { opacity: 0.4; }   /* 3.5:1, still readable at a glance */
.chapter__link a:only-child { display: inline-block; padding-block: 12px; }
.story__captions { display: none; }

@media (max-width: 900px) {
  .story { display: block; width: auto; }
  .story__stage { position: sticky; top: 0; place-items: start center; padding-top: 72px; z-index: 0; }
  .story__device { padding-top: 0; }
  .phone--story { --h: min(64svh, 580px); }
  .story__meta { width: min(100% - 2 * var(--gutter), 340px); font-size: 0.8125rem; }
  .scrub { display: none; }
  .story__chapters { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
  .chapter { min-height: 115svh; align-items: flex-end; padding: 0 var(--gutter) 5svh; }
  .chapter:first-child { padding-top: 80svh; }
  /* solid card, no backdrop blur: blurring a playing video costs too much on phones */
  .chapter__card { padding: var(--s3); background: rgba(21, 21, 21, 0.95); border: 1px solid var(--line); }
  .chapter__time { font-size: 2.5rem; }
  .chapter__title { font-size: 2.25rem; }
  .chapter__text { font-size: 1.0625rem; }
  .js .chapter:not(.is-current) { opacity: 1; }
}

/* ==========================================================================
   The load: tasks pile onto "You", then Atlas carries them as one system.
   Default styles are the final, organised state (no JS / reduced motion).
   .load--animate (added by main.js) turns it into a sticky scroll scene.
   ========================================================================== */
.load { position: relative; background: var(--deep); color: var(--deep-text); }
.load__stage {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(38% 50% at 66% 52%, rgba(3, 137, 166, 0.32), transparent 70%),
    radial-gradient(22% 30% at 66% 52%, rgba(4, 216, 217, 0.12), transparent 70%);
}
/* the same isometric lattice as the hero, very faint */
.load__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(30deg, rgba(143, 176, 179, 0.06) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(150deg, rgba(143, 176, 179, 0.06) 0 1px, transparent 1px 72px);
  -webkit-mask-image: radial-gradient(55% 65% at 66% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(55% 65% at 66% 50%, #000 10%, transparent 75%);
}
.load__inner {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: var(--s6);
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-block: var(--section);
}
.load__line + .load__line { margin-top: var(--s5); }
.load__big {
  display: block; max-width: 14em;
  font-size: clamp(1.9rem, 0.9rem + 2.8vw, 3.4rem); line-height: 1.02;
  font-weight: 760; font-stretch: 118%; letter-spacing: -0.03em; text-wrap: balance;
}
.load__sub { display: block; margin-top: var(--s3); max-width: 26em; font-size: var(--t-lead); line-height: 1.45; color: var(--deep-muted); }

.load__scene {
  position: relative; justify-self: center; width: min(100%, 580px); aspect-ratio: 1;
  container-type: size;
  --rx: 0.36; --ry: 0.34;   /* ring radius as a fraction of the scene; main.js reads these too */
}
.load__spokes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.load__spokes line {
  /* the scene is square, so user units scale evenly: 0.28 units ≈ 1.5px at 560px */
  stroke: var(--signal); stroke-width: 0.28; opacity: 0.55;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.load__mark {
  position: absolute; left: 50%; top: 50%; width: 15cqw; translate: -50% -50%;
  filter: drop-shadow(0 0 28px rgba(4, 216, 217, 0.35));
}
.load__mark .mark { width: 100%; height: auto; }
.load__chips { position: absolute; inset: 0; }
/* Chips sit on an ellipse around the mark (CSS trig), centred via `translate`
   so GSAP's transform can move them freely */
.chip {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  transform: translate(calc(cos(var(--a)) * var(--rx) * 100cqw), calc(sin(var(--a)) * var(--ry) * 100cqh));
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px;
  border: 1px solid var(--signal); border-radius: 10px;
  background: rgba(4, 216, 217, 0.1); color: var(--deep-text);
  font-size: 0.9375rem; font-weight: 650; font-stretch: 108%; line-height: 1; white-space: nowrap;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.7);
}
.chip svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip__icon { width: 18px; height: 18px; }
.chip__check { width: 16px; height: 16px; color: var(--signal); stroke-width: 3; }
.load__you {
  display: none; position: absolute; left: 50%; bottom: 3%; translate: -50% 0;
  flex-direction: column; align-items: center; gap: 10px;
  color: var(--deep-muted); font-size: var(--t-sm); font-weight: 600;
}
.load__you-bar { width: 44cqw; height: 6px; border-radius: 3px; background: var(--deep-text); }
.load__you-label { display: flex; align-items: center; gap: 6px; }
.load__you-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Scroll scene */
.load--animate { height: 320vh; height: 320svh; }
.load--animate .load__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.load--animate .load__inner { height: 100%; padding-block: 72px var(--s5); }
.load--animate .load__copy { display: grid; }
.load--animate .load__line { grid-area: 1 / 1; margin: 0; align-self: center; }
/* GSAP owns centring here (xPercent/yPercent), so the CSS translate is switched off */
.load--animate .chip, .load--animate .load__mark, .load--animate .load__you { translate: none; }
.load--animate .chip { transform: none; background: #e6f5f4; color: #041419; border-color: rgba(4, 216, 217, 0); }
.load--animate .chip__check { opacity: 0; }
.load--animate .load__spokes line { stroke-dashoffset: 1; }
.load--animate .load__you { display: flex; }

@media (max-width: 900px) {
  .load__inner { grid-template-columns: 1fr; gap: var(--s4); }
  .load--animate .load__inner { align-content: center; padding-block: 64px var(--s3); }
  .load__scene { width: min(100%, 46vh); width: min(100%, 46svh); --rx: 0.29; --ry: 0.36; }
  .load__spokes { transform: scale(0.8, 1.06); }   /* follow the narrower ring */
}
@media (max-width: 360px) {
  .load__scene { --rx: 0.26; }
  .load__spokes { transform: scale(0.72, 1.06); }
  .load__big { font-size: clamp(1.55rem, 1rem + 3vw, 2.25rem); }
  .load__sub { font-size: 1rem; margin-top: var(--s2); }
  .chip { gap: 6px; padding: 6px 9px 6px 8px; font-size: 0.8125rem; border-radius: 8px; }
  .chip__icon { width: 14px; height: 14px; }
  .chip__check { width: 13px; height: 13px; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  padding-block: var(--section);
  background: var(--daylight); color: var(--ink); color-scheme: light;
  --haze: var(--ink-soft); --line: rgba(21, 21, 21, 0.12); --trench: #eeeeee;
}
.services :focus-visible { outline-color: var(--petrol-ink); }
.services .service__list li::before { background: var(--petrol); }
.services .node__hex { color: var(--ink-soft); }
.services .video-toggle:hover { color: var(--ink); }
.services .phone { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 40px 80px -30px rgba(21, 21, 21, 0.45); }
.services .browser { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 40px 90px -30px rgba(21, 21, 21, 0.35); }

/* Web design & SEO: a full-width dark-cyan band between the two white blocks */
.services .service--web {
  position: relative; isolation: isolate; border-top: 0; clip-path: inset(0 -100vmax);
  color: var(--deep-text); color-scheme: dark;
  --haze: var(--deep-muted); --line: rgba(143, 176, 179, 0.18);
}
.services .service--web::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw);
  background:
    radial-gradient(34% 62% at 30% 50%, rgba(3, 137, 166, 0.34), transparent 70%),
    var(--deep);
}
.services .service--web + .service { border-top: 0; }
.services .service--web :focus-visible { outline-color: var(--signal); }
.services .service--web .service__list li::before { background: var(--signal); }
.services .service--web .browser {
  box-shadow: 0 0 0 1px rgba(230, 245, 244, 0.12), 0 60px 110px -40px rgba(0, 0, 0, 0.85), 0 0 160px -40px rgba(4, 216, 217, 0.45);
}
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3);
  align-items: end; padding-bottom: var(--s7);
}
.section-head .h2 { grid-column: 1 / span 7; }
.section-head__text { grid-column: 9 / span 4; color: var(--haze); }

.service {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s3);
  align-items: center; padding-block: clamp(80px, 12vh, 144px);
  border-top: 1px solid var(--line);
}
.service__text { grid-column: 1 / span 5; }
.service__visual { grid-column: 7 / span 6; }
.service--web .service__text { grid-column: 8 / span 5; grid-row: 1; }
.service--web .service__visual { grid-column: 1 / span 6; grid-row: 1; }
.service__title {
  font-size: clamp(2.25rem, 1.3rem + 3vw, 4.25rem); line-height: 0.92;
  font-weight: 820; font-stretch: 125%; letter-spacing: -0.04em; text-wrap: balance;
}
.service__para { margin-top: var(--s3); color: var(--haze); max-width: 34em; }
.service__list { margin-top: var(--s4); border-top: 1px solid var(--line); }
.service__list li {
  display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); line-height: 1.45;
}
.service__list li::before {
  content: ""; flex: none; width: 9px; height: 10px; margin-top: 0.42em;
  background: var(--signal); clip-path: var(--hex);
}

/* Fan of three phones */
.fan { position: relative; display: grid; place-items: center; min-height: min(68vh, 620px); }
.fan__phone { --h: min(52vh, 480px); grid-area: 1 / 1; }
.fan__phone:nth-child(1) { z-index: 1; }
.fan__phone:nth-child(2) { z-index: 3; }
.fan__phone:nth-child(3) { z-index: 2; }
/* Resting fan when GSAP isn't driving it (no JS, or reduced motion) */
html:not(.js) .fan__phone:nth-child(1) { transform: translateX(-62%) rotate(-9deg) scale(0.86); }
html:not(.js) .fan__phone:nth-child(3) { transform: translateX(62%) rotate(9deg) scale(0.86); }

/* Browser frame */
.browser {
  overflow: hidden; border-radius: 14px; background: #111214;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 110px -40px rgba(0, 0, 0, 0.85), 0 0 160px -50px rgba(4, 216, 217, 0.3);
}
.browser__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #1c1d20; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #34363a; }
.browser__url {
  margin-inline: auto; padding: 4px 18px; border-radius: 99px; background: #111214;
  font-size: 0.75rem; color: #a3a3a3; translate: -18px 0;
}
.browser__view { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.browser__view img { width: 100%; height: auto; }

/* Automation flow */
.service--auto { align-items: start; }
.service--auto .service__text {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s3);
}
.service--auto .service__text > div { grid-column: 1 / span 6; }
.service--auto .service__list { grid-column: 8 / span 5; margin-top: 0; }
.flow { grid-column: 1 / -1; position: relative; margin-top: var(--s8); }
.flow__track {
  position: absolute; top: 31px; left: calc(100% / 12); right: calc(100% / 12);
  height: 2px; background: var(--line); overflow: hidden;
}
.flow__fill {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--petrol), var(--signal));
}
.flow__pulse {
  position: absolute; top: 0; left: 0; width: 120px; height: 100%; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}
.flow.is-running .flow__pulse { opacity: 1; animation: pulse 2.6s linear infinite; }
@keyframes pulse { from { transform: translateX(-120px); } to { transform: translateX(110vw); } }
.flow__nodes { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); }
.node { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.node__hex {
  display: grid; place-items: center; width: 56px; height: 64px; margin-bottom: 10px;
  clip-path: var(--hex); background: var(--trench); color: var(--haze);
  transition: background-color 0.5s, color 0.5s, transform 0.6s var(--ease-out);
}
.node__hex svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node.is-on .node__hex { background: var(--signal); color: var(--abyss); transform: scale(1.06); }
.node__title { font-weight: 680; font-stretch: 110%; line-height: 1.25; }
.node__sub { font-size: var(--t-sm); color: var(--haze); line-height: 1.4; max-width: 16ch; }

@media (max-width: 1024px) {
  .section-head .h2 { grid-column: 1 / -1; }
  .section-head__text { grid-column: 1 / span 9; }
  .service__text, .service__visual,
  .service--web .service__text, .service--web .service__visual { grid-column: 1 / -1; grid-row: auto; }
  .service__visual { margin-top: var(--s6); }
  .service--auto .service__text > div, .service--auto .service__list { grid-column: 1 / -1; }
  .service--auto .service__list { margin-top: var(--s4); }
}
@media (max-width: 760px) {
  .section-head__text { grid-column: 1 / -1; }
  .fan { min-height: 420px; }
  .fan__phone { --h: 360px; }
  html:not(.js) .fan__phone:nth-child(1) { transform: translateX(-46%) rotate(-8deg) scale(0.84); }
  html:not(.js) .fan__phone:nth-child(3) { transform: translateX(46%) rotate(8deg) scale(0.84); }
  .flow { margin-top: var(--s6); }
  .flow__track { top: 32px; bottom: 32px; left: 27px; right: auto; width: 2px; height: auto; }
  .flow__fill { transform-origin: top; transform: scaleY(0); }
  .flow__pulse { width: 100%; height: 120px; background: linear-gradient(180deg, transparent, #fff, transparent); }
  @keyframes pulse { from { transform: translateY(-120px); } to { transform: translateY(900px); } }
  .flow__nodes { grid-template-columns: 1fr; gap: var(--s4); }
  .node { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: var(--s3); row-gap: 2px; }
  .node__hex { grid-row: span 2; margin-bottom: 0; }
  .node__title { align-self: end; }
}

/* ==========================================================================
   Work: VSI case study, a sideways reel
   ========================================================================== */
.work { position: relative; margin-top: var(--section); }
.work__pin { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.work__rail {
  --gap: clamp(24px, 3vw, 48px);
  display: flex; align-items: center; gap: var(--gap);
  padding-inline: var(--gutter); width: max-content;
}
/* position: relative matters. Without it, absolutely positioned children
   (the screen-reader "opens in a new tab" labels) take .work__pin as their
   containing block, escape this strip's sideways scroll, and widen the whole
   page to ~2900px on phones, which makes mobile browsers zoom out. */
.work__track { position: relative; display: flex; align-items: center; gap: var(--gap); outline-offset: -4px; }
.work__intro { flex: 0 0 min(500px, 84vw); padding-right: var(--s5); }
.work__hint { display: none; }
.work__title {
  font-size: var(--t-h2); line-height: 0.92;
  font-weight: 820; font-stretch: 125%; letter-spacing: -0.04em;
}
.work__text { margin-top: var(--s3); color: var(--haze); }
.work__list { margin-top: var(--s4); border-bottom: 1px solid var(--line); }
.work__list div {
  display: grid; grid-template-columns: 9.5em 1fr; gap: var(--s2);
  padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.45;
}
.work__list dt { font-weight: 650; }
.work__list dd { color: var(--haze); }
.video-toggle {
  min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font-size: var(--t-sm); color: var(--haze); text-decoration: underline; text-underline-offset: 0.3em;
}
.video-toggle:hover { color: var(--foam); }
.work__intro .video-toggle { margin-top: var(--s3); }
.service__text .video-toggle { margin-top: var(--s2); }

.reel-card { flex: 0 0 auto; width: clamp(220px, 18vw, 290px); }
.reel-card:nth-of-type(even) { margin-top: 14vh; }
.reel-card:nth-of-type(odd) { margin-bottom: 14vh; }
.reel-card__frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: var(--trench);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.reel-card__frame video { width: 100%; height: 100%; object-fit: cover; }
.reel-card figcaption, .site-card figcaption, .news-card figcaption {
  display: grid; gap: 2px; margin-top: 14px; font-size: 0.9375rem; line-height: 1.35;
}
.reel-card strong, .site-card strong, .news-card strong { font-weight: 650; }
.reel-card figcaption span, .site-card figcaption span, .news-card figcaption span { color: var(--haze); font-size: var(--t-sm); }
.site-card figcaption .textlink { display: inline-block; padding-block: 10px; }
.hero__ctas .textlink, .finale__ctas .textlink { padding-block: 10px; }
.site-card { flex: 0 0 min(760px, 72vw); }
.browser__view--still { aspect-ratio: 16 / 10; }
.news-card { flex: 0 0 clamp(260px, 22vw, 340px); }
.news-card__frame {
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.news-card__frame img { width: 100%; height: auto; }
.work__end { flex: 0 0 min(440px, 84vw); padding-left: var(--s5); }
.work__end-title {
  margin-bottom: var(--s4); font-size: var(--t-h3); line-height: 1.1;
  font-weight: 760; font-stretch: 118%; letter-spacing: -0.02em; text-wrap: balance;
}
.work__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--s4); height: 2px; background: var(--line); }
.work__progress span { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }

/* Native sideways scroll: phones, tablets, and reduced motion */
.work--native .work__pin { height: auto; display: block; padding-block: var(--s4); overflow: visible; }
.work--native .work__rail { display: block; width: auto; padding-inline: 0; }
.work--native .work__intro { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto var(--s5); padding-right: 0; }
.work--native .work__hint { display: block; margin-top: var(--s2); font-size: var(--t-sm); color: var(--haze); }
.work--native .work__track {
  align-items: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) var(--s3); scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--reef) transparent;
}
.work--native .work__track > * { scroll-snap-align: start; }
.work--native .reel-card:nth-of-type(n) { margin: 0; }
.work--native .work__end { align-self: center; padding-left: 0; padding-right: var(--gutter); }
.work--native .work__progress { display: none; }
@media (max-width: 900px) {
  .reel-card { width: min(62vw, 260px); }
  .site-card { flex-basis: 84vw; }
  .work__end { flex-basis: 78vw; }
}

/* ==========================================================================
   Daylight: process + FAQ
   ========================================================================== */
.daylight {
  --haze: var(--ink-soft); --line: rgba(21, 21, 21, 0.12);
  margin-top: var(--section); background: var(--daylight); color: var(--ink); color-scheme: light;
}
.daylight :focus-visible { outline-color: var(--petrol-ink); }
.daylight .textlink:hover { color: var(--petrol-ink); }

.process {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3);
  padding-block: var(--section);
  /* full-bleed petrol field behind a width-limited grid */
  background: var(--petrol-deep); box-shadow: 0 0 0 100vmax var(--petrol-deep); clip-path: inset(0 -100vmax);
  color: #fff; color-scheme: dark;
  --ink-soft: rgba(255, 255, 255, 0.82); --line: rgba(255, 255, 255, 0.22);
}
.process :focus-visible { outline-color: #fff; }
.process__head { grid-column: 1 / span 5; position: sticky; top: 120px; align-self: start; }
.process__intro { margin-top: var(--s3); color: var(--ink-soft); font-size: var(--t-lead); max-width: 22em; }
.process__body { grid-column: 7 / span 6; position: relative; }
.process__rail { position: absolute; left: 27px; top: 32px; bottom: 96px; width: 2px; background: var(--line); }
.process__fill { position: absolute; inset: 0; background: var(--signal); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s4); padding-bottom: var(--s7); }
.step:last-child { padding-bottom: 0; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 64px; clip-path: var(--hex);
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.25rem; font-weight: 800; font-stretch: 125%;
  transition: background-color 0.5s, color 0.5s;
}
.step.is-on .step__num { background: var(--signal); color: var(--ink); }
.step__title { padding-top: 14px; font-size: var(--t-h3); line-height: 1.1; font-weight: 760; font-stretch: 115%; letter-spacing: -0.02em; }
.step__text { margin-top: 12px; color: var(--ink-soft); max-width: 34em; }
.step__meta { margin-top: 14px; font-size: var(--t-sm); font-weight: 650; color: #bff7f7; }

.faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3);
  padding-block: var(--section);
}
.faq__head { grid-column: 1 / span 5; }
.faq__intro { margin-top: var(--s3); color: var(--ink-soft); max-width: 24em; }
.faq__list { grid-column: 7 / span 6; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.1875rem; font-weight: 650; font-stretch: 106%; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--petrol-ink); }
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding-bottom: var(--s3); color: var(--ink-soft); max-width: 38em; }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

@media (max-width: 900px) {
  .process__head, .process__body, .faq__head, .faq__list { grid-column: 1 / -1; }
  .process__head { position: static; margin-bottom: var(--s5); }
  .faq__head { margin-bottom: var(--s4); }
  .step { column-gap: var(--s3); }
}

/* ==========================================================================
   Finale: the mark locks
   ========================================================================== */
.finale {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center;
  padding: var(--s8) var(--gutter); text-align: center;
}
.finale__glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0.45; transition: opacity 1.2s var(--ease-out);
  background:
    radial-gradient(40% 36% at 50% 34%, rgba(4, 216, 217, 0.14), transparent 70%),
    radial-gradient(70% 60% at 50% 40%, rgba(3, 137, 166, 0.22), transparent 72%);
}
.finale.is-locked .finale__glow { opacity: 1; }
.finale__mark { position: relative; width: clamp(110px, 12vw, 170px); margin-bottom: var(--s6); }
.finale__mark .mark { width: 100%; height: auto; overflow: visible; }
.finale__ring {
  position: absolute; left: 50%; top: 50%; width: 180%; height: auto; translate: -50% -50%;
  fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: 0; transform: scale(0.5);
}
.finale.is-locked .finale__ring { animation: ring 1.6s var(--ease-out) forwards; }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.5); } 100% { opacity: 0; transform: scale(2.2); } }
.finale__title {
  max-width: 12ch; font-size: clamp(3rem, 0.6rem + 8vw, 8.5rem); line-height: 0.9;
  font-weight: 820; font-stretch: 125%; letter-spacing: -0.045em; text-wrap: balance;
}
.finale__text { margin-top: var(--s4); max-width: 34em; color: var(--haze); font-size: var(--t-lead); line-height: 1.5; }
.finale__ctas { margin-top: var(--s5); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2) var(--s4); }
.finale__note { margin-top: var(--s3); font-size: var(--t-sm); color: var(--haze); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding-block: var(--s6) var(--s4); font-size: 0.9375rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: var(--s5); }
.footer__brand { display: flex; gap: var(--s2); align-items: flex-start; color: var(--haze); max-width: 30em; }
.footer__brand .mark { width: 34px; height: auto; flex: none; }
.footer__brand b { color: var(--foam); font-stretch: 115%; }
.footer__nav, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__nav a { text-decoration: none; color: var(--haze); transition: color 0.2s; }
.footer__nav a:hover { color: var(--foam); }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 var(--s3);
  margin-top: var(--s6); padding-top: var(--s2); border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--haze);
}
.footer__legal .video-toggle { font-size: 0.8125rem; }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--s4); }
  .footer__nav, .footer__contact { gap: 0; }
  .footer__nav a, .footer__contact a { padding-block: 10px; }   /* 44px touch rows */
}

/* ==========================================================================
   Portrait phones
   Laptops, tablets and landscape phones keep everything above. On a tall,
   narrow iPhone screen three things overlapped: the hero mark and the
   headline, the story's text cards and the phone, and the load scene's
   tower and its sentence. Checked at 390×664 (an iPhone with Safari's bars).
   ========================================================================== */
@media (max-width: 900px) and (orientation: portrait) {
  /* Hero: the mark sits in the flow above the headline, never behind it */
  .hero { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100svh; }
  .hero__mark {
    position: relative; top: auto; right: auto; translate: none; flex: none;
    align-self: flex-end; height: clamp(120px, 21svh, 210px);
    margin: 84px calc(var(--gutter) - 4px) 0 0;
  }
  .hero__content { height: auto; flex: 1; justify-content: center; padding-top: var(--s3); padding-bottom: var(--s6); }
  .hero__foot { margin-top: var(--s4); gap: var(--s3); }
  .hero__lede { font-size: 1.0625rem; }

  /* Story: the phone stays pinned on top with its caption underneath.
     Nothing slides over the phone any more. */
  .story--captions .story__stage {
    display: flex; flex-direction: column; align-items: center;
    height: 100vh; height: 100svh; padding: 72px var(--gutter) 14px;
  }
  .story--captions .phone--story { --h: clamp(260px, calc(100svh - 340px), 560px); }
  .story--captions .story__meta { width: min(100%, 340px); }
  .story--captions .story__captions {
    display: grid; align-content: start; flex: 1;
    width: min(100%, 440px); margin-top: var(--s2);
  }
  .story--captions .story__chapters { margin-top: -100vh; margin-top: -100svh; }
  .story--captions .chapter,
  .story--captions .chapter:first-child { min-height: 85vh; min-height: 85svh; padding: 0; }
  /* the original cards stay in the page for screen readers, off screen */
  .story--captions .chapter__card {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .caption {
    grid-area: 1 / 1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity 0.45s, transform 0.6s var(--ease-out);
  }
  .caption.is-current { opacity: 1; transform: none; pointer-events: auto; }
  .caption .chapter__time { font-size: 1.9rem; }
  .caption .chapter__title { margin: 0; font-size: 1.9rem; }
  .caption .chapter__text, .caption .chapter__link { grid-column: 1 / -1; }
  .caption .chapter__text { margin-top: var(--s1); font-size: 0.9375rem; line-height: 1.5; }
  .caption .chapter__link { margin-top: 2px; }
  .caption .chapter__link a:only-child { padding-block: 8px; }

  /* Load: the headline is anchored near the top (no empty band above it),
     and the scene below takes the full width and the rest of the height.
     The ring is a tall oval sized so every card keeps ~20px from the screen
     edge and clear space from its neighbours. */
  .load--animate .load__inner { align-content: start; gap: var(--s4); padding-top: 88px; }
  .load--animate .load__line { align-self: start; }
  .load__scene {
    width: 100%; aspect-ratio: auto;
    height: clamp(220px, calc(100vh - 330px), 380px); height: clamp(220px, calc(100svh - 330px), 380px);
    --rx: 0.33; --ry: 0.40;
  }
  .load__spokes { transform: scale(0.68, 1.18); }   /* lines stop short of the cards */
  /* smaller cards on phones: the word and its tick, no leading icon */
  .chip { gap: 5px; padding: 6px 9px; font-size: 0.75rem; border-radius: 8px; }
  .chip__icon { display: none; }
  .chip__check { width: 12px; height: 12px; }

  /* Services fan: smaller phones that stay inside the screen */
  .fan { min-height: 360px; }
  .fan__phone { --h: 300px; }
}
/* Small load scenes: shrink the cards so the ring never crowds */
@container (max-height: 260px) {
  .chip { gap: 5px; padding: 5px 8px 5px 7px; font-size: 0.6875rem; }
  .chip__icon { width: 12px; height: 12px; }
  .chip__check { width: 11px; height: 11px; }
}
/* Short portrait phones (iPhone SE with Safari's bars): trim the story caption */
@media (max-width: 900px) and (orientation: portrait) and (max-height: 660px) {
  .story--captions .phone--story { --h: clamp(230px, calc(100svh - 320px), 560px); }
  .caption .chapter__link { display: none; }
}

/* ==========================================================================
   Reduced motion: everything in its final, readable state
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  body::after { animation: none; }
  .js .hero__word { transform: none; }
  .js .hero [data-intro], .js .nav, .js .hero .mark__piece, .js .hero .mark__sq { opacity: 1; }
  .js .chapter:not(.is-current) { opacity: 1; }
  .screen--site.is-active .site__page img { animation: none; }
  .notif, .cal__event--new, .search__results { opacity: 1; transform: none; }
}
