/* ============================================================
   FoundLocal — flagship studio site
   Fusion soul: warm ivory canvas · amber→pink gradient · green accent
   ============================================================ */

:root {
  color-scheme: light; /* declares we handle theming — stops forced/auto dark-mode half-darkening the page */
  --accent-deep: #0d8b78;
  --ai-bg: #e9f6f0;
  --ai-fg: #13241e;
  --bubble-bg: #ffffff;
  /* ai-scene text roles — light values (pale green panel needs dark ink) */
  --ai-strong: var(--accent-deep);
  --ai-muted: #43544c;
  --ai-arrow: #0d8b78;
  --ai-tag: #6b7a73;
  --ai-them-bg: rgba(19, 36, 30, 0.05);
  --ai-them-fg: #13241e;
  --ai-them-border: rgba(19, 36, 30, 0.10);
  --ai-chat-border: rgba(19, 36, 30, 0.12);
  --ai-chat-shadow: 0 1px 2px rgba(19,36,30,.05), 0 24px 48px -16px rgba(19,36,30,.18);
  /* Light — fusion's warm ivory world (not sterile paper, not thermal) */
  --paper: #f7f3ea;
  --paper-2: #f1ebdd;
  --paper-3: #e9e1cf;
  --ink: #1b1722;
  --ink-2: #56514a;
  --ink-3: #8a8478;
  --line: rgba(27, 23, 34, 0.14);
  --line-soft: rgba(27, 23, 34, 0.08);
  --accent: #6fe3d2;                 /* fusion DARK-mode green, in light mode (Lucas: "light mode have the green... like dark mode color but green") */
  --accent-ink: #ffffff;
  --accent-soft: rgba(111, 227, 210, 0.16);
  --amber: #b25a12;
  --rose: #cf3a66;
  --violet: #7a3fd1;
  --grad: linear-gradient(105deg, #baf3e2 0%, #6fe3d2 34%, #2fc9a5 68%, #0d8b78 100%);   /* GREEN mixture — Lucas: bright mode is the green world */
  --grad-text: linear-gradient(105deg, #0fa88b 0%, #0d8b78 40%, #147a68 72%, #0a5b4c 100%);
  --grad-ink: #052720;               /* deep green-ink on the green gradient */
  --card: #fffdf8;
  --shadow: 0 1px 2px rgba(27,23,34,.05), 0 10px 30px -12px rgba(27,23,34,.16);
  --shadow-lift: 0 2px 4px rgba(27,23,34,.06), 0 24px 48px -16px rgba(27,23,34,.24);
  --glow: 0 8px 24px rgba(207,58,102,.20);
  --glow-lg: 0 10px 36px rgba(207,58,102,.28);
  --nav-bg: rgba(247, 243, 234, 0.82);
  --drift-a: rgba(255, 154, 118, 0.17);
  --drift-b: rgba(13, 139, 120, 0.11);
  --drift-c: rgba(255, 125, 156, 0.13);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  /* Dark — fusion's ember night, refined */
  --paper: #08080b;
  --paper-2: #0d0d12;
  --paper-3: #15151d;
  --ink: #f4f1ea;
  --ink-2: #b3afa4;
  --ink-3: #837f74;
  --line: rgba(244, 241, 234, 0.14);
  --line-soft: rgba(244, 241, 234, 0.08);
  --accent: #6fe3d2;                 /* fusion dark's green */
  --accent-ink: #06201b;
  --accent-soft: rgba(111, 227, 210, 0.10);
  --amber: #ffb877;
  --rose: #ff7d9c;
  --violet: #c98bff;
  --grad: linear-gradient(105deg, #ffd29e 0%, #ff9a76 38%, #ff7d9c 70%, #c98bff 100%);
  --grad-text: linear-gradient(105deg, #ffd29e 0%, #ff9a76 38%, #ff7d9c 70%, #c98bff 100%);
  --grad-ink: #161008;
  --ai-bg: #08080b;
  --ai-fg: #f4f1ea;
  --bubble-bg: #101017;
  /* ai-scene text roles — dark values (original dark styling) */
  --ai-strong: #f4f1ea;
  --ai-muted: #b3afa4;
  --ai-arrow: #6fe3d2;
  --ai-tag: #837f74;
  --ai-them-bg: rgba(244, 241, 234, 0.08);
  --ai-them-fg: #f4f1ea;
  --ai-them-border: rgba(244, 241, 234, 0.10);
  --ai-chat-border: rgba(244, 241, 234, 0.13);
  --ai-chat-shadow: 0 0 40px rgba(255,125,156,.14), 0 24px 48px -16px rgba(0,0,0,.7);
  --card: #101017;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.4), 0 26px 52px -16px rgba(0,0,0,.75);
  --glow: 0 0 24px rgba(255,125,156,.30);
  --glow-lg: 0 0 36px rgba(255,125,156,.45);
  --nav-bg: rgba(8, 8, 11, 0.74);
  --drift-a: rgba(255, 154, 118, 0.09);
  --drift-b: rgba(111, 227, 210, 0.07);
  --drift-c: rgba(201, 139, 255, 0.08);
}

/* gradient headline ink — used sparingly on hero emphasis words.
   motionsites move: the gradient BREATHES (background-position drift). */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: grad-breathe 5.5s ease-in-out infinite;
}
@keyframes grad-breathe {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* keyword glow (soft bloom behind the money word, motionsites-style) */
:root { --kw-glow: rgba(13, 139, 120, 0.30); }
html[data-theme="dark"] { --kw-glow: rgba(255, 125, 156, 0.34); }
.hook-line .grad-text { filter: drop-shadow(0 0 26px var(--kw-glow)); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-snap-type: y proximity; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s ease, color .45s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.06;
  text-wrap: balance;
  hyphens: none;
  -webkit-hyphens: none;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- soft film grain over everything ---------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 2147483000;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
html[data-theme="dark"] body::after { opacity: .06; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* ---------- WebGL layer (fl3d.js) — fixed BEHIND all content ----------
   pointer-events none + negative z-index: it can never block reading or
   the CTA. Injected by JS only; reduced-motion hides it as a backstop. */
.fl3d {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  display: block;
}
@media (prefers-reduced-motion: reduce) { .fl3d { display: none; } }

/* ---------- drifting background (subtle, always alive) ---------- */
.bg-drift {
  position: fixed; inset: -20vh -20vw; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.bg-drift::before, .bg-drift::after {
  content: ""; position: absolute; border-radius: 50%;
  will-change: transform; /* gradients fade to transparent — no filter blur (GPU-cheap) */
}
.bg-drift::before {
  width: 62vw; height: 62vw; top: -12vw; right: -8vw;
  background: radial-gradient(circle at 40% 40%, var(--drift-a) 0%, var(--drift-c) 45%, transparent 68%);
  animation: drift-a 52s ease-in-out infinite alternate;
}
.bg-drift::after {
  width: 55vw; height: 55vw; bottom: -14vw; left: -10vw;
  background: radial-gradient(circle, var(--drift-b) 0%, transparent 65%);
  animation: drift-b 64s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-14vw, 12vh) scale(1.18); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(12vw, -10vh) scale(0.94); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .45s ease;
}
.nav-inner {
  max-width: 1220px; margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 48px);
  display: flex; align-items: center; gap: 18px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
  margin-right: auto; white-space: nowrap;
}
.nav-brand .dot { color: var(--accent); }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-pill {
  display: inline-block; text-decoration: none;
  background: var(--grad); color: var(--grad-ink);
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: var(--glow);
  transition: transform .2s ease, box-shadow .3s ease, color .45s ease;
  white-space: nowrap;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: var(--glow-lg); }
.btn-pill.big { font-size: 16px; padding: 14px 30px; white-space: normal; text-align: center; text-wrap: balance; max-width: 100%; }
.btn-ghost {
  display: inline-block; text-decoration: none;
  color: var(--ink); font-size: 14.5px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--ink); }

.theme-toggle {
  appearance: none; border: 1px solid var(--line); background: transparent;
  color: var(--ink); width: 38px; height: 38px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 780px) {
  .nav-inner { flex-wrap: wrap; row-gap: 8px; padding-top: 12px; padding-bottom: 10px; }
  .nav-links {
    order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .btn-pill.nav-cta { padding: 8px 15px; font-size: 13px; }
}

/* ============================================================
   THE STORY ARC — hook · scene · turn · showcase
   ============================================================ */

/* ---------- 1 · hook ---------- */
.hook {
  min-height: calc(100vh - 70px); min-height: calc(100svh - 70px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative;
  padding-bottom: 10vh;
}
.hook-stage { display: flex; flex-direction: column; align-items: center; }
.hook-line {
  font-size: clamp(2.1rem, 9vw, 12rem);
  font-weight: 300; line-height: 0.98; letter-spacing: -0.025em;
  max-width: 15ch; margin: 0;
}
.hook-line em:not(.grad-text) { font-style: italic; color: var(--ink-3); }

/* pill badge over the headline — motionsites formula item 2 */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(20px, 3.5vh, 34px); padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-2); background: var(--card);
  box-shadow: var(--shadow);
  transition: background-color .45s ease, color .45s ease;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.72); }
}
.scroll-cue {
  position: absolute; bottom: clamp(26px, 6vh, 60px); left: 50%;
  width: 24px; height: 40px; margin-left: -12px;
  border: 1.5px solid var(--line); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px;
  margin-left: -1.5px; border-radius: 3px; background: var(--ink-3);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(12px); opacity: 0; }
  56% { transform: translateY(0); opacity: 0; }
}

/* ---------- 2 · agitate scene ---------- */
.scene {
  min-height: 82vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 780px; text-align: center;
}
.scene-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2.15rem);
  line-height: 1.35; color: var(--ink); margin: 0 0 1.4em;
  text-wrap: balance;
}
.scene-line em { color: var(--accent); font-style: italic; }
.scene-line.dim { color: var(--ink-3); }

