/* =====================================================================
   WeMonetise — Premium monochrome agency site
   Design system + components + sections
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #070707;
  --bg-2: #0e0e0e;
  --bg-3: #141414;
  --fg: #f4f4f2;
  --fg-dim: #9b9b98;
  --fg-faint: #66655f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.24);
  --white: #ffffff;
  --black: #070707;

  --font-display: "Space Grotesk", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1340px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(90px, 13vh, 200px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --r-card: 6px;
  --r-pill: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.18rem);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
em { font-style: normal; }
::selection { background: var(--fg); color: var(--bg); }

/* ---------- Custom cursor (desktop, JS-enabled) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; display: none;
  mix-blend-mode: difference;
}
.cursor-on .cursor { display: block; }
.cursor-on, .cursor-on a, .cursor-on button, .cursor-on [data-magnetic] { cursor: none; }
.cursor__dot {
  position: fixed; top: 0; left: 0; width: 7px; height: 7px;
  background: #fff; border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; top: 0; left: 0; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.6); border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease);
}
.cursor__label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; opacity: 0;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(255,255,255,0.08); }
.cursor.is-label .cursor__ring { width: 72px; height: 72px; background: #fff; }
.cursor.is-label .cursor__label { opacity: 1; color: #000; mix-blend-mode: normal; }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9500; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
}
html.no-js .loader, html.no-anim .loader { display: none; }
.loader__inner { display: flex; align-items: center; gap: 20px; overflow: hidden; }
.loader__logo { height: clamp(38px, 7vw, 58px); width: auto; display: block; }
.loader__count { font-family: var(--font-mono); font-size: 0.9rem; color: var(--fg-dim); }
.loader__bar { width: min(280px, 60vw); height: 1px; background: var(--line); overflow: hidden; }
.loader__fill { display: block; height: 100%; width: 0%; background: var(--fg); }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 10000;
  background: var(--fg); color: var(--bg); padding: 10px 16px;
  font-family: var(--font-mono); font-size: 12px; border-radius: 4px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Typography helpers ---------- */
.kicker {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-dim); font-weight: 400;
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.kicker__line { width: 38px; height: 1px; background: var(--line-strong); display: inline-block; }
.kicker--center { justify-content: center; }
.kicker--dark { color: rgba(7,7,7,0.6); }
.kicker--dark .kicker__line { background: rgba(7,7,7,0.3); }

