/* =========================================================
   DESIGN TOKENS — change the brand colour here
   ========================================================= */
:root {
  /* Brand */
  --accent: #d91f26;          /* hero red */
  --accent-rgb: 217, 31, 38;
  --accent-hover: #b5161c;
  --accent-2: #1f4fd1;        /* hero blue — second colour, gradients and highlights */
  --accent-2-rgb: 31, 79, 209;
  --accent-text: #b8161c;     /* red for text on light (AA contrast) */
  --accent-ink: #ffffff;      /* text on accent buttons */

  /* Neutrals (slate) */
  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #526077;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.14);
  --line-3: rgba(15, 23, 42, 0.26);
  --hover-wash: rgba(15, 23, 42, 0.04);
  --chrome: #f1f4f8;
  --scroll: #cbd3df;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --success: #15803d;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 18px 40px -18px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 40px 80px -36px rgba(15, 23, 42, .35), 0 8px 20px -8px rgba(15, 23, 42, .08);

  --radius: 16px;
  --display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

/* Dark "ink" theme for the closing contact + footer band */
.section--contact, .footer {
  --bg: #0b1220;
  --bg-2: #0f182b;
  --card: #111b30;
  --text: #e7ecf5;
  --muted: #9aa7bd;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-3: rgba(255, 255, 255, 0.3);
  --hover-wash: rgba(255, 255, 255, 0.06);
  --accent-text: #ff8a8f;
  background: var(--bg);
  color: var(--text);
}
.footer { border-top-color: var(--line) !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 20px; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 15px var(--body); border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700;
}
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .3s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 110px); overflow: hidden; }
.hero__glow {
  position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 65%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } }
.hero__title { font-size: clamp(38px, 7vw, 78px); max-width: 15ch; font-weight: 700; }
.hero__title em { font-style: normal; color: var(--accent-text); }
.hero__lead { margin-top: 24px; max-width: 56ch; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stats { list-style: none; padding: 0; margin: 64px 0 0; display: flex; flex-wrap: wrap; gap: 16px 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.stats strong { display: block; font: 700 clamp(30px, 4vw, 40px) var(--display); }
.stats span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 48px; }

/* Projects */
.projects { display: grid; gap: clamp(56px, 8vw, 96px); }
.project { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.project--flip .project__media { order: 2; }
.project__shot {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--card);
  box-shadow: var(--shadow-lg);
  transition: transform .4s, border-color .4s;
}
.project__shot:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .5); }
.project__shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s; }
.project__shot:hover img { transform: scale(1.03); }
.browser { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--chrome); }
.browser i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .browser i:nth-child(2) { background: #febc2e; } .browser i:nth-child(3) { background: #28c840; }
.browser span { margin-left: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project__type { font-size: 13px; color: var(--accent-text); font-weight: 600; margin-bottom: 10px; }
.project__body h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }
.project__body > p:not(.project__type) { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.link { font-weight: 600; color: var(--accent-text); border-bottom: 1px solid transparent; transition: border-color .2s; }
.link:hover { border-color: var(--accent-text); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.service {
  padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.service:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateY(-4px); }
.service__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); margin-bottom: 20px; }
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.process li { padding: 24px 20px; border-top: 2px solid var(--line-2); transition: border-color .3s; }
.process li:hover { border-color: var(--accent-text); }
.process span { font: 700 14px var(--display); color: var(--accent-text); }
.process h3 { font-size: 18px; margin: 10px 0 6px; }
.process p { color: var(--muted); font-size: 14px; }

/* Contact */
.section--contact { background: var(--bg); border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__intro > p:not(.eyebrow) { color: var(--muted); margin-top: 16px; max-width: 42ch; }
.contact__links { display: grid; gap: 12px; margin-top: 32px; }
.contact__link {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px;
  border-radius: 12px; border: 1px solid var(--line-2); transition: border-color .2s, background .2s;
}
.contact__link:hover { border-color: var(--accent-text); background: rgba(var(--accent-rgb), .06); }
.contact__link span { color: var(--muted); overflow-wrap: anywhere; text-align: right; }
.form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 32px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: 400 15px var(--body); resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.form input.invalid, .form textarea.invalid { border-color: #ff6b6b; }
.form__error { color: #ff8a8a; font-size: 14px; min-height: 0; }
.form__error:empty { display: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a:hover { color: var(--text); }

/* WhatsApp floating button */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; box-shadow: 0 10px 30px rgba(37, 211, 102, .35);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; fill: #fff; }

/* Hero grid texture */
.hero__grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 20%, transparent 75%);
  opacity: .6;
}

/* Clients strip */
.clients { border-block: 1px solid var(--line); background: var(--bg-2); }
.clients__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding: 26px 0; }
.clients p { color: var(--muted); font-size: 14px; max-width: 30ch; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.clients li { font: 600 17px var(--display); color: var(--muted); letter-spacing: -0.01em; opacity: .8; transition: opacity .2s, color .2s; }
.clients li:hover { opacity: 1; color: var(--text); }

/* Case study */
.case { margin: 0; display: grid; gap: 14px; }
.case div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.case div:last-child { border-bottom: 0; padding-bottom: 0; }
.case dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding-top: 3px; }
.case dd { margin: 0; color: var(--muted); font-size: 15px; }

/* Section sub */
.section__sub { color: var(--muted); margin-top: 14px; max-width: 46ch; }

/* About */
.about { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__card { padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.about__avatar {
  width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font: 700 32px var(--display);
}
.about__name { font: 600 22px var(--display); }
.about__role { color: var(--muted); margin-bottom: 22px; }
.about__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.about__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; text-align: right; }
.about__facts span { color: var(--muted); text-align: left; }
.ok { color: var(--success); font-weight: 600; }
.about__text h2 { margin-bottom: 20px; }
.about__text > p:not(.eyebrow):not(.stack__label) { color: var(--muted); margin-bottom: 14px; max-width: 60ch; }
.stack__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 28px 0 12px; }
.stack { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font-size: 13px; padding: 6px 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px var(--display); color: var(--accent-text); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* Footer columns */
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 24px 0 36px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols .brand { color: var(--text); }
.footer__tag { margin-top: 6px; }
.footer__h { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.footer__inner { border-top: 1px solid var(--line); padding-top: 24px; padding-right: 76px; }

/* =========================================================
   MOTION SYSTEM
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--scroll) var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .6);
}

/* Nav: active link underline */
.nav__links a:not(.btn) { position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--text) !important; }
.nav { transition: border-color .3s, background .3s, transform .45s var(--ease-out); }
.nav.is-hidden { transform: translateY(-100%); }

/* Hero intro sequence */
/* --io = intro offset: waits for the brand curtain to lift */
:root { --io: .85s; }
.intro { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 90ms + 150ms + var(--io)); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > * { display: inline-block; transform: translateY(105%); animation: wordUp 1s var(--ease-out) forwards; animation-delay: calc(var(--wd, 0s) + var(--io)); }
.hero__title .w:nth-of-type(1) > * { --wd: .20s; }
.hero__title .w:nth-of-type(2) > * { --wd: .26s; }
.hero__title .w:nth-of-type(3) > * { --wd: .32s; }
.hero__title .w:nth-of-type(4) > * { --wd: .38s; }
.hero__title .w:nth-of-type(5) > * { --wd: .44s; }
.hero__title .w:nth-of-type(6) > * { --wd: .50s; }
.hero__title .w:nth-of-type(7) > * { --wd: .56s; }
.hero__title .w:nth-of-type(8) > * { --wd: .62s; }
.hero__title .w:nth-of-type(9) > * { --wd: .70s; }
.hero__title .w:nth-of-type(10) > * { --wd: .76s; }
.hero__title em {
  background: linear-gradient(90deg, var(--accent), #ff6b4a, var(--accent-2), var(--accent));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation-name: wordUp, shimmerText;
  animation-duration: 1s, 6s;
  animation-timing-function: var(--ease-out), linear;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, infinite;
  animation-delay: calc(var(--wd, 0s) + var(--io)), 2.6s;
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes wordUp { to { transform: none; } }
@keyframes shimmerText { to { background-position: -300% 0; } }

/* Floating hero glow + grid drift */
.hero__glow { animation: floatGlow 14s var(--ease-in-out) infinite alternate; }
@keyframes floatGlow { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-120px, 80px) scale(1.15); } }
.hero__grid { animation: gridDrift 30s linear infinite; }
@keyframes gridDrift { to { background-position: 64px 64px, 64px 64px; } }

/* Buttons: shine sweep + arrow nudge + press */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease-out), background .3s, border-color .3s, box-shadow .35s; }
.btn--primary { box-shadow: 0 8px 24px -10px rgba(var(--accent-rgb), .6); }
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(var(--accent-rgb), .75); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.97); }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--ghost::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover-wash);
  transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease-out);
}
.btn--ghost:hover::after { transform: scaleY(1); }
.link { display: inline-flex; gap: 6px; transition: gap .3s var(--ease-out), border-color .2s; }
.link:hover { gap: 10px; }

/* Scroll reveal (staggered by sibling index) */
.reveal { opacity: 0; transform: translateY(36px); filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 150ms); }
[data-stagger].is-visible > * { opacity: 1; transform: none; }

/* Section heading accent line */
.section__head h2 { position: relative; }
.section__head .eyebrow::before {
  content: ""; width: 0; height: 2px; background: var(--accent); display: inline-block; margin-right: 0;
  transition: width .8s var(--ease-out) .2s, margin .8s var(--ease-out) .2s;
}
.section__head.is-visible .eyebrow::before { width: 28px; margin-right: 4px; }

/* Project screenshots: slide-in mask, 3D tilt, glare */
.projects { perspective: 1400px; }
.project__shot { transform-style: preserve-3d; will-change: transform;
  transition: transform .6s var(--ease-out), border-color .4s, box-shadow .6s var(--ease-out); }
