/* ============================================================
   Variables
   ============================================================ */
:root {
  --color-primary:   #8b5cf6;
  --color-secondary: #c084fc;
  --color-accent:    #a855f7;
  --color-dark: #1c1c1c;
  --color-gray: #6b7280;
  --color-light-gray: #f5f5f5;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Exo 2', sans-serif;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;

  --container-max: 1360px;
  --container-pad: clamp(20px, 5vw, 60px);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: 0.3s ease;

  --header-h: 76px;
}

/* ============================================================
   Dark mode
   ============================================================ */
[data-theme='dark'] {
  --color-dark: #eeeef5;
  --color-gray: #8890a0;
  --color-light-gray: #161624;
  --color-white: #0d0d1e;
  --color-black: #ffffff;
  color-scheme: dark;
}

[data-theme='dark'] body {
  background-color: #0a0a18;
  color: #e0e0f0;
}

[data-theme='dark'] .site-header:not(.is-scrolled) {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme='dark'] .post-card {
  background: #161624;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

[data-theme='dark'] .post-card__title a {
  color: #e4e4f0;
}

[data-theme='dark'] .section--gray {
  background-color: #161624;
}

[data-theme='dark'] .divider {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3,
[data-theme='dark'] h4,
[data-theme='dark'] h5,
[data-theme='dark'] h6 {
  color: #ffffff;
}

[data-theme='dark'] p {
  color: rgba(220, 220, 235, 0.7);
}

a:not([class]) {
  color: #c084fc;
}

a:not([class]):hover {
  color: #ddb4fe;
}

/* ============================================================
   Light mode
   ============================================================ */
[data-theme='light'] {
  --color-secondary: #9333ea;
  color-scheme: light;
}

[data-theme='light'] body {
  background-color: #f8f8fc;
  color: #1a1a2e;
}

[data-theme='light'] body::before {
  background:
    radial-gradient(ellipse 520px 380px at 12% 18%, rgba(124, 58, 237, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 340px 260px at 80% 6%, rgba(147, 51, 234, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 440px 320px at 68% 52%, rgba(109, 40, 217, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 300px 240px at 28% 78%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 260px 200px at 91% 84%, rgba(124, 58, 237, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 200px 160px at 50% 35%, rgba(147, 51, 234, 0.03) 0%, transparent 70%);
}

[data-theme='light'] a:not([class]) { color: #7c3aed; }
[data-theme='light'] a:not([class]):hover { color: #6d28d9; }

/* ── Header ──────────────────────────────────────────────── */
[data-theme='light'] .site-header {
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme='light'] .site-header.is-scrolled {
  background: rgba(248, 248, 252, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme='light'] .site-header__name { color: #0f0f1a; }

[data-theme='light'] .site-nav__list a {
  color: rgba(15, 15, 26, 0.5);
}
[data-theme='light'] .site-nav__list a:hover,
[data-theme='light'] .site-nav__list .current-menu-item > a,
[data-theme='light'] .site-nav__list .current_page_item > a {
  color: #0f0f1a;
}

[data-theme='light'] .lang-switcher__btn {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: rgba(15, 15, 26, 0.65);
}
[data-theme='light'] .lang-switcher__btn:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.18);
  color: #0f0f1a;
}
[data-theme='light'] .lang-switcher__dropdown {
  background: rgba(248, 248, 252, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
[data-theme='light'] .lang-switcher__dropdown a { color: rgba(15, 15, 26, 0.65); }
[data-theme='light'] .lang-switcher__dropdown a:hover,
[data-theme='light'] .lang-switcher__dropdown a.is-active {
  background: rgba(124, 58, 237, 0.08);
  color: #0f0f1a;
}

[data-theme='light'] .burger__bar { background: rgba(15, 15, 26, 0.7); }
[data-theme='light'] .burger:hover { background: rgba(0, 0, 0, 0.06); }

/* ── Mobile nav ──────────────────────────────────────────── */
[data-theme='light'] .site-nav {
  background: rgba(248, 248, 252, 0.98);
  border-color: rgba(0, 0, 0, 0.07);
}
[data-theme='light'] .site-nav__list li {
  border-color: rgba(0, 0, 0, 0.05);
}
[data-theme='light'] .site-nav__footer {
  border-color: rgba(0, 0, 0, 0.07);
}

/* ── Hero ────────────────────────────────────────────────── */
[data-theme='light'] .hero::before,
[data-theme='light'] .hero::after {
  background: linear-gradient(to bottom, transparent 0%, rgba(124, 58, 237, 0.14) 18%, rgba(124, 58, 237, 0.14) 82%, transparent 100%);
}
[data-theme='light'] .hero__tag {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.07);
  border-color: rgba(124, 58, 237, 0.16);
}
[data-theme='light'] .hero__title { color: #0f0f1a; }
[data-theme='light'] .hero__desc { color: rgba(15, 15, 26, 0.6); }
[data-theme='light'] .hero-stack__card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(124, 58, 237, 0.4);
  color: #6d28d9;
  box-shadow:
    0 0 28px rgba(124, 58, 237, 0.1),
    0 8px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(124, 58, 237, 0.08);
}

/* ── Services ────────────────────────────────────────────── */
[data-theme='light'] .services__header-right p {
  color: rgba(15, 15, 26, 0.55);
}
[data-theme='light'] .service-card:not(.service-card--featured) {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}
[data-theme='light'] .service-card:not(.service-card--featured):hover {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(124, 58, 237, 0.12);
}
[data-theme='light'] .service-card:not(.service-card--featured) .service-card__title {
  color: #0f0f1a;
}
[data-theme='light'] .service-card:not(.service-card--featured) .service-card__desc {
  color: rgba(15, 15, 26, 0.55);
}
[data-theme='light'] .service-card:not(.service-card--featured) .service-card__num {
  color: rgba(0, 0, 0, 0.07);
}
[data-theme='light'] .service-card:not(.service-card--featured) .service-card__stack li {
  color: rgba(15, 15, 26, 0.5);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.09);
}
[data-theme='light'] .service-card:not(.service-card--featured) .service-card__icon {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.16) 0%, rgba(168, 85, 247, 0.07) 100%);
  border-color: rgba(139, 92, 246, 0.26);
  color: #7c3aed;
  /* Drop the dark insets/glow that muddy the icon on a light card */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(124, 58, 237, 0.12);
  animation: none;
}
[data-theme='light'] .service-card:not(.service-card--featured) .service-card__icon::before {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
}
[data-theme='light'] .service-card:not(.service-card--featured) .service-card__icon svg {
  filter: none;
}
[data-theme='light'] .service-card-outer:not(.service-card-outer--featured):hover .service-card__icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 20px rgba(124, 58, 237, 0.2);
}
[data-theme='light'] .service-card:not(.service-card--featured) .service-card__link {
  color: rgba(124, 58, 237, 0.75);
}
[data-theme='light'] .service-card:not(.service-card--featured) .service-card__link:hover {
  color: #7c3aed;
}

/* ── Technologies ────────────────────────────────────────── */
[data-theme='light'] .tech-card { border-color: rgba(0, 0, 0, 0.06); }
[data-theme='light'] .tech-card:hover {
  background: rgba(124, 58, 237, 0.03);
  border-color: rgba(124, 58, 237, 0.16);
}
[data-theme='light'] .tech-card__logo img {
  filter: none;
  opacity: 0.4;
}
[data-theme='light'] .tech-card:hover .tech-card__logo img {
  filter: none;
  opacity: 0.9;
}
[data-theme='light'] .tech-card__name { color: rgba(15, 15, 26, 0.35); }
[data-theme='light'] .tech-card:hover .tech-card__name { color: rgba(15, 15, 26, 0.7); }

/* ── Contact ─────────────────────────────────────────────── */
[data-theme='light'] .contact__title { color: #0f0f1a; }
[data-theme='light'] .contact__sub { color: rgba(15, 15, 26, 0.55); }
[data-theme='light'] .contact-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
}
[data-theme='light'] .contact-card:hover { background: #fcfcff; }
[data-theme='light'] .contact-card__value { color: #0f0f1a; }
[data-theme='light'] .contact-card__label { color: rgba(15, 15, 26, 0.4); }
[data-theme='light'] .contact-card__arrow { color: rgba(15, 15, 26, 0.2); }
[data-theme='light'] .contact-card:hover .contact-card__arrow { color: rgba(15, 15, 26, 0.6); }
[data-theme='light'] .contact__socials-label { color: rgba(15, 15, 26, 0.35); }
[data-theme='light'] .contact-social {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
}
[data-theme='light'] .contact-social:hover {
  background: #f9f9fd;
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme='light'] .contact-social__icon {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(15, 15, 26, 0.5);
}
[data-theme='light'] .contact-social span { color: rgba(15, 15, 26, 0.45); }
[data-theme='light'] .contact-social:hover span { color: rgba(15, 15, 26, 0.8); }

/* ── Utilities ───────────────────────────────────────────── */
[data-theme='light'] .section-tag { color: #7c3aed; }
[data-theme='light'] .divider { border-color: rgba(0, 0, 0, 0.08); }

/* ============================================================
   Fonts
   ============================================================ */
/* Fonts are loaded via wp_enqueue_style in inc/enqueue.php */

/* ============================================================
   Reset
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0f0;
  background-color: #0a0a18;
  -webkit-font-smoothing: antialiased;
}

/* Global background — rare purple glows scattered across the page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 520px 380px at 12% 18%, rgba(130, 60, 210, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 340px 260px at 80% 6%, rgba(150, 70, 230, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 440px 320px at 68% 52%, rgba(110, 50, 190, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 300px 240px at 28% 78%, rgba(160, 80, 240, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 260px 200px at 91% 84%, rgba(120, 55, 200, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 200px 160px at 50% 35%, rgba(140, 65, 220, 0.05) 0%, transparent 70%);
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

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

/* ============================================================
   Typography
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}
h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-bottom: var(--spacing-md);
}

.entry-content ul,
.entry-content ol {
  padding-left: var(--spacing-lg);
}

.entry-content ul li {
  list-style: disc;
}
.entry-content ol li {
  list-style: decimal;
}
.entry-content strong {
  font-weight: 600;
}
.entry-content em {
  font-style: italic;
}

/* ============================================================
   Layout — Grid / Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   Layout — Container variants
   ============================================================ */
.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1600px;
}

/* ============================================================
   Layout — Sections
   ============================================================ */
.section {
  padding-block: var(--section-pad, var(--spacing-3xl));
}

.section--sm {
  --section-pad: var(--spacing-2xl);
}
.section--lg {
  --section-pad: calc(var(--spacing-3xl) * 1.5);
}

.section--white {
  background-color: var(--color-white);
}
.section--gray {
  background-color: var(--color-light-gray);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   Layout — Section header (title block)
   ============================================================ */
.section-header {
  max-width: 640px;
  margin-bottom: var(--spacing-2xl);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  border-radius: var(--radius-full);
  padding: 4px 14px;
}

.section-tag::before {
  content: '— ';
}


.section-title {
  margin-bottom: var(--spacing-md);
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-gray);
  line-height: 1.65;
  margin-bottom: 0;
}


.section--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Layout — Grids
   ============================================================ */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--gap-sm {
  gap: var(--spacing-sm);
}
.grid--gap-md {
  gap: var(--spacing-md);
}
.grid--gap-xl {
  gap: var(--spacing-xl);
}
.grid--gap-2xl {
  gap: var(--spacing-2xl);
}

/* Auto-responsive: never narrower than min-width */
.grid-auto-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}
.grid-auto-3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.grid-auto-4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Layout — Flex helpers
   ============================================================ */
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-wrap {
  flex-wrap: wrap;
}
.gap-sm {
  gap: var(--spacing-sm);
}
.gap-md {
  gap: var(--spacing-md);
}
.gap-lg {
  gap: var(--spacing-lg);
}
.gap-xl {
  gap: var(--spacing-xl);
}

/* ============================================================
   Layout — Spacing utilities
   ============================================================ */
.mt-sm {
  margin-top: var(--spacing-sm);
}
.mt-md {
  margin-top: var(--spacing-md);
}
.mt-lg {
  margin-top: var(--spacing-lg);
}
.mt-xl {
  margin-top: var(--spacing-xl);
}
.mt-2xl {
  margin-top: var(--spacing-2xl);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}
.mb-md {
  margin-bottom: var(--spacing-md);
}
.mb-lg {
  margin-bottom: var(--spacing-lg);
}
.mb-xl {
  margin-bottom: var(--spacing-xl);
}
.mb-2xl {
  margin-bottom: var(--spacing-2xl);
}

/* ============================================================
   Layout — Text alignment
   ============================================================ */
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

/* ============================================================
   Layout — Divider
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-block: var(--spacing-xl);
}

.section--dark .divider {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   Layout — Header
   ============================================================ */

body {
  padding-top: var(--header-h);
}
body.has-hero {
  padding-top: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.4s ease;
  will-change: transform;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 24, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(255, 255, 255, 0.1);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Inner: logo | nav centre | tools */
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  gap: var(--spacing-lg);
}

/* ── Logo ───────────────────────────────────────────────────── */
.site-header__logo {
  display: flex;
  align-items: center;
}

.site-header__logo img,
.site-header__logo .custom-logo-link img {
  max-height: 44px;
  width: auto;
  display: block;
}

.site-header__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* ── Nav ────────────────────────────────────────────────────── */
.site-nav {
  justify-self: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__list > li {
  position: relative;
}

.site-nav__list a {
  display: block;
  padding: 7px 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  border-radius: var(--radius-full);
  position: relative;
  transition: color 0.25s ease;
}

.site-nav__list a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 16px;
  right: 16px;
  height: 1.5px;
  background: linear-gradient(to right, #a855f7, #c084fc);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-nav__list a:hover {
  color: #ffffff;
}

.site-nav__list a:hover::after {
  transform: scaleX(1);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
  color: #ffffff;
  font-weight: 600;
}

/* ── Tools ──────────────────────────────────────────────────── */
.site-header__tools {
  display: flex;
  align-items: center;
  gap: 32px;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ── Language switcher ──────────────────────────────────────── */
.lang-switcher {
  position: relative;
  display: none;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(200, 200, 220, 0.85);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.lang-switcher__btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.lang-switcher__btn svg {
  opacity: 0.5;
  transition:
    opacity 0.2s,
    transform 0.25s ease;
}
.lang-switcher.is-open .lang-switcher__btn svg {
  transform: rotate(180deg);
  opacity: 0.8;
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 90px;
  background: rgba(14, 12, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 10;
}
.lang-switcher.is-open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-switcher__dropdown a {
  display: block;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(200, 200, 220, 0.75);
  border-radius: var(--radius-md);
  transition:
    background 0.15s,
    color 0.15s;
}
.lang-switcher__dropdown a:hover,
.lang-switcher__dropdown a.is-active {
  background: rgba(168, 85, 247, 0.14);
  color: #ffffff;
}

/* ── Theme toggle ───────────────────────────────────────────── */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: 46px;
  height: 26px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.4s ease;
  flex-shrink: 0;
}

[data-theme='dark'] .theme-toggle {
  background: rgba(18, 16, 36, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme='light'] .theme-toggle {
  background: #e4e4ec;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Sliding thumb */
.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    left 0.42s cubic-bezier(0.34, 1.1, 0.64, 1),
    background 0.4s ease,
    color 0.3s ease;
  z-index: 2;
}

[data-theme='dark'] .theme-toggle__thumb {
  left: 3px;
  background: #ffffff;
  color: #1a1a2e;
}

[data-theme='light'] .theme-toggle__thumb {
  left: calc(46px - 22px - 2px);
  background: #1a1a2e;
  color: #ffffff;
}

.theme-toggle__label {
  display: none;
}

/* Show/hide icons */
[data-theme='dark'] .theme-toggle__sun {
  display: block;
}
[data-theme='dark'] .theme-toggle__moon {
  display: none;
}
[data-theme='light'] .theme-toggle__sun {
  display: none;
}
[data-theme='light'] .theme-toggle__moon {
  display: block;
}

/* ── Burger ─────────────────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.burger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.burger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.burger.is-open .burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open .burger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.is-open .burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Logo dual-theme ────────────────────────────────────────── */
.site-header__logo .custom-logo-link img.logo-for-light { display: none; }
.site-header__logo .custom-logo-link img.logo-for-dark  { display: block; }

[data-theme='light'] .site-header__logo .custom-logo-link img.logo-for-dark  { display: none; }
[data-theme='light'] .site-header__logo .custom-logo-link img.logo-for-light { display: block; }

/* ── Mobile nav footer ──────────────────────────────────────── */
.site-nav__footer {
  display: none;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .burger {
    display: flex;
  }
  .site-header__cta {
    display: none;
  }
  .site-header__tools .theme-toggle {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 24, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0 var(--container-pad);
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s ease,
      padding 0.4s ease;
    justify-self: unset;
  }
  .site-nav.is-open {
    max-height: 580px;
    padding: var(--spacing-lg) var(--container-pad) var(--spacing-xl);
  }
  .site-nav__footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  .site-nav__cta {
    flex: 1;
    justify-content: center;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .site-nav__list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav__list a {
    display: block;
    padding: 14px 0;
    font-size: 1.0625rem;
    color: rgba(228, 228, 240, 0.85);
  }
  .site-nav__list a:hover {
    color: #ffffff;
  }
}

/* ============================================================
   Layout — Footer
   ============================================================ */
.site-footer {
  position: relative;
  background: #06060f;
  color: rgba(220, 220, 240, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Subtle purple top-glow line */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(168, 85, 247, 0.45) 30%,
    rgba(192, 132, 252, 0.6) 50%,
    rgba(168, 85, 247, 0.45) 70%,
    transparent
  );
}

/* ── Top section ──────────────────────────────────────────── */
.site-footer__top {
  padding-block: var(--spacing-3xl) var(--spacing-2xl);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--spacing-2xl);
}

/* ── Brand column ─────────────────────────────────────────── */
.site-footer__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-block;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(to right, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-footer__tagline {
  font-size: 0.875rem;
  color: rgba(200, 200, 225, 0.42);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  max-width: 280px;
}

.site-footer__socials {
  display: flex;
  gap: 10px;
}

.site-footer__social {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200, 200, 230, 0.5);
  text-decoration: none;
  transition:
    background 0.22s,
    border-color 0.22s,
    color 0.2s,
    transform 0.2s;
}

.site-footer__social:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
  transform: translateY(-2px);
}

/* ── Nav columns ──────────────────────────────────────────── */
.site-footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--spacing-lg);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: rgba(200, 200, 225, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: #ffffff;
}

/* ── Contacts column ──────────────────────────────────────── */
.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(200, 200, 225, 0.5);
}

.site-footer__contacts svg {
  flex-shrink: 0;
  color: rgba(168, 85, 247, 0.65);
}

.site-footer__contacts a {
  color: rgba(200, 200, 225, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__contacts a:hover {
  color: #ffffff;
}

/* ── Bottom bar ───────────────────────────────────────────── */
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--spacing-lg);
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: rgba(200, 200, 230, 0.3);
  margin: 0;
}

.site-footer__made {
  font-size: 0.8125rem;
  color: rgba(200, 200, 230, 0.3);
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__tagline {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

/* ============================================================
   Components — Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99) !important;
}

/* Sizes */
.btn--sm {
  padding: 7px 18px;
  font-size: 0.875rem;
}
.btn--lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* Primary — gradient border pill (dim left → bright right) */
.btn--primary {
  background:
    linear-gradient(rgba(8, 6, 20, 0.92), rgba(8, 6, 20, 0.92)) padding-box,
    linear-gradient(to right, rgba(110, 60, 180, 0.25) 0%, rgba(168, 85, 247, 0.85) 100%) border-box;
  border: 1.5px solid transparent;
  color: #ffffff;
  box-shadow:
    6px 0 22px rgba(168, 85, 247, 0.22),
    inset 0 0 14px rgba(100, 50, 160, 0.07);
}
.btn--primary:hover {
  background:
    linear-gradient(rgba(12, 8, 28, 0.94), rgba(12, 8, 28, 0.94)) padding-box,
    linear-gradient(to right, rgba(130, 70, 200, 0.4) 0%, rgba(192, 132, 252, 1) 100%) border-box;
  border-color: transparent;
  box-shadow:
    6px 0 32px rgba(168, 85, 247, 0.4),
    0 0 18px rgba(168, 85, 247, 0.18),
    inset 0 0 18px rgba(120, 60, 180, 0.1);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Secondary — teal glow pill */
.btn--secondary {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.5);
  color: #ffffff;
  box-shadow:
    0 0 16px rgba(45, 212, 191, 0.3),
    0 4px 14px rgba(45, 212, 191, 0.15),
    inset 0 0 16px rgba(45, 212, 191, 0.05);
}
.btn--secondary:hover {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.75);
  box-shadow:
    0 0 26px rgba(45, 212, 191, 0.5),
    0 6px 20px rgba(45, 212, 191, 0.25),
    inset 0 0 20px rgba(45, 212, 191, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Ghost — white glass pill */
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.06),
    inset 0 0 14px rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.12),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

/* Outline — purple tinted pill */
.btn--outline {
  background: rgba(180, 105, 255, 0.06);
  border-color: rgba(180, 105, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 14px rgba(180, 105, 255, 0.2),
    inset 0 0 14px rgba(180, 105, 255, 0.04);
}
.btn--outline:hover {
  background: rgba(180, 105, 255, 0.14);
  border-color: rgba(180, 105, 255, 0.7);
  color: #ffffff;
  box-shadow:
    0 0 24px rgba(180, 105, 255, 0.4),
    inset 0 0 20px rgba(180, 105, 255, 0.07);
  transform: translateY(-1px);
}

/* Light theme — buttons need dark text on light backgrounds */
[data-theme='light'] .btn--outline {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.45);
  color: #7c3aed;
  box-shadow: none;
}
[data-theme='light'] .btn--outline:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.85);
  color: #6d28d9;
  box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 0.45);
}

[data-theme='light'] .btn--ghost {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(15, 15, 26, 0.14);
  color: rgba(15, 15, 26, 0.75);
  box-shadow: none;
}
[data-theme='light'] .btn--ghost:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(15, 15, 26, 0.28);
  color: #0f0f1a;
  box-shadow: none;
}

[data-theme='light'] .btn--secondary {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.5);
  color: #0f766e;
  box-shadow: none;
}
[data-theme='light'] .btn--secondary:hover {
  background: rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.8);
  color: #0f766e;
  box-shadow: 0 10px 24px -10px rgba(13, 148, 136, 0.4);
}

/* ============================================================
   Components — Cards
   ============================================================ */
.posts-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.post-card__thumbnail {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.post-card__thumbnail:hover img {
  transform: scale(1.04);
}

.post-card__body {
  padding: var(--spacing-lg);
}

.post-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.post-card__title a {
  color: var(--color-dark);
}

.post-card__title a:hover {
  color: var(--color-primary);
}

.post-card__meta {
  font-size: 0.8125rem;
  color: var(--color-gray);
  margin-bottom: var(--spacing-md);
}

.post-card__excerpt {
  margin-bottom: var(--spacing-lg);
  color: var(--color-gray);
}

/* ============================================================
   Pages — Home / Hero
   ============================================================ */
.hero {
  padding-top: calc(var(--header-h) + var(--spacing-3xl));
  padding-bottom: var(--spacing-3xl);
  overflow: hidden;
  position: relative;
}




/* Edge lines — left and right with container offset */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(180, 105, 255, 0.22) 18%, rgba(180, 105, 255, 0.22) 82%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  left: var(--container-pad);
}
.hero::after {
  right: var(--container-pad);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
  min-height: 580px;
  position: relative;
  z-index: 1;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

/* Tag with pulsing dot */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: var(--radius-full);
  padding: 6px 16px 6px 10px;
  margin-bottom: var(--spacing-lg);
}

.hero__tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: hero-dot-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes hero-dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
  }
}

