/* thrivenvision: shared styles for every page (colours, type, menu, footer, buttons, pop-ups). Split from index.css (A16). Homepage-only styles are in home.css */
/* ============================================================
   thrivenvision: Dark Purple Glassmorphism
   Exo · JetBrains Mono
   Purple/Pink/Indigo · Glass · 3D Animations
   ============================================================ */
/* Fonts are loaded via <link rel="preload"> in index.html (non-blocking).
   Do NOT re-add @import here: it blocks CSS parsing and delays first paint. */
/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Stacking layers, lowest to highest (A31). Small values (-2 to 20) inside sections stay local */
  --z-drawer: 899; --z-nav: 900; --z-cursor: 999; --z-grain: 1000;
  --z-mobile-cta: 7999; --z-whatsapp: 8000; --z-cookie: 8500; --z-legal: 9000; --z-video: 9500;
  --z-progress: 9998; --z-toast: 9999; --z-top: 10000;   /* top: skip link, video lightbox, exit offer */

  /* Brand palette */
  --brand-primary:   #7b0aee;
  --brand-secondary: #f765ff;
  --brand-accent:    #100146;

  --purple-100: #f0e6ff;
  --purple-200: #dbbeff;
  --purple-300: #bc85ff;
  --purple-400: #9c46ff;
  --purple-500: #7b0aee;
  --purple-600: #6209be;
  --purple-700: #4a0890;
  --cyan:   #06b6d4;
  --pink:   #f765ff;
  --indigo: #818cf8;
  --gold:   #facc15;
  --green:  #22c55e;

  --dark-950: #06050c;
  --dark-900: #0a0812;
  --dark-800: #100146;
  --dark-700: #16082e;
  --dark-600: #1e0d44;

  --bg-body:    var(--dark-950);
  --bg-card:    rgba(10,6,30,0.75);
  --bg-glass:   rgba(16,1,70,0.35);
  --bg-glass-2: rgba(10,6,30,0.92);

  --border-glass:        rgba(123,10,238,0.18);
  --border-glass-2:      rgba(123,10,238,0.32);
  --border-glass-bright: rgba(247,101,255,0.38);

  --text-primary:   #f1eef8;
  --text-secondary: #b0a8cc;
  --text-muted:     #7060a0;
  --text-tertiary:  var(--text-primary);

  --gradient-purple: linear-gradient(135deg,#7b0aee,#f765ff);
  --gradient-hero:   linear-gradient(135deg,#7b0aee,#f765ff,#100146);
  --gradient-pink:   linear-gradient(135deg,#f765ff,#7b0aee);
  --gradient-cyan:   linear-gradient(135deg,#7b0aee,#f765ff);

  --font-display: 'Exo', sans-serif;
  --font-body:    'Exo', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease-out:    cubic-bezier(0.22,1,0.36,1);
  --ease-in-out: cubic-bezier(0.65,0,0.35,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);

  /* D16: the six text sizes (the homepage hero headline keeps its own size) */
  --fs-1: clamp(2.2rem, 4.5vw, 3.5rem);           /* 56: section headings, page titles, big numbers */
  --fs-2: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);    /* 32: sub-headings (24 on phones) */
  --fs-3: clamp(1.125rem, 1rem + .4vw, 1.25rem);  /* 20: card headings (18 on phones) */
  --fs-4: 1rem;                                   /* 16: body text */
  --fs-5: .875rem;                                /* 14: card text, buttons, menu, chips */
  --fs-6: .75rem;                                 /* 12: labels */
}
@media (max-width: 768px) {
  :root { --fs-1: clamp(1.7rem, 7vw, 2.2rem); }   /* same as the homepage section headings on phones */
}
/* ── Reset ────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display:block; max-width:100%; }
/* Make <picture> transparent to layout so existing img rules keep working */
picture { display:contents; }
a { color:inherit; }
button { cursor:pointer; }
/* ── Film grain ───────────────────────────────────────────── */
body::before {
  content:'';
  position:fixed; inset:0; z-index:var(--z-grain); pointer-events:none;
  opacity:0.025;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:200px;
}
/* ── Cursor glow ──────────────────────────────────────────── */
/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--dark-900); }
::-webkit-scrollbar-thumb { background:var(--purple-700); border-radius:3px; }
/* ── Background grid ──────────────────────────────────────── */
.bg-grid {
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(168,85,247,0.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(168,85,247,0.04) 1px,transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse 80% 80% at 50% 0%,black 40%,transparent 100%);
}
/* ── Orbs ─────────────────────────────────────────────────── */
.bg-orb {
  position:fixed; border-radius:50%; filter:blur(80px);
  pointer-events:none; z-index:0; will-change:transform;
  animation:orbFloat 14s ease-in-out infinite;
}
.bg-orb--1 {
  width:600px; height:600px; top:-200px; left:-150px;
  background:radial-gradient(circle,rgba(123,10,238,0.28) 0%,transparent 70%);
  animation-duration:16s; animation-delay:0s;
}
.bg-orb--2 {
  width:480px; height:480px; top:30%; right:-120px;
  background:radial-gradient(circle,rgba(16,1,70,0.35) 0%,transparent 70%);
  animation-duration:20s; animation-delay:-6s;
}
/* ── Layout ───────────────────────────────────────────────── */
.section {
  position:relative; z-index:2;
  padding:clamp(44px,6vw,80px) 0;
}
.container {
  max-width:1220px; margin:0 auto;
  padding:0 clamp(20px,5vw,60px);
}
/* ── Section label ────────────────────────────────────────── */
/* ── Headings ─────────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family:var(--font-display);
  font-weight:600; letter-spacing:-0.01em; line-height:1.1;
}
/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; border-radius:100px;
  font-family:var(--font-body); font-size:0.9rem; font-weight:500;
  text-decoration:none; border:none;
  transition:all .3s var(--ease-out); white-space:nowrap;
}
.btn--primary {
  background:var(--gradient-purple); color:#fff;
  box-shadow:0 0 24px rgba(123,10,238,0.45),0 4px 12px rgba(0,0,0,0.35);
}
.btn--primary:hover {
  transform:translateY(-2px);
  box-shadow:0 0 40px rgba(123,10,238,0.65),0 8px 24px rgba(0,0,0,0.4);
}
.btn--ghost {
  background:transparent; color:var(--text-secondary);
  border:1px solid var(--border-glass-2);
}
.btn--ghost:hover {
  border-color:var(--purple-500); color:var(--purple-300);
  background:rgba(168,85,247,0.08);
}
.btn .btn-arrow { display:inline-block; transition:transform .3s var(--ease-out); }
.btn:hover .btn-arrow { transform:translate(3px,-3px); }
/* ── Reveal ───────────────────────────────────────────────── */
/* Content is hidden for the reveal only when JavaScript is running (html.js).
   Without JavaScript everything stays visible. :where() keeps the specificity unchanged. */
