/* =================================================================
   CRAFTSMAN+ — editorial cinema
   Design system: locked (gradient, Poppins/Inter, dark palette).
   Amplification: scale, composition, rhythm, hierarchy.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #09090b;
  --bg-alt: #0d0d10;
  --bg-nav: rgba(9, 9, 11, 0.72);
  --surface: #111113;
  --surface-2: #18181b;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --rule: rgba(255, 255, 255, 0.08);

  --text: #fdfdfd;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --accent-from: #fa6c00;
  --accent-to: #eb5173;
  --accent: #fa6c00;
  --accent-gradient: linear-gradient(90deg, var(--accent-from) 0%, var(--accent-to) 100%);

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-display: "Poppins", var(--font-sans);

  --max-w: 1520px;
  --pad-x: clamp(24px, 5vw, 88px);
  --pad-section: clamp(96px, 14vw, 200px);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent-from); color: #09090b; }

/* Paper grain — one shared SVG noise layer, applied as a subtle overlay. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Every gradient-clipped text element needs a generous padding-block +
   matching negative margin-block so ascenders (tittles, accents, caps)
   AND descenders (g, p, y, j) stay inside the gradient paint area.
   Without this, -webkit-background-clip: text truncates glyph parts that
   extend past the inline-block box at tight line-heights. */
