/* ============================================================
   CirelMedia — AI-Driven Marketing Agency
   Design tokens & global styles
   Brand: black + orange on off-white (per CIREL MEDIA logo)
   ============================================================ */

:root {
  --bg: #f7f6f3;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(22, 22, 26, 0.1);
  --border-strong: rgba(22, 22, 26, 0.18);

  --text: #16161a;
  --text-muted: #4f5058;
  --text-faint: #8a8b93;

  --orange: #f2571b;
  --orange-bright: #ff8a3d;
  --orange-deep: #c2410c;
  --ink: #16161a;

  --grad-brand: linear-gradient(100deg, #ff8a3d 0%, #f2571b 55%, #d63c00 110%);
  --grad-text: linear-gradient(95deg, #ff7a29 0%, #f2571b 50%, #c2410c 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 104px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* elevation ladder — stacked shadows read as real depth, not a blur */
  --e1: 0 1px 2px rgba(22, 22, 26, 0.04), 0 2px 6px rgba(22, 22, 26, 0.04);
  --e2: 0 1px 2px rgba(22, 22, 26, 0.04), 0 6px 14px rgba(22, 22, 26, 0.06),
        0 18px 38px rgba(22, 22, 26, 0.06);
  --e3: 0 1px 2px rgba(22, 22, 26, 0.05), 0 10px 22px rgba(22, 22, 26, 0.07),
        0 30px 60px rgba(22, 22, 26, 0.09);
  --e4: 0 2px 4px rgba(22, 22, 26, 0.06), 0 18px 36px rgba(22, 22, 26, 0.09),
        0 48px 96px rgba(22, 22, 26, 0.13);

  --shadow-card: var(--e2);
  --shadow-glow-orange: 0 6px 18px rgba(242, 87, 27, 0.16), 0 22px 52px rgba(242, 87, 27, 0.14);

  --persp: 1200px;
  --nav-h: 74px;
}

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

html { scroll-behavior: smooth; }

/* anchored sections shouldn't hide behind the fixed nav */
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

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

::selection { background: rgba(242, 87, 27, 0.85); color: #fff; }

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

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

button { font: inherit; cursor: pointer; }

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

/* ---------- 3D canvas layer ---------- */

#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Fallback when WebGL is unavailable or three.js can't load ----------
   This has to stand on its own as a finished-looking background, because it's what
   a meaningful share of visitors will actually see. */

.no-webgl #scene-canvas { display: none; }

/* This layer is ALWAYS on, sitting under the (transparent) WebGL canvas. If the GPU
   is blocklisted and the canvas renders nothing — which looks identical to success
   from JS — the page still has a designed background instead of flat paper.
   --amb is turned up when we know there's no scene coming. */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  opacity: var(--amb, 0.45);
  background:
    radial-gradient(38% 42% at 22% 18%, rgba(242, 87, 27, 0.16), transparent 68%),
    radial-gradient(34% 38% at 84% 26%, rgba(22, 22, 26, 0.08), transparent 70%),
    radial-gradient(42% 44% at 68% 84%, rgba(255, 138, 61, 0.15), transparent 70%),
    radial-gradient(30% 34% at 8% 78%, rgba(242, 87, 27, 0.1), transparent 72%);
  animation: driftA 34s ease-in-out infinite alternate;
}

.no-webgl { --amb: 1; }

/* faint grid, so the fallback still reads as "engineered" rather than just a blur */
.no-webgl body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 22, 26, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 26, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 70% at 60% 40%, #000, transparent 78%);
  mask-image: radial-gradient(90% 70% at 60% 40%, #000, transparent 78%);
}

@keyframes driftA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

/* without a scene behind it, the heavy readability veil just mutes the fallback */
.no-webgl .page::before {
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(247, 246, 243, 0.6) 100%);
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

.page {
  position: relative;
  z-index: 1;
}

/* Readability scrim. The scene lives behind everything, so text needs a base it can
   sit on. Two layers: an overall wash, plus a stronger left-column veil where the
   copy actually is — that's the side the scene deliberately keeps clear. */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(247, 246, 243, 0.94) 0%, rgba(247, 246, 243, 0.86) 34%,
      rgba(247, 246, 243, 0.42) 58%, rgba(247, 246, 243, 0.3) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(247, 246, 243, 0.7) 100%);
}

@media (max-width: 900px) {
  /* no room for a clear side on small screens — veil the whole thing */
  .page::before {
    background: rgba(247, 246, 243, 0.9);
  }
}

/* ---------- Logo (CIREL MEDIA wordmark) ---------- */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-family: var(--font-display);
  color: var(--ink);
  /* the wordmark needs room to breathe — never let a flex parent squeeze it */
  flex: 0 0 auto;
  white-space: nowrap;
}

.logo__word {
  display: inline-flex;
  align-items: baseline;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.005em;
}

