/* =======================================================
   Crafty Automation — Shared Styles
   Palette: Paper & Signal
   Fonts: Instrument Sans + Instrument Serif Italic
   ======================================================= */

:root {
  --paper: #F2EDF6;
  --white: #FFFFFF;
  --lilac: #DCCBF2;
  --ink: #16142A;
  --slate: #5E5670;
  --night: #0E1424;
  --night-raised: #161D33;
  --crafty-purple: #6B35D6;
  --vivid-purple: #A24FFF;
  --signal-pink: #F45EE5;
  --teal: #27D3DF;
  --line: #C9BED6;
  --line-dark: #2A3150;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ribbon: linear-gradient(90deg, var(--vivid-purple) 0%, var(--signal-pink) 50%, var(--teal) 100%);
  --ribbon-diag: linear-gradient(135deg, var(--vivid-purple) 0%, var(--signal-pink) 50%, var(--teal) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.serif-italic { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
h1 { font-size: clamp(44px, 6.5vw, 104px); letter-spacing: -0.05em; line-height: 1.02; }
h2 { font-size: clamp(36px, 5vw, 80px); letter-spacing: -0.055em; }
h3 { font-size: clamp(24px, 2.4vw, 40px); font-weight: 500; }
h4 { font-size: clamp(18px, 1.4vw, 22px); font-weight: 500; }

.eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.045em;
  color: var(--slate); font-weight: 500;
}
.eyebrow.on-dark { color: #9AA3B8; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

section { padding: 120px 0; position: relative; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.pink-dot {
  display: inline-block; width: 0.4em; height: 0.4em;
  border-radius: 999px; background: var(--signal-pink);
  vertical-align: middle; margin-left: 0.1em;
}

/* Reading progress bar */
.reading-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--signal-pink);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ============ NAV ============ */
nav.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(242, 237, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
nav.topnav.scrolled { border-bottom-color: var(--line); }
nav.topnav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1440px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.logo-img { height: 40px; width: auto; display: block; }
footer .logo-img { height: 44px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 15px;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--ribbon);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--crafty-purple); }
.nav-right { display: flex; gap: 16px; align-items: center; }
.nav-phone {
  color: var(--slate); font-size: 14px; text-decoration: none;
  display: none;
}
@media (min-width: 1024px) { .nav-phone { display: inline; } }
@media (max-width: 900px) { .nav-links { display: none; } }

.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { width: 22px; height: 2px; background: var(--ink); transition: all 0.3s; }
@media (max-width: 900px) { .menu-btn { display: flex; } }

.mobile-nav {
  position: fixed; top: 0; right: -100%;
  width: 100%; max-width: 360px; height: 100vh;
  background: var(--night); color: white; padding: 80px 32px 32px;
  transition: right 0.35s var(--ease);
  z-index: 999;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  display: block; color: white; text-decoration: none;
  font-size: 24px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transition: all 0.3s;
  z-index: 998;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-size: 15px;
  font-weight: 500; text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  font-family: inherit; letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--crafty-purple); color: white;
  box-shadow: 0 10px 30px -10px rgba(107,53,214,0.5);
  position: relative; overflow: hidden; z-index: 0;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--ribbon-diag);
  opacity: 0; transition: opacity 0.35s var(--ease);
  z-index: -1;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { background: var(--crafty-purple); transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(244,94,229,0.55); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-pink { background: var(--signal-pink); color: var(--ink); }
.btn-pink:hover { background: var(--ink); color: white; transform: translateY(-2px); }
.btn-white { background: white; color: var(--ink); }
.btn-white:hover { background: var(--signal-pink); color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost-light:hover { background: white; color: var(--ink); transform: translateY(-2px); }
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(255,255,255,0.15); font-size: 12px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-secondary .arrow, .btn-ghost-light .arrow { background: rgba(22,20,42,0.08); }
.btn-ghost-light .arrow { background: rgba(255,255,255,0.1); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn-pink .arrow { background: rgba(22,20,42,0.1); }
.nav-cta { padding: 10px 22px; font-size: 14px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--crafty-purple);
  text-decoration: none;
}
.text-link .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--crafty-purple); color: var(--crafty-purple);
  transition: all 0.25s var(--ease);
}
.text-link:hover .arrow { background: var(--crafty-purple); color: white; transform: rotate(-45deg); }

/* ============ HERO (home) ============ */
.hero { padding: 160px 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: start; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lilac); color: var(--ink);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--signal-pink); border-radius: 999px; }
.hero-eyebrow {
  display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.045em;
  color: var(--slate); margin-bottom: 24px; font-weight: 500;
}
.hero h1 { max-width: 15ch; margin-bottom: 32px; }
.hero h1 .emph { position: relative; display: inline-block; }
.hero h1 .emph::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: 4px;
  height: 10px; background: var(--ribbon); opacity: 0.22; z-index: -1;
  border-radius: 2px;
}
.hero h1 .emph.with-svg-underline::after { opacity: 0; }
/* SVG underline injected by motion.js */
.emph-underline {
  position: absolute; left: -4%; right: -4%; bottom: -0.15em;
  height: 0.28em; width: 108%; pointer-events: none; overflow: visible;
}
.emph-underline path {
  fill: none; stroke: url(#ribbon-grad); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.hero-sub { max-width: 58ch; font-size: 19px; color: var(--slate); margin-bottom: 36px; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-microcopy { font-size: 13px; color: var(--slate); margin-bottom: 40px; }
.hero-proof { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--slate); }
.hero-proof .avatars { display: flex; }
.hero-proof .avatar {
  width: 28px; height: 28px; border-radius: 999px;
  border: 2px solid var(--paper); margin-left: -10px;
  background: linear-gradient(135deg, var(--vivid-purple), var(--signal-pink));
}
.hero-proof .avatar:nth-child(2) { background: linear-gradient(135deg, var(--teal), var(--vivid-purple)); }
.hero-proof .avatar:nth-child(3) { background: linear-gradient(135deg, var(--signal-pink), var(--teal)); }
.hero-proof .avatar:nth-child(4) { background: linear-gradient(135deg, var(--ink), var(--vivid-purple)); }
.hero-proof .avatar:first-child { margin-left: 0; }

.hero-orb {
  position: absolute; top: 18%; right: -8%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--vivid-purple), var(--signal-pink) 45%, var(--teal) 85%);
  filter: blur(70px); opacity: 0.32;
  z-index: -1;
  animation: orb-float 14s ease-in-out infinite;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}