/* ---------- 3 · the turn ---------- */
.turn {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
}
.turn .eyebrow { font-size: 15px; }
.turn .eyebrow .dot { color: var(--accent); }
.turn-line {
  font-size: clamp(2rem, 8.5vw, 6rem);
  letter-spacing: -0.028em; line-height: 1.05; max-width: 14ch; margin-bottom: 22px;
}
.turn-sub { color: var(--ink-2); max-width: 52ch; font-size: clamp(16px, 2vw, 18.5px); }

/* studio-in-numbers strip — counts up on scroll (numbers are real in HTML;
   JS only animates 0 → n once armed, so content is visible by default) */
.stat-strip {
  display: flex; gap: clamp(30px, 7vw, 84px); justify-content: center;
  flex-wrap: wrap; margin-top: clamp(34px, 6vh, 56px);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem); line-height: 1; letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block; margin-top: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- 4 · showcase spotlights ---------- */
.showcase-intro {
  padding: clamp(60px, 12vh, 130px) clamp(18px, 4vw, 48px);
  text-align: center;
}
.showcase-intro h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
.showcase-intro p:not(.eyebrow) { color: var(--ink-2); max-width: 56ch; margin: 0 auto; font-size: 17px; }

.spotlight {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  scroll-snap-align: start;
  padding: clamp(40px, 6vh, 70px) 0;
}
.spotlight:nth-child(even) { background: var(--paper-2); transition: background-color .45s ease; }
.spot-inner {
  display: grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(28px, 5vw, 72px); align-items: center; width: 100%;
}
.spot-copy h3 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 8px; }
.spot-count {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-3); font-size: 15px; margin-bottom: 14px; min-height: 1em;
}
.spot-kind {
  font-size: 12.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.spot-line { color: var(--ink-2); font-size: 16.5px; max-width: 40ch; margin-bottom: 26px; }

/* the browser-window frame */
.browser {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  transform: perspective(1600px) rotateY(0.001deg);
  transition: transform .5s ease, box-shadow .5s ease, background-color .45s ease;
}
.spotlight:hover .browser { transform: translateY(-6px); }
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .45s ease;
}
.b-dots { display: flex; gap: 6px; }
.b-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.b-dots i:nth-child(1) { background: #f26d5f; }
.b-dots i:nth-child(2) { background: #f2bd4e; }
.b-dots i:nth-child(3) { background: #57c15e; }
.b-url {
  flex: 1; max-width: 340px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 4px 16px;
  font-size: 12px; color: var(--ink-3); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color .45s ease;
}
.browser-view { aspect-ratio: 16 / 10.4; overflow: hidden; background: var(--paper-3); }
.browser-view img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: object-position 5s ease;
}
.spotlight:hover .browser-view img { object-position: bottom; }

.showcase-outro {
  text-align: center; font-size: 15px; color: var(--ink-2);
  padding: clamp(48px, 9vh, 100px) clamp(18px, 4vw, 48px);
}
.showcase-outro a { color: var(--accent); font-weight: 600; text-decoration: none; }
.showcase-outro a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .spotlight { min-height: 0; padding: clamp(48px, 8vh, 80px) 0; scroll-snap-align: none; }
  .spot-inner { grid-template-columns: 1fr; gap: 26px; }
  .spot-copy { order: 2; text-align: center; }
  .spot-line { margin-left: auto; margin-right: auto; }
  .browser { order: 1; }
  .browser-view { aspect-ratio: 15 / 13; }
}

.shelf-hint { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 26px; }

/* ---------- 5 · how — three steps, zero jargon ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow); text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, background-color .45s ease;
}
.how-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.how-num {
  font-family: var(--font-display); font-style: italic;
  color: var(--accent); font-size: 1.5rem; display: block; margin-bottom: 14px;
}
.how-step h3 { font-size: 1.7rem; margin-bottom: 10px; }
.how-step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ---------- 6 · the premium line (AI assistant card) ---------- */
.ai-card {
  margin-top: clamp(22px, 3vh, 34px);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 4vw, 48px); flex-wrap: wrap;
  /* LIGHT stays in the ivory+green world — deep green, never near-black
     (client: light mode must be green top-to-bottom, no dark bottom) */
  background: linear-gradient(130deg, #0a4a3d 0%, #0d8b78 82%, #12a186 100%);
  color: #f2faf6;
  border-radius: 18px; padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lift);
  transition: background-color .45s ease, color .45s ease;
}
html[data-theme="dark"] .ai-card { background: var(--paper-3); color: var(--ink); border: 1px solid var(--line); }
.ai-card .eyebrow { color: #a9f0de; margin-bottom: 10px; }
html[data-theme="dark"] .ai-card .eyebrow { color: #ffb877; }
.ai-card h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.ai-card-copy { flex: 1 1 420px; }
.ai-card-copy p:last-child { margin: 0; opacity: .85; font-size: 16px; max-width: 62ch; }

.cta-alt { font-size: 14px; color: var(--ink-3); margin-top: 22px; }
.cta-alt a { color: var(--ink-2); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vh, 120px) 0; }
.section.tinted { background: var(--paper-2); transition: background-color .45s ease; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vh, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad); flex: none;
}
.section-head.center .eyebrow, .turn .eyebrow, .showcase-intro .eyebrow {
  justify-content: center;
}
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.section-head p { color: var(--ink-2); font-size: 17.5px; max-width: 58ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.5vw, 28px); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.svc-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, background-color .45s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.svc-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.svc-card p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.svc-card .go { font-size: 14px; font-weight: 600; color: var(--accent); }
.svc-num {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-3); font-size: 15px; display: block; margin-bottom: 16px;
}

