/* =====================================================================
   ADFINITY LAB: one stylesheet, one palette.
   Every colour in this file comes from the variables below.
   Change a value here and it changes everywhere.
   ===================================================================== */
:root {
  /* ---- colours ---- */
  --black: #000;
  --white: #fff;
  --black-hover: #262626;                    /* hover colour for black buttons */
  --brand: #6ba8d8;                          /* logo blue: the hero line, dots, text selection */

  /* tints on light sections */
  --ink-muted: rgba(0, 0, 0, .72);
  --ink-line: rgba(0, 0, 0, .16);
  --ink-soft: rgba(0, 0, 0, .08);

  /* tints on dark sections */
  --paper-text: rgba(255, 255, 255, .82);
  --paper-muted: rgba(255, 255, 255, .6);
  --paper-dim: rgba(255, 255, 255, .28);
  --paper-line: rgba(255, 255, 255, .2);
  --paper-soft: rgba(255, 255, 255, .16);

  /* ---- type ---- */
  --font-head: 'Sora', 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --h2: clamp(2rem, 4vw, 2.75rem);
  --h3: clamp(1.1rem, 1.8vw, 1.35rem);

  /* ---- layout + motion ---- */
  --pad-y: 96px;
  --pad-x: 24px;
  --ease: .2s ease-out;
  --in: 1.05s;                               /* Services: slide enters (bigger = slower) */
  --out: .45s;                               /* Services: slide leaves */
}

@media (max-width: 759px) {
  :root { --pad-y: 64px; }
}

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

html { background: var(--white); scroll-behavior: smooth; overflow-x: clip; }
html.smooth { scroll-behavior: auto; }

body {
  overflow-x: clip;
  font: 400 1rem/1.6 var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font-family: var(--font-body); }
::selection { background: var(--brand); color: var(--black); }

a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* section headings share one style */
.process__head h2, .why-head h2, .faq h2, .contact__info h2, .slide__title h2 {
  font-family: var(--font-head);
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

/* small uppercase labels share one style */
.label, .step__body small, .ft-cta__label, .hx-eyebrow, .ft__col h4 {
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* intro paragraphs */
.process__head p, .why-head p, .contact__lead { font-size: 1.08rem; line-height: 1.6; text-wrap: balance; }

/* ================= LOADER ================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--white);
  background: var(--black);
  transition: opacity .9s ease .1s, visibility .9s .1s;
}
.loader.done { opacity: 0; visibility: hidden; }

.loader__box { position: relative; padding: 32px 48px; }
.loader__box b { padding-left: .4em; font-size: 15px; font-weight: 700; letter-spacing: .4em; }

.loader__box i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1px solid var(--paper-muted);
  animation: corner .9s cubic-bezier(.2, .8, .2, 1) both;
}
.loader__box i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.loader__box i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.loader__box i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.loader__box i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
@keyframes corner { from { opacity: 0; transform: scale(2.4); } }

.loader__num { font: 400 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .15em; color: var(--paper-muted); }
.loader__line { width: 96px; height: 1px; background: var(--paper-line); }
.loader__line u { display: block; width: 0; height: 100%; background: var(--white); }

/* ================= NAVBAR ================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 24px 0;
  color: var(--white);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.ready .nav { opacity: 1; transform: none; transition-delay: .3s; }

/* dark glass bar that fades in once you scroll */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .94);
  box-shadow: 0 1px 0 var(--paper-soft);
  opacity: 0;
  transition: opacity .4s;
}
.nav.solid::before { opacity: 1; }

.nav__in {
  max-width: 1220px;
  margin: auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { display: block; height: 34px; width: auto; }
.logo { transition: opacity var(--ease); }

.menu { display: flex; align-items: center; gap: 32px; }

.menu > a, .has-sub > a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  transition: color var(--ease);
}

.has-sub { position: relative; padding: 8px 0; }
.has-sub > a svg { margin-left: 4px; }

.sub {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 200px;
  padding: 12px;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .25s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }

.sub a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--black);
  transition: background-color var(--ease);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  background: var(--white);
  transition: transform var(--ease), background-color var(--ease);
}
.menu > a.pill { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--black); }

