/* =================================================================
   SEMPRE AI — editorial, cinematic, always on.
   System taken from the terafab.ai reference: Inter Tight light
   headings, 12-column structural guides, layered nav frost,
   chevron-to-arrow CTAs, word-light statement, scroll-scrubbed scene.
   The imagery is the colour: our own rendered city at dusk — deep
   blue night, a warm horizon, and the cyan light of conversations.
   ================================================================= */

:root {
  /* colours sampled from the hero film */
  --bg: #03050b;
  --bg-rgb: 3, 5, 11;
  --night: #071024;
  --night-rgb: 7, 16, 36;
  --text: #eef2f8;
  --text-2: rgba(238, 242, 248, 0.64);
  --text-3: rgba(238, 242, 248, 0.42);
  --line: rgba(170, 200, 255, 0.14);
  --line-2: rgba(170, 200, 255, 0.26);
  --line-guide: #111a2c;
  --line-guide-soft: #0e1626;
  --line-guide-faint: #0b1220;
  /* the light of a conversation (the arcs in the film) and the horizon */
  --glow-rgb: 127, 208, 255;
  --glow: rgb(var(--glow-rgb));
  --dusk-rgb: 255, 160, 96;
  --dusk: rgb(var(--dusk-rgb));
  --danger: #ff8a7a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading: "Inter Tight", var(--sans);
  --heading-weight: 300;
  --display: "Space Grotesk", var(--sans);
  --container: 1180px;
  --pad: 48px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

em { font-style: normal; }

::selection { background: rgba(var(--glow-rgb), 0.85); color: #03050b; }

img, svg, video, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- structural guides (per section, aligned to .layout-12) ---------- */
[data-grid-lines] { position: relative; isolation: isolate; }

.section-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

[data-grid-lines] > .container { position: relative; z-index: 1; }

.section-grid__frame {
  height: 100%;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.section-grid__col { border-left: 1px solid transparent; }

[data-grid-lines="edge"] .section-grid__col:nth-child(1),
[data-grid-lines="builders"] .section-grid__col:nth-child(1) {
  border-left-style: solid;
  border-left-color: var(--line-guide-soft);
}

[data-grid-lines="builders"] .section-grid__col:nth-child(4),
[data-grid-lines="builders"] .section-grid__col:nth-child(8) {
  border-left-style: dashed;
  border-left-color: var(--line-guide-faint);
}

.layout-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- type ---------- */
.kicker { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-3); }

.h2 {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  font-size: clamp(2.15rem, 3.85vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: #fff;
  text-wrap: balance;
}

.h2 em { color: var(--text-3); }

.h2__keep { white-space: nowrap; }

.lead {
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.5;
  color: rgba(237, 237, 238, 0.78);
  max-width: 46ch;
}

.cta__mob { display: none; }

/* ---------- CTAs — primary in a box; secondary text + chevron only ---------- */
.link-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--text-2);
  padding: 6px 2px 6px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.22s var(--ease);
}

.link-cta:not(.link-cta--fill):hover,
.link-cta:not(.link-cta--fill).is-hover { color: #fff; }

.link-cta:not(.link-cta--fill):active,
.link-cta:not(.link-cta--fill).is-active { color: var(--text); }

.link-cta:focus-visible,
.link-cta.is-focus { outline: 2px solid rgba(255, 255, 255, 0.45); outline-offset: 3px; }

.link-cta--fill {
  color: #0a0a0b;
  padding: 11px 16px 11px 18px;
  border: 1px solid #eef2f8;
  border-radius: 2px;
  background: #eef2f8;
  transition: color 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.link-cta--fill:hover,
.link-cta--fill.is-hover { color: #0a0a0b; background: #fff; border-color: #fff; }

.link-cta--fill:active,
.link-cta--fill.is-active { background: #f5f5f6; }

.link-cta:disabled,
.link-cta.is-disabled { opacity: 0.45; cursor: default; pointer-events: none; }

.link-cta__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  margin-right: -1px;
}

.link-cta__arrow svg { display: block; width: 100%; height: 100%; }

/* ---------- nav — layered progressive blur on scroll (JS sets --nav-*) ---------- */
.nav {
  --nav-blur: 0px;
  --nav-bg: 0;
  --nav-fade: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  pointer-events: none;
}

.nav__frost {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(124px, 17vh, 172px);
  pointer-events: none;
  opacity: var(--nav-fade);
}

.nav__frost-band {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  pointer-events: none;
  backdrop-filter: blur(var(--band-blur)) saturate(calc(1 + var(--nav-bg) * 0.18));
  -webkit-backdrop-filter: blur(var(--band-blur)) saturate(calc(1 + var(--nav-bg) * 0.18));
  background: linear-gradient(180deg, rgba(var(--bg-rgb), calc(var(--nav-bg) * var(--band-tint))) 0%, rgba(var(--bg-rgb), 0) 100%);
  -webkit-mask-image: var(--band-mask);
  mask-image: var(--band-mask);
}

.nav__frost-band--1 {
  --band-blur: calc(var(--nav-blur) * 1.12);
  --band-tint: 0.62;
  --band-mask: linear-gradient(180deg, #000 0%, #000 20%, rgba(0, 0, 0, 0.55) 38%, transparent 58%);
}

.nav__frost-band--2 {
  --band-blur: calc(var(--nav-blur) * 0.68);
  --band-tint: 0.42;
  --band-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.88) 26%, rgba(0, 0, 0, 0.35) 52%, transparent 74%);
}

.nav__frost-band--3 {
  --band-blur: calc(var(--nav-blur) * 0.38);
  --band-tint: 0.24;
  --band-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.22) 62%, transparent 88%);
}

.nav__frost-band--4 {
  --band-blur: calc(var(--nav-blur) * 0.14);
  --band-tint: 0.1;
  --band-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 42%, transparent 100%);
}