/* The slash IS the "I" in CIREL. Three things make it read as a letter instead of
   punctuation: it leans forward (a backward lean reads as a literal backslash, so
   the mark says "C\REL"), it rises to the cap height of the C and R, and it sits on
   the baseline. The inline-block's baseline is its bottom edge, so height alone
   aligns it once the parent is `align-items: baseline`. */
.logo__slash {
  display: inline-block;
  width: 0.135em;
  height: 0.73em;
  margin: 0 0.13em;
  background: var(--orange);
  transform: skewX(-13deg);
  border-radius: 1.5px;
  flex: 0 0 auto;
}

.logo__media {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.58em;
  /* tracking adds a trailing gap after the last letter; pulling the box in by the
     same amount is what actually re-centres MEDIA under CIREL */
  margin-right: -0.58em;
  margin-top: 6px;
  color: var(--ink);
}

.logo--footer .logo__word { font-size: 26px; }
.logo--footer .logo__media { font-size: 9px; margin-top: 5px; }

/* logo keeps its full size on mobile — it's the brand, not a nav item */
@media (max-width: 480px) {
  .logo__word { font-size: 27px; }
  .logo__media { font-size: 9px; letter-spacing: 0.5em; margin-right: -0.5em; }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(247, 246, 243, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}

/* condenses and lifts off the page once you start scrolling */
.nav.is-scrolled {
  padding-block: 8px;
  background: rgba(247, 246, 243, 0.9);
  border-bottom-color: rgba(22, 22, 26, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 30px rgba(22, 22, 26, 0.07);
}

/* reading-progress rail along the top edge */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(242, 87, 27, 0.6);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus { top: 12px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  list-style: none;
}

.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 2px;
  position: relative;
  transition: color 0.25s var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }

.nav__cta { margin-left: 8px; }

/* mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  place-items: center;
}

@media (max-width: 760px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  }
  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__link { display: block; padding: 12px 14px; font-size: 16px; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 8px 0 4px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}

/* sheen that sweeps across on hover — gives the surface a sense of facing a light */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}

.btn:hover::after { transform: translateX(120%); }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-orange), inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(122, 40, 0, 0.28);
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 26px rgba(242, 87, 27, 0.28), 0 30px 64px rgba(242, 87, 27, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(122, 40, 0, 0.3);
}

.btn--primary:active { transform: translateY(0) scale(0.99); }

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: var(--e1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn--ghost:hover {
  background: var(--surface-strong);
  transform: translateY(-3px);
  box-shadow: var(--e2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn--ghost:active { transform: translateY(0); }

.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Layout primitives ---------- */

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-6);
  position: relative;
}

.section--tight { padding-block: var(--space-5); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.h1 { font-size: clamp(40px, 6.4vw, 76px); }
.h2 { font-size: clamp(30px, 4.2vw, 48px); }
.h3 { font-size: clamp(20px, 2.4vw, 26px); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  /* the scroll cue is absolutely positioned — it must anchor here, not to a later section */
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--space-5);
}

.hero__inner { max-width: 780px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(242, 87, 27, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero .lead { margin-top: var(--space-3); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-5);
  perspective: var(--persp);
}

@media (max-width: 560px) { .hero__stats { grid-template-columns: 1fr; } }

/* each stat is its own floating slab rather than loose text on the background */
.hero__stats .stat {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--e2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}

.hero__stats .stat:hover {
  transform: translateY(-6px) rotateX(6deg);
  border-color: rgba(242, 87, 27, 0.35);
  box-shadow: var(--e3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label { font-size: 13.5px; color: var(--text-faint); margin-top: 2px; }

/* sits in the gutter below the stats; hidden when the viewport is too short to
   fit it without landing on top of the stat cards */
.hero__scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: drip 1.8s ease-in-out infinite;
}

@media (max-height: 900px), (max-width: 760px) {
  .hero__scroll { display: none; }
}

@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: var(--space-3);
  perspective: var(--persp);
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(242, 87, 27, 0.11), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

/* thin lit edge along the top — the cheapest, most convincing depth cue there is */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.card:hover {
  border-color: rgba(242, 87, 27, 0.4);
  background: var(--surface-strong);
  box-shadow: var(--e4), var(--shadow-glow-orange);
}

.card:hover::before { opacity: 1; }

/* contents ride at different depths so the tilt actually parallaxes */
.card > * { transform-style: preserve-3d; transition: transform 0.35s var(--ease-out); }
.card:hover .card__icon { transform: translateZ(46px); }
.card:hover h3 { transform: translateZ(30px); }
.card:hover p { transform: translateZ(18px); }
.card:hover .card__tag { transform: translateZ(26px); }
.card:hover .stat__num { transform: translateZ(38px); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-2);
  background: rgba(242, 87, 27, 0.1);
  border: 1px solid rgba(242, 87, 27, 0.28);
  color: var(--orange-deep);
}

.card__icon--cyan {
  background: rgba(22, 22, 26, 0.06);
  border-color: rgba(22, 22, 26, 0.2);
  color: var(--ink);
}

.card__icon--magenta {
  background: rgba(255, 138, 61, 0.14);
  border-color: rgba(255, 138, 61, 0.4);
  color: #e05206;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

.card__tag {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* ---------- Process timeline ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  counter-reset: step;
  perspective: var(--persp);
  position: relative;
}

/* connecting rail behind the steps */
.process::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 52px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(242, 87, 27, 0.45), transparent);
}

@media (max-width: 980px) { .process::before { display: none; } }

@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } }

.process__step {
  position: relative;
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-spring), border-color 0.35s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.process__step:hover {
  transform: translateY(-10px) rotateX(7deg) scale(1.02);
  border-color: rgba(242, 87, 27, 0.45);
  box-shadow: var(--e4);
}

.process__step:hover .process__num { transform: translateZ(40px); }
.process__num { transition: transform 0.4s var(--ease-out); }

.process__num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  margin-bottom: var(--space-2);
}

.process__step h3 { font-size: 18px; margin-bottom: 8px; }
.process__step p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Platform marquee ---------- */

.platforms {
  border-block: 1px solid var(--border);
  padding-block: var(--space-3);
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.platforms__track {
  display: flex;
  gap: clamp(40px, 6vw, 88px);
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.platforms__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s;
}

.platforms__item:hover { color: var(--orange-deep); transform: translateZ(30px) scale(1.06); }
.platforms__item svg { width: 22px; height: 22px; }

.platforms__track { perspective: 800px; }
.platforms__item {
  transform-style: preserve-3d;
  transition: color 0.3s var(--ease-out), transform 0.4s var(--ease-spring);
}

/* the marquee is decorative; let it stop when someone wants to read it */
.platforms:hover .platforms__track,
.platforms:focus-within .platforms__track { animation-play-state: paused; }

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split__list { list-style: none; margin-top: var(--space-3); display: grid; gap: 14px; }

.split__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 15.5px;
}

.split__list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--orange);
}

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(242, 87, 27, 0.12), transparent 60%),
    radial-gradient(70% 120% at 85% 100%, rgba(255, 138, 61, 0.12), transparent 60%),
    var(--surface-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.cta-band .lead { margin: var(--space-2) auto 0; }
.cta-band .btn { margin-top: var(--space-4); }

/* CTA reads as a slab tipped slightly away from the viewer, settling flat as it scrolls in */
.cta-band {
  box-shadow: var(--e4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.cta-band.reveal { transform: perspective(1400px) rotateX(9deg) translateY(28px); }
.cta-band.reveal.is-visible { transform: perspective(1400px) rotateX(0deg); }

/* slow orange sweep across the slab surface */
.cta-band::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(242, 87, 27, 0.07) 10%,
    rgba(242, 87, 27, 0.02) 20%, transparent 34%, transparent 100%);
  filter: blur(28px);
  animation: sweep 22s linear infinite;
  pointer-events: none;
}

@keyframes sweep { to { transform: rotate(360deg); } }

.cta-band > * { position: relative; z-index: 1; }

/* ---------- About page ---------- */

.page-hero {
  padding-top: clamp(140px, 22vh, 220px);
  padding-bottom: var(--space-5);
}

.values-row { margin-top: var(--space-4); }

.timeline {
  position: relative;
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange-bright), var(--orange), var(--ink));
  opacity: 0.45;
}

.timeline__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-3);
  align-items: flex-start;
}

.timeline__dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  border: 1px solid rgba(242, 87, 27, 0.4);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange-deep);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(242, 87, 27, 0.16);
}

.timeline__body {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.timeline__body h3 { margin-bottom: 6px; }
.timeline__body p { color: var(--text-muted); font-size: 15px; }

.client-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (max-width: 860px) { .client-logos { grid-template-columns: repeat(2, 1fr); } }

.client-logo {
  padding: 26px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.client-logo:hover {
  color: var(--text);
  border-color: rgba(242, 87, 27, 0.45);
  transform: translateY(-4px);
}

.quote-card {
  margin-top: var(--space-4);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--orange);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  position: relative;
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  font-weight: 500;
}

.quote-card figcaption {
  margin-top: var(--space-2);
  color: var(--text-faint);
  font-size: 14px;
}

.quote-card figcaption strong { color: var(--text-muted); font-weight: 600; }

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

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: var(--space-2); margin-top: var(--space-3); }

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.contact-info__item:hover { border-color: rgba(242, 87, 27, 0.4); transform: translateX(4px); }

.contact-info__item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--orange);
  margin-top: 3px;
}