.burger {
  display: none;
  position: relative;
  z-index: 30;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  transition: opacity var(--ease);
}
.burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--white); transition: .3s; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger[aria-expanded=true] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.burger[aria-expanded=true] span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

@media (hover: hover) {
  .logo:hover { opacity: .75; }
  .burger:hover { opacity: .7; }
  .menu > a:not(.pill):hover, .has-sub > a:hover { color: var(--white); }
  .pill:hover { background: rgba(255, 255, 255, .85); transform: translateY(-2px); }
  .sub a:hover { background: var(--ink-soft); }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .menu {
    position: fixed;
    inset: 0;
    z-index: 25;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
  }
  .menu.open { opacity: 1; visibility: visible; }
  .menu > a, .has-sub > a { font-size: 18px; }
  .sub { display: none; }
}

@media (max-width: 480px) {
  .logo img { height: 28px; }
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1.5px solid var(--white);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  transition: transform var(--ease), background-color var(--ease), color var(--ease);
}
.btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--black);
  transition: transform var(--ease), background-color var(--ease);
}

.btn--ghost { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn--ghost::after { background: var(--white); }

@media (hover: hover) {
  .btn:hover { background: rgba(255, 255, 255, .85); transform: translateY(-2px); }
  .btn:hover::after { transform: scale(1.7); }
  .btn--ghost:hover { background: var(--white); color: var(--black); }
  .btn--ghost:hover::after { background: var(--black); }
}

/* ================= HERO ================= */
.hx {
  --hp: 0;                                   /* scroll progress 0 → 1, set by script.js */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  color: var(--white);
  background: var(--black);
}

.hx-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  translate: 0 calc(var(--hp) * 16%);
  scale: calc(1 + var(--hp) * .1);
}

/* top-left line */
.hx-top { position: absolute; z-index: 4; inset: clamp(92px, 14vh, 140px) 0 auto; pointer-events: none; }
.hx-top__in {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  translate: calc(var(--hp) * -12vw) calc(var(--hp) * -48px);
  opacity: calc(1 - var(--hp) * 1.6);
}
.hx-lead {
  max-width: 12em;
  font: 700 clamp(1.75rem, 3.6vw, 3.25rem)/1.1 var(--font-head);
  letter-spacing: -.035em;
  text-wrap: balance;
}

/* headline letters (script.js sizes and pops them) */
.hx-stage { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; opacity: calc(1 - var(--hp) * 1.15); }
.hx-row { display: flex; justify-content: center; align-items: flex-start; will-change: height; }
.hx-word { display: flex; align-items: flex-start; }
.hx-word--top { align-self: flex-start; translate: calc(var(--hp) * -14vw) 0; }
.hx-word--bot { align-self: flex-end; translate: calc(var(--hp) * 14vw) 0; }
.hx-ch {
  display: block;
  font: 800 1em/.73 'Inter', var(--font-body);
  letter-spacing: -.025em;
  text-transform: uppercase;
  white-space: pre;
  transform-origin: 50% 60%;
  will-change: font-size, transform;
  user-select: none;
}