.project__shot:hover { transform: none; box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .28), 0 0 0 1px rgba(var(--accent-rgb), .25); }
.project__shot.is-tilting { transition: transform .12s linear, border-color .4s, box-shadow .6s; }
.project__shot { position: relative; }
.project__shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .14), transparent 45%);
}
.project__shot:hover::after { opacity: 1; }
.project.reveal .project__shot { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.2s var(--ease-out) .1s, transform .6s var(--ease-out), border-color .4s, box-shadow .6s; }
.project.reveal.is-visible .project__shot { clip-path: inset(0 0 0 0 round var(--radius)); }
.project__shot img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.project.is-visible .project__shot img { transform: scale(1); }
.project.is-visible .project__shot:hover img { transform: scale(1.04); transition-duration: .8s; }
.project__body > * { opacity: 0; transform: translateX(-16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.project--flip .project__body > * { transform: translateX(16px); }
.project.is-visible .project__body > * { opacity: 1; transform: none; }
.project.is-visible .project__body > *:nth-child(1) { transition-delay: .25s; }
.project.is-visible .project__body > *:nth-child(2) { transition-delay: .32s; }
.project.is-visible .project__body > *:nth-child(3) { transition-delay: .40s; }
.project.is-visible .project__body > *:nth-child(4) { transition-delay: .48s; }
.project.is-visible .project__body > *:nth-child(5) { transition-delay: .56s; }
.tags li { transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease-out); }
.tags li:hover { border-color: var(--accent-text); color: var(--accent-text); transform: translateY(-2px); }

/* Cursor spotlight on cards */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .12), transparent 60%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }
.service { transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service__icon { transition: transform .5s var(--ease-out), background .4s; }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.12); background: rgba(var(--accent-rgb), .22); }

/* Clients marquee */
.marquee { flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0 !important; flex-wrap: nowrap !important; animation: marquee 28s linear infinite; }
.marquee__track li { padding-inline: 28px; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Process: progress line fills on reveal */
.process li { position: relative; border-top-color: var(--line-2); }
.process li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 180ms + 300ms);
}
.process li.is-visible::before { transform: scaleX(1); }
.process li span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .4s, color .4s, border-color .4s; }
.process li:hover span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-text); }