.contact-info__item h3 { font-size: 15px; font-family: var(--font-body); font-weight: 600; }
.contact-info__item p { font-size: 14.5px; color: var(--text-muted); }
.contact-info__item a:hover { color: var(--orange-deep); }

.form-card {
  padding: clamp(26px, 4vw, 40px);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 8px rgba(22, 22, 26, 0.05), 0 28px 72px rgba(22, 22, 26, 0.12);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.field label .req { color: var(--orange); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(22, 22, 26, 0.025);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field select { cursor: pointer; }
.field select option { background: var(--bg-elev); color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(242, 87, 27, 0.04);
  box-shadow: 0 0 0 3px rgba(242, 87, 27, 0.18);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.field__error {
  font-size: 13px;
  color: #b91c1c;
  display: none;
}

.field.has-error .field__error { display: block; }

.form-card .btn { width: 100%; justify-content: center; margin-top: var(--space-2); }

.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-4) var(--space-2);
}

.form-success.is-visible { display: block; }
.form-card form.is-hidden { display: none; }

.form-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(242, 87, 27, 0.1);
  border: 1px solid rgba(242, 87, 27, 0.4);
  color: var(--orange);
  box-shadow: var(--shadow-glow-orange);
}

.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--text-muted); font-size: 15px; max-width: 400px; margin: 0 auto; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.footer__links { display: flex; gap: var(--space-3); list-style: none; flex-wrap: wrap; }

.footer__links a { color: var(--text-faint); font-size: 14px; transition: color 0.25s; }
.footer__links a:hover { color: var(--orange-deep); }

.footer__copy { width: 100%; text-align: center; color: var(--text-faint); font-size: 13px; margin-top: var(--space-2); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */

/* ---------- Depth layer: parallax, 3D surfaces, spatial polish ---------- */

/* scroll-driven parallax — js writes --py, elements opt in with data-depth */
[data-depth] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

/* NO text-shadow on headings: .grad-text sets color:transparent, so any shadow
   paints a solid blurred copy straight through the glyphs and the gradient reads
   as doubled/muddy. Depth comes from the scrim behind the text instead. */

/* hero badge floats */
.hero__badge {
  box-shadow: var(--e2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

.hero__badge:hover { transform: translateY(-3px); box-shadow: var(--e3); }

/* card icons get their own micro-elevation and tilt on card hover */
.card__icon {
  box-shadow: 0 4px 12px rgba(242, 87, 27, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

.card:hover .card__icon {
  box-shadow: 0 12px 26px rgba(242, 87, 27, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ---- About: timeline in 3D ---- */

.timeline { perspective: var(--persp); }

.timeline__body {
  transform-style: preserve-3d;
  box-shadow: var(--e2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}

.timeline__item:hover .timeline__body {
  transform: translateX(8px) rotateY(-5deg);
  border-color: rgba(242, 87, 27, 0.4);
  box-shadow: var(--e3);
}

.timeline__item:hover .timeline__dot {
  transform: scale(1.1);
  box-shadow: 0 8px 22px rgba(242, 87, 27, 0.3);
}

.timeline__dot { transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out); }

/* ---- About: client logos ---- */

.client-logos { perspective: 900px; }

.client-logo {
  transform-style: preserve-3d;
  box-shadow: var(--e1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.client-logo:hover {
  transform: translateY(-6px) rotateX(8deg) scale(1.03);
  box-shadow: var(--e3);
}

.quote-card { box-shadow: var(--e3), inset 0 1px 0 rgba(255, 255, 255, 0.85); }

/* oversized quote mark, set behind the text */
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  color: rgba(242, 87, 27, 0.12);
  pointer-events: none;
}

.quote-card blockquote { position: relative; }

/* ---- Contact: depth on info tiles and the form ---- */

.contact-info { perspective: 900px; }

.contact-info__item {
  transform-style: preserve-3d;
  box-shadow: var(--e1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.3s, transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

.contact-info__item:hover {
  transform: translateX(6px) rotateY(-4deg);
  box-shadow: var(--e2);
}

.form-card {
  box-shadow: var(--e4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

/* ---- Section rhythm ---- */

.section + .section { padding-top: var(--space-5); }

.section-head { max-width: 720px; }

/* ---- Mobile comfort ---- */

@media (max-width: 760px) {
  .btn { padding: 15px 26px; }
  .nav__link { min-height: 48px; display: flex; align-items: center; }
  .hero { padding-top: 108px; }
  /* hover-only depth is meaningless on touch — keep surfaces flat and legible */
  .card:hover, .process__step:hover, .client-logo:hover,
  .contact-info__item:hover, .hero__stats .stat:hover { transform: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cta-band.reveal, .cta-band.reveal.is-visible { transform: none; }
  [data-depth] { transform: none !important; }
}