.section__head { max-width: 900px; margin-bottom: clamp(48px, 7vw, 96px); }
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.02;
  letter-spacing: -0.035em;
}
.section__title em, .hero__title em, .offer__title em, .cta__title em,
.why__quote em, .problem__lead em, .leak em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  letter-spacing: -0.01em;
}
.section__intro { color: var(--fg-dim); max-width: 560px; margin-top: 26px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 1em 1.6em; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 500; font-size: 0.96rem;
  letter-spacing: 0.005em; white-space: nowrap; will-change: transform;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn__arrow { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { box-shadow: 0 0 0 1px var(--fg), 0 16px 50px -12px rgba(255,255,255,0.45); }

.btn--ghost { color: var(--fg); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.btn--invert { background: var(--black); color: var(--white); }
.btn--invert:hover { box-shadow: 0 16px 50px -14px rgba(7,7,7,0.5); }

.btn--lg { padding: 1.15em 2em; font-size: 1.02rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 800;
  transition: transform .5s var(--ease), background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7,7,7,0.65); backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--container); margin-inline: auto; padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__mark { height: 26px; width: auto; flex: none; display: block; }
.brand__name {
  font-family: var(--font-display); font-weight: 500; font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-size: 0.92rem; color: var(--fg-dim); font-weight: 400; position: relative;
  transition: color .3s ease; will-change: transform;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--fg); transition: width .4s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 0.7em 1.3em; font-size: 0.9rem; }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav__toggle span { width: 24px; height: 1.5px; background: var(--fg); transition: transform .35s var(--ease), opacity .25s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 700; background: var(--bg);
  display: flex; align-items: center; padding: var(--gutter);
  clip-path: inset(0 0 100% 0); pointer-events: none;
  transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0% 0); pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.menu__links a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 9vw, 3.4rem); letter-spacing: -0.03em;
  padding: 10px 0; display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--line);
}
.menu__idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg-faint); }
.menu__cta { color: var(--fg-dim); font-size: clamp(1.1rem, 4vw, 1.4rem) !important; border: none !important; margin-top: 18px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 80px; overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
}
/* Static logo shown only if WebGL/3D is unavailable (hidden by JS on success) */
.hero__logo-fallback {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; right: 6%; transform: translateY(-50%);
  width: min(34vw, 420px); opacity: 0.92;
}
@media (max-width: 860px) {
  .hero__logo-fallback { right: 50%; transform: translate(50%, -50%); width: 60vw; opacity: 0.5; }
}
.hero__glow {
  position: absolute; top: 28%; right: -6%; width: 58vw; height: 58vw; max-width: 760px; max-height: 760px;
  z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(95deg, var(--bg) 0%, rgba(7,7,7,0.82) 26%, rgba(7,7,7,0.25) 55%, transparent 78%),
    linear-gradient(to top, var(--bg) 2%, transparent 22%);
}
.hero__grid {
  display: block; position: relative; z-index: 2; width: 100%;
}
.hero__copy { max-width: 680px; }
.hero__sub strong { color: var(--fg); font-weight: 500; }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3.1rem, 9.5vw, 9.5rem); line-height: 0.94;
  letter-spacing: -0.045em; margin-bottom: 36px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line__in { display: inline-block; }
.hero__sub { max-width: 520px; color: var(--fg-dim); font-size: 1.15rem; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.hero__micro {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--fg-faint); text-transform: uppercase; max-width: 360px; line-height: 1.7;
}

/* Hero floating visual */
.hero__visual { position: relative; height: 540px; }
.panel {
  position: absolute; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9);
  will-change: transform;
}
.panel__tag {
  position: absolute; bottom: 12px; right: 14px; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint);
}
.panel--site { width: 300px; top: 0; left: 0; z-index: 3; }
.panel--app { width: 150px; top: 150px; right: 0; z-index: 4; }
.panel--dash { width: 240px; bottom: 30px; left: 30px; z-index: 5; }
.panel--funnel { width: 168px; bottom: 0; right: 40px; z-index: 2; }

.panel__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.panel__bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.panel__body { display: flex; flex-direction: column; gap: 10px; }

.wire { background: rgba(255,255,255,0.14); border-radius: 3px; height: 8px; }
.wire--lg { width: 80%; height: 12px; background: rgba(255,255,255,0.28); }
.wire--md { width: 60%; }
.wire--sm { width: 70%; height: 7px; }
.wire--sm.short { width: 45%; }
.wire--row { display: flex; gap: 8px; background: none; }
.wire-box { flex: 1; height: 44px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); border-radius: 4px; }
.wire--cta { width: 50%; height: 26px; background: var(--fg); border-radius: var(--r-pill); margin-top: 4px; }

.phone {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 8px; position: relative;
}
.phone__notch { width: 36px; height: 4px; background: var(--line-strong); border-radius: 4px; margin: 0 auto 8px; }
.phone__chart { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-top: 6px; }
.phone__chart span { flex: 1; background: linear-gradient(to top, rgba(255,255,255,0.25), rgba(255,255,255,0.6)); border-radius: 2px 2px 0 0; }

.dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.dash__num { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.dash__chart { width: 100%; height: 64px; color: var(--fg); }
.dash__line { stroke-dasharray: 1; }

.funnel { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.funnel__row {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 7px 0; border: 1px solid var(--line); border-radius: 4px; color: var(--fg-dim);
}
.funnel__row.r1 { width: 100%; }
.funnel__row.r2 { width: 75%; }
.funnel__row.r3 { width: 50%; background: var(--fg); color: var(--bg); border-color: var(--fg); }

.hero__scroll {
  position: absolute; bottom: 34px; left: var(--gutter); display: flex; flex-direction: column;
  align-items: center; gap: 12px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint);
}
.hero__scroll-line { width: 1px; height: 50px; background: linear-gradient(var(--fg-faint), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--fg); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0% { top: -60%; } 100% { top: 110%; } }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 26px; white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 40px; will-change: transform;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: -0.02em; color: var(--fg);
}
.marquee__sep { color: var(--fg-faint) !important; font-size: 1rem !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   PROBLEM
   ===================================================================== */
.problem .section__title { max-width: 16ch; margin-bottom: 40px; }
.problem__lead { max-width: 620px; color: var(--fg-dim); font-size: 1.2rem; }
.problem__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: clamp(60px, 8vw, 110px); background: var(--line);
  border: 1px solid var(--line);
}
.leak { background: var(--bg); padding: clamp(28px, 3vw, 48px); }
.leak__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-faint); display: block; margin-bottom: 24px; }
.leak p { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; }

/* =====================================================================
   CAPABILITIES — cards
   ===================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: clamp(26px, 2.5vw, 40px); overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255,255,255,0.10), transparent 55%);
  transition: opacity .4s ease;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--fg); transition: width .5s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--line-strong); background: var(--bg-3); }
.card:hover::before { opacity: 1; }
.card:hover::after { width: 100%; }
.card__icon { width: 52px; height: 52px; margin-bottom: 28px; color: var(--fg); }
.card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.card p { color: var(--fg-dim); font-size: 1rem; max-width: 32ch; }
.card__index { position: absolute; top: 24px; right: 26px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-faint); transition: color .4s ease; }
.card:hover .card__index { color: var(--fg-dim); }

/* =====================================================================
   PILLARS — Websites / Apps / Marketing
   ===================================================================== */
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1400px; }
.pillar {
  --mx: 50%; --my: 50%;
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; transform-style: preserve-3d; will-change: transform;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.pillar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 2;
  background: radial-gradient(440px circle at var(--mx) var(--my), rgba(255,255,255,0.10), transparent 55%);
  transition: opacity .4s ease;
}
.pillar:hover { border-color: var(--line-strong); background: var(--bg-3); }
.pillar:hover::before { opacity: 1; }
.pillar__inner { position: relative; z-index: 1; padding: clamp(28px, 2.6vw, 44px); display: flex; flex-direction: column; height: 100%; }
.pillar__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: clamp(44px, 5vw, 80px); }
.pillar__idx { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-faint); }
.pillar__icon { width: 46px; height: 46px; color: var(--fg); }
.pillar__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.4vw, 2.5rem); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 18px; }
.pillar__copy { color: var(--fg-dim); font-size: 1rem; margin-bottom: 30px; }
.pillar__list { margin-top: auto; border-top: 1px solid var(--line); }
.pillar__list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--fg-dim); }
.pillar__list li::before { content: ""; width: 14px; height: 1px; background: var(--fg-faint); flex: none; }
.pillar__list li:last-child { border-bottom: none; }

/* =====================================================================
   CAPABILITIES — three columns
   ===================================================================== */
.caps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.caps__col { background: var(--bg); padding: clamp(28px, 2.6vw, 44px); }
.caps__label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.02em; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
.caps__col ul li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg-dim); font-size: 1rem; transition: color .3s ease, padding-left .3s var(--ease); }
.caps__col ul li:last-child { border-bottom: none; }
.caps__col ul li:hover { color: var(--fg); padding-left: 8px; }