.nav__inner {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--pad) 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; color: #fff; }

/* Logo: "sempre aı" whose tittle is the light (always on). On scroll the letters retract and the
   light glides into its tile, the reference's T-into-tile move. JS measures where the ı is. */
.nav__logo {
  --chip: 26px;
  --dot: 7px;
  --logo-dur: 0.52s;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--chip);
}

.js .nav__logo { opacity: 0; transform: translateY(8px); }

.nav.nav--logo-in .nav__logo { opacity: 1; transform: none; transition: opacity 0.58s var(--ease) 0.06s, transform 0.58s var(--ease) 0.06s; }

.nav__logo-rest-track {
  position: relative;
  overflow: hidden;
  width: var(--nav-logo-rest-w, 96px);
  height: var(--chip);
  transition: width var(--logo-dur) var(--ease-out), opacity 0.42s var(--ease);
}

.nav__logo-rest {
  display: block;
  font-family: var(--heading);
  font-weight: 500;
  font-size: 21px;
  line-height: var(--chip);
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: #fff;
}

/* the i is drawn here (stem at the font's x-height), so the light lands exactly on it */
.nav__logo-i { display: inline-block; position: relative; width: 0.24em; height: 0.545em; margin-left: 0.03em; }

.nav__logo-i::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.108em;
  height: 100%;
  background: currentColor;
  transform: translateX(-50%);
}

.nav__logo-chip {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--chip);
  height: var(--chip);
  border-radius: 7px;
  background: var(--night);
  box-shadow: inset 0 0 0 1px rgba(var(--glow-rgb), 0.35);
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
  transition: opacity 0.34s var(--ease) 0.08s, transform var(--logo-dur) var(--ease-out);
}

.nav__logo-dot {
  position: absolute;
  z-index: 2;
  left: var(--dot-x, 92px);
  top: var(--dot-y, 6px);
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.9), 0 0 24px rgba(var(--glow-rgb), 0.4);
  transform: translate(-50%, -50%);
  transition: left var(--logo-dur) var(--ease-out), top var(--logo-dur) var(--ease-out), width 0.3s var(--ease), height 0.3s var(--ease);
}

/* the light drops onto the ı when the page opens */
.js .nav__logo-dot { opacity: 0; }

.nav--logo-in .nav__logo-dot { animation: dotDrop 0.75s var(--ease-out) 0.5s both; }

@keyframes dotDrop {
  from { opacity: 0; transform: translate(-50%, -320%); }
  55% { opacity: 1; transform: translate(-50%, -30%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.nav--logo-retract .nav__logo-rest-track {
  width: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.72) 66%, rgba(0, 0, 0, 0.14) 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.72) 66%, rgba(0, 0, 0, 0.14) 92%, transparent 100%);
}

.nav--logo-retract .nav__logo-chip { opacity: 1; transform: translateY(-50%) scale(1); }

.nav--logo-retract .nav__logo-dot { --dot: 9px; left: calc(var(--chip) / 2); top: 50%; }

.nav__menu { display: flex; align-items: center; gap: 26px; margin-left: auto; }

.nav__link { font-size: 13px; letter-spacing: 0.01em; color: var(--text-2); transition: color 0.22s var(--ease); }

.nav__link:hover,
.nav__link.is-current { color: #fff; }

.nav__link--menu-cta { display: none; }

.nav__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }

.nav__brand { position: relative; z-index: 2; }

.nav__cta {
  padding: 8px 13px;
  border-radius: 2px;
  background: #eef2f8;
  color: #0a0a0b;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.22s var(--ease);
}

.nav__cta:hover { background: #fff; }

.nav__toggle { display: none; position: relative; width: 40px; height: 36px; border: 0; background: none; cursor: pointer; }

.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; border-radius: 1px; background: #fff; transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out); }

.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 21px; }

.nav--open .nav__toggle span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

body.menu-open { overflow: hidden; }

/* ---------- generated light fields (canvas) ---------- */
.lightfield { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- hero (light field bg; base-matched height via padding) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(152px, 23vh, 252px);
  padding-bottom: clamp(60px, 10vh, 120px);
  background: var(--bg);
}

.hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: #000; }

.hero--video { min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: center; }

.hero--video .hero__content { margin-top: 0; }

.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }

.hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.9) 0%, rgba(var(--bg-rgb), 0.72) 30%, rgba(var(--bg-rgb), 0.28) 50%, transparent 66%),
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.35) 0%, rgba(var(--bg-rgb), 0.06) 22%, rgba(var(--bg-rgb), 0.12) 70%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(8px, 1.2vh, 20px);
}

