/* Naredni Nivo: the page's whole look.
   Son Daven leads the look: two tones (here near-black and light grey, with one signal red), an uppercase flared roman for display (Marcellus),
   wide technical capitals for labels and the wordmark (Michroma), engraved scenes, striped wordmarks, index numbers.
   Delta Cafés leads the chrome: the glass pill header and its menu, glass cards, the draggable row and its
   scrollbar, connector words paired into headings, the footer on the light ground after one last seep.
   The kit's UI fragments (assets/ui) keep their own CSS and take their colours from the --fx-* tokens here. */

:root {
  /* "Mono and signal red", chosen November 2026. The token names (tan, bone, ember) are kept from the first,
     warm palette: --tan is the light ground and the ink on dark, --bone the paper of the app mock-ups,
     --ember the one accent. */
  --dark: #0d0d0d;
  --dark-2: #161616;
  --dark-3: #202020;
  --tan: #e4e4e4;
  --tan-2: #efefef;
  --bone: #fafafa;
  --bone-2: #ececec;
  --bone-muted: #666666;
  --ember: #ff3b30;
  --ember-deep: #e0281e; /* the accent as text or a mark on the light mock-ups */
  --ember-ink: #ffffff;
  --muted-on-tan: #444444;
  --muted-on-dark: #8a8a8a;

  --font-display: var(--nf-display), "Marcellus", "Iowan Old Style", "Times New Roman", serif;
  --font-label: var(--nf-label), "Michroma", "Arial", sans-serif;
  --font-mark: var(--nf-mark), "Syncopate", "Michroma", "Arial Black", sans-serif;
  --font-text: var(--nf-text), "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --edge: clamp(16px, 2.8vw, 44px);
  --gap: clamp(16px, 2vw, 28px);
  --maxw: 1640px;
  --hdr-h: 76px;
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* ground tokens (dark by default) */
  --bg: var(--dark);
  --ink: var(--tan);
  --ink-2: var(--muted-on-dark);
  --line: color-mix(in srgb, var(--tan) 20%, transparent);
  --line-2: color-mix(in srgb, var(--tan) 38%, transparent);
  --pill: var(--tan);
  --pill-ink: var(--dark);
  --card: var(--dark-2);

  /* the kit's fragments: paper-coloured app windows */
  --fx-bg: var(--bone);
  --fx-surface: var(--bone-2);
  --fx-ink: var(--dark);
  --fx-muted: var(--bone-muted);
  --fx-accent: var(--ember-deep);
  --fx-accent-ink: var(--ember-ink);
  --ui-font: var(--font-text);
  --ui-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ui-radius: 12px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px;
  --t-label: 12px; --t-small: 13px; --t-body: 15px;
}

.sec--dark { --bg: var(--dark); --ink: var(--tan); --ink-2: var(--muted-on-dark); --line: color-mix(in srgb, var(--tan) 20%, transparent); --line-2: color-mix(in srgb, var(--tan) 38%, transparent); --pill: var(--tan); --pill-ink: var(--dark); --card: var(--dark-2); }
.sec--tan { --bg: var(--tan); --ink: var(--dark); --ink-2: var(--muted-on-tan); --line: color-mix(in srgb, var(--dark) 20%, transparent); --line-2: color-mix(in srgb, var(--dark) 40%, transparent); --pill: var(--dark); --pill-ink: var(--tan); --card: var(--dark); }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
/* the scrollbar's room is kept even while scrolling is off (the preloader, the phone menu): where scrollbars take room
   (Windows), the page used to widen when the preloader hid it and narrow again as it left, recentring the header under
   the logo that had just landed and resizing every scene and split heading in the frame the page appeared */
html { -webkit-text-size-adjust: 100%; background: var(--dark); scrollbar-gutter: stable; }
html.is-loading { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--tan);
  font: 400 16px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ember); color: var(--ember-ink); }

.skip-link { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--tan); color: var(--dark); font: 11px/1 var(--font-label); letter-spacing: .01em; transform: translateY(-160%); pointer-events: auto; }
.skip-link:focus { transform: none; }

.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--edge); }

/* ------------------------------------------------------------------ type */
.label { font: 400 13px/1.55 var(--font-label); letter-spacing: .01em; }
.label--dots { display: inline-flex; align-items: center; gap: 14px; }
.label--dots::before, .label--dots::after { content: "• • •"; letter-spacing: .25em; font-size: 8px; }
.idx { display: inline-grid; place-items: center; min-width: 40px; height: 22px; padding: 0 8px; margin-right: 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; }

h1, .d1, .d2, .d3, h3 { font-family: var(--font-display); font-weight: 400; }
.d1 { font-size: clamp(44px, 7.6vw, 132px); line-height: .98; letter-spacing: -.015em; }
.d2 { font-size: clamp(36px, 5.5vw, 96px); line-height: 1; letter-spacing: -.012em; }
.d3 { font-size: clamp(30px, 3.9vw, 64px); line-height: 1.04; letter-spacing: -.01em; }
h3 { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.08; letter-spacing: -.005em; }
.lead { font: 400 clamp(18px, 1.4vw, 22px)/1.42 var(--font-display); }

/* connector words inside a heading: once set small in the label face, now plain heading text in the same face and size */
.pair { font: inherit; letter-spacing: inherit; text-transform: inherit; }

/* the striped wordmark: Son Daven's lined lettering, a gradient clipped to the text */
.wordmark {
  font: 700 1em/.86 var(--font-mark);
  text-transform: uppercase;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: transparent;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px);
  -webkit-background-clip: text;
  background-clip: text;
}

/* the striped symbol: the logo's two N shapes in the wordmark's stripes (3px on, 2px off), one stripe grid across both
   so the lines run on from one N into the other. The upper N (the next level) in the ground's ink, the lower one at half
   strength. Sized by its width; for large uses only (under about 60px the stripes blur, use the solid .mark there). */