/* Title with gradient */
.hero__title {
  margin-bottom: var(--spacing-lg);
  line-height: 1.35;
  color: #ffffff;
  font-weight: 900;
}

/* ── Hero card stack ──────────────────────────────────────────── */
.hero-stack {
  display: inline-block;
  position: relative;
  margin-bottom:-16px;
  vertical-align: middle;
  perspective: 900px;
  /* width + height set by JS after measuring cards */
}

.hero-stack__card {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 24px 9px;
  background: rgba(8, 5, 22, 0.97);
  border: 1.5px solid rgba(160, 100, 240, 0.55);
  border-radius: 14px;
  color: #b894ff;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px) translateY(28px) scale(0.92);
  box-shadow:
    0 0 32px rgba(140, 80, 220, 0.18),
    0 8px 28px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(210, 160, 255, 0.1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Description */
.hero__desc {
  font-size: 1.0625rem;
  color: rgba(210, 210, 230, 0.65);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: var(--spacing-xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Visual / stage */
.hero__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  position: relative;
  width: 450px;
  height: 450px;
  overflow: visible;
  pointer-events: none;
}

.stage canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1100px;
  height: 1100px;
  transform: translate(-50%, -50%);
  display: block;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 991px) {
  .hero__inner {
    flex-direction: column-reverse;
    text-align: center;
    min-height: auto;
    gap: 0;
  }

  .hero__tag {
    margin-inline: auto;
  }
  .hero__desc {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
    gap: var(--spacing-lg);
  }

  .stage {
    width: 300px;
    height: 300px;
  }
  .stage canvas {
    width: 740px;
    height: 740px;
  }
}

@media (max-width: 575px) {
  .hero__stats {
    gap: var(--spacing-md);
  }
  .hero__stat-num {
    font-size: 1.5rem;
  }
  .hero__title {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }
  .hero-stack__card {
    padding: 4px 14px 7px;
    border-radius: 10px;
  }

  .stage {
    width: 240px;
    height: 240px;
  }
  .stage canvas {
    width: 600px;
    height: 600px;
  }
}

/* ============================================================
   Pages — Services section
   ============================================================ */
.services {
  background: transparent;
}

.services__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.services__header-left {
  flex: 1;
}
.services__header-left .section-title {
  margin-bottom: 0;
}

.services__header-right {
  flex: 0 0 360px;
  text-align: right;
}

.services__header-right p {
  color: rgba(210, 210, 230, 0.55);
  font-size: 0.9375rem;
  margin-bottom: var(--spacing-lg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ── Outer wrapper: owns shadow & hover transform ─────────── */
.service-card-outer {
  position: relative;
  /* Match the inner card radius so the shadow/glow follows the rounded
     corners instead of leaving a square halo behind the card. */
  border-radius: 20px;
  transition:
    box-shadow 0.35s ease,
    transform 0.3s ease;
}

.service-card-outer:hover {
  transform: translateY(-4px);
}

/* Offset shadow for depth + an even centered glow so all four corners are
   hugged by purple — keeps the rounded corners from revealing bare page. */
.service-card-outer--featured {
  box-shadow:
    0 14px 38px rgba(123, 31, 177, 0.36),
    0 0 22px rgba(139, 92, 246, 0.28);
}

.service-card-outer--featured:hover {
  box-shadow:
    0 20px 50px rgba(123, 31, 177, 0.52),
    0 0 26px rgba(139, 92, 246, 0.36);
}

/* ── Card: rounded ───────────────────────────────────────── */
.service-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.35s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(192, 132, 252, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(192, 132, 252, 0.12);
}

.service-card--featured {
  background: linear-gradient(145deg, #7b1fa2 0%, #4a148c 100%);
  border-color: rgba(192, 132, 252, 0.3);
  box-shadow: 0 8px 32px rgba(123, 31, 177, 0.35);
}

.service-card--featured:hover {
  background: linear-gradient(145deg, #8e24aa 0%, #5c1494 100%);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 16px 48px rgba(123, 31, 177, 0.55);
}

/* ── Top row ──────────────────────────────────────────────── */
.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

/* ── Icon: textured 3D container ─────────────────────────── */
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.22) 0%, rgba(109, 40, 217, 0.1) 100%);
  border: 1px solid rgba(192, 132, 252, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(192, 132, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  animation: icon-glow-breathe 3s ease-in-out infinite;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

/* Top-edge shimmer for depth */
.service-card__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.13) 0%, transparent 55%);
  pointer-events: none;
}

/* SVG drop-shadow for depth */
.service-card__icon svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

/* Idle glow breathe */
@keyframes icon-glow-breathe {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2),
      0 4px 16px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(0, 0, 0, 0.1),
      0 0 20px rgba(192, 132, 252, 0.08);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2),
      0 4px 16px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(0, 0, 0, 0.1),
      0 0 28px rgba(192, 132, 252, 0.25);
  }
}

