/* Layout: a long scroll film over a fixed WebGL stage. Copy sits in the left
   half of a 12-column grid, the particle object lives on the right.
   The page moves from night (top) to dawn to a pale morning (bottom). */
:root {
  --night: #06070a;   /* hero ground */
  --bone: #ece6da;    /* text at night */
  --glow: #9b8cff;    /* the one accent, borrowed from the particles */
  --fog: #e8e9e4;     /* morning ground */
  --ink: #121513;     /* text in the morning */
  --signal: #e46d5d;  /* missed call */
  --calm: #8fc59a;    /* handled */

  --bg: var(--night);
  --fg: var(--bone);
  --fg-2: rgba(236, 230, 218, 0.64);
  --fg-3: rgba(236, 230, 218, 0.56);
  --line: rgba(236, 230, 218, 0.14);
  --accent: var(--glow);

  --sans: "Geist", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: var(--sans);  /* one family, light weight, tight tracking */
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);

  /* layers */
  --z-stage: 0;
  --z-content: 1;
  --z-grain: 30;
  --z-chapter: 35;
  --z-nav: 40;
  --z-menu: 38;
  --z-loader: 60;

  /* motion */
  --dur-press: 160ms;
  --dur-hover: 200ms;
  --dur-ui: 250ms;
  --dur-exit: 0.3s;
  --dur-enter: 0.5s;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* enter / exit */
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);      /* on-screen movement */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);   /* full-screen menu */
  color-scheme: dark;
}

html.is-light {
  --fg: var(--ink);
  --fg-2: rgba(18, 21, 19, 0.68);
  --fg-3: rgba(18, 21, 19, 0.64);
  --line: rgba(18, 21, 19, 0.15);
  --accent: #4636ff;
  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: color 0.5s;
}
::selection { background: var(--accent); color: var(--night); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: fixed; left: var(--gutter); top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-size: 14px; transition: top 0.3s;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Stage, grain, loader ---------- */

.gl {
  position: fixed; left: 0; top: 0; z-index: var(--z-stage);
  width: 100%; height: 100vh; height: 100lvh;
  display: block; pointer-events: none;
}
.gl-fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none;
  background:
    radial-gradient(circle at 72% 46%, rgba(122, 92, 255, 0.6) 0 7%, transparent 7.4%),
    radial-gradient(circle at 72% 46%, rgba(46, 197, 255, 0.22), transparent 30%);
}
html.no-webgl .gl { display: none; }
html.no-webgl .gl-fallback { display: block; }

main, .footer { position: relative; z-index: var(--z-content); }

.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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 1.4s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

.loader {
  position: fixed; inset: 0; z-index: var(--z-loader); display: grid; place-items: center;
  background: var(--night); color: var(--bone);
  transition: opacity 1.1s var(--ease-out) 0.1s, visibility 0s linear 1.3s;
}
html:not(.js) .loader, html.is-ready .loader { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__mark { width: 34px; height: 34px; }
.loader__bar { width: 120px; height: 1px; background: rgba(236, 230, 218, 0.14); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--bone); transform-origin: left; animation: load 1.6s var(--ease-io) infinite; }
@keyframes load {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.1% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter) 20px;
  transition: transform 0.8s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -36px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 25%, transparent);
  opacity: 0; transition: opacity 0.5s;
}
.nav.is-scrolled::before { opacity: 0.92; }
.nav.is-hidden:not(:focus-within) { transform: translateY(-110%); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 22px; height: 22px; color: var(--fg); }
.brand__word { font-weight: 500; font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; }

