/* ══════════════════════════════════════════
   Zamir — Digital Product Studio
   Light-first, white-dominant. Light + dark toggle.
   GSAP + Lenis. No pure black anywhere.
   ══════════════════════════════════════════ */

:root {
  /* ---- LIGHT THEME (default, white-dominant) ---- */
  --bg:        #ffffff;
  --bg-2:      #f5f7fc;
  --bg-3:      #eef1f9;
  --surface:   #ffffff;
  --line:      rgba(24,28,54,0.10);
  --line-2:    rgba(24,28,54,0.16);
  --text:      #171b33;      /* deep slate, never #000 */
  --muted:     #565c74;
  --faint:     #6c7288;
  --accent:    #4f46e5;      /* indigo */
  --accent-2:  #8b5cf6;      /* violet */
  --pink:      #ec4899;
  --cyan:      #0891b2;
  --amber:     #f59e0b;
  --hero-grad: linear-gradient(100deg, #4f46e5, #8b5cf6 55%, #0891b2);
  --card-glow: rgba(79,70,229,0.10);
  --shadow:    0 20px 60px -22px rgba(30,34,90,0.28);
  --shadow-sm: 0 8px 30px -12px rgba(30,34,90,0.20);

  --radius:    18px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --font-disp: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  /* ---- DARK THEME (deep slate, NOT black) ---- */
  --bg:        #10131f;
  --bg-2:      #151a29;
  --bg-3:      #1b2136;
  --surface:   #171d2e;
  --line:      rgba(255,255,255,0.10);
  --line-2:    rgba(255,255,255,0.16);
  --text:      #eef1f8;
  --muted:     #a6adc4;
  --faint:     #5f6883;
  --accent:    #7c7bff;
  --accent-2:  #a78bfa;
  --pink:      #f472b6;
  --cyan:      #22d3ee;
  --amber:     #fbbf24;
  --hero-grad: linear-gradient(100deg, #8b9bff, #b79bff 55%, #56e1f0);
  --card-glow: rgba(124,123,255,0.16);
  --shadow:    0 24px 70px -22px rgba(0,0,0,0.6);
  --shadow-sm: 0 10px 34px -14px rgba(0,0,0,0.5);
}

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

html { -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background .5s var(--ease), color .5s var(--ease);
}

/* ambient tint wash (light + airy) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(110% 80% at 50% -10%, var(--card-glow), transparent 55%),
    radial-gradient(70% 55% at 100% 105%, rgba(139,92,246,0.08), transparent 60%);
  pointer-events: none; z-index: 0;
  transition: opacity .5s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

/* Skip link + active nav (accessibility / UX) */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10001; background: var(--accent); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; transform: translateY(-160%); transition: transform .25s var(--ease); }
.skip-link:focus { transform: translateY(0); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { width: 100%; }

/* Keyboard focus visibility (accessibility) */
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(--accent); outline-offset: 3px; border-radius: 5px;
}

section { position: relative; z-index: 1; }
.section-head { padding: 0 clamp(20px, 6vw, 120px); margin-bottom: clamp(40px, 6vw, 80px); }
.section-head__label, .statement__label, .cta__label {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--accent); margin-bottom: 18px;
}
.section-head__title {
  font-family: var(--font-disp); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em;
}

/* ══════════ Cursor ══════════ */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; }
.cursor {
  width: 34px; height: 34px; border: 1.5px solid var(--accent); opacity: .5;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), opacity .3s;
}
.cursor-dot { width: 5px; height: 5px; background: var(--accent); transform: translate(-50%, -50%); }
.cursor.is-hover { width: 64px; height: 64px; background: var(--card-glow); opacity: 1; border-color: transparent; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } body { cursor: auto; } }

/* ══════════ Preloader ══════════ */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center;
}
.preloader__inner { display: flex; align-items: baseline; gap: 20px; }
.preloader__mark { font-size: 40px; color: var(--accent); animation: spin 3s linear infinite; }
.preloader__count { font-family: var(--font-disp); font-size: clamp(4rem, 14vw, 9rem); font-weight: 700; letter-spacing: -0.03em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════ Nav ══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 120px);
  transition: padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s;
}
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-disp); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.nav__mark { display: inline-grid; place-items: center; height: 34px; width: auto; flex-shrink: 0; transition: transform .4s var(--ease); }
.nav__mark-img { height: 34px; width: auto; display: block; }
.nav__logo:hover .nav__mark { transform: translateY(-2px) scale(1.05); }
/* swap to the light-toned logo in dark mode (its lower-left is near-black otherwise) */
.nav__mark-img--dark { display: none; }
[data-theme="dark"] .nav__mark-img--light { display: none; }
[data-theme="dark"] .nav__mark-img--dark { display: block; }
.nav__links { display: flex; gap: 34px; align-items: center; }
.nav__link { font-size: 15px; color: var(--muted); position: relative; transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--accent); transition: width .35s var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__cta {
  font-size: 14px; font-weight: 500; padding: 11px 20px; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); display: grid; place-items: center;
  cursor: none; transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(18deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: none; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); display: block; }