.hero__title {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 12ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.hero__line { display: block; }

.hero__time { font-variant-numeric: tabular-nums; }

@keyframes heroLineIn {
  from { opacity: 0; filter: blur(11px); transform: translate3d(0, 18%, 0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}

.js .hero__line { opacity: 0; filter: blur(11px); transform: translate3d(0, 18%, 0); will-change: opacity, filter, transform; }

.hero.hero--ready .hero__line { animation: heroLineIn 0.82s var(--ease-out) forwards; animation-delay: 0.08s; }

.hero.hero--ready .hero__line:nth-child(2) { animation-delay: 0.22s; }

.hero.hero--ready .hero__line:nth-child(3) { animation-delay: 0.36s; }

.hero__copy {
  margin: clamp(14px, 2vh, 20px) 0 0;
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(238, 242, 248, 0.84);
  max-width: 30ch;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero__actions { display: flex; align-items: center; gap: 10px; margin-top: clamp(36px, 5vh, 56px); flex-wrap: wrap; }

/* secondary in the hero — translucent fill only (no border) */
.hero__actions .link-cta:not(.link-cta--fill) {
  color: #fff;
  padding: 11px 16px 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}

.hero__actions .link-cta:not(.link-cta--fill):hover { color: #fff; background: rgba(255, 255, 255, 0.22); }

.hero__partners {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  margin-top: clamp(80px, 13vh, 150px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.hero__partners .kicker { line-height: 20px; }

.logos { --logo-row: 20px; display: flex; align-items: flex-end; gap: clamp(28px, 4vw, 48px); height: var(--logo-row); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--logo-row);
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.6;
  transition: opacity 0.25s;
}

.logo svg { width: 16px; height: 16px; }

.logo:hover { opacity: 1; }

.js .hero__seq { opacity: 0; filter: blur(8px); transform: translate3d(0, 14%, 0); will-change: opacity, filter, transform; }

.hero.hero--ready .hero__copy.hero__seq { animation: heroLineIn 0.78s var(--ease-out) 0.28s forwards; }

.hero.hero--ready .hero__actions.hero__seq { animation: heroLineIn 0.78s var(--ease-out) 0.48s forwards; }

.hero.hero--ready .hero__partners.hero__seq { animation: heroLineIn 0.78s var(--ease-out) 0.72s forwards; }

/* ---------- section mesh — pure black + soft edge fades ---------- */
.statement-sec,
.block,
.footer { background: var(--bg); }

/* alternate blocks sit in the film's night blue (their own seams, no black band on top) */
.block--night { background: linear-gradient(180deg, var(--bg) 0%, var(--night) 26%, var(--night) 74%, var(--bg) 100%); }

.block--night::before { display: none; }

.statement-sec::before,
.block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: clamp(120px, 18vh, 240px);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--bg-rgb), 0.42) 38%, rgba(var(--bg-rgb), 0.78) 62%, var(--bg) 100%);
}

/* ---------- statement — words light up as you scroll ---------- */
.statement-sec { position: relative; padding: clamp(80px, 14vh, 170px) 0; }

.statement-sec .container,
.block .container { position: relative; z-index: 2; }

.statement {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.22;
  letter-spacing: -0.027em;
  color: var(--text-2);
  max-width: 25ch;
  text-wrap: pretty;
}

.statement__w { color: rgba(238, 242, 248, 0.3); transition: color 0.4s var(--ease); }

.statement__w.is-lit { color: #fff; }

/* ---------- intelligence — the steps take turns on their own; any of them can be clicked ---------- */
.intel { position: relative; overflow: hidden; padding: clamp(96px, 14vh, 150px) 0; background: var(--bg); }

.intel__media { position: absolute; inset: 0; z-index: 0; }

.intel__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.82) 0%, rgba(var(--bg-rgb), 0.4) 48%, rgba(var(--bg-rgb), 0.15) 100%);
}

.intel__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }

.talk-copy { grid-column: 1 / span 6; padding-right: 24px; }

.talk-copy .kicker { display: block; margin-bottom: 20px; }

.talk__title {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  font-size: clamp(2rem, min(4.2vw, 6.2vh), 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: #fff;
  max-width: 13ch;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.scale { margin-top: clamp(20px, 3.4vh, 40px); max-width: 560px; border-top: 1px solid var(--line); }

.scale__tier {
  position: relative;
  border-bottom: 1px solid var(--line);
  opacity: 0.45;
  transition: opacity 0.4s var(--ease);
}

/* how long until the next step (the line fills, then the next one lights) */
.scale__tier.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--glow);
  transform-origin: left;
  animation: tierRun var(--tier-ms, 4200ms) linear both;
}

.intel.is-paused .scale__tier.is-active::after,
.intel.is-manual .scale__tier.is-active::after { animation-play-state: paused; }

