/* =========================================================================
   Aurora Studio — main stylesheet
   Minimalist · light · glassmorphism · fast smooth motion
   Single source of truth for the WP theme and the static demo.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #f6f7fb;
  --bg-2:          #eef1f8;
  --surface:       #ffffff;

  /* Glass */
  --glass-bg:      rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border:  rgba(255, 255, 255, 0.7);
  --glass-line:    rgba(14, 21, 37, 0.08);
  --glass-shadow:  0 1px 1px rgba(17, 24, 39, 0.04), 0 12px 28px -12px rgba(17, 24, 39, 0.16);
  --glass-shadow-lg: 0 2px 6px rgba(17, 24, 39, 0.05), 0 30px 60px -24px rgba(17, 24, 39, 0.22);
  --blur:          16px;

  /* Ink */
  --ink:           #0e1525;
  --ink-soft:      #50607a;
  --muted:         #8a95a8;

  /* Brand */
  --primary:       #6c5ce7;
  --primary-2:     #00c2d1;
  --accent-grad:   linear-gradient(135deg, #6c5ce7 0%, #00c2d1 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(108,92,231,.14), rgba(0,194,209,.14));
  --ring:          rgba(108, 92, 231, 0.35);

  /* Typography (Inter intentionally dropped per taste-design review) */
  --font-sans:     "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display:  "Space Grotesk", var(--font-sans);
  --font-mono:     "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Geometry */
  --radius:        20px;
  --radius-sm:     12px;
  --radius-pill:   999px;
  --container:     1180px;
  --gutter:        clamp(18px, 4vw, 40px);

  /* Motion */
  --ease:          cubic-bezier(.22, .61, .36, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
  --dur:           240ms;
  --dur-fast:      160ms;

  /* Layering */
  --z-header:      100;
  --z-overlay:     200;
  --z-modal:       300;
  --z-toast:       400;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Interactive animated background ---------- */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.aurora-bg__blob {
  position: absolute;
  width: 48vmax;
  height: 48vmax;
  /* pointer parallax (--mx/--my) + scroll drift (--sy), per-blob factors */
  transform: translate3d(
    calc((var(--mx, .5) - .5) * var(--px, 40px)),
    calc((var(--my, .5) - .5) * var(--py, 40px) + var(--sy, 0) * var(--ps, 0px)),
    0
  );
  will-change: transform;
}
.aurora-bg__blob i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--o, .4);
  animation: blob-float var(--t, 20s) ease-in-out infinite alternate;
  will-change: transform;
}
.aurora-bg__blob--1 { top: -12%; left: -6%;  --px: 90px;  --py: 64px;  --ps: 160px; }
.aurora-bg__blob--1 i { background: radial-gradient(circle at 50% 50%, #6c5ce7, transparent 62%); --o: .52; --t: 19s; }
.aurora-bg__blob--2 { top: 0%;   right: -10%; --px: -120px; --py: 80px;  --ps: -120px; }
.aurora-bg__blob--2 i { background: radial-gradient(circle at 50% 50%, #00c2d1, transparent 62%); --o: .46; --t: 23s; animation-delay: -6s; }
.aurora-bg__blob--3 { bottom: -16%; left: 14%; --px: 70px;  --py: -54px; --ps: 200px; }
.aurora-bg__blob--3 i { background: radial-gradient(circle at 50% 50%, #8b7bff, transparent 62%); --o: .42; --t: 27s; animation-delay: -11s; }
.aurora-bg__blob--4 { bottom: -10%; right: 10%; --px: -84px; --py: -48px; --ps: -170px; }
.aurora-bg__blob--4 i { background: radial-gradient(circle at 50% 50%, #4fd1c5, transparent 60%); --o: .36; --t: 21s; animation-delay: -3s; }
/* Spotlight that follows the cursor (GPU transform, not top/left) */
.aurora-bg__spot {
  position: absolute;
  top: 0; left: 0;
  width: 64vmax; height: 64vmax;
  margin: -32vmax 0 0 -32vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(108,92,231,.20), rgba(0,194,209,.10) 38%, transparent 64%);
  transform: translate3d(calc(var(--mx, .5) * 100vw), calc(var(--my, .5) * 100vh), 0);
  will-change: transform;
}
/* light veil keeps the colour soft and the foreground clean */
.aurora-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246,247,251,.10), rgba(246,247,251,.42));
}
@keyframes blob-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -5%, 0) scale(1.10); }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 600;
}

p { margin: 0 0 1rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--primary-2); }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 110px); position: relative; }