/* ═══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:var(--z-nav);
  padding:20px 0;
  transition:background .3s var(--ease-out),padding .3s var(--ease-out),border-color .3s var(--ease-out);
  border-bottom:1px solid transparent;
}
.nav--scrolled {
  background:rgba(6,5,12,0.88);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  padding:12px 0; border-bottom-color:var(--border-glass);
}
.nav__inner {
  max-width:1220px; margin:0 auto;
  padding:0 clamp(20px,5vw,60px);
  display:flex; align-items:center; justify-content:space-between;
}
.nav__logo img { height:36px; width:auto; }
.nav__links { display:flex; gap:32px; list-style:none; }
.nav__link {
  font-size:0.875rem; font-weight:500;
  color:var(--text-secondary); text-decoration:none;
  position:relative; transition:color .3s var(--ease-out);
}
.nav__link::after {
  content:''; position:absolute; bottom:-3px; left:0;
  width:0; height:1px; background:var(--purple-400);
  transition:width .3s var(--ease-out);
}
.nav__link:hover,.nav__link--active { color:var(--purple-300); }
.nav__link:hover::after,.nav__link--active::after { width:100%; }
.nav__cta-book {
  margin-left:16px;
  display:inline-flex; align-items:center;
  padding:10px 22px; border-radius:6px;
  background:var(--purple-500); color:#fff;
  font-size:0.875rem; font-weight:600; text-decoration:none;
  border:none; letter-spacing:0.01em;
  transition:background .15s var(--ease-out), transform .15s var(--ease-out);
}
.nav__cta-book:hover { background:var(--purple-600); transform:translateY(-1px); }
.nav__burger {
  display:none; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  width:42px; height:42px; flex-shrink:0;
  background:rgba(168,85,247,0.08); border:1px solid rgba(168,85,247,0.22);
  border-radius:10px; padding:0; cursor:pointer;
  transition:background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.nav__burger:hover, .nav__burger--open {
  background:rgba(168,85,247,0.16); border-color:rgba(168,85,247,0.4);
}
.nav__burger span {
  display:block; width:18px; height:2px;
  background:var(--text-primary); border-radius:2px;
  transition:all .3s var(--ease-out);
}
.nav__burger--open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity:0; }
.nav__burger--open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.nav__drawer {
  position:fixed; inset:0;
  background:rgba(6,5,12,0.97); backdrop-filter:blur(20px);
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:32px; z-index:var(--z-drawer);
  transition:opacity .3s var(--ease-out),visibility .3s var(--ease-out);
}
.nav__drawer[aria-hidden="true"] { opacity:0; visibility:hidden; pointer-events:none; }
.nav__drawer[aria-hidden="false"] { opacity:1; visibility:visible; }
.nav__drawer a {
  font-family:var(--font-display); font-size:2.5rem; font-weight:600;
  color:var(--text-primary); text-decoration:none; transition:color .3s var(--ease-out);
}
.nav__drawer a:hover { color:var(--purple-400); }
/* ═══════════════════════════════════════════════════════════
   HERO: Split layout (text left · reel right)
══════════════════════════════════════════════════════════ */
.hero {
  min-height:100svh; display:flex; align-items:center;
  padding-top:90px; overflow:hidden;
}
/* 3D Film Reel */
/* ── Proof chips ──────────────────────────────────────────── */
/* ── Hero title (centered) ──────────────────────────────── */
/* Scroller row: left-aligned */
/* Word window: as wide as the longest word and as tall as a word plus its underline.
   The words are stacked in one grid cell and only move inside this window. */
