/* =========================================================
   Tezaro · built on the landing-page-design skill
   (elayadesign/ai-design-skills). Every value below resolves
   to the skill's tokens: Tailwind type scale, the B2 spacing
   table, Tailwind radii, flat backgrounds, base motion curve.
   ========================================================= */

:root {
  /* Spacing (B2) */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
  --s-700: 64px; --s-800: 80px; --s-900: 96px;
  /* Radius (B3, Tailwind) */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;
  /* Motion (B7) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --d-layout: 500ms; --d-color: 300ms;

  /* Brand palette (from the Tezaro TZ logo) */
  --brand: #6B35B8;
  --brand-600: #5A2BA0;
  --brand-300: #B79BE6;
  --brand-100: #EFE7FB;
  --mint: #7FD6C2;
  --mint-100: #E3F6F1;
  --navy: #1A1923;

  /* Light theme */
  --bg: #FFFFFF;
  --surface: #F7F5FB;
  --surface-2: #EFE7FB;
  --text: #0A0A0A;
  --muted: #5C5C66;
  --line: rgba(26, 25, 35, 0.1);
  --logo: #6B35B8;
  --trace: #7FD6C2;
  --inv-bg: #6B35B8;
  --inv-text: #FFFFFF;
  --inv-muted: #E2D6F6;
  --hero-from: #000000; --hero-to: #666666;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 16px 40px rgba(64, 32, 120, 0.1);
  --tint-a: #EFE7FB; --tint-b: #E3F6F1; --tint-c: #E6DAF8;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #181818; --surface-2: #272727;
    --text: #FFFFFF; --muted: #9B9B9B; --line: rgba(255, 255, 255, 0.12);
    --logo: #FFFFFF; --trace: #B79BE6;
    --inv-bg: #1F1F1F; --inv-text: #FFFFFF; --inv-muted: #9B9B9B;
    --hero-from: #FFFFFF; --hero-to: #9B9B9B;
    --nav-bg: rgba(24, 24, 24, 0.72);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    --tint-a: #1F1F1F; --tint-b: #1F1F1F; --tint-c: #1F1F1F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #181818; --surface-2: #272727;
  --text: #FFFFFF; --muted: #9B9B9B; --line: rgba(255, 255, 255, 0.12);
  --logo: #FFFFFF; --trace: #B79BE6;
  --inv-bg: #1F1F1F; --inv-text: #FFFFFF; --inv-muted: #9B9B9B;
  --hero-from: #FFFFFF; --hero-to: #9B9B9B;
  --nav-bg: rgba(24, 24, 24, 0.72);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --tint-a: #1F1F1F; --tint-b: #1F1F1F; --tint-c: #1F1F1F;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* component display rules must never beat the hidden attribute */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, .heading-1, .heading-2, .heading-3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-md); }
.muted { color: var(--muted); }

/* ---------- Text styles (B1) ---------- */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.01em; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }

@media (max-width: 767px) {
  .heading-1 { font-size: 2.25rem; line-height: 2.5rem; }
  .heading-2 { font-size: 1.875rem; line-height: 2.25rem; }
  .heading-3 { font-size: 1.5rem; line-height: 2rem; }
}

.grad-text {
  background-image: linear-gradient(90deg, var(--hero-from), var(--hero-to));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s-200); }
@media (min-width: 768px) { .container { padding-inline: var(--s-400); } }
.section { padding-block: var(--s-700); }
@media (min-width: 768px) { .section { padding-block: var(--s-900); } }
.stack { display: grid; gap: var(--s-300); align-content: start; }
.section-head { display: grid; gap: var(--s-200); margin-bottom: var(--s-600); max-width: 680px; }
.split { display: grid; gap: var(--s-400); }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: var(--s-700); align-items: start; } }

.eyebrow { display: inline-flex; align-items: center; gap: var(--s-75); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: var(--r-full); display: inline-block; }
.dot-brand { background: var(--brand); } .dot-mint { background: var(--mint); }
.badge { display: inline-flex; align-items: center; padding: var(--s-50) var(--s-75); border-radius: var(--r-full); background: var(--mint); color: var(--navy); letter-spacing: 0; text-transform: none; }

/* ---------- Logo: wordmark + monogram (reactive) ---------- */
.wordmark { display: inline-flex; align-items: baseline; color: var(--logo); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.wm-t { height: 0.8em; width: auto; overflow: visible; margin-right: -0.04em; transform-origin: 50% 100%; }
.wm-letters { display: inline-flex; }
.wm-letters span { display: inline-block; transform-origin: 50% 100%; }
.mono-fill { fill: currentColor; }
.mono-trace {
  fill: none; stroke: var(--trace); stroke-linecap: butt; stroke-miterlimit: 2;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.wm-t .mono-trace { stroke-width: 10; }
.mono .mono-trace { stroke-width: 20; }
.wordmark.jelly-go .wm-t,
.wordmark.jelly-go .wm-letters span { animation: jelly 800ms var(--ease) both; }
.wordmark.jelly-go .wm-letters span:nth-child(1) { animation-delay: 50ms; }
.wordmark.jelly-go .wm-letters span:nth-child(2) { animation-delay: 100ms; }
.wordmark.jelly-go .wm-letters span:nth-child(3) { animation-delay: 150ms; }
.wordmark.jelly-go .wm-letters span:nth-child(4) { animation-delay: 200ms; }
.wordmark.jelly-go .wm-letters span:nth-child(5) { animation-delay: 250ms; }
.wm-letters span.jelly-one { animation: jelly 800ms var(--ease) both; }
@keyframes jelly {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.18, 0.8); }
  45% { transform: scale(0.86, 1.16); }
  65% { transform: scale(1.06, 0.95); }
  85% { transform: scale(0.98, 1.02); }
  100% { transform: scale(1, 1); }
}

