/* ==========================================================================
   Della Websites — stylesheet
   Palette: dark charcoal base, teal-monochromatic — no secondary hue.
   ========================================================================== */

:root {
  --bg-primary: #0B0F0E;
  --bg-soft: #0F1514;
  --bg-elevated: #12181A;
  --bg-elevated-2: #1A2224;
  --border: rgba(247, 246, 242, 0.09);
  --border-strong: rgba(247, 246, 242, 0.16);

  --text-primary: #F7F6F2;
  --text-dim: rgba(247, 246, 242, 0.68);
  --text-faint: rgba(247, 246, 242, 0.42);

  /* two-accent system only: accent-deep for solid fills and structural
     lines, accent-bright for hover/active states and anything that
     needs to read clearly against the dark background. */
  --accent-deep: #01696F;
  --accent-bright: #4FBFAA;
  --accent-glass: rgba(79, 191, 170, 0.08);
  --accent-glass-strong: rgba(79, 191, 170, 0.16);
  --on-accent: #F7F6F2;

  --container: 1240px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-display: 'Piazzolla', 'Iowan Old Style', serif;
  --font-body: 'Hanken Grotesk', 'Segoe UI', sans-serif;

  /* named motion system — every transition uses one of these three,
     never an ad hoc ease-in-out */
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);     /* scroll reveals, page-load elements: fast start, long soft landing */
  --ease-hover: cubic-bezier(0.65, 0, 0.35, 1);     /* hover/interaction states: symmetric, snappy */
  --ease-transition: cubic-bezier(0.83, 0, 0.17, 1); /* page/section transitions: dramatic accelerate-decelerate */
}

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

html {
  background: var(--bg-primary);
  scroll-behavior: auto;
}

html.js .reveal,
html.js [data-hero-el] {
  opacity: 0;
}

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

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.br-desktop { display: inline; }

em { font-style: italic; color: var(--accent-bright); font-family: var(--font-display); }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: -20px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(8) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(-6px, -3px); }
  25%  { transform: translate(4px, 7px); }
  37%  { transform: translate(-8px, 3px); }
  50%  { transform: translate(7px, -6px); }
  62%  { transform: translate(-3px, 8px); }
  75%  { transform: translate(8px, 2px); }
  87%  { transform: translate(-5px, -7px); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* ---------- scroll progress: one continuous vertical line for the
   whole page, fixed to the left edge, filling top-to-bottom ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  z-index: 1000;
  background: rgba(247, 246, 242, 0.06);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  box-shadow: 0 0 12px rgba(79, 191, 170, 0.35);
  transition: box-shadow .4s var(--ease-hover);
}
.scroll-progress span.is-pulsing {
  animation: progress-pulse 0.9s var(--ease-hover);
}
@keyframes progress-pulse {
  0%   { box-shadow: 0 0 12px rgba(79, 191, 170, 0.35); }
  35%  { box-shadow: 0 0 24px 5px rgba(79, 191, 170, 0.8); }
  100% { box-shadow: 0 0 12px rgba(79, 191, 170, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress span.is-pulsing { animation: none; }
}

/* ---------- custom cursor: dot + trailing ring, desktop/fine-pointer
   only (JS gates on hover:hover + pointer:fine + !prefers-reduced-motion,
   falling back to the native cursor otherwise) ---------- */
.cursor-dot-wrap,
.cursor-ring-wrap {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
}
html.has-custom-cursor .cursor-dot-wrap,
html.has-custom-cursor .cursor-ring-wrap {
  opacity: 1;
}
.cursor-dot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  display: block;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-bright);
  opacity: 0.6;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-hover), height .25s var(--ease-hover), opacity .25s var(--ease-hover), border-color .25s var(--ease-hover);
}
.cursor-ring-wrap.is-active .cursor-ring {
  width: 48px; height: 48px;
  opacity: 0.9;
}
html.has-custom-cursor,
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor .btn,
html.has-custom-cursor input,
html.has-custom-cursor select,
html.has-custom-cursor textarea,
html.has-custom-cursor .compare {
  cursor: none;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 20px 0;
  transition: background .4s var(--ease-hover), border-color .4s var(--ease-hover);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(11, 15, 14, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}
.logo img { height: 26px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease-hover);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-hover);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 0 0 0 rgba(79, 191, 170, 0);
  transition: transform .3s var(--ease-hover), background .3s var(--ease-hover), box-shadow .4s var(--ease-hover);
}
.nav-cta:hover {
  background: var(--accent-bright);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 0 30px 8px rgba(79, 191, 170, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  margin: 0 auto;
  background: var(--text-primary);
  transition: transform .3s var(--ease-hover), opacity .3s var(--ease-hover);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform .35s var(--ease-hover), background .35s var(--ease-hover), border-color .35s var(--ease-hover), color .35s var(--ease-hover), box-shadow .45s var(--ease-hover);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-deep);
  color: var(--on-accent);
  box-shadow: 0 0 0 0 rgba(79, 191, 170, 0);
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 60px 16px rgba(79, 191, 170, 0.4);
}