/* bottom copy */
.hx-copy {
  position: absolute;
  z-index: 4;
  inset: auto 0 max(36px, env(safe-area-inset-bottom));
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  translate: 0 calc(var(--hp) * -32px);
  opacity: calc(1 - var(--hp) * 1.8);
}
.hx-eyebrow { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .7); }
.hx-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hx-sub {
  max-width: 32em;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -.005em;
  color: var(--paper-text);
  text-wrap: balance;
}
.hx-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* entrance, starts when the loader finishes */
.hx-fade { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.ready .hx-fade { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

@media (max-width: 760px) {
  .hx { min-height: 620px; }
  .hx-top { top: 88px; }
}

/* ================= SERVICES ================= */
.services { position: relative; }                       /* script.js sets its height */
.sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.track { position: relative; height: 100%; }

/* three columns: title | square (always the exact centre) | text */
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 48px;
  padding: 0 64px;
  pointer-events: none;
  --dir: 1;                                  /* 1 = waiting on the right */
}
.slide.is-before { --dir: -1; }              /* passed: waits on the left */
.slide.is-active { --dir: 0; pointer-events: auto; }

/* leaving is quick, entering is slower and staggered */
.slide__title, .slide__tile, .slide__text {
  opacity: 0;
  transform: translateX(calc(var(--x) * var(--dir)));
  transition: transform var(--out) ease-in, opacity calc(var(--out) * .8) ease-in, background-color var(--ease);
}
.slide.is-active .slide__title, .slide.is-active .slide__tile, .slide.is-active .slide__text {
  opacity: 1;
  transition: transform var(--in) cubic-bezier(.2, .8, .2, 1) var(--delay), opacity calc(var(--in) * .8) ease-out var(--delay), background-color var(--ease);
}
.slide__title { --x: 140px; --delay: .2s; justify-self: end; max-width: 440px; text-align: right; }
.slide__tile  { --x: 70px;  --delay: .3s; }
.slide__text  { --x: 100px; --delay: .4s; justify-self: start; max-width: 340px; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  letter-spacing: .18em;
  color: var(--ink-muted);
}
.label::before { content: ""; order: 2; width: 32px; height: 1px; background: currentColor; }

.slide__title h2 { overflow-wrap: anywhere; }

.slide__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(160px, 18vw, 250px);
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--black);
  will-change: rotate;
}
.slide__tile svg { width: 38%; fill: none; stroke: var(--white); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.slide__tile em {
  position: absolute;
  left: 18px;
  top: 14px;
  font: normal 600 .875rem var(--font-head);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .85);
}

.slide__text { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; }
.slide__text p {
  order: 1;
  flex: 0 0 100%;
  margin-bottom: 12px;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -.005em;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.slide__text a {
  order: 2;
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1.5px solid var(--black);
  border-radius: 99px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color var(--ease), color var(--ease);
}
.slide__text a:first-of-type { color: var(--white); background: var(--black); }

@media (hover: hover) {
  .slide.is-active .slide__tile:hover { background: var(--black-hover); }
  .slide__text a:first-of-type:hover { background: var(--black-hover); }
  .slide__text a:last-of-type:hover { color: var(--white); background: var(--black); }
}

/* progress line + counter */
.progress { position: absolute; left: 64px; right: 64px; bottom: 8vh; display: flex; align-items: center; gap: 24px; }
.bar { flex: 1; height: 2px; background: var(--ink-line); }
.bar span { display: block; width: 0; height: 100%; background: var(--black); transition: width .9s ease; }
.progress b { font-size: .875rem; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

@media (min-width: 1024px) {
  .slide { padding: 0 96px; }
  .progress { left: 96px; right: 96px; }
}
@media (min-width: 1280px) {
  .slide { column-gap: 64px; }
}

/* tablet + phone: everything stacked and centred, square in the middle */
@media (max-width: 1100px) {
  .slide {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    row-gap: 24px;
    padding: 96px 32px;
    text-align: center;
  }
  .slide__title, .slide__text { justify-self: center; max-width: 440px; text-align: center; }
  .slide__tile { width: clamp(120px, 24vw, 200px); }
  .slide__text { justify-content: center; }
  .progress { left: 32px; right: 32px; }
}

/* ================= PROCESS ================= */
.process {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  color: var(--white);
  background: var(--black);
  box-shadow: 0 0 0 100vmax var(--black);                /* full-width band around the centred column */
  clip-path: inset(0 -100vmax);
}
.process__head { margin-bottom: 48px; text-align: center; }
.process__head p { margin-top: 16px; color: var(--paper-text); }

.steps { position: relative; padding-left: 48px; }
.steps__track { position: absolute; inset: 0 auto 0 0; width: 2px; border-radius: 2px; background: var(--paper-line); }
.steps__fill { position: relative; width: 100%; height: 0; border-radius: 2px; background: var(--white); }   /* script.js sets height */
.steps__dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 5px var(--paper-line);
  transform: translate(-50%, 50%);
}

.step { display: flex; align-items: flex-start; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--paper-line); }
.step:last-child { border-bottom: 0; }
.step__num, .step__body * { transition: color .5s; }