/* Each word has a 3 second slot: in (0.4s), hold, out (0.4s). One word is gone before the next arrives. */
/* Reduce motion: one still word with its underline, and still tickers */
@media (prefers-reduced-motion:reduce) {
  .marquee__track, .reviews-ticker__track { animation:none !important; transform:none; }
}
/* ── Showreel label ── */
/* Hero reel zone */
/* Stats row: spans both columns */
.hero__stats {
  grid-column:1/-1;
  display:flex; gap:32px; align-items:center; justify-content:center; flex-wrap:wrap;
  padding:28px 40px; background:var(--bg-glass); backdrop-filter:blur(16px);
  border:1px solid var(--border-glass); border-radius:20px; width:100%;
}
.hero__stat { display:flex; flex-direction:column; gap:2px; }
.hero__stat-label { font-size:0.78rem; color:var(--text-muted); }
/* Showreel: full-width centered */
/* NLE Timeline: overlaid on showreel bottom */
/* ── Floating mini review cards ───────────────────────────── */
/* ── Section header (centered) ───────────────────────────── */
/* ═══════════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════════ */
.marquee__track {
  display:flex; gap:0; width:max-content;
  animation:marqueeRoll 28s linear infinite;
}
/* ═══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
/* Trinity cards (Hook / Story / Conversion) */
/* ── Trinity cards: redesigned ── */
/* Top accent glow band */
/* Ambient background glow */
/* Per-card accent colors */
/* Card header */
/* Large watermark number */
/* Icon */
/* Body content */
/* Tags */
/* Divider before animation panel */
/* Animation panel */
/* Link footer */
/* ── Trinity card animated panels ── */
/* ─ WEDDING: DaVinci color page ─ */
/* ─ EDIT: Premiere NLE ─ */
/* ─ MOTION: After Effects graph ─ */
/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════════════════════════ */
/* Dark overlay: hidden until hover */
/* Centered play button: hidden until hover */
/* ═══════════════════════════════════════════════════════════
   PROCESS / FRAMEWORK
══════════════════════════════════════════════════════════ */
/* Reusable glass surface */
/* ── Step UI shared ── */
/* ── BRIEF: Intake form ── */
/* ── Brief: chat thread ── */
/* Each bubble bakes its delay into a looping 8s keyframe */
/* b1 → 0.3s = 3.75%, b2 → 1.4s = 17.5%, b3 → 2.5s = 31.25%,
   b4 → 3.4s = 42.5%, b5 → 4.5s = 56.25%   fade-out: 87-94% */