/* ---------- Buttons (B2 padding, B9 states) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100); min-height: 40px;
  border-radius: var(--r-full); border: 1px solid transparent; cursor: pointer;
  transition: transform var(--d-color) var(--ease), opacity var(--d-color) var(--ease), background-color var(--d-color) var(--ease);
  white-space: nowrap;
}
.btn.button-md { min-height: 44px; padding-inline: var(--s-200); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-primary { background: var(--brand); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-600); }
.btn-light { background: #FFFFFF; color: var(--brand-600); }
.btn .ph { font-size: 1.125rem; transition: transform var(--d-color) var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(4px); }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: var(--r-full); border: 0; background: transparent; cursor: pointer;
  transition: background-color var(--d-color) var(--ease), transform var(--d-color) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.98); }
.icon-btn .ph { font-size: 1.25rem; }

.skip-link {
  position: fixed; left: var(--s-200); top: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-full);
  background: var(--brand); color: #FFFFFF; transform: translateY(-200%);
  transition: transform var(--d-layout) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Navigation (B7) ---------- */
.nav-wrap { position: fixed; inset: var(--s-200) 0 auto 0; z-index: 50; display: flex; justify-content: center; padding-inline: var(--s-200); pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: var(--s-50);
  padding: var(--s-75); border-radius: var(--r-full);
  background: var(--nav-bg); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow);
}
.nav-brand { display: flex; align-items: center; padding: 0 var(--s-100) 0 var(--s-100); font-size: 1.5rem; }
.nav-links { display: flex; gap: var(--s-25); }
.nav-links a {
  display: block; padding: var(--s-75) var(--s-100); border-radius: var(--r-full); color: var(--muted);
  transition: background-color var(--d-color) var(--ease), color var(--d-color) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; }
.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--d-layout) var(--ease); }
.burger span:first-child { top: 1px; } .burger span:last-child { bottom: 1px; }
.menu-btn[aria-expanded="true"] .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .nav { gap: var(--s-25); }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; display: flex; align-items: center;
  padding: var(--s-900) var(--s-300) var(--s-400);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; transition: opacity var(--d-color) var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { opacity: 1; }
.mobile-menu ul { display: grid; gap: var(--s-200); }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity var(--d-layout) var(--ease), transform var(--d-layout) var(--ease); }
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu.open li:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.open li:nth-child(2) { transition-delay: 120ms; }
.mobile-menu.open li:nth-child(3) { transition-delay: 180ms; }
.mobile-menu.open li:nth-child(4) { transition-delay: 240ms; }
.mobile-menu.open li:nth-child(5) { transition-delay: 300ms; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--s-900) + var(--s-400)) var(--s-700); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero-copy { display: grid; gap: var(--s-300); justify-items: start; }
.hero-title { max-width: 680px; }
.hero-sub { max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.proof { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s-75); }

.hero-art { position: relative; justify-self: center; width: min(420px, 80vw); aspect-ratio: 1 / 1; display: grid; place-items: center; perspective: 900px; }
.hero-mono { position: absolute; inset: 8% 2% auto 2%; color: var(--brand); opacity: 0.16; transform-style: preserve-3d; will-change: transform; }
:root[data-theme="dark"] .hero-mono { color: #FFFFFF; opacity: 0.12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-mono { color: #FFFFFF; opacity: 0.12; } }
.hero-mono .mono-trace { stroke: var(--brand); }
:root[data-theme="dark"] .hero-mono .mono-trace { stroke: var(--brand-300); }
.tez-slot { aspect-ratio: 400 / 420; position: relative; z-index: 1; }
.hero-slot { width: 64%; margin-top: 12%; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-full);
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: float 6s var(--ease) infinite alternate; z-index: 1;
}
.chip .ph { font-size: 1rem; color: var(--brand); }
:root[data-theme="dark"] .chip .ph { color: var(--brand-300); }
.chip-1 { left: -4%; top: 14%; }
.chip-2 { right: -2%; top: 6%; animation-delay: -1.5s; }
.chip-3 { left: -8%; bottom: 18%; animation-delay: -3s; }
.chip-4 { right: -6%; bottom: 8%; animation-delay: -4.5s; }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

.scroll-cue { position: absolute; left: 50%; bottom: var(--s-300); transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-75); }
.scroll-cue .ph { font-size: 1.25rem; animation: float 1.6s var(--ease) infinite alternate; }
@media (max-width: 767px) { .scroll-cue { display: none; } }

/* ---------- Loops (infinite marquees) ---------- */
.loop { overflow: hidden; }
.loop-track { display: flex; width: max-content; will-change: transform; }
.loop-set { display: flex; align-items: center; flex-shrink: 0; }
.marquee { padding-block: var(--s-400); border-block: 1px solid var(--line); }
.marquee .loop-set li { padding-inline: var(--s-300); white-space: nowrap; }
.sep { font-size: 2rem; }
.sep-brand { color: var(--brand); } .sep-mint { color: var(--mint); }
:root[data-theme="dark"] .sep-brand { color: var(--brand-300); }

/* ---------- Problem ---------- */
.places { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.places li { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-100); border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); }
.places .ph { font-size: 1.125rem; color: var(--brand); }
:root[data-theme="dark"] .places .ph { color: var(--brand-300); }

/* ---------- Benefit cards ---------- */
.cards { display: grid; gap: var(--s-200); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: grid; gap: var(--s-100); align-content: start; padding: var(--s-300);
  border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--d-layout) var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-lg); margin-bottom: var(--s-100); }