.nav__links { display: flex; gap: 36px; font-size: 14px; color: var(--fg-2); }
.nav__links a { position: relative; padding-block: 10px; transition: color var(--dur-hover) ease; }
.nav__links a[aria-current] { color: var(--fg); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__menu {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px;
  border: 0; background: none; color: var(--fg); cursor: pointer; font-size: 14px;
}
.nav__menu-icon { position: relative; width: 22px; height: 10px; }
.nav__menu-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--dur-ui) var(--ease-io), top var(--dur-ui) var(--ease-io); }
.nav__menu-icon i:first-child { top: 0; }
.nav__menu-icon i:last-child { top: 8.5px; }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Phone menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(env(safe-area-inset-top, 0px) + 112px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
  background: var(--bg); color: var(--fg);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-exit) var(--ease-out), visibility 0s linear var(--dur-exit);
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease-drawer); }
.menu__links { display: grid; border-top: 1px solid var(--line); }
.menu__links a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1; letter-spacing: -0.04em;
  transform: translate3d(0, 12px, 0); opacity: 0; transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.menu.is-open .menu__links a { opacity: 1; transform: none; transition: opacity 0.35s var(--ease-out) calc(0.06s + var(--i, 0) * 0.05s), transform 0.45s var(--ease-drawer) calc(0.06s + var(--i, 0) * 0.05s); }
.menu__foot { display: grid; justify-items: start; gap: 16px; color: var(--fg-2); }
html.menu-open .nav { transform: none; }
html.menu-open .nav::before { opacity: 0; }
html.menu-open .nav .btn--ghost { opacity: 0; pointer-events: none; }

/* ---------- Buttons and links ---------- */

.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: transform 0.6s var(--ease-out), background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 13.5px; }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn {
  scale: 1;
  transition: transform 0.6s var(--ease-out), background-color var(--dur-hover) ease, color var(--dur-hover) ease,
    box-shadow var(--dur-hover) ease, opacity var(--dur-hover) ease, scale var(--dur-press) var(--ease-out);
}
.btn:active { scale: 0.97; }
a, button, summary { touch-action: manipulation; }
button, .btn, summary { -webkit-user-select: none; user-select: none; }
.btn__arrow { width: 15px; height: 15px; transition: transform var(--dur-hover) var(--ease-out); }

.link {
  display: inline-flex; align-items: center; gap: 10px; padding-block: 6px;
  font-size: 16px; color: var(--fg);
  background: linear-gradient(currentColor, currentColor) right bottom / 100% 1px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}

/* ---------- Type ---------- */

.eyebrow, .label, .asks__title {
  font-family: var(--sans); font-size: 13px; line-height: 1.4;
  letter-spacing: 0; color: var(--fg-2);
}
.label { display: flex; align-items: center; gap: 12px; font-weight: 400; transition: color 0.5s; }
.label span { color: var(--accent); }

.h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 5.2rem); line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
em { font-style: normal; }
.h2 em, .hero__title em, .contact__title em, .scrub em { color: var(--accent); transition: color 0.5s; }

.body {
  max-width: 34em; color: var(--fg-2);
  font-size: clamp(1.02rem, 1.15vw, 1.18rem); line-height: 1.62;
  transition: color 0.5s;
}

.ln { display: block; overflow: hidden; padding: 0.04em 0.12em 0.16em; margin: -0.04em -0.12em -0.16em; }
.ln > span { display: inline-block; }

/* ---------- Reveals (only with JS and motion allowed) ---------- */

html.js:not(.reduce-motion) [data-reveal="fade"] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1.3s var(--ease-out) var(--d, 0s), transform 1.5s var(--ease-out) var(--d, 0s);
}
html.js:not(.reduce-motion) [data-reveal="fade"].is-in { opacity: 1; transform: none; }
html.js:not(.reduce-motion) [data-reveal="lines"] .ln > span {
  transform: translate3d(0, 115%, 0);
  transition: transform 1.6s var(--ease-out) calc(var(--d, 0s) + var(--i, 0) * 0.1s);
}
html.js:not(.reduce-motion) [data-reveal="lines"].is-in .ln > span { transform: none; }
/* list items arrive one after another (60ms apart) once their list is in view */
html.js:not(.reduce-motion) [data-stagger] > * {
  opacity: 0; transform: translate3d(0, 16px, 0);
  transition: opacity 1s var(--ease-out) calc(0.15s + var(--i, 0) * 0.06s), transform 1.2s var(--ease-out) calc(0.15s + var(--i, 0) * 0.06s);
}
html.js:not(.reduce-motion) .is-in[data-stagger] > *,
html.js:not(.reduce-motion) .is-in [data-stagger] > * { opacity: 1; transform: none; }
html.js:not(.reduce-motion) .hero [data-reveal="lines"] .ln > span { transition-delay: calc(0.15s + var(--i, 0) * 0.12s); }

