/* AdVal AI — homepage
   Cool white ground, near-black type, one lime accent.
   Motion is progressive: every "before" state lives under `.js … :not(.is-in)`,
   so the page is complete without JavaScript and calm with reduced motion. */

:root {
  --ground: #F5F6F8;
  --surface: #FFFFFF;
  --ink: #0B0D12;
  --text: #3F4550;
  --muted: #4A505A;
  --faint: #5A606B;
  --line: #DFE2E7;
  --line-strong: #C5C9D0;
  --accent: #C6FF3D;

  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-space: clamp(80px, 9.4vw, 136px);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex-shrink: 0; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ================= Reveal system ================= */

[data-reveal] {
  transition:
    opacity 0.9s ease,
    transform 1.1s var(--ease-out),
    filter 1s ease;
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 110ms);
}
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.js [data-reveal="blur"]:not(.is-in) { transform: translateY(14px); filter: blur(14px); }
.js [data-reveal="rise"]:not(.is-in) { transform: translateY(90px); }
.js [data-reveal="fade"]:not(.is-in) { transform: none; }

/* Words (or letters) slide up from behind a mask */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.05em 0.16em;
  margin: -0.06em -0.05em -0.16em;
}
.w__i {
  display: inline-block;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 70ms);
  will-change: transform;
}
.js [data-split]:not(.is-in) .w__i { transform: translateY(115%); }
.js [data-split="chars"]:not(.is-in) .w__i { transform: translateY(105%); }
[data-split="chars"] .w__i { transition-delay: calc(var(--i, 0) * 55ms); }

/* ================= Header ================= */

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: 14px;
  pointer-events: none;
  transition: transform 0.9s var(--ease-out), opacity 0.6s ease;
}
.js .site-header:not(.is-in) { transform: translateY(-120%); opacity: 0; }

.site-header__bar {
  pointer-events: auto;
  max-width: 1120px;
  margin-inline: auto;
  min-height: 60px;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(11, 13, 18, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 2px rgba(11, 13, 18, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled .site-header__bar {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(11, 13, 18, 0.08), 0 1px 2px rgba(11, 13, 18, 0.05);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.24em;
  min-height: 44px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* Logo: "AI" sits inside a switch that is turned on.
   The off state only exists while JavaScript is waiting to flip it. */
.switch {
  --gap: 0.18em;
  --knob: 0.84em;
  --inset: 0.26em;          /* extra left padding next to the label */
  --lw: 0.9em;              /* label width; measured by JS */
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  padding: 0.11em 0.13em 0.11em calc(0.13em + var(--inset));
  border: max(2px, 0.055em) solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  line-height: 1;
  transition: background-color 0.5s ease;
  transition-delay: var(--switch-delay, 0s);
}
.switch__label,
.switch__knob {
  transition: transform 0.8s var(--ease-spring);
  transition-delay: var(--switch-delay, 0s);
}
.switch__knob {
  width: var(--knob);
  height: var(--knob);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
}

.js .site-header:not(.is-in) .switch,
.js .site-footer__mark:not(.is-in) .switch { background: #E6E9EE; }
.js .site-header:not(.is-in) .switch__knob,
.js .site-footer__mark:not(.is-in) .switch__knob {
  transform: translateX(calc(-1 * (var(--lw) + var(--gap) + var(--inset))));
}
.js .site-header:not(.is-in) .switch__label,
.js .site-footer__mark:not(.is-in) .switch__label {
  transform: translateX(calc(var(--knob) + var(--gap) - var(--inset)));
}
.site-header .switch { --switch-delay: 0.7s; }
.site-footer__mark .switch { --switch-delay: 0.55s; }

.wordmark:hover .switch__knob { transform: scale(0.82); transition-delay: 0s; }

.logo { flex-shrink: 0; }

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  transition: color 0.2s ease;
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--ink); }

.site-nav__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--iw, 0px);
  border-radius: 999px;
  background: #ECEEF2;
  opacity: 0;
  transform: translateX(var(--ix, 0px));
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s ease;
}
.site-nav.has-active .site-nav__indicator { opacity: 1; }

/* ================= Buttons ================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.5s var(--ease-out),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.35s ease;
}

.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 500; }
.btn--large { min-height: 68px; padding: 0 34px; font-size: 18px; }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #20242C; }
.btn--ink svg { transition: transform 0.4s var(--ease-out); }
.btn--ink:hover svg { transform: translateX(4px); }

/* Primary: the lime dot floods the whole button on hover */
.btn--primary {
  isolation: isolate;
  overflow: hidden;
  padding: 0 8px 0 28px;
  gap: 14px;
  background: var(--ink);
  color: #fff;
}
.btn--primary::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8px;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0.6);
  transition: transform 0.7s var(--ease-out);
}
.btn--primary:hover,
.btn--primary:focus-visible { color: var(--ink); }
.btn--primary:hover::before,
.btn--primary:focus-visible::before { transform: scale(15); }

