/* ============================================================================
   FEEDBACK STUDIOS — "Revenue Terminal"
   Dark, kinetic, editorial-tech art direction. Token-driven so a dev can
   re-theme from one block. Satoshi (display + body) + Spline Sans Mono (data).
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Spline+Sans+Mono:wght@400;500;600&display=swap");

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS — primitives -> semantic -> component
--------------------------------------------------------------------------- */
:root {
  /* primitives — brand */
  --violet: #8b5cf6;
  --violet-600: #7c3aed;
  --blue: #3b82f6;
  --emerald: #10b981;

  /* primitives — neutral (dark canvas) */
  --c-bg: #07070b;
  --c-bg-2: #0d0d14;
  --c-surface: #12121b;
  --c-line: rgba(255, 255, 255, 0.09);
  --c-line-strong: rgba(255, 255, 255, 0.16);

  /* text (verified contrast on --c-bg) */
  --c-text: #f4f4f7;       /* ~18:1 */
  --c-text-dim: #c2c2cf;   /* ~9:1  — body on dark */
  --c-text-faint: #9a9aac; /* ~5:1  — small labels */

  /* semantic */
  --color-bg: var(--c-bg);
  --color-surface: var(--c-surface);
  --color-text: var(--c-text);
  --color-primary: var(--violet);
  --color-accent: var(--emerald);
  --color-ring: var(--violet);

  /* gradients */
  --grad-brand: linear-gradient(100deg, var(--blue), var(--violet) 52%, var(--emerald));
  --grad-text: linear-gradient(100deg, #7cb2ff, #b69bff 50%, #4ee3ad);
  /* darker brand gradient for legible gradient-text on the light "paper" bg */
  --grad-text-ink: linear-gradient(100deg, #2563eb, #7c3aed 50%, #059669);

  /* inverted (light "paper") sections */
  --paper: #f4f1ea;
  --paper-2: #ece7db;
  --paper-ink: #14141a;
  --paper-dim: #44444f; /* ~8:1 on paper */
  --paper-line: rgba(20, 20, 26, 0.14);

  /* type */
  --font-sans: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  /* fluid scale */
  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 5rem);
  --step-5: clamp(3.2rem, 2rem + 6vw, 7.5rem);

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 18px;

  /* motion — Emil Kowalski craft easing system.
     Built-in CSS easings are too weak; these are the agency's signature curves.
     NEVER use ease-in for UI. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);        /* entrances, on-screen settle */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* movement that starts AND stops on screen */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);     /* panels, drawers, accordions */
  --ease: var(--ease-out);                            /* legacy alias */

  /* timing personality — UI interactions stay <300ms */
  --t-press: 0.14s;        /* button/link press feedback */
  --t-fast: 0.18s;         /* hover micro-motion */
  --t-mid: 0.26s;          /* dropdowns, small reveals */
  --t-slow: 0.5s;          /* larger settle */
  --t: var(--t-mid) var(--ease-out);
  --t-move: var(--t-mid) var(--ease-in-out);

  --scroll-progress: 0;
  color-scheme: dark;
}