.nn-sym { position: relative; display: inline-block; width: 1em; aspect-ratio: 276 / 207; flex: none; color: var(--ink); }
.nn-sym > i { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px);
  -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat; mask: var(--m) 0 0 / 100% 100% no-repeat; }
.nn-sym__lo { --m: url(/assets/brand/nn-lower.svg); color: color-mix(in srgb, currentColor 50%, transparent); }
.nn-sym__up { --m: url(/assets/brand/nn-upper.svg); }

[data-slot] { outline: 1px dashed var(--ember); outline-offset: 2px; border-radius: 2px; }

/* ------------------------------------------------------------------ links and buttons */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 13px/1.4 var(--font-label);
  letter-spacing: .01em;
  padding: 6px 0;
}
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; }
.link:hover::after { animation: link-draw .8s var(--ease); }
@keyframes link-draw { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--pill); color: var(--pill-ink);
  font: 400 13px/1 var(--font-label); letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 12px; }

/* the main action: a pill and its round arrow (Delta). Hover swaps their colours with a ripple: each shape holds a copy
   of itself in the other's colours (.cta__fill) shown through a circle, which main.js ripple() grows from where the
   pointer comes in and shrinks back to where it leaves, so the label splits cleanly at the ripple's edge. From the
   keyboard, or without the script, it grows from the middle. */
.cta { --d: 52px; --g: 6px; --t: .6s; position: relative; display: inline-flex; align-items: center; gap: var(--g); }
.cta__pill, .cta__dot { position: relative; overflow: hidden; height: var(--d); border-radius: 999px; }
.cta__pill {
  display: inline-flex; align-items: center; padding: 0 26px;
  background: var(--pill); color: var(--pill-ink);
  font: 400 13px/1 var(--font-label); letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease);
}
.cta__dot { display: inline-grid; place-items: center; width: var(--d); background: var(--ember); color: var(--ember-ink); }
.cta__fill {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  clip-path: circle(0 at 50% 50%); transition: clip-path var(--t) cubic-bezier(.4, 0, .2, 1);
}
.cta__pill .cta__fill { display: inline-flex; align-items: center; padding: inherit; background: var(--ember); color: var(--ember-ink); }
.cta__dot .cta__fill { display: grid; place-items: center; background: var(--pill); color: var(--pill-ink); }
.cta__dot svg, .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.cta:focus-visible .cta__fill { clip-path: circle(75% at 50% 50%) !important; } /* over the ripple's inline circle */
@media (hover: hover) { html:not(.js) .cta:hover .cta__fill { clip-path: circle(75% at 50% 50%); } }
.cta:active .cta__pill { transform: scale(.97); }
.cta--big { --d: 64px; }
.cta--big .cta__pill { padding: 0 34px; font-size: 12px; }

.round {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink);
  transition: background-color .3s, color .3s, transform .25s var(--ease), opacity .3s;
}
.round svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.round:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.round:active:not(:disabled) { transform: scale(.94); }
.round:disabled { opacity: .35; cursor: default; }

.chev { width: 10px; height: 10px; transition: transform .3s var(--ease); }

/* glass: Delta's frosted surfaces */
.glass {
  background: color-mix(in srgb, var(--dark) 46%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid color-mix(in srgb, var(--tan) 22%, transparent);
  border-radius: var(--r);
}

/* line grounds for frames (no WebGL): fine vertical hatching */
.stripes-dark { background-color: var(--dark); background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tan) 13%, transparent) 0 1px, transparent 1px 7px); }
.stripes { background-color: var(--dark-3); background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tan-2) 20%, transparent) 0 1.5px, transparent 1.5px 6px); }
.stripes--websites { background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tan-2) 24%, transparent) 0 2px, transparent 2px 6px), linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--ember) 25%, transparent)); }
.stripes--software { background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tan-2) 20%, transparent) 0 1px, transparent 1px 5px), radial-gradient(120% 90% at 100% 0, color-mix(in srgb, var(--tan-2) 22%, transparent), transparent 60%); }
.stripes--automation { background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tan-2) 24%, transparent) 0 2.5px, transparent 2.5px 7px), linear-gradient(0deg, color-mix(in srgb, var(--dark) 60%, transparent), transparent 60%); }
.stripes--training { background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tan-2) 18%, transparent) 0 1.5px, transparent 1.5px 6px), radial-gradient(80% 80% at 0 100%, color-mix(in srgb, var(--ember) 28%, transparent), transparent 70%); }

.scene { display: block; pointer-events: none; color: var(--tan); }

/* language switch: SR is coming */
.lang { display: inline-flex; align-items: center; gap: 2px; font: 400 12px/1 var(--font-label); letter-spacing: .01em; }
.lang > span, .lang > a { padding: 6px 8px; border-radius: 999px; }
.lang__on { background: color-mix(in oklab, currentColor 14%, transparent); }
.lang__off { opacity: .55; color: inherit; text-decoration: none; transition: opacity .2s; }
.lang__off:hover, .lang__off:focus-visible { opacity: 1; }

/* ------------------------------------------------------------------ preloader */
.preloader { display: none; }
html.is-loading .preloader { display: block; position: fixed; inset: 0; z-index: 100; background: var(--dark); color: var(--tan); }
/* leaving, the ground goes and the cells alone cover the page, so it shows through as they wipe. Scoped like the rule
   above: as a bare .preloader.is-leaving it lost to it, the ground stayed, and the page stayed black till the preloader
   was removed, then appeared all at once */