@media (max-width: 900px) {
  .pillars__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .caps__grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   THE SYSTEM — flow
   ===================================================================== */
.system { overflow: hidden; }
.system__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80vw; height: 50vh; background: radial-gradient(ellipse, rgba(255,255,255,0.05), transparent 65%);
  pointer-events: none;
}
.flow { position: relative; margin-top: 30px; }
.flow__path { position: absolute; top: 7px; left: 0; width: 100%; height: 14px; color: var(--line-strong); overflow: visible; }
.flow__line { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.flow__nodes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; }
.node { position: relative; padding-top: 40px; }
.node__dot {
  position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line-strong); transition: all .5s var(--ease);
}
.node__idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-faint); display: block; margin-bottom: 12px; }
.node h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--fg-dim); transition: color .5s var(--ease); }
.node p { font-size: 0.92rem; color: var(--fg-faint); transition: color .5s var(--ease); }
.node.is-active .node__dot { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 0 6px rgba(255,255,255,0.08); }
.node.is-active h3 { color: var(--fg); }
.node.is-active p { color: var(--fg-dim); }
.node--end.is-active .node__dot { box-shadow: 0 0 0 6px rgba(255,255,255,0.12), 0 0 30px rgba(255,255,255,0.5); }

/* =====================================================================
   SERVICES — editorial list
   ===================================================================== */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 64px 1fr 1.1fr 40px;
  align-items: center; gap: 24px; padding: clamp(22px, 2.6vw, 38px) 8px;
  border-bottom: 1px solid var(--line); transition: padding .45s var(--ease), background .45s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); z-index: 0; opacity: 0.04; }
.svc > * { position: relative; z-index: 1; }
.svc:hover { padding-left: 26px; padding-right: 0; }
.svc:hover::before { transform: scaleX(1); }
.svc__idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg-faint); }
.svc__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1; }
.svc__desc { color: var(--fg-dim); font-size: 1rem; }
.svc__arrow { width: 26px; height: 26px; color: var(--fg-faint); justify-self: end; transition: transform .45s var(--ease), color .45s var(--ease); }
.svc:hover .svc__arrow { transform: translate(4px, -4px); color: var(--fg); }

/* =====================================================================
   AUDIENCE — word wall
   ===================================================================== */
.aud-wall { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.aud {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em;
  font-size: clamp(1.5rem, 3.8vw, 2.9rem); color: var(--fg-dim);
  padding: 4px 22px; position: relative; transition: color .35s ease;
}
.aud:not(:last-child)::after { content: "✦"; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); font-size: 0.7rem; color: var(--fg-faint); }
.aud:hover { color: var(--fg); }

/* =====================================================================
   WHY
   ===================================================================== */
.why__quote {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 4.4rem); line-height: 1.08; letter-spacing: -0.035em;
  max-width: 20ch; margin-bottom: clamp(60px, 8vw, 120px);
}
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why__item { background: var(--bg); padding: clamp(28px, 2.6vw, 44px); }
.why__idx { font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-faint); display: block; margin-bottom: 28px; }
.why__item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.why__item p { color: var(--fg-dim); font-size: 1rem; }

/* =====================================================================
   FEATURED OFFER — inverted
   ===================================================================== */
.offer { background: var(--fg); color: var(--black); border-top: none; }
.offer__head { max-width: 760px; margin-bottom: clamp(50px, 6vw, 90px); }
.offer__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 0.98; letter-spacing: -0.04em; margin-bottom: 28px; }
.offer__lead { font-size: 1.2rem; color: rgba(7,7,7,0.62); max-width: 600px; }
.offer__body { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.offer__list { border-top: 1px solid rgba(7,7,7,0.14); }
.offer__list li {
  display: flex; align-items: baseline; gap: 20px; padding: 22px 4px;
  border-bottom: 1px solid rgba(7,7,7,0.14); font-family: var(--font-display);
  font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 1.9rem); letter-spacing: -0.02em;
  transition: padding-left .4s var(--ease);
}
.offer__list li:hover { padding-left: 16px; }
.offer__list li span { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(7,7,7,0.4); font-weight: 400; }
.offer__cta { position: sticky; top: 120px; }
.offer__note { font-size: 1rem; color: rgba(7,7,7,0.6); margin-bottom: 26px; max-width: 32ch; }