.shimmer-text,
.intelligence__title-line--gradient,
.results__title-line--gradient,
.services__title-line--accent,
.testimonials__title-accent,
.meet-play__title-word--accent,
.stat-card__number {
  background: linear-gradient(90deg, var(--accent-from) 0%, var(--accent-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  /* Vertical: Poppins ascender 1.05em + descender 0.35em, but line-height 1
     only paints 1em. Horizontal: negative letter-spacing shrinks the advance
     width so the last glyph's ink protrudes beyond the paint box. Padding
     extends the paint area in all 4 directions, negative margin keeps
     layout intact. */
  padding: 0.35em 0.15em 0.4em;
  margin: -0.35em -0.15em -0.4em;
  animation: none !important;
  background-size: 100% 100% !important;
}

/* Same treatment for non-gradient display text so g/p/y descenders don't
   get visually clipped by the next line's content at line-height 1. */
.hero__title,
.intelligence__title,
.gallery__title,
.meet-play__title,
.results__title,
.services__title,
.testimonials__title,
.cta-banner__title {
  padding-bottom: 0.12em;
}

/* Kill aurora blobs entirely — replaced by directional scrims on sections. */
.aurora, .hero__glow, .meet-play__glow { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  height: 40px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms var(--ease), filter 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
  position: relative;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 24px -12px rgba(250,108,0,0.45);
}
.btn--primary:hover { filter: brightness(1.08) saturate(1.05); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.btn--ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.22); }

/* Editorial "link" — underline that tracks on hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent-from);
  transition: color 160ms var(--ease), border-color 160ms var(--ease), gap 160ms var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--accent-from); }
.link-arrow span[aria-hidden] { font-weight: 400; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: var(--pad-x);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  height: 42px;
}
.nav__logo img { height: 38px; width: auto; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__menu {
  height: 40px;
  padding: 0 16px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 6px;
}
.nav__menu span { color: var(--accent-from); }

/* ---------- Eyebrows ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text-dim);
}
.eyebrow--accent { color: var(--accent-from); }
.eyebrow::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 1px;
  margin-right: 12px;
  margin-bottom: 2px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- Section chrome (numerals + rules) ---------- */
.section {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section-num {
  position: absolute;
  top: clamp(32px, 6vw, 56px);
  left: var(--pad-x);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  z-index: 2;
}
.section-num em {
  font-style: normal;
  color: var(--text);
}
.rule {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 1px;
  background: var(--rule);
}

/* ========================================================= */
/*                    HERO — editorial spread                 */
/* ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  /* padding: clamp(80px, 11vw, 160px) 0 clamp(60px, 8vw, 120px); */
  padding: clamp(50px, 8vw, 90px) 0 clamp(30px, 4vw, 60px);
  isolation: isolate;
}
.hero::before {
  /* directional scrim replacing aurora */
  content: "";
  position: absolute;
  inset: -10% -10% 0 40%;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(250, 108, 0, 0.18) 0%, rgba(250, 108, 0, 0) 60%),
    radial-gradient(60% 60% at 90% 90%, rgba(235, 81, 115, 0.14) 0%, rgba(235, 81, 115, 0) 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  /* subtle vignette */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 0;
}

.hero__inner > .eyebrow {
  grid-column: 1 / 7;
  grid-row: 1;
  margin-bottom: 18px;
}

/* The logo wordmark is demoted — design system stays but visual weight shifts. */
.hero__brand {
  grid-column: 1 / 7;
  grid-row: 2;
  width: clamp(180px, 22vw, 260px);
  height: auto;
  margin: 0 0 clamp(32px, 6vw, 56px);
  opacity: 0.92;
}

.hero__title {
  grid-column: 1 / 11;
  grid-row: 3;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(68px, 14vw, 220px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 clamp(28px, 4vw, 38px);
  color: var(--text);
  text-wrap: balance;
  padding-top: 0.04em;
}
.hero__title .shimmer-text {
  display: inline-block;
}

.hero__lede {
  grid-column: 1 / 7;
  grid-row: 4;
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52ch;
}

.prompt {
  grid-column: 1 / 8;
  grid-row: 5;
  width: 100%;
  max-width: 680px;
  height: 56px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.6);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.prompt:focus-within {
  border-color: rgba(250, 108, 0, 0.5);
  box-shadow: 0 20px 40px -24px rgba(250,108,0,0.35);
}
.prompt__input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;
  padding-inline: 16px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
}
.prompt__input::placeholder { color: var(--text-dim); opacity: 1; }
.prompt__cta {
  height: 44px;
  padding: 0 22px;
  font-size: 13px;
  border-radius: 8px;
}

/* Hero preview — docked phone peek instead of empty-X rectangle. */
.hero__preview {
  grid-column: 9 / 13;
  grid-row: 1 / 6;
  position: relative;
  align-self: end;
  justify-self: end;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 9 / 18;
  background: linear-gradient(180deg, #111113 0%, #0a0a0c 100%);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 40px 80px -24px rgba(0,0,0,0.8),
    0 0 0 1px rgba(250,108,0,0.08) inset,
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: visible;
  transform: perspective(1100px)
             rotateX(var(--tilt-x, 0deg))
             rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__preview::after {
  /* Subtle glow scrim above the creative; no opaque fill so the image reads. */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(250, 108, 0, 0.22), rgba(250, 108, 0, 0) 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(9, 9, 11, 0.5), rgba(9, 9, 11, 0) 70%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}
.hero__preview-media {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 20px;
  z-index: 1;
  /* Sits slightly forward of the bezel so the edge reads as display thickness */
  transform: translateZ(10px);
}
/* Glare sweep on the display glass, tracks the cursor via JS-set --mx/--my. */
.hero__preview::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  pointer-events: none;
  background: radial-gradient(
    55% 55% at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease);
  mix-blend-mode: overlay;
  z-index: 3;
  transform: translateZ(12px);
}
.hero__preview[data-tilted="true"]::before { opacity: 1; }
/* Hide the old preview bar & placeholder crosses */
.hero__preview-bar,
.hero__preview-placeholder { display: none; }

/* Phone card screens: real ad creative fills the frame; the synthetic notch
   and gradient CTA pill below are placeholders shown only when no image. */
.phone-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  z-index: 1;
}
.phone-card__screen:has(.phone-card__media) .phone-card__notch,
.phone-card__screen:has(.phone-card__media) .phone-card__cta {
  display: none;
}

/* Meta ticker along the hero base */
.hero__meta {
  grid-column: 1 / 13;
  grid-row: 6;
  list-style: none;
  padding: 20px 0 0;
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  margin: clamp(48px, 7vw, 96px) 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: .9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.hero__meta span b {
  color: var(--accent-from);
  font-weight: 600;
  margin-right: 6px;
}

/* Page-load choreography */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    opacity: 0;
    transform: translateY(24px);
    animation: hero-in 900ms var(--ease-out-quart) forwards;
  }
  .hero__inner > .eyebrow    { animation-delay:   0ms; }
  .hero__brand               { animation-delay:  60ms; }
  .hero__title               { animation-delay: 140ms; }
  .hero__lede                { animation-delay: 280ms; }
  .prompt                    { animation-delay: 360ms; }
  .hero__meta                { animation-delay: 520ms; }
  /* Hero preview uses a fade-only entrance so the tilt transform (which
     contains perspective + rotate) isn't overridden by the keyframe. */
  .hero__preview {
    animation: fade-in 900ms var(--ease-out-quart) 440ms forwards;
  }
  @keyframes hero-in {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fade-in {
    to { opacity: 1; }
  }
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__inner > .eyebrow,
  .hero__brand,
  .hero__title,
  .hero__lede,
  .prompt,
  .hero__preview,
  .hero__meta {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .hero__title { margin-top: 20px; }
  .hero__preview {
    justify-self: center;
    width: min(280px, 60vw);
    margin-top: 24px;
  }
  .hero__meta { margin-top: 32px; }
}

/* ========================================================= */
/*            CLIENTS — pared-down marquee                    */
/* ========================================================= */
.clients {
  width: 100%;
  padding-block: clamp(48px, 6vw, 72px);
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.clients__eyebrow {
  color: var(--text-dim);
  margin: 0 auto 28px;
  display: block;
  text-align: center;
}
.clients__eyebrow::before { display: none; }
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee__list {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 40px;
  margin: 0;
  list-style: none;
  flex: none;
}
.marquee__list img {
  height: 28px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(0.65) brightness(1.15);
  transition: opacity 200ms var(--ease), filter 200ms var(--ease);
}
.marquee:hover .marquee__list img {
  opacity: 0.85;
  filter: grayscale(0) brightness(1);
}

/* ---------- Client logo mesh (cloth-like hover deformation) ---------- */
.marquee-mesh {
  position: relative;
  width: 100%;
  height: 96px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-mesh__canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
/* Screen-reader-only client list (semantic source) */
.marquee-mesh__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  list-style: none;
}
.marquee-mesh__hint {
  position: absolute;
  right: 24px;
  bottom: 6px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
  transition: color 280ms var(--ease);
}
.marquee-mesh:hover .marquee-mesh__hint { color: rgba(255, 255, 255, 0.45); }
@media (max-width: 720px) {
  .marquee-mesh { height: 72px; }
  .marquee-mesh__hint { display: none; }
  .marquee-mesh__canvas { cursor: default; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ========================================================= */
/*   INTELLIGENCE — asymmetric editorial split                */
/* ========================================================= */
.intelligence {
  position: relative;
  overflow: hidden;
  padding-block: var(--pad-section);
  background: var(--bg);
}
.intelligence::before {
  content: "01 / 05 ·\00a0\00a0Intelligence";
  position: absolute;
  top: clamp(32px, 5vw, 56px);
  left: var(--pad-x);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.intelligence__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.intelligence__copy {
  grid-column: 1 / 7;
  padding-top: 40px;
}
.intelligence__copy .eyebrow { margin-bottom: 28px; }
.intelligence__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: var(--text);
  text-wrap: balance;
  padding-top: 0.04em;
}
.intelligence__title-line { display: block; }
/* .intelligence__title-line--gradient gradient/color handled by shared rule */
.intelligence__lede {
  max-width: 44ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.demo-panel {
  grid-column: 7 / 13;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background:
    linear-gradient(180deg, rgba(250,108,0,0.04), rgba(235,81,115,0.02) 40%, transparent),
    #0e0e11;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -28px rgba(0,0,0,0.6);
}
.demo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
    repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
  pointer-events: none;
}
.demo-panel__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}
.demo-panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 960px) {
  .intelligence__copy, .demo-panel { grid-column: 1 / -1; }
  .demo-panel { aspect-ratio: 4/3; }
}

/* ========================================================= */
/*   GALLERY — unchanged mechanic, bigger headline            */
/* ========================================================= */
.gallery {
  position: relative;
  overflow: hidden;
  padding-block: var(--pad-section);
  border-top: 1px solid var(--rule);
}
.gallery__header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto clamp(56px, 8vw, 112px);
  padding-inline: var(--pad-x);
}
.gallery__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 164px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  color: var(--text);
  text-wrap: balance;
  padding-top: 0.04em;
}
.gallery__lede {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 16px;
  color: var(--text-muted);
}
.gallery__columns {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
}
.gallery__col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: none;
  will-change: transform;
}
.gallery__col--offset { margin-top: 160px; }