.card-icon .ph { font-size: 1.25rem; }
.bg-brand { background: var(--brand-100); color: var(--brand); }
.bg-mint { background: var(--mint-100); color: #1F7A66; }

/* ---------- Story (pinned scene with the main character) ---------- */
.story { position: relative; height: 400vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.story-grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; } }
.story-copy { display: grid; gap: var(--s-300); }
.steps { display: grid; gap: var(--s-300); }
.step { display: grid; gap: var(--s-75); padding-left: var(--s-300); border: 0; box-shadow: inset 2px 0 0 var(--line); opacity: 0.32; transform: translateX(-8px); transition: opacity var(--d-layout) var(--ease), transform var(--d-layout) var(--ease); }
.step-num { color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; }
:root[data-theme="dark"] .step-num { color: var(--brand-300); }
.story[data-step="0"] .step[data-i="0"],
.story[data-step="1"] .step[data-i="1"],
.story[data-step="2"] .step[data-i="2"] { opacity: 1; transform: none; box-shadow: inset 2px 0 0 var(--brand); }
.story-progress { height: 2px; background: var(--line); border-radius: var(--r-full); overflow: hidden; }
.story-progress span { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.story-art { position: relative; justify-self: center; width: min(400px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.disc { position: absolute; inset: 6%; border-radius: var(--r-full); opacity: 0; transform: scale(0.9); transition: opacity var(--d-layout) var(--ease), transform var(--d-layout) var(--ease); }
.disc-0 { background: var(--tint-a); } .disc-1 { background: var(--tint-b); } .disc-2 { background: var(--tint-c); }
.story[data-step="0"] .disc-0, .story[data-step="1"] .disc-1, .story[data-step="2"] .disc-2 { opacity: 1; transform: none; }
.story-slot { width: 64%; }
@media (max-width: 899px) {
  .story { height: 360vh; }
  .story-grid { gap: var(--s-300); }
  .story-art { order: -1; width: min(220px, 56vw); }
  .step { grid-area: 1 / 1; opacity: 0; }
}

/* ---------- Tagline reveal (B11) ---------- */
.tagline-section { padding-block: var(--s-900); }
@media (min-width: 768px) { .tagline-section { padding-block: calc(var(--s-900) * 2); } }
.tagline { max-width: 680px; margin-inline: auto; text-align: center; }
.tagline .w { opacity: 0.3; transition: opacity var(--d-layout) var(--ease); }
.tagline .w.on { opacity: 1; }

/* ---------- Work gallery ---------- */
.work .section-head { margin-bottom: var(--s-500); }
.gallery .loop-set { gap: var(--s-200); padding-right: var(--s-200); align-items: start; }
.shot figure { display: grid; gap: var(--s-75); }
.shot img { height: 320px; width: 320px; object-fit: cover; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface); }
.shot.wide img { width: 570px; }
.shot:first-child img { width: 480px; }
@media (max-width: 767px) {
  .shot img { height: 240px; width: 240px; }
  .shot.wide img { width: 428px; }
  .shot:first-child img { width: 360px; }
}

/* ---------- Bundle ---------- */
.bundle { display: grid; gap: var(--s-400); padding: var(--s-400); border-radius: var(--r-3xl); background: var(--inv-bg); color: var(--inv-text); }
@media (min-width: 900px) { .bundle { grid-template-columns: 1.4fr 1fr; padding: var(--s-600); gap: var(--s-600); } }
@media (max-width: 767px) { .bundle { padding: var(--s-300); } }
.bundle-main { display: grid; gap: var(--s-200); align-content: start; }
.on-inv, .inv-muted { color: var(--inv-muted); }
.bundle-list { display: grid; gap: var(--s-100); margin-top: var(--s-75); }
.bundle-list li { display: flex; align-items: center; gap: var(--s-100); }
.bundle-list .ph-bold { width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--mint); color: var(--navy); font-size: 0.875rem; }
.picker { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.pick {
  display: inline-flex; align-items: center; gap: var(--s-75); min-height: 40px;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-full); cursor: pointer;
  background: transparent; color: var(--inv-text); border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color var(--d-color) var(--ease), color var(--d-color) var(--ease), transform var(--d-color) var(--ease);
}
.pick:hover { background: rgba(255, 255, 255, 0.1); }
.pick:active { transform: scale(0.98); }
.pick[aria-pressed="true"] { background: #FFFFFF; color: var(--brand-600); border-color: #FFFFFF; }
.bundle-side {
  display: grid; gap: var(--s-100); align-content: start; justify-items: start;
  padding: var(--s-300); border-radius: var(--r-2xl); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}
.bundle-side .btn { margin-top: var(--s-100); }
.link-inv { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--inv-text); padding: var(--s-75) 0; opacity: 0.85; transition: opacity var(--d-color) var(--ease); }
.link-inv:hover { opacity: 1; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--s-400); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-700); } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-300) 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { flex-shrink: 0; font-size: 1.25rem; transition: transform var(--d-layout) var(--ease); }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s-300); max-width: 600px; }