/* Stagger breathe per card */
.service-card-outer:nth-child(2) .service-card__icon { animation-delay: -0.5s; }
.service-card-outer:nth-child(3) .service-card__icon { animation-delay: -1s; }
.service-card-outer:nth-child(4) .service-card__icon { animation-delay: -1.5s; }
.service-card-outer:nth-child(5) .service-card__icon { animation-delay: -2s; }
.service-card-outer:nth-child(6) .service-card__icon { animation-delay: -2.5s; }

/* Hover: icon lifts */
.service-card-outer:hover .service-card__icon {
  transform: translateY(-3px) scale(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 0 36px rgba(192, 132, 252, 0.38);
  animation-play-state: paused;
}

/* ── Per-card SVG animations on hover ────────────────────── */
@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg); }
  15%       { transform: rotate(-12deg); }
  35%       { transform: rotate(10deg); }
  55%       { transform: rotate(-7deg); }
  75%       { transform: rotate(5deg); }
  90%       { transform: rotate(-2deg); }
}
@keyframes icon-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes icon-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  40%       { transform: translateY(-5px) scale(1.05); }
  70%       { transform: translateY(-2px) scale(1.02); }
}
@keyframes icon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.18); opacity: 0.85; }
}
@keyframes icon-link-slide {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(-3px); }
  70%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}