/* Mobile: switch to a horizontal swipe lane with snap, kill desktop offset.
   Selectors bumped to 2-class specificity so they outrank the base .phone-card
   rule declared later in the file. */
@media (max-width: 720px) {
  .gallery .gallery__columns {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 var(--pad-x) 32px;
    gap: 16px;
    scrollbar-width: none;
  }
  .gallery .gallery__columns::-webkit-scrollbar { display: none; }
  .gallery .gallery__col {
    gap: 16px;
    scroll-snap-align: start;
  }
  .gallery .gallery__col--offset { margin-top: 0; }
  .gallery .phone-card {
    width: 180px;
    height: 360px;
    border-radius: 22px;
  }
  .gallery .phone-card__screen { border-radius: 16px; }
  .gallery .phone-card__media { border-radius: 16px; }
}

/* ---------- Phone card ---------- */
.phone-card {
  flex: none;
  position: relative;
  width: 220px;
  height: 440px;
  background: #1c1c20;
  border: 1.5px solid #37373c;
  border-radius: 26px;
  padding: 9.5px;
  box-sizing: border-box;
  /* 3D tilt on hover/move (JS drives --tilt-x / --tilt-y / --mx / --my) */
  transform: perspective(900px)
             rotateX(var(--tilt-x, 0deg))
             rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: border-color 200ms var(--ease);
  will-change: transform;
}
.phone-card:hover { border-color: rgba(250, 108, 0, 0.3); }
/* The screen is pushed forward so the bezel reads as depth on tilt. */
.phone-card__screen { transform: translateZ(6px); }
/* Glass glare — radial highlight that tracks the cursor. */
.phone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    60% 60% at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 280ms var(--ease);
  mix-blend-mode: overlay;
  z-index: 5;
  transform: translateZ(8px);
}
.phone-card[data-tilted="true"]::before { opacity: 1; }
.phone-card__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #090909;
  border-radius: 18px;
  overflow: hidden;
}
.phone-card__notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 13px;
  border-radius: 7px;
  background: #1c1c20;
  z-index: 2;
}
.phone-card__cta {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 99px;
  height: 22px;
  border-radius: 22px;
  background: var(--accent-gradient);
  z-index: 2;
}