/* big number, hidden overflow lets the digits roll in */
.step__num {
  flex: 0 0 clamp(80px, 11vw, 110px);
  height: 1em;
  overflow: hidden;
  font: 700 clamp(2.6rem, 5vw, 3.8rem)/1 var(--font-head);
  letter-spacing: -.04em;
  color: var(--paper-dim);
}
.step__num span { display: block; }

.step__body small { display: block; margin-bottom: 8px; }
.step__body h3 { font: 600 var(--h3)/1.3 var(--font-head); letter-spacing: -.01em; }
.step__body p { max-width: 420px; margin-top: 12px; line-height: 1.65; text-wrap: pretty; }
.step__body small, .step__body h3, .step__body p { color: var(--paper-muted); }

.step.is-active .step__num, .step.is-active small, .step.is-active h3 { color: var(--white); }
.step.is-active p { color: var(--paper-text); }
.step.is-active .step__num span { animation: roll .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes roll { from { transform: translateY(70%); } }

@media (min-width: 760px) { .step { padding: 48px 0; } }
@media (min-width: 1024px) { .process__head { margin-bottom: 64px; } }
@media (max-width: 600px) { .steps { padding-left: 32px; } .step { gap: 16px; } }

/* ================= WHY ================= */
.why { padding: var(--pad-y) var(--pad-x); }
.why-head { max-width: 620px; margin: 0 auto 32px; text-align: center; }
.why-head p { margin-top: 16px; color: var(--ink-muted); }
@media (min-width: 760px) { .why-head { margin-bottom: 48px; } }
@media (min-width: 1280px) { .why-head { margin-bottom: 64px; } }

.panels { display: flex; gap: 16px; height: 400px; max-width: 1150px; margin: auto; }

.panel {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  cursor: pointer;
  color: var(--black);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink-line);
  transition: flex .7s cubic-bezier(.2, .8, .2, 1), background .5s, color .5s, box-shadow var(--ease), transform var(--ease);
}
.panel.active { flex: 3.4; color: var(--white); background: var(--black); box-shadow: none; }
.panel:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
@media (hover: hover) {
  .panel:not(.active):hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); transform: translateY(-2px); }
}

.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 22px;
  color: var(--black);
  background: var(--ink-soft);
  transition: background .5s, color .5s;
}
.panel.active .icon { color: var(--white); background: var(--paper-soft); }

.panel h3 { margin-top: 24px; font: 600 1.05rem/1.3 var(--font-head); letter-spacing: -.01em; }

.more { width: 450px; max-width: 100%; margin-top: 12px; opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s; }
.panel.active .more { opacity: 1; transform: none; transition-delay: .3s; }
.more p { line-height: 1.65; color: var(--paper-text); text-wrap: pretty; }

/* shared box for every graph */
.viz { position: relative; height: 124px; margin-top: 24px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .09); }

.meter { height: 6px; overflow: hidden; border-radius: 4px; background: var(--paper-line); }
.meter i { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--white); transition: width 1s cubic-bezier(.2, .8, .2, 1) .6s; }
.panel.active .meter i { width: var(--w); }

/* 1. line chart: the line draws itself */
.chip { position: absolute; top: 10px; left: 14px; padding: 4px 12px; border-radius: 99px; font-size: 12px; background: var(--paper-soft); }
.line-chart { position: absolute; inset: 12px 14px; width: calc(100% - 28px); height: calc(100% - 24px); overflow: visible; }
.line-chart line { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.line-chart .stroke { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.4, .1, .2, 1) .5s; }
.line-chart .area { fill: rgba(255, 255, 255, .12); opacity: 0; transition: opacity 1s 1.5s; }
.panel.active .line-chart .stroke { stroke-dashoffset: 0; }
.panel.active .line-chart .area { opacity: 1; }