/* Hero: pure-CSS staggered fade so it never gets stuck */
.hero .reveal { opacity: 1 !important; transform: none !important; animation: heroFadeIn 0.9s var(--ease) both; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge.reveal { animation-delay: 0.05s; }
.hero-eyebrow.reveal { animation-delay: 0.15s; }
.hero h1.reveal { animation-delay: 0.25s; }
.hero-sub.reveal { animation-delay: 0.45s; }
.hero-ctas.reveal { animation-delay: 0.55s; }
.hero-microcopy.reveal { animation-delay: 0.65s; }
.hero-proof.reveal { animation-delay: 0.75s; }

/* ============ STATS BAR ============ */
.stats-section {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative;
}
.stats-section::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0;
  height: 2px; background: var(--ribbon);
  opacity: 0; transform: scaleX(0); transform-origin: left;
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.stats-section.in-view::before { opacity: 1; transform: scaleX(1); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num {
  font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -0.04em;
  line-height: 1; color: var(--ink); margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 4px;
}
.stat .num .plus { color: var(--signal-pink); }
.stat .label { font-size: 14px; color: var(--slate); line-height: 1.4; }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============ MARQUEE ============ */
.marquee { padding: 40px 0; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-size: 20px; color: var(--slate); font-weight: 500;
  display: flex; align-items: center; gap: 60px; letter-spacing: -0.02em;
}
.marquee-item::after { content: '•'; color: var(--signal-pink); margin-left: -30px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ DARK NIGHT SECTIONS ============ */
.night-section { background: var(--night); color: var(--paper); position: relative; overflow: hidden; }
.night-section .eyebrow { color: #9AA3B8; }
.night-section h2 { color: white; }
.night-section h2 .emph {
  font-family: 'Instrument Serif', serif; font-style: italic;
  color: var(--signal-pink); font-weight: 400;
}

/* ============ LEAKY BUCKET ============ */
.leaky-intro { max-width: 65ch; color: #C7CDE2; font-size: 18px; margin-top: 24px; margin-bottom: 72px; }
.leaky-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 80px; align-items: start; }
@media (max-width: 900px) { .leaky-grid { grid-template-columns: 1fr; gap: 40px; } }
.leaky-story h3 { color: white; margin-bottom: 32px; font-size: 24px; letter-spacing: -0.03em; }
.leaky-steps { list-style: none; counter-reset: step; }
.leaky-steps li {
  counter-increment: step;
  padding: 20px 0 20px 56px;
  border-top: 1px solid var(--line-dark);
  position: relative; color: #C7CDE2; font-size: 16px; line-height: 1.5;
}
.leaky-steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.leaky-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 24px;
  font-size: 13px; color: var(--signal-pink); font-weight: 600; letter-spacing: 0.05em;
}
.bucket-illustration {
  position: sticky; top: 100px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark);
  border-radius: 24px; padding: 40px;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.bucket-illustration svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .bucket-illustration { position: static; aspect-ratio: 4/3; } }
.consequences { display: flex; flex-wrap: wrap; gap: 12px; margin: 48px 0 72px; }
.consequence-chip {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--signal-pink); color: var(--signal-pink);
  font-size: 14px; font-weight: 500;
}
.leak-table {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark);
  border-radius: 24px; overflow: hidden;
}
.leak-head {
  display: grid; grid-template-columns: 1.1fr 1.1fr 1.3fr;
  padding: 20px 28px; background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line-dark);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #9AA3B8; font-weight: 500;
}
.leak-row {
  display: grid; grid-template-columns: 1.1fr 1.1fr 1.3fr;
  padding: 22px 28px; border-bottom: 1px solid var(--line-dark);
  font-size: 15px; color: #E4E8F2; align-items: center;
}
.leak-row:last-child { border-bottom: none; }
.leak-row .fix { color: var(--teal); font-weight: 500; }
.leak-row .fix::before { content: '✓  '; color: var(--teal); }
@media (max-width: 760px) {
  .leak-head { display: none; }
  .leak-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 20px; }
  .leak-row > div:nth-child(1) { font-weight: 600; color: white; font-size: 16px; }
  .leak-row > div:nth-child(2) { color: #9AA3B8; font-size: 14px; }
}
.leaky-close { margin-top: 48px; text-align: center; }
.leaky-close p {
  font-size: 24px; color: white; letter-spacing: -0.02em; margin-bottom: 28px;
  max-width: 44ch; margin-left: auto; margin-right: auto;
}