/* ========================================================= */
/*   MEET PLAY — full-bleed wordmark                          */
/* ========================================================= */
.meet-play {
  position: relative;
  overflow: hidden;
  padding-block: var(--pad-section);
  border-top: 1px solid var(--rule);
}
.meet-play::before {
  content: "03 / 05 ·\00a0\00a0Platform";
  position: absolute;
  top: clamp(32px, 5vw, 56px);
  left: var(--pad-x);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  z-index: 2;
}
.meet-play__header {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto clamp(48px, 6vw, 88px);
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}
.meet-play__header .eyebrow {
  grid-column: 1 / 4;
  margin: 0 0 16px;
}
.meet-play__title {
  grid-column: 1 / 13;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  flex-wrap: wrap;
  padding-top: 0.05em;
}
.meet-play__title-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 88px);
  color: var(--text-muted);
  letter-spacing: -0.02em;
}
.meet-play__title-word--accent {
  font-weight: 900;
  font-size: clamp(96px, 20vw, 320px);
  letter-spacing: -0.06em;
  /* redeclared here to outrank .meet-play__title-word (same specificity,
     but that rule is declared later and sets color: var(--text-muted)) */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.meet-play__lede {
  grid-column: 8 / 13;
  margin: 0;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  padding-bottom: 6px;
}

.demo-panel--plain {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: calc(100% - calc(var(--pad-x) * 2));
  aspect-ratio: 16 / 10;
  grid-column: unset;
}
.demo-panel--plain .demo-panel__bar { display: none; }
.demo-panel__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

@media (max-width: 960px) {
  .meet-play__header .eyebrow,
  .meet-play__title,
  .meet-play__lede { grid-column: 1 / -1; }
  .meet-play__lede { margin-top: 20px; }
}

/* ========================================================= */
/*   RESULTS — full-bleed numeral                             */
/* ========================================================= */
.results {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  height: 400vh;
}
.results::before {
  content: "04 / 05 ·\00a0\00a0Proof";
  position: absolute;
  top: clamp(40px, 5vw, 64px);
  left: var(--pad-x);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  z-index: 2;
}
.results__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}
.results__grid {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.results__copy {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.results__copy .eyebrow { margin: 0; }
.results__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  color: var(--text);
  padding-top: 0.04em;
}
/* .results__title-line--gradient gradient/color handled by shared rule */
.results__lede {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 38ch;
}
.results__cta {
  align-self: flex-start;
  height: 42px;
  padding: 0 20px;
  margin-top: 8px;
}

/* Stat card → editorial numeral. Keep classes so JS still binds. */
.stat-card {
  grid-column: 5 / 13;
  position: relative;
  min-height: clamp(440px, 58vh, 640px);
  border: 0;
  border-left: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  padding: 40px 0 40px clamp(24px, 3vw, 56px);
  overflow: visible;
}
.stat-card__glow { display: none; }

.stat-card__progress {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(32px, 5vw, 56px);
  position: static;
  inset: unset;
}
.stat-card__progress-bar {
  flex: 1;
  height: 2px;
  border-radius: 0;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.stat-card__progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  transform-origin: left;
  transform: scaleX(0);
}
.stat-card__progress-bar.is-manual::after {
  transform: scaleX(var(--fill, 0));
  transition: transform 120ms linear;
}

.stat-card__content {
  position: relative;
  padding: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: clamp(16px, 2vw, 28px);
  height: auto;
}
.stat-card__top {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  flex-wrap: wrap;
}
.stat-card__rank {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-from);
  -webkit-text-stroke: 0;
  font-variant-numeric: tabular-nums;
}
.stat-card__label {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-card__value {
  align-self: start;
  justify-self: start;
  padding: 0;
  margin: 0;
}
.stat-card__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(140px, 22vw, 340px);
  line-height: 1;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
  /* gradient + padding handled by the shared rule above */
}
.stat-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: 52ch;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.stat-card__link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-from);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent-from);
}
.stat-card__link:hover { color: var(--accent-to); }
.stat-card__caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .results { height: auto; }
  .results__sticky { position: static; height: auto; padding: 80px 0; }
  .results__copy, .stat-card { grid-column: 1 / -1; }
  .stat-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 40px; margin-top: 24px; }
}