@keyframes tierRun { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scale__btn {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: clamp(8px, 1.5vh, 14px) 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.scale__tier:hover { opacity: 0.75; }

.scale__btn:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }

.scale__tier.is-active { opacity: 1; }

.scale__id { font-family: var(--heading); font-weight: var(--heading-weight); font-size: 0.95rem; letter-spacing: -0.01em; color: #fff; }

.scale__desc { font-size: 0.95rem; line-height: 1.45; color: var(--text-2); }

.scale__tier.is-active .scale__desc { color: #fff; }

/* the agent's mind: the core in the middle, one node per thing it does; the scroll lights them in turn */
.mind { grid-column: 7 / span 6; align-self: center; display: grid; justify-items: center; gap: 8px; }

.mind__node { cursor: pointer; outline: none; }

.mind__hit { fill: transparent; }

.mind__node:hover .mind__dot { stroke: rgba(var(--glow-rgb), 0.85); }

.mind__node:focus-visible .mind__dot { stroke: #fff; stroke-width: 2; }

.mind__svg { width: min(100%, 500px); height: auto; overflow: visible; }

.mind__link { fill: none; stroke: rgba(var(--glow-rgb), 0.2); stroke-width: 1.2; stroke-dasharray: 3 7; transition: stroke 0.4s var(--ease); }

.mind__link.is-done { stroke: rgba(var(--glow-rgb), 0.38); }

.mind__link.is-active {
  stroke: var(--glow);
  stroke-width: 1.8;
  stroke-dasharray: 10 14;
  filter: drop-shadow(0 0 6px rgba(var(--glow-rgb), 0.9));
  animation: mindFlow 0.9s linear infinite;
}

@keyframes mindFlow { to { stroke-dashoffset: -24; } }

.mind__halo { transform-box: fill-box; transform-origin: center; animation: mindBreath 4s ease-in-out infinite; }

@keyframes mindBreath { 50% { transform: scale(1.12); opacity: 0.8; } }

.mind__ring { fill: none; stroke: rgba(var(--glow-rgb), 0.55); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: mindPing 3.2s var(--ease-out) infinite; }

.mind__ring--2 { animation-delay: 1.6s; }

@keyframes mindPing { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.7); opacity: 0; } }

.mind__core { fill: #e9f7ff; filter: drop-shadow(0 0 14px rgba(var(--glow-rgb), 0.95)); }

.mind__dot { fill: rgba(var(--night-rgb), 0.9); stroke: rgba(var(--glow-rgb), 0.3); stroke-width: 1.2; transition: fill 0.4s var(--ease), stroke 0.4s var(--ease); }

.mind__icon { fill: none; stroke: rgba(238, 242, 248, 0.5); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s var(--ease); }

.mind__label { font: 500 13px var(--sans); fill: var(--text-3); transition: fill 0.4s var(--ease); }

.mind__node.is-done .mind__dot { stroke: rgba(var(--glow-rgb), 0.6); }

.mind__node.is-active .mind__dot { fill: rgba(var(--glow-rgb), 0.18); stroke: var(--glow); filter: drop-shadow(0 0 12px rgba(var(--glow-rgb), 0.75)); }

.mind__node.is-active .mind__icon { stroke: #fff; }

.mind__node.is-active .mind__label { fill: #fff; }

/* the team is the warm colour of the system */
.mind__link[data-tier="6"].is-active { stroke: var(--dusk); filter: drop-shadow(0 0 6px rgba(var(--dusk-rgb), 0.9)); }

.mind__node[data-tier="6"].is-active .mind__dot { fill: rgba(var(--dusk-rgb), 0.16); stroke: var(--dusk); filter: drop-shadow(0 0 12px rgba(var(--dusk-rgb), 0.7)); }

.mind__caps { position: relative; width: min(100%, 440px); min-height: 104px; }

.mind__cap {
  position: absolute;
  inset: 0 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.mind__cap.is-on { opacity: 1; transform: none; }

.mind__title { display: block; margin-bottom: 4px; font-weight: 500; font-size: 0.82rem; color: var(--glow); }

.mind__cap[data-tier="6"] .mind__title { color: var(--dusk); }

/* ---------- WhatsApp: a phone with the app's own colours (light theme) ---------- */
.wa-sec { overflow: hidden; }

.wa-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; row-gap: 56px; }

.wa-copy { grid-column: 1 / span 6; padding-right: 32px; }

.wa-copy .kicker { display: block; margin-bottom: 18px; }

.wa-copy .h2 { max-width: 16ch; }

.wa-copy .lead { margin-top: 22px; }

.wa-tabs { margin-top: 36px; max-width: 470px; border-top: 1px solid var(--line); }

.wa-tab {
  display: grid;
  grid-template-columns: 136px 1fr;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  color: var(--text-2);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}

.wa-tab b { font-family: var(--heading); font-weight: 400; font-size: 1.1rem; letter-spacing: -0.01em; color: #fff; }

.wa-tab span { font-size: 0.95rem; }

.wa-tab:hover { opacity: 0.8; }

.wa-tab.is-active { opacity: 1; }

.wa-tab.is-active b::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.8);
  vertical-align: 2px;
}

.wa-tab:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }

.wa-stage { grid-column: 8 / span 5; display: grid; justify-items: center; gap: 18px; }

.ch-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(var(--night-rgb), 0.6); }

.ch-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font-size: 12.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.ch-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.ch-pill:hover { color: #fff; }

.ch-pill.is-active { background: #eef2f8; color: #0a0a0b; }

.ch-pill:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }

.wa-phone {
  --brand: #c2410c;
  justify-self: center;
  width: min(100%, 352px);
  aspect-ratio: 9 / 18.6;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(150deg, #262e3c 0%, #0b0f17 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 120px rgba(37, 211, 102, 0.14), 0 30px 80px rgba(0, 0, 0, 0.65);
}

.wa-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: #efeae2;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #111b21;
}

.wa-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 2px; background: #008069; color: #fff; font-size: 12px; font-weight: 600; }

.wa-status__icons { display: flex; gap: 4px; align-items: flex-end; }

.wa-status__icons i { display: block; width: 3px; border-radius: 1px; background: #fff; }

.wa-status__icons i:nth-child(1) { height: 5px; }
.wa-status__icons i:nth-child(2) { height: 8px; }
.wa-status__icons i:nth-child(3) { height: 11px; }

.wa-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px 12px; background: #008069; color: #fff; }

.wa-back { width: 10px; height: 10px; margin: 0 2px 0 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }

.wa-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #dfe5e7; color: #54656f; font-weight: 700; font-size: 15px; }

.wa-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }

.wa-presence { font-size: 12px; opacity: 0.88; }

.wa-chat {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(84, 101, 111, 0.09) 1px, transparent 1.5px);
  background-size: 16px 16px;
}

.wa-thread { display: flex; flex-direction: column; gap: 5px; padding: 10px 10px 12px; transition: transform 0.5s var(--ease-out); }

.wa-day { align-self: center; margin: 2px 0 8px; padding: 4px 10px; border-radius: 7px; background: #fff; color: #54656f; font-size: 11.5px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }

.wa-msg {
  position: relative;
  max-width: 82%;
  padding: 6px 8px 5px 9px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.38;
  white-space: pre-line;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  animation: waIn 0.28s var(--ease-out) both;
}

.wa-msg--me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }

.wa-msg--them { align-self: flex-start; background: #fff; border-top-left-radius: 0; }

.wa-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px 0 -4px 10px; font-size: 10.5px; color: #667781; }

.wa-ticks { width: 17px; height: 11px; fill: none; stroke: #8696a0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }

.wa-ticks.is-read { stroke: #53bdeb; }

.wa-voice { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; min-width: 200px; }

.wa-voice__play { width: 0; height: 0; margin-left: 6px; border-left: 12px solid #54656f; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }

.wa-voice__wave { display: flex; align-items: center; gap: 2px; height: 26px; }

.wa-voice__wave i { display: block; width: 3px; border-radius: 2px; background: #9fb3a8; }

.wa-voice .wa-meta { grid-column: 2; justify-self: end; margin-top: -2px; }

.wa-doc { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; min-width: 210px; padding: 8px; border-radius: 6px; background: rgba(11, 20, 26, 0.05); }

.wa-doc__icon { display: grid; place-items: center; width: 34px; height: 40px; border-radius: 4px; background: #e2523f; color: #fff; font-size: 9px; font-weight: 700; }

.wa-doc b { display: block; font-size: 13px; font-weight: 600; }

.wa-doc span { font-size: 11px; color: #667781; }

.wa-typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 12px; border-radius: 8px; border-top-left-radius: 0; background: #fff; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); animation: waIn 0.2s var(--ease-out) both; }

.wa-typing i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: waDot 1.2s infinite; }

.wa-typing i:nth-child(2) { animation-delay: 0.15s; }
.wa-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes waIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

@keyframes waDot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.wa-input { display: flex; align-items: center; gap: 8px; padding: 6px 8px 14px; background: #f0f2f5; }

.wa-field { flex: 1; padding: 9px 14px; border-radius: 20px; background: #fff; color: #8696a0; font-size: 14px; }

.wa-mic { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #00a884; }

.wa-mic::before { content: ""; position: absolute; left: 16px; top: 10px; width: 8px; height: 13px; border-radius: 4px; background: #fff; }

.wa-mic::after { content: ""; position: absolute; left: 13px; top: 17px; width: 14px; height: 9px; border: 2px solid #fff; border-top: 0; border-radius: 0 0 8px 8px; }

/* the turn between channels: the phone spins on its axis and comes back in the new app */
.wa-phone.is-out { transform: perspective(1400px) rotateY(88deg) scale(0.96); transition: transform 0.26s cubic-bezier(0.55, 0, 0.8, 0.3); }

.wa-phone.is-in-start { transform: perspective(1400px) rotateY(-88deg) scale(0.96); transition: none; }

.wa-phone.is-in { transform: none; transition: transform 0.4s var(--ease-out); }

.site-bar { display: none; }

/* Telegram (light theme) */
.wa-phone[data-skin="telegram"] .wa-status,
.wa-phone[data-skin="telegram"] .wa-head { background: #517da2; }

.wa-phone[data-skin="telegram"] .wa-avatar { background: #e17076; color: #fff; }

.wa-phone[data-skin="telegram"] .wa-chat {
  background-color: #b8d5b2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.2px, transparent 1.7px), linear-gradient(160deg, #d6e8bb 0%, #a6cfd0 100%);
  background-size: 22px 22px, 100% 100%;
}

.wa-phone[data-skin="telegram"] .wa-msg { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12); }

.wa-phone[data-skin="telegram"] .wa-msg--me { background: #effedd; border-radius: 14px 14px 4px 14px; }

.wa-phone[data-skin="telegram"] .wa-msg--them { background: #fff; border-radius: 14px 14px 14px 4px; }

.wa-phone[data-skin="telegram"] .wa-msg--me .wa-meta { color: #5fa95f; }

.wa-phone[data-skin="telegram"] .wa-ticks,
.wa-phone[data-skin="telegram"] .wa-ticks.is-read { stroke: #4fae4e; }

.wa-phone[data-skin="telegram"] .wa-day { background: rgba(0, 0, 0, 0.18); color: #fff; box-shadow: none; border-radius: 12px; }

.wa-phone[data-skin="telegram"] .wa-typing { border-radius: 14px 14px 14px 4px; }

.wa-phone[data-skin="telegram"] .wa-voice__play { border-left-color: #4fae4e; }

.wa-phone[data-skin="telegram"] .wa-voice__wave i { background: #8cc88c; }

.wa-phone[data-skin="telegram"] .wa-input { background: #fff; }

.wa-phone[data-skin="telegram"] .wa-field { background: none; color: #a0acb6; padding-left: 8px; }

.wa-phone[data-skin="telegram"] .wa-mic { background: none; }

.wa-phone[data-skin="telegram"] .wa-mic::before { background: #8a9aa8; }

.wa-phone[data-skin="telegram"] .wa-mic::after { border-color: #8a9aa8; }

/* the client's own site: a chat in the brand's colour */
.wa-phone[data-skin="site"] .wa-status { background: #fff; color: #111b21; }

.wa-phone[data-skin="site"] .wa-status__icons i { background: #111b21; }

.wa-phone[data-skin="site"] .site-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--brand); color: #fff; }

.site-bar__brand { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

.site-bar__menu { display: grid; gap: 3px; }

.site-bar__menu i { display: block; width: 16px; height: 2px; border-radius: 1px; background: #fff; }

.wa-phone[data-skin="site"] .wa-head { background: #fff; color: #111b21; border-bottom: 1px solid #eceff1; padding: 10px 14px; }

.wa-phone[data-skin="site"] .wa-back { display: none; }

.wa-phone[data-skin="site"] .wa-avatar { background: var(--brand); color: #fff; }

.wa-phone[data-skin="site"] .wa-presence { color: #16a34a; opacity: 1; }

.wa-phone[data-skin="site"] .wa-chat { background: #fff; background-image: none; }

.wa-phone[data-skin="site"] .wa-msg { box-shadow: none; border-radius: 16px; padding: 8px 12px; }

.wa-phone[data-skin="site"] .wa-msg--me { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }

.wa-phone[data-skin="site"] .wa-msg--them { background: #f1f3f5; border-bottom-left-radius: 4px; }

.wa-phone[data-skin="site"] .wa-meta { display: none; }

.wa-phone[data-skin="site"] .wa-day { background: #f1f3f5; box-shadow: none; }

.wa-phone[data-skin="site"] .wa-typing { background: #f1f3f5; box-shadow: none; border-radius: 16px 16px 16px 4px; }

.wa-phone[data-skin="site"] .wa-doc { background: rgba(255, 255, 255, 0.16); }

.wa-phone[data-skin="site"] .wa-msg--me .wa-doc span { color: rgba(255, 255, 255, 0.8); }

.wa-phone[data-skin="site"] .wa-input { background: #fff; border-top: 1px solid #eceff1; padding-top: 8px; }

.wa-phone[data-skin="site"] .wa-field { background: #f1f3f5; border-radius: 12px; }

.wa-phone[data-skin="site"] .wa-mic { border-radius: 12px; background: var(--brand); }

.wa-phone[data-skin="site"] .wa-mic::before { left: 15px; top: 13px; width: 0; height: 0; border-radius: 0; background: none; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

.wa-phone[data-skin="site"] .wa-mic::after { display: none; }

/* ---------- automation — a flow that runs by itself ---------- */
.flow-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }

.flow-tab {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.flow-tab:hover { color: #fff; border-color: var(--line-2); }

.flow-tab.is-active { background: rgba(var(--glow-rgb), 0.14); border-color: rgba(var(--glow-rgb), 0.5); color: #fff; }

.flow-tab:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }

.flow { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 28px; }

.flow__node {
  --k-rgb: var(--glow-rgb);
  position: relative;
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(var(--bg-rgb), 0.45);
  opacity: 0.32;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.flow__node[data-kind="trigger"] { --k-rgb: 238, 242, 248; }
.flow__node[data-kind="system"] { --k-rgb: 170, 200, 255; }
.flow__node[data-kind="customer"] { --k-rgb: 37, 211, 102; }
.flow__node[data-kind="team"] { --k-rgb: var(--dusk-rgb); }

.flow__node.is-on {
  opacity: 1;
  transform: none;
  border-color: rgba(var(--k-rgb), 0.55);
  box-shadow: 0 0 0 1px rgba(var(--k-rgb), 0.12), 0 18px 40px -22px rgba(var(--k-rgb), 0.6);
}

.flow__icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 10px; background: rgba(var(--k-rgb), 0.14); }

.flow__icon svg { width: 20px; height: 20px; fill: none; stroke: rgb(var(--k-rgb)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.flow__kind { display: block; margin-bottom: 4px; font-size: 11.5px; color: rgb(var(--k-rgb)); }

.flow__text { display: block; font-weight: 400; font-size: 0.98rem; line-height: 1.4; color: #fff; }

/* the link to the next step fills once this one is done */
.flow__node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 37px;
  left: calc(100% + 1px);
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, rgb(var(--k-rgb)), var(--glow)) left / 0% 100% no-repeat, var(--line);
  transition: background-size 0.5s linear;
}

.flow__node.is-done::after { background-size: 100% 100%, auto; }

/* ---------- WhatsApp shortcut in the contact ---------- */
.wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 11px 16px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: 2px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.wa-cta:hover { background: rgba(37, 211, 102, 0.12); border-color: #25d366; }

.wa-cta__icon { width: 20px; height: 20px; fill: none; stroke: #25d366; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- full-bleed scenes ---------- */
.scene { position: relative; min-height: 96vh; display: flex; align-items: center; overflow: hidden; }

.scene__media { position: absolute; inset: 0; z-index: 0; background: var(--bg); }

.scene__bg { width: 100%; height: 100%; object-fit: cover; }

.scene__scrim { position: absolute; inset: 0; }

.scene__scrim--left {
  background: linear-gradient(90deg, rgba(var(--bg-rgb), 0.92) 0%, rgba(var(--bg-rgb), 0.72) 28%, rgba(var(--bg-rgb), 0.28) 52%, transparent 70%), linear-gradient(0deg, rgba(var(--bg-rgb), 0.55) 0%, transparent 42%);
}

.scene__scrim--right {
  background: linear-gradient(270deg, rgba(var(--bg-rgb), 0.94) 0%, rgba(var(--bg-rgb), 0.86) 38%, rgba(var(--bg-rgb), 0.35) 58%, transparent 76%);
}

.scene__scrim--top {
  z-index: 1;
  bottom: auto;
  height: clamp(160px, 24vh, 300px);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.9) 18%, rgba(var(--bg-rgb), 0.42) 52%, transparent 100%);
}

.scene__scrim--bottom {
  z-index: 1;
  top: auto;
  height: clamp(160px, 22vh, 280px);
  background: linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.92) 22%, rgba(var(--bg-rgb), 0.55) 48%, rgba(var(--bg-rgb), 0.12) 72%, transparent 100%);
}

.scene__content { position: relative; z-index: 2; width: 100%; }

.list { margin-top: 30px; max-width: 520px; border-top: 1px solid var(--line); }

.list li { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; color: var(--text-2); }

/* ---------- block (editorial sections) ---------- */
.block { position: relative; padding: clamp(80px, 13vh, 170px) 0; }

.block__head { margin-bottom: clamp(44px, 6vh, 76px); }

.block__head .kicker { display: block; margin-bottom: 18px; }

.block__head .h2 { max-width: 18ch; }

.block__head .lead { margin-top: 22px; }

/* builders — 12-col grid + subgrid (cols 1–3 | 4–7 | 8–12) */
.builders__grid { row-gap: clamp(52px, 8vh, 88px); }

.builders__head { grid-column: 1 / -1; margin-bottom: 0; }

.builders__head .h2 { max-width: 22ch; line-height: 1.04; }

.builders__list { display: contents; }

.builder { display: contents; }

.builder__row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: start; }

.builder__brand { grid-column: 1 / span 3; padding-right: 24px; }

.builder__brand { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; }

.builder__n { font-family: var(--display); font-size: 0.95rem; color: var(--dusk); font-variant-numeric: tabular-nums; }

.builder__name { display: block; font-family: var(--heading); font-weight: 400; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; color: #fff; }

p.builder__col { font-size: 0.98rem; line-height: 1.55; color: var(--text-2); }

.builder__get { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--text-3); }

.builder__col { min-width: 0; align-self: start; }

.builder__col--a { grid-column: 4 / span 4; max-width: 34ch; padding-right: clamp(8px, 1vw, 16px); }

.builder__col--b { grid-column: 8 / span 5; }

.builder__col li { padding: 4px 0; font-size: 0.94rem; line-height: 1.45; color: var(--text-2); }

.builder__col li:first-child { padding-top: 0; }

@supports not (grid-template-columns: subgrid) {
  .builder__row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* care — full-bleed scene, copy on the right (the reference's factory) */
.care { min-height: min(88vh, 880px); align-items: flex-start; padding: clamp(72px, 12vh, 120px) 0; }

.care__copy { display: flex; flex-direction: column; align-items: flex-start; margin-left: auto; width: min(100%, clamp(16rem, 38vw, 30rem)); }

.care__title {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  font-size: clamp(2.15rem, 3.85vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: #fff;
  text-wrap: pretty;
  margin: 0 0 clamp(14px, 2vh, 20px);
}

.care__body { margin: 0 0 clamp(22px, 3.2vh, 32px); }

/* compare — scene with copy and two columns on the left */
.space { min-height: min(96vh, 920px); align-items: flex-end; }

.space__content {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: clamp(40px, 5.5vh, 64px);
  padding-top: clamp(88px, 14vh, 152px);
  padding-bottom: clamp(88px, 14vh, 152px);
}

.space__copy { grid-column: 1 / span 6; }

.space__copy .kicker { display: block; margin-bottom: 18px; }

.compare { grid-column: 1 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }

.compare__col h3 { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 0.95rem; color: var(--text-3); }

.compare__col li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text-3); }

.compare__col--win h3 { color: var(--glow); }

.compare-sec .compare { max-width: 900px; }

.compare__col--win li { color: #fff; }

/* questions — the .list rhythm, opened one at a time */
.faq { max-width: 760px; border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -0.015em;
  color: #fff;
  transition: color 0.22s var(--ease);
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
  opacity: 0.6;
}

.faq__item[open] .faq__q::after { transform: translateY(1px) rotate(225deg); }

.faq__q:hover,
.faq__q.is-hover { color: var(--text); }

.faq__a { padding: 0 0 22px; max-width: 62ch; font-size: 1rem; line-height: 1.6; color: var(--text-2); }

/* ---------- footer ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 9vh, 112px) 0 26px; }

.footer__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.48) 12%, rgba(var(--bg-rgb), 0.1) 28%, transparent 46%);
}

.footer .container { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(32px, 4vh, 48px); }

.footer__cta { grid-column: 1 / span 6; }

.footer__head {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  font-size: clamp(2.3rem, 5.1vw, 4rem);
  line-height: 1;
  letter-spacing: -0.042em;
  color: #fff;
}

.footer__cta .lead { margin-top: 24px; max-width: 34ch; }

/* contact form — quiet underlined fields over the light */
.form {
  grid-column: 8 / span 5;
  display: grid;
  gap: 22px;
  padding: 28px;
  background: rgba(var(--night-rgb), 0.6);
  border: 1px solid var(--line);
  border-radius: 2px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.field { position: relative; }

.field label { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--text-3); }

.field input,
.field textarea {
  width: 100%;
  padding: 8px 0 9px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  color: #fff;
  transition: border-color 0.22s var(--ease);
}

.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(238, 242, 248, 0.28); }

.field input:hover,
.field textarea:hover,
.field.is-hover input { border-bottom-color: rgba(255, 255, 255, 0.4); }

.field input:focus,
.field textarea:focus,
.field.is-focus input { outline: none; border-bottom-color: var(--glow); }

.field--error input,
.field--error textarea { border-bottom-color: var(--danger); }

.field__error { display: block; margin-top: 6px; font-size: 12.5px; color: var(--danger); }

.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.form__note { font-size: 12px; color: var(--text-3); max-width: 28ch; }

/* the chat card that replaced the contact form (opens the chat: assets/chat-widget.js) — same quiet
   style as the chat: the assistant's words beside its mark, no box around them */
.chat-card { align-content: start; gap: 22px; }

.chat-card__line { display: flex; align-items: flex-start; gap: 14px; }

.chat-card__avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0a0f19 radial-gradient(circle, var(--glow) 0 3px, rgba(var(--glow-rgb), 0.35) 3.5px, transparent 9px);
  border: 1px solid var(--line-2);
}

.chat-card__head { font-size: 14px; font-weight: 500; color: var(--text); }

.chat-card__head span { font-weight: 400; color: var(--text-3); }

.chat-card__msg { margin-top: 6px; font-size: 15px; line-height: 1.6; color: rgba(238, 242, 248, 0.88); }

.chat-card__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding-left: 48px; }

.chat-card .form__note { max-width: none; }

.form__note a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }

.form__note a:hover { color: #fff; }

.form__status { font-size: 0.95rem; line-height: 1.5; color: #fff; }

.form__status--error { color: var(--danger); }

.form.is-sent .field,
.form.is-sent .form__foot { display: none; }

.footer__base {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(56px, 8vh, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 10px clamp(16px, 2.5vw, 28px); font-size: 12.5px; line-height: 1.45; color: var(--text-3); }

.footer__legal a { transition: color 0.2s; }

.footer__legal a:hover { color: #fff; }

/* ---------- reveal (subtle) ---------- */
.js :is(.reveal, .h2, .statement) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js :is(.reveal, .h2, .statement).in-view { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  :root { --pad: 28px; }

  .intel__grid { display: block; }

  .talk-copy { padding-right: 0; }

  .mind { padding-top: 40px; }

  .intel__scrim { background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.55) 18%, rgba(var(--bg-rgb), 0.55) 82%, var(--bg) 100%); }

  .wa-copy,
  .wa-stage { grid-column: 1 / -1; }

  .wa-copy { padding-right: 0; }

  .flow { grid-template-columns: 1fr; gap: 18px; max-width: 520px; }

  .flow__node { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }

  .flow__icon { grid-row: span 2; margin-bottom: 0; }

  .flow__node:not(:last-child)::after {
    top: calc(100% + 1px);
    left: 34px;
    width: 2px;
    height: 18px;
    background: linear-gradient(180deg, rgb(var(--k-rgb)), var(--glow)) top / 100% 0% no-repeat, var(--line);
  }

  .flow__node.is-done::after { background-size: 100% 100%, auto; }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 96px var(--pad) 48px;
    background: rgba(var(--bg-rgb), 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .nav--open .nav__menu { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease), visibility 0s; }

  .nav__menu .nav__link { font: 300 clamp(1.9rem, 8vw, 2.6rem) / 1.25 var(--heading); letter-spacing: -0.02em; color: var(--text-2); }

  .nav__menu .nav__link.is-current { color: #fff; }

  .nav__link--menu-cta { display: inline-block; margin-top: 18px; color: var(--glow) !important; }

  .nav__toggle { display: block; }

  .builders__grid { display: block; }

  .builders__head { margin-bottom: 40px; }

  .builder { display: block; margin-bottom: 40px; }

  .builder__row { grid-template-columns: 1fr; row-gap: 16px; }

  .builder__brand,
  .builder__col--a,
  .builder__col--b { grid-column: 1; max-width: none; padding-right: 0; }

  .builder__col--a { margin-bottom: 0; }

  .care__copy { margin-left: 0; width: 100%; max-width: 30rem; }

  .builder__brand { grid-template-columns: 30px 1fr; }

  .care .scene__scrim--right { background: linear-gradient(0deg, rgba(var(--bg-rgb), 0.9) 0%, rgba(var(--bg-rgb), 0.55) 50%, rgba(var(--bg-rgb), 0.3) 100%); }

  .space__copy,
  .compare { grid-column: 1 / -1; }

  .footer__cta,
  .form { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* phones: the core sits at the top, the words at the bottom over the dark */
  .hero--video { justify-content: flex-end; padding-top: 120px; padding-bottom: 44px; }

  .hero__video { object-position: 80% 30%; }

  .hero__fade { background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.35) 0%, rgba(var(--bg-rgb), 0.05) 28%, rgba(var(--bg-rgb), 0.7) 52%, var(--bg) 78%); }

  .hero__partners { margin-top: 48px; }

  .care .scene__bg { object-position: 30% center; }

  .ch-pill { padding: 7px 10px; font-size: 12px; }
}

@media (max-width: 560px) {
  :root { --pad: 24px; }

  .cta__full { display: none; }

  .cta__mob { display: inline; }

  .nav__cta { padding: 7px 10px; font-size: 12.5px; }

  .ch-switch { width: 100%; justify-content: space-between; }

  .ch-pill svg { display: none; }

  .hero__partners { flex-direction: column; align-items: flex-start; gap: 16px; }

  .logos { gap: 24px; }

  .scale__btn { grid-template-columns: 84px 1fr; gap: 12px; }

  .wa-tab { grid-template-columns: 112px 1fr; gap: 12px; }

  .mind__label { font-size: 15px; }

  .compare { grid-template-columns: 1fr; gap: 28px; }

  .form { padding: 22px 18px; }

  .footer__base { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }

  html { scroll-behavior: auto; }

  .js :is(.reveal, .h2, .statement) { opacity: 1 !important; transform: none !important; }

  .statement__w { color: #fff !important; }

  .js .hero__line,
  .js .hero__seq { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }

  .js .nav__logo { opacity: 1 !important; transform: none !important; }

  .nav__frost { opacity: 1 !important; }

  .nav__frost-band {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.92) 0%, rgba(var(--bg-rgb), 0) 100%) !important;
  }

  .mind__link.is-active { animation: none; }

  .mind__ring { display: none; }

  .js .nav__logo-dot { opacity: 1 !important; animation: none !important; }
}