.end-dot { position: absolute; top: 19px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1) 2s; }
.panel.active .end-dot { transform: scale(1); animation: ping 1.2s 2.2s 2; }
@keyframes ping {
  from { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  to { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

/* 2. A/B ad test */
.ab { display: flex; gap: 16px; height: 100%; }
.ad { position: relative; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.thumb { flex: 1; border-radius: 8px; background: var(--paper-soft); }
.b .thumb { background: linear-gradient(135deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .6)); }
.ctr { display: flex; justify-content: space-between; font-size: 12px; }
.win { position: absolute; top: -4px; right: -4px; z-index: 1; padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 500; color: var(--black); background: var(--white); transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) 1.5s; }
.panel.active .win { transform: scale(1); }

/* 3. funnel: layers open one by one */
.funnel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; }
.layer { display: flex; align-items: center; width: var(--w); height: 24px; padding: 0 12px; border-radius: 6px; font-size: 12px; background: rgba(255, 255, 255, .26); clip-path: inset(0 50% 0 50%); transition: clip-path .7s cubic-bezier(.2, .8, .2, 1); }
.layer:last-child { font-weight: 500; color: var(--black); background: var(--white); }
.panel.active .layer { clip-path: inset(0); }
.panel.active .layer:nth-child(1) { transition-delay: .5s; }
.panel.active .layer:nth-child(2) { transition-delay: .85s; }
.panel.active .layer:nth-child(3) { transition-delay: 1.2s; }

/* 4. ROI gauge + spend vs revenue */
.roi { display: flex; align-items: center; gap: 24px; height: 100%; }
.gauge { position: relative; flex: none; width: 92px; height: 92px; }
.gauge svg { width: 100%; height: 100%; fill: none; stroke-width: 9; }
.gauge .bg { stroke: var(--paper-line); }
.gauge .fg { stroke: var(--white); stroke-linecap: round; stroke-dasharray: 0 227; transition: stroke-dasharray 1.4s cubic-bezier(.3, .1, .2, 1) .5s; }
.panel.active .gauge .fg { stroke-dasharray: var(--d) 227; }
.gauge b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 20px var(--font-head); }
.rows { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.row span { display: block; margin-bottom: 4px; font-size: 12px; }

/* cards rise in one after another (an animation, so the hover lift still works afterwards) */
.js-anim .panels:not(.in-view) .panel { opacity: 0; }
.panels.in-view .panel { animation: panel-in .9s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * .12s); }
@keyframes panel-in { from { opacity: 0; transform: translateY(56px) scale(.97); } }

@media (min-width: 801px) and (max-width: 1100px) {
  .panels { height: auto; min-height: 420px; align-items: stretch; }
  .panel { min-height: 420px; padding: 20px; }
  .panel.active .more { width: 100%; }
}

/* mobile: panels stack, tap to open */
@media (max-width: 800px) {
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.active { flex: none; }
  .panel { height: auto; min-height: 150px; overflow: visible; }
  .panel.active { min-height: 0; padding-bottom: 28px; }
  .more { width: auto; max-height: 0; margin-top: 0; overflow: hidden; transition: max-height .65s ease, opacity .4s, margin .4s; }
  .panel.active .more { max-height: 1200px; margin-top: 12px; overflow: visible; }
}

/* ================= FAQ ================= */
.faq {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  color: var(--white);
  background:
    radial-gradient(420px 320px at 0% 100%, rgba(255, 255, 255, .07), transparent 70%),
    radial-gradient(420px 320px at 100% 0%, rgba(255, 255, 255, .06), transparent 70%),
    var(--black);
}
.faq__in { position: relative; z-index: 1; max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 861px) { .faq__in { gap: 64px; } }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } }

.faq h2 { max-width: 440px; margin-bottom: 32px; }

/* search pill */
.faq__search { position: relative; display: block; margin-bottom: 24px; }
.faq__search input {
  width: 100%;
  padding: 16px 48px 16px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--white);
  background: var(--paper-soft);
  border: 1px solid var(--paper-line);
  border-radius: 99px;
  outline: none;
  transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}
.faq__search input::placeholder { font-style: italic; color: var(--paper-text); }
.faq__search input:hover { border-color: rgba(255, 255, 255, .55); }
.faq__search input:focus { background: rgba(255, 255, 255, .28); border-color: var(--white); box-shadow: 0 0 0 4px var(--paper-line); }
.faq__search svg { position: absolute; top: 50%; right: 22px; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; pointer-events: none; }