/* ---------- Sections ---------- */

.ch { position: relative; padding-block: clamp(120px, 24vh, 260px); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.split__main { grid-column: 1 / span 6; display: grid; gap: clamp(24px, 4vh, 40px); align-content: start; min-width: 0; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: 120px clamp(80px, 13vh, 150px);
}
.hero__inner { display: grid; gap: clamp(28px, 4.5vh, 52px); }
.hero__title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.6rem, 6.2vw, 7rem); line-height: 0.98; letter-spacing: -0.055em;
}
.hero__foot { display: grid; justify-items: start; gap: 28px; }
.hero__lede { max-width: 31em; text-wrap: balance; color: var(--fg-2); font-size: clamp(1.02rem, 1.2vw, 1.2rem); }
.split__main > .link, .principles__cta { justify-self: start; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--fg-3);
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--fg-2), transparent); animation: cue 2.6s var(--ease-io) infinite; }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Chapter indicator */
.chapter {
  position: fixed; right: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); z-index: var(--z-chapter);
  display: flex; align-items: center; gap: 14px; pointer-events: none;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--fg-2);
  opacity: 0; transition: opacity 0.6s, color 0.5s;
}
.chapter.is-on { opacity: 1; }
.chapter__num { color: var(--accent); }
.chapter__num, .chapter__name { display: inline-block; transition: opacity 0.26s, transform 0.26s; }
.chapter.is-swap .chapter__num, .chapter.is-swap .chapter__name { opacity: 0; transform: translateY(6px); }
.chapter__bar { position: relative; width: 56px; height: 1px; background: var(--line); overflow: hidden; }
.chapter__bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* Film frames */
.frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin-block: clamp(48px, 8vh, 96px) clamp(64px, 12vh, 140px); }
.frame__media {
  position: absolute; inset: 0; overflow: hidden; border-radius: 6px; background: #0b0e14;
}
.frame__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame__media img, .frame__media video {
  opacity: 0; transition: opacity 1.2s ease;
}
.frame.has-img img, .frame.has-video video { opacity: 1; }
.frame__art--night {
  background:
    radial-gradient(ellipse 16% 12% at 62% 70%, rgba(150, 190, 255, 0.4), transparent 70%),
    radial-gradient(ellipse 32% 42% at 24% 30%, rgba(255, 176, 110, 0.2), transparent 70%),
    repeating-linear-gradient(180deg, rgba(120, 140, 190, 0.05) 0 6px, transparent 6px 22px),
    linear-gradient(160deg, #0d1424 0%, #070a12 60%, #05070b 100%);
}
.frame__art--morning {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 240, 210, 0.95) 0 5%, rgba(255, 205, 150, 0.5) 12%, transparent 42%),
    repeating-linear-gradient(170deg, rgba(255, 240, 215, 0.14) 0 18px, transparent 18px 46px),
    linear-gradient(180deg, #d9b48f 0%, #b98a63 45%, #6e4c38 100%);
}
.frame__time {
  position: absolute; left: clamp(14px, 2.4vw, 32px); top: clamp(14px, 2.4vw, 32px); z-index: 2;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(236, 230, 218, 0.72);
}
.frame--morning .frame__time { color: rgba(30, 20, 14, 0.7); }
.frame__time b { font-weight: 400; margin-left: 8px; color: #fff; }
.frame--morning .frame__time b { color: #1e140e; }

.notes {
  position: absolute; right: clamp(12px, 2.4vw, 32px); bottom: clamp(12px, 2.4vw, 32px); z-index: 2;
  width: min(340px, 60%); display: grid; gap: 8px;
}
.note {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: 14px;
  background: rgba(14, 16, 22, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  color: #ece6da; font-size: 14px; line-height: 1.35;
  opacity: 0; transform: translate3d(0, 14px, 0) scale(0.98);
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}
html:not(.js) .note, .reduce-motion .note { opacity: 1; transform: none; }
.note.is-on { opacity: 1; transform: none; }
.note b { display: block; font-weight: 500; }
.note span:not(.note__dot) { display: block; color: rgba(236, 230, 218, 0.62); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note time { align-self: start; font-family: var(--mono); font-size: 12px; color: rgba(236, 230, 218, 0.66); font-variant-numeric: tabular-nums; }
.note__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.frame--morning .note { background: rgba(255, 250, 242, 0.62); border-color: rgba(255, 255, 255, 0.5); color: #1d1712; }
.frame--morning .note span:not(.note__dot) { color: rgba(29, 23, 18, 0.62); }
.frame--morning .note time { color: rgba(29, 23, 18, 0.66); }
.frame--morning .note__dot { background: var(--calm); }

/* Word-by-word paragraphs */
.scrub {
  max-width: 22em; font-family: var(--display); font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 3.6rem); line-height: 1.14; letter-spacing: -0.035em;
  text-wrap: pretty;
}
html.js:not(.reduce-motion) .scrub .w { opacity: 0.22; }

/* Trades */
.trades {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 40px;
  margin-top: clamp(80px, 14vh, 160px); padding-top: 28px; border-top: 1px solid var(--line);
}
.trades__lede { color: var(--fg-2); max-width: 22em; }
.trades__list { display: flex; flex-wrap: wrap; font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.4rem); line-height: 1.25; letter-spacing: -0.03em; }
.trades__list li:not(:last-child)::after { content: "·"; padding-inline: 0.35em; color: var(--fg-3); }

/* Listening */
.asks { display: grid; gap: 14px; }
.asks ul { border-top: 1px solid var(--line); }
.asks li {
  position: relative; padding: 16px 0 16px 26px; border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}
.asks li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border: 1px solid var(--accent); border-radius: 50%;
}
.stance {
  max-width: 24em; font-family: var(--display); font-weight: 300;
  font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.25; letter-spacing: -0.025em;
}

/* Map */
.points {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(64px, 11vh, 120px);
}
.point { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.point__tag { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--accent); }
.point h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 1.9vw, 1.9rem); line-height: 1.1; letter-spacing: -0.025em; }
.point p { max-width: 24em; color: var(--fg-2); font-size: 16px; }