/* ============ FEATURED CASE STUDIES (home) + CASE INDEX CARDS ============ */
.section-head { margin-bottom: 64px; }
.section-head h2 { max-width: 20ch; margin-top: 20px; }
.section-head .intro { max-width: 58ch; color: var(--slate); font-size: 18px; margin-top: 16px; }

.featured-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .featured-cards { grid-template-columns: 1fr; gap: 20px; } }

.feat-card {
  background: white; border-radius: 24px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative; isolation: isolate;
}
.feat-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 24px;
  padding: 1px; background: var(--line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 1;
  transition: background 0.4s var(--ease);
}
.feat-card:hover::before { background: var(--ribbon-diag); }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(244,94,229,0.3); }
.feat-card .photo {
  aspect-ratio: 4/3; overflow: hidden; background: var(--lilac); position: relative;
}
.feat-card .photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.feat-card:hover .photo img { transform: scale(1.05); }
.feat-card .photo .tag {
  position: absolute; top: 16px; left: 16px;
  background: white; padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--crafty-purple);
}
.feat-card .inner { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.feat-card h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.feat-card .trade { font-size: 13px; color: var(--slate); margin-bottom: 20px; }
.feat-card .big-metric { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.feat-card .big-metric .num {
  font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.04em;
  color: var(--ink); line-height: 1; margin-bottom: 6px;
}
.feat-card .big-metric .label { font-size: 13px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }
.feat-card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.feat-card .chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); padding: 8px 12px; border-radius: 10px;
  font-size: 12px; color: var(--ink); font-weight: 500;
}
.feat-card .chip strong { color: var(--crafty-purple); font-weight: 600; }
.feat-card .read-link { margin-top: auto; align-self: flex-start; }

/* ============ OFFERS ============ */
.offers-intro { max-width: 60ch; color: var(--slate); font-size: 18px; margin-top: 24px; margin-bottom: 72px; }

/* Full-width dark backdrop wrapper */
.offer-main-section {
  background: var(--night);
  color: white;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}
.offer-main-section::before {
  content: ''; position: absolute; top: -200px; right: -8%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--vivid-purple), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.offer-main-section::after {
  content: ''; position: absolute; bottom: -250px; left: -10%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--signal-pink), transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}
@media (max-width: 760px) { .offer-main-section { padding: 64px 0; } }