@keyframes icon-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 01 Mobile — wiggle */
.service-card-outer:nth-child(1):hover .service-card__icon svg {
  animation: icon-wiggle 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
/* 02 Web — spin */
.service-card-outer:nth-child(2):hover .service-card__icon svg {
  animation: icon-spin 1.2s ease-in-out both;
}
/* 03 Design — bob */
.service-card-outer:nth-child(3):hover .service-card__icon svg {
  animation: icon-bob 0.7s ease infinite;
}
/* 04 Corporate — pulse */
.service-card-outer:nth-child(4):hover .service-card__icon svg {
  animation: icon-pulse 0.8s ease infinite;
}
/* 05 Integrations — slide */
.service-card-outer:nth-child(5):hover .service-card__icon svg {
  animation: icon-link-slide 0.6s ease both;
}
/* 06 Support — rotate */
.service-card-outer:nth-child(6):hover .service-card__icon svg {
  animation: icon-rotate 1.8s linear infinite;
}

.service-card--featured .service-card__icon {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 255, 255, 0.08);
}

.service-card__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  letter-spacing: -0.03em;
  /* shift left to stay clear of the cut corner */
  margin-right: 4px;
}

.service-card--featured .service-card__num {
  color: rgba(255, 255, 255, 0.22);
}

/* ── Text ─────────────────────────────────────────────────── */
.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.service-card__desc {
  font-size: 0.875rem;
  color: rgba(200, 200, 225, 0.48);
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

.service-card--featured .service-card__desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Stack badges ─────────────────────────────────────────── */
.service-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}