.btn__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-out);
}
.btn--primary:hover .btn__icon { transform: rotate(-45deg); }

.btn--light { background: var(--surface); border-color: #B6BBC4; color: var(--ink); font-weight: 500; }
.btn--light:hover { border-color: var(--ink); }

/* ================= Hero ================= */

.hero {
  position: relative;
  overflow: hidden;
}

.dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero > .dots {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%);
}

.hero__inner {
  position: relative;
  padding-top: clamp(112px, 9.4vw, 136px);
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}
.hero__tag-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--ink);
}

.hero__title { font-weight: 600; }
.hero__title-main {
  display: block;
  font-size: clamp(44px, 9.6vw, 140px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero__title-sub {
  display: block;
  margin-top: clamp(10px, 1.2vw, 18px);
  font-size: clamp(25px, 4.7vw, 68px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: #6B7280;
}

.hero__intro {
  max-width: 640px;
  margin-top: 32px;
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--text);
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ================= Hero visual ================= */

.stack {
  --depth: 1;
  position: relative;
  width: 100%;
  max-width: 1040px;
  height: 480px;
  margin-top: 60px;
  text-align: left;
  perspective: 1500px;
  perspective-origin: 50% 20%;
}

.stack__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 55%;
  transform:
    rotateX(calc(var(--rx, 0) * 1deg))
    rotateY(calc(var(--ry, 0) * 1deg))
    scale(calc(1 - var(--spread, 0) * 0.06));
  will-change: transform;
}

.stack__glow {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 80px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: 0.6;
  filter: blur(44px);
  transform: translateZ(calc(-200px * var(--depth)));
}

.stack__layer {
  position: absolute;
  height: 360px;
  border: 1px solid;
  border-radius: 22px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(11, 13, 18, calc(var(--spread, 0) * 0.08));
}
.stack__layer--3 {
  top: 0; left: 14%; right: 14%;
  padding: 12px 20px;
  justify-content: space-between;
  background: #F1F2F5;
  border-color: #E0E3E8;
  --bar: #D5D9DF;
  transform: translate3d(0, calc(var(--spread, 0) * -46px), calc((-110px - var(--spread, 0) * 230px) * var(--depth)));
}
.stack__layer--2 {
  top: 40px; left: 9%; right: 9%;
  padding: 17px 22px;
  background: #ECEEF2;
  border-color: #D5D9DF;
  --bar: #C9CED6;
  transform: translate3d(0, calc(var(--spread, 0) * -24px), calc((-55px - var(--spread, 0) * 115px) * var(--depth)));
}
.stack__layer--1 {
  top: 84px; left: 4%; right: 4%;
  padding: 22px 28px;
  justify-content: space-between;
  background: #E6E9EE;
  border-color: #C9CED6;
  --bar: #BCC2CB;
  transform: translate3d(0, 0, 0);
}

.stack__caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--faint);
}
@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.stack__status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: status-blink 1.6s ease-in-out infinite;
}

.bars { display: flex; gap: 8px; flex-shrink: 0; }
.bars--row { padding-top: 4px; }
.bars--col { flex-direction: column; gap: 12px; }
.stack__layer--2 .bars--row { padding-top: 0; }