/* About avatar ring */
.about__avatar { position: relative; }
.about__avatar::after {
  content: ""; position: absolute; inset: -6px; border-radius: 26px; border: 1px dashed rgba(var(--accent-rgb), .5);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stack li { transition: transform .3s var(--ease-out), border-color .3s, color .3s; }
.stack li:hover { transform: translateY(-3px); border-color: var(--accent-text); color: var(--accent-text); }

/* FAQ smooth open */
.faq details { transition: border-color .3s, background .3s; }
.faq details:hover { border-color: var(--line-2); }
.faq details .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq details .faq__a > div { overflow: hidden; }
.faq details.is-open .faq__a { grid-template-rows: 1fr; }
.faq summary::after { transition: transform .45s var(--ease-out); }

/* Contact links + form */
.contact__link { transition: border-color .3s, background .3s, transform .4s var(--ease-out); }
.contact__link:hover { transform: translateX(6px); }
.form input, .form select, .form textarea { transition: border-color .25s, box-shadow .25s, background .25s; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--line-3); }
.form.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* WhatsApp FAB pulse */
.fab { animation: fabIn .8s var(--ease-out) 2s both; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: ping 2.4s var(--ease-out) 2s infinite; }
@keyframes fabIn { from { opacity: 0; transform: scale(.4) translateY(30px); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }

/* Mobile menu: staggered links */
@media (max-width: 720px) {
  .nav__links a { opacity: 0; transform: translateY(-8px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
  .nav__links.is-open a { opacity: 1; transform: none; }
  .nav__links.is-open a:nth-child(1) { transition-delay: .04s; }
  .nav__links.is-open a:nth-child(2) { transition-delay: .08s; }
  .nav__links.is-open a:nth-child(3) { transition-delay: .12s; }
  .nav__links.is-open a:nth-child(4) { transition-delay: .16s; }
  .nav__links.is-open a:nth-child(5) { transition-delay: .20s; }
  .nav__links.is-open a:nth-child(6) { transition-delay: .24s; }
  .nav__links a:not(.btn)::after { display: none; }
  .clients__inner { flex-direction: column; align-items: flex-start; }
  .marquee { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, [data-stagger] > *, .intro, .hero__title .w > *, .project__body > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .project.reveal .project__shot { clip-path: none !important; }
  .hero__title em { color: var(--accent-text); background: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .project, .contact, .about, .faq { grid-template-columns: 1fr; }
  .about__card { max-width: 420px; }
  .project--flip .project__media { order: 0; }
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; justify-content: center; }
  .process { grid-template-columns: 1fr; }
  .case div { grid-template-columns: 1fr; gap: 4px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:first-child { grid-column: 1 / -1; }
  .stats { gap: 16px 36px; }
}

/* =========================================================
   v3 — HERO SHOWCASE, BENEFITS, MOCKUPS, PACKAGES, A11Y
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* Hero layout */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.hero__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.035em; max-width: 14ch; }
.hero__lead { max-width: 50ch; }
.hero__note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero__note svg { width: 16px; height: 16px; fill: none; stroke: var(--success); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero__note svg:not(:first-child) { margin-left: 12px; }

/* Showcase composition */
.showcase { position: relative; aspect-ratio: 1 / .86; }
.showcase > * { position: absolute; }
.showcase__browser, .showcase__back {
  border-radius: 14px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.showcase__browser img, .showcase__back img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.showcase__browser { left: 0; top: 14%; width: 86%; z-index: 2; transform: translate(var(--px1, 0), var(--py1, 0)); transition: transform .5s var(--ease-out); }
.showcase__back { right: 0; top: 0; width: 64%; z-index: 1; opacity: .9; transform: translate(var(--px2, 0), var(--py2, 0)) scale(.98); transition: transform .6s var(--ease-out); }
.showcase .showcase__phone { position: absolute; right: 2%; bottom: 0; width: 25%; z-index: 3; transform: translate(var(--px3, 0), var(--py3, 0)) rotate(3deg); transition: transform .4s var(--ease-out); }
.showcase .browser { padding: 8px 12px; }
.showcase .browser i { width: 8px; height: 8px; }
.showcase .browser span { font-size: 11px; }

/* Phone frame */
.phone {
  position: relative; border-radius: 26px; padding: 6px; background: #0f172a;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 20px; display: block; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 30%; height: 10px; transform: translateX(-50%); border-radius: 10px; background: #0f172a; z-index: 1; }

/* Floating chips */
.chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 4; white-space: nowrap;
  animation: bob 6s var(--ease-in-out) infinite;
}
.chip b { display: block; font-size: 13px; color: var(--text); }
.chip small { display: block; font-size: 12px; color: var(--muted); }
.chip__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .1); }
.chip__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip__icon--green { background: rgba(21, 128, 61, .1); }
.chip__icon--green svg { stroke: var(--success); }
.chip--a { left: -4%; bottom: 8%; }
.chip--b { right: 20%; top: -4%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Benefits band */
.benefits { border-block: 1px solid var(--line); }
.benefits__list { list-style: none; margin: 0 auto; padding: 36px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefits__list li { display: flex; gap: 14px; align-items: flex-start; }
.benefits__list svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(var(--accent-rgb), .08); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefits__list b { display: block; font: 700 16px var(--display); }
.benefits__list span { font-size: 14px; color: var(--muted); }

/* Project media: desktop + phone */
.project__media { position: relative; padding-right: 7%; padding-bottom: 6%; }
.project__phone { position: absolute; right: 0; bottom: 0; width: 24%; z-index: 2; transform: translateY(24px); opacity: 0;
  transition: transform 1s var(--ease-out) .5s, opacity 1s var(--ease-out) .5s; }
.project.is-visible .project__phone { transform: none; opacity: 1; }
.project__media:hover .project__phone { transform: translateY(-6px) rotate(2deg); transition-delay: 0s; transition-duration: .5s; }

/* Section head centered */
.section__head--center { text-align: center; }
.section__head--center .section__sub { margin-inline: auto; }

/* Packages */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan--featured { border: 2px solid var(--accent); box-shadow: 0 30px 60px -30px rgba(var(--accent-rgb), .45); }
.plan__badge { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.plan h3 { font-size: 22px; margin-bottom: 8px; }
.plan__for { color: var(--muted); font-size: 15px; margin-bottom: 22px; min-height: 3.2em; }
.plan__list { list-style: none; padding: 22px 0 0; margin: 0 0 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; align-content: start; }
.plan__list li { position: relative; padding-left: 28px; font-size: 15px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d91f26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Responsive for v3 components */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__title { max-width: 16ch; }
  .showcase { max-width: 620px; width: 100%; margin-inline: auto; }
  .benefits__list { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan__for { min-height: 0; }
}
@media (max-width: 560px) {
  .benefits__list { grid-template-columns: 1fr; padding: 28px 0; }
  .chip { padding: 8px 10px 8px 8px; }
  .chip small { display: none; }
  .chip--a { left: 0; }
  .chip--b { right: 8%; }
  .phone { border-radius: 18px; padding: 4px; }
  .phone img { border-radius: 14px; }
  .phone::before { top: 8px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .project__phone { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   v4 — ADVANCED LAYER
   1. Brand curtain intro
   2. Dark theme tokens + View Transition theme switch
   3. Registered custom properties (@property) — animated borders
   4. Native scroll-driven animations (progressive enhancement)
   5. :has() focus states
   ========================================================= */

/* 1. Brand curtain ------------------------------------------------ */
.curtain {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; align-content: center; gap: 18px;
  background: var(--text); pointer-events: none;
  animation: curtainUp .75s var(--ease-in-out) .55s forwards;
}
.curtain__mark {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 800 24px var(--display);
  animation: markIn .5s var(--ease-out) both;
}
.curtain__line { width: 120px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; position: relative; }
.curtain__line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: lineFill .55s var(--ease-out) both; }
@keyframes curtainUp { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes markIn { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
@keyframes lineFill { from { transform: scaleX(0); } }
.curtain { clip-path: inset(0 0 0 0); }

/* 2. Dark theme ---------------------------------------------------- */
:root { --chip-bg: rgba(255, 255, 255, .92); color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a101d;
  --bg-2: #0f1728;
  --card: #111a2d;
  --text: #e8edf6;
  --muted: #9aa7bd;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.28);
  --hover-wash: rgba(255, 255, 255, 0.06);
  --chrome: #172238;
  --scroll: #2a3652;
  --nav-bg: rgba(10, 16, 29, 0.78);
  --chip-bg: rgba(17, 26, 45, .9);
  --accent: #ef3038;
  --accent-rgb: 239, 48, 56;
  --accent-hover: #ff4d55;
  --accent-2: #4b7bff;
  --accent-2-rgb: 75, 123, 255;
  --accent-text: #ff8a8f;
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -36px rgba(0, 0, 0, .85), 0 8px 20px -8px rgba(0, 0, 0, .4);
}
:root[data-theme="dark"] .section--contact,
:root[data-theme="dark"] .footer { --bg: #060b15; --card: #0e1626; }
:root[data-theme="dark"] .curtain { background: #060b15; }
.chip { background: var(--chip-bg); }
body { transition: background-color .3s, color .3s; }

/* Theme toggle button */
.nav__links { margin-left: auto; }
.nav__inner { gap: 20px; }
.theme-toggle {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--text); display: grid; place-items: center;
  transition: border-color .3s, transform .4s var(--ease-out), background .3s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(-12deg); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease-out), opacity .3s; }
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }
@media (max-width: 720px) { .theme-toggle { margin-left: auto; } }

/* View Transition: circular reveal is driven from JS; disable default crossfade */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* 3. @property animated gradient borders --------------------------- */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--angle), var(--accent), #ff6b4a, var(--accent-2), var(--accent)) border-box;
  animation: spinAngle 6s linear infinite;
}
.about__avatar::after {
  border: 0; inset: -5px; padding: 2px; border-radius: 27px;
  background: conic-gradient(from var(--angle), var(--accent), transparent 30%, var(--accent-2) 60%, transparent 80%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinAngle 4s linear infinite;
}
.btn--primary.btn--glow { overflow: visible; }
@keyframes spinAngle { to { --angle: 360deg; } }

/* 5. :has() — focus the hovered item, quietly dim siblings ---------- */
@media (hover: hover) {
  .services .service, .plans .plan, .faq__list details, .stack li { transition-property: transform, box-shadow, border-color, opacity, filter, color, background; }
  .services:has(.service:hover) .service:not(:hover) { opacity: .55; filter: saturate(.5); }
  .plans:has(.plan:hover) .plan:not(:hover) { opacity: .7; }
  .faq__list:has(details:hover) details:not(:hover):not([open]) { opacity: .6; }
}
/* Nav gets a hairline as soon as the mobile menu is open */
.nav:has(.nav__links.is-open) { border-bottom-color: var(--line); }

/* 4. Native scroll-driven animations -------------------------------- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Progress bar purely in CSS */
    .progress { transform: none; scale: 0 1; animation: progressGrow linear both; animation-timeline: scroll(root); }
    @keyframes progressGrow { to { scale: 1 1; } }

    /* Hero recedes as you scroll away */
    .hero__layout { animation: heroRecede linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
    @keyframes heroRecede { to { opacity: .15; translate: 0 70px; scale: .96; } }

    /* Section headings "ink in" while scrolling */
    .section__head h2 {
      background: linear-gradient(90deg, var(--text) 50%, color-mix(in srgb, var(--text) 22%, transparent) 50%) 100% 0 / 200% 100% no-repeat;
      -webkit-background-clip: text; background-clip: text; color: transparent;
      animation: inkIn linear both; animation-timeline: view(); animation-range: entry 10% cover 40%;
    }
    @keyframes inkIn { to { background-position: 0 0; } }

    /* Screenshot parallax inside its frame (uses independent `translate`, so it composes with hover scale) */
    .project__shot img { animation: shotDrift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes shotDrift { from { translate: 0 -3%; } to { translate: 0 3%; } }

    /* Benefits icons pop as they cross the viewport */
    .benefits__list svg { animation: iconPop linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    @keyframes iconPop { from { scale: .4; rotate: -25deg; opacity: 0; } }

    /* Process numbers count up visually with a rotating ring */
    .process li span { animation: ringIn linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes ringIn { from { scale: .5; opacity: 0; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  :root { --io: 0s; }
  .plan--featured, .about__avatar::after { animation: none; }
}

/* =========================================================
   TYPOGRAPHY — Clash Display / Satoshi / Instrument Serif
   ========================================================= */
body { font-size: 16.5px; letter-spacing: 0.005em; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0; word-spacing: .04em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; }
h3 { letter-spacing: -0.005em; }
.hero__title { font-weight: 600; letter-spacing: -0.01em; line-height: 1.02; font-size: clamp(42px, 5.8vw, 74px); }
.hero__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; font-size: 1.1em; line-height: .9; padding-right: .06em;
}
.eyebrow, .stack__label, .case dt { font-family: var(--body); font-weight: 700; letter-spacing: .12em; }
.btn, .nav__links, .tags li, .plan__badge { font-family: var(--body); font-weight: 500; }
.btn--primary, .btn--ghost { font-weight: 700; }
.brand__name { font-family: var(--display); font-weight: 600; letter-spacing: 0; font-size: 17px; }
.brand__mark, .curtain__mark, .about__avatar { font-family: var(--display); font-weight: 600; }
.project__body h3 { font-size: clamp(24px, 2.8vw, 32px); }
.clients li { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: 0; }
.benefits__list b, .about__name { font-family: var(--display); font-weight: 600; letter-spacing: 0; }
.process span { font-family: var(--display); font-weight: 600; }
.faq summary { font-weight: 700; }
.hero__lead, .section__sub, .about__text > p { font-size: 1.06em; }

/* =========================================================
   SPIDER THEME — original web artwork, red/blue, comic halftone
   ========================================================= */
:root { --web: rgba(15, 23, 42, .17); --dots: rgba(var(--accent-2-rgb), .2); }
:root[data-theme="dark"] { --web: rgba(255, 255, 255, .13); --dots: rgba(var(--accent-2-rgb), .3); }

/* Web artwork */
.hero, .section--contact { position: relative; isolation: isolate; }
.section--contact { overflow: hidden; }
.web { position: absolute; z-index: -1; pointer-events: none; fill: none; overflow: visible; }
.web path { stroke: var(--web); stroke-width: 1.15; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.web--hero { top: 0; right: 0; width: min(64vw, 780px); height: auto; }
.web--contact { left: 0; bottom: 0; width: min(55vw, 560px); height: auto; transform: scale(-1, -1); --web: rgba(255, 255, 255, .1); }

/* The hero web spins itself in: spokes first, then the spiral threads */
.web--hero path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.web--hero .web__spokes { animation: webSpin 1.4s var(--ease-out) calc(var(--io) + .05s) forwards; }
.web--hero .web__rings { animation: webSpin 2.4s var(--ease-in-out) calc(var(--io) + .55s) forwards; }
@keyframes webSpin { to { stroke-dashoffset: 0; } }
/* Web gently sways */
.web--hero { transform-origin: 100% 0; animation: webSway 9s var(--ease-in-out) 3s infinite alternate; }
@keyframes webSway { from { rotate: 0deg; } to { rotate: -1.6deg; } }

/* Comic halftone instead of grid */
.hero__grid {
  background-image: radial-gradient(var(--dots) 1.3px, transparent 1.7px);
  background-size: 15px 15px; animation: none; opacity: 1;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 88% 18%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 55% 60% at 88% 18%, #000 10%, transparent 72%);
}
/* Red + blue hero glows */
.hero__glow { background: radial-gradient(circle, rgba(var(--accent-rgb), .14), transparent 62%); }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; left: -260px; bottom: -280px; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), .12), transparent 62%);
}

/* Halftone corners on alternate sections */
.section--alt { position: relative; isolation: isolate; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(var(--accent-rgb), .13) 1.1px, transparent 1.5px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 40% 55% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 40% 55% at 100% 0%, #000, transparent 70%);
}

/* Red/blue brand details */
.curtain__mark { background: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .18); }
.curtain__line::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.brand__mark { background: var(--accent); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.about__avatar { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.section__head .eyebrow::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.benefits__list li:nth-child(even) svg, .service:nth-child(even) .service__icon svg { stroke: var(--accent-2); }
.benefits__list li:nth-child(even) svg, .service:nth-child(even) .service__icon { background-color: rgba(var(--accent-2-rgb), .1); }
.btn--primary { background: linear-gradient(135deg, var(--accent), #e8452c); }
.btn--primary:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); }

/* Contact web draws in as it scrolls into view (Chrome/Edge); static elsewhere */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .web--contact path { stroke-dasharray: 1; animation: webSpinScroll linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    @keyframes webSpinScroll { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .web--hero path { stroke-dashoffset: 0; }
}
@media (max-width: 720px) {
  .web--hero { width: 100vw; opacity: .5; }
}

/* =========================================================
   SPIDER-HERO COMIC THEME (complete)
   Original artwork only: webs, skyline, generic spider.
   ========================================================= */
:root {
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --comic: "Bangers", "Anton", "Impact", sans-serif;
  --ink: #0b0e1c;
  --comic-line: var(--ink);
  --skyline: rgba(11, 14, 28, .07);
  --skyline-win: rgba(217, 31, 38, 0);
}
/* Daylight edition: comic-paper white */
:root[data-theme="light"] {
  --bg: #fbf8f2; --bg-2: #f2ece1; --card: #fffdf9; --chrome: #efe8dc;
  --text: #0b0e1c; --muted: #4a5068;
  --line: rgba(11, 14, 28, .12); --line-2: rgba(11, 14, 28, .22);
  --nav-bg: rgba(251, 248, 242, .86); --chip-bg: #fffdf9;
}
/* Night-city edition (default) */
:root[data-theme="dark"] {
  --bg: #080c1b; --bg-2: #0d1431; --card: #111a3a; --chrome: #18234a;
  --text: #f3f5ff; --muted: #a3acc9;
  --comic-line: #000;
  --skyline: rgba(0, 0, 0, .55); --skyline-win: rgba(255, 214, 102, .55);
  --web: rgba(255, 255, 255, .16);
}

/* Poster typography */
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .012em; word-spacing: .02em; }
h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1; }
h3 { font-size: 22px; letter-spacing: .02em; }
.hero__title { font-weight: 400; font-size: clamp(50px, 7.4vw, 104px); line-height: .94; letter-spacing: .005em; max-width: 12ch; }
.hero__title .w { padding-right: .12em; margin-right: -.12em; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title em {
  font-family: var(--comic); font-style: normal; font-weight: 400; letter-spacing: .03em; font-size: 1.04em; line-height: 1;
  background: none; color: var(--accent); -webkit-text-fill-color: var(--accent);
  -webkit-text-stroke: 2px var(--comic-line); paint-order: stroke fill;
  text-shadow: .07em .07em 0 var(--accent-2);
}
.brand__name { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 18px; font-weight: 400; }
.project__body h3 { font-size: clamp(26px, 3vw, 36px); }
.clients li { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-weight: 400; font-size: 20px; }
.benefits__list b, .about__name, .process span, .curtain__mark, .brand__mark, .about__avatar { font-family: var(--display); font-weight: 400; letter-spacing: .03em; }
.section__head h2 { animation: none !important; color: var(--text) !important; background: none !important; }

/* Comic caption-box eyebrows */
.eyebrow {
  font-family: var(--comic); font-weight: 400; font-size: 17px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #fff !important; padding: 4px 12px 3px; border: 2px solid var(--comic-line);
  box-shadow: 3px 3px 0 var(--comic-line); transform: rotate(-2deg); width: fit-content;
}
.section__head .eyebrow::before { display: none; }
.section__head--center .eyebrow { margin-inline: auto; }
.dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

/* Comic panels: ink outline + hard offset shadow */
.service, .plan, .about__card, .form, .faq details, .contact__link,
.project__shot, .showcase__browser, .showcase__back, .chip {
  border: 2px solid var(--comic-line) !important;
  box-shadow: 6px 6px 0 var(--panel-shadow, var(--accent-2)) !important;
  border-radius: 10px;
}
.service:nth-child(odd), .faq details:nth-child(odd), .contact__link:nth-child(odd) { --panel-shadow: var(--accent); }
.project__shot { --panel-shadow: var(--accent); }
.project--flip .project__shot { --panel-shadow: var(--accent-2); }
.chip { --panel-shadow: var(--comic-line); border-radius: 8px; }
.theme-toggle { border: 2px solid var(--comic-line); box-shadow: 3px 3px 0 var(--comic-line); border-radius: 8px; }
.service:hover, .plan:hover, .contact__link:hover {
  transform: translate(-4px, -4px) !important; box-shadow: 10px 10px 0 var(--panel-shadow, var(--accent-2)) !important;
}
.plan { border-radius: 12px; }
.plan--featured {
  border: 3px solid var(--comic-line) !important; --panel-shadow: var(--accent);
  background: var(--card) !important; animation: none;
}
.plan--featured::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(rgba(var(--accent-rgb), .12) 1.2px, transparent 1.6px) 0 0 / 12px 12px;
}
.plan--featured > * { position: relative; z-index: 1; }
.phone { box-shadow: 6px 6px 0 var(--comic-line); border: 2px solid var(--comic-line); }
.form input, .form select, .form textarea { border: 2px solid var(--line-2); border-radius: 8px; }
.tags li { border-width: 2px; border-radius: 6px; font-weight: 700; }
.stack li { border: 2px solid var(--line-2); border-radius: 6px; font-weight: 700; }

/* Comic buttons */
.btn { border-radius: 8px; border: 2px solid var(--comic-line) !important; box-shadow: 4px 4px 0 var(--comic-line);
  font-family: var(--comic); font-weight: 400 !important; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; padding: 11px 22px 10px; }
.btn--sm { font-size: 17px; padding: 6px 14px 5px; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--comic-line); }
.btn:active { transform: translate(3px, 3px) !important; box-shadow: 0 0 0 var(--comic-line); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 6px 6px 0 var(--comic-line); }
.btn--ghost { background: var(--card); }
.nav__links .btn { box-shadow: 3px 3px 0 var(--comic-line); }

/* Starburst badge */
.plan__badge {
  top: -34px; left: auto; right: -18px; width: 104px; height: 104px; padding: 0; border-radius: 0;
  display: grid; place-items: center; text-align: center; line-height: 1;
  font-family: var(--comic); font-weight: 400; font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-2); color: #fff; transform: rotate(10deg); z-index: 3 !important;
  filter: drop-shadow(3px 3px 0 var(--comic-line)); animation: burstPop 2.4s var(--ease-in-out) infinite;
}
@keyframes burstPop { 50% { transform: rotate(4deg) scale(1.08); } }

/* Hero: night city */
.hero { overflow: hidden; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(140px, 22vw, 260px); z-index: -1; pointer-events: none; }
.skyline__b { fill: var(--skyline); }
.skyline__w { fill: var(--skyline-win); animation: windows 7s steps(2) infinite; }
@keyframes windows { 50% { opacity: .55; } }
:root[data-theme="dark"] .hero { background: radial-gradient(120% 80% at 80% 0%, #16245a 0%, transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(var(--accent-rgb), .22), transparent 60%), var(--bg); }
:root[data-theme="dark"] .hero__glow { background: radial-gradient(circle, rgba(var(--accent-2-rgb), .35), transparent 62%); }

/* Diagonal comic-panel cuts */
.section--alt { clip-path: polygon(0 clamp(18px, 3vw, 44px), 100% 0, 100% calc(100% - clamp(18px, 3vw, 44px)), 0 100%); border: 0; }
.section--contact { clip-path: polygon(0 clamp(18px, 3vw, 44px), 100% 0, 100% 100%, 0 100%); }

/* Suit-pattern band (web grid on red) */
.benefits {
  position: relative; isolation: isolate; background-color: var(--accent); color: #fff; border: 0;
  border-block: 3px solid var(--comic-line);
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .32) 0 1.5px, transparent 1.5px 64px),
    radial-gradient(circle at 50% 0, transparent 30px, rgba(0, 0, 0, .32) 31px, transparent 32.5px);
  background-size: auto, 64px 26px;
  background-position: 32px 0, 0 0;
}
.benefits__list b { color: #fff; font-size: 20px; text-transform: uppercase; }
.benefits__list span { color: rgba(255, 255, 255, .9); }
.benefits__list svg, .benefits__list li:nth-child(even) svg {
  stroke: #fff !important; background: var(--ink) !important; border: 2px solid #000; box-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}

/* Clients strip as a comic caption bar */
.clients { background: var(--ink); color: #fff; border-block: 3px solid #000; }
.clients p { color: rgba(255, 255, 255, .72); }
.clients li { color: #fff; opacity: .92; }
.clients li:nth-child(odd) { color: #ff5a60; }

/* Curtain: red suit pattern */
.curtain {
  background-color: var(--accent) !important;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .3) 0 1.5px, transparent 1.5px 72px),
    radial-gradient(circle at 50% 0, transparent 34px, rgba(0, 0, 0, .3) 35px, transparent 36.5px);
  background-size: auto, 72px 30px;
}
.curtain__mark { background: var(--ink); border: 3px solid #000; box-shadow: 5px 5px 0 rgba(0, 0, 0, .45); font-size: 28px; }
.curtain__line { background: rgba(0, 0, 0, .3); }
.curtain__line::after { background: #fff; }

/* Brand mark */
.brand__mark { border: 2px solid var(--comic-line); box-shadow: 2px 2px 0 var(--comic-line); border-radius: 8px; }

/* Dangling spider = scroll indicator */
.dangler { position: fixed; top: 64px; right: clamp(16px, 3vw, 40px); z-index: 45; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.dangler__thread { width: 1.5px; background: var(--text); opacity: .55; height: calc(16px + var(--p, 0) * (100vh - 260px)); transition: height .15s linear; }
.dangler__spider { width: 34px; height: 34px; margin-top: -6px; color: var(--text); transform-origin: 50% -30px; animation: swing 2.8s var(--ease-in-out) infinite alternate; }
@keyframes swing { from { rotate: -9deg; } to { rotate: 9deg; } }
.progress { display: none; }

/* Web-burst on click */
.webshot { position: fixed; z-index: 400; width: 120px; height: 120px; margin: -60px 0 0 -60px; pointer-events: none; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round;
  animation: webshot .7s var(--ease-out) forwards; }
@keyframes webshot { from { opacity: 1; transform: scale(.2) rotate(-20deg); } to { opacity: 0; transform: scale(1.15) rotate(0deg); } }

/* Halftone stronger in night mode */
:root[data-theme="dark"] .section--alt::before { background-image: radial-gradient(rgba(var(--accent-2-rgb), .3) 1.2px, transparent 1.6px); }

@media (max-width: 900px) {
  .dangler { display: none; }
  .progress { display: block; }
}
@media (max-width: 560px) {
  .service, .plan, .about__card, .form, .faq details, .contact__link, .project__shot, .showcase__browser, .showcase__back { box-shadow: 4px 4px 0 var(--panel-shadow, var(--accent-2)) !important; }
  .plan__badge { width: 84px; height: 84px; font-size: 14px; right: -6px; top: -28px; }
  .btn { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .dangler__spider, .plan__badge, .skyline__w { animation: none; }
  .webshot { display: none; }
}
.burst { clip-path: polygon(50.0% 0.0%, 58.5% 13.0%, 71.7% 5.0%, 73.7% 20.3%, 89.1% 18.8%, 84.2% 33.5%, 98.7% 38.9%, 88.0% 50.0%, 98.7% 61.1%, 84.2% 66.5%, 89.1% 81.2%, 73.7% 79.7%, 71.7% 95.0%, 58.5% 87.0%, 50.0% 100.0%, 41.5% 87.0%, 28.3% 95.0%, 26.3% 79.7%, 10.9% 81.2%, 15.8% 66.5%, 1.3% 61.1%, 12.0% 50.0%, 1.3% 38.9%, 15.8% 33.5%, 10.9% 18.8%, 26.3% 20.3%, 28.3% 5.0%, 41.5% 13.0%); }

/* Spider theme fixes: hero scale + starburst placement */
.hero__title { font-size: clamp(46px, 5.6vw, 82px); max-width: none; }
.plan--featured > .plan__badge {
  position: absolute; top: -38px; right: -22px; left: auto;
  padding: 0 20px; font-size: 15px; line-height: .95; white-space: normal;
}
@media (max-width: 560px) {
  .plan--featured > .plan__badge { width: 88px; height: 88px; top: -30px; right: -8px; padding: 0 16px; font-size: 13px; }
}

/* Intro curtain shows the full name instead of the AV monogram */
:root { --io: 1.15s; }
.curtain { animation: curtainUp .75s var(--ease-in-out) .85s forwards; }
.curtain__mark {
  width: auto; height: auto; padding: 14px 28px 10px; border-radius: 10px;
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6.5vw, 64px);
  letter-spacing: .04em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  animation: nameIn .7s var(--ease-out) both;
}
.curtain__line { width: min(260px, 60vw); }
.curtain__line::after { animation-duration: .8s; }
@keyframes nameIn {
  from { opacity: 0; transform: scale(.85) rotate(-3deg); letter-spacing: .3em; }
  to { opacity: 1; transform: rotate(-2deg); }
}
@media (max-width: 420px) { .curtain__mark { font-size: 26px; padding: 12px 18px 8px; } }

/* Keep the web-grid suit pattern on the curtain in both themes */
:root[data-theme] .curtain {
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .3) 0 1.5px, transparent 1.5px 72px), radial-gradient(circle at 50% 0, transparent 34px, rgba(0, 0, 0, .3) 35px, transparent 36.5px);
  background-size: auto, 72px 30px;
}