/* Content card inside, now transparent */
.offer-main {
  background: transparent;
  color: white;
  padding: 0;
  position: relative;
  overflow: visible;
  margin-bottom: 0;
}
.offer-popular-pill {
  display: inline-block; background: var(--signal-pink); color: var(--ink);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 20px;
}
.offer-main h3 {
  font-size: clamp(32px, 4vw, 56px); font-weight: 600;
  letter-spacing: -0.045em; margin-bottom: 20px; position: relative;
}
.offer-main .oneliner {
  font-size: 20px; color: #C7CDE2; max-width: 58ch;
  margin-bottom: 20px; position: relative;
}
.offer-main .pricing-line {
  font-size: 15px; color: var(--signal-pink);
  padding: 16px 20px; background: rgba(244,94,229,0.08);
  border: 1px solid rgba(244,94,229,0.3); border-radius: 12px;
  display: inline-block; margin-bottom: 48px; position: relative; max-width: 100%;
}
.ps-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 48px 0; position: relative;
}
@media (max-width: 760px) { .ps-grid { grid-template-columns: 1fr; } }
.ps-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark);
  border-radius: 16px; padding: 24px;
}
.ps-card .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; margin-bottom: 8px;
}
.ps-card .label.problem { color: var(--signal-pink); }
.ps-card .label.fix { color: var(--teal); }
.ps-card .headline { font-size: 18px; font-weight: 500; color: white; margin-bottom: 10px; letter-spacing: -0.02em; }
.ps-card .body { font-size: 14px; color: #C7CDE2; line-height: 1.55; }
.included { margin: 64px 0 48px; position: relative; }
.included h4 { font-size: 24px; font-weight: 500; color: white; margin-bottom: 32px; letter-spacing: -0.02em; }
.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .included-grid { grid-template-columns: 1fr; } }
.included-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark);
  border-radius: 16px; padding: 28px;
}
.included-card .num { font-size: 13px; color: var(--signal-pink); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 12px; }
.included-card h5 { font-size: 18px; font-weight: 500; color: white; margin-bottom: 12px; letter-spacing: -0.02em; }
.included-card p { font-size: 14px; color: #C7CDE2; line-height: 1.55; }

.comparison {
  margin: 48px 0;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark);
  border-radius: 20px; overflow: hidden; position: relative;
}
.comparison h4 { padding: 24px 28px 0; color: white; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 20px; }
.comp-row {
  display: grid; grid-template-columns: 1fr 1.3fr 1.3fr;
  padding: 18px 28px; border-top: 1px solid var(--line-dark);
  align-items: center; gap: 20px;
}
.comp-row.header {
  background: rgba(255,255,255,0.03);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  color: #9AA3B8; font-weight: 600;
}
.comp-row.header .crafty-col { color: var(--signal-pink); }
.comp-row .label { font-size: 14px; color: #9AA3B8; font-weight: 500; }
.comp-row .typical { font-size: 14px; color: #C7CDE2; }
.comp-row .typical::before { content: '✕  '; color: #C7CDE2; opacity: 0.5; }
.comp-row .crafty { font-size: 14px; color: white; font-weight: 500; }
.comp-row .crafty::before { content: '✓  '; color: var(--teal); }
@media (max-width: 760px) {
  .comp-row { grid-template-columns: 1fr; gap: 8px; }
  .comp-row .label { font-weight: 600; color: white; text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; }
}

.guarantee-box {
  background: var(--lilac); color: var(--ink);
  border-radius: 20px; padding: 32px 40px;
  display: flex; align-items: center; gap: 24px;
  position: relative; margin: 48px 0 40px;
}
@media (max-width: 760px) { .guarantee-box { flex-direction: column; align-items: start; padding: 28px; } }
.guarantee-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--signal-pink); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.guarantee-box p { font-size: 17px; line-height: 1.5; font-weight: 500; }

/* ============ STANDALONE SERVICES ============ */
.offer-standalone h3 { color: var(--ink); font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 12px; }
.offer-standalone .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal-pink); font-weight: 600; margin-bottom: 12px; }
.offer-standalone .oneliner { color: var(--slate); font-size: 18px; margin-bottom: 40px; max-width: 60ch; }

/* Grid: Database Reactivation spans full width (showcase), other 6 in 2 cols × 3 rows */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; gap: 16px; } }

.service-card {
  background: white; border: 1px solid var(--line); border-radius: 24px;
  padding: 44px; display: flex; flex-direction: column;
  position: relative; overflow: hidden; min-height: 360px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
@media (max-width: 760px) { .service-card { padding: 28px; min-height: 280px; } }
.service-card.featured {
  grid-column: 1 / -1;
  background: var(--ink); color: white;
  padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
  min-height: 0;
}
@media (max-width: 900px) {
  .service-card.featured { grid-template-columns: 1fr; gap: 24px; padding: 40px; }
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(107,53,214,0.2); border-color: var(--signal-pink); }
.service-card.featured:hover { box-shadow: 0 30px 70px -30px rgba(244,94,229,0.35); }
.service-card .leak-num {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--signal-pink); font-weight: 600; margin-bottom: 16px;
}
.service-card h4 {
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 600;
  letter-spacing: -0.025em; margin-bottom: 20px; line-height: 1.15;
}
.service-card.featured h4 {
  color: white;
  font-size: clamp(28px, 3vw, 44px);
}
.service-card .problem {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 20px; color: var(--signal-pink);
  margin-bottom: 20px; line-height: 1.4;
}
.service-card.featured .problem { font-size: 24px; }
.service-card .one-line { font-size: 15px; color: var(--slate); line-height: 1.6; margin-bottom: 28px; }
.service-card.featured .one-line { color: #C7CDE2; font-size: 16px; }
.service-card .card-actions {
  margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.service-card .see-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--crafty-purple);
  text-decoration: none; background: none; border: none;
  cursor: pointer; font-family: inherit; padding: 0;
}
.service-card.featured .see-link { color: var(--signal-pink); }
.service-card .see-link .arr { transition: transform 0.25s var(--ease); }
.service-card:hover .see-link .arr { transform: translateX(4px); }
.service-card .book-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--crafty-purple); color: white;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.service-card .book-btn:hover { background: var(--ink); transform: translateY(-2px); }
.service-card.featured .book-btn { background: var(--signal-pink); color: var(--ink); }
.service-card.featured .book-btn:hover { background: white; color: var(--ink); }
.service-card.featured .featured-left { display: flex; flex-direction: column; }
.service-card.featured .featured-right { display: flex; flex-direction: column; }

.offer-footer-line { text-align: center; margin-top: 32px; color: var(--slate); font-size: 16px; }