/* =====================================================================
   WORK / CASE STUDIES
   ===================================================================== */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  --mx: 50%; --my: 50%;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.case:hover { transform: translateY(-8px); border-color: var(--line-strong); }
.case__visual {
  position: relative; aspect-ratio: 4 / 3; padding: 30px; display: flex; flex-direction: column;
  gap: 14px; justify-content: center; background: var(--bg-3); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.case__visual .wire { transition: transform .6s var(--ease); }
.case:hover .case__visual .wire { transform: translateX(6px); }
.case__visual--alt { align-items: stretch; }
.case__visual--app { align-items: center; }
.case__phone {
  width: 96px; padding: 16px 12px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; display: flex; flex-direction: column; gap: 8px;
}
.case__meta { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.case__cat { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.case__status {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim); display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-pill);
}
.case__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); animation: blink 2.4s ease infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* =====================================================================
   CTA
   ===================================================================== */
.cta { text-align: center; overflow: hidden; }
.cta__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 8vw, 7rem); line-height: 0.98; letter-spacing: -0.04em; margin-bottom: 30px; }
.cta__sub { color: var(--fg-dim); font-size: 1.2rem; max-width: 540px; margin-bottom: 44px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); padding-top: clamp(70px, 9vw, 130px); padding-bottom: 40px; position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: clamp(50px, 8vw, 90px); }
.brand--footer .brand__mark { height: 32px; width: auto; }
.brand--footer .brand__name { font-size: 1.4rem; }
.footer__tag { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--fg-dim); margin-top: 20px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 6px; }
.footer__col a { color: var(--fg-dim); transition: color .3s ease; width: fit-content; }
.footer__col a:hover { color: var(--fg); }
.footer__wordmark {
  font-family: var(--font-display); font-weight: 700; text-align: center; line-height: 0.8;
  font-size: clamp(3.5rem, 19vw, 19rem); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong); text-stroke: 1px var(--line-strong);
  margin-block: 20px; user-select: none; white-space: nowrap;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 30px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-faint); letter-spacing: 0.04em;
}
.footer__back { transition: color .3s ease; }
.footer__back:hover { color: var(--fg); }

/* Word-split (headline reveals) */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.word__in { display: inline-block; will-change: transform; }

/* =====================================================================
   REVEAL STATES (JS-driven)
   ===================================================================== */
html.js [data-reveal],
html.js [data-reveal-words],
html.js .hero__title .line__in { opacity: 0; }
html.js [data-reveal] { transform: translateY(30px); }

html.no-anim [data-reveal],
html.no-anim [data-reveal-words],
html.no-anim .hero__title .line__in { opacity: 1 !important; transform: none !important; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .hero__grid { gap: 40px; }
  .hero__visual { height: 460px; }
  .panel--site { width: 260px; }
  .panel--dash { width: 210px; }
  .cards, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .hero { padding-top: 130px; }
  .hero__veil {
    background:
      linear-gradient(to bottom, var(--bg) 0%, rgba(7,7,7,0.72) 40%, rgba(7,7,7,0.66) 72%, rgba(7,7,7,0.45) 100%);
  }
  .hero__scroll { display: none; }

  .problem__grid { grid-template-columns: 1fr; }

  /* System → vertical */
  .flow__path { display: none; }
  .flow__nodes { grid-template-columns: 1fr; gap: 0; padding-left: 26px; }
  .flow__nodes::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
  .node { padding-top: 0; padding-bottom: 38px; padding-left: 8px; }
  .node__dot { left: -27px; top: 6px; }

  .svc { grid-template-columns: 44px 1fr 30px; gap: 14px 18px; }
  .svc__desc { grid-column: 2 / 4; }
  .svc:hover { padding-left: 14px; }

  .offer__body { grid-template-columns: 1fr; }
  .offer__cta { position: static; }
}

@media (max-width: 560px) {
  .cards, .why__grid, .work__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .aud { padding-inline: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .hero__scroll-line::after, .case__status::before { animation: none; }
}

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
.offer :focus-visible { outline-color: var(--black); }