/* ---------------------------------------------------------------------------
   2. RESET / BASE
--------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible {
  outline: 3px solid #6ee7b7; /* emerald-300: ~6:1 on the dark canvas */
  outline-offset: 3px;
  border-radius: 4px;
}
/* On light "paper" sections use a dark violet so the ring stays >=3:1 */
[data-invert] :focus-visible {
  outline-color: var(--violet-600);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1.1rem;
  background: var(--violet);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* film grain + ambient aurora */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 15% 10%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(45% 45% at 85% 20%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(40% 40% at 60% 90%, rgba(16, 185, 129, 0.12), transparent 70%);
  filter: blur(20px);
}

/* ---------------------------------------------------------------------------
   3. UTILITIES
--------------------------------------------------------------------------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}
.frame {
  position: relative;
  z-index: 2;
  padding-block: var(--section-y);
}
.display {
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strike {
  position: relative;
  color: var(--c-text-faint);
}
.strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 52%;
  height: 0.09em;
  background: var(--emerald);
  transform: rotate(-3deg);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-text-dim);
}
.kicker__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}
.rule { height: 1px; background: var(--c-line); }
.arrow { display: inline-block; transition: transform var(--t); }

.sec-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head--center { text-align: center; }
.sec-head--center .kicker { justify-content: center; }
.sec-head__title {
  font-size: var(--step-4);
  margin-top: 1rem;
  max-width: 16ch;
}
.sec-head--center .sec-head__title { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   4. INVERTED (light "paper") SECTIONS
--------------------------------------------------------------------------- */
[data-invert] {
  background: var(--paper);
  color: var(--paper-ink);
}
[data-invert] .kicker { color: var(--paper-dim); }
[data-invert] .rule { background: var(--paper-line); }
/* gradient text must stay legible on the light paper bg */
[data-invert] .grad { background-image: var(--grad-text-ink); }

/* ---------------------------------------------------------------------------
   5. BUTTONS
--------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition:
    transform var(--t-press) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out),
    background-position 0.55s var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    color var(--t-mid) var(--ease-out);
  will-change: transform;
  overflow: hidden;
}
.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--step--1); }
.btn--accent {
  color: #fff;
  background: var(--grad-brand);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 8px 30px -8px rgba(139, 92, 246, 0.55);
}
/* sheen that sweeps across on hover — a small, deliberate detail */
.btn--accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover {
    background-position: 100% 50%;
    box-shadow: 0 16px 44px -8px rgba(139, 92, 246, 0.7);
    transform: translateY(-1px);
  }
  .btn--accent:hover::after { transform: translateX(120%); }
}
/* press: instant tactile dip, faster than the hover settle */
.btn--accent:active { transform: scale(0.97); transition-duration: var(--t-press); }
.btn--ghost {
  color: var(--c-text);
  border-color: var(--c-line-strong);
  background: rgba(255, 255, 255, 0.02);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    border-color: var(--violet);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
  }
  .btn--ghost:hover .arrow { transform: translateX(5px); }
}
.btn--ghost:active { transform: scale(0.97); transition-duration: var(--t-press); }
[data-invert] .btn--ghost { color: var(--paper-ink); border-color: var(--paper-line); }
@media (hover: hover) and (pointer: fine) {
  [data-invert] .btn--ghost:hover { border-color: var(--violet-600); background: rgba(124, 58, 237, 0.08); }
}

/* ---------------------------------------------------------------------------
   6. CUSTOM CURSOR
--------------------------------------------------------------------------- */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor [data-cursor] { cursor: none; }
.cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
}
.cursor-dot {
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--emerald);
  mix-blend-mode: difference;
  transition: transform var(--t-press) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.cursor-dot.is-pressed { transform: scale(0.5); }
.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: grid; place-items: center;
  transition:
    width var(--t-mid) var(--ease-out),
    height var(--t-mid) var(--ease-out),
    margin var(--t-mid) var(--ease-out),
    transform var(--t-press) var(--ease-out),
    background var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out);
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--violet);
}
.cursor-ring.is-labelled {
  width: 88px; height: 88px;
  margin: -44px 0 0 -44px;
  background: var(--violet);
  border-color: var(--violet);
}
/* press: the ring dips, sharing the buttons' tactile language */
.cursor-ring.is-pressed { transform: scale(0.82); }
.cursor-ring__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  padding: 0 6px;
}

/* ---------------------------------------------------------------------------
   7. HEADER
--------------------------------------------------------------------------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--t), backdrop-filter var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled {
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--c-line);
}
.progress-bar {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 100%;
  transform-origin: left;
  transform: scaleX(var(--scroll-progress));
  background: var(--grad-brand);
}
.site-head__inner {
  width: min(100% - var(--gutter) * 2, 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(0.8rem, 1.6vw, 1.2rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-brand);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__mark {
    transform: rotate(-8deg) scale(1.06);
    box-shadow: 0 6px 20px -6px rgba(139, 92, 246, 0.7);
  }
}
.brand:active .brand__mark { transform: scale(0.94); transition-duration: var(--t-press); }
.brand__dot {
  width: 9px; height: 9px;
  border-radius: 3px;
  background: #fff;
  transition: transform var(--t-mid) var(--ease-drawer);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__dot { transform: rotate(45deg); border-radius: 2px; }
}
.brand__name { font-size: var(--step-0); }
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: var(--step--1);
  font-weight: 500;
}
.site-nav a {
  position: relative;
  color: var(--c-text-dim);
  transition: color var(--t-mid) var(--ease-out);
  padding-block: 0.3rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px; width: 100%;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--c-text); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }
/* scroll-spy active state */
.site-nav a.is-active { color: var(--c-text); }
.site-nav a.is-active::after { transform: scaleX(1); background: var(--grad-brand); }
.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--c-text);
  transition: transform var(--t-mid) var(--ease-drawer), opacity var(--t-fast) var(--ease-out);
}
.burger:active { transform: scale(0.92); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 860px) {
  .site-nav, .site-head__cta { display: none; }
  .burger { display: flex; }
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(7, 7, 11, 0.97);
    backdrop-filter: blur(16px);
    padding: 6rem var(--gutter) 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; }
  .mobile-menu ul { display: flex; flex-direction: column; gap: 1.5rem; }
  .mobile-menu a:not(.btn) {
    font-size: var(--step-3);
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .mobile-menu .btn { margin-top: 1rem; }
}