html.is-loading .preloader.is-leaving { background: transparent; }
.preloader__cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(20, 1fr); grid-template-rows: repeat(12, 1fr); }
.preloader__cells i { background: var(--dark); margin: 0 -1px -1px 0; transform-origin: left center; }
.preloader__in { position: absolute; inset: 0; padding: calc(var(--edge) + 6px) var(--edge); display: grid; grid-template-rows: 1fr auto; }
.preloader__sym { position: absolute; left: 50%; top: 50%; width: min(50vmin, 400px); transform: translate(-50%, -72%); color: var(--tan); }
.preloader__sym .nn-sym__lo { clip-path: inset(0 100% 0 0); }
.preloader__sym .nn-sym__up { opacity: 0; visibility: hidden; }
.preloader__logo {
  /* set in the header logo's own size (.hdr__logo-in) and drawn at twice it: it flies home to scale 1, so where it
     lands it is the header's logo glyph for glyph and the hand-over (main.js) cannot shift by a hair. Centred on its
     own width; the scale grows from its top left, which keeps the flight's sums in main.js plain */
  position: absolute; left: 0; right: 0; width: max-content; margin-inline: auto; top: calc(50% + min(18vmin, 150px));
  transform-origin: 0 0; transform: translateX(-50%) scale(2);
  display: flex; align-items: center; gap: .55em; font: 400 11px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.preloader__logo .mark { width: 1.33em; height: 1em; }
.preloader__foot { grid-row: 2; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.preloader__list { display: grid; gap: 4px; color: var(--muted-on-dark); }
.preloader__pct { margin: 0 0 0 auto; text-align: right; font: 400 clamp(64px, 11vw, 168px)/.8 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.preloader__pct small { font: 400 .28em var(--font-label); vertical-align: .2em; margin-left: .1em; }
html.is-repeat .preloader__list { display: none; }

/* ------------------------------------------------------------------ header (Delta's pills, Son Daven's behaviour) */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; pointer-events: none; transition: transform .7s var(--ease); }
.hdr.is-hidden { transform: translateY(-130%); }
/* one look over every section, as on Delta Cafés: dark glass dense enough to read over the light grounds too */
.hdr { --hg: color-mix(in srgb, var(--dark) 78%, transparent); --hi: var(--tan); --hl: color-mix(in srgb, var(--tan) 16%, transparent); --hb: var(--tan); --hbi: var(--dark); }
.hdr__bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px;
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--edge) 0;
}
.hdr__pill, .hdr__logo, .hdr__toggle, .hdr__menu-in {
  pointer-events: auto;
  background: var(--hg); color: var(--hi);
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--hl);
}
.hdr__pill { display: flex; align-items: center; gap: 2px; height: 50px; padding: 0 6px; border-radius: 999px; }
.hdr__pill--left { justify-self: end; }
.hdr__pill--right { justify-self: start; gap: 8px; padding-left: 10px; }
.hdr__pill .btn { background: var(--hb); color: var(--hbi); }
.hdr__link {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 999px;
  font: 400 12.5px/1 var(--font-label); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .3s;
}
.hdr__link:hover, .hdr__link[aria-expanded="true"] { background: color-mix(in oklab, var(--hi) 13%, transparent); }
.hdr__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.hdr__logo {
  display: flex; align-items: center; height: calc(var(--hdr-h) + 14px); margin-top: -15px; padding: 14px 24px 0;
  border-radius: 0 0 24px 24px; border-top: 0;
}
.hdr__logo-in { display: flex; align-items: center; gap: .55em; font: 400 11px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.hdr__logo-in .mark { width: 1.33em; height: 1em; }
html.is-loading .hdr__logo-in { opacity: 0; }
html.is-loading .hdr__pill, html.is-loading .hdr__toggle { opacity: 0; }
.hdr__toggle { display: none; }
.mark { width: 1.33em; height: 1em; flex: none; }

.hdr__menu { position: fixed; left: 0; right: 0; top: calc(var(--hdr-h) + 8px); pointer-events: none; padding-inline: var(--edge); }
.hdr__menu[hidden] { display: none; }
.hdr__menu-in {
  max-width: 1080px; margin-inline: auto; padding: 10px; border-radius: 26px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.menu-card { display: grid; align-content: start; gap: 8px; padding: 8px 8px 14px; border-radius: 18px; transition: background-color .3s; }
.menu-card:hover { background: color-mix(in oklab, var(--hi) 9%, transparent); }
.menu-card__art { position: relative; height: 128px; border-radius: 12px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; color: var(--tan); overflow: hidden; }
.menu-card__pillar { font: 400 12px/1 var(--font-label); letter-spacing: .01em; }
.menu-card__price { font: 400 24px/1 var(--font-display); transition: transform .5s var(--ease); }
.menu-card:hover .menu-card__price { transform: translateY(-3px); }
.menu-card__name { font: 400 17px/1.1 var(--font-display); padding-inline: 4px; }
.menu-card__line { font-size: 13px; line-height: 1.4; opacity: .8; padding-inline: 4px; }

.sheet { position: fixed; inset: 0; z-index: -1; pointer-events: auto; background: var(--dark); color: var(--tan); padding: calc(var(--hdr-h) + 40px) var(--edge) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet__nav .label { color: var(--muted-on-dark); margin-bottom: 12px; }
.sheet__svc a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--tan) 20%, transparent); font: 400 22px/1.1 var(--font-display); }
.sheet__svc small { font: 400 14px/1 var(--font-display); letter-spacing: .02em; color: var(--muted-on-dark); white-space: nowrap; }
.sheet__main { margin-top: 28px; display: grid; gap: 4px; }
.sheet__main a { font: 400 40px/1.05 var(--font-display); }
.sheet__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }

/* ------------------------------------------------------------------ sections */
.sec { position: relative; background: var(--bg); color: var(--ink); padding-block: clamp(104px, 11vw, 176px); overflow: clip; }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; margin-bottom: clamp(48px, 5.5vw, 88px); align-items: end; }
.head__label { grid-column: 1 / -1; display: flex; align-items: center; }
.head > h2 { grid-column: 1 / span 8; }
.head:not(:has(.head__aside)) > h2 { grid-column: 1 / -1; max-width: 17ch; }
.head__aside { grid-column: 9 / -1; display: grid; gap: 22px; justify-items: start; padding-bottom: 6px; }
.rule { height: 7px; border-block: 1px solid var(--line-2); margin-bottom: clamp(56px, 6vw, 96px); }