.service-card__stack li {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(180, 180, 210, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  white-space: nowrap;
}

.service-card--featured .service-card__stack li {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
}

/* ── Link ─────────────────────────────────────────────────── */
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(192, 132, 252, 0.7);
  text-decoration: none;
  transition:
    gap 0.25s ease,
    color 0.2s;
  margin-top: 4px;
}

.service-card__link:hover {
  color: #c084fc;
  gap: 10px;
}

.service-card--featured .service-card__link {
  color: rgba(255, 255, 255, 0.72);
}
.service-card--featured .service-card__link:hover {
  color: #ffffff;
  gap: 10px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .services__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xl);
  }

  .services__header-right {
    flex: none;
    text-align: left;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Pages — Technologies section
   ============================================================ */
.technologies {
  background: transparent;
}

.technologies__header {
  margin-bottom: var(--spacing-2xl);
}

.technologies__header .section-title {
  margin-bottom: 0;
}

.technologies__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(168, 85, 247, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(168, 85, 247, 0.2);
  z-index: 1;
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card__logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.tech-card__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.28;
  transition: opacity 0.25s ease, filter 0.3s ease;
}

.tech-card:hover .tech-card__logo {
  transform: translateY(-4px);
}

.tech-card:hover .tech-card__logo img {
  filter: none;
  opacity: 0.9;
}

.tech-card__name {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(200, 200, 230, 0.28);
  text-align: center;
  white-space: nowrap;
  transition: color 0.25s ease;
  line-height: 1;
}

.tech-card:hover .tech-card__name {
  color: rgba(200, 200, 230, 0.75);
}

@media (max-width: 1200px) {
  .technologies__grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 767px) {
  .technologies__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .technologies__grid { grid-template-columns: repeat(3, 1fr); }
  .tech-card { padding: 22px 12px; gap: 8px; }
  .tech-card__logo { width: 32px; height: 32px; }
  .tech-card__logo img { width: 32px; height: 32px; }
}

/* ============================================================
   Pages — Contact section
   ============================================================ */
.contact {
  background: transparent;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.contact__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

.contact__sub {
  font-size: 1rem;
  color: rgba(210, 210, 230, 0.5);
  line-height: 1.7;
  max-width: 320px;
  margin: 0;
}

.contact__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-card--phone::before { background: linear-gradient(135deg, rgba(168,85,247,0.1) 0%, transparent 60%); }
.contact-card--email::before  { background: linear-gradient(135deg, rgba(45,212,191,0.08) 0%, transparent 60%); }

.contact-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}
.contact-card:hover::before { opacity: 1; }

.contact-card--phone:hover { border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 12px 40px rgba(168, 85, 247, 0.12); }
.contact-card--email:hover  { border-color: rgba(45, 212, 191, 0.25); box-shadow: 0 12px 40px rgba(45, 212, 191, 0.08); }

.contact-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card--phone .contact-card__icon {
  background: linear-gradient(145deg, rgba(168,85,247,0.22) 0%, rgba(109,40,217,0.1) 100%);
  border: 1px solid rgba(168,85,247,0.28);
  color: #c084fc;
}
.contact-card--email .contact-card__icon {
  background: linear-gradient(145deg, rgba(45,212,191,0.2) 0%, rgba(20,148,152,0.08) 100%);
  border: 1px solid rgba(45,212,191,0.28);
  color: #2dd4bf;
}

.contact-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 200, 230, 0.35);
}

.contact-card__value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.contact-card__arrow {
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s, transform 0.25s;
  flex-shrink: 0;
}
.contact-card:hover .contact-card__arrow {
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

.contact__socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.contact__socials-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 200, 230, 0.3);
}

.contact__socials-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.contact-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.contact-social:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.contact-social__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.25s, color 0.25s;
}

.contact-social[aria-label="Telegram"]:hover  .contact-social__icon { background: rgba(39,174,239,0.15);  color: #27aeef; border: 1px solid rgba(39,174,239,0.25); }
.contact-social[aria-label="Instagram"]:hover .contact-social__icon { background: rgba(225,48,108,0.12);  color: #e1306c; border: 1px solid rgba(225,48,108,0.2); }
.contact-social[aria-label="WhatsApp"]:hover  .contact-social__icon { background: rgba(37,211,102,0.15);  color: #25d366; border: 1px solid rgba(37,211,102,0.25); }

.contact-social span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(200, 200, 230, 0.4);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.contact-social:hover span { color: rgba(200, 200, 230, 0.85); }

@media (max-width: 991px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  .contact__title { font-size: clamp(2rem, 8vw, 3rem); }
  .contact__sub { max-width: 100%; }
}
@media (max-width: 480px) {
  .contact-card { padding: 20px; gap: 16px; }
  .contact-card__value { font-size: 1rem; }
  .contact-social { padding: 14px 8px; }
}

@media (max-width: 360px) {
  .contact__socials-list {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   Pages — 404 / No results
   ============================================================ */
.error-404,
.no-results {
  padding-block: var(--spacing-3xl);
  text-align: center;
}

.error-404 .page-title,
.no-results .page-title {
  margin-bottom: var(--spacing-lg);
}

.error-404 p,
.no-results p {
  color: var(--color-gray);
  margin-bottom: var(--spacing-xl);
}

/* ============================================================
   Misc — Site main
   ============================================================ */

.page-header {
  margin-bottom: var(--spacing-xl);
}

.page-title {
  margin-bottom: var(--spacing-sm);
}

/* ============================================================
   Portfolio — section header (mirrors services header)
   ============================================================ */
.portfolio__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}
.portfolio__header-left { flex: 1; }
.portfolio__header-left .section-title { margin-bottom: 0; }
.portfolio__header-right { flex: 0 0 360px; text-align: right; }
.portfolio__header-right p {
  color: rgba(210, 210, 230, 0.55);
  font-size: 0.9375rem;
  margin-bottom: var(--spacing-lg);
}
[data-theme='light'] .portfolio__header-right p { color: rgba(15, 15, 26, 0.6); }

/* ============================================================
   Portfolio — grids
   ============================================================ */
.portfolio__grid {
  display: grid;
  gap: 16px;
}

/* Bento (home): 4 cols, 6 cards tessellate into a 4x3 mosaic */
.portfolio__grid--bento {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 244px;
  grid-auto-flow: dense;
}
.portfolio__grid--bento .pf-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.portfolio__grid--bento .pf-card:nth-child(2) { grid-column: span 2; }
.portfolio__grid--bento .pf-card:nth-child(5) { grid-column: span 2; }
.portfolio__grid--bento .pf-card:nth-child(6) { grid-column: span 2; }

/* Archive: even auto-fill grid */
.portfolio__grid--archive {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: 300px;
}

/* ============================================================
   Portfolio — card (media on top + solid caption below)
   ============================================================ */
.pf-card {
  --accent: #a855f7;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  min-height: 220px;
  background: #15151f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pf-card.is-hidden { display: none; }
.pf-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--accent) 60%, transparent);
}
[data-theme='light'] .pf-card {
  background: #fff;
  border-color: rgba(15, 15, 26, 0.08);
}

/* Media — logo / screenshot, kept on white so any artwork reads */
.pf-card__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}
.pf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(14px, 2vw, 28px);
  transition: transform 0.55s ease;
}
.pf-card:hover .pf-card__media img { transform: scale(1.04); }