/* ---------------------------------------------------------------------------
   8. HERO
--------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(8rem, 14vh, 11rem) clamp(3rem, 6vh, 5rem);
  overflow: hidden;
  --mx: 50%;
  --my: 40%;
}
.hero__media { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 11, 0.5), rgba(7, 7, 11, 0.82) 60%, var(--c-bg)),
    linear-gradient(90deg, rgba(7, 7, 11, 0.72), transparent 62%);
}
.hero__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(440px circle at var(--mx) var(--my), rgba(139, 92, 246, 0.24), transparent 60%);
  mix-blend-mode: screen;
}
/* fine grain over the video so it never looks like flat stock footage */
.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
  z-index: 1;
  opacity: 0.9;
}
.hero-svg__grid line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.hero-svg__line { filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.5)); }
.hero-svg__dot {
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.9));
  animation: heroPulse 2.4s var(--ease-in-out) infinite;
}
/* expanding ring around the live marker — radar/ping feel */
.hero-svg__dot-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroPing 2.8s var(--ease-out) infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes heroPing {
  0% { transform: scale(0.6); opacity: 0.7; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-text-dim);
  margin-bottom: 1.4rem;
}
.hero__live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: live 2s infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero__h1 {
  font-size: var(--step-5);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 15ch;
  visibility: hidden; /* revealed by GSAP; reduced-motion fallback re-shows */
}
/* SplitText line wrappers — clip so words rise from behind a mask */
.hero__line { overflow: hidden; padding-bottom: 0.06em; }
.hero__h1 .word { display: inline-block; }
/* FOUC guard: hide stagger items until GSAP takes over (re-shown by JS, or by
   the reduced-motion fallback below). */
.hero__stagger { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero__stagger { opacity: 1; }
}
.hero__sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: var(--step-1);
  color: var(--c-text-dim);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 3rem;
}
.hero__trust dt {
  font-weight: 900;
  font-size: var(--step-2);
  letter-spacing: -0.03em;
}
.hero__trust dd {
  font-size: var(--step--1);
  color: var(--c-text-faint);
  max-width: 16ch;
}
.hero__trust-div { width: 1px; height: 38px; background: var(--c-line-strong); }
.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--c-text-faint);
}
.hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(var(--violet), transparent);
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------------------------------------------------------------------
   9. KINETIC TAPE
--------------------------------------------------------------------------- */
.tape {
  position: relative;
  z-index: 2;
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
  border-block: 1px solid var(--c-line);
  background: var(--c-bg-2);
  overflow: hidden;
}
.marq { display: flex; white-space: nowrap; will-change: transform; }
.marq__track { display: flex; flex-shrink: 0; align-items: center; }
.marq__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-inline: clamp(0.8rem, 2vw, 1.8rem);
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  color: var(--c-text);
}
/* every other item is outlined => richer, layered tape (not flat text) */
.marq__item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--c-text-faint);
}
.marq__star {
  color: var(--violet);
  font-size: 0.6em;
  display: inline-block;
  animation: starSpin 9s linear infinite;
}
@keyframes starSpin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
   10. MANIFESTO