/* Bars idle with a slow scan; they burst while the demo "works" */
@keyframes bar-scan {
  0%, 12%, 100% { background: var(--bar); }
  4%, 8% { background: var(--ink); }
}
@keyframes bar-work {
  0%, 100% { background: var(--bar); transform: scaleX(1); }
  45% { background: var(--ink); transform: scaleX(1.14); }
}
.bar {
  width: var(--w);
  height: 6px;
  border-radius: 3px;
  background: var(--bar);
  transform-origin: left center;
  animation: bar-scan 6.4s linear infinite;
}
.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.8s; }
.bar:nth-child(3) { animation-delay: 1.6s; }
.bar:nth-child(4) { animation-delay: 2.4s; }
.bar:nth-child(5) { animation-delay: 3.2s; }
.bar:nth-child(6) { animation-delay: 4s; }
.bar:nth-child(7) { animation-delay: 4.8s; }
.bar:nth-child(8) { animation-delay: 5.6s; }

.stack.is-working .bar { animation: bar-work 0.7s ease-in-out both; }
.stack.is-working .bar:nth-child(2) { animation-delay: 0.05s; }
.stack.is-working .bar:nth-child(3) { animation-delay: 0.1s; }
.stack.is-working .bar:nth-child(4) { animation-delay: 0.15s; }
.stack.is-working .bar:nth-child(5) { animation-delay: 0.2s; }
.stack.is-working .bar:nth-child(6) { animation-delay: 0.25s; }
.stack.is-working .bar:nth-child(7) { animation-delay: 0.3s; }
.stack.is-working .bar:nth-child(8) { animation-delay: 0.35s; }