/* ---------- Contact + form ---------- */
.contact-grid { display: grid; gap: var(--s-600); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: start; } }
.contact-list { display: grid; gap: var(--s-75); }
.contact-list a { display: inline-flex; align-items: center; gap: var(--s-100); padding: var(--s-75) 0; transition: color var(--d-color) var(--ease); }
.contact-list a:hover { color: var(--brand); }
.contact-list .ph { font-size: 1.25rem; color: var(--brand); }
:root[data-theme="dark"] .contact-list .ph, :root[data-theme="dark"] .contact-list a:hover { color: var(--brand-300); }
.form { display: grid; gap: var(--s-200); padding: var(--s-300); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 768px) { .form { padding: var(--s-400); } }
.field { display: grid; gap: var(--s-75); }
.field input, .field select, .field textarea {
  width: 100%; padding: var(--s-100) var(--s-200); border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color var(--d-color) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field [aria-invalid="true"] { border-color: #D93B2B; }
.error { color: #D93B2B; }
:root[data-theme="dark"] .error { color: #FF8A7A; }
.form .btn { justify-self: start; }
.status:empty { display: none; }

/* ---------- Footer ---------- */
.footer { padding-block: var(--s-700) var(--s-400); border-top: 1px solid var(--line); overflow: hidden; }
.footer-wordmark { font-size: 8rem; margin-bottom: var(--s-600); cursor: default; }
@media (max-width: 767px) { .footer-wordmark { font-size: 4.5rem; } }
.footer-grid { display: grid; gap: var(--s-300); align-items: center; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr auto auto; gap: var(--s-600); } }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-300); }
.footer-links a { color: var(--muted); transition: color var(--d-color) var(--ease); }
.footer-links a:hover { color: var(--text); }
.loop-hint { display: flex; justify-content: center; align-items: center; gap: var(--s-75); margin-top: var(--s-600); }
.loop-hint .ph { font-size: 1rem; }

/* ---------- Scroll reveals (B7) ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- The main character: Tez the jelly ---------- */
.tez {
  position: fixed; left: 0; top: 0; z-index: 40; width: 240px;
  transform-origin: 0 0; pointer-events: none; will-change: transform;
  opacity: 0; transition: opacity var(--d-color) var(--ease);
}
.tez.ready { opacity: 1; }
.tez.hidden { opacity: 0; }
.tez-svg { width: 100%; height: auto; overflow: visible; }
.tez-shadow { fill: #3A1E6B; opacity: 0.14; }
:root[data-theme="dark"] .tez-shadow { fill: #B79BE6; opacity: 0.12; }
.blob { pointer-events: auto; cursor: pointer; }
.fluff { fill: none; stroke: #A47BE6; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 0 17; }
.tuft circle { fill: #A47BE6; }
.curl { fill: none; stroke: #A47BE6; stroke-width: 9; stroke-linecap: round; }
.limb { fill: #7E4CCF; }
.shine { fill: #FFFFFF; opacity: 0.55; }
.shine-dot { fill: #FFFFFF; opacity: 0.75; }
.belly path { fill: #FFFFFF; opacity: 0.85; }
.blush { fill: #FF9EC7; opacity: 0.6; }
.eye { fill: var(--navy); }
.glint { fill: #FFFFFF; }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
.eyes-happy { fill: none; stroke: var(--navy); stroke-width: 8; stroke-linecap: round; opacity: 0; }
.mouth { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; }
.mouth-open { fill: var(--navy); opacity: 0; }
.pencil rect { fill: var(--mint); } .pencil path { fill: #FFFFFF; }
.pencil { opacity: 0; transition: opacity var(--d-color) var(--ease); }
.sparks path { fill: var(--mint); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.4); transition: opacity var(--d-layout) var(--ease), transform var(--d-layout) var(--ease); }
.sparks path:last-child { fill: #FF9EC7; }

.arm { transition: transform var(--d-layout) var(--ease); }
.arm-l { transform-origin: 64px 246px; }
.arm-r { transform-origin: 336px 246px; }
.tez-body { animation: breathe 2.4s var(--ease) infinite alternate; transform-origin: 200px 384px; }
@keyframes breathe { from { transform: scale(1, 1); } to { transform: scale(1.02, 0.97); } }

/* poses */
.pose-wave .arm-r { animation: wave 1.1s var(--ease) infinite alternate; }
@keyframes wave { from { transform: rotate(-110deg); } to { transform: rotate(-150deg); } }
.pose-cheer .arm-l, .pose-launch .arm-l { transform: rotate(125deg); }
.pose-cheer .arm-r, .pose-launch .arm-r { transform: rotate(-125deg); }
.pose-cheer .sparks path, .pose-launch .sparks path { opacity: 1; transform: scale(1); }
.pose-cheer .eyes, .pose-launch .eyes { opacity: 0; }
.pose-cheer .eyes-happy, .pose-launch .eyes-happy { opacity: 1; }
.pose-cheer .mouth, .pose-launch .mouth { opacity: 0; }
.pose-cheer .mouth-open, .pose-launch .mouth-open { opacity: 1; }
.pose-think .arm-r { transform: rotate(-95deg); }
.pose-draw .pencil { opacity: 1; }
.pose-draw .arm-r { animation: draw 0.7s var(--ease) infinite alternate; }
@keyframes draw { from { transform: rotate(-30deg); } to { transform: rotate(-60deg); } }
.pose-point .arm-l { transform: rotate(55deg); }
.pose-launch .tez-body { animation: jump 1.1s var(--ease) infinite; }
@keyframes jump { 0%, 100% { transform: translateY(0) scale(1.06, 0.92); } 40% { transform: translateY(-34px) scale(0.94, 1.08); } 70% { transform: translateY(0) scale(1.08, 0.9); } }

.tez-say {
  position: fixed; left: 0; top: 0; z-index: 41; max-width: 240px;
  padding: var(--s-100) var(--s-200); border-radius: var(--r-2xl);
  background: var(--bg); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
  pointer-events: none; opacity: 0; transition: opacity var(--d-color) var(--ease);
}
.tez-say.show { opacity: 1; }
.tez-say.swap { opacity: 0; }

/* =========================================================
   v4 features rebuilt in this design
   ========================================================= */
.accent { color: var(--brand); }
:root[data-theme="dark"] .accent { color: var(--brand-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .accent { color: var(--brand-300); } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.plus { color: var(--brand); }
:root[data-theme="dark"] .plus { color: var(--brand-300); }

/* Hero rows slide up on load */
.hero-title { display: grid; }
.hero-title .row { display: block; overflow: hidden; padding-bottom: var(--s-75); margin-bottom: calc(var(--s-75) * -1); }
.hero-title .row > span { display: inline-block; transform: translateY(110%); animation: rowUp 900ms var(--ease) forwards; }
.hero-title .row:nth-child(2) > span { animation-delay: 120ms; }
.hero-title .row:nth-child(3) > span { animation-delay: 240ms; }
@keyframes rowUp { to { transform: none; } }
.hero-clone .hero-title .row > span { animation: none; transform: none; }

/* Floating hero cards */
.float-card {
  position: absolute; z-index: 2; padding: var(--s-100) var(--s-200); border-radius: var(--r-2xl);
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: float 6s var(--ease) infinite alternate;
}
.stat-card { left: -6%; top: 30%; display: grid; gap: var(--s-25); animation-delay: -2s; }
.badge-card { right: -4%; top: 2%; display: inline-flex; align-items: center; gap: var(--s-75); animation-delay: -4s; }
.live-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--mint); box-shadow: 0 0 0 4px rgba(127, 214, 194, 0.3); }
.hero-art .chip-1 { left: auto; right: -8%; top: auto; bottom: 26%; }
.hero-art .chip-4 { left: 0; right: auto; bottom: 4%; }
@media (max-width: 767px) { .stat-card { left: -2%; top: 20%; } .badge-card { right: -2%; } }

/* Stats */
.stats-section { padding-block: var(--s-700); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-300); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { display: grid; gap: var(--s-75); padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); }
.stat-n { font-variant-numeric: tabular-nums; }

/* Cards: 3 per row, numbered, tilting */
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; }
.card-num { position: absolute; top: var(--s-300); right: var(--s-300); color: var(--muted); letter-spacing: 0.08em; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Values chips band */
.chips-band { padding-block: var(--s-400); }
.chips-band .loop-set { gap: var(--s-100); padding-right: var(--s-100); }
.vchip {
  display: inline-flex; align-items: center; gap: var(--s-75); white-space: nowrap;
  padding: var(--s-100) var(--s-300); border-radius: var(--r-full);
  background: var(--brand-100); color: var(--brand-600); border: 1px solid rgba(107, 53, 184, 0.16);
}
.vchip .ph-fill { font-size: 0.875rem; color: var(--brand); }
:root[data-theme="dark"] .vchip { background: #1F1F1F; color: #FFFFFF; border-color: var(--line); }
:root[data-theme="dark"] .vchip .ph-fill { color: var(--brand-300); }

/* About */
.about-grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-700); } }
.rows { display: grid; gap: var(--s-200); margin-top: var(--s-100); }
.rows li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-100); padding-block: var(--s-200); border-top: 1px solid var(--line); }
.row-num { color: var(--brand); }
:root[data-theme="dark"] .row-num { color: var(--brand-300); }
.rows h3 { margin-bottom: var(--s-50); }
.about-img { position: relative; justify-self: center; width: min(420px, 100%); }
.about-img img { width: 100%; height: auto; border-radius: var(--r-3xl); border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-badge {
  position: absolute; left: calc(var(--s-300) * -1); bottom: var(--s-400); display: grid; gap: var(--s-25);
  padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl); background: var(--brand); color: #FFFFFF; box-shadow: var(--shadow);
}
@media (max-width: 767px) { .about-badge { left: var(--s-200); } }

/* Comparison */
.compare { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.cmp { display: grid; gap: var(--s-200); align-content: start; padding: var(--s-400); border-radius: var(--r-3xl); border: 1px solid var(--line); }
.cmp ul { display: grid; gap: var(--s-100); }
.cmp li { display: flex; align-items: center; gap: var(--s-100); }
.cmp li .ph-bold { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-full); font-size: 0.875rem; flex-shrink: 0; }
.cmp-weak { background: var(--surface); }
.cmp-weak li { color: var(--muted); }
.cmp-weak .ph-bold { background: var(--surface-2); color: var(--muted); }
.cmp-strong { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
.cmp-strong .ph-bold { background: var(--mint); color: var(--navy); }

/* Portfolio */
.work-head { display: grid; gap: var(--s-300); align-items: end; margin-bottom: var(--s-600); }
@media (min-width: 900px) { .work-head { grid-template-columns: 1fr 1fr; gap: var(--s-600); } }
.masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-200); }
@media (min-width: 900px) { .masonry { grid-template-columns: repeat(3, 1fr); gap: var(--s-300); } }
.m-item {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r-2xl);
  overflow: hidden; cursor: pointer; background: var(--surface); text-align: left;
}
.m-item img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease); }
.m-item:hover img { transform: scale(1.04); }
.m-cov {
  position: absolute; inset: auto var(--s-100) var(--s-100) var(--s-100); display: grid; gap: var(--s-25);
  padding: var(--s-100) var(--s-200); border-radius: var(--r-lg);
  background: rgba(26, 25, 35, 0.78); color: #FFFFFF;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(8px); transition: opacity var(--d-color) var(--ease), transform var(--d-layout) var(--ease);
}
.m-item:hover .m-cov, .m-item:focus-visible .m-cov { opacity: 1; transform: none; }
.m-tag { color: var(--mint); text-transform: uppercase; letter-spacing: 0.08em; }
@media (hover: none) { .m-cov { display: none; } }
@media (max-width: 767px) { .m-cov .title-2 { font-size: 0.875rem; line-height: 1.25rem; } }
.client-head { display: grid; gap: var(--s-75); margin-block: var(--s-700) var(--s-300); }
.shot { display: grid; gap: var(--s-75); }
.shot-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-2xl); }

/* Process: 4 steps */
.disc-3 { background: var(--tint-a); }
.story[data-step="3"] .step[data-i="3"] { opacity: 1; transform: none; box-shadow: inset 2px 0 0 var(--brand); }
.story[data-step="3"] .disc-3 { opacity: 1; transform: none; }
.step-num { font-size: 0.875rem; line-height: 1.25rem; }

/* CTA with pulsing rings */
.cta-box {
  position: relative; overflow: hidden; display: grid; gap: var(--s-300); justify-items: center; text-align: center;
  padding: var(--s-900) var(--s-300); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--line);
}
.cta-box > *:not(.ring) { position: relative; z-index: 1; }
.cta-box .muted { max-width: 520px; }
.ring { position: absolute; left: 50%; top: 50%; width: 360px; aspect-ratio: 1; border-radius: var(--r-full); border: 1px solid var(--brand); opacity: 0; transform: translate(-50%, -50%) scale(0.4); animation: ringPulse 6s var(--ease) infinite; }
.ring.r2 { animation-delay: 2s; } .ring.r3 { animation-delay: 4s; }
@keyframes ringPulse { 0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.4); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } }

/* Contact */
.contact-list a, .ci-static { display: flex; align-items: center; gap: var(--s-200); padding: var(--s-75) 0; }
.contact-list a > span:last-child, .ci-static > span:last-child { display: grid; }
.ci-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-xl); background: var(--brand-100); color: var(--brand); flex-shrink: 0; }
.ci-ic .ph { font-size: 1.25rem; color: inherit; }
:root[data-theme="dark"] .ci-ic { background: #272727; color: var(--brand-300); }
.field-2 { display: grid; gap: var(--s-200); }
@media (min-width: 640px) { .field-2 { grid-template-columns: 1fr 1fr; } }

/* Footer columns */
.foot-cols { display: grid; gap: var(--s-400); padding-bottom: var(--s-400); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .foot-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-about { max-width: 320px; }
.foot-tag { color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase; }
:root[data-theme="dark"] .foot-tag { color: var(--brand-300); }
.foot-ch { text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: var(--s-200); }
.foot-ul { display: grid; gap: var(--s-75); }
.foot-ul a, .foot-legal a { color: var(--text); opacity: 0.8; transition: opacity var(--d-color) var(--ease); }
.foot-ul a:hover, .foot-legal a:hover { opacity: 1; }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); padding-top: var(--s-300); }
.foot-legal { display: flex; gap: var(--s-300); }