.section__head {
  max-width: 640px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}

.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}
.section__subtitle { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }

.text-grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Glass surface ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .98rem;
  line-height: 1;
  padding: .92em 1.5em;
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--btn-bg);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur-fast);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.18);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 24px rgba(108, 92, 231, 0.22); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  color: var(--ink);
  border: 1px solid var(--glass-line);
  box-shadow: none;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--ring); box-shadow: 0 8px 22px rgba(17,24,39,.08); }

.btn--sm { padding: .7em 1.1em; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  padding-block: 14px;
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
  border: 1px solid transparent;
}
.site-header.is-scrolled { padding-block: 8px; }
.site-header.is-scrolled .site-header__inner {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(108,92,231,.35);
  flex: none;
}
.brand__mark svg { width: 17px; height: 17px; }

.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  display: inline-block;
  padding: .5em .9em;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--ink); background: var(--accent-grad-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.nav-toggle {
  --bar: var(--ink);
  width: 46px; height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  border-radius: 14px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--bar); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur-fast); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--bar); border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Fullscreen overlay nav ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: rgba(246, 247, 251, 0.82);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; transform: scale(1); }

.nav-overlay__top { display: flex; align-items: center; justify-content: space-between; }
.nav-overlay__close {
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink);
}
.nav-overlay__close svg { width: 20px; height: 20px; }

.nav-overlay__menu {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vh, 18px);
}
.nav-overlay__menu a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 3.4rem);
  color: var(--ink);
  letter-spacing: -.02em;
  width: max-content;
  transform: translateY(14px);
  opacity: 0;
}
.nav-overlay.is-open .nav-overlay__menu a {
  animation: nav-item-in .5s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 80ms);
}
.nav-overlay__menu a:hover { color: var(--primary); }

.nav-overlay__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .92rem; }

@keyframes nav-item-in { to { transform: translateY(0); opacity: 1; } }

/* ---------- Social cluster ---------- */
.socials { display: inline-flex; align-items: center; gap: 10px; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast), border-color var(--dur-fast);
}
.socials a:hover { transform: translateY(-3px); color: var(--primary); border-color: var(--ring); }
.socials a svg { width: 19px; height: 19px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media video, .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  /* keep white text readable on any media, stay light/clean */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(246,247,251,.30) 0%, rgba(246,247,251,.55) 55%, rgba(246,247,251,.92) 100%),
    linear-gradient(110deg, rgba(108,92,231,.28), rgba(0,194,209,.18));
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__card {
  max-width: 720px;
  padding: clamp(26px, 4vw, 44px);
}
.hero__title {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  margin-bottom: .5rem;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 1.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero entrance animation (fast, staggered) — hidden only when JS is active */
.js .reveal-hero > * { opacity: 0; transform: translateY(18px); }
.reveal-hero.is-in > * { animation: hero-in .55s var(--ease-out) forwards; }
.reveal-hero.is-in > *:nth-child(1) { animation-delay: .05s; }
.reveal-hero.is-in > *:nth-child(2) { animation-delay: .12s; }
.reveal-hero.is-in > *:nth-child(3) { animation-delay: .19s; }
.reveal-hero.is-in > *:nth-child(4) { animation-delay: .26s; }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }

/* ---------- Reveal on scroll (hidden only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; }

/* ---------- Portfolio slider ---------- */
.portfolio { position: relative; }
.slider {
  position: relative;
}
.slider__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.slider__nav { display: flex; gap: 10px; }
.slider__btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast);
}
.slider__btn:hover { transform: translateY(-2px); color: var(--primary); border-color: var(--ring); }
.slider__btn[disabled] { opacity: .4; cursor: default; transform: none; }
.slider__btn svg { width: 20px; height: 20px; }

.slider__viewport { overflow: hidden; margin-top: clamp(24px, 4vw, 40px); cursor: grab; }
.slider__viewport.is-dragging { cursor: grabbing; }
.slider__track {
  display: flex;
  gap: clamp(16px, 2.4vw, 26px);
  transition: transform .55s var(--ease-out);
  will-change: transform;
}
.slide {
  flex: 0 0 auto;
  width: clamp(260px, 80vw, 380px);
}

.work-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow-lg); }
.work-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .02em;
  padding: .35em .8em; border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.work-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-card__title { font-size: 1.2rem; margin: 0; }