.pf-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  color: #fff;
  background:
    radial-gradient(120% 120% at 75% 15%, color-mix(in srgb, var(--accent) 60%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, #1a1a26 0%, #0f0f17 100%);
}

/* Type badge over media (solid accent → reads on white) */
.pf-card__type {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 4px 14px -5px rgba(0, 0, 0, 0.45);
}

/* Arrow over media — appears on hover */
.pf-card__arrow {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
}
.pf-card:hover .pf-card__arrow { opacity: 1; transform: translateY(0); }

/* Solid caption — text always legible */
.pf-card__body {
  flex: 0 0 auto;
  padding: 13px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme='light'] .pf-card__body { border-color: rgba(15, 15, 26, 0.07); }

.pf-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.9vw, 1.15rem);
  line-height: 1.2;
  margin: 0;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme='light'] .pf-card__title { color: #0f0f1a; }

.pf-card__desc {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(210, 210, 230, 0.6);
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme='light'] .pf-card__desc { color: rgba(15, 15, 26, 0.6); }

.pf-card__domain {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}

/* Compact bento hides the description; archive keeps it */
.portfolio__grid--bento .pf-card__desc { display: none; }

/* "Show all" button under the bento grid */
.portfolio__more {
  margin-top: var(--spacing-2xl);
  text-align: center;
}
.portfolio__more .btn svg { margin-left: 8px; }

/* ============================================================
   Portfolio — archive page
   ============================================================ */
.portfolio-archive__head {
  max-width: 720px;
  margin-bottom: var(--spacing-2xl);
}
.portfolio-archive__head .section-title { margin: 8px 0 var(--spacing-md); }
.portfolio-archive__lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(210, 210, 230, 0.6);
}
[data-theme='light'] .portfolio-archive__lead { color: rgba(15, 15, 26, 0.62); }

.pf-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--spacing-xl);
}
.pf-filter__btn {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(230, 230, 245, 0.7);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all var(--transition);
}
.pf-filter__btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.pf-filter__btn.is-active {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}
[data-theme='light'] .pf-filter__btn {
  color: rgba(15, 15, 26, 0.65);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme='light'] .pf-filter__btn:hover { color: #0f0f1a; border-color: rgba(0, 0, 0, 0.2); }
[data-theme='light'] .pf-filter__btn.is-active { color: #fff; }

/* ============================================================
   Portfolio — responsive
   ============================================================ */
@media (max-width: 980px) {
  .portfolio__header { flex-direction: column; align-items: flex-start; gap: var(--spacing-lg); }
  .portfolio__header-right { flex: 1; text-align: left; }

  .portfolio__grid--bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .portfolio__grid--bento .pf-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .portfolio__grid--bento .pf-card:nth-child(2),
  .portfolio__grid--bento .pf-card:nth-child(5),
  .portfolio__grid--bento .pf-card:nth-child(6) { grid-column: span 2; }
}

@media (max-width: 600px) {
  .portfolio__grid--bento,
  .portfolio__grid--archive { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .portfolio__grid--bento .pf-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
}

/* ============================================================
   Process — how we work
   ============================================================ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}

.process-step {
  position: relative;
  padding: var(--spacing-lg);
  border-radius: 22px;
  background: #15151f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
/* Zig-zag asymmetry: every 2nd card drops down */
.process-step:nth-child(even) { margin-top: 52px; }

.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 22px 50px -26px rgba(168, 85, 247, 0.55);
}
[data-theme='light'] .process-step {
  background: #fff;
  border-color: rgba(15, 15, 26, 0.08);
}

/* Top row: icon badge + number */
.process-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.process-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 10px 24px -10px rgba(168, 85, 247, 0.7);
  transition: transform var(--transition);
}
.process-step:hover .process-step__icon { transform: scale(1.08) rotate(-4deg); }

.process-step__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.55;
}

.process-step__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.process-step__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(210, 210, 230, 0.6);
  margin: 0;
}
[data-theme='light'] .process-step__desc { color: rgba(15, 15, 26, 0.6); }

/* Dashed path arrow toward the next step */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -34px;
  width: 52px;
  height: 26px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26' viewBox='0 0 52 26' fill='none' stroke='%23a855f7' stroke-width='2'%3E%3Cpath stroke-dasharray='5 5' stroke-linecap='round' d='M2 13h40'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M38 6l8 7-8 7'/%3E%3C/svg%3E");
  opacity: 0.65;
  z-index: 2;
}
/* point down toward the lowered next card, then up toward the raised one */
.process-step:nth-child(odd)::after  { transform: rotate(24deg); }
.process-step:nth-child(even)::after { transform: rotate(-24deg); }

@media (max-width: 900px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(even) { margin-top: 0; }
  .process-step:not(:last-child)::after { display: none; }
}
@media (max-width: 520px) {
  .process__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ — accordion (<details>)
   ============================================================ */
.faq__list {
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }
[data-theme='light'] .faq-item,
[data-theme='light'] .faq-item:first-child { border-color: rgba(15, 15, 26, 0.1); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: inherit;
  transition: color var(--transition);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--color-secondary); }

.faq-item__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-secondary);
  background: rgba(168, 85, 247, 0.12);
  transition: transform var(--transition), background var(--transition);
}
.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #fff;
}

.faq-item__a {
  padding: 0 0 var(--spacing-lg);
  max-width: 90%;
}
.faq-item__a p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(210, 210, 230, 0.62);
}
[data-theme='light'] .faq-item__a p { color: rgba(15, 15, 26, 0.62); }

/* Smooth reveal */
.faq-item[open] .faq-item__a { animation: faq-reveal 0.32s ease; }
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .faq-item__a { max-width: 100%; }
}

/* ============================================================
   Clients — logo marquee (after hero)
   ============================================================ */
.clients {
  padding-block: var(--spacing-xl);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
[data-theme='light'] .clients { border-color: rgba(15, 15, 26, 0.08); }

.clients__marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.clients__track {
  display: flex;
  width: max-content;
  gap: clamp(40px, 6vw, 88px);
  animation: clients-scroll 34s linear infinite;
}
.clients:hover .clients__track { animation-play-state: paused; }

@keyframes clients-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 40px;
}
.client-logo img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.55;
  transition: opacity var(--transition), filter var(--transition);
}
.client-logo:hover img { filter: none; opacity: 1; }

.client-logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(230, 230, 245, 0.45);
  transition: color var(--transition);
}
.client-logo:hover .client-logo__text { color: rgba(230, 230, 245, 0.95); }
[data-theme='light'] .client-logo__text { color: rgba(15, 15, 26, 0.4); }
[data-theme='light'] .client-logo:hover .client-logo__text { color: rgba(15, 15, 26, 0.85); }

/* ============================================================
   CTA — banner (after portfolio)
   ============================================================ */
.cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 10%, rgba(192, 132, 252, 0.45) 0%, transparent 55%),
    linear-gradient(135deg, #6d28d9 0%, #4c1d95 60%, #2e1065 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px -30px rgba(124, 58, 237, 0.6);
}
.cta__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.cta__content { position: relative; z-index: 1; max-width: 620px; }
.cta__content .section-tag { color: rgba(255, 255, 255, 0.85); }

.cta__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  color: #fff;
  margin: var(--spacing-sm) 0 var(--spacing-md);
}
.cta__desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.cta__actions { position: relative; z-index: 1; }

/* Light (white) button — for use on dark / colored backgrounds */
.btn--light {
  background: #ffffff;
  border-color: #ffffff;
  color: #2e1065;
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}

@media (max-width: 760px) {
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Single project — combined adaptive layout
   ============================================================ */
.project-single { padding-top: var(--spacing-lg); }

.project-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(210, 210, 230, 0.6);
  text-decoration: none;
  margin-bottom: var(--spacing-lg);
  transition: color var(--transition);
}
.project-back:hover { color: var(--color-secondary); }
[data-theme='light'] .project-back { color: rgba(15, 15, 26, 0.55); }

.project-hero { padding-bottom: var(--spacing-xl); }

/* Two-column hero: text left, facts card right */
.project-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.project-hero__grid--full { grid-template-columns: minmax(0, 860px); }
.project-hero__main { min-width: 0; }
.project-hero__aside { position: sticky; top: calc(var(--header-h) + 20px); }