/* ══════════ Hero ══════════ */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(20px, 6vw, 120px) 60px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 900px; max-width: 130vw;
  background: radial-gradient(circle, var(--card-glow), transparent 60%);
  filter: blur(30px); z-index: 0; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 1150px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-bottom: 30px; padding: 7px 16px 7px 12px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); box-shadow: var(--shadow-sm); }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero__title { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2.15rem, 8.5vw, 7rem); line-height: 0.98; letter-spacing: -0.03em; overflow-wrap: normal; word-break: keep-all; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
/* rotating word line */
.hero__rotate { display: inline-flex; height: 1em; overflow: hidden; vertical-align: bottom; position: relative; }
.hero__rotate .rotator { display: flex; flex-direction: column; }
.hero__rotate .rotator span {
  height: 1em; line-height: 1;
  background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { max-width: 580px; margin-top: 34px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero__actions { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); z-index: 2; }
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--faint), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0% { top: -50%; } 100% { top: 100%; } }

/* ══════════ Buttons ══════════ */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 100px; font-weight: 500; font-size: 15px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .4s, border-color .3s; }
.btn > span { position: relative; z-index: 2; }
.btn--primary { background: var(--hero-grad); color: #fff; box-shadow: 0 12px 40px -12px rgba(79,70,229,0.6); }
.btn--primary:hover { box-shadow: 0 18px 55px -10px rgba(79,70,229,0.75); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--lg { padding: 19px 40px; font-size: 17px; }

/* ══════════ Marquee ══════════ */
.marquee { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee__track { display: flex; align-items: center; gap: 42px; white-space: nowrap; width: max-content; font-family: var(--font-disp); font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 500; color: var(--muted); will-change: transform; }
.marquee__track .sep { color: var(--accent); font-size: 0.7em; }

/* ══════════ Statement ══════════ */
.statement { padding: clamp(90px, 14vw, 200px) clamp(20px, 6vw, 120px); }
.statement__text { font-family: var(--font-disp); font-weight: 500; font-size: clamp(1.7rem, 4.6vw, 3.6rem); line-height: 1.18; letter-spacing: -0.02em; max-width: 1200px; }
.statement__text .word { display: inline-block; opacity: 0.22; transition: opacity .5s; }
.statement__text .word.accent { color: var(--accent); }

/* ══════════ Services ══════════ */
.services { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 160px); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 clamp(20px, 6vw, 120px); }
.scard {
  position: relative; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
}
.scard::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--card-glow), transparent 60%); }
.scard:hover { border-color: var(--line-2); transform: translateY(-6px); box-shadow: var(--shadow); }
.scard:hover::before { opacity: 1; }
.scard__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.scard__icon { position: absolute; top: 40px; right: 40px; width: 34px; height: 34px; color: var(--accent); opacity: .85; }
.scard--a { --card-glow: rgba(79,70,229,0.12); }
.scard--b { --card-glow: rgba(139,92,246,0.12); }
.scard--c { --card-glow: rgba(236,72,153,0.12); }
.scard--d { --card-glow: rgba(8,145,178,0.12); }
.scard--a .scard__num, .scard--a .scard__icon { color: var(--accent); }
.scard--b .scard__num, .scard--b .scard__icon { color: var(--accent-2); }
.scard--c .scard__num, .scard--c .scard__icon { color: var(--pink); }
.scard--d .scard__num, .scard--d .scard__icon { color: var(--cyan); }
.scard__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 20px 0 14px; letter-spacing: -0.01em; }
.scard__text { color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.scard__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.scard__tags li { font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; background: var(--bg-2); }

/* ══════════ Work ══════════ */
.work { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 10vw, 120px); }
.work__list { border-top: 1px solid var(--line); }
.work__empty { padding: clamp(40px, 6vw, 72px) clamp(20px, 6vw, 120px); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); max-width: 760px; line-height: 1.6; }
.work__empty a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.work-row {
  position: relative; display: grid; grid-template-columns: 60px 1fr auto 50px; align-items: center; gap: 30px;
  padding: clamp(26px, 3.4vw, 44px) clamp(20px, 6vw, 120px); border-bottom: 1px solid var(--line);
  transition: background .4s; overflow: hidden;
}
.work-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rowcolor, var(--accent)); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.work-row:hover::before { transform: scaleY(1); }
.work-row__index { font-family: var(--font-mono); font-size: 14px; color: var(--faint); }
.work-row__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.5rem, 4vw, 3rem); letter-spacing: -0.02em; transition: transform .45s var(--ease), color .4s; }
.work-row__meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.work-row__tags { display: flex; gap: 8px; }
.work-row__tags span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; background: var(--bg-2); }
.work-row__arrow { font-size: 26px; color: var(--faint); transition: transform .45s var(--ease), color .4s; }
.work-row:hover { background: var(--bg-2); }
.work-row:hover .work-row__title { transform: translateX(14px); color: var(--rowcolor); }
.work-row:hover .work-row__arrow { transform: translate(6px, -6px); color: var(--rowcolor); }