.work-card__desc { font-size: .94rem; margin: 0; color: var(--ink-soft); }
.work-card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-display);
  font-weight: 500; font-size: .95rem;
  color: var(--primary);
}
.work-card__link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.work-card:hover .work-card__link svg { transform: translate(3px, -3px); }

.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.slider__dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--glass-line);
  transition: width var(--dur) var(--ease), background var(--dur);
}
.slider__dot.is-active { width: 26px; border-radius: 5px; background: var(--accent-grad); }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.news-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow-lg); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.news-card__cat {
  font-size: .74rem; font-weight: 500; color: var(--primary);
  padding: .25em .7em; border-radius: var(--radius-pill);
  background: var(--accent-grad-soft);
}
.news-card__title { font-size: 1.15rem; margin: 0; }
.news-card__title a { color: var(--ink); }
.news-card__title a:hover { color: var(--primary); }
.news-card__excerpt { font-size: .92rem; margin: 0; }
.news-card__more { margin-top: auto; padding-top: 6px; font-family: var(--font-display); font-weight: 500; font-size: .92rem; }

/* ---------- Contacts ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
}
.contacts__info { padding: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; }
.contacts__info h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.contacts__list { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 28px; }
.contacts__item { display: flex; gap: 14px; align-items: center; }
.contacts__item .ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-grad-soft);
  color: var(--primary);
}
.contacts__item .ic svg { width: 20px; height: 20px; }
.contacts__item b { color: var(--ink); font-weight: 600; display: block; font-family: var(--font-display); }
.contacts__item span { font-size: .95rem; }
.contacts__socials { margin-top: auto; }
.contacts__socials p { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }

/* Form */
.lead-form { padding: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink); font-family: var(--font-display); }
.field label .req { color: var(--primary); }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .98rem;
  color: var(--ink);
  padding: .85em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.6);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
  background: #fff;
}
.field.has-error input, .field.has-error textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.18); }
.field__error { font-size: .8rem; color: #e5484d; min-height: 1em; }
.lead-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lead-form__note { font-size: .82rem; color: var(--muted); margin: 0; }

.form-status { font-size: .92rem; border-radius: var(--radius-sm); padding: 0; max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease), padding var(--dur), margin var(--dur); }
.form-status.is-shown { padding: .85em 1.1em; max-height: 120px; }
.form-status.is-ok { background: rgba(16,185,129,.12); color: #047857; border: 1px solid rgba(16,185,129,.3); }
.form-status.is-err { background: rgba(229,72,77,.10); color: #b42318; border: 1px solid rgba(229,72,77,.28); }

.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Social modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(14, 21, 37, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  width: min(440px, 100%);
  padding: clamp(26px, 4vw, 38px);
  text-align: center;
  transform: scale(.94) translateY(10px);
  opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
.modal.is-open .modal__panel { transform: scale(1) translateY(0); opacity: 1; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--glass-line); background: var(--glass-bg);
  cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
.modal__close svg { width: 18px; height: 18px; }
.modal__panel h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.modal__panel p { font-size: .94rem; margin-bottom: 1.4rem; }
.modal__socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal__socials a {
  display: flex; align-items: center; gap: 10px;
  padding: .9em 1em; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.6);
  color: var(--ink); font-weight: 500; font-size: .95rem;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast), color var(--dur-fast);
}
.modal__socials a:hover { transform: translateY(-2px); border-color: var(--ring); color: var(--primary); }
.modal__socials a svg { width: 20px; height: 20px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(44px, 6vw, 72px) 28px; border-top: 1px solid var(--glass-line); margin-top: 40px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.site-footer__tag { font-size: .95rem; color: var(--ink-soft); margin: 14px 0 18px; max-width: 32ch; }
.site-footer__h { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 0 16px; }
.site-footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.site-footer__contacts li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .95rem; }
.site-footer__contacts svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.site-footer__contacts a { color: var(--ink-soft); }
.site-footer__contacts a:hover { color: var(--primary); }
.site-footer .footer-nav { display: flex; flex-direction: column; gap: 12px; }
.site-footer .footer-nav a { color: var(--ink-soft); font-size: .95rem; }
.site-footer .footer-nav a:hover { color: var(--primary); }
.site-footer__copy { margin-top: clamp(28px, 4vw, 44px); padding-top: 20px; border-top: 1px solid var(--glass-line); }
.site-footer__copy small { color: var(--muted); }

/* ---------- Single / generic content ---------- */
.page-hero { padding: 140px 0 30px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.entry { max-width: 760px; margin-inline: auto; }
.entry__content { font-size: 1.05rem; line-height: 1.8; }
.entry__content h2 { margin-top: 1.6em; }
.entry__content img { border-radius: var(--radius); margin: 1.4em 0; }
.back-link { display: inline-flex; align-items: center; gap: .4em; margin-bottom: 18px; font-weight: 500; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}
.service-card {
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--glass-shadow-lg); }
.service-card__ic {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--primary);
  background: var(--accent-grad-soft);
}
.service-card__ic svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.2rem; margin: 0; }
.service-card p { font-size: .95rem; margin: 0; color: var(--ink-soft); }
.service-card__no { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2.6vw, 30px);
  counter-reset: step;
}
.process-step { position: relative; padding-top: 14px; border-top: 2px solid var(--glass-line); }
.process-step__num {
  font-family: var(--font-mono);
  font-size: 2rem; font-weight: 500;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 10px; display: block;
}
.process-step h3 { font-size: 1.12rem; margin: 0 0 6px; }
.process-step p { font-size: .92rem; margin: 0; color: var(--ink-soft); }