/* work / template cards */
.work-card {
  display: block; text-decoration: none; position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.work-card .cover {
  aspect-ratio: 11 / 11.5; overflow: hidden; background: var(--paper-3);
}
.work-card .cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 6s ease;
}
.work-card:hover .cover img { transform: translateY(-4%) scale(1.02); }
.work-meta { padding: 18px 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-meta h3 { font-size: 1.3rem; margin: 0; }
.work-meta .kind { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 3px; font-family: var(--font-body); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.work-meta .open {
  font-size: 13px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.work-card:hover .open { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* glow hover — green bloom in light, ember in dark (JS adds the 3D tilt on fine pointers) */
.work-card:hover {
  box-shadow: var(--shadow-lift), 0 0 44px -6px rgba(13, 139, 120, 0.35);
  border-color: rgba(13, 139, 120, 0.35);
}
html[data-theme="dark"] .work-card:hover {
  box-shadow: var(--shadow-lift), 0 0 44px -6px rgba(255, 125, 156, 0.30);
  border-color: rgba(255, 125, 156, 0.30);
}

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); align-items: stretch; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: background-color .45s ease;
}
.price-card.featured { border-color: var(--rose); border-width: 1.5px; position: relative; box-shadow: var(--glow), var(--shadow); }
.price-card .tier-tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--grad); color: var(--grad-ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price-card .amount { font-family: var(--font-display); font-size: 2.9rem; font-weight: 560; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price-card .amount small { font-size: 1rem; color: var(--ink-3); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.price-card .for-who { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.price-card li { padding: 8px 0 8px 26px; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.price-card .btn-pill, .price-card .btn-ghost { margin-top: auto; text-align: center; }

/* ---------- AI assistant scene (dark full-bleed, both themes) ---------- */
.ai-scene {
  position: relative; overflow: hidden;
  background: var(--ai-bg, #e9f6f0); color: var(--ai-fg, #12211c);
  padding: clamp(80px, 14vh, 150px) 0;
}
.ai-scene::before, .ai-scene::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.ai-scene::before {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -18%; right: -10%;
  background: radial-gradient(circle, rgba(255,125,156,.16) 0%, rgba(201,139,255,.08) 45%, transparent 70%);
}
.ai-scene::after {
  width: 38vw; height: 38vw; min-width: 320px; min-height: 320px;
  bottom: -22%; left: -8%;
  background: radial-gradient(circle, rgba(111,227,210,.10) 0%, transparent 65%);
}
.ai-scene-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(300px, 6fr) 5fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.ai-scene .eyebrow { color: var(--amber); }
.ai-scene h2 {
  font-size: clamp(1.9rem, 5.2vw, 3.8rem);
  letter-spacing: -0.02em; max-width: 17ch; margin-bottom: 24px;
}
.ai-benefits { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.ai-benefits li {
  position: relative; padding-left: 26px;
  color: var(--ai-muted); font-size: 16px; max-width: 46ch;
}
.ai-benefits li::before { content: "→"; position: absolute; left: 0; color: var(--ai-arrow); }
.ai-benefits li strong { color: var(--ai-strong); font-weight: 600; }
.ai-chat {
  background: var(--bubble-bg, #ffffff);
  border: 1px solid var(--ai-chat-border);
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 30px);
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--ai-chat-shadow);
}
.ai-chat-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ai-tag); text-align: center; margin-bottom: 4px;
}
.ai-bubble {
  margin: 0; padding: 12px 18px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.5; max-width: 88%;
}
.ai-bubble.them {
  background: var(--ai-them-bg); border: 1px solid var(--ai-them-border);
  border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ai-them-fg);
}
.ai-bubble.bot {
  background: var(--grad); color: #161008;
  border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 500;
}
@media (max-width: 880px) {
  .ai-scene-inner { grid-template-columns: 1fr; }
}

/* ---------- proof strip ---------- */
.proof-note {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px; max-width: 62ch;
  color: var(--ink-2); font-size: 16.5px;
}
.proof-note strong { color: var(--ink); }

/* ---------- scenario blocks (AI assistant) ---------- */
.scenario {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow); transition: background-color .45s ease;
}
.scenario h3 { font-size: 1.5rem; }
.scenario .role { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.chat-line {
  background: var(--accent-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 14px 18px; margin: 18px 0 6px;
  font-size: 15px; line-height: 1.55;
}
.chat-line .who { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 5px; }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line-soft); align-items: start;
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-style: italic;
  font-size: 1.7rem; color: var(--ink-3); line-height: 1.1;
}
.steps h3 { font-size: 1.35rem; margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; font-size: 15.5px; max-width: 62ch; }

/* ---------- big CTA band ---------- */
.cta-band { text-align: center; padding: clamp(70px, 11vh, 130px) 0; }
.cta-band h2 { font-size: clamp(2rem, 6vw, 4.4rem); margin-bottom: 18px; }
.cta-band p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 30px; font-size: 17.5px; }

/* ---------- contact ---------- */
.contact-panel {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 48px);
  transition: background-color .45s ease;
}
.contact-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 8px; }
.contact-detail { font-size: 15px; color: var(--ink-2); }
.contact-detail strong { color: var(--ink); }