/* ========================================================= */
/*   SERVICES — numbered editorial list                       */
/* ========================================================= */
.services {
  position: relative;
  background: var(--bg);
  padding-block: var(--pad-section);
  border-top: 1px solid var(--rule);
}
.services::before {
  content: "05 / 05 ·\00a0\00a0Studio";
  position: absolute;
  top: clamp(32px, 5vw, 56px);
  left: var(--pad-x);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.services__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
}
.services__copy {
  grid-column: 1 / 7;
}
.services__copy .eyebrow { margin-bottom: 28px; }
.services__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  color: var(--text);
  padding-top: 0.04em;
}
/* .services__title-line--accent gradient/color handled by shared rule */
.services__lede {
  margin: 0 0 40px;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Numbered editorial list replacing checkmarks */
.checklist {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  counter-reset: svc;
  border-top: 1px solid var(--rule);
}
.checklist__item {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--text);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.checklist__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.checklist__item::before {
  content: "0" counter(svc);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-from);
  font-variant-numeric: tabular-nums;
}
.checklist__check { display: none; }
.services__cta {
  align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .checklist__item { opacity: 1; transform: none; transition: none; }
}

/* Showcase — tighter editorial tiles, no rounded-rect chrome */
.showcase {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  aspect-ratio: 1 / 1;
  max-height: 620px;
}
.showcase__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  background: var(--bg-alt);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 0;
  transition: background 200ms var(--ease);
}
.showcase__tile:hover { background: #141418; }
.showcase__tile > *:first-child { flex: 1; min-height: 0; }
.showcase__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.showcase__tile::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-from);
  opacity: 0.5;
}