--------------------------------------------------------------------------- */
.manifesto__wrap { width: min(100% - var(--gutter) * 2, 1100px); }
.manifesto__lead {
  font-size: var(--step-4);
  margin: 1.4rem 0 1.8rem;
  max-width: 20ch;
}
.manifesto__body {
  font-size: var(--step-1);
  color: var(--c-text-dim);
  max-width: 52ch;
}
.manifesto__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--c-line);
}
.manifesto__stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  padding-left: 1rem;
}
.manifesto__stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2rem; bottom: 0.2rem;
  width: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: scaleY(0.6);
  transform-origin: top;
  transition: transform var(--t-mid) var(--ease-out);
}
.manifesto__stat:hover::before { transform: scaleY(1); }
.manifesto__stat-v { font-size: var(--step-2); letter-spacing: -0.02em; }
.manifesto__stat-k {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-text-faint);
}
@media (max-width: 640px) {
  .manifesto__stats { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ---------------------------------------------------------------------------
   11b. SECTION DIVIDER (cinematic drawn rule)
--------------------------------------------------------------------------- */
.divider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-block: clamp(1.2rem, 3vw, 2.2rem);
}
.divider__label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.divider__svg { flex: 1; height: 12px; }
.divider__line { will-change: stroke-dashoffset; }
.divider__node {
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
  margin-left: -1.2rem;
  will-change: transform;
}

/* ---------------------------------------------------------------------------
   11. PROOF / INDUSTRIES
--------------------------------------------------------------------------- */
.proof {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--c-line);
}
.proof__label { display: block; margin-bottom: 1.6rem; }
.proof__list { display: flex; flex-wrap: wrap; gap: 0.7rem 0.9rem; }
.proof__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--c-text-dim);
  transition:
    color var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    background var(--t-mid) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.proof__item-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-text-faint);
  transition: background var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .proof__item:hover {
    color: var(--c-text);
    border-color: var(--violet);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-3px);
  }
  .proof__item:hover .proof__item-dot {
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
  }
}

/* ---------------------------------------------------------------------------
   12. SERVICES LEDGER
--------------------------------------------------------------------------- */
.ledger { border-top: 1px solid var(--c-line); }
.ledger__row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1.4fr) 2.5rem;
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--c-line);
  position: relative;
  transition: padding-left var(--t-mid) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.ledger__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease-out);
  z-index: -1;
}
/* accent bar that wipes in from the left on hover */
.ledger__row::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ledger__row:hover { padding-left: 1.4rem; }
  .ledger__row:hover::before { opacity: 0.08; }
  .ledger__row:hover::after { transform: scaleY(1); }
}
.ledger__row:active { transform: scale(0.992); transition-duration: var(--t-press); }
.ledger__no { font-family: var(--font-mono); font-size: var(--step--1); color: var(--c-text-faint); transition: color var(--t-mid) var(--ease-out); }
.ledger__name {
  font-size: var(--step-2);
  transition: color var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ledger__row:hover .ledger__no { color: var(--emerald); }
  .ledger__row:hover .ledger__name {
    color: transparent;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.ledger__desc { color: var(--c-text-dim); font-size: var(--step-0); }
.ledger__arrow {
  justify-self: end;
  font-size: 1.4rem;
  color: var(--c-text-faint);
  transition: transform var(--t-mid) var(--ease-out), color var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ledger__row:hover .ledger__arrow { color: var(--violet); transform: translate(5px, -5px); }
}
@media (max-width: 760px) {
  .ledger__row {
    grid-template-columns: 3rem 1fr 2rem;
    grid-template-areas: "no name arrow" "no desc desc";
    gap: 0.4rem 1rem;
  }
  .ledger__no { grid-area: no; }
  .ledger__name { grid-area: name; font-size: var(--step-1); }
  .ledger__desc { grid-area: desc; }
  .ledger__arrow { grid-area: arrow; }
}

/* ---------------------------------------------------------------------------
   13. SCOREBOARD (metrics)
--------------------------------------------------------------------------- */
.score__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}
.score__num { font-size: var(--step-4); line-height: 1; font-variant-numeric: tabular-nums; }
.score__num.is-accent {
  color: transparent;
  background: var(--grad-text-ink); /* dark gradient => legible on light paper */
  -webkit-background-clip: text;
  background-clip: text;
}
.score__lab {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  color: var(--paper-dim);
  max-width: 18ch;
  margin-inline: auto;
}
.score__chart { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 600px; margin-inline: auto; }
.score__bars { display: flex; align-items: flex-end; gap: clamp(0.6rem, 2vw, 1.4rem); height: 130px; }
.score-bar {
  position: relative;
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--grad-brand);
  opacity: 0.9;
}
.score-bar__cap {
  position: absolute;
  top: -5px; left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}