@media (max-width: 860px) {
  .project-hero__grid,
  .project-hero__grid--full { grid-template-columns: 1fr; }
  .project-hero__aside { position: static; }
}

.project-hero__type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  margin-bottom: var(--spacing-md);
}
.project-hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 var(--spacing-md);
}
.project-hero__lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(210, 210, 230, 0.68);
  max-width: 680px;
  margin: 0 0 var(--spacing-lg);
}
[data-theme='light'] .project-hero__lead { color: rgba(15, 15, 26, 0.62); }

.project-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.project-tags li {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(230, 230, 245, 0.75);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme='light'] .project-tags li {
  color: rgba(15, 15, 26, 0.7);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Cover */
.project-cover { margin-bottom: var(--spacing-2xl); }
.project-cover__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme='light'] .project-cover__img { border-color: rgba(15, 15, 26, 0.08); }

/* Body: content + facts sidebar */
.project-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--spacing-2xl);
  align-items: start;
}
.project-body__grid--full { grid-template-columns: minmax(0, 760px); justify-content: center; }

.project-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.project-aside__back {
  display: inline-block;
  margin-top: var(--spacing-lg);
  font-size: 0.9rem;
  color: rgba(210, 210, 230, 0.6);
  text-decoration: none;
}
.project-aside__back:hover { color: var(--color-secondary); }

/* Facts */
.project-facts {
  margin: 0;
  padding: var(--spacing-lg);
  border-radius: 18px;
  background: #15151f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme='light'] .project-facts { background: #fff; border-color: rgba(15, 15, 26, 0.08); }
.project-fact { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.project-fact:first-child { padding-top: 0; }
.project-fact:last-child { padding-bottom: 0; border-bottom: 0; }
[data-theme='light'] .project-fact { border-color: rgba(15, 15, 26, 0.07); }
.project-fact__label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(210, 210, 230, 0.45);
  margin-bottom: 3px;
}
[data-theme='light'] .project-fact__label { color: rgba(15, 15, 26, 0.45); }
.project-fact__value { margin: 0; font-weight: 600; }
.project-fact__value a { color: var(--color-secondary); text-decoration: none; }
.project-fact__value a:hover { text-decoration: underline; }

/* Inline facts strip (minimal-content case) */
.project-facts--inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) var(--spacing-xl);
}
.project-facts--inline .project-fact { padding: 0; border: 0; }

/* Body typography (the_content) */
.project-body__content { font-size: 1.0625rem; line-height: 1.75; color: rgba(220, 220, 235, 0.8); }
[data-theme='light'] .project-body__content { color: rgba(15, 15, 26, 0.78); }
.project-body__content > :first-child { margin-top: 0; }
.project-body__content h2 { font-family: var(--font-heading); font-size: 1.6rem; margin: 2em 0 0.6em; }
.project-body__content h3 { font-family: var(--font-heading); font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.project-body__content p { margin: 0 0 1.1em; }
.project-body__content ul, .project-body__content ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.project-body__content li { margin-bottom: 0.4em; }
.project-body__content img { max-width: 100%; height: auto; border-radius: 16px; margin: 1.2em 0; }
.project-body__content a { color: var(--color-secondary); }

/* Gallery */
.project-gallery__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.project-gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
}
[data-theme='light'] .project-gallery__item { border-color: rgba(15, 15, 26, 0.08); }
.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-gallery__item:hover img { transform: scale(1.05); }

/* Footer CTA */
.project-foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  border-radius: 24px;
  background: #15151f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme='light'] .project-foot__inner { background: var(--color-light-gray); border-color: rgba(15, 15, 26, 0.06); }
.project-foot__title { font-family: var(--font-heading); font-size: 1.5rem; margin: 0 0 6px; }
.project-foot__desc { margin: 0; color: rgba(210, 210, 230, 0.6); }
[data-theme='light'] .project-foot__desc { color: rgba(15, 15, 26, 0.6); }

@media (max-width: 860px) {
  .project-body__grid { grid-template-columns: 1fr; }
  .project-aside { position: static; }
}

/* ============================================================
   Page intro (Services / Contacts page templates)
   ============================================================ */
.page-intro {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--spacing-lg);
}
.page-intro::before {
  content: '';
  position: absolute;
  top: -50%;
  right: 6%;
  width: 620px;
  height: 460px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 20%, transparent) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.page-intro .container { position: relative; z-index: 1; }
.page-intro .section-tag { margin-bottom: var(--spacing-sm); }
.page-intro__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 6px 0 var(--spacing-md);
}
.page-intro__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: rgba(210, 210, 230, 0.68);
  max-width: 680px;
  margin: 0;
}
[data-theme='light'] .page-intro__lead { color: rgba(15, 15, 26, 0.66); }
.page-intro__content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(210, 210, 230, 0.68);
}
[data-theme='light'] .page-intro__content { color: rgba(15, 15, 26, 0.66); }
.page-intro__content > :last-child { margin-bottom: 0; }

/* Single service — hero */
.service-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme='light'] .service-hero { border-bottom-color: rgba(15, 15, 26, 0.1); }
.service-hero::before {
  content: '';
  position: absolute;
  top: -55%;
  left: 12%;
  width: 720px;
  height: 520px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 24%, transparent) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.service-hero .container { position: relative; z-index: 1; }

.service-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  margin-top: var(--spacing-lg);
}
.service-hero__text { flex: 1; min-width: 0; }
.service-hero__text .btn { margin-top: var(--spacing-md); }

/* Right column: icon + tags */
.service-hero__aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-md);
}
.service-hero__tags { justify-content: flex-end; }

.service-hero__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 18px 40px -16px rgba(168, 85, 247, 0.75);
}
.service-hero__icon svg { width: 38px; height: 38px; }

.service-hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  margin: 0 0 var(--spacing-sm);
}
.service-hero__lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(210, 210, 230, 0.68);
  max-width: 640px;
  margin: 0 0 var(--spacing-lg);
}
[data-theme='light'] .service-hero__lead { color: rgba(15, 15, 26, 0.62); }

.service-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

@media (max-width: 680px) {
  .service-hero__inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: var(--spacing-lg);
  }
  .service-hero__aside { align-items: flex-start; }
  .service-hero__tags { justify-content: flex-start; }
}

/* ============================================================
   About page
   ============================================================ */
.about-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--spacing-2xl);
}
.about-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: 8%;
  width: 640px;
  height: 480px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 22%, transparent) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin: var(--spacing-sm) 0 var(--spacing-md);
}
.about-hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: rgba(210, 210, 230, 0.7);
  max-width: 760px;
}
[data-theme='light'] .about-hero__lead { color: rgba(15, 15, 26, 0.66); }

/* Story + stats */
.about-story__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.about-story__text .section-title { margin: 8px 0 var(--spacing-lg); }
.about-story__text p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(210, 210, 230, 0.66);
  margin: 0 0 1.1em;
}
[data-theme='light'] .about-story__text p { color: rgba(15, 15, 26, 0.66); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.about-stat {
  padding: var(--spacing-lg);
  border-radius: 20px;
  background: #15151f;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
[data-theme='light'] .about-stat { background: #fff; border-color: rgba(15, 15, 26, 0.08); }
.about-stat:nth-child(even) { transform: translateY(20px); }
.about-stat__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-stat__plus { -webkit-text-fill-color: var(--color-secondary); }
.about-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(210, 210, 230, 0.6);
}
[data-theme='light'] .about-stat__label { color: rgba(15, 15, 26, 0.6); }

.about-story__content { margin-top: var(--spacing-2xl); max-width: 760px; }

/* Values */
.about-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.about-value {
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  border-radius: 22px;
  background: #15151f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform var(--transition), border-color var(--transition);
}
.about-value:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, 0.45); }
[data-theme='light'] .about-value { background: #fff; border-color: rgba(15, 15, 26, 0.08); }
.about-value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 12px 26px -12px rgba(168, 85, 247, 0.7);
  margin-bottom: var(--spacing-md);
}
.about-value__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}
.about-value__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(210, 210, 230, 0.6);
  margin: 0;
}
[data-theme='light'] .about-value__desc { color: rgba(15, 15, 26, 0.6); }