.comp-strip {
  margin-top: 64px;
  background: white; border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden;
}
.comp-strip .row {
  display: grid; grid-template-columns: 1fr 1.3fr 1.3fr;
  padding: 18px 28px; border-top: 1px solid var(--line);
  gap: 20px; align-items: center;
}
.comp-strip .row:first-child { border-top: none; background: var(--paper); }
.comp-strip .row .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); font-weight: 500; }
.comp-strip .row .val { font-size: 15px; color: var(--ink); }
.comp-strip .row.header .label { color: var(--ink); font-weight: 600; }
.comp-strip .row.header .pay-col { color: var(--signal-pink); font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.comp-strip .row.header .standalone-col { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
@media (max-width: 760px) { .comp-strip .row { grid-template-columns: 1fr; gap: 8px; } }

/* ============ MODAL (for service detail) ============ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(14,20,36,0.6);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  z-index: 1500;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%);
  width: calc(100% - 32px); max-width: 720px; max-height: 85vh;
  background: white; border-radius: 24px; padding: 48px;
  z-index: 1501;
  overflow-y: auto; opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--paper); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--ink);
}
.modal-close:hover { background: var(--ink); color: white; }
.modal .leak-num { font-size: 12px; color: var(--signal-pink); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.modal h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 8px; }
.modal .problem-q { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--signal-pink); font-size: 20px; margin-bottom: 24px; }
.modal h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); font-weight: 600; margin: 24px 0 12px; }
.modal .labeled-points { list-style: none; }
.modal .labeled-points li { padding: 10px 0; font-size: 15px; line-height: 1.55; border-bottom: 1px solid var(--line); }
.modal .labeled-points li:last-child { border-bottom: none; }
.modal .labeled-points strong { color: var(--crafty-purple); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; display: block; margin-bottom: 4px; }
.modal .what-we-do { font-size: 15px; line-height: 1.6; color: var(--ink); }
.modal .included-list { list-style: none; margin-top: 12px; }
.modal .included-list li { padding: 8px 0 8px 28px; font-size: 14px; position: relative; color: var(--ink); }
.modal .included-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.modal .outcome {
  margin-top: 24px; padding: 20px; border-radius: 12px;
  background: var(--paper); border-left: 3px solid var(--signal-pink);
  font-size: 15px; line-height: 1.55;
}
.modal .outcome strong { color: var(--signal-pink); }
.modal .modal-cta { margin-top: 24px; }

@media (max-width: 600px) { .modal { padding: 32px 24px; max-height: 90vh; } }

/* ============ HOW IT WORKS ============ */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 72px; position: relative; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; gap: 20px; } }
.how-step { position: relative; padding: 32px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); }
.how-step .num { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; color: var(--signal-pink); margin-bottom: 20px; line-height: 1; }
.how-step h4 { color: white; font-size: 20px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; }
.how-step p { font-size: 15px; color: #C7CDE2; line-height: 1.55; }
.how-bottom-line { margin-top: 56px; text-align: center; }
.how-bottom-line p { font-size: 24px; letter-spacing: -0.02em; color: white; margin-bottom: 28px; }

/* ============ RESULTS (home testimonials) ============ */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 72px; }
@media (max-width: 900px) { .results-grid { grid-template-columns: 1fr; } }
.result-card {
  background: white; border: 1px solid var(--line);
  border-radius: 24px; padding: 40px;
  display: flex; flex-direction: column;
}
.result-card .result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--signal-pink); color: var(--ink);
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  align-self: flex-start; margin-bottom: 24px;
}
.result-card h4 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.result-card .meta { font-size: 13px; color: var(--slate); margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.06em; }
.result-card .what h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); font-weight: 600; margin-bottom: 10px; }
.result-card .what p { font-size: 15px; line-height: 1.55; color: var(--ink); margin-bottom: 24px; }
.result-card .result-line {
  padding: 20px; border-left: 3px solid var(--signal-pink);
  background: var(--paper); border-radius: 0 12px 12px 0;
  margin-bottom: 24px; font-size: 15px; line-height: 1.55;
}
.result-card .read-more-link { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }

/* ============ WHY CRAFTY ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; margin-bottom: 72px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-point .num { font-size: 13px; color: var(--signal-pink); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 16px; }
.why-point h4 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 12px; line-height: 1.2; }
.why-point p { font-size: 15px; color: var(--slate); line-height: 1.55; }

.checklist { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.checklist h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); font-weight: 600; margin-bottom: 24px; }
.checklist-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; list-style: none; }
@media (max-width: 760px) { .checklist-items { grid-template-columns: 1fr; } }
.checklist-items li { display: flex; align-items: start; gap: 12px; font-size: 15px; line-height: 1.5; }
.checklist-items li::before {
  content: ''; width: 20px; height: 20px; flex-shrink: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/70% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/70% no-repeat;
  background: var(--teal); margin-top: 2px;
}

/* ============ FAQ ============ */
.faq-head { max-width: 700px; margin-bottom: 56px; }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); overflow: hidden; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit; transition: color 0.2s;
}
.faq-q:hover { color: var(--crafty-purple); }
.faq-q .q-num { font-size: 13px; color: var(--signal-pink); font-weight: 600; letter-spacing: 0.04em; flex-shrink: 0; width: 32px; }
.faq-q .q-text { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; flex: 1; line-height: 1.3; }
.faq-q .q-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, border-color 0.3s, background 0.3s, color 0.3s;
}
.faq-item.open .q-icon { transform: rotate(45deg); background: var(--ink); color: white; border-color: var(--ink); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 0 28px 56px; font-size: 16px; line-height: 1.6; color: var(--slate); max-width: 75ch; }
@media (max-width: 600px) { .faq-q .q-text { font-size: 17px; } .faq-a-inner { padding-left: 40px; } }