/* the seeps: where the ground changes, the bottom of the upper section soaks down into the next one. Its own ground and
   scene run on underneath; bars of the next ground stand up from its foot (main.js seep()), sinking as you scroll. The
   upper section adds the seep's height below its content. */
.sec--seep { --seep: clamp(150px, 13vw, 210px); }
.sec.sec--seep { padding-bottom: calc(clamp(104px, 11vw, 176px) + var(--seep)); }
.seep { position: absolute; left: 0; right: 0; bottom: -1px; height: calc(var(--seep) + 1px); z-index: 1; pointer-events: none; color: var(--seep-to); contain: strict; }
.seep canvas { display: block; width: 100%; height: 100%; } /* the bars, drawn by main.js seep() */
.seep--dark { --seep-to: var(--dark); }
.seep--tan { --seep-to: var(--tan); }

/* ------------------------------------------------------------------ 1. hero */
.hero { min-height: 100svh; padding: 0; display: flex; isolation: isolate; }
.sec.sec--seep.hero { padding-bottom: var(--seep); }
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; transform-origin: 50% 100%; opacity: .34; } /* a third of its light: the land stays behind the words, never competing */
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 12% 100%, color-mix(in srgb, var(--dark) 82%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--dark) 35%, transparent), transparent 22%); }
.hero__in { display: flex; flex-direction: column; justify-content: center; gap: 40px; min-height: 100svh; padding-top: calc(var(--hdr-h) + 40px); padding-bottom: clamp(80px, 14vh, 160px); } /* a little above the middle */
.hero h1 { font-size: clamp(36px, 4.6vw, 80px); line-height: .9; letter-spacing: -.012em; max-width: 15ch; }
.hero__lead { margin-top: 26px; max-width: 48ch; font: 400 clamp(17px, 1.3vw, 20px)/1.45 var(--font-display); }
/* the place the hero's land is drawn from, quiet in the top right corner */
.hero__place { position: absolute; right: var(--edge); top: calc(var(--hdr-h) + 44px); display: flex; align-items: center; gap: 10px; color: var(--muted-on-dark); }
.hero__place::before { content: ""; width: 18px; height: 1px; background: currentColor; }
@media (max-width: 767px) { .hero__place { top: calc(var(--hdr-h) + 24px); } }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 30px; }

.report-card { display: grid; gap: 12px; padding: 20px; color: var(--tan); font-size: 14px; }
.rc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 12px/1.4 var(--font-label); letter-spacing: .01em; color: var(--muted-on-dark); }
.rc-live { display: inline-flex; align-items: center; gap: 8px; color: var(--tan); }
.rc-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); animation: rc-pulse 2.4s ease-out infinite; }
@keyframes rc-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ember) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--ember) 0%, transparent); } }
.report-card__score { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.report-card__num { font: 400 52px/1 var(--font-display); }
.report-card__num small { font-size: 18px; color: var(--muted-on-dark); margin-left: 2px; }
.report-card__label { font: 400 12px/1.4 var(--font-label); letter-spacing: .01em; color: var(--muted-on-dark); }
.report-card__bar { height: 8px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tan) 28%, transparent) 0 2px, transparent 2px 5px); }
.report-card__bar i { display: block; height: 100%; width: calc(var(--k) * 100%); background: repeating-linear-gradient(90deg, var(--tan) 0 3px, transparent 3px 5px); }
.report-card__head { font: 400 12px/1.4 var(--font-label); letter-spacing: .01em; color: var(--muted-on-dark); margin-top: 4px; }
.report-card__list { display: grid; counter-reset: op; }
.report-card__list li { counter-increment: op; display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--tan) 20%, transparent); }
.report-card__list li::before { content: "0" counter(op); font: 400 11px/1 var(--font-label); color: var(--muted-on-dark); }
.report-card__list span { flex: 1; }
.report-card__list b, .report-card__foot b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--tan); }
.report-card__foot { padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--tan) 20%, transparent); }
.report-card__foot b { font: 400 16px/1 var(--font-display); }

/* ------------------------------------------------------------------ 2. assessment: the survey's first question, live */
.assess__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
.assess__copy { display: grid; gap: 26px; justify-items: start; }
.assess__copy .d2 { font-size: clamp(36px, 3.4vw, 56px); text-wrap: balance; }
.assess__copy .lead { max-width: 40ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--ink-2); }
.assess__q { display: grid; gap: 22px; padding: clamp(28px, 3vw, 44px); border-radius: var(--r); background: var(--tan-2); border: 1px solid var(--line); }
.assess__q h3 { margin: 0; font: 400 clamp(30px, 3vw, 48px)/1.02 var(--font-display); }
.assess__hint { margin: -8px 0 0; font: 400 15px/1.3 var(--font-text); color: var(--ink-2); }
.assess__needs { display: flex; flex-wrap: wrap; gap: 10px; }
/* an option: a pill that fills dark with an ember dot when picked (main.js needs()) */
.need {
  display: inline-flex; align-items: center; padding: 11px 17px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--ink); font: 500 15px/1.1 var(--font-text); text-align: left; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.need::before { content: ""; flex: none; width: 0; height: 7px; margin-right: 0; border-radius: 50%; background: var(--ember); transition: width .3s var(--ease), margin .3s var(--ease); }
.need[aria-pressed="true"] { background: var(--dark); color: var(--tan); border-color: var(--dark); }
.need[aria-pressed="true"]::before { width: 7px; margin-right: 8px; }
@media (hover: hover) { .need:hover { border-color: var(--ink); transform: translateY(-2px); } }
.need:active { transform: scale(.97); }
.need:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.assess__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.assess__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(40px, 4vw, 64px) 0 0; border-top: 1px solid var(--line-2); }
.assess__facts > div { display: grid; gap: 10px; align-content: start; padding: 22px 24px 0 0; }
.assess__facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.assess__facts dt { color: var(--ink-2); }
.assess__facts dd { margin: 0; font: 400 clamp(20px, 1.7vw, 26px)/1.15 var(--font-display); }