/* Playable ad preview */
.preview-playable { display: flex; align-items: center; justify-content: center; }
.preview-playable__phone {
  position: relative;
  width: 72px;
  height: 138px;
  background: #0b0b0d;
  border: 1.5px solid #3a3a40;
  border-radius: 12px;
}
.preview-playable__notch {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: #2a2a2e;
}
.preview-playable__cta {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 10px;
  border-radius: 10px;
  background: var(--accent-gradient);
}
.preview-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.preview-video__play {
  width: 36px;
  height: 36px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(250, 108, 0, 0.14);
  border: 1px solid rgba(250, 108, 0, 0.35);
  color: var(--accent-from);
  box-sizing: content-box;
}
.preview-video__timeline {
  width: 80%;
  height: 2px;
  background: rgba(161, 161, 170, 0.24);
  overflow: hidden;
}
.preview-video__timeline span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--accent-gradient);
}
.preview-ugc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-ugc__avatar {
  position: absolute;
  left: 22%;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-gradient);
}
.preview-ugc__bubble {
  position: absolute;
  left: 40%;
  top: 30%;
  width: 52px;
  height: 12px;
  border-radius: 12px 12px 12px 3px;
  background: rgba(250, 250, 250, 0.12);
}
.preview-ugc__bubble--small {
  top: 56%;
  width: 34px;
  background: rgba(250, 250, 250, 0.08);
}
.preview-static {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 14px 32px;
  height: 100%;
  align-content: center;
}
.preview-static span {
  background: linear-gradient(135deg, rgba(250,108,0,0.35), rgba(235,81,115,0.2));
  border-radius: 2px;
}
.preview-static span:nth-child(2) { background: rgba(250, 250, 250, 0.08); }
.preview-static span:nth-child(3) { background: rgba(250, 250, 250, 0.06); }

@media (max-width: 960px) {
  .services__copy, .showcase { grid-column: 1 / -1; }
  .showcase { aspect-ratio: 1/1; }
}