/* ============ FINAL CTA (home) ============ */
.cta-section { background: var(--lilac); position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--vivid-purple), transparent 70%);
  opacity: 0.2;
}
.cta-section::after {
  content: ''; position: absolute; bottom: -200px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--signal-pink), transparent 70%);
  opacity: 0.15;
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; position: relative; z-index: 1; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 48px; } }
.cta-head h2 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.055em; margin-bottom: 24px; }
.cta-head h2 .emph { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.cta-sub { font-size: 18px; color: var(--ink); margin-bottom: 32px; max-width: 48ch; line-height: 1.55; }
.cta-checklist { list-style: none; margin-bottom: 32px; }
.cta-checklist li { display: flex; align-items: start; gap: 12px; padding: 10px 0; font-size: 15px; }
.cta-checklist li::before { content: '✓'; color: var(--signal-pink); font-weight: 700; flex-shrink: 0; width: 20px; }
.cta-reassure { font-size: 13px; color: var(--slate); font-weight: 500; }

.cta-form { background: white; border-radius: 24px; padding: 40px; box-shadow: 0 30px 70px -30px rgba(22,20,42,0.2); }
@media (max-width: 600px) { .cta-form { padding: 28px; } }

/* Calendly booking panel (replaces .cta-form) */
.cta-booking {
  background: white; border-radius: 24px; padding: 48px;
  box-shadow: 0 30px 70px -30px rgba(22,20,42,0.25);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
@media (max-width: 600px) { .cta-booking { padding: 32px 24px; } }
.cta-booking .booking-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, var(--vivid-purple), var(--signal-pink));
  color: white; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 16px 34px -14px rgba(162,79,255,0.55);
}
.cta-booking .booking-heading {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 10px; color: var(--ink);
}
.cta-booking .booking-sub {
  font-size: 15px; color: var(--slate); max-width: 40ch;
  margin: 0 auto 28px; line-height: 1.55;
}
.cta-booking .booking-cta {
  width: 100%; max-width: 420px; justify-content: center;
  padding: 18px 28px; font-size: 16px;
}
.cta-booking .booking-note { font-size: 12px; color: var(--slate); margin-top: 14px; }

.cta-booking .booking-divider {
  display: flex; align-items: center; gap: 16px;
  width: 100%; margin: 32px 0 20px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate); font-weight: 500;
}
.cta-booking .booking-divider::before,
.cta-booking .booking-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.cta-booking .booking-contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px;
  width: 100%;
}
.cta-booking .booking-contact-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px;
  color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 500;
  background: var(--paper); transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.cta-booking .booking-contact-item:hover {
  background: var(--ink); color: white;
}
.cta-booking .booking-contact-item svg { color: var(--crafty-purple); }
.cta-booking .booking-contact-item:hover svg { color: var(--signal-pink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }
.form-group label {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--slate); font-weight: 600; margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; font-size: 15px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--crafty-purple);
  box-shadow: 0 0 0 4px rgba(107,53,214,0.1);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-consent { font-size: 12px; color: var(--slate); line-height: 1.5; display: flex; gap: 10px; align-items: start; }