/* the conversion CTA — strongest glow + magnetic pull (JS) on the site */
.btn-magnetic { transition: background .35s var(--ease-hover), border-color .35s var(--ease-hover), color .35s var(--ease-hover), box-shadow .5s var(--ease-hover); }
.btn-magnetic:hover {
  box-shadow: 0 0 90px 26px rgba(79, 191, 170, 0.55);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--accent-deep);
  color: var(--accent-bright);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
  width: 100%;
}
.btn-outline:hover {
  border-color: var(--accent-deep);
  background: var(--accent-glass);
}
.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 1rem; }
.btn-arrow { transition: transform .3s var(--ease-hover); }
.btn-ghost:hover .btn-arrow { transform: translateY(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-primary);
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* protects hero-copy legibility against the shader's motion without
   flattening it — the effect stays vivid on the right, behind the mockup */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,15,14,0.6) 0%, rgba(11,15,14,0.22) 42%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(247,246,242,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247,246,242,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-glass);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 5.5vw + 1.8rem, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 30px;
}
.title-line { display: block; }
.title-line--accent { font-style: italic; color: var(--accent-bright); font-weight: 500; }
/* SplitType word spans: give each word room to rotate without being
   clipped, and a sane transform origin for the settle-in rotation */
.hero-title .word { display: inline-block; transform-origin: 50% 100%; will-change: transform; }

.hero-sub {
  max-width: 480px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-faint);
}
.dot-sep { color: var(--border-strong); }

/* ---------- hero visual / mockup ---------- */
.hero-visual {
  position: relative;
}
.mockup-wrap {
  position: relative;
  perspective: 1400px;
}

.mockup-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.7),
    0 10px 30px -10px rgba(0,0,0,0.5),
    0 0 0 1px rgba(79, 191, 170,0.05);
  transform: rotateY(-8deg) rotateX(3deg);
  will-change: transform;
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 16px;
  background: rgba(0,0,0,0.28);
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}
.mockup-dots span:nth-child(1) { background: var(--accent-bright); opacity: .7; }
.mockup-dots span:nth-child(2) { background: var(--text-faint); }
.mockup-dots span:nth-child(3) { background: var(--accent-deep); opacity: .7; }
.mockup-url {
  margin: 0 auto;
  font-size: 11px;
  color: var(--text-faint);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 999px;
}

.mockup-body {
  padding: 30px 30px 26px;
  background:
    radial-gradient(ellipse 120% 100% at 100% 0%, rgba(79, 191, 170,0.09), transparent 55%),
    linear-gradient(160deg, #131917 0%, #0B0F0E 100%);
}

.mockup-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
}
.mockup-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-right: auto;
}
.mockup-logo em { font-style: normal; color: var(--accent-bright); }
.mockup-navlink {
  font-size: 11.5px;
  color: var(--text-faint);
}
.mockup-navbtn {
  font-size: 11px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent-deep);
  padding: 7px 14px;
  border-radius: 999px;
}

.mockup-hero {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
}

.mockup-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: 20px;
  background: repeating-radial-gradient(circle at 30% 30%, rgba(242,236,224,0.05) 0px, rgba(242,236,224,0.05) 1px, transparent 1px, transparent 8px);
  background-color: #0d1210;
  overflow: hidden;
  border: 1px solid var(--border);
}
.portrait-shape { position: absolute; }
.shape-1 {
  width: 78%; height: 78%;
  top: 10%; left: 6%;
  border-radius: 58% 42% 55% 45% / 55% 45% 60% 40%;
  background: linear-gradient(140deg, var(--accent-bright) 0%, rgba(79, 191, 170,0.05) 75%);
  opacity: 0.85;
  filter: blur(0.4px);
}
.shape-2 {
  width: 46%; height: 46%;
  top: -8%; right: -10%;
  border-radius: 50%;
  border: 2px solid var(--accent-bright);
  opacity: 0.7;
}
.shape-3 {
  width: 16%; height: 16%;
  bottom: 10%; left: 12%;
  border-radius: 50%;
  background: var(--text-primary);
  opacity: 0.85;
}
.mockup-portrait--gym .shape-1 {
  border-radius: 12px;
  background: linear-gradient(150deg, var(--accent-bright) 0%, rgba(79, 191, 170,0.04) 80%);
  transform: rotate(-4deg);
}
.mockup-portrait--gym .shape-2 {
  border-radius: 12px;
  border-color: var(--accent-bright);
  transform: rotate(10deg);
}