/* ── Brief v2: project onboarding card ── */
/* ── Color grade wheels (Edit step) ── */
/* ── Service card icon animations ── */
/* 01 Clapperboard arm */
/* 02 Scissors blades */
/* 03 Wand sparkles */
/* ── EDIT: Full NLE ── */
/* ── REVIEW: Frame.io scrubber ── */
/* ── DELIVER: Export dashboard ── */
/* ── Deliver UI: cloud delivery ── */
/* ═══════════════════════════════════════════════════════════
   REVIEWS TICKER
══════════════════════════════════════════════════════════ */
.reviews-ticker__track {
  display:flex; gap:0; width:max-content;
  animation:marqueeRoll 35s linear infinite;
}
/* ═══════════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   TEAM
══════════════════════════════════════════════════════════ */
/* Founders flex row */
/* Each founder wrapper: holds bubbles + card */
/* Featured founder card: centered circular style */
/* ── Floating avatar bubbles ─────────────────────────────── */
/* Tooltip */
/* Float positions (outside the founder card, with natural depth) */
/* Team grid */
/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS: 3D CoverFlow
══════════════════════════════════════════════════════════ */
/* Glowing border beam: CSS mask technique (actual border glows) */
/* ═══════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════ */
/* Cal.com banner card */
/* ── Inline validation ── */
/* ── Form toast notification ── */
/* ═══════════════════════════════════════════════════════════
   FOOTER CTA (big section before footer: MZ Media style)
══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  position:relative; z-index:2;
  border-top:1px solid var(--border-glass); padding:48px 0 0;
}
.footer__main {
  display:flex; align-items:center; justify-content:space-between;
  gap:32px; flex-wrap:wrap; padding-bottom:40px;
}
/* Brand / logo */
.footer__brand { display:flex; flex-direction:column; gap:6px; }
.footer__logo-link { display:inline-block; margin-bottom:4px; }
.footer__logo-img { height:32px; width:auto; display:block; }
.footer__tagline-script {
  font-family:Georgia, 'Times New Roman', serif; font-style:italic;
  font-size:1.1rem; color:var(--text-primary); line-height:1.3;
}
.footer__tagline-sub {
  font-size:0.8rem; color:var(--text-muted);
}
/* Nav */
.footer__nav { display:flex; gap:28px; flex-wrap:wrap; align-items:center; }
.footer__nav a {
  font-size:0.875rem; color:var(--text-secondary); text-decoration:none;
  transition:color .15s var(--ease-out);
}
.footer__nav a:hover { color:var(--text-primary); }
/* Socials */
.footer__socials { display:flex; gap:10px; }
.footer__social {
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,0.05); border:1px solid var(--border-glass);
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; color:var(--text-muted);
  transition:background .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.footer__social:hover { background:rgba(168,85,247,0.18); border-color:var(--purple-500); color:var(--purple-300); transform:translateY(-3px); }