.form-consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--crafty-purple); }
.form-submit-note { font-size: 12px; text-align: center; color: var(--slate); margin-top: 12px; }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: #C7CDE2; padding: 80px 0 32px; }
footer .logo { color: white; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo { font-size: 20px; margin-bottom: 20px; }
.footer-brand p { font-size: 15px; line-height: 1.55; max-width: 36ch; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: white; font-weight: 600; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #9AA3B8; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--signal-pink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); gap: 24px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 24px; font-size: 13px; }
.footer-legal a { color: #9AA3B8; text-decoration: none; }
.footer-legal a:hover { color: var(--signal-pink); }
.footer-copy { font-size: 13px; color: #9AA3B8; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #9AA3B8; background: none; border: 1px solid rgba(255,255,255,0.15); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.motion-toggle:hover { border-color: var(--signal-pink); color: var(--signal-pink); }

/* ============ REVEAL BASE ============ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hero H1 is handled by its own heroFadeIn keyframes */

/* ============ GSAP-DRIVEN SCENES (desktop only) ============ */
.hero-scene { display: none; }

@media (min-width: 901px) and (min-height: 680px) {
  /* Hero dot-to-circle overlay */
  .scenes-on .hero { position: relative; }
  .scenes-on .hero-scene {
    display: flex;
    position: absolute; inset: 0;
    background: var(--night); color: white;
    align-items: center; justify-content: center;
    z-index: 20;
    pointer-events: none;
    clip-path: circle(0px at 50% 50%);
    will-change: clip-path;
  }
  .scenes-on .hero-scene-inner {
    text-align: center; max-width: 1300px; padding: 0 48px; width: 100%;
    opacity: 0; transform: translateY(20px);
  }
  .scenes-on .hero-scene .scene-title {
    font-size: clamp(36px, 5vw, 76px); font-weight: 600; letter-spacing: -0.045em;
    line-height: 1.08; color: white; margin: 24px 0 36px;
    max-width: none; white-space: normal;
  }
  .scenes-on .hero-scene .scene-scroll-hint {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em;
    color: #9AA3B8; font-weight: 500;
  }
  .scenes-on .hero-scene .scene-scroll-hint::after {
    content: ''; width: 24px; height: 1px; background: var(--signal-pink);
    display: inline-block;
  }

  /* Pinned Leaky Bucket steps */
  .scenes-on .leaky-steps li {
    opacity: 0.25;
    transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
  }
  .scenes-on .leaky-steps li.step-active { opacity: 1; color: white; }
  .scenes-on .leaky-steps li.step-past { opacity: 0.45; }
}

/* Image parallax — applied by motion.js on scroll */
.parallax-img { will-change: transform; }

/* Magnetic CTA */
.btn.magnetic { will-change: transform; }

/* SVG ribbon gradient defined once per page */
.ribbon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ CASE STUDY INDEX PAGE ============ */
.subhero {
  padding: 140px 0 80px;
  background: var(--paper);
  position: relative; overflow: hidden;
}
.subhero .breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--slate); margin-bottom: 32px;
}
.subhero .breadcrumb a { color: var(--slate); text-decoration: none; }
.subhero .breadcrumb a:hover { color: var(--crafty-purple); }
.subhero .breadcrumb .sep { opacity: 0.4; }
.subhero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lilac); color: var(--ink);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.subhero .badge .star { color: var(--signal-pink); }
.subhero h1 { max-width: 16ch; margin-bottom: 24px; font-size: clamp(44px, 6.5vw, 96px); }
.subhero .subtitle { max-width: 60ch; font-size: 19px; color: var(--slate); margin-bottom: 36px; line-height: 1.55; }
.subhero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.cs-index-list { display: flex; flex-direction: column; gap: 48px; margin-top: 72px; }
.cs-index-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  background: white; border: 1px solid var(--line); border-radius: 24px;
  padding: 32px; position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cs-index-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(107,53,214,0.2); }
.cs-index-card:nth-child(even) { direction: rtl; }
.cs-index-card:nth-child(even) > * { direction: ltr; }
@media (max-width: 900px) {
  .cs-index-card, .cs-index-card:nth-child(even) { grid-template-columns: 1fr; direction: ltr; gap: 24px; padding: 20px; }
}
.cs-index-card .photo-wrap { aspect-ratio: 4/3; overflow: hidden; border-radius: 16px; background: var(--lilac); }
.cs-index-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.cs-index-card:hover .photo-wrap img { transform: scale(1.05); }
.cs-index-card .content { padding: 12px 20px; }
.cs-index-card .case-num { font-size: 13px; color: var(--signal-pink); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 12px; }
.cs-index-card .tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--crafty-purple); font-weight: 600; margin-bottom: 14px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.cs-index-card h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1.15; }
.cs-index-card .trade-loc { font-size: 14px; color: var(--slate); margin-bottom: 20px; }
.cs-index-card .big-metric { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.cs-index-card .big-metric .num { font-size: clamp(24px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.cs-index-card .big-metric .label { font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }
.cs-index-card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cs-index-card .chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); padding: 6px 12px; border-radius: 10px; font-size: 12px; color: var(--ink); font-weight: 500; }
.cs-index-card .chip strong { color: var(--crafty-purple); font-weight: 600; }
.cs-index-card .summary { font-size: 15px; color: var(--ink); line-height: 1.55; margin-bottom: 20px; }
.cs-index-card .card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cs-index-bottom { margin-top: 96px; text-align: center; padding: 64px 32px; background: white; border: 1px solid var(--line); border-radius: 24px; }
.cs-index-bottom h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 28px; max-width: 24ch; margin-left: auto; margin-right: auto; }

/* ============ CASE STUDY DETAIL PAGE ============ */
.cs-hero {
  padding: 140px 0 60px;
  background: var(--paper);
  position: relative;
}
.cs-hero .content { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.cs-hero .breadcrumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--slate); margin-bottom: 32px;
}
.cs-hero .breadcrumb a { color: var(--slate); text-decoration: none; }
.cs-hero .breadcrumb a:hover { color: var(--crafty-purple); }
.cs-hero .breadcrumb .sep { opacity: 0.4; }
.cs-hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lilac); color: var(--ink);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; margin-bottom: 28px;
}
.cs-hero .badge .star { color: var(--signal-pink); }
.cs-hero h1 { margin-bottom: 28px; font-size: clamp(36px, 5.5vw, 72px); letter-spacing: -0.045em; max-width: 20ch; }
.cs-hero .summary { font-size: 19px; color: var(--slate); line-height: 1.55; max-width: 60ch; }