/* cursor-following project preview (award-site signature) */
.work-preview {
  position: fixed; top: 0; left: 0; z-index: 800; pointer-events: none;
  width: 260px; height: 170px; border-radius: 16px;
  transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  background: linear-gradient(135deg, var(--rowcolor, var(--accent)), color-mix(in srgb, var(--rowcolor, var(--accent)) 40%, #fff));
  box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.work-preview::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,0.35), transparent 55%); }
.work-preview.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work-preview__label { position: relative; z-index: 2; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; }
@media (hover: none) { .work-preview { display: none; } }

/* ══════════ Process ══════════ */
.process { padding: clamp(80px, 12vw, 160px) 0; background: var(--bg-2); }
.process__wrap { position: relative; padding: 0 clamp(20px, 6vw, 120px); }
.process__line { position: absolute; left: clamp(28px, 6.4vw, 128px); top: 8px; width: 4px; height: 100%; }
.process__line path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.process__steps { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); padding-left: 50px; }
.pstep { position: relative; max-width: 620px; }
.pstep::before { content: ""; position: absolute; left: -54px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent); box-shadow: 0 0 0 5px var(--bg-2); }
.pstep__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.pstep__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 10px 0 12px; letter-spacing: -0.01em; }
.pstep__text { color: var(--muted); }

/* ══════════ Stats ══════════ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: clamp(60px, 8vw, 90px) clamp(20px, 6vw, 120px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--font-disp); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.03em; background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { color: var(--muted); font-size: 14px; font-family: var(--font-mono); }

/* ══════════ Quote ══════════ */
.quote { padding: clamp(90px, 14vw, 190px) clamp(20px, 6vw, 120px); max-width: 1200px; }
.quote__text { font-family: var(--font-disp); font-weight: 500; font-size: clamp(1.6rem, 4vw, 3.1rem); line-height: 1.28; letter-spacing: -0.02em; }
.quote__text .q { color: var(--accent); }
.quote__author { margin-top: 30px; color: var(--muted); font-family: var(--font-mono); font-size: 15px; }

/* ══════════ Reviews (Amazon-style) ══════════ */
.reviews { padding: clamp(70px, 11vw, 150px) 0; overflow: hidden; }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding: 0 clamp(20px, 6vw, 120px); margin-bottom: clamp(36px, 5vw, 56px); }
.reviews__summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.reviews__score { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.reviews__meta { display: flex; flex-direction: column; gap: 4px; }
.stars { color: #f5a623; letter-spacing: 3px; font-size: 16px; }
.reviews__count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.reviews__nav { display: flex; gap: 10px; }
.reviews__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: none; transition: background .3s, border-color .3s, color .3s, transform .3s; }
.reviews__arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.06); }
.reviews__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px clamp(20px, 6vw, 120px) 24px; scrollbar-width: none; scroll-behavior: smooth; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 auto; width: min(380px, 82vw); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.review .stars { font-size: 15px; }
.review__text { color: var(--text); font-size: 16px; line-height: 1.6; flex: 1; }
.review__by { display: flex; align-items: center; gap: 13px; }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-disp); font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); flex-shrink: 0; }
.review__by b { display: block; font-size: 15px; font-weight: 600; }
.review__by i { display: block; font-style: normal; font-size: 13px; color: var(--muted); }

/* ══════════ Back to top ══════════ */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 850; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: none; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, background .3s, color .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.to-top svg { width: 20px; height: 20px; }
@media (hover: none) { .to-top { display: none; } }