/* accordion */
.faq__item { border-bottom: 1px solid var(--paper-line); }
.faq__item h3 { font: inherit; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: var(--white);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--ease);
}
.faq__q:hover, .faq__item.is-open .faq__q { color: var(--paper-text); }

/* + turns into - */
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--white); transition: transform .35s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }

/* answer slides open (0fr → 1fr) */
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.faq__a > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility .4s; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > div { visibility: visible; }
.faq__a p { max-width: 460px; padding-bottom: 24px; line-height: 1.65; color: var(--paper-text); }

.faq__empty { padding: 24px 0; color: var(--paper-text); }
.faq__empty a { font-weight: 600; color: var(--white); }

/* illustration */
.faq__art { width: 100%; max-width: 520px; height: auto; justify-self: center; will-change: rotate; }
.faq__mark { animation: faq-float 4s ease-in-out infinite alternate; }
@keyframes faq-float { to { transform: translateY(-8px); } }
@media (max-width: 860px) { .faq__art { max-width: 340px; } }

/* ================= CONTACT ================= */
.contact {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: var(--pad-y) var(--pad-x);
  color: var(--black);
  background: var(--white);
}

/* decorative circuit lines */
.contact__lines { position: absolute; top: 60px; width: 240px; fill: none; stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.contact__lines circle { fill: var(--white); }
.contact__lines--left { left: 0; }
.contact__lines--right { right: 0; }

/* big CONTACT word (change its fade here) */
.contact__ghost {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 32px;
  font: 700 clamp(70px, 12vw, 150px)/1 var(--font-head);
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .35));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
  will-change: translate;
}

.contact__wrap { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (min-width: 760px) { .contact__wrap { gap: 48px; } }
@media (min-width: 1280px) { .contact__wrap { gap: 64px; } }

.contact__chip { display: inline-block; margin-bottom: 16px; padding: 8px 16px; font-size: .8rem; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--ink-line); border-radius: 999px; background: var(--white); }
.contact__info h2 { margin-bottom: 12px; }
.contact__lead { max-width: 340px; margin-bottom: 24px; color: var(--ink-muted); }

.contact__row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.contact__row:nth-of-type(3) { opacity: .6; }
.contact__row:focus-visible, .contact__row:hover { border-color: var(--black); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); transform: translateY(-2px); outline: none; }
.contact__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; font-size: 16px; background: var(--ink-soft); }
.contact__text { flex: 1; display: grid; gap: 4px; }
.contact__text strong { font-size: .95rem; font-weight: 600; }
.contact__text small { font-size: .875rem; color: var(--ink-muted); }
.contact__arrow { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ink-line); border-radius: 50%; font-size: 11px; background: var(--ink-soft); transition: transform .2s; }
.contact__row:hover .contact__arrow { transform: translate(2px, -2px); }

/* form */
.contact__form { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--ink-line); border-radius: 16px; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .14); }
.contact__form input, .contact__form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}
.contact__form textarea { height: 180px; resize: none; }
.contact__form ::placeholder { color: var(--ink-muted); }
.contact__form input:hover, .contact__form textarea:hover { border-color: rgba(0, 0, 0, .45); }
.contact__form input:focus, .contact__form textarea:focus { background: var(--white); border-color: var(--black); box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
.contact__form .invalid { border-color: var(--black); box-shadow: 0 0 0 2px var(--black); }
.contact__status { min-height: 14px; padding: 0 4px; font-size: 12px; color: var(--ink-muted); }
.contact__status.error, .contact__status.ok { font-weight: 600; color: var(--black); }
.contact__form button { padding: 12px; font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--white); background: var(--black); border: 0; border-radius: 10px; cursor: pointer; transition: background-color var(--ease), transform .1s; }
.contact__form button:hover { background: var(--black-hover); }
.contact__form button:active { transform: scale(.99); }
.contact__form button:disabled { opacity: .6; cursor: wait; }