.graph path { stroke: #8A909C; stroke-width: 1.5; }
.graph__node { fill: #fff; stroke: #8A909C; stroke-width: 1.5; }
.graph__node--hub { fill: var(--accent); stroke: var(--ink); }
.graph__pulse { fill: var(--ink); }

@keyframes node-work {
  0%, 100% { fill: #fff; }
  45% { fill: var(--accent); stroke: var(--ink); }
}
.stack.is-working .graph__node:not(.graph__node--hub) { animation: node-work 0.7s ease-in-out both; }

/* The simple interface in front */
.demo {
  position: absolute;
  top: 140px;
  left: 0;
  right: 0;
  width: min(580px, 94%);
  margin-inline: auto;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 26px;
  background: var(--surface);
  box-shadow:
    0 calc(36px + var(--spread, 0) * 40px) calc(70px + var(--spread, 0) * 50px) rgba(11, 13, 18, 0.2),
    0 4px 12px rgba(11, 13, 18, 0.06),
    0 0 0 1px rgba(11, 13, 18, 0.08);
  transform: translate3d(0, calc(var(--spread, 0) * 26px), calc((50px + var(--spread, 0) * 150px) * var(--depth)));
}

.demo__status {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--faint);
}

.stepper {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 14px);
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.step__dot {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 2px solid #B6BBC4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.5s var(--ease-spring);
}
.step__check { display: none; }
.step__pip {
  display: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}
.step__label { transition: color 0.3s ease; }

.step[data-state="todo"] .step__label { color: var(--faint); }

.step[data-state="current"] { font-weight: 600; }
.step[data-state="current"] .step__dot { background: var(--accent); border-color: var(--ink); transform: scale(1.08); }
.step[data-state="current"] .step__pip { display: block; }

.step[data-state="done"] .step__dot { background: var(--ink); border-color: var(--ink); }
.step[data-state="done"] .step__check { display: block; }

.demo.is-finished .step:last-child .step__dot { background: var(--accent); color: var(--ink); transform: scale(1.08); }

.step__line {
  position: relative;
  flex: 1;
  min-width: 12px;
  height: 2px;
  background: #D9DCE1;
}
.step__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.step__line.is-filled::after { transform: scaleX(1); }

.demo__button {
  width: 100%;
  min-height: 56px;
  margin-top: 28px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.demo__button svg { transition: transform 0.4s var(--ease-out); }
.demo__button:hover { background: #20242C; }
.demo__button:hover svg { transform: translateX(4px); }
.demo__button:active { transform: scale(0.985); }
.demo__button[aria-disabled="true"] { cursor: progress; background: #2B3038; }
.demo__button[aria-disabled="true"] svg { display: none; }

/* ================= Sections ================= */

.section { border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.section--white { background: var(--surface); }

.section__inner { padding-block: var(--section-space); }
.section__inner--flush-bottom { padding-bottom: 0; }
.section__inner--flush-top { padding-top: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}
.kicker__mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
}

.section__title {
  margin-top: 22px;
  font-size: clamp(36px, 4.7vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.section__title--wide { max-width: 980px; }

.section__lead {
  max-width: 540px;
  margin-top: 26px;
  line-height: 1.65;
  color: var(--text);
  text-wrap: pretty;
}
.section__lead--wide { max-width: 720px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 48px 72px;
  align-items: center;
}

/* ---------- Start / Next / Done ---------- */

.rows { display: flex; flex-direction: column; gap: 12px; }

.row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ground);
}
.row--done { border-color: var(--ink); background: var(--surface); }

.row__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    transform 0.7s var(--ease-spring);
  transition-delay: calc(var(--i, 0) * 260ms + 450ms);
}
.row--done .row__icon { background: var(--accent); color: var(--ink); }
.row__pip { width: 12px; height: 12px; border-radius: 50%; background: currentColor; }

.js .row:not(.is-in) .row__icon {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--faint);
  transform: scale(0.8);
}

.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s ease;
  transition-delay: calc(var(--i, 0) * 260ms + 700ms);
}
.js .row:not(.is-in) .draw { stroke-dashoffset: 1; }

.row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.row__note { font-size: 16px; line-height: 1.4; color: var(--muted); }
.row__num { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }

/* ---------- Opportunity → product: a line that fills on scroll ---------- */

.timeline {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline__item {
  --f: 1;
  display: flex;
  flex-direction: column;
  padding-right: 28px;
}
.timeline__item--final { padding-right: 0; }

.timeline__rail {
  display: flex;
  align-items: center;
  height: 28px;
  margin-right: -28px;
  margin-bottom: 22px;
}
.timeline__item--final .timeline__rail { margin-right: 0; }

.timeline__node {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.6s var(--ease-spring);
}
.timeline__item--final .timeline__node {
  width: 28px;
  height: 28px;
  background: var(--accent);
}
.timeline__node svg { transition: transform 0.5s var(--ease-spring) 0.1s; }

.timeline__seg {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line-strong);
  overflow: hidden;
}
.timeline__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(var(--f));
  transform-origin: left center;
}

.timeline__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--faint);
}
.timeline__title {
  margin-top: 8px;
  font-size: clamp(19px, 1.65vw, 23px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
  transition: color 0.4s ease;
}
.timeline__mark {
  display: inline;
  padding: 2px 8px;
  margin-left: -8px;
  border-radius: 6px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.7s var(--ease-out);
}

/* "Off" states, only while JavaScript is driving the line */
.js .timeline__item:not(.is-on) .timeline__node { background: var(--ground); border-color: var(--line-strong); transform: scale(0.75); }
.js .timeline__item:not(.is-on) .timeline__node svg { transform: scale(0); }
.js .timeline__item:not(.is-on) .timeline__title { color: #6B7280; }
.js .timeline__item:not(.is-on) .timeline__mark { background-size: 0% 100%; }

/* ---------- The team: moving band ---------- */

.team { margin-top: clamp(64px, 7vw, 100px); }

.team__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

.marquee {
  margin-top: 20px;
  padding-block: clamp(18px, 2.2vw, 30px);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 40px);
  width: max-content;
  will-change: transform;
}
.marquee__item {
  font-size: clamp(38px, 6.2vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.marquee__item--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.marquee__sep {
  width: clamp(14px, 1.5vw, 22px);
  height: clamp(14px, 1.5vw, 22px);
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--accent);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

/* ---------- How we use AI ---------- */

.note {
  margin-top: clamp(40px, 4.5vw, 64px);
  padding: 32px 36px;
  border-radius: 24px;
  background: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
}
.note__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--accent);
}
.note__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: status-blink 1.6s ease-in-out infinite;
}
.note__text {
  flex: 1 1 420px;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: pretty;
}