/* ══════════ CTA ══════════ */
.cta { text-align: center; padding: clamp(100px, 16vw, 220px) clamp(20px, 6vw, 120px); overflow: hidden; }
.cta__glow { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 40%, var(--card-glow), transparent 65%); pointer-events: none; }
.cta__label { display: inline-block; }
.cta__title { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2.6rem, 9vw, 7rem); line-height: 0.98; letter-spacing: -0.03em; margin: 16px 0 26px; }
.cta__title .line { display: block; overflow: hidden; }
.cta__title .line > span { display: block; }
.cta__title .line:last-child > span { background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta__sub { color: var(--muted); max-width: 480px; margin: 0 auto 42px; }

/* ══════════ Footer ══════════ */
.footer { padding: clamp(50px, 7vw, 80px) clamp(20px, 6vw, 120px) 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 24px; }
.footer__brand { font-family: var(--font-disp); font-weight: 600; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.footer__nav { display: flex; gap: 28px; }
.footer__nav a { color: var(--muted); font-size: 15px; transition: color .3s; }
.footer__nav a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 26px; color: var(--faint); font-size: 13px; font-family: var(--font-mono); flex-wrap: wrap; gap: 10px; }

/* ══════════ Reveal states ══════════ */
/* Only hide (to animate) when JS is present AND not in lite mode.
   Without JS, or on slow devices, content is visible immediately. */
html.js:not(.lite) .reveal-fade { opacity: 0; transform: translateY(24px); }
.reveal-lines .rl-line { display: block; overflow: hidden; }
.reveal-lines .rl-line > span { display: block; }

/* ══════════ Lite mode (slow network / low-end device / reduced motion) ══════════ */
html.lite .grain,
html.lite .hero__canvas,
html.lite .hero__blob,
html.lite .hero__glow,
html.lite .cursor,
html.lite .cursor-dot,
html.lite .cursor-trail,
html.lite .preloader,
html.lite .scroll-progress { display: none !important; }
html.lite *, html.lite *::before, html.lite *::after {
  animation: none !important;
  transition-duration: 0.001ms !important;
}
html.lite body { cursor: auto; }
html.lite .reveal-fade { opacity: 1 !important; transform: none !important; }
/* reel stacks vertically in lite (no horizontal pin) */
html.lite .reel__track { flex-direction: column; }
html.lite .reel__panel { width: auto; min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }

/* ══════════ Mega-menu nav ══════════ */
.nav__item { position: relative; }
.nav__trigger { background: none; border: 0; font: inherit; cursor: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); padding: 6px 0; }
.nav__trigger:hover { color: var(--text); }
.chev { width: 10px; height: 7px; transition: transform .3s var(--ease); }
.nav__item.has-mega:hover .chev { transform: rotate(180deg); }
/* hover bridge across the gap */
.nav__item.has-mega::after { content: ""; position: absolute; top: 100%; left: -20px; right: -20px; height: 22px; }
.mega {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: 540px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 14px; z-index: 950;
  display: grid; grid-template-columns: 1fr 210px; gap: 12px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mega--wide { width: 560px; grid-template-columns: 1fr; }
.nav__item.has-mega:hover .mega,
.nav__item.has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega__grid { display: grid; gap: 4px; }
.mega__grid--3 { grid-template-columns: 1fr 1fr; }
.mega__link { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; transition: background .25s; }
.mega__link:hover { background: var(--bg-2); }
.mega__ico { color: var(--accent); font-size: 12px; margin-top: 3px; }
.mega__ico.i-b { color: var(--accent-2); } .mega__ico.i-c { color: var(--pink); } .mega__ico.i-d { color: var(--cyan); }
.mega__txt { display: flex; flex-direction: column; }
.mega__txt strong { font-size: 14.5px; font-weight: 600; color: var(--text); }
.mega__txt em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mega__feature { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 20px; border-radius: 14px; background: var(--hero-grad); color: #fff; }
.mega__feature-label { font-family: var(--font-mono); font-size: 12px; opacity: .85; }
.mega__feature-title { font-family: var(--font-disp); font-weight: 600; font-size: 18px; }
.mega__feature-sub { font-size: 12.5px; opacity: .92; line-height: 1.4; }

/* ══════════ Trust strip ══════════ */
.trust { padding: clamp(50px, 7vw, 90px) clamp(20px, 6vw, 120px); text-align: center; border-bottom: 1px solid var(--line); }
.trust__label { font-family: var(--font-mono); font-size: 13px; color: var(--faint); margin-bottom: 32px; }
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 58px); }
.trust__logo { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.55rem); color: var(--muted); opacity: .5; transition: opacity .3s, color .3s, transform .3s; }
.trust__logo:hover { opacity: 1; color: var(--accent); transform: translateY(-2px); }