.contact-form { display: grid; gap: 18px; margin-top: 26px; }
.contact-form label {
  display: grid; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .02em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .45s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form button { border: 0; cursor: pointer; font-family: var(--font-body); justify-self: start; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 44px 0 54px; overflow: hidden; }
/* giant editorial wordmark — motionsites footer treatment */
.footer-giant {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 11.5vw, 10rem);
  line-height: .95; letter-spacing: -0.03em;
  margin: 0 0 clamp(22px, 4vh, 44px);
  color: var(--ink);
  white-space: nowrap;
}
.footer-giant .dot { color: var(--accent); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.footer-brand { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.footer-brand .dot { color: var(--accent); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: 13px; color: var(--ink-3); margin-top: 18px; }

/* ---------- reveal (only when JS is armed) ---------- */
html.js-armed .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js-armed .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .bg-drift::before, .bg-drift::after { animation: none; }
  .scroll-cue span { animation: none; }
  html.js-armed .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .spotlight:hover .browser { transform: none; }
  .spotlight:hover .browser-view img { object-position: top; }
}

/* page hero (inner pages) */
.page-hero { padding: clamp(56px, 9vh, 100px) 0 clamp(28px, 4vh, 46px); }
.page-hero h1 { font-size: clamp(2rem, 7vw, 5.6rem); letter-spacing: -0.025em; }
.page-hero .lede { color: var(--ink-2); font-size: clamp(17px, 2vw, 19.5px); max-width: 60ch; }

/* ============================================================
   MOTION LAYER — additive only. Everything below is gated by
   html.js-armed (JS confirmed + not reduced-motion) and uses
   transform/opacity/clip-path only. Content stays fully visible
   with JS off. All of it is disabled under prefers-reduced-motion.
   ============================================================ */

/* ---------- 1 · hero headline: word rise-in (split by JS) ---------- */
html.js-armed .hook-line .word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 0.04em; margin: 0 -0.04em;   /* room so descenders/italics aren't clipped */
}
html.js-armed .hook-line .word-i {
  display: inline-block;
  transform: translateY(112%) rotate(6deg);
  opacity: 0;
  transition: transform .95s cubic-bezier(.19,1,.22,1), opacity .8s ease;
  will-change: transform;
}
html.js-armed .hook-line.words-in .word-i { transform: none; opacity: 1; }