@media (max-width: 760px) {
  .contact__wrap { grid-template-columns: 1fr; gap: 24px; }
  .contact__lines { display: none; }
  .contact__form input, .contact__form textarea { font-size: 16px; }   /* stops iPhones zooming into the field */
}

/* ================= FOOTER ================= */
.site-footer { color: var(--white); background: var(--black); }

/* big moving text + button that follows the mouse */
.ft-cta { position: relative; overflow: hidden; }
.ft-cta__link { display: block; padding: 96px 0; cursor: pointer; }
.ft-marquee { overflow: hidden; }
.ft-marquee__track {
  display: block;
  width: max-content;
  font: 700 clamp(2.6rem, 7.5vw, 6rem)/1.15 var(--font-head);
  letter-spacing: -.04em;
  white-space: pre;
  animation: ft-scroll 28s linear infinite;      /* the text repeats 4 times, so -25% loops without a seam */
}
@keyframes ft-scroll { to { transform: translateX(-25%); } }
.ft-cta__label { margin-top: 24px; text-align: center; color: rgba(255, 255, 255, .8); }

.ft-cta__btn {                                 /* moved by script.js */
  position: absolute;
  top: 0;
  left: 0;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  pointer-events: none;
  will-change: transform;
  transition: background-color var(--ease);
}
@media (hover: hover) { .ft-cta__link:hover .ft-cta__btn { background: rgba(255, 255, 255, .85); } }

/* touch screens have no mouse: the button just sits under the text */
@media (hover: none) {
  .ft-cta__link { padding-bottom: 64px; }
  .ft-cta__btn { position: static; display: block; width: max-content; margin: 24px auto 0; }
}

/* links */
.ft { max-width: 1220px; margin: 0 auto; padding: 48px var(--pad-x) 32px; }
.ft__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 1.2fr; gap: 48px; }
.ft__logo { font: 700 24px var(--font-head); letter-spacing: -.03em; transition: opacity var(--ease); }
.ft__brand p { margin-top: 16px; line-height: 1.65; color: rgba(255, 255, 255, .75); text-wrap: pretty; }
.ft__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ft__col h4 { margin-bottom: 8px; }
.ft__col a { font-size: .95rem; color: rgba(255, 255, 255, .75); transition: color var(--ease), background-color var(--ease), transform var(--ease); }
.ft__col .ft__btn { margin-top: 8px; padding: 12px 24px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--black); background: var(--white); }
.ft__copy { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--paper-line); font-size: .85rem; color: var(--paper-muted); }

@media (hover: hover) {
  .ft__logo:hover { opacity: .8; }
  .ft__col a:hover { color: var(--white); }
  .ft__col .ft__btn:hover { background: rgba(255, 255, 255, .85); transform: translateY(-2px); }
}
@media (max-width: 900px) {
  .ft__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .ft__grid { grid-template-columns: 1fr; } }

/* ================= CURSOR (mouse devices only) ================= */
html.has-cursor, html.has-cursor * { cursor: none !important; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 0 0 1.5px var(--white);          /* ring keeps it visible on dark sections */
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity .25s;
}
.cursor.show { opacity: 1; }
.cursor::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.cursor.hover::after { transform: scale(1.9); opacity: .35; }
.cursor.down::after { transform: scale(.7); }
.cursor.hover.down::after { transform: scale(1.4); }

/* ================= SCROLL EFFECTS ================= */
/* thin progress line at the top: white on dark sections, black on white ones */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: var(--white); mix-blend-mode: difference; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* reveals: up, from the left, from the right */
.reveal { opacity: 0; transition: opacity 1s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--rd, 0s); }
.reveal.reveal-u:not(.in) { transform: translate3d(0, 40px, 0); }
.reveal.reveal-l:not(.in) { transform: translate3d(-72px, 0, 0); }
.reveal.reveal-r:not(.in) { transform: translate3d(72px, 0, 0); }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .reveal.reveal-l:not(.in) { transform: translate3d(-32px, 0, 0); }
  .reveal.reveal-r:not(.in) { transform: translate3d(32px, 0, 0); }
}

/* words that light up as you scroll */
.w { transition: opacity .25s linear; will-change: opacity; }

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