/* ══════════ Feature deep-dive sections ══════════ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding: clamp(60px, 10vw, 130px) clamp(20px, 6vw, 120px); }
.feature--rev .feature__visual { order: -1; }
.feature__label { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; }
.feature__label.label--pink { color: var(--pink); }
.feature__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.06; }
.feature__title em { font-style: italic; background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.feature__desc { color: var(--muted); margin: 22px 0 26px; max-width: 46ch; }
.feature__list { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 32px; }
.feature__list li { position: relative; padding-left: 30px; color: var(--text); }
.feature__list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: var(--card-glow); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.feature__link { font-weight: 600; color: var(--accent); display: inline-block; }
.feature__link:hover { text-decoration: underline; }
.feature__visual { display: grid; place-items: center; }

/* Mockups (conceptual illustrations, no stock photos) */
.mock { box-shadow: var(--shadow); border-radius: 16px; transition: transform .4s var(--ease); will-change: transform; }
.mock--browser { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mock__bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock__bar span:nth-child(1) { background: #ff5f57; } .mock__bar span:nth-child(2) { background: #febc2e; } .mock__bar span:nth-child(3) { background: #28c840; }
.mock__url { margin-left: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); font-style: normal; background: var(--surface); border: 1px solid var(--line); padding: 4px 12px; border-radius: 6px; }
.mock__screen { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.mock__hero { height: 100px; border-radius: 12px; background: var(--hero-grad); }
.mock__rows { display: flex; flex-direction: column; gap: 9px; }
.mock__rows span { height: 10px; border-radius: 5px; background: var(--bg-3); }
.mock__rows span:nth-child(1) { width: 82%; } .mock__rows span:nth-child(2) { width: 60%; } .mock__rows span:nth-child(3) { width: 72%; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__cards b { height: 66px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.mock--phone { width: 262px; height: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 36px; padding: 12px; position: relative; }
.mock__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: var(--bg-3); border-radius: 0 0 14px 14px; z-index: 2; }
.mock__app { height: 100%; border-radius: 26px; background: var(--bg-2); padding: 34px 16px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.mock__appbar { height: 46px; border-radius: 14px; background: var(--hero-grad); }
.mock__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock__tiles b { height: 62px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mock__list { display: flex; flex-direction: column; gap: 9px; }
.mock__list span { height: 34px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.mock__tabbar { margin-top: auto; height: 48px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; }
.mock__tabbar i { width: 22px; height: 22px; border-radius: 7px; background: var(--bg-3); }
.mock__tabbar i:first-child { background: var(--accent); }

/* ══════════ Pricing ══════════ */
.pricing { padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 9vw, 110px); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 clamp(20px, 6vw, 120px); align-items: start; }
.ptier { position: relative; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.ptier::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--card-glow), transparent 60%); }
.ptier:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ptier:hover::before { opacity: 1; }
.ptier--featured { border-color: var(--accent); box-shadow: 0 20px 50px -20px rgba(79,70,229,.4); }
.ptier__badge { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 11px; color: #fff; background: var(--hero-grad); padding: 5px 11px; border-radius: 100px; }
.ptier__name { font-family: var(--font-disp); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; position: relative; }
.ptier__price { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; position: relative; }
.ptier__price span { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--muted); display: block; margin-bottom: 2px; }
.ptier__desc { color: var(--muted); font-size: 15px; position: relative; }
.ptier__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 10px; position: relative; }
.ptier__list li { position: relative; padding-left: 26px; font-size: 14.5px; }
.ptier__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.ptier .btn { position: relative; margin-top: auto; }
.pricing__note { text-align: center; color: var(--muted); font-size: 15px; max-width: 620px; margin: 40px auto 0; padding: 0 20px; }
.pricing__note a { color: var(--accent); }
@media (max-width: 900px) { .pricing__grid { grid-template-columns: 1fr; } }

/* ══════════ FAQ ══════════ */
.faq { padding: clamp(40px, 6vw, 70px) 0 clamp(80px, 12vw, 160px); }
.faq__list { max-width: 920px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 120px); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--text); transition: color .3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq__plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__plus::after { top: 0; left: 8px; width: 2px; height: 18px; transition: transform .3s var(--ease), opacity .3s; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); opacity: 0; }
.faq__item p { color: var(--muted); padding: 0 44px 28px 0; max-width: 74ch; animation: faqIn .4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ══════════ Rich footer ══════════ */
.footer { background: var(--bg-2); padding: clamp(50px, 7vw, 90px) clamp(20px, 6vw, 120px) 40px; border-top: 1px solid var(--line); }
.footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.footer__cta-title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.9rem); letter-spacing: -0.02em; line-height: 1.05; max-width: 16ch; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: clamp(40px, 5vw, 64px) 0; }
.footer__col h4 { font-size: 12px; font-family: var(--font-mono); color: var(--faint); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .08em; }
.footer__col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 13px; transition: color .3s; }
.footer__col a:hover { color: var(--accent); }
.footer__col--brand { max-width: 360px; }
.footer__brand { font-family: var(--font-disp); font-weight: 600; font-size: 24px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer__desc { color: var(--muted); font-size: 15px; margin-bottom: 24px; line-height: 1.6; }
.footer__contact { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__contact li, .footer__contact a { color: var(--text); font-size: 15px; }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; font-family: var(--font-mono); flex-wrap: wrap; gap: 16px; }
.footer__note { opacity: .65; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: color .3s, background .3s, border-color .3s, transform .3s; }
.footer__social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; }

/* ══════════ Hero stats bar ══════════ */
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 50px); margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); max-width: 660px; }
.hstat { display: flex; flex-direction: column; gap: 3px; }
.hstat b { font-family: var(--font-disp); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hstat span { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }

/* ══════════ Tabbed tech stack ══════════ */
.stack { padding: clamp(60px, 9vw, 120px) 0; }
.stack__wrap { padding: 0 clamp(20px, 6vw, 120px); }
.stack__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.stack__tab { font-family: var(--font-mono); font-size: 14px; padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: none; transition: color .3s, background .3s, border-color .3s; }
.stack__tab:hover { color: var(--text); border-color: var(--accent); }
.stack__tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.stack__grid { display: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.stack__grid.is-active { display: grid; animation: faqIn .4s var(--ease); }
.stack__grid span { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); font-family: var(--font-disp); font-weight: 500; font-size: 15px; transition: transform .3s var(--ease), border-color .3s; }
.stack__grid span::before { content: "◆"; color: var(--accent); font-size: 11px; }
.stack__grid span:hover { transform: translateY(-3px); border-color: var(--line-2); }

/* ══════════ Work metric ══════════ */
.work-row__metric { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--rowcolor, var(--accent)); font-weight: 500; }