/* Bottom bar */
.footer__bottom {
  border-top:1px solid var(--border-glass); padding:20px 0;
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px;
}
.footer__copy { font-family:var(--font-mono); font-size:0.68rem; color:var(--text-muted); letter-spacing:0.04em; }
.footer__legal-links { display:flex; align-items:center; gap:12px; }
.footer__legal-btn {
  background:none; border:none; padding:0;
  font-family:var(--font-mono); font-size:0.65rem; color:var(--text-muted);
  letter-spacing:0.04em; cursor:pointer; text-decoration:underline;
  text-underline-offset:3px; transition:color .15s var(--ease-out);
}
.footer__legal-btn:hover { color:var(--brand-secondary); }
.footer__legal-sep { color:var(--text-muted); font-size:0.65rem; }
/* ══ Legal Modal ══════════════════════════════════════════════ */
/* Closed: hidden after the fade, so its buttons and links take no Tab focus */
/* Legal doc content */
.legal-doc__contact {
  margin-top:36px; padding-top:24px; border-top:1px solid var(--border-glass);
  font-size:0.82rem; color:var(--text-muted);
}
.legal-doc__contact a {
  color:var(--brand-secondary); text-decoration:underline; text-underline-offset:3px;
}
.legal-doc__contact a:hover { color:var(--brand-primary); }
/* ═══════════════════════════════════════════════════════════
   VIDEO MODAL (portfolio YouTube lightbox)
══════════════════════════════════════════════════════════ */
/* Make portfolio cards show they're clickable */
/* ═══════════════════════════════════════════════════════════
   VALUE / BUDGET
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cases { grid-template-columns:1fr; }
}
/* ═══════════════════════════════════════════════════════════
   DECORATIVE SVG ACCENTS (craft-deco)
   Small positioned flourishes per section: bezier curve,
   sprocket holes, keyframe diamonds, mini timeline, waveform,
   spinning reel, color bars.
══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════════════════ */
.skip-link {
  position:absolute; top:-100px; left:16px; z-index:var(--z-top);
  background:var(--brand-primary); color:#fff;
  padding:12px 20px; border-radius:0 0 8px 8px;
  font-size:0.875rem; font-weight:600; text-decoration:none;
  transition:top .15s var(--ease-out);
}
.skip-link:focus { top:0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline:2px solid var(--brand-secondary);
  outline-offset:3px;
  border-radius:4px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline:none; }