/* ------------------------------------------------------------------ 3. statement */
.statement { min-height: calc(100svh + var(--seep)); display: flex; align-items: center; }
.statement__scene { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; }
.statement__in { display: grid; justify-items: center; text-align: center; gap: 36px; }
.statement__text { max-width: 19ch; font: 400 clamp(30px, 3.9vw, 62px)/1.02 var(--font-display); letter-spacing: -.008em; text-wrap: balance; }
.statement__text strong { font-weight: 400; color: var(--tan-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }

/* ------------------------------------------------------------------ 4. services */
.services { padding-top: 0; }
.marquee { overflow: hidden; border-bottom: 1px solid var(--line-2); padding-block: clamp(18px, 2vw, 28px) clamp(14px, 1.6vw, 22px); margin-bottom: clamp(88px, 9vw, 140px); position: relative; }
.marquee::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--line-2); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__run { display: flex; flex: none; }
.marquee__run > span { display: inline-flex; align-items: center; gap: .5em; padding-right: .5em; font: 400 clamp(36px, 5vw, 84px)/1 var(--font-display); white-space: nowrap; }
.marquee__run i { font-style: normal; font-size: .36em; }

.svc-row { position: relative; z-index: 1; overflow: hidden; outline-offset: -3px; padding-block: 8px; }
.svc-track { display: flex; gap: var(--gap); width: max-content; padding-inline: max(var(--edge), (100vw - var(--maxw)) / 2 + var(--edge)); touch-action: pan-y; }
.svc { flex: none; width: clamp(290px, 31vw, 470px); display: grid; grid-template-rows: auto 1fr; background: var(--card); color: var(--tan); border-radius: var(--r); overflow: hidden; user-select: none; }
.svc__art { position: relative; height: clamp(250px, 21vw, 320px); overflow: hidden; }
.svc__body { display: grid; align-content: start; gap: 14px; padding: 22px 24px 26px; }
.svc__pillar { display: flex; justify-content: space-between; color: var(--muted-on-dark); }
.svc h3 { font-size: clamp(24px, 2.1vw, 32px); }
.svc__quote { font: 400 18px/1.35 var(--font-display); }
.svc__line { font-size: 14.5px; line-height: 1.5; color: var(--muted-on-dark); }
.svc__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--tan) 20%, transparent); font: 400 15px/1.3 var(--font-display); letter-spacing: .02em; }

.frag { position: absolute; left: 50%; width: min(360px, 86%); transform: translateX(-50%); }
.frag--rise { top: 26px; }
.frag--corner { left: 28px; top: 30px; width: 560px; transform: none; }
.frag .ui-panel { box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }

.svc-foot { display: flex; align-items: center; gap: 28px; margin-top: 28px; }
.scrollbar { position: relative; flex: 1; height: 24px; }
.scrollbar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.scrollbar__thumb { position: absolute; left: 0; top: 50%; height: 7px; margin-top: -3.5px; border-radius: 999px; background: var(--ink); width: 120px; }
.svc-nav { display: flex; gap: 10px; }
/* the carousel hint: says the row moves, its arrow nudging until the row is first used (main.js adds .is-used) */
.svc-hint { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink-2); white-space: nowrap; transition: opacity .5s var(--ease); }
.svc-hint i { font-style: normal; font-size: 14px; color: var(--ink); animation: svc-nudge 1.6s var(--ease) infinite; }
.svc-hint.is-used { opacity: .55; }
.svc-hint.is-used i { animation: none; }
@keyframes svc-nudge { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(6px); } }
.compare--solo { margin-top: 0; }
.compare--solo .compare__h { align-self: end; }