.ticker {
  margin-top: clamp(96px, 16vh, 180px); overflow: hidden; padding-block: 20px;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__row { display: flex; width: max-content; animation: tick 70s linear infinite; }
.ticker__row span { padding-inline: 0.9em; font-family: var(--display); font-weight: 300; letter-spacing: -0.03em; font-size: clamp(1.4rem, 2vw, 2rem); color: var(--fg-2); white-space: nowrap; }
.ticker__row span::after { content: "·"; padding-left: 1.8em; color: var(--fg-3); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Services: pinned sequence */
.build { padding: 0; height: 640vh; }
.build__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.build__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.build__copy { grid-column: 1 / span 5; display: grid; gap: clamp(28px, 5vh, 56px); min-width: 0; }
.build__head { display: grid; gap: 18px; }
.build__intro { color: var(--fg-2); max-width: 26em; }
.services { display: grid; }
.service {
  grid-area: 1 / 1; display: grid; gap: 16px; align-content: start;
  opacity: 0; transform: translate3d(0, 16px, 0); filter: blur(6px); pointer-events: none;
  transition: opacity var(--dur-exit) var(--ease-out), transform var(--dur-exit) var(--ease-out), filter var(--dur-exit) var(--ease-out);
}
.service.is-past { transform: translate3d(0, -16px, 0); }
.service.is-active {
  opacity: 1; transform: none; filter: none; pointer-events: auto;
  transition: opacity var(--dur-enter) var(--ease-out) 0.1s, transform var(--dur-enter) var(--ease-out) 0.1s, filter var(--dur-enter) var(--ease-out) 0.1s;
}
.service__num { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--accent); }
.service__title { font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.service__text { max-width: 30em; color: var(--fg-2); font-size: clamp(1rem, 1.15vw, 1.15rem); }
.service__tags { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--fg-3); }
.build__nav { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.build__ticks { display: flex; gap: 6px; }
.build__ticks li { width: 28px; height: 2px; background: var(--line); transition: background-color var(--dur-ui) ease; }
.build__ticks li.is-on { background: var(--fg); }

html:not(.js) .build { height: auto; padding-block: 160px; }
html:not(.js) .build__sticky { position: static; height: auto; }
html:not(.js) .services { gap: 48px; }
html:not(.js) .service { grid-area: auto; opacity: 1; transform: none; }

/* Showcase: horizontal track */
.show { padding: 0; }
.show__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.show__track {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px);
  width: max-content; padding-inline: var(--gutter); will-change: transform;
}
.show__intro { width: min(500px, 82vw); display: grid; gap: 24px; padding-right: clamp(8px, 4vw, 72px); flex: none; }
.show__intro .h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.card { flex: none; width: clamp(240px, 25vw, 380px); display: grid; gap: 14px; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: #111; }
.card__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media img, .card__media video { opacity: 0; transition: opacity 1.2s ease, transform 0.5s var(--ease-out); }
.card.has-img img, .card.has-video video { opacity: 1; }
.card figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.card figcaption b { font-weight: 500; }
.card figcaption span { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--fg-3); padding-top: 3px; }
.card__art--1 { background: radial-gradient(ellipse 34% 30% at 50% 58%, #9b6a44, transparent 70%), radial-gradient(circle at 28% 22%, rgba(255, 214, 170, 0.35), transparent 40%), linear-gradient(170deg, #2a1d15, #120c09); }
.card__art--2 { background: radial-gradient(ellipse 14% 26% at 50% 50%, #d58a3c, transparent 72%), radial-gradient(ellipse 60% 20% at 50% 80%, #5d6366, transparent 70%), linear-gradient(180deg, #cfd2cf, #7d8482); }
.card__art--3 { background: radial-gradient(circle at 40% 55%, #c58b4f 0 14%, transparent 15%), radial-gradient(circle at 62% 48%, #b97c45 0 12%, transparent 13%), radial-gradient(circle at 30% 20%, rgba(255, 236, 205, 0.6), transparent 45%), linear-gradient(180deg, #e7dccb, #b9a58a); }
.card__art--4 { background: linear-gradient(115deg, transparent 55%, rgba(80, 60, 40, 0.18) 55% 70%, transparent 70%), radial-gradient(ellipse 22% 30% at 46% 66%, #a27b54, transparent 70%), linear-gradient(180deg, #f1ece4, #d9d0c3); }
.card__art--5 { background: linear-gradient(170deg, transparent 58%, #1b2a2a 58.5%), radial-gradient(circle at 70% 30%, rgba(170, 195, 220, 0.45), transparent 50%), linear-gradient(180deg, #33465a, #18222e); }

html:not(.js) .show__sticky { position: static; height: auto; padding-block: 160px; overflow-x: auto; }

/* Section 05: the five notes from 01, handled */
.after { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.after__copy { display: grid; gap: clamp(20px, 3vh, 32px); align-content: start; }
.after__notes { display: grid; gap: 10px; }
.after__notes .note span:not(.note__dot) { white-space: normal; }
.note--done .note__dot { background: var(--calm); }

/* Morning */
.principles { display: grid; gap: 28px; margin-top: clamp(96px, 16vh, 180px); }
.principles ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.principles li { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.principles h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em; }
.principles p { color: var(--fg-2); font-size: 16px; }

/* Process */
.ch--process .h2 { margin-top: 28px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(64px, 10vh, 110px); }
.step { position: relative; display: grid; gap: 14px; align-content: start; padding-top: 26px; }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--fg);
  transform-origin: left;
}
html.js:not(.reduce-motion) .step::before { transform: scaleX(0); transition: transform 1.4s var(--ease-out) calc(0.2s + var(--i, 0) * 0.16s); }
html.js:not(.reduce-motion) .steps.is-in .step::before { transform: none; }
.step__n { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--accent); }
.step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2vw, 2.1rem); line-height: 1.05; letter-spacing: -0.03em; }
.step p { color: var(--fg-2); font-size: 16px; max-width: 22em; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.faq__head { display: grid; gap: 28px; position: sticky; top: 120px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
  transition: transform var(--dur-ui) var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item p { max-width: 36em; padding-bottom: 28px; color: var(--fg-2); }
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    height: 0; overflow: hidden;
    transition: height 0.3s var(--ease-out), content-visibility 0.3s allow-discrete;
  }
  .faq__item[open]::details-content { height: auto; }
}

/* Contact */
.ch--contact { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.contact__copy { display: grid; gap: clamp(24px, 4vh, 36px); max-width: 640px; }
.contact__title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(3.2rem, 9vw, 9.2rem); line-height: 0.94; letter-spacing: -0.06em;
}
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.contact__mail { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.copy {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--fg-2);
  transition: border-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.contact__note { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--fg-3); }

/* Footer */
.footer { padding-block: 80px calc(env(safe-area-inset-bottom, 0px) + 28px); border-top: 1px solid var(--line); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) minmax(0, 3fr); gap: 32px; font-size: 16px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p, .footer__meta p { max-width: 24em; color: var(--fg-2); }
.footer__h { margin-bottom: 14px; font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--fg-3); }
.footer ul { display: grid; }
.footer ul a { display: inline-block; padding-block: 6px; color: var(--fg-2); transition: color var(--dur-hover) ease; }
.footer__word {
  margin-top: clamp(64px, 12vh, 140px);
  font-family: var(--display); font-weight: 200; font-size: clamp(5rem, 26vw, 26rem); line-height: 0.8; letter-spacing: -0.08em;
  white-space: nowrap; text-align: center;
}
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--fg-3);
}

/* ---------- Brus part (problem, listening, map, three services) ----------
   Full-screen sticky placards with the formation centred behind them,
   as in the Brus concept, set in this site's type and colour. */

.bs { position: relative; height: 175vh; }
.bs--noise { height: 210vh; }
.bs__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding-block: clamp(96px, 15vh, 150px) clamp(40px, 8vh, 88px);
}
.bs__top { display: grid; gap: clamp(16px, 2.6vh, 24px); max-width: 40rem; }
.bs__top .h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }
.bs__count { color: var(--fg-3); }
.bs__bottom { display: grid; gap: 18px; }
.bs__bottom--text { max-width: 38rem; gap: 6px; }
.bs__bottom p { text-shadow: 0 0 18px var(--bg), 0 0 6px var(--bg); }
.bs__bottom--text .bs__stance, .bs__bottom--text .bs__punch { margin-top: 10px; }
.bs__punch {
  font-family: var(--display); font-weight: 300; letter-spacing: -0.025em;
  font-size: clamp(1.3rem, 1.9vw, 1.8rem); line-height: 1.25; color: var(--fg);
}
.bs__stance {
  max-width: 34rem; font-family: var(--display); font-weight: 300; letter-spacing: -0.02em;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.3;
}
.bs__note { font-size: 13px; color: var(--fg-2); }

.bs-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.bs-specs--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bs-specs > * { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.bs-specs dt, .bs-specs li > span { font-size: 13px; color: var(--accent); }
.bs-specs dd { margin: 0; font-size: 16px; color: var(--fg-2); }
.bs-specs li { font-size: 16px; color: var(--fg); }

/* the noise: notifications scattered across the screen */
.bs-notes { position: absolute; inset: 0; pointer-events: none; }
.bs-notes .note { position: absolute; width: 280px; }
.bs-notes .note span:not(.note__dot) { white-space: normal; }
.bs-notes .note:nth-child(1) { left: 6%; top: 41%; }
.bs-notes .note:nth-child(2) { right: 7%; top: 30%; }
.bs-notes .note:nth-child(3) { left: 30%; top: 58%; }
.bs-notes .note:nth-child(4) { right: 12%; top: 54%; }
.bs-notes .note:nth-child(5) { left: calc(50% - 140px); top: 40%; }
html.js:not(.reduce-motion) .bs-notes .note { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.98); }
html.js:not(.reduce-motion) .bs--noise.is-active .bs-notes .note {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out) calc(0.2s + var(--i, 0) * 0.08s), transform 0.8s var(--ease-out) calc(0.2s + var(--i, 0) * 0.08s);
}

/* labels floating above the map's clusters */
.bs-labels { position: fixed; inset: 0; z-index: var(--z-content); pointer-events: none; }
.bs-label { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.bs-label span {
  display: inline-block; transform: translate(-50%, -100%);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; color: var(--fg); background: rgba(14, 16, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* portrait zigzag (set by the scene): label under the cluster */
.bs-label--below span { transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .bs-specs--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .bs__sticky { padding-block: 96px 32px; }
  /* phones: a soft fade behind the text so the formation can pass underneath */
  .bs__sticky::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 88%, transparent) 0%,
      color-mix(in srgb, var(--bg) 55%, transparent) 26%,
      transparent 40%, transparent 60%,
      color-mix(in srgb, var(--bg) 55%, transparent) 74%,
      color-mix(in srgb, var(--bg) 88%, transparent) 100%);
  }
  .bs__top .h2, .bs__top .body, .bs__bottom { text-shadow: 0 0 24px var(--bg); }
  .bs-specs, .bs-specs--four { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bs-specs > * { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-block: 10px; }
  .bs-specs--four > * { grid-template-columns: 32px minmax(0, 1fr); }
  .bs-notes {
    position: relative; inset: auto; display: grid; justify-items: center; gap: 8px;
  }
  /* all five pain points, a little more compact */
  .bs-notes { gap: 6px; }
  .bs-notes .note { position: static; width: min(320px, 100%); padding: 9px 12px; font-size: 13px; }
  .bs--noise .bs__bottom--text .body { display: none; }
  .bs--noise .bs__bottom--text .bs__punch { margin-top: 0; }
  .bs-label span { padding: 4px 9px; font-size: 12px; }
  /* room for the cluster row: phones keep only the closing line */
  #kartlagger .bs__bottom--text .body { display: none; }
  #kartlagger .bs__sticky::before {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 88%, transparent) 0%,
      color-mix(in srgb, var(--bg) 55%, transparent) 26%,
      transparent 40%, transparent 82%,
      color-mix(in srgb, var(--bg) 88%, transparent) 100%);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .principles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .build__copy { grid-column: 1 / span 6; }
}

@media (max-width: 820px) {
  .after { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .scroll-cue, .chapter { display: none; }
  .hero { padding-bottom: 44px; }
  .ch { padding-block: 104px; }
  .ch--stage { padding-top: 46vh; }
  .split__main, .build__copy { grid-column: 1 / -1; }
  .points { grid-template-columns: 1fr; gap: 28px; }
  .trades { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .frame { aspect-ratio: 4 / 5; }
  .notes { width: auto; left: 12px; }
  .hero__ctas { width: 100%; }
  .build__sticky { align-items: flex-end; padding-bottom: 9vh; }
  .ch--contact { align-items: flex-end; padding-bottom: 96px; padding-top: 50vh; }
  .h2, .hero__title, .scrub, .contact__title, .body, .hero__lede { text-shadow: 0 0 28px var(--bg); }
}

@media (max-width: 520px) {
  .steps, .principles ul { grid-template-columns: 1fr; }
  .btn { --h: 50px; padding: 0 22px; }
  .nav .btn--sm { padding: 0 14px; }
}

@media (min-width: 821px) {
  .menu { display: none; }
}

/* Hover only where there is a real pointer; touch fires false hovers on tap */
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--fg); }
  .btn--ghost:hover { background: var(--fg); color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .link:hover { background-size: 0 1px; }
  .ticker:hover .ticker__row { animation-play-state: paused; }
  .card:hover .card__media img, .card:hover .card__media video { transform: scale(1.03); }
  .copy:hover { border-color: var(--fg-2); color: var(--fg); }
  .footer ul a:hover { color: var(--fg); }
  .footer p a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* Touch screens: every target at least 44px */
@media (pointer: coarse) {
  .btn--sm { --h: 44px; }
  .copy { min-height: 44px; }
  .link { padding-block: 12px; }
  .footer ul a { padding-block: 10px; }
}

/* ---------- Reduced motion ---------- */

/* fewer, gentler animations: opacity stays, movement goes */
html.js.reduce-motion [data-reveal] { opacity: 0; transition: opacity 0.4s ease; }
html.js.reduce-motion [data-reveal].is-in { opacity: 1; }

.reduce-motion .grain, .reduce-motion .scroll-cue i, .reduce-motion .loader__bar i { animation: none; }
.reduce-motion .ticker__row { animation-duration: 240s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__row { animation: none; }
}