.score__axis { width: 100%; height: 8px; margin-top: 4px; }
.score__baseline { stroke: var(--paper-ink); stroke-width: 2; }
@media (max-width: 720px) {
  .score__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

/* ---------------------------------------------------------------------------
   14. CASE STUDIES
--------------------------------------------------------------------------- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
@media (max-width: 980px) {
  .work__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
.case { transform-style: preserve-3d; }
.case__inner {
  position: relative;
  height: 100%;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-surface), var(--c-bg-2));
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition:
    border-color var(--t-mid) var(--ease-out),
    box-shadow var(--t-slow) var(--ease-out),
    transform var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .case:hover .case__inner {
    border-color: color-mix(in srgb, var(--case-accent) 55%, transparent);
    box-shadow: 0 28px 70px -24px color-mix(in srgb, var(--case-accent) 60%, transparent);
    transform: translateZ(40px);
  }
}
.case__glare { position: absolute; inset: 0; pointer-events: none; }
.case__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.case__no { color: var(--case-accent); font-weight: 600; }
.case__tag { color: var(--c-text-dim); text-align: right; }
.case__viz {
  margin: 1.4rem 0 1.6rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--c-line);
}
.case__bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.case__bar {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(var(--case-accent), color-mix(in srgb, var(--case-accent) 30%, transparent));
  transform: scaleY(0);
  transform-origin: bottom;
  animation: barGrow 0.85s var(--ease-out) forwards;
  animation-delay: var(--d);
}
@keyframes barGrow {
  0% { transform: scaleY(0); }
  72% { transform: scaleY(1.04); }
  100% { transform: scaleY(1); }
}
.case__spark { width: 100%; height: 26px; margin-top: 8px; }
.case__body { position: relative; z-index: 1; }
.case__problem {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--c-text-faint);
  font-size: var(--step--1);
}
.case__k {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--case-accent);
}
.case__result { font-size: var(--step-1); margin: 0.7rem 0 0.4rem; }
.case__how { font-size: var(--step--1); color: var(--c-text-dim); }
.case__metric {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.case__metric-num { font-size: var(--step-3); color: var(--case-accent); }
.case__metric-lab { font-size: var(--step--1); color: var(--c-text-faint); }
.work__cta { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }

/* ---------------------------------------------------------------------------
   15. PROCESS LOOP (pinned + morph)
--------------------------------------------------------------------------- */
.loop-pin { min-height: 100svh; display: flex; align-items: center; }
.loop__inner { width: 100%; }
.loop__stage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.loop-glyph {
  aspect-ratio: 1;
  width: min(100%, 360px);
  margin-inline: auto;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
}
.loop-glyph svg { width: 70%; filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.4)); }
.loop__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.loop__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--paper-ink);
  letter-spacing: -0.02em;
}
.loop__count-cur { color: var(--violet-600); font-variant-numeric: tabular-nums; }
.loop__count-sep, .loop__count-tot { color: var(--paper-dim); }
.loop__steps { position: relative; padding-left: 2.4rem; }
.loop-rail { position: absolute; left: 0.7rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--paper-line); border-radius: 2px; }
.loop-rail__fill { position: absolute; inset: 0; background: var(--grad-brand); transform: scaleY(0); transform-origin: top; border-radius: 2px; }
.loop-rail__node {
  position: absolute;
  left: 50%; top: 0;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--violet-600);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18), 0 0 14px rgba(124, 58, 237, 0.5);
}
.loop__steps ol { display: flex; flex-direction: column; gap: clamp(1.2rem, 2.5vw, 2rem); }
.loop-step {
  display: flex;
  gap: 1.2rem;
  opacity: 0.32;
  filter: blur(1.5px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    filter 0.45s var(--ease-out);
}
.loop-step.is-active { opacity: 1; transform: translateX(8px); filter: blur(0); }
.loop-step__n { font-family: var(--font-mono); font-weight: 600; font-size: var(--step-0); color: var(--paper-dim); }
.loop-step.is-active .loop-step__n { color: var(--violet-600); }
.loop-step__name { font-size: var(--step-2); font-weight: 900; letter-spacing: -0.02em; }
.loop-step__desc { margin-top: 0.3rem; color: var(--paper-dim); font-size: var(--step-0); max-width: 42ch; }
@media (max-width: 860px) {
  .loop__stage { grid-template-columns: 1fr; }
  .loop-glyph { width: min(60%, 240px); }
}

/* ---------------------------------------------------------------------------
   16. TESTIMONIALS
--------------------------------------------------------------------------- */
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 760px) { .quotes__grid { grid-template-columns: 1fr; } }
.quote {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-surface), var(--c-bg-2));
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition:
    border-color var(--t-mid) var(--ease-out),
    box-shadow var(--t-slow) var(--ease-out),
    transform var(--t-mid) var(--ease-out);
}
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .quote:hover {
    border-color: var(--c-line-strong);
    box-shadow: 0 24px 60px -28px rgba(139, 92, 246, 0.5);
    transform: translateY(-4px);
  }
  .quote:hover::before { opacity: 1; }
}
.quote__mark {
  position: relative;
  font-size: 4rem;
  line-height: 0.5;
  color: var(--violet);
  opacity: 0.5;
  transition: opacity var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .quote:hover .quote__mark { opacity: 0.85; }
}
.quote__text { position: relative; font-size: var(--step-1); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; margin-top: 1rem; }
.quote__by {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--c-text-faint);
}
.quote__rule { width: 24px; height: 1px; background: var(--violet); }
.partners { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.partners__list { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.partners__list li { font-weight: 700; color: var(--c-text-dim); }

/* ---------------------------------------------------------------------------
   17. FAQ
--------------------------------------------------------------------------- */
.faq-sec__wrap { width: min(100% - var(--gutter) * 2, 920px); }
.faq { border-top: 1px solid var(--paper-line); }
.faq__item { border-bottom: 1px solid var(--paper-line); }
.faq__q { margin: 0; }
.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.1rem, 2.5vw, 1.6rem);
  text-align: left;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper-ink);
  transition: color var(--t-mid) var(--ease-out), padding-left var(--t-mid) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .faq__btn:hover { color: var(--violet-600); padding-left: 0.4rem; }
}
.faq__item.is-open .faq__btn { color: var(--violet-600); }
.faq__icon { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.faq__icon span {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-mid) var(--ease-drawer);
}
.faq__icon span:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon span:last-child { transform: translate(-50%, -50%) rotate(180deg); }
.faq__panel { overflow: hidden; }
.faq__a { padding-bottom: clamp(1.1rem, 2.5vw, 1.6rem); max-width: 64ch; color: var(--paper-dim); font-size: var(--step-0); }