@media (max-width: 880px) {
  .about-story__grid { grid-template-columns: 1fr; gap: var(--spacing-xl); }
  .about-values__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .about-stats { grid-template-columns: 1fr; }
  .about-stat:nth-child(even) { transform: none; }
  .about-values__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Scroll reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f17;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
[data-theme='light'] .preloader { background: #ffffff; }
.preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.preloader__logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 22vw, 150px);
  aspect-ratio: 1;
}
.preloader__mark {
  position: relative;
  z-index: 1;
  width: 62%;
  height: auto;
  display: block;
  animation: pl-glow 2s ease-in-out infinite;
}

/* Brand colours + theme handling (white pieces go dark on light bg) */
.preloader__mark .pl-accent { fill: var(--color-accent); }
.preloader__mark .pl-white  { fill: #ffffff; }
[data-theme='light'] .preloader__mark .pl-white { fill: #1c1c1c; }

/* Assembly. We animate the individual `translate`/`scale` properties (NOT
   `transform`) so each path keeps its positioning transform="translate()". */
.preloader__mark path {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* Phase 1 — white centre pieces converge from the edges to the centre */
.preloader__mark .pl-white { animation: pl-converge 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.preloader__mark path:nth-child(2) { --pl-from: -160px; animation-delay: 0.05s; } /* left piece, from left */
.preloader__mark path:nth-child(4) { --pl-from: 160px;  animation-delay: 0.18s; } /* right piece, from right */

/* Phase 2 — purple pieces pop in afterwards */
.preloader__mark .pl-accent { animation: pl-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.preloader__mark path:nth-child(1) { animation-delay: 0.85s; }
.preloader__mark path:nth-child(3) { animation-delay: 1.0s; }

/* Rotating gradient ring around the mark */
.preloader__ring {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    color-mix(in srgb, var(--color-primary) 70%, transparent) 30%,
    var(--color-secondary) 55%,
    transparent 78%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: pl-spin 5s linear infinite;
}
.preloader__ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.12);
}

/* Logo swaps with the theme (white mark on dark, dark mark on light) */
@keyframes pl-spin {
  to { transform: rotate(360deg); }
}
@keyframes pl-glow {
  0%, 100% { filter: drop-shadow(0 6px 16px rgba(168, 85, 247, 0.25)); }
  50%      { filter: drop-shadow(0 10px 30px rgba(168, 85, 247, 0.65)); }
}
@keyframes pl-converge {
  from { opacity: 0; translate: var(--pl-from, 0) 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes pl-pop {
  from { opacity: 0; translate: 0 -22px; }
  to   { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__mark,
  .preloader__mark path,
  .preloader__ring { animation: none; }
  .preloader__mark path { opacity: 1; }
}

/* ============================================================
   Contact modal
   ============================================================ */
body.has-modal-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.contact-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 24, 0.62);
  backdrop-filter: blur(4px);
}

.contact-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--color-white);
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-modal.is-open .contact-modal__dialog {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.08);
  color: var(--color-dark);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.contact-modal__close:hover {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(90deg);
}

.contact-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left — contacts */
.contact-modal__aside {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(168, 85, 247, 0.22) 0%, transparent 50%),
    linear-gradient(165deg, #241b3f 0%, #15111f 100%);
  color: #fff;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* Soft decorative glow blobs (instead of a flat purple fill) */
.contact-modal__aside::before,
.contact-modal__aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.contact-modal__aside::before {
  width: 280px;
  height: 280px;
  bottom: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 70%);
  filter: blur(8px);
}

.contact-modal__aside::after {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -50px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.28) 0%, transparent 70%);
}

.contact-modal__aside > * {
  position: relative;
  z-index: 1;
}

.contact-modal__aside .section-tag {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(139, 92, 246, 0.28);
}

.contact-modal__title {
  margin: 16px 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.18;
  color: #fff;
}

.contact-modal__lead {
  margin: 0 0 26px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.contact-modal__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-modal__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-modal__item-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.contact-modal__item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-modal__item-label {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.contact-modal__item-value {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  word-break: break-word;
}

a.contact-modal__item-value:hover {
  text-decoration: underline;
}

.contact-modal__socials {
  display: flex;
  gap: 10px;
}

.contact-modal__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}

.contact-modal__social:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Right — form */
.contact-modal__form {
  padding: clamp(28px, 4vw, 44px);
}

.contact-modal__form-title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
}

.contact-modal__form-fallback {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray);
}

/* Contact Form 7 controls — styled to match the theme */
.contact-modal__form .wpcf7 .cf7-field,
.contact-modal__form .wpcf7 p {
  margin: 0 0 16px;
}

.contact-modal__form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.contact-modal__form .wpcf7-form-control-wrap {
  display: block;
}

.contact-modal__form input.wpcf7-form-control,
.contact-modal__form textarea.wpcf7-form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-dark);
  background: var(--color-light-gray);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-modal__form input.wpcf7-form-control::placeholder,
.contact-modal__form textarea.wpcf7-form-control::placeholder {
  color: var(--color-gray);
}

.contact-modal__form input.wpcf7-form-control:focus,
.contact-modal__form textarea.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.contact-modal__form textarea.wpcf7-form-control {
  min-height: 96px;
  resize: vertical;
}

.contact-modal__form input.wpcf7-submit {
  width: 100%;
  padding: 15px 24px;
  margin-top: 6px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.42);
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-modal__form input.wpcf7-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(139, 92, 246, 0.55);
}

.contact-modal__form input.wpcf7-submit:active {
  transform: translateY(0);
}

.contact-modal__form .wpcf7-spinner {
  margin: 10px auto 0;
  display: block;
}

/* CF7 validation / response messages */
.contact-modal__form .wpcf7 form .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

.contact-modal__form .wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #e11d48;
  margin-top: 4px;
}

.contact-modal__form input.wpcf7-not-valid,
.contact-modal__form textarea.wpcf7-not-valid {
  border-color: #e11d48;
}

/* ── Tablet / large phone: stack columns ─────────────────── */
@media (max-width: 767px) {
  .contact-modal__grid {
    grid-template-columns: 1fr;
  }
  .contact-modal__aside {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 28px 24px 24px;
  }
  .contact-modal__title {
    margin: 12px 0 10px;
    font-size: 1.5rem;
  }
  .contact-modal__lead {
    margin-bottom: 20px;
  }
  .contact-modal__list {
    gap: 12px;
    margin-bottom: 18px;
  }
  .contact-modal__form {
    padding: 24px;
  }
  /* Close sits over the purple aside now — make it light */
  .contact-modal__close {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  .contact-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
  }
}

/* ── Phone: edge-to-edge bottom sheet ────────────────────── */
@media (max-width: 575px) {
  .contact-modal {
    align-items: flex-end;
    padding: 0;
  }

  .contact-modal__dialog {
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    /* Slide up from the bottom instead of fade-zoom */
    transform: translateY(100%);
    transition: transform 0.36s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .contact-modal.is-open .contact-modal__dialog {
    transform: translateY(0);
  }

  /* Grab-handle affordance */
  .contact-modal__dialog::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 42px;
    height: 4px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    z-index: 3;
  }

  .contact-modal__aside {
    padding: 32px 20px 22px;
  }
  .contact-modal__title {
    font-size: 1.35rem;
  }
  .contact-modal__lead {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .contact-modal__form {
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  }
  .contact-modal__form-title {
    margin-bottom: 16px;
    font-size: 1.15rem;
  }

  .contact-modal__close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
}

/* No slide-up for users who prefer reduced motion */
@media (max-width: 575px) and (prefers-reduced-motion: reduce) {
  .contact-modal__dialog {
    transform: none;
    transition: none;
  }
}