/* ---------- Partnership ---------- */

.cards {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}
.cards__cell { display: flex; }

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  min-height: 320px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  transform: perspective(900px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform 0.5s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}
/* A lime light follows the cursor across the card */
.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--accent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover { border-color: var(--ink); box-shadow: 0 24px 50px rgba(11, 13, 18, 0.1); }
.card:hover::before { opacity: 0.75; }

.card__icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card__icon svg { transition: transform 0.8s var(--ease-spring); }
.card:hover .card__icon--spin svg { transform: rotate(180deg); }
.card:hover .card__icon--tip svg { transform: rotate(-12deg); }
.card:hover .card__icon--swing svg { transform: rotate(20deg) scale(1.08); }

.card__title {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.card__text {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text);
  text-wrap: pretty;
}

/* ---------- Contact ---------- */

.contact__inner { padding-block: clamp(24px, 3.4vw, 48px); }

.contact {
  --p: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8.4vw, 120px) clamp(24px, 5.6vw, 80px);
  border-radius: calc(32px + (1 - var(--p)) * 40px);
  background: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  transform: scale(calc(0.88 + var(--p) * 0.12));
  transform-origin: 50% 100%;
  will-change: transform;
}
.dots--contact { z-index: -1; }

.contact__title {
  max-width: 1020px;
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.contact__email { font-family: var(--font-mono); font-size: 14px; }

/* ================= Footer ================= */

.site-footer { overflow: hidden; }

.site-footer__meta {
  padding-top: 28px;
  padding-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.site-footer__top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-footer__top:hover { border-bottom-color: var(--ink); }

.site-footer__mark {
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  font-size: clamp(44px, 15.2vw, 236px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: var(--ink);
  margin-top: max(0.06em, 12px);
  margin-bottom: max(0.14em, 28px);
  user-select: none;
}

/* ================= Small screens ================= */

@media (max-width: 860px) {
  .site-nav { display: none; }
}

@media (max-width: 760px) {
  .site-header { top: 10px; padding-inline: 10px; }
  .site-header__bar { min-height: 56px; padding-left: 18px; }
  .hero__inner { padding-bottom: 80px; }
  .hero__tag { font-size: 12px; text-align: left; }

  .stack { --depth: 0.45; margin-top: 56px; height: 350px; }
  .stack__layer { height: 270px; }
  .stack__layer--3 .bars { display: none; }
  .demo { top: 116px; }
  .graph { display: none; }

  .row { padding: 20px; gap: 16px; }
  .row__title { font-size: 23px; }

  /* The line runs downwards instead of across */
  .timeline { margin-top: 48px; grid-template-columns: minmax(0, 1fr); }
  .timeline__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 16px;
    padding-right: 0;
    padding-bottom: 30px;
  }
  .timeline__item--final { padding-bottom: 0; }
  .timeline__rail {
    grid-row: 1 / span 2;
    flex-direction: column;
    height: auto;
    margin: 0 0 -30px;
  }
  .timeline__item--final .timeline__rail { margin-bottom: 0; }
  .timeline__seg { width: 2px; height: auto; }
  .timeline__fill { transform: scaleY(var(--f)); transform-origin: center top; }
  .timeline__label { align-self: end; }
  .timeline__title { margin-top: 4px; }

  .note { padding: 26px 24px; }
  .cards { margin-top: 44px; }
  .card { min-height: 0; padding: 26px; gap: 36px; }
  .contact { gap: 36px; }
}

@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; }
  .btn--small { padding: 0 16px; font-size: 14px; }
  .step { gap: 6px; font-size: 14px; }
  .step__dot { width: 30px; height: 30px; }
  .wordmark { font-size: 19px; }
}

/* ================= Reduced motion ================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .graph__pulse { display: none; }
  .marquee__track { width: auto; flex-wrap: wrap; }
  .marquee__track [data-clone] { display: none; }
  .contact { transform: none; border-radius: 32px; }
}