[data-focus-target]:focus { outline:none; }
@media (hover:none) and (pointer:coarse) {
  .nav__link, .footer__nav a, .footer__legal-btn, .pf-btn { min-height:44px; display:flex; align-items:center; }
  .footer__social { min-width:44px; min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
      animation-duration:0.01ms !important;
      animation-iteration-count:1 !important;
      transition-duration:0.01ms !important;
      scroll-behavior:auto !important;
    }
  html { scroll-behavior:auto; }
  .reveal, .reveal-up { opacity:1 !important; transform:none !important; }
  .bg-orb, .cursor-glow, .bg-growth-thread { display:none; }
}
/* ═══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════════════════════ */
.scroll-progress {
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg,var(--brand-primary),var(--brand-secondary));
  z-index:var(--z-progress); transition:width .15s linear;
  box-shadow:0 0 12px rgba(247,101,255,0.6);
}
/* ═══════════════════════════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════════════════════════ */
.wa-float {
  position:fixed; bottom:26px; right:26px; z-index:var(--z-whatsapp);
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#25D366; color:#fff; text-decoration:none;
  box-shadow:0 6px 24px rgba(37,211,102,0.4);
  transition:transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  animation:waPulse 3s ease-in-out infinite;
}
.wa-float:hover { transform:scale(1.1); box-shadow:0 8px 32px rgba(37,211,102,0.6); }
/* ═══════════════════════════════════════════════════════════
   STICKY MOBILE CTA
══════════════════════════════════════════════════════════ */
.mobile-cta {
  position:fixed; bottom:0; left:0; right:0; z-index:var(--z-mobile-cta);
  display:none; align-items:center; justify-content:space-between; gap:14px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(10,6,30,0.96); backdrop-filter:blur(16px);
  border-top:1px solid var(--border-glass-2);
  transform:translateY(110%); transition:transform .3s var(--ease-out);
}
.mobile-cta.is-visible { transform:translateY(0); }
.mobile-cta__text { display:flex; flex-direction:column; line-height:1.3; }
.mobile-cta__text strong { font-size:0.82rem; color:var(--text-primary); font-weight:700; }
.mobile-cta__text span { font-size:0.7rem;  color:var(--text-muted); }
.mobile-cta__btn {
  flex-shrink:0; background:var(--gradient-purple); color:#fff;
  padding:12px 26px; border-radius:8px; text-decoration:none;
  font-weight:700; font-size:0.88rem;
  box-shadow:0 4px 16px rgba(123,10,238,0.4);
}
@media (max-width: 768px) {
  .mobile-cta { display:flex; }
  .wa-float { bottom:calc(84px + env(safe-area-inset-bottom)); right:16px; width:50px; height:50px; }
  /* Room under the legal links so the WhatsApp button never rests on them at the end of the page */
  .footer__bottom { padding-bottom:calc(64px + env(safe-area-inset-bottom)); }
}
/* Very small phones: the bottom bar text wraps and the bar gets taller, so the button sits higher */
@media (max-width: 360px) {
  .wa-float { bottom:calc(100px + env(safe-area-inset-bottom)); }
  .footer__bottom { padding-bottom:calc(80px + env(safe-area-inset-bottom)); }
}
/* ═══════════════════════════════════════════════════════════
   VIDEO LIGHTBOX
══════════════════════════════════════════════════════════ */
/* Closed: hidden after the fade, so the close button takes no Tab focus */
/* ═══════════════════════════════════════════════════════════
   3D TILT + MAGNETIC BUTTONS
══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   CLIENT LOGO STRIP
══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   CASE STUDIES
══════════════════════════════════════════════════════════ */
.cases { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
/* ═══════════════════════════════════════════════════════════
   BEFORE / AFTER SLIDER
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cases { grid-template-columns:1fr; }
}
/* ══════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION PASS
   Desktop layout above is untouched. Everything below only
   applies at <=768px (and a refinement pass at <=480px) and
   overrides earlier rules by cascade order, not by editing them.
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body { overflow-x:hidden; }
  /* ── Hero ── */
  .hero { min-height:auto; padding-top:140px; padding-bottom:24px; }
  .hero__stats {
      grid-column:1/-1; order:3;
      display:grid; grid-template-columns:1fr 1fr; gap:18px 12px;
      padding:22px 18px; text-align:center; margin-top:8px;
    }
  .hero__stat { align-items:center; }
  .hero__stat-label { font-size:0.68rem; }
  /* ── Services: Three crafts ── */
  /* ── Process / framework steps ── */
  /* step 4's delivery picture must not widen the column */
  /* ── Portfolio / cards ── */
  .post-grid { grid-template-columns:1fr; }
  /* ── Case studies ── */
  /* ── Value / budget ── */
  /* ── Contact ── */
  /* ── Section spacing ── */
  /* ── Cal.com banner ── */
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns:1fr 1fr; padding:18px 14px; }
}
/* ══════════════════════════════════════════════════════════════
   MOBILE NAV: the hamburger toggle already exists in the HTML
   and JS (#navBurger / #navDrawer) but was never switched on in
   CSS, so the full desktop nav (logo + 5 links + CTA button) was
   trying to fit in one row and squeezing the logo out. This
   activates the hamburger below 900px and hides the link row.
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav__logo { flex-shrink:0; }
  .nav__cta-book { display:none; }
  .nav__burger { display:none; }
  /* Links move to their own scrollable row under the logo,
       same style as desktop, instead of hiding behind a hamburger */
  .nav__inner { flex-wrap:wrap; row-gap:12px; }
  .nav__links {
      display:flex; width:100%; order:3;
      gap:22px; overflow-x:auto; overflow-y:hidden;
      -webkit-overflow-scrolling:touch; scrollbar-width:none;
      padding-bottom:2px;
    }
  .nav__links::-webkit-scrollbar { display:none; }
  .nav__links li { flex-shrink:0; }
  .nav__link { white-space:nowrap; font-size:0.82rem; }
}
/* ── Quick action bar under the logo (mobile only) ── */
/* Fixed height: with non-blocking Google Fonts the dropdown would otherwise render 3px taller */
/* ── Phones up to 430px: full menu ───────────────────────── */
@media (max-width: 480px) {
  /* All menu links visible instead of a row cut off at the edge */
  .nav__links { flex-wrap:wrap; overflow-x:visible; gap:0 16px; }
  .nav__link { min-height:40px; }
  /* Room for the taller menu */
  .hero { padding-top:176px; }
  body .page-hero { padding-top:140px; }
  /* Menu taps stop with the section heading below the menu */
  section[id] { scroll-margin-top:90px; }
}
/* ── Small phones only (375px and below) ─────────────────── */
@media (max-width: 360px) {
  /* Process panels stay inside the screen */
  /* Nothing floating over the hero text */
  /* Minimum readable text size */
  .nle__head span, .showreel-chip, .hero__stat-label, .logos__label,
    .trinity-card__num, .trinity-card__tag, .tca__label, .tca__label span, .tca__tc,
    .tca__nle-lbl, .tca__speed-label, .tca__ae-legend span, .tca__layer-name,
    .pcard__cat, .case-card__tag, .case-metric__lbl, .chat__status, .fstep__vis-label,
    .fstep__vis-label span, .grade__frame-label, .grade__wheel-label, .grade__node,
    .review2__tc, .review2__controls, .review2__tc-tag, .review2__text, .review2__badge,
    .dlv__live, .dlv__label, .dlv__size, .dlv__speed, .dlv__link-label, .dlv__link-url,
    .dlv__copy-btn, .dlv__notify-text, .dlv__notify-text span, .cal-banner__eyebrow,
    .footer__copy, .footer__legal-btn, .footer__legal-sep, .legal-doc__meta,
    .legal-section__num { font-size:11px; }
}
/* ══ MOBILE NAV v2: hamburger menu below 900px (replaces the link row) ══ */
@media (max-width: 900px) {
  .nav__inner { flex-wrap:nowrap; }
  .nav__links { display:none !important; }
  .nav__burger { display:flex !important; }
  .nav__drawer { gap:18px; overflow-y:auto; padding:90px 24px 40px; }
  .nav__drawer a { font-size:1.6rem; }
}
@media (max-width: 480px) {
  .hero { padding-top:120px; }
  body .page-hero { padding-top:120px; }
}
.hero { position:relative; }
/* Stats row in JetBrains Mono, matching the small badge text above the headline */
.hero__stat-label { font-family:var(--font-mono); letter-spacing:0.02em; white-space:nowrap; }
/* Services cards, simplified: shorter mockup, Get Started-style arrow on "Explore" */
/* Pricing: starting price pill under the heading */
/* Guarantee strip in the pricing section */
.guarantee { display:flex; align-items:center; gap:14px; max-width:760px; margin:36px auto 0; padding:16px 22px; border-radius:16px; background:rgba(16,185,129,.07); border:1px solid rgba(16,185,129,.28); }
.guarantee p { margin:0; font-size:.95rem; line-height:1.6; color:var(--text-secondary); }
.guarantee strong { color:#fff; }
/* Portfolio hover preview (silent YouTube playback inside the card) */
/* Trust strip under the contact form */
/* ── Team bubbles: reliable hover ── */
/* Team bubbles: tooltip below photo, no clipping */
/* Team: floating bubbles removed */
/* Team: equal height founder cards */
/* ── Visual polish ── */
/* 1. One button shape everywhere (rounded) */
.nav__cta-book, .footer-cta__btn { border-radius:100px; }
/* 2. Section rhythm: soft glow on every second section */
#work::after, #process::after, #value::after, #team::after {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse 70% 55% at 50% 40%, rgba(123,10,238,0.07), transparent 70%),
             linear-gradient(180deg, transparent, rgba(255,255,255,0.012) 20%, rgba(255,255,255,0.012) 80%, transparent);
}
#work, #process, #value, #team { isolation:isolate; }
/* 3. Even spacing between sections */
.section { padding:clamp(56px,7vw,96px) 0; }
/* 4. Glow behind hero showreel */
/* ── Site polish v2 ── */
.hero__subtitle, .page-hero__lead, .prose p, .prose li, .trial-card p, .trial-step p { text-align:left; }
@media (min-width: 769px) {
  .wa-float { bottom:96px; }
}
/* ── Scroll reveal: items cascade in reading order ── */
@keyframes orbFloat {
  0%,100% { transform:translate(0,0) scale(1); }
  33%      { transform:translate(28px,-38px) scale(1.06); }
  66%      { transform:translate(-18px,22px) scale(0.97); }
}
@keyframes marqueeRoll {
  from { transform:translateX(0); } to { transform:translateX(-50%); }
}
@keyframes waPulse {
  0%,100% { box-shadow:0 6px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50%     { box-shadow:0 6px 24px rgba(37,211,102,0.4), 0 0 0 14px rgba(37,211,102,0); }
}