/* ══════════ Contact form ══════════ */
.cta--contact { text-align: left; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; max-width: 1120px; margin: 0 auto; position: relative; z-index: 2; }
.contact__title { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; }
.contact__intro .cta__sub { margin: 0 0 32px; text-align: left; }
.contact__trust { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact__trust li { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 15px; }
.contact__trust li > span { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.contact__trust b { color: var(--text); font-weight: 600; }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-family: var(--font-mono); color: var(--muted); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; transition: border-color .3s, box-shadow .3s; cursor: none; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--card-glow); }
.field input.err { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.14); }
.field textarea { resize: vertical; min-height: 96px; }
.contact__form .btn { grid-column: 1 / -1; margin-top: 4px; }
.contact__success { grid-column: 1 / -1; color: var(--accent); font-family: var(--font-mono); font-size: 14px; text-align: center; margin-top: 4px; }
.contact__success--err { color: #dc2626; }
.contact__alt { margin-top: 18px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.contact__alt a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.contact__alt a:hover { border-bottom-color: var(--accent); }
.footer__contacts { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.footer__email { font-family: var(--font-mono); font-size: 14px; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; align-self: flex-start; }
.footer__email:hover { border-bottom-color: currentColor; }
.footer__email-sub { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.footer__email-sub a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.footer__email-sub a:hover { color: var(--accent); border-bottom-color: currentColor; }

/* ══════════ Code showcase ══════════ */
.code { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding: clamp(60px, 10vw, 130px) clamp(20px, 6vw, 120px); }
.code__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.05; margin: 14px 0 0; }
.code__title em { font-style: italic; background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.code__desc { color: var(--muted); margin: 22px 0 24px; max-width: 44ch; }
.code__points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.code__points li { position: relative; padding-left: 30px; color: var(--text); }
.code__points li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: var(--card-glow); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
/* the editor window — deep slate (not black) in BOTH themes, like real editors */
.code__window { background: #161b2b; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.code__bar { display: flex; align-items: center; gap: 18px; padding: 12px 16px; background: #10141f; border-bottom: 1px solid rgba(255,255,255,0.07); }
.code__dots { display: flex; gap: 7px; }
.code__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code__dots i:nth-child(1) { background: #ff5f57; } .code__dots i:nth-child(2) { background: #febc2e; } .code__dots i:nth-child(3) { background: #28c840; }
.code__tabs { display: flex; gap: 4px; }
.code__tab { background: none; border: 0; cursor: none; font-family: var(--font-mono); font-size: 12.5px; color: #7b86a8; padding: 6px 12px; border-radius: 8px; transition: color .25s, background .25s; }
.code__tab:hover { color: #cdd4ec; }
.code__tab.is-active { color: #fff; background: rgba(255,255,255,0.08); }
.code__body { margin: 0; padding: 22px 24px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; color: #dfe4f4; }
.code__body .snip { display: none; white-space: pre; }
.code__body .snip.is-active { display: block; }
.code .k { color: #c792ea; } /* keyword */
.code .s { color: #c3e88d; } /* string */
.code .f { color: #82aaff; } /* function */
.code .c { color: #5f6a86; font-style: italic; } /* comment */
.code .d { color: #ffcb6b; } /* decorator */

/* ══════════ CTA perks ══════════ */
.cta__perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.cta__perks span { position: relative; }

/* ══════════ Industries ══════════ */
.industries { padding: clamp(60px, 9vw, 120px) 0; }
.ind__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 clamp(20px, 6vw, 120px); }
.ind { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.ind:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ind__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 24px; margin-bottom: 20px; }
.ind h3 { font-family: var(--font-disp); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.ind p { color: var(--muted); font-size: 14.5px; }

/* ══════════ Team ══════════ */
.team { padding: clamp(60px, 9vw, 120px) 0; background: var(--bg-2); }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 clamp(20px, 6vw, 120px); }
.member { text-align: center; padding: 36px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.member__avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-family: var(--font-disp); font-weight: 700; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 26px -10px var(--c1); }
.member h3 { font-family: var(--font-disp); font-weight: 600; font-size: 1.15rem; }
.member p { color: var(--muted); font-size: 13.5px; font-family: var(--font-mono); margin-top: 6px; }

/* ══════════ Responsive ══════════ */
@media (max-width: 1040px) {
  .ind__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature--rev .feature__visual { order: 0; }
  .code { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .footer__col--brand { grid-column: 1 / -1; max-width: 480px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 40px 1fr 40px; }
  .work-row__tags { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .contact__form { grid-template-columns: 1fr; }
}

/* ══════════ Horizontal reel (pinned) ══════════ */
.reel { position: relative; background: var(--bg-2); overflow: hidden; }
.reel__track { display: flex; }
.reel__panel { flex: 0 0 auto; width: min(540px, 86vw); min-height: 90vh; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 96px); border-right: 1px solid var(--line); }
.reel__intro { width: min(640px, 92vw); }
.reel__heading { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -0.03em; line-height: 1.02; margin-top: 16px; }
.reel__hint { margin-top: 26px; font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.reel__bar { width: 60px; height: 4px; border-radius: 4px; background: var(--pc, var(--accent)); margin-bottom: 28px; }
.reel__num { font-family: var(--font-mono); font-size: 15px; color: var(--pc, var(--accent)); }
.reel__panel h3 { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.9rem); letter-spacing: -0.02em; margin: 14px 0 18px; line-height: 1.05; }
.reel__panel p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); max-width: 38ch; }
@media (max-width: 900px) {
  .reel__track { flex-direction: column; }
  .reel__panel { width: auto; min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: clamp(50px, 12vw, 80px) clamp(20px, 6vw, 40px); }
}

/* ══════════ Scroll progress bar ══════════ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; background: var(--hero-grad); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progressGrow linear both; animation-timeline: scroll(root); }
}
@keyframes progressGrow { to { transform: scaleX(1); } }

/* ══════════ Hero aurora mesh (blobs) ══════════ */
.hero__blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero__blob--1 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(79,70,229,.34), transparent 70%); top: 8%; left: 4%; animation: blobDrift1 18s ease-in-out infinite; }
.hero__blob--2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(139,92,246,.30), transparent 70%); bottom: 10%; right: 6%; animation: blobDrift2 22s ease-in-out infinite; }
.hero__blob--3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(8,145,178,.22), transparent 70%); top: 42%; right: 22%; animation: blobDrift1 26s ease-in-out infinite reverse; }
.hero__blob--4 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(236,72,153,.18), transparent 70%); bottom: 30%; left: 24%; animation: blobDrift2 30s ease-in-out infinite; }
[data-theme="dark"] .hero__blob { opacity: .55; }
@keyframes blobDrift1 { 50% { transform: translate(60px, 44px) scale(1.15); } }
@keyframes blobDrift2 { 50% { transform: translate(-52px, -32px) scale(1.1); } }

/* ══════════ Film grain ══════════ */
.grain { position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: 999; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(6) infinite; }
[data-theme="dark"] .grain { opacity: .07; }
@keyframes grainShift { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-4%)} 60%{transform:translate(-3%,2%)} 80%{transform:translate(4%,-2%)} 100%{transform:translate(0,0)} }

/* ══════════ Gradient-text shimmer ══════════ */
.hero__title .line:last-child > span,
.hero__rotate .rotator span,
.cta__title .line:last-child > span,
.stat__num, .hstat b, .reviews__score, .feature__title em, .code__title em {
  background-size: 220% auto; animation: gradShine 8s linear infinite;
}
@keyframes gradShine { to { background-position: 220% center; } }

/* ══════════ Mockup float + skeleton shimmer ══════════ */
.feature__visual { animation: floatY 6s ease-in-out infinite; }
.feature--rev .feature__visual { animation-delay: -3s; }
@keyframes floatY { 50% { transform: translateY(-14px); } }
.mock__hero, .mock__appbar { background-size: 200% 200%; animation: gradMove 5s ease infinite; }
@keyframes gradMove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.mock__rows span, .mock__cards b, .mock__tiles b, .mock__list span { animation: skelPulse 2.4s ease-in-out infinite; }
.mock__cards b:nth-child(2), .mock__tiles b:nth-child(2) { animation-delay: .3s; }
.mock__cards b:nth-child(3), .mock__tiles b:nth-child(3) { animation-delay: .6s; }
.mock__tiles b:nth-child(4) { animation-delay: .9s; }
@keyframes skelPulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ══════════ Code caret ══════════ */
.code__body .snip.is-active::after { content: "▋"; color: #82aaff; animation: caretBlink 1.1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* ══════════ Scroll-driven card entrances (modern CSS) ══════════ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ind, .member, .review, .stack__grid.is-active span {
      animation: cardRise linear both; animation-timeline: view(); animation-range: entry 0% entry 48%;
    }
  }
}
@keyframes cardRise { from { opacity: 0; transform: translateY(46px) scale(.96); } to { opacity: 1; transform: none; } }

/* icon / avatar hover flourishes */
.ind__ico, .member__avatar { transition: transform .4s var(--ease); }
.ind:hover .ind__ico { transform: translateY(-4px) rotate(-6deg); }
.member:hover .member__avatar { transform: scale(1.08) rotate(3deg); }

/* ══════════ Mobile menu ══════════ */
.nav__burger span { transition: transform .35s var(--ease); }
.nav__burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobmenu { position: fixed; inset: 0; z-index: 890; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(-4%); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s; }
.mobmenu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobmenu__links { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.mobmenu__links a { font-family: var(--font-disp); font-weight: 600; font-size: clamp(2rem, 9vw, 3.1rem); letter-spacing: -0.02em; color: var(--text); padding: 6px 0; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s; }
.mobmenu.open .mobmenu__links a { opacity: 1; transform: none; }
.mobmenu.open .mobmenu__links a:nth-child(1) { transition-delay: .12s; }
.mobmenu.open .mobmenu__links a:nth-child(2) { transition-delay: .18s; }
.mobmenu.open .mobmenu__links a:nth-child(3) { transition-delay: .24s; }
.mobmenu.open .mobmenu__links a:nth-child(4) { transition-delay: .30s; }
.mobmenu.open .mobmenu__links a:nth-child(5) { transition-delay: .36s; }
.mobmenu.open .mobmenu__links a:nth-child(6) { transition-delay: .42s; }
.mobmenu__links a:hover { color: var(--accent); }
.mobmenu__cta { margin-top: 22px; color: var(--accent); }

/* ══════════ About / founder ══════════ */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding: clamp(70px, 11vw, 150px) clamp(20px, 6vw, 120px); }
.about__media { position: relative; display: grid; place-items: center; }
.about__photo { width: min(340px, 78vw); aspect-ratio: 4 / 5; border-radius: 26px; background: linear-gradient(150deg, var(--accent), var(--accent-2)); display: grid; place-items: center; box-shadow: var(--shadow); }
.about__photo span { font-family: var(--font-disp); font-weight: 700; font-size: clamp(3.5rem, 8vw, 5.5rem); color: rgba(255,255,255,.92); }
.about__badge { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 10px 20px; font-family: var(--font-mono); font-size: 13px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.about__text h2 { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; margin: 14px 0 22px; }
.about__text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; line-height: 1.7; }
.about__text b { color: var(--text); font-weight: 600; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about__media { order: -1; } }

/* ══════════ WhatsApp float ══════════ */
.whatsapp-fab { position: fixed; right: 26px; bottom: 88px; z-index: 845; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.55); transition: transform .3s var(--ease); }
.whatsapp-fab:hover { transform: scale(1.08) translateY(-2px); }
.whatsapp-fab svg { width: 28px; height: 28px; }
@media (max-width: 900px) { .whatsapp-fab { bottom: 78px; right: 16px; width: 50px; height: 50px; } }