/* Lightbox + sheets */
.lightbox, .sheet { border: 0; padding: 0; background: transparent; color: var(--text); max-width: none; max-height: none; }
.lightbox::backdrop, .sheet::backdrop { background: rgba(10, 8, 20, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { position: fixed; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox figure { display: grid; gap: var(--s-100); justify-items: center; padding: var(--s-200); }
.lightbox img { max-width: min(92vw, 720px); max-height: 80vh; width: auto; height: auto; border-radius: var(--r-2xl); box-shadow: var(--shadow); }
.lightbox figcaption { color: #FFFFFF; text-align: center; max-width: 560px; }
.lightbox .icon-btn { position: absolute; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close { top: var(--s-300); right: var(--s-300); }
.lb-prev { left: var(--s-300); top: 50%; }
.lb-next { right: var(--s-300); top: 50%; }
.lightbox[open] figure { animation: pop 500ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.sheet[open] { margin: auto; width: min(560px, calc(100% - var(--s-400))); }
.sheet article { padding: var(--s-400); border-radius: var(--r-3xl); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop 500ms var(--ease); }
.sheet .btn { justify-self: start; }

/* Water surface, droplets and click ripples */
.water { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.drops { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.drop {
  position: absolute; bottom: -40px; border-radius: var(--r-full);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(183, 155, 230, 0.35) 60%, rgba(107, 53, 184, 0.12));
  border: 1px solid rgba(107, 53, 184, 0.18);
  animation: rise linear forwards;
}
:root[data-theme="dark"] .drop { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(183, 155, 230, 0.2) 60%, rgba(107, 53, 184, 0.08)); border-color: rgba(183, 155, 230, 0.2); }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  50% { transform: translate3d(var(--sway, 20px), -55vh, 0); }
  100% { transform: translate3d(0, -115vh, 0); opacity: 0; }
}
.ripple {
  position: fixed; z-index: 60; pointer-events: none; border-radius: var(--r-full); border: 2px solid var(--brand);
  transform: translate(-50%, -50%) scale(0); animation: ripple 900ms var(--ease) forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* Custom cursor (fine pointers only, set by script) */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity var(--d-color) var(--ease); }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { opacity: 1; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor .blob, html.has-cursor summary, html.has-cursor label { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: var(--r-full); background: var(--brand); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-full); border: 1.5px solid var(--brand);
  transition: transform var(--d-layout) var(--ease), background-color var(--d-color) var(--ease);
}
:root[data-theme="dark"] .cursor-dot { background: var(--brand-300); }
:root[data-theme="dark"] .cursor-ring::before { border-color: var(--brand-300); }
.cursor-label { position: absolute; inset: 0; display: grid; place-items: center; color: #FFFFFF; opacity: 0; transform: scale(0.6); transition: opacity var(--d-color) var(--ease), transform var(--d-layout) var(--ease); white-space: nowrap; }
html.cursor-hover .cursor-ring::before { transform: scale(1.8); background: var(--brand); }
html.cursor-hover .cursor-label { opacity: 1; transform: scale(1); }
html.cursor-hover .cursor-dot { opacity: 0; }
html.cursor-text .cursor-ring, html.cursor-text .cursor-dot { opacity: 0; }

/* =========================================================
   Round 3: lighter images, Revival Lab, offer, claim, Tez 2.0
   ========================================================= */

/* Images: flat skeleton while loading, fade in, branded fallback on error */
.m-item, .shot-btn, .about-img { position: relative; background: var(--surface); }
.img-loading::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface-2);
  animation: skel 1.2s var(--ease) infinite alternate; pointer-events: none;
}
@keyframes skel { from { opacity: 0.35; } to { opacity: 0.9; } }
img.img-wait { opacity: 0; }
img { transition: opacity 500ms var(--ease); }
img.img-fallback { object-fit: contain; background: var(--brand-100); }

/* Revival Lab */
.studies { display: grid; gap: var(--s-300); }
@media (min-width: 1024px) { .studies { grid-template-columns: repeat(3, 1fr); } }
.study { display: grid; gap: var(--s-200); align-content: start; padding: var(--s-200); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.study-head { display: flex; justify-content: space-between; align-items: start; gap: var(--s-100); padding: var(--s-75) var(--s-75) 0; }
.concept { padding: var(--s-50) var(--s-75); border-radius: var(--r-full); background: var(--brand-100); color: var(--brand-600); white-space: nowrap; }
:root[data-theme="dark"] .concept { background: #272727; color: var(--brand-300); }
.ba { position: relative; aspect-ratio: 1 / 1.08; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); user-select: none; touch-action: pan-y; }
.ba-pane { position: absolute; inset: 0; padding: var(--s-100); display: grid; grid-template-rows: auto 1fr; gap: var(--s-100); }
.ba-before { background: #EDEAE4; color: #5F5A52; }
.ba-after { background: var(--c3); color: var(--ink); clip-path: inset(0 0 0 var(--pos)); }
.mock-top { display: flex; align-items: center; gap: var(--s-75); min-width: 0; }
.mock-meta { display: grid; min-width: 0; }
.mock-meta b, .mock-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { width: 32px; height: 32px; border-radius: var(--r-full); flex-shrink: 0; display: grid; place-items: center; font-weight: 600; font-size: 0.875rem; }
.av-dull { background: #C9C3B8; }
.av-brand { background: var(--c1); color: var(--c3); }
.grid9 { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; min-height: 0; }
.grid9 i {
  position: relative; display: grid; place-items: center; text-align: center; overflow: hidden;
  font-style: normal; font-size: 0.75rem; line-height: 1rem; font-weight: 600; border-radius: 2px;
}
.grid9.dull i:nth-child(4n+1) { background: #D8D3CA; } .grid9.dull i:nth-child(4n+2) { background: #C9C3B8; }
.grid9.dull i:nth-child(4n+3) { background: #E3DDD1; font-weight: 400; } .grid9.dull i:nth-child(4n) { background: #BDB6A9; text-transform: lowercase; }
.grid9.fresh .t1 { background: var(--c1); color: var(--c3); }
.grid9.fresh .t2 { background: var(--c2); color: var(--ink); }
.grid9.fresh .t3 { background: var(--c3); color: var(--c1); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1) 25%, transparent); }
.grid9 .dot::after { content: ""; width: 44%; aspect-ratio: 1; border-radius: var(--r-full); background: currentColor; opacity: 0.85; }
.grid9 .arch::after { content: ""; width: 50%; height: 60%; border-radius: 999px 999px 0 0; background: var(--c2); align-self: end; }
.grid9 .stripe { background-image: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, currentColor 35%, transparent) 8px 12px); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; -webkit-appearance: none; appearance: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #FFFFFF; z-index: 2; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); transform: translateX(-1px);
}
.ba-handle i {
  position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; display: grid; place-items: center;
  transform: translate(-50%, -50%); border-radius: var(--r-full); background: #FFFFFF; color: #1A1923; box-shadow: var(--shadow); font-size: 1rem;
}
.ba-range:focus-visible ~ .ba-handle i { outline: 2px solid var(--brand); outline-offset: 2px; }
.ba-lbl { position: absolute; bottom: var(--s-100); z-index: 2; padding: var(--s-50) var(--s-75); border-radius: var(--r-full); background: rgba(26, 25, 35, 0.72); color: #FFFFFF; pointer-events: none; }
.ba-l { left: var(--s-100); } .ba-r { right: var(--s-100); }
.study-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200); padding: 0 var(--s-75) var(--s-75); }
.study-cols ul { display: grid; gap: var(--s-75); padding-left: var(--s-200); margin-top: var(--s-75); list-style: disc; }
.study-k { text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
:root[data-theme="dark"] .study-k { color: var(--brand-300); }
.revival-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200); margin-top: var(--s-400); padding: var(--s-300); border-radius: var(--r-2xl); border: 1px dashed var(--line); }
.revival-cta p { max-width: 560px; }

/* Bottom left dock: saved offer + chat with Tez */
.dock-left {
  position: fixed; z-index: 39; left: calc(var(--s-200) + env(safe-area-inset-left, 0px)); bottom: calc(var(--s-200) + env(safe-area-inset-bottom, 0px));
  display: grid; justify-items: start; gap: var(--s-75);
}
.chat-btn, .offer-chip {
  display: inline-flex; align-items: center; gap: var(--s-75); min-height: 44px; padding: var(--s-50) var(--s-200) var(--s-50) var(--s-50);
  border-radius: var(--r-full); box-shadow: var(--shadow); border: 1px solid var(--line); cursor: pointer;
  transition: transform var(--d-color) var(--ease);
}
.chat-btn { background: var(--bg); color: var(--text); }
.chat-btn svg { width: 36px; height: 36px; }
.chat-btn:hover, .offer-chip:hover { transform: translateY(-2px); }
.chat-btn:active, .offer-chip:active { transform: scale(0.98); }
.offer-chip { background: var(--brand); color: #FFFFFF; border-color: var(--brand); padding-left: var(--s-200); }
.offer-chip .ph-fill { font-size: 1.125rem; }
.offer-time { font-variant-numeric: tabular-nums; padding: var(--s-25) var(--s-75); border-radius: var(--r-full); background: rgba(255, 255, 255, 0.18); }
@media (max-width: 767px) { .chat-btn span { display: none; } .chat-btn { padding: var(--s-50); } }

/* Offer dialog */
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-100); }
.countdown div { display: grid; justify-items: center; gap: var(--s-25); padding: var(--s-200) var(--s-100); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.countdown .heading-5 { font-variant-numeric: tabular-nums; color: var(--brand); }
:root[data-theme="dark"] .countdown .heading-5 { color: var(--brand-300); }
.offer-code { font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: 0.04em; }
.offer-actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.link-btn { justify-self: start; border: 0; background: none; padding: var(--s-75) 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Claim landing (full screen) */
.claim { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; color: var(--text); background: var(--bg); }
.claim[open] { position: fixed; inset: 0; width: 100%; height: 100%; overflow-y: auto; display: block; }
.claim::backdrop { background: rgba(10, 8, 20, 0.6); }
.claim-wrap {
  position: relative; max-width: 1100px; min-height: 100%; margin: 0 auto; display: grid; gap: var(--s-600); align-content: center;
  padding: var(--s-900) max(var(--s-200), env(safe-area-inset-right, 0px)) var(--s-700) max(var(--s-200), env(safe-area-inset-left, 0px));
}
@media (min-width: 900px) { .claim-wrap { grid-template-columns: 1fr 1fr; align-items: center; padding-inline: var(--s-400); } }
.claim-side { display: grid; gap: var(--s-300); align-content: start; }
.claim-points { display: grid; gap: var(--s-100); }
.claim-points li { display: flex; gap: var(--s-100); align-items: start; }
.claim-points .ph-bold { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--r-full); background: var(--mint); color: var(--navy); font-size: 0.75rem; }
.claim-close { position: absolute; top: var(--s-300); right: var(--s-300); background: var(--surface-2); }
.claim[open] .claim-wrap { animation: pop 500ms var(--ease); }
.consent { display: flex; gap: var(--s-100); align-items: start; }
.consent input { width: 20px; height: 20px; margin-top: var(--s-25); accent-color: var(--brand); flex-shrink: 0; }
.consent a { color: var(--brand); }
:root[data-theme="dark"] .consent a { color: var(--brand-300); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer social + touch friendly links */
.foot-social { display: flex; gap: var(--s-75); margin-top: var(--s-200); }
.foot-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--surface-2); color: var(--text); transition: transform var(--d-color) var(--ease); }
.foot-social a:hover { transform: translateY(-2px); }
.foot-social .ph { font-size: 1.25rem; }
@media (hover: none) { .foot-ul a, .foot-legal a { display: inline-block; padding-block: var(--s-100); } .foot-ul { gap: 0; } }

/* Tez 2.0 poses: morph into the logo, sad, sleepy */
.tez-mono path { fill: var(--brand); }
:root[data-theme="dark"] .tez-mono path { fill: var(--brand-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tez-mono path { fill: var(--brand-300); } }
.tez-mono { opacity: 0; transition: opacity var(--d-layout) var(--ease); }
.tez-body { transition: opacity var(--d-layout) var(--ease); }
.pose-morph .tez-body { opacity: 0; }
.pose-morph .tez-mono { opacity: 1; }
.pose-morph .tez-shadow { opacity: 0.05; }
.tear, .zz { opacity: 0; transition: opacity var(--d-layout) var(--ease); }
.zz text { fill: var(--brand-300); font: 600 30px "Manrope", sans-serif; }
.pose-sad .tear { opacity: 0.9; }
.tear { fill: #8FD3F4; }
.pose-sad .mouth { transform: translateY(10px) scaleY(-1); transform-origin: 200px 262px; }
.pose-sad .arm-l { transform: rotate(-12deg); } .pose-sad .arm-r { transform: rotate(12deg); }
.pose-sleep .eyes { opacity: 0; }
.pose-sleep .eyes-happy { opacity: 1; transform: translateY(12px) scaleY(-0.6); transform-origin: 200px 214px; }
.pose-sleep .zz { opacity: 1; }
.pose-sleep .zz text { animation: zz 2.4s var(--ease) infinite; }
.pose-sleep .zz text:last-child { animation-delay: 1.2s; }
@keyframes zz { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.pose-sleep .tez-body { animation-duration: 4s; }
.eyes-happy { transition: opacity var(--d-color) var(--ease); }

.proof-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); transition: text-decoration-color var(--d-color) var(--ease); }
.proof-link:hover { text-decoration-color: currentColor; }

/* Lite mode (phones, Save Data, low power): no droplets */
html.lite .drops { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal { transform: none; transition: opacity 300ms var(--ease); }
  .step { transform: none; }
  .tagline .w { opacity: 1; }
  .gallery { overflow-x: auto; }
  .hero-title .row > span { transform: none; }
  .drops, .water { display: none; }
}

/* ---------- Simple pages (404, legal) ---------- */
.page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: var(--s-900) var(--s-200); }
.page-inner { max-width: 680px; display: grid; gap: var(--s-300); }
.legal h2 { margin-top: var(--s-300); }