/* ---------- 2 · button sheen sweep (magnetic handled in JS) ---------- */
.btn-pill { position: relative; overflow: hidden; isolation: isolate; }
.btn-pill::after {
  content: ""; position: absolute; top: 0; left: -130%;
  width: 65%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .65s cubic-bezier(.4,0,.2,1);
}
.btn-pill:hover::after { left: 145%; }
html[data-theme="dark"] .btn-pill::after {
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.42) 50%, transparent 100%);
}

/* ---------- 3 · spotlight browser: clip-path wipe + tilt + ken-burns ---------- */
.browser { --tiltx: 0deg; --lift: 0px; }
html.js-armed .browser {
  transform: perspective(1600px) rotateX(var(--tiltx)) translateY(var(--lift));
  clip-path: inset(0 0 100% 0 round 12px);
  transition: clip-path 1.05s cubic-bezier(.19,1,.22,1),
              transform .5s ease, box-shadow .5s ease, background-color .45s ease;
}
html.js-armed .browser.frame-in { clip-path: inset(0 0 0 0 round 12px); }
html.js-armed .spotlight:hover .browser { --lift: -6px; }
@media (prefers-reduced-motion: no-preference) {
  html.js-armed .browser-view img { animation: kenburns 20s ease-in-out infinite alternate; }
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.045) translateY(-1.5%); }
}