/* ══════════ 404 page ══════════ */
.notfound { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px clamp(20px, 6vw, 40px) 80px; }
.notfound__code { font-family: var(--font-disp); font-weight: 700; font-size: clamp(5rem, 20vw, 11rem); line-height: 1; letter-spacing: -0.04em; background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.notfound__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 8px 0 14px; }
.notfound__text { color: var(--muted); max-width: 44ch; margin-bottom: 34px; }
.notfound__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ══════════ Legal pages ══════════ */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(120px, 16vw, 170px) clamp(20px, 6vw, 40px) clamp(60px, 9vw, 100px); }
.legal h1 { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.legal h2 { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.6rem); letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal p { color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.legal a { color: var(--accent); }
.legal__meta { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.legal__back { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ══════════ Case-study page ══════════ */
.case__hero { padding: clamp(120px, 16vw, 190px) clamp(20px, 6vw, 120px) clamp(40px, 6vw, 70px); max-width: 1100px; }
.case__back { display: inline-block; font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-bottom: 30px; transition: color .3s; }
.case__back:hover { color: var(--accent); }
.case__eyebrow { font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-bottom: 18px; }
.case__title { font-family: var(--font-disp); font-weight: 700; font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: -0.03em; line-height: 1; }
.case__sub { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 620px; margin-top: 24px; }
.case__facts { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.case__facts div { display: flex; flex-direction: column; gap: 5px; }
.case__facts span { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.case__facts b { font-family: var(--font-disp); font-weight: 600; font-size: 16px; }
.case__visual { padding: clamp(20px, 4vw, 50px) clamp(20px, 6vw, 120px) clamp(50px, 8vw, 90px); display: grid; place-items: center; }
.case__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 120px) clamp(60px, 9vw, 110px); max-width: 1200px; }
.case__col h2 { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 18px; }
.case__col p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 800px) { .case__body { grid-template-columns: 1fr; } }

/* ══════════ Cursor trail ══════════ */
.cursor-trail { position: fixed; top: 0; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); opacity: 0; }
@media (hover: none) { .cursor-trail { display: none; } }

/* ══════════ Mockup clip-path wipe reveal ══════════ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mock { animation: mockWipe linear both; animation-timeline: view(); animation-range: entry 8% entry 52%; }
  }
}
@keyframes mockWipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ══════════ Kinetic footer headline ══════════ */
.footer__cta-title span { display: inline-block; transition: transform .3s var(--ease), color .3s; }
.footer__cta-title span.sp { width: .32em; }
.footer__cta-title:hover span { color: var(--muted); }
.footer__cta-title span:hover { transform: translateY(-10px) rotate(-4deg); color: var(--accent); }

/* ══════════ Confetti ══════════ */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9997; }

/* ══════════ Kinetic headline letters ══════════ */
.kchar { display: inline-block; transition: transform .45s var(--ease); will-change: transform; }

/* ══════════ Page-transition curtain ══════════ */
.page-curtain { position: fixed; inset: 0; z-index: 9996; background: var(--hero-grad); transform: scaleY(0); pointer-events: none; }
.page-curtain.cover { transform-origin: bottom; animation: curtainCover .5s var(--ease) forwards; }
.page-curtain.reveal { transform-origin: top; animation: curtainReveal .6s var(--ease) forwards; }
@keyframes curtainCover { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes curtainReveal { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* ══════════ Reduced motion ══════════ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal-fade { opacity: 1; transform: none; }
  .hero__title .line > span, .cta__title .line > span { transform: none !important; }
  body { cursor: auto; }
  .cursor, .cursor-dot, .cursor-trail, .grain { display: none; }
}

/* ══════════ Mobile performance + sticky CTA ══════════ */
@media (max-width: 768px) {
  .hero__canvas { display: none; }          /* skip particle canvas on phones */
  .grain { display: none; }                 /* skip film grain on phones */
  .hero__blob--3, .hero__blob--4 { display: none; }
  .to-top { display: none; }                /* sticky CTA replaces it */
}
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-cta { display: flex; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 840;
    align-items: center; justify-content: center; padding: 15px; border-radius: 100px;
    background: var(--hero-grad); color: #fff; font-weight: 600; font-size: 16px;
    box-shadow: 0 14px 34px -8px rgba(79,70,229,.55); }
}