.mockup-hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-kicker {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  font-weight: 600;
}
.mockup-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  color: var(--text-primary);
}
.mockup-p {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 220px;
}
.mockup-cta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.mockup-stats div { display: flex; flex-direction: column; gap: 2px; }
.mockup-stats b { font-family: var(--font-display); font-size: 16px; color: var(--text-primary); }
.mockup-stats small { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); }

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(18, 24, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6);
}
.badge-1 { top: -22px; right: -22px; }
.badge-num { font-family: var(--font-display); font-weight: 700; color: var(--accent-bright); font-size: 1.05rem; }
.badge-label { font-size: 0.72rem; color: var(--text-dim); max-width: 90px; line-height: 1.25; }
.badge-2 { bottom: -22px; left: -22px; }
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--accent-glass-strong);
  flex-shrink: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  z-index: 2;
}
.scroll-cue-line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--accent-deep), transparent);
}

/* ==========================================================================
   Section shared
   ========================================================================== */
section { position: relative; padding: 130px 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.6vw + 1.5rem, 3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 800px;
}
/* split-line reveal: each chunk sits in its own overflow-hidden mask
   and slides up from that boundary — never a plain opacity fade */
.section-title .line-mask { display: block; overflow: hidden; }
.section-title .line { display: block; will-change: transform; }

/* ==========================================================================
   Problem
   ========================================================================== */
.problem { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.problem-pin {
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.statement-wrap { width: 100%; }
.statement-eyebrow-group,
.statement-group { position: relative; }
.statement-eyebrow--solution,
.statement--solution {
  position: absolute;
  top: 0; left: 0; right: 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 70px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.problem-stat { display: flex; flex-direction: column; gap: 14px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-bright);
}
.stat-num small { font-size: 1.8rem; opacity: 0.8; }
.problem-stat p { color: var(--text-dim); max-width: 280px; font-size: 0.98rem; }

.problem-causes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.cause-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255,255,255,0.02), transparent);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: border-color .35s var(--ease-hover), transform .35s var(--ease-hover), box-shadow .35s var(--ease-hover);
}
.cause-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.55);
}
.cause-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.cause-card:nth-child(1) h3::before,
.cause-card:nth-child(2) h3::before,
.cause-card:nth-child(3) h3::before {
  content: '';
  display: block;
  width: 30px; height: 3px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.cause-card:nth-child(1) h3::before { background: var(--accent-deep); }
.cause-card:nth-child(2) h3::before { background: var(--accent-bright); }
.cause-card:nth-child(3) h3::before { background: var(--text-faint); }
.cause-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  position: relative;
  overflow: hidden;
}
.services::before,
.services::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.services::before {
  width: 520px; height: 520px;
  background: var(--accent-deep);
  opacity: 0.18;
  top: -120px; left: -140px;
}
.services::after {
  width: 420px; height: 420px;
  background: var(--accent-bright);
  opacity: 0.12;
  bottom: -160px; right: -100px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 70px;
  align-items: stretch;
  perspective: 1400px;
}

.plan-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-glass);
  background: rgba(18, 24, 26, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: border-color .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
  will-change: transform;
  transform-style: preserve-3d;
  overflow: hidden;
}
.plan-card:hover {
  border-color: var(--accent-bright);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.55), 0 0 32px 0 var(--accent-glass-strong);
}

/* specular highlight: a radial gradient pinned to the cursor position
   via --mx/--my (set per-frame in JS), invisible until hover */
.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), var(--accent-glass-strong), transparent 70%);
  opacity: 0;
  transition: opacity .25s var(--ease-hover);
  pointer-events: none;
}
.plan-card:hover::before {
  opacity: 1;
}

/* idle float runs on this inner wrapper so it never fights the
   outer card's cursor-tilt / entrance / hover transforms on the
   same transform property */
.plan-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 32px;
}