/* ---------------------------------------------------------------------------
   18. FINAL CTA
--------------------------------------------------------------------------- */
.final { text-align: center; }
.final__wrap {
  width: min(100% - var(--gutter) * 2, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final__h { font-size: var(--step-5); margin: 1.2rem 0; }
.final__sub { font-size: var(--step-1); color: var(--c-text-dim); max-width: 40ch; }
.final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }

/* ---------------------------------------------------------------------------
   19. FOOTER
--------------------------------------------------------------------------- */
.colophon__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.colophon__brand { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; max-width: 28ch; }
.colophon__nav { display: flex; gap: clamp(2rem, 6vw, 5rem); }
.colophon__nav ul { display: flex; flex-direction: column; gap: 0.7rem; }
.colophon__nav a { color: var(--paper-dim); transition: color var(--t); }
.colophon__nav a:hover { color: var(--paper-ink); }
.colophon__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--paper-dim);
}

/* ---------------------------------------------------------------------------
   20. REDUCED MOTION
--------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__h1 { visibility: visible !important; }
  .hero__stagger { opacity: 1 !important; }
  .case__bar { transform: scaleY(1); animation: none; }
  .hero__video { display: none; } /* poster image only */
  /* keep decorative loops fully still, not snapping each 0.001ms */
  .hero__live,
  .hero-svg__dot,
  .hero-svg__dot-ring,
  .hero__scroll-line,
  .marq__star,
  .kicker__dot { animation: none !important; }
  /* process steps are a plain legible list when motion is off */
  .loop-step { opacity: 1 !important; filter: none !important; transform: none !important; }
  .loop-rail__fill { transform: scaleY(1) !important; }
  .divider__line { stroke-dasharray: none !important; }
}