.metric-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1000px; margin: 60px auto 80px; padding: 0 24px;
}
@media (max-width: 760px) { .metric-tiles { grid-template-columns: 1fr; } }
.metric-tile {
  background: white; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 28px; text-align: center;
}
.metric-tile .num {
  font-size: clamp(32px, 3.6vw, 56px); font-weight: 600; letter-spacing: -0.04em;
  color: var(--ink); line-height: 1; margin-bottom: 10px;
}
.metric-tile .num .accent { color: var(--signal-pink); }
.metric-tile .label { font-size: 13px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }

.cs-hero-image {
  max-width: 1120px; margin: 0 auto 80px; padding: 0 24px;
}
.cs-hero-image .frame {
  aspect-ratio: 16/9; overflow: hidden; border-radius: 24px;
  background: var(--lilac);
}
.cs-hero-image .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-hero-image .caption {
  font-size: 13px; color: var(--slate); margin-top: 12px; font-style: italic;
  max-width: 760px; margin-left: auto; margin-right: auto;
}

.cs-article { max-width: 760px; margin: 0 auto; padding: 40px 24px 100px; }
.cs-article h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; letter-spacing: -0.035em; margin: 48px 0 20px; line-height: 1.15; }
.cs-article h2:first-child { margin-top: 0; }
.cs-article p { font-size: 17px; line-height: 1.65; color: var(--ink); margin-bottom: 20px; }
.cs-article ol, .cs-article ul { padding-left: 24px; margin-bottom: 24px; }
.cs-article ol li, .cs-article ul li { font-size: 17px; line-height: 1.65; margin-bottom: 12px; }
.cs-article ol li strong, .cs-article ul li strong { color: var(--crafty-purple); font-weight: 600; }
.cs-article .inline-image {
  margin: 40px -60px;
  background: var(--lilac); border-radius: 24px; overflow: hidden;
}
@media (max-width: 860px) { .cs-article .inline-image { margin: 32px -24px; border-radius: 16px; } }
.cs-article .inline-image img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }
.cs-article .inline-image .caption { padding: 14px 20px; font-size: 13px; color: var(--slate); font-style: italic; background: white; }

.approach-tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin: 32px 0;
}
@media (max-width: 600px) { .approach-tiles { grid-template-columns: 1fr; } }
.approach-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px;
}
.approach-tile .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--signal-pink); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--ink); }
.approach-tile h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.approach-tile p { font-size: 14px; color: var(--slate); line-height: 1.5; margin-bottom: 0; }

.recap { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; margin: 32px 0; }
.recap h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); font-weight: 600; margin-bottom: 16px; }
.recap ul { list-style: none; padding: 0; margin: 0; }
.recap li { padding: 10px 0 10px 28px; font-size: 15px; position: relative; color: var(--ink); margin-bottom: 0; line-height: 1.5; }
.recap li::before { content: ''; position: absolute; left: 0; top: 14px; width: 18px; height: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/70% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/70% no-repeat;
  background: var(--teal);
}

.cs-cta {
  background: var(--lilac); padding: 72px 0; margin-top: 60px;
  text-align: center; border-radius: 32px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.cs-cta h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 20px; max-width: 24ch; margin-left: auto; margin-right: auto; }
.cs-cta p { max-width: 54ch; margin: 0 auto 28px; font-size: 17px; color: var(--ink); }
.cs-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.next-cs-link {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 760px; margin: 48px auto 0; padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--slate); font-size: 14px;
  text-decoration: none;
}
.next-cs-link:hover { color: var(--crafty-purple); }
.next-cs-link .arr { color: var(--crafty-purple); font-size: 20px; }

/* ============ STUB / LEGAL ============ */
.legal-page {
  padding: 160px 0 100px;
  max-width: 720px; margin: 0 auto;
}
.legal-page h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 20px; }
.legal-page .breadcrumb { display: flex; gap: 10px; font-size: 13px; color: var(--slate); margin-bottom: 32px; padding: 0 24px; }
.legal-page .breadcrumb a { color: var(--slate); text-decoration: none; }
.legal-page .wrap { padding: 0 24px; }
.legal-page p { font-size: 17px; line-height: 1.65; color: var(--ink); margin-bottom: 20px; }
.legal-page h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.025em; margin: 48px 0 16px; line-height: 1.2; }
.legal-page h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin: 28px 0 12px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 20px; }
.legal-page li { font-size: 17px; line-height: 1.65; color: var(--ink); margin-bottom: 10px; }
.legal-page strong { color: var(--ink); font-weight: 600; }
.legal-page .effective-date {
  display: inline-block; background: var(--lilac); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.legal-page a { color: var(--crafty-purple); }
.legal-page a:hover { color: var(--signal-pink); }

/* ============ MOTION TOGGLE / REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-orb, .marquee-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
body.motion-off .reveal { opacity: 1 !important; transform: none !important; }
body.motion-off .hero-orb, body.motion-off .marquee-track { animation: none !important; }