.plan-card--featured {
  background: linear-gradient(165deg, rgba(4, 26, 28, 0.6), rgba(18, 24, 26, 0.45) 60%);
  border-color: rgba(79, 191, 170,0.4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.plan-card--featured:hover {
  box-shadow: 0 34px 64px -20px rgba(0,0,0,0.6);
}

.plan-badge {
  position: absolute;
  top: -14px; left: 32px;
  background: var(--accent-bright);
  color: var(--bg-primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.plan-head h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.plan-head p { color: var(--text-dim); font-size: 0.94rem; min-height: 44px; }

.plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 22px 0 26px;
}
.plan-price small { font-size: 1rem; color: var(--text-faint); font-family: var(--font-body); }
.price-from { font-size: 0.95rem; font-family: var(--font-body); color: var(--text-faint); font-weight: 500; margin-right: 4px; }

.plan-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 32px; flex-grow: 1; }
.plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Process — horizontal scroll-scrubbed timeline. The section pins for
   one screen height; vertical scroll progress drives .process-track's
   horizontal position (JS) while each step's inner content animates in
   as its card nears center (also scroll-driven, not timer-based).
   ========================================================================== */
.process-pin {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 64px;
  overflow: hidden;
}
.process-heading { flex-shrink: 0; position: relative; z-index: 1; }

/* background timeline rail — moves at ~0.6x the foreground cards'
   speed (JS), the real depth cue behind the horizontal scrub */
.process-bg-track {
  position: absolute;
  left: 0;
  top: 50%;
  width: 300%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 2px, transparent 2px 72px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.process-track-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
}
.process-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding-left: max(32px, calc((100vw - 1240px) / 2 + 32px));
  padding-right: 32px;
}
.process-step {
  flex: 0 0 auto;
  width: min(520px, 78vw);
}
.process-num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 18px;
}
.process-step h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin-bottom: 16px; }
.process-step p { color: var(--text-dim); font-size: 1rem; line-height: 1.65; max-width: 420px; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-note {
  color: var(--text-faint);
  font-size: 0.95rem;
  margin-top: 18px;
  max-width: 560px;
}

.case-studies { display: flex; flex-direction: column; gap: 90px; margin-top: 70px; }

.case-study {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.case-study--reverse { grid-template-columns: 0.9fr 1.1fr; }
.case-study--reverse .case-visual { order: 2; }
.case-study--reverse .case-copy { order: 1; }

.case-visual { perspective: 1200px; }

/* ---------- drag-reveal before/after compare ---------- */
.compare {
  position: relative;
  aspect-ratio: 1.45;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  transform: rotate(-1.4deg);
  transition: transform .5s var(--ease-hover), box-shadow .5s var(--ease-hover);
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.7),
    0 10px 30px -10px rgba(0,0,0,0.5),
    0 0 0 1px rgba(79, 191, 170,0.05);
}
.case-study--reverse .compare { transform: rotate(1.4deg); }
.case-visual:hover .compare {
  transform: rotate(0deg) scale(1.02);
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.7),
    0 10px 30px -10px rgba(0,0,0,0.5),
    0 0 0 1px rgba(79, 191, 170,0.08);
}

/* ---------- real-project shot (TravelMap): same tilted-frame language
   as .compare above, minus the drag-reveal mechanics — a straightforward
   hover flatten+scale is enough since there's no before/after to compare ---------- */
.project-shot {
  position: relative;
  aspect-ratio: 1.45;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotate(-1.4deg);
  transition: transform .5s var(--ease-hover), box-shadow .5s var(--ease-hover);
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.7),
    0 10px 30px -10px rgba(0,0,0,0.5),
    0 0 0 1px rgba(79, 191, 170,0.05);
}
.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-visual:hover .project-shot {
  transform: rotate(0deg) scale(1.02);
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.7),
    0 10px 30px -10px rgba(0,0,0,0.5),
    0 0 0 1px rgba(79, 191, 170,0.08);
}

.case-cta {
  display: inline-flex;
  margin-top: 4px;
}

.compare-after,
.compare-before {
  position: absolute;
  inset: 0;
}
.compare-after { z-index: 2; clip-path: inset(0 0 0 50%); }
.compare-before { z-index: 1; }
.compare .mockup-frame--case {
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition: none;
}

.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.compare-handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--accent-bright);
  box-shadow: 0 0 14px rgba(79, 191, 170,0.55);
}
.compare-handle-grip {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-bright);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,0.6);
}