/* ========================================================= */
/*   TESTIMONIALS — pull-quote spreads                        */
/* ========================================================= */
.testimonials {
  position: relative;
  background: var(--bg);
  padding-block: var(--pad-section);
  border-top: 1px solid var(--rule);
}
.testimonials__header {
  max-width: var(--max-w);
  margin: 0 auto clamp(56px, 8vw, 96px);
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}
.testimonials__header .eyebrow { grid-column: 1 / 5; margin: 0; }
.testimonials__title {
  grid-column: 1 / 13;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: baseline;
  flex-wrap: wrap;
  padding-top: 0.04em;
}
/* .testimonials__title-accent gradient/color handled by shared rule */
.testimonials__row {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.testimonial {
  grid-column: span 6;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 36px;
  padding: 40px 0 32px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -28px;
  left: -6px;
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-from);
  opacity: 0.9;
  pointer-events: none;
}
.testimonial__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 28ch;
  text-wrap: balance;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.testimonial__avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--from, #fa6c00), var(--to, #eb5173));
}
.testimonial__info { display: flex; flex-direction: column; gap: 2px; }
.testimonial__name {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.testimonial__role {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .testimonial { grid-column: 1 / -1; }
}

/* ========================================================= */
/*   CTA BANNER — bottom-anchored editorial spread            */
/* ========================================================= */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding-block: var(--pad-section);
  background: var(--bg);
  border-top: 1px solid var(--rule);
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(250, 108, 0, 0.2) 0%, rgba(250, 108, 0, 0) 65%),
    radial-gradient(50% 40% at 20% 80%, rgba(235, 81, 115, 0.14) 0%, rgba(235, 81, 115, 0) 65%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
}
.cta-banner__inner .eyebrow {
  grid-column: 1 / 5;
  margin: 0 0 16px;
}
.cta-banner__title {
  grid-column: 1 / 10;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0;
  text-wrap: balance;
  padding-top: 0.05em;
}
.cta-banner__title-line--plain { color: var(--text); }
.cta-banner__title .shimmer-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-banner__lede {
  grid-column: 10 / 13;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 28ch;
}
.cta-banner__buttons {
  grid-column: 1 / 13;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-banner__primary,
.cta-banner__ghost {
  height: 48px;
  padding: 0 24px;
  font-size: 14px;
}

@media (max-width: 960px) {
  .cta-banner__inner .eyebrow,
  .cta-banner__title,
  .cta-banner__lede,
  .cta-banner__buttons { grid-column: 1 / -1; }
  .cta-banner__lede { margin-top: 20px; }
}

/* ========================================================= */
/*   WORDMARK + FOOTER — unchanged mechanic                   */
/* ========================================================= */
.wordmark {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding-top: 40px;
  padding-bottom: 0;
  border-top: 1px solid var(--rule);
}
.wordmark__img {
  display: block;
  width: calc(100% - 0px);
  max-width: var(--max-w);
  height: auto;
  margin: 0 auto;
  opacity: 0;
  transform: translate3d(0, 60px, 0);
  transition: opacity 900ms var(--ease-out-quart), transform 900ms var(--ease-out-quart);
  will-change: transform, opacity;
  transform: translate3d(0, calc(60px + var(--wordmark-drift, 0px)), 0);
}
.wordmark.is-visible .wordmark__img {
  opacity: 1;
  transform: translate3d(0, var(--wordmark-drift, 0px), 0);
}
@media (prefers-reduced-motion: reduce) {
  .wordmark__img { opacity: 1; transform: none; transition: none; }
}

.footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: clamp(48px, 7vw, 96px) var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.footer__columns {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: flex-start;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
}
.footer__logo { display: block; width: 187px; height: 38px; }
.footer__tagline {
  margin: 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.footer__heading {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 120ms var(--ease);
}
.footer__link:hover { color: var(--accent-from); }

.footer__bottom {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.footer__copy { margin: 0; font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em; }
.footer__social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.footer__social-link:hover {
  color: var(--text);
  border-color: var(--accent-from);
  background: rgba(250, 108, 0, 0.08);
}

@media (max-width: 960px) {
  .footer__columns { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ========================================================= */
/*   MENU PANEL — editorial full-bleed                        */
/* ========================================================= */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.menu-panel[hidden] { display: none; }
.menu-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: menu-scrim-in 240ms ease forwards;
}
.menu-panel__card {
  position: relative;
  width: min(1200px, 100%);
  height: min(640px, 92vh);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: clamp(48px, 6vw, 88px);
  box-shadow: 0 60px 140px -24px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  animation: menu-card-in 360ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes menu-scrim-in { to { opacity: 1; } }
@keyframes menu-card-in  { to { opacity: 1; transform: translateY(0) scale(1); } }

.menu-panel__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 160ms var(--ease);
}
.menu-panel__close:hover { background: rgba(255, 255, 255, 0.06); }
.menu-panel__close:focus-visible {
  outline: 2px solid rgba(250, 108, 0, 0.6);
  outline-offset: 2px;
}

.menu-panel__body {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  height: 100%;
}
.menu-panel__primary {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: menu;
}
.menu-panel__primary-item {
  counter-increment: menu;
  position: relative;
}
.menu-panel__primary-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: rgba(224, 224, 224, 0.18);
  transition: color 200ms var(--ease);
}
.menu-panel__primary-item::before {
  content: "0" counter(menu);
  position: absolute;
  top: 12px;
  left: -44px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.menu-panel__primary-item:hover .menu-panel__primary-link,
.menu-panel__primary-item.is-active .menu-panel__primary-link,
.menu-panel__primary-link:focus-visible {
  color: var(--text);
}

.menu-panel__secondary {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding-top: 80px;
}
.menu-panel__sub {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
  pointer-events: none;
}
.menu-panel__sub.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.menu-panel__sub a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-muted);
  transition: color 160ms var(--ease);
}
.menu-panel__sub a:hover { color: var(--text); }

.menu-panel__underline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--accent-gradient);
  border-radius: 0;
  opacity: 0;
  transform: translateY(var(--underline-y, 0));
  transition: opacity 200ms var(--ease), transform 280ms var(--ease);
  pointer-events: none;
}
.menu-panel__body.has-active .menu-panel__underline { opacity: 1; }