/* ------------------------------------------------------------------ 5. work */
.work { padding-top: 0; }
.work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: stretch; }
.work__text { grid-column: 1 / span 6; display: grid; align-content: start; gap: 28px; }
.work__quote { display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.work__quote blockquote { font: 400 clamp(20px, 1.7vw, 26px)/1.35 var(--font-display); }
.work__quote figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.work__name { font: 400 18px/1.2 var(--font-display); }
.work__logo { grid-column: 8 / -1; min-height: 360px; border-radius: var(--r); display: grid; place-items: center; color: var(--tan); }
.work__logo-slot { font: 400 clamp(22px, 2vw, 30px)/1 var(--font-display); }
/* the client's site on a laptop with a phone in front of it, drawn in CSS around two screenshots */
.work__shot { grid-column: 7 / -1; position: relative; align-self: center; container-type: inline-size; padding-bottom: 3cqw; }
/* the floor both devices stand on */
.work__shot::after { content: ""; position: absolute; z-index: -1; left: 2cqw; right: 2cqw; bottom: 1.2cqw; height: 3.5cqw; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent); filter: blur(1.2cqw); }
/* laptop: a 92cqw deck with an 84cqw lid centred on it */
.laptop { position: relative; width: 92cqw; }
.laptop__lid { position: relative; margin: 0 4cqw; padding: 1.5cqw 1.5cqw 2.3cqw; border-radius: 2.2cqw 2.2cqw .5cqw .5cqw; background: #0c0c0d;
  box-shadow: 0 0 0 .22cqw #b7b9bd, 0 0 0 .3cqw #8e9095, 0 2cqw 4cqw -2cqw rgba(0,0,0,.35); }
.laptop__lid::before { content: ""; position: absolute; left: 50%; top: .55cqw; width: .5cqw; height: .5cqw; transform: translateX(-50%); border-radius: 50%; background: #23252a; box-shadow: inset 0 0 0 .1cqw #34373d; }
.laptop__screen { overflow: hidden; border-radius: .5cqw; background: #f4f1ea; }
.laptop__screen img { display: block; width: 100%; height: auto; }
.laptop__bar { display: flex; align-items: center; gap: .55cqw; height: 3.2cqw; padding: 0 1.2cqw; background: #e8e6e2; border-bottom: 1px solid #d6d3ce; }
.laptop__bar i { width: .85cqw; height: .85cqw; border-radius: 50%; background: #c9c6c1; }
.laptop__bar span { margin: 0 auto; transform: translateX(-2cqw); min-width: 30%; padding: .45cqw 1.6cqw; border-radius: 99px; background: #fbfaf8; color: #6d6a65; font: 400 1.25cqw/1 var(--font-text); text-align: center; letter-spacing: .01em; }
.laptop__base { position: relative; height: 1.7cqw; border-radius: .2cqw .2cqw 1.6cqw 1.6cqw / .2cqw .2cqw 1.4cqw 1.4cqw;
  background: linear-gradient(#eceef0 0, #c9cbcf 35%, #a4a7ac 78%, #7d8085 100%); box-shadow: 0 .6cqw 1.2cqw -.6cqw rgba(0,0,0,.45); }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 13cqw; height: .65cqw; transform: translateX(-50%); border-radius: 0 0 .9cqw .9cqw; background: linear-gradient(#a9acb1, #c6c8cc); }
.laptop__base::after { content: ""; position: absolute; left: 4cqw; right: 4cqw; top: 0; height: 1px; background: rgba(255,255,255,.7); }
/* phone: 17cqw wide, standing in front of the lid's right edge */
.phone { position: absolute; right: 0; bottom: 3cqw; width: 17cqw; padding: .75cqw; border-radius: 3cqw; background: #0c0c0d;
  box-shadow: 0 0 0 .22cqw #a9abb0, 0 0 0 .32cqw #7f8186, -1.2cqw 1.6cqw 3cqw -1cqw rgba(0,0,0,.45); }
.phone::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 1.45cqw; width: 4.4cqw; height: 1.25cqw; transform: translateX(-50%); border-radius: 99px; background: #0c0c0d; }
.phone::after { content: ""; position: absolute; right: -.5cqw; top: 25%; width: .3cqw; height: 5cqw; border-radius: 0 .2cqw .2cqw 0; background: #8e9095; }
.phone__screen { overflow: hidden; border-radius: 2.3cqw; background: #f4f1ea; }
.phone__screen img { display: block; width: 100%; height: auto; }
.work__blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(56px, 6vw, 96px); }
.work__block { display: grid; align-content: start; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.work__num { font: 400 clamp(56px, 6vw, 104px)/.82 var(--font-display); margin-bottom: 10px; }
.work__block dd { font-size: 15px; line-height: 1.5; }

/* ------------------------------------------------------------------ 6. automation */
/* the globe and the order's route over it (route.js): pins on land that turn with the earth, the line filling as they
   come round to the front. Placed by transform every frame, so no layout work while it turns. */
.auto__globe { position: absolute; left: 0; bottom: -6%; width: 100%; height: 74%; pointer-events: none; }
.auto__scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.auto__space { height: 340px; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.route path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.route__done { stroke: var(--ember); }
.route__todo { stroke: color-mix(in srgb, var(--tan) 55%, transparent); stroke-dasharray: 2 5; }
.pin, .route__mail { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.pin__dot { position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--dark); box-shadow: inset 0 0 0 1.5px var(--tan); transition: background-color .4s, box-shadow .4s; }
.pin.is-on .pin__dot { background: var(--tan); }
.pin.is-act .pin__dot { background: var(--ember); box-shadow: 0 0 0 1.5px var(--ember), 0 0 0 9px color-mix(in srgb, var(--ember) 18%, transparent); }
.pin__tag { position: absolute; left: 16px; top: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; background: var(--dark); white-space: nowrap; color: color-mix(in srgb, var(--tan) 70%, transparent); }
.pin__tag .tool-icon { width: 22px; height: 22px; padding: 3px; border-radius: 6px; transition: opacity .4s; }
.pin__tag b { display: block; font: 400 18px/1.1 var(--font-display); color: var(--tan); transition: color .4s; }
.pin__tag em { display: block; font: 400 12.5px/1.3 var(--font-text); font-style: normal; }
.pin:not(.is-on) .pin__tag b { color: color-mix(in srgb, var(--tan) 60%, transparent); }
.pin:not(.is-on) .tool-icon { opacity: .6; }
.route__mail > span { position: absolute; left: 0; top: 26px; transform: translateX(-50%); font: 400 12px/1 var(--font-label); letter-spacing: .01em; color: var(--dark); background: var(--tan); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* a block that moves with the scroll (main.js parallax) gets its own layer: moved by the compositor, never repainted
   (the assessment window, shadow and all, was repainted on every frame: about 50ms a frame in a test browser) */
[data-parallax] { will-change: transform; }

/* ------------------------------------------------------------------ 7. pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
/* one card solid (the first, where most clients start), the others outlined on the page ground so the prices don't all shout */
.plan { --plan-muted: var(--ink-2); --plan-line: var(--line); display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink); min-height: 440px; transition: transform .35s var(--ease); }
.plan:first-child { --plan-muted: var(--muted-on-dark); --plan-line: color-mix(in srgb, var(--tan) 20%, transparent); background: var(--dark); color: var(--tan); border-color: var(--dark); }
.plan:hover { transform: translateY(-4px); }
.plan__pillar { color: var(--plan-muted); }
.plan h3 { font-size: clamp(22px, 1.8vw, 28px); min-height: 2em; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font: 400 clamp(40px, 3.6vw, 58px)/1 var(--font-display); margin-top: 14px; }
.plan__price small { font: 400 12px/1 var(--font-label); letter-spacing: .01em; color: var(--plan-muted); }
.plan__price small:first-child { width: 100%; }
.plan__time { padding-bottom: 14px; border-bottom: 1px solid var(--plan-line); }
.plan__inc { font-size: 14.5px; line-height: 1.5; color: var(--plan-muted); }
.plan__tools { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; margin-top: auto; }
.plan__tools li { display: inline-flex; align-items: center; gap: 8px; }
.tool-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 7px; background: var(--bone); }
.tool-icon > svg { display: block; width: 100%; height: 100%; }
.plan__link { margin-top: auto; align-self: flex-start; }
.plan__tools + .plan__link { margin-top: 6px; }

.roadmap {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); align-items: center; gap: var(--gap);
  margin-top: var(--gap); padding: clamp(24px, 3vw, 40px); border-radius: var(--r); color: var(--tan);
  background-color: var(--dark);
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tan) 10%, transparent) 0 1px, transparent 1px 7px);
}
.roadmap__name { display: grid; gap: 10px; }
.roadmap__name .label { color: var(--muted-on-dark); }
.roadmap h3 { font-size: clamp(30px, 3vw, 48px); }
.roadmap__price { font: 400 clamp(32px, 3.2vw, 52px)/1 var(--font-display); white-space: nowrap; }
.roadmap__text { font: 400 clamp(16px, 1.2vw, 19px)/1.45 var(--font-display); }

.compare { margin-top: clamp(72px, 8vw, 128px); }
.compare__row { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); column-gap: var(--gap); padding-block: 18px; border-top: 1px solid var(--line-2); align-items: baseline; }
.compare__row > * { min-width: 0; }
.compare__row--head { border-top: 0; padding-bottom: 22px; align-items: end; }
.compare__h h3 { font-size: clamp(26px, 2.6vw, 42px); }
.compare__label { font: 400 18px/1.25 var(--font-display); }
.compare__row [role="cell"] { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.compare__row .is-us { color: var(--ink); }
.compare__row [role="cell"].is-us { font: 400 17px/1.35 var(--font-display); }
.compare__row--head .is-us::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); margin-right: 8px; vertical-align: .1em; }

/* ------------------------------------------------------------------ 8. footer: the close on black over the ridge, then one
   last, deeper seep into the light ground with the links and the wordmark */
.foot__close { --seep: clamp(190px, 17vw, 260px); }
.sec.sec--seep.foot__close { padding-bottom: calc(clamp(270px, 22vw, 360px) + var(--seep)); }
/* the ridge rises behind the bottom of the close and runs on down through the seep, fading out near its foot. It runs
   48px past the edge so the scroll parallax (±7%) never opens a gap. */
.foot__scene { position: absolute; left: 0; bottom: -48px; width: 100%; height: calc(clamp(380px, 30vw, 520px) + var(--seep) + 48px); -webkit-mask-image: linear-gradient(#000 calc(100% - 48px - var(--seep) * .55), transparent calc(100% - 60px)); mask-image: linear-gradient(#000 calc(100% - 48px - var(--seep) * .55), transparent calc(100% - 60px)); }
/* the place the close's land is drawn from, quiet at the right, level with the top of the land */
.foot__place { position: absolute; z-index: 1; right: var(--edge); bottom: calc(clamp(380px, 30vw, 520px) + var(--seep) - 200px); display: flex; align-items: center; gap: 10px; color: var(--muted-on-dark); }
.foot__place::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.foot__cta { display: grid; justify-items: center; text-align: center; gap: 30px; position: relative; z-index: 1; }
.foot__cta h2 { max-width: 12ch; }
.foot__text { max-width: 44ch; font: 400 clamp(17px, 1.3vw, 20px)/1.45 var(--font-display); }
.sec.foot__base { padding: clamp(72px, 7vw, 112px) 0 0; }
.foot__base > .wrap { container-type: inline-size; }
.foot__card { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 32px var(--gap); }
.foot__brand { display: grid; align-content: start; gap: 14px; }
.foot__logo { display: inline-flex; align-items: center; gap: .6em; font: 400 13px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; }
.foot__logo .mark { width: 1.47em; height: 1.1em; }
.foot__lede { font: 400 20px/1.3 var(--font-display); max-width: 18ch; }
.foot__col { display: grid; align-content: start; gap: 14px; }
.foot__col h3 { color: var(--ink-2); font-family: var(--font-label); }
.foot__col ul { display: grid; gap: 8px; }
.foot__col a { font-size: 15px; transition: opacity .3s; }
.foot__col a:hover { opacity: .65; }
.foot__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
/* the wordmark spans the wrap and is cropped by the bottom of the page */
.foot__word { font-size: 9.7cqi; text-align: center; margin: clamp(40px, 5vw, 88px) 0 -.2em; pointer-events: none; }

/* ------------------------------------------------------------------ phone action bar */
.actionbar { display: none; }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1199px) {
  .hdr__pill--left .hdr__link[href="#work"] { display: none; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { min-height: 0; }
  .foot__card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  :root { --hdr-h: 64px; }
  .hdr__bar { grid-template-columns: auto 1fr auto; align-items: center; padding-top: 10px; }
  .hdr__pill { display: none; }
  .hdr__logo { height: 48px; margin: 0; padding: 0 18px; border-radius: 999px; border-top: 1px solid var(--hl); }
  .hdr__toggle { grid-column: 3; display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; border-radius: 50%; }
  .hdr__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
  .hdr.is-open .hdr__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .hdr.is-open .hdr__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .hdr__menu { display: none !important; }

  .head > h2, .head__aside { grid-column: 1 / -1; }
  .work__text, .work__logo, .work__shot { grid-column: 1 / -1; }
  .work__shot { margin-top: 8px; }
  .work__logo { min-height: 240px; }
  .work__blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .roadmap { grid-template-columns: 1fr auto; }
  .roadmap__text { grid-column: 1 / -1; }
  .assess__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .assess__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .assess__facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 767px) {
  /* a phone: the earth wider than the screen (r 1.25 in sections.jsx), its horizon just above the seep */
  .auto__globe { bottom: calc(var(--seep) * .6); height: 340px; }
  .auto__space { height: 190px; }
  .pin__tag { left: 0; top: -12px; transform: translate(-50%, -100%); flex-direction: column; gap: 4px; padding: 4px 6px; }
  .pin__tag .tool-icon { width: 18px; height: 18px; padding: 2px; }
  .pin__tag b { font-size: 13px; }
  .pin__tag em { display: none; }
  .route__mail > span { top: 16px; }
  .sec { padding-block: 88px; }
  .sec.sec--seep { padding-bottom: calc(88px + var(--seep)); }
  .sec.hero { padding-top: 0; } /* the hero clears the header itself (.hero__in); the section padding above would double it */
  .hero__in { justify-content: flex-end; padding-top: calc(var(--hdr-h) + 32px); padding-bottom: clamp(28px, 3.4vw, 48px); gap: 28px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  /* on a phone the scene dims itself round the text (main.js haloField), so the shade only keeps the header readable */
  .hero__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--dark) 45%, transparent), transparent 14%); }
  .hero__lead { font-size: 16.5px; margin-top: 18px; }
  .assess__q { padding: 22px 18px 24px; gap: 18px; border-radius: 18px; }
  .assess__q h3 { font-size: 28px; }
  .need { padding: 10px 14px; font-size: 14px; }
  .assess__actions { gap: 18px 24px; }
  .assess__facts > div { padding-right: 16px; }
  .assess__facts > div + div { padding-left: 16px; }
  .assess__facts > div:nth-child(3) { padding-left: 0; }
  .assess__facts dd { font-size: 19px; }
  .statement { min-height: 0; }
  .sec.sec--seep.hero { padding-bottom: var(--seep); }
  .statement__scene { opacity: .6; -webkit-mask-image: linear-gradient(90deg, #000, transparent 24%, transparent 76%, #000); mask-image: linear-gradient(90deg, #000, transparent 24%, transparent 76%, #000); }
  .marquee { margin-bottom: 72px; }
  .svc { width: 84vw; }
  .svc-foot { gap: 14px 16px; flex-wrap: wrap; }
  .svc-hint { flex-basis: 100%; }
  .round { width: 44px; height: 44px; }
  .work__blocks { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .compare__row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .compare__row--head { display: block; }
  .compare__row--head > span { display: none; }
  .compare__label { grid-column: 1 / -1; }
  .compare__row [role="cell"]::before { content: attr(data-col); display: block; font: 400 11px/1.5 var(--font-label); letter-spacing: .01em; color: var(--ink-2); margin-bottom: 2px; }
  .compare__row [role="cell"]:nth-child(n+4) { display: none; }
  .roadmap { grid-template-columns: 1fr; }
  .foot__card { grid-template-columns: 1fr 1fr; }
  .foot__legal { flex-direction: column; align-items: flex-start; }
  .cta { --d: 48px; }
  .cta__pill { padding: 0 20px; font-size: 12.5px; }
  .cta--big { --d: 56px; }
  .cta--big .cta__pill { padding: 0 22px; }

  .actionbar {
    display: flex; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px var(--edge) calc(12px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .6s var(--ease); pointer-events: none;
  }
  .actionbar.is-on { transform: none; pointer-events: auto; }
  .actionbar .cta__pill { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
}

/* ------------------------------------------------------------------ reduced motion */
html.is-reduced *, html.is-reduced *::before, html.is-reduced *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }

/* ================================================================ HEADER: LONG (the chosen default, moved from nav-variants.css)
   One long glass bubble across the page: wordmark left, links centred, language and action right. */
html[data-nav~="long"] .hdr__bar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px;
  width: calc(100% - 2 * var(--edge)); max-width: calc(var(--maxw) - 2 * var(--edge)); margin: 14px auto 0; padding: 5px;
  border-radius: 999px; pointer-events: auto;
  background: var(--hg); color: var(--hi); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--hl); transition: opacity .6s var(--ease);
}
html.is-loading[data-nav~="long"] .hdr__bar { opacity: 0; }
html[data-nav~="long"] :is(.hdr__pill, .hdr__logo, .hdr__toggle) { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-nav~="long"] .hdr__logo { grid-column: 1; grid-row: 1; justify-self: start; height: 44px; margin: 0; padding: 0 18px; border-radius: 0; }
html[data-nav~="long"] .hdr__pill { height: 44px; padding: 0; }
html[data-nav~="long"] .hdr__pill--left { grid-column: 2; grid-row: 1; justify-self: center; }
html[data-nav~="long"] .hdr__pill--right { grid-column: 3; grid-row: 1; justify-self: end; gap: 8px; }
html[data-nav~="long"] .hdr__pill .btn { height: 40px; }
html[data-nav~="long"] .hdr__menu { top: calc(var(--hdr-h) + 4px); }
@media (max-width: 1023px) {
  html[data-nav~="long"] .hdr__bar { grid-template-columns: auto 1fr auto; margin-top: 10px; padding: 3px; }
  html[data-nav~="long"] .hdr__logo { padding: 0 16px; }
  html[data-nav~="long"] .hdr__toggle { width: 44px; height: 44px; }
}

/* ---------------------------------------------------------------- 404 (app/global-not-found.jsx): the trail to the sign */
.nf { position: relative; min-height: 100svh; overflow: hidden; background: var(--dark); color: var(--tan); }
.nf__scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nf__text { position: relative; z-index: 1; padding: clamp(40px, 9vh, 96px) var(--edge, 16px) 0; max-width: 760px; }
.nf__text h1 { margin: 0 0 14px; }
.nf__text .lead { margin: 0 0 22px; color: var(--muted-on-dark); }
.nf__actions { display: flex; gap: 24px; flex-wrap: wrap; margin: 0; }
.nf::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 52% 46% at 18% 18%, var(--dark) 35%, transparent 100%); }
.nf__text { z-index: 2; }
@media (max-width: 767px) { .nf::before { background: linear-gradient(to bottom, var(--dark) 0, var(--dark) 26%, transparent 40%); } }