.compare-hint {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(11,15,14,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s var(--ease-reveal);
  white-space: nowrap;
}
.compare-hint.is-hidden { opacity: 0; }

.mockup-body--small { padding: 22px 22px 20px; }
.mockup-body--small .mockup-nav { margin-bottom: 20px; }
.mockup-hero--small { margin-bottom: 18px; }
.mockup-body--gym { background: radial-gradient(ellipse 120% 100% at 0% 0%, rgba(79,191,170,0.10), transparent 55%), linear-gradient(160deg, #131917 0%, #0B0F0E 100%); }

/* ---------- "before" mockup: deliberately dated (circa 2013) ---------- */
.mockup-frame--before { background: #d8d5c9; }
.mockup-body--before {
  height: calc(100% - 38px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: Georgia, 'Times New Roman', serif;
  background: #e9e6da;
}
.before-topbar {
  background: linear-gradient(180deg, #4a6fa5, #1c3a5e);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 10px 8px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.before-nav {
  background: #cfc9b8;
  border-bottom: 2px solid #999;
  padding: 6px 10px;
  font-size: 11px;
  color: #0000EE;
  font-family: Arial, Helvetica, sans-serif;
  flex-shrink: 0;
}
.before-content {
  display: flex;
  gap: 12px;
  padding: 12px;
  flex: 1;
  min-height: 0;
}
.before-photo {
  width: 38%;
  flex-shrink: 0;
  background:
    repeating-linear-gradient(45deg, #9a9a9a, #9a9a9a 8px, #b7b7b7 8px, #b7b7b7 16px);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #999;
}
.before-photo--gym {
  background:
    repeating-linear-gradient(-45deg, #8a8f76, #8a8f76 8px, #a7ac91 8px, #a7ac91 16px);
}
.before-text { font-size: 11.5px; line-height: 1.5; color: #222; min-width: 0; }
.before-text b { color: #000; }
.before-link {
  display: inline-block;
  margin-top: 8px;
  color: #0000EE;
  text-decoration: underline;
  font-size: 11.5px;
  font-family: Arial, Helvetica, sans-serif;
}
.before-footer {
  background: #ccc7b8;
  text-align: center;
  font-size: 9.5px;
  padding: 6px;
  color: #555;
  font-family: Arial, Helvetica, sans-serif;
  flex-shrink: 0;
}

.case-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-bright);
  background: var(--accent-glass);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.case-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 16px;
}
.case-copy p { color: var(--text-dim); font-size: 1rem; line-height: 1.65; max-width: 440px; margin-bottom: 22px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.case-tags li {
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { position: relative; overflow: hidden; padding-bottom: 160px; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
#contactCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.4;
}
.contact-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg-primary) 0%, rgba(11,15,14,0.55) 18%, rgba(11,15,14,0.55) 82%, var(--bg-primary) 100%);
  pointer-events: none;
}
.contact > .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

.contact-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 460px; margin: 22px 0 34px; line-height: 1.6; }
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.contact-hint { color: var(--text-faint); font-size: 0.88rem; }

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.82rem; color: var(--text-faint); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  resize: none;
  transition: border-color .3s var(--ease-hover);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
}
.form-row select { color: var(--text-dim); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-faint); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner p { color: var(--text-faint); font-size: 0.85rem; margin-right: auto; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  position: relative;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color .25s var(--ease-hover);
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-hover);
}
.footer-links a:hover { color: var(--accent-bright); }
.footer-links a:hover::after { transform: scaleX(1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 899px) {
  .process-pin { height: auto; overflow: visible; gap: 40px; padding: 0 0 10px; }
  .process-track-wrap { overflow: visible; }
  .process-track {
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 40px;
  }
  .process-step { width: 100%; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 50px; order: 2; max-width: 480px; margin-left: auto; margin-right: auto; }
  .mockup-frame { transform: none; }
  .problem-grid { grid-template-columns: 1fr; gap: 36px; }
  .problem-causes { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .case-study,
  .case-study--reverse { grid-template-columns: 1fr; }
  .case-study--reverse .case-visual,
  .case-study--reverse .case-copy { order: unset; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .br-desktop { display: none; }
  .container { padding: 0 22px; }
  section { padding: 90px 0; }

  .nav-links {
    position: fixed;
    top: 72px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgb(17, 24, 22);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease-reveal), transform .3s var(--ease-reveal), visibility .3s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 96px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dot-sep { display: none; }

  .mockup-hero { grid-template-columns: 1fr; }
  .mockup-portrait { max-width: 200px; margin: 0 auto; }
  .floating-badge { position: static; margin-top: 14px; width: fit-content; }
  .badge-2 { margin-top: 10px; }

  .problem-stat .stat-num { font-size: 3rem; }

  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-form { padding: 26px; }
}