/* ---------- 4 · marquee ticker (injected by JS between sections) ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2);
  padding: 18px 0; margin: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  transition: background-color .45s ease;
}
.marquee-track {
  display: inline-flex; align-items: center; will-change: transform;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--ink-2); padding: 0 clamp(18px, 3vw, 34px);
}
.marquee-item .sep { color: var(--accent); font-style: normal; margin-left: clamp(18px, 3vw, 34px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 5 · ai-scene scrub wash (injected by JS) ---------- */
.ai-wash {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .1s linear;
  background: radial-gradient(120% 90% at 50% 0%, rgba(47,201,165,.16) 0%, transparent 60%);
}
html[data-theme="dark"] .ai-wash {
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, transparent 100%);
}

/* ---------- 6 · desktop cursor follower (injected by JS) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 2147483001;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%); will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid var(--accent);
  opacity: .55;
  transition: width .22s ease, height .22s ease, opacity .22s ease, background-color .22s ease;
}
.cursor-ring.is-hot { width: 54px; height: 54px; opacity: .9; background: var(--accent-soft); }

/* ---------- 7 · branded intro preloader (JS-injected — a no-JS visit
   never sees it, so content can never be blocked by it) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 2147483002;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 20px;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}
.preloader.pre-done { transform: translateY(-101%); }
.pre-brand {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 560; letter-spacing: -0.02em;
  color: var(--ink);
  animation: pre-rise .55s cubic-bezier(.19,1,.22,1) both;
}
.pre-brand .dot { color: var(--accent); }
.pre-bar {
  width: clamp(120px, 18vw, 220px); height: 2px; border-radius: 2px;
  background: var(--line-soft); position: relative; overflow: hidden;
}
.pre-bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  animation: pre-fill .55s ease-out .05s forwards;
}
@keyframes pre-rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pre-fill { to { transform: scaleX(1); } }

/* ---------- 8 · GSAP scroll choreography (html.gsap-on set only after
   the library is confirmed loaded + motion allowed) ---------- */
html.gsap-on { scroll-snap-type: none; }          /* pinned scenes fight scroll-snap */
html.gsap-on .browser-view img { animation: none; } /* GSAP owns the inner image scale */
/* color-zone shifts as you scroll — theme vars only, never hardcoded colors */
html.fl-zone-2 body { background-color: var(--paper-2); }
/* keyword glow needs the split-word wrapper unclipped once the rise finishes */
html.js-armed .hook-line.words-done .word { overflow: visible; }

/* ---------- reduced-motion: hard-off for everything above ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js-armed .hook-line .word { overflow: visible; }
  html.js-armed .hook-line .word-i { transform: none; opacity: 1; transition: none; }
  html.js-armed .browser { clip-path: none; transform: perspective(1600px) rotateY(0.001deg); transition: background-color .45s ease; }
  .btn-pill::after { display: none; }
  .marquee-track { animation: none; }
  .browser-view img { animation: none !important; }
  .grad-text { animation: none; }
  .hero-badge::before { animation: none; }
  .preloader { display: none; }
}