/* ---------- Dark "developer" section ---------- */
.section--dark {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 40px);
  margin-inline: clamp(0px, 2vw, 24px);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__subtitle { color: rgba(255, 255, 255, 0.62); }
.section--dark .eyebrow { color: var(--primary-2); }
.section--dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .6; pointer-events: none;
}
.section--dark > .container { position: relative; }

/* Stack badges */
.stack__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.stack__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: .9rem; color: #fff;
  padding: .65em 1.05em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease), background var(--dur-fast);
}
.stack__badge:hover { transform: translateY(-2px); border-color: var(--primary-2); background: rgba(255, 255, 255, 0.07); }
.stack__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-grad); }

/* ---------- Testimonials ---------- */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}
.tm-card {
  padding: clamp(22px, 2.6vw, 30px);
  display: flex; flex-direction: column; gap: 18px;
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
}
.tm-card__quote { font-size: 1.04rem; line-height: 1.6; color: var(--ink); margin: 0; }
.tm-card__quote::before { content: "“"; font-family: var(--font-display); color: var(--primary); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-right: .1em; }
.tm-card__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tm-card__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: var(--accent-grad-soft); }
.tm-card__name { font-family: var(--font-display); font-weight: 600; color: var(--ink); display: block; line-height: 1.2; }
.tm-card__role { font-size: .85rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--glass-shadow-lg); }
.price-card--featured {
  border-color: transparent;
  box-shadow: 0 0 0 1.5px var(--primary), var(--glass-shadow-lg);
}
.price-card__badge {
  position: absolute; top: -11px; left: clamp(22px, 2.6vw, 30px);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--accent-grad);
  padding: .4em .8em; border-radius: var(--radius-pill);
  box-shadow: 0 6px 14px rgba(108,92,231,.28);
}
.price-card__ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: var(--primary);
  background: var(--accent-grad-soft); margin-bottom: 14px;
}
.price-card__ic svg { width: 22px; height: 22px; }
.price-card__title { font-size: 1.18rem; margin: 0 0 6px; }
.price-card__price {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 600; color: var(--ink);
  line-height: 1.1; margin-top: 4px;
}
.price-card__note { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-top: 4px; }
.price-card__feat { display: flex; flex-direction: column; gap: 9px; margin: 18px 0 22px; }
.price-card__feat li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink-soft); }
.price-card__feat svg { width: 17px; height: 17px; color: var(--primary); flex: none; }
.price-card__cta { margin-top: auto; width: 100%; }
.pricing__foot { margin-top: clamp(26px, 4vw, 40px); color: var(--ink-soft); }

/* ---------- Lead modal (wide form panel) ---------- */
.modal__panel--wide { width: min(560px, 100%); text-align: left; }
.modal__panel--wide .lead-form { padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.modal__panel--wide h3 { margin-bottom: .2rem; }
.modal__panel--wide > p { margin-bottom: 1.2rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--ink);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur), color var(--dur-fast), border-color var(--dur-fast);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--primary); border-color: var(--ring); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Utilities ---------- */
.is-locked { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contacts__grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .socials { display: none; }
  .lead-form__row { grid-template-columns: 1fr; }
  .modal__socials { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-hero > *, .nav-overlay__menu a { opacity: 1 !important; transform: none !important; }
}