@media (max-width: 720px) {
  .menu-panel__card { padding: 56px 32px; height: 92vh; }
  .menu-panel__body { grid-template-columns: 1fr; gap: 32px; }
  .menu-panel__primary-item::before { display: none; }
  .menu-panel__sub { position: static; transform: none; text-align: left; }
  .menu-panel__sub a { font-size: 16px; }
}

/* ========================================================= */
/*   PASSWORD GATE                                            */
/* ========================================================= */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  transition: opacity 320ms var(--ease);
}
.gate.is-out { opacity: 0; pointer-events: none; }
.gate__card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 80px rgba(250, 108, 0, 0.04);
}
.gate__logo { width: 180px; height: auto; margin-bottom: 8px; }
.gate__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.gate__lede {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.gate__input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 2px;
  text-align: center;
  transition: border-color 140ms var(--ease);
}
.gate__input:focus { outline: none; border-color: var(--accent-from); }
.gate__input.is-error {
  border-color: #f43f5e;
  animation: gate-shake 460ms linear;
}
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.gate__submit { width: 100%; height: 46px; font-size: 14px; }
.gate__error { margin: 0; font-size: 12px; color: #f87171; }

/* ========================================================= */
/*   Responsive catchall                                      */
/* ========================================================= */
@media (max-width: 720px) {
  :root { --pad-x: 16px; }
  .nav { height: 60px; }
  .nav__logo img { height: 30px; }
  .nav__right { gap: 8px; }
  /* Icon-only menu button: kill the word "MENU", keep the "+" */
  .nav__menu {
    font-size: 0;
    width: 40px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .nav__menu span {
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
  }
  /* Swap "Request a Demo" → "Demo" at mobile without touching the DOM copy */
  .nav .btn--primary {
    height: 36px;
    font-size: 0;
    padding: 0 14px;
  }
  .nav .btn--primary::before {
    content: "Demo";
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
}
