/* ──────────────────────────────────────────────────────────────────────────
   PAAFEKT — Premium Design System (global.css)
   Single source of truth. Loaded on every page.
   ────────────────────────────────────────────────────────────────────────── */

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

/* ── Color, type, spacing tokens ───────────────────────────────────────── */
:root,
:root[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-elevated: #1a1a2e;

  --text-primary: #ffffff;
  --text-secondary: #8888aa;
  --text-muted: #555566;

  --accent-blue: #0066ff;
  --accent-blue-soft: #2f87ff;
  --accent-purple: #7b2fff;
  --accent-blue-glow: rgba(0, 102, 255, 0.15);
  --accent-glow: rgba(47, 135, 255, 0.35);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);

  --brand-gold: #d4a017;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);

  /* Hero layering */
  --hero-base: radial-gradient(
      1400px 700px at 50% -10%,
      rgba(47, 135, 255, 0.28) 0%,
      rgba(47, 135, 255, 0.12) 28%,
      rgba(123, 47, 255, 0.1) 55%,
      rgba(10, 10, 15, 0) 78%
    ),
    linear-gradient(180deg, #0a0a0f 0%, #0a0a0f 60%, #0c0c14 100%);
  --hero-bleed: radial-gradient(
      900px 520px at 12% 80%,
      rgba(123, 47, 255, 0.22) 0%,
      rgba(123, 47, 255, 0.08) 35%,
      rgba(0, 0, 0, 0) 70%
    ),
    radial-gradient(
      800px 480px at 92% 18%,
      rgba(47, 135, 255, 0.18) 0%,
      rgba(47, 135, 255, 0.06) 40%,
      rgba(0, 0, 0, 0) 72%
    );
  --hero-glow-gradient: radial-gradient(
    closest-side,
    rgba(47, 135, 255, 0.55) 0%,
    rgba(47, 135, 255, 0.18) 45%,
    rgba(47, 135, 255, 0) 75%
  );
  --hero-dot-color: rgba(255, 255, 255, 0.07);
  --hero-dot-strong: rgba(255, 255, 255, 0.14);
  --hero-video-scrim: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(10, 10, 15, 0.55) 55%,
    rgba(10, 10, 15, 0.85) 100%
  );
  --hero-video-filter: brightness(0.85) saturate(1.05) contrast(1.02);

  color-scheme: dark;

  /* Type scale */
  --font-hero: clamp(3rem, 8vw, 6rem);
  --font-h1: clamp(2rem, 4vw, 3.5rem);
  --font-h2: clamp(1.5rem, 3vw, 2.5rem);
  --font-h3: clamp(1.1rem, 2vw, 1.5rem);
  --font-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --font-small: 0.85rem;
  --font-eyebrow: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  --ease-premium: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

:root[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-elevated: #f3f4f8;

  --text-primary: #0c0d12;
  --text-secondary: #4a4a60;
  --text-muted: #8a8aa0;

  --accent-blue: #0050d6;
  --accent-blue-soft: #1f6dff;
  --accent-purple: #6a1ee0;
  --accent-blue-glow: rgba(0, 80, 214, 0.12);
  --accent-glow: rgba(31, 109, 255, 0.22);

  --border-subtle: rgba(10, 10, 30, 0.1);
  --border-hover: rgba(10, 10, 30, 0.22);

  --glass-bg: rgba(10, 10, 30, 0.03);
  --glass-bg-hover: rgba(10, 10, 30, 0.06);

  --brand-gold: #b8860b;

  --shadow-card: 0 8px 24px rgba(20, 30, 60, 0.08);

  --hero-base: radial-gradient(
      1400px 760px at 50% -12%,
      rgba(31, 109, 255, 0.18) 0%,
      rgba(31, 109, 255, 0.08) 30%,
      rgba(106, 30, 224, 0.05) 58%,
      rgba(255, 255, 255, 0) 80%
    ),
    linear-gradient(180deg, #ffffff 0%, #f7f8fc 55%, #eef1f8 100%);
  --hero-bleed: radial-gradient(
      900px 520px at 10% 82%,
      rgba(106, 30, 224, 0.1) 0%,
      rgba(106, 30, 224, 0.04) 40%,
      rgba(255, 255, 255, 0) 72%
    ),
    radial-gradient(
      820px 500px at 92% 16%,
      rgba(31, 109, 255, 0.1) 0%,
      rgba(31, 109, 255, 0.03) 42%,
      rgba(255, 255, 255, 0) 74%
    );
  --hero-glow-gradient: radial-gradient(
    closest-side,
    rgba(31, 109, 255, 0.3) 0%,
    rgba(31, 109, 255, 0.1) 50%,
    rgba(31, 109, 255, 0) 78%
  );
  --hero-dot-color: rgba(10, 12, 30, 0.06);
  --hero-dot-strong: rgba(10, 12, 30, 0.12);
  --hero-video-scrim: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(248, 250, 255, 0.65) 55%,
    rgba(238, 241, 248, 0.92) 100%
  );
  --hero-video-filter: brightness(1.02) saturate(0.92) contrast(0.98);

  color-scheme: light;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  transition:
    background-color 0.35s var(--ease-premium),
    color 0.35s var(--ease-premium);
}

body {
  font-family: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans Arabic',
               'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Bengali',
               sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ── Typography ─────────────────────────────────────────────────────────── */
h1,
.hero-headline {
  font-size: var(--font-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 {
  font-size: var(--font-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h3 {
  font-size: var(--font-h3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

p,
.body-text {
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.eyebrow {
  font-size: var(--font-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: block;
  margin-bottom: var(--space-sm);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-soft) 60%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Layout primitives ──────────────────────────────────────────────────── */
section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-md);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
}

/* ── Links ──────────────────────────────────────────────────────────────── */
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

a:hover {
  opacity: 0.85;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.arrow-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s var(--ease-premium);
}

.arrow-link:hover::after {
  transform: translateX(4px);
}

[dir="rtl"] .arrow-link::after {
  content: '←';
}

[dir="rtl"] .arrow-link:hover::after {
  transform: translateX(-4px);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.45);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--glass-bg);
  opacity: 1;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark:hover {
  opacity: 1;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: auto;
  display: block;
  flex-shrink: 0;
  filter:
    brightness(1.12) contrast(1.1)
    drop-shadow(0 0 2px rgba(47, 135, 255, 0.5))
    drop-shadow(0 0 8px rgba(47, 135, 255, 0.25))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  -webkit-filter:
    brightness(1.12) contrast(1.1)
    drop-shadow(0 0 2px rgba(47, 135, 255, 0.5))
    drop-shadow(0 0 8px rgba(47, 135, 255, 0.25))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transition:
    filter 0.35s var(--ease-premium),
    transform 0.35s var(--ease-premium);
  will-change: filter, transform;
}

.logo-mark:hover .logo-img {
  filter:
    brightness(1.15) contrast(1.12)
    drop-shadow(0 0 3px rgba(47, 135, 255, 0.7))
    drop-shadow(0 0 14px rgba(47, 135, 255, 0.4))
    drop-shadow(0 0 28px rgba(123, 47, 255, 0.18))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  -webkit-filter:
    brightness(1.15) contrast(1.12)
    drop-shadow(0 0 3px rgba(47, 135, 255, 0.7))
    drop-shadow(0 0 14px rgba(47, 135, 255, 0.4))
    drop-shadow(0 0 28px rgba(123, 47, 255, 0.18))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transform: scale(1.08);
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-text .aa {
  color: #d4a017;
}

@media (max-width: 480px) {
  .logo-text { display: none; }
  .logo-img { width: 32px; height: 32px; }
}

/* Footer logo treatment */
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.5rem;
}
.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter:
    brightness(1.1) contrast(1.08)
    drop-shadow(0 0 2px rgba(47, 135, 255, 0.4))
    drop-shadow(0 0 6px rgba(47, 135, 255, 0.18));
  -webkit-filter:
    brightness(1.1) contrast(1.08)
    drop-shadow(0 0 2px rgba(47, 135, 255, 0.4))
    drop-shadow(0 0 6px rgba(47, 135, 255, 0.18));
  opacity: 1;
}
.footer-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--text-secondary);
  font-size: var(--font-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-primary);
  opacity: 1;
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent-blue);
  border-radius: 1px;
}

/* Explore dropdown */
.nav-explore {
  position: relative;
}

.nav-explore-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: var(--font-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-explore-btn:hover,
.nav-explore.is-open .nav-explore-btn {
  color: var(--text-primary);
}

.nav-explore-btn .chevron {
  width: 9px;
  height: 9px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

.nav-explore.is-open .nav-explore-btn .chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.nav-explore-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  min-width: 220px;
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.nav-explore.is-open .nav-explore-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-explore-menu a {
  padding: 0.65rem 0.9rem;
  color: var(--text-secondary);
  font-size: var(--font-small);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-explore-menu a:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
  opacity: 1;
}

/* Language selector */
.nav-lang {
  position: relative;
}

.nav-lang-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.2s, color 0.2s;
}

.nav-lang-btn:hover,
.nav-lang.is-open .nav-lang-btn {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.nav-lang-btn .globe {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.2px solid currentColor;
  position: relative;
  flex-shrink: 0;
}

.nav-lang-btn .globe::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-left: 1.2px solid currentColor;
  border-right: 1.2px solid currentColor;
  transform: scaleX(0.45);
}

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.nav-lang.is-open .nav-lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-lang-menu button {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-align: start;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: var(--font-small);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}

.nav-lang-menu button:hover,
.nav-lang-menu button.is-current {
  background: var(--glass-bg);
  color: var(--text-primary);
}

/* Mobile burger */
.nav-burger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-burger span {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-premium), opacity 0.2s;
}

.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-burger span:nth-child(3) { bottom: 14px; }

.nav.is-mobile-open .nav-burger span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav.is-mobile-open .nav-burger span:nth-child(2) {
  opacity: 0;
}
.nav.is-mobile-open .nav-burger span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile menu drawer */
.nav-mobile {
  position: fixed;
  inset: 64px 0 0 0;
  background: color-mix(in srgb, var(--bg-primary) 97%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s, transform 0.3s var(--ease-premium);
  z-index: 999;
  overflow-y: auto;
}

.nav.is-mobile-open + .nav-mobile,
.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile a {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  color: var(--text-primary);
  opacity: 1;
}

.nav-mobile .mobile-lang {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.nav-mobile .mobile-lang label {
  display: block;
  font-size: var(--font-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.nav-mobile .mobile-lang select {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: var(--font-small);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-xl) var(--space-md);
  isolation: isolate;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-bleed), var(--hero-base);
  background-attachment: fixed, fixed;
  animation: heroShift 22s var(--ease-premium) infinite alternate;
  pointer-events: none;
  will-change: transform;
}

@keyframes heroShift {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.06) translate(-2%, 1%); }
  100% { transform: scale(1) translate(1%, -1%); }
}

@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll, scroll;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--hero-video-filter);
  pointer-events: none;
}

.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--hero-video-scrim);
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(720px, 80vw);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -30%);
  background: var(--hero-glow-gradient);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
  animation: fadeUp 1.2s var(--ease-premium) both;
}

:root[data-theme="light"] .hero-glow {
  mix-blend-mode: multiply;
}

:root[data-theme="light"] .hero-bg {
  mix-blend-mode: normal;
}

.dot-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(var(--hero-dot-color) 1px, transparent 1px),
    radial-gradient(var(--hero-dot-strong) 1px, transparent 1px);
  background-size: 22px 22px, 88px 88px;
  background-position: 0 0, 11px 11px;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

@media (max-width: 480px) {
  .dot-grid-overlay {
    background-image: radial-gradient(var(--hero-dot-color) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0;
  }
}

:root[data-theme="light"] .hero h1 {
  color: transparent;
  text-shadow: none;
  background: linear-gradient(180deg, #0c0d12 0%, #23284a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-theme="light"] .hero .eyebrow {
  color: var(--accent-blue);
}

:root[data-theme="light"] .hero .hero-tagline,
:root[data-theme="light"] .hero .subhead {
  color: var(--text-secondary);
}

:root[data-theme="light"] .hero h1 .accent {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--accent-blue-soft);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto;
}

.hero-content .eyebrow {
  margin-bottom: var(--space-md);
  color: var(--accent-blue-soft);
  letter-spacing: 0.32em;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-premium) 0.3s forwards;
}

.hero-content h1 {
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 1s var(--ease-premium) 0.55s forwards;
}

.hero-tagline {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-premium) 0.85s forwards;
}

.hero-content .btn-row {
  justify-content: center;
  margin-top: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-premium) 1.1s forwards;
}

.hero-footer-text {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(136, 136, 170, 0.55);
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-premium) 1.5s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-premium) 1.3s forwards;
  pointer-events: none;
}

.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Compact hero (interior pages) ──────────────────────────────────────── */
.hero-compact {
  min-height: 70vh;
  padding-top: calc(var(--space-2xl) - 1rem);
  padding-bottom: var(--space-xl);
}

.hero-compact h1 {
  font-size: var(--font-h1);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-compact .hero-tagline {
  line-height: 1.6;
  margin-top: 0.75rem;
}

.hero-compact .hero-content {
  animation: none;
}

/* Legal/interior pages: skip the fade-in entrance — buttons and copy must
   appear immediately so they remain tappable inside in-app WebViews where
   animations can hiccup. */
.hero-compact .hero-content .eyebrow,
.hero-compact .hero-content h1,
.hero-compact .hero-content .hero-tagline,
.hero-compact .hero-content .btn-row {
  opacity: 1;
  animation: none;
}

/* Anchor jumps land below the fixed nav, not behind it */
.legal-content > section[id],
.legal-toc,
section#philosophy,
section#principles,
section#entities,
section#team {
  scroll-margin-top: 90px;
}

/* ── App-embed mode ───────────────────────────────────────────────────────
   Triggered when the page is opened via ?app=1 (the mobile app passes this
   when displaying terms.html / privacy.html in its WebView). Hides the site
   chrome so the user sees a focused legal document. */
body.is-embedded .nav,
body.is-embedded .nav-mobile,
body.is-embedded .nav-burger,
body.is-embedded .site-footer {
  display: none !important;
}

body.is-embedded main {
  padding-top: 0;
}

body.is-embedded .hero,
body.is-embedded .hero-compact {
  min-height: auto;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
}

body.is-embedded .hero-bg,
body.is-embedded .hero-video,
body.is-embedded .hero-video-scrim,
body.is-embedded .dot-grid-overlay,
body.is-embedded .hero-glow {
  display: none;
}

/* ── Split hero (two-column with constellation panel) ───────────────────── */
.hero-split {
  text-align: left;
}

.hero-split .hero-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-2xl);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero-split .panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  background: var(--hero-base);
}

:root[data-theme="light"] .hero-split .panel {
  background:
    radial-gradient(600px 400px at 30% 20%, rgba(31, 109, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #ffffff, #f3f5fb);
}

.hero-split-copy {
  text-align: left;
  max-width: 560px;
}

.hero-split-copy .eyebrow {
  margin-bottom: 1.2rem;
  letter-spacing: 0.18em;
  text-align: left;
}

.hero-split h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-split h1 .accent {
  color: var(--accent-blue-soft);
}

.hero-split .hero-tagline {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0.5rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-split .btn-row {
  justify-content: flex-start;
  margin-top: var(--space-md);
}

.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.hero-media .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: var(--hero-video-filter);
}

.hero-media .hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--hero-video-scrim);
}

/* Right side — constellation panel */
.constellation-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 110% 110%, rgba(0, 102, 255, 0.32), transparent 55%),
    linear-gradient(150deg, rgba(40, 30, 80, 0.55) 0%, rgba(15, 12, 30, 0.85) 60%, rgba(8, 6, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 60px -30px rgba(0, 102, 255, 0.18);
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-premium) 0.65s forwards;
}

.constellation-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  pointer-events: none;
}

.constellation-panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.constellation-line {
  stroke: rgba(160, 180, 255, 0.18);
  stroke-width: 1;
  fill: none;
}

.constellation-dot {
  fill: var(--accent-blue-soft);
  filter: drop-shadow(0 0 6px rgba(47, 135, 255, 0.85));
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPulse 4s ease-in-out infinite;
}

.constellation-dot:nth-child(2) { animation-delay: 0.4s; }
.constellation-dot:nth-child(3) { animation-delay: 0.9s; }
.constellation-dot:nth-child(4) { animation-delay: 1.5s; }
.constellation-dot:nth-child(5) { animation-delay: 2.1s; }
.constellation-dot:nth-child(6) { animation-delay: 2.7s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* Section-level two-column block (mirrors the hero split for content sections) */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.split-copy {
  text-align: left;
  max-width: 540px;
}

.split-copy .eyebrow {
  margin-bottom: 1.2rem;
  text-align: left;
}

.split-copy h2 {
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.split-copy h2 .accent {
  color: var(--accent-blue-soft);
}

.split-copy p {
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0;
}

.split-block .constellation-panel {
  max-width: 420px;
  margin-left: auto;
}

@media (max-width: 880px) {
  .split-block {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  .split-copy {
    text-align: center;
    margin: 0 auto;
  }
  .split-copy .eyebrow { text-align: center; }
  .split-copy p { margin-left: auto; margin-right: auto; }
  .split-block .constellation-panel {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Particle canvas — covers its parent section as an animated backdrop */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* About-brief: position so canvas can paint behind the text */
#about-brief {
  position: relative;
  overflow: hidden;
}
#about-brief .container {
  position: relative;
  z-index: 1;
}

/* Stack on narrow screens */
@media (max-width: 900px) {
  .hero-split .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  .hero-split-copy {
    text-align: center;
    margin: 0 auto;
  }
  .hero-split-copy .eyebrow {
    text-align: center;
  }
  .hero-split .hero-tagline {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-split .btn-row {
    justify-content: center;
  }
  .hero-media {
    aspect-ratio: 16 / 10;
    max-height: 60vh;
  }
  .constellation-panel {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ── Cards (glassmorphic) ───────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.4s var(--ease-premium),
              border-color 0.4s var(--ease-premium),
              transform 0.4s var(--ease-premium),
              box-shadow 0.4s var(--ease-premium);
}

.card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.10);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Section header subtitle breathes a bit more */
.section-header h2 {
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-header p {
  line-height: 1.7;
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent-blue), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-premium);
}

.card:hover .card-accent {
  transform: scaleX(1);
}

/* Cards with background video */
.card-media {
  padding: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(0.5px) saturate(115%);
  z-index: 0;
  transition: opacity 0.5s var(--ease-premium), transform 6s ease-out;
  pointer-events: none;
}

.card-media:hover .card-media-video {
  opacity: 0.55;
  transform: scale(1.04);
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.45) 0%,
    rgba(10, 10, 15, 0.65) 60%,
    rgba(10, 10, 15, 0.95) 100%
  );
  z-index: 1;
}

.card-media-content {
  position: relative;
  z-index: 2;
  padding: var(--space-lg) var(--space-md);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ── Reveal animations ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-premium),
              transform 0.8s var(--ease-premium);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-premium),
              transform 0.7s var(--ease-premium);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s;     opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.08s;  opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.16s;  opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.24s;  opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.32s;  opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s;  opacity: 1; transform: translateY(0); }

/* ── Dot grid overlay (sparingly) ───────────────────────────────────────── */
.dot-grid {
  position: relative;
}

.dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.dot-grid > * {
  position: relative;
  z-index: 1;
}

/* ── Video patterns ─────────────────────────────────────────────────────── */
.video-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: var(--space-lg) auto 0;
  background: var(--bg-secondary);
}

.video-frame video,
.video-frame img {
  width: 100%;
  display: block;
}

.phone-frame {
  max-width: 320px;
  margin: var(--space-lg) auto 0;
  border-radius: 36px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  background: #000;
}

.phone-frame video,
.phone-frame img {
  width: 100%;
  display: block;
  border-radius: 32px;
}

/* ── Numbers grid ───────────────────────────────────────────────────────── */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  text-align: center;
  margin-top: var(--space-lg);
  background: var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.number-item {
  background: var(--bg-primary);
  padding: var(--space-lg) var(--space-md);
}

.number-value {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-blue-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.number-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Philosophy ─────────────────────────────────────────────────────────── */
.philosophy {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 102, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.philosophy-quote {
  position: relative;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 820px;
  margin: 0 auto;
}

.philosophy-quote em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-blue-soft), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.philosophy-rule {
  width: 60px;
  height: 1px;
  background: var(--accent-blue);
  margin: var(--space-md) auto 0;
  opacity: 0.6;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.95rem 1.05rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--font-body);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(136, 136, 170, 0.45);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(0, 102, 255, 0.55);
  background: var(--glass-bg-hover);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.form-field textarea {
  min-height: 140px;
}

.form-status {
  margin-top: var(--space-sm);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}

.form-status-success {
  color: #cde9d5;
  border-color: rgba(73, 192, 130, 0.35);
  background: rgba(46, 160, 102, 0.12);
}

.form-status-error {
  color: #ffd0d8;
  border-color: rgba(255, 80, 110, 0.35);
  background: rgba(255, 80, 110, 0.1);
}

:root[data-theme="light"] .form-status-success {
  color: #1a5b34;
  background: rgba(46, 160, 102, 0.12);
}

:root[data-theme="light"] .form-status-error {
  color: #8a1f33;
  background: rgba(255, 80, 110, 0.12);
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 102, 255, 0.07), transparent 60%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

.contact-heading span {
  background: linear-gradient(135deg, var(--accent-blue-soft), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.contact-detail a,
.contact-detail span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--font-body);
  color: var(--text-secondary);
}

.contact-detail a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.contact-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

.contact-email {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--text-primary);
  display: inline-block;
  margin-top: var(--space-sm);
  transition: color 0.3s;
}

.contact-email:hover {
  color: var(--accent-blue-soft);
  opacity: 1;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-inner span,
.footer-inner a {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-secondary);
  opacity: 1;
}

/* ── Long-form (legal) content ──────────────────────────────────────────── */
.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--space-md) + 70px);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-md);
}

.legal-toc h2 {
  font-size: var(--font-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-toc a {
  color: var(--text-secondary);
  font-size: var(--font-small);
  padding: 0.35rem 0;
  border-radius: 4px;
  transition: color 0.2s;
}

.legal-toc a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.legal-content {
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: var(--space-lg);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-bottom: var(--space-sm);
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content a {
  color: var(--accent-blue-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.step {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: background 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.step:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.step-number {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-blue-soft);
  margin-bottom: var(--space-md);
  display: block;
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ── Testimonial cards ──────────────────────────────────────────────────── */
.quote-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: background 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.quote-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.quote-card blockquote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 400;
}

.quote-card cite {
  display: block;
  font-style: normal;
  font-size: var(--font-small);
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 820px;
  margin: var(--space-lg) auto 0;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: var(--space-md);
  transition: background 0.3s, border-color 0.3s;
}

.faq-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-hover);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --space-2xl: 7rem;
    --space-xl: 5rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 6rem;
    --space-xl: 4rem;
    --space-lg: 3rem;
  }

  .nav-links,
  .nav-explore,
  .nav-lang {
    display: none;
  }

  .nav-burger {
    display: block;
  }

  .nav-inner {
    padding-inline: var(--space-sm);
  }

  .hero {
    min-height: 90vh;
    padding: var(--space-lg) var(--space-sm);
  }

  .hero-content h1 {
    font-size: var(--font-h1);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .scroll-hint,
  .hero-footer-text {
    display: none;
  }
}

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

@media (min-width: 1400px) {
  .container {
    max-width: 1300px;
  }
}

/* ── RTL ────────────────────────────────────────────────────────────────── */
[dir="rtl"] .nav-explore-menu,
[dir="rtl"] .nav-lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .card-accent {
  background: linear-gradient(to left, var(--accent-blue), transparent);
  transform-origin: right;
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-bg,
  .hero-glow,
  .scroll-line {
    animation: none !important;
  }

  .hero-media .hero-video {
    display: none;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(10, 10, 15, 0) 60%, rgba(10, 10, 15, 0.18) 100%),
      url("../assets/mountain-landscape-poster.jpg");
    background-size: cover;
    background-position: center;
  }

  :root[data-theme="light"] .hero-media {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(238, 241, 248, 0.35) 100%),
      url("../assets/mountain-landscape-poster.jpg");
  }
}

/* ── Leadership / team grid ─────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.team-card {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: background 0.4s var(--ease-premium),
              border-color 0.4s var(--ease-premium),
              transform 0.4s var(--ease-premium);
}

.team-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.team-photo img,
.team-photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.team-card:hover .team-photo img,
.team-card:hover .team-photo svg {
  filter: grayscale(0%);
}

.team-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.team-title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-blue-soft);
  display: block;
  margin-bottom: var(--space-sm);
}

.team-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ── Footer legal entity tweaks ─────────────────────────────────────────── */
.footer-inner small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
  opacity: 0.85;
}

/* ── Demo enterprise aside ──────────────────────────────────────────────── */
.demo-aside {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.demo-aside p {
  margin: 0;
  font-size: var(--font-small);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.demo-aside .arrow-link {
  color: var(--accent-blue-soft);
  font-weight: 500;
}

/* ── Selection ──────────────────────────────────────────────────────────── */
::selection {
  background: rgba(0, 102, 255, 0.35);
  color: var(--text-primary);
}

/* ── Scrollbar (subtle) ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Tesseract hero image (replaces constellation panel) ─────────────────── */
/* Bright. Confident. Detail intact — the figure, the code rivers, the
   five characters are all meant to be readable at a glance. */
.tesseract-hero {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  border-radius: 20px;
  overflow: hidden;
}

.tesseract-hero picture {
  display: block;
}

.tesseract-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  filter: brightness(1.05) saturate(1.1) contrast(1.05);
  transition: filter 0.6s ease, transform 0.8s ease;
  will-change: opacity, filter;
  animation: tesseractPulse 4s ease-in-out infinite;
}

.tesseract-hero::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 102, 255, 0.22),
    transparent 65%
  );
  pointer-events: none;
  filter: blur(32px);
  z-index: -1;
  opacity: 0.9;
}

.tesseract-hero:hover img {
  filter: brightness(1.12) saturate(1.18) contrast(1.07);
}

@keyframes tesseractPulse {
  0%, 100% {
    opacity: 0.92;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tesseract-hero img {
    animation: none;
    opacity: 1;
  }
}

/* ── Philosophy section ──────────────────────────────────────────────────
   The image is the message. We do not put quotes on top of it.
   Cold left → bright golden crack → warm right.
   PAAFEKT sits where the light gets in. */
.philosophy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.philosophy-full {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Stage = image + wordmark stacked. Wordmark sits over the bright center. */
.philosophy-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.philosophy-image {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}

.philosophy-image picture,
.philosophy-image img {
  display: block;
  width: 100%;
  height: auto;
}

.philosophy-image img {
  opacity: 0.65;
  filter: saturate(1.08) contrast(1.05);
  transition: opacity 1.6s ease-out, filter 1.6s ease-out;
  will-change: opacity, filter;
}

/* The kintsugi glow — pulses warm gold through the centre crack. */
.philosophy-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 28% 70% at 50% 50%,
    rgba(255, 200, 60, 0.55) 0%,
    rgba(255, 170, 40, 0.22) 35%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.6s ease-out;
  animation: kintsugiPulse 2.2s ease-in-out infinite;
}

@keyframes kintsugiPulse {
  0%, 100% { filter: brightness(1)    saturate(1); }
  50%      { filter: brightness(1.25) saturate(1.18); }
}

.philosophy.in-view .philosophy-image img {
  opacity: 0.92;
}

.philosophy.in-view .philosophy-glow {
  opacity: 1;
}

/* PAAFEKT wordmark — bright, tracked, glowing, sits over the crack.
   Each letter is gently misaligned: perfect is never perfect. */
.philosophy-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  z-index: 2;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 7rem);
  letter-spacing: 0.3em;
  /* Compensate for letter-spacing pushing the centre off — the trailing
     space after the last letter visually offsets the block to the right. */
  padding-left: 0.3em;
  line-height: 1;
  color: var(--text-primary);
  text-shadow:
    0 0 40px rgba(255, 215, 0, 0.35),
    0 0 80px rgba(255, 180, 30, 0.18),
    0 2px 18px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.philosophy-wordmark span {
  display: inline-block;
  transition: transform 0.6s ease;
}

/* Subtle, deliberate imperfection per letter — never the same twice. */
.philosophy-wordmark span:nth-child(1) { transform: translateY(-1px) rotate(-0.6deg); }
.philosophy-wordmark span:nth-child(2) { transform: translateY( 2px) rotate( 0.4deg); }
.philosophy-wordmark span:nth-child(3) { transform: translateY(-2px) rotate( 0.7deg); color: #FFD86B; }
.philosophy-wordmark span:nth-child(4) { transform: translateY( 1px) rotate(-0.3deg); color: #FFD86B; }
.philosophy-wordmark span:nth-child(5) { transform: translateY(-1px) rotate( 0.5deg); color: #FFD86B; }
.philosophy-wordmark span:nth-child(6) { transform: translateY( 2px) rotate(-0.4deg); }
.philosophy-wordmark span:nth-child(7) { transform: translateY(-1px) rotate( 0.6deg); }

.philosophy-whisper {
  display: block;
  margin: var(--space-md) auto 0;
  text-align: center;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  opacity: 0.6;
  max-width: 540px;
}

@media (max-width: 720px) {
  .philosophy-wordmark {
    font-size: clamp(1.6rem, 11vw, 3.2rem);
    letter-spacing: 0.22em;
    padding-left: 0.22em;
    text-shadow:
      0 0 24px rgba(255, 215, 0, 0.32),
      0 2px 10px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .philosophy-image img,
  .philosophy-glow {
    transition: none;
  }
  .philosophy-glow {
    animation: none;
  }
}

/* ── Section-level subtle background image (e.g. principles) ─────────────── */
.bg-image-soft {
  position: relative;
  isolation: isolate;
}

.bg-image-soft .bg-image-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  filter: saturate(0.7);
}

.bg-image-soft .bg-image-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    transparent 22%,
    transparent 78%,
    var(--bg-primary) 100%
  );
}

/* ── Hero split: tesseract responsive override ───────────────────────────── */
@media (max-width: 900px) {
  .tesseract-hero {
    max-width: 100%;
    margin: var(--space-md) 0 0;
  }
}

/* ── Code fingerprint hero ──────────────────────────────────────────────── */
.fingerprint-hero {
  border-radius: 24px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(212, 160, 23, 0.08),
    rgba(0, 0, 0, 0) 70%
  );
}
.fingerprint-hero img {
  filter: brightness(1.0) saturate(1.05) contrast(1.02);
  animation: none;
  opacity: 0.96;
}
.fingerprint-hero::after {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(212, 160, 23, 0.18),
    transparent 65%
  );
}

/* ── "What is Paafekt?" copy block ───────────────────────────────────────── */
.about-paafekt-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.about-paafekt-copy h2 {
  text-align: center;
  margin-bottom: var(--space-md);
}
.about-paafekt-copy .eyebrow {
  display: block;
  text-align: center;
}
.about-paafekt-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin: 0 0 1.25rem;
}
.about-paafekt-copy .about-signature {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  text-align: center;
}

/* ── Capabilities (Illuminate · Narrate · Heal) ──────────────────────────── */
.capabilities-section {
  padding-top: var(--space-2xl, 5rem);
  padding-bottom: var(--space-2xl, 5rem);
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: var(--space-lg, 3rem) auto 0;
}
.capability-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.capability-card:hover {
  border-color: rgba(212, 160, 23, 0.35);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}
.capability-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  color: var(--brand-gold);
  opacity: 0.9;
}
.capability-icon svg { width: 100%; height: 100%; display: block; }
.capability-title {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--brand-gold);
  margin: 0 0 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.capability-body {
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 300;
  margin: 0;
}
@media (max-width: 900px) {
  .capabilities-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── Support stack section ───────────────────────────────────────────────── */
.support-stack {
  padding-top: var(--space-2xl, 5rem);
  padding-bottom: var(--space-2xl, 5rem);
}
.support-stack .section-header { text-align: center; }
.support-line {
  text-align: center;
  margin: var(--space-lg, 3rem) auto 0;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Two-product section ─────────────────────────────────────────────────── */
.products-section {
  padding-top: var(--space-2xl, 5rem);
  padding-bottom: var(--space-2xl, 5rem);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: var(--space-lg, 3rem) auto 0;
}
.product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.product-card:hover {
  border-color: rgba(212, 160, 23, 0.3);
  transform: translateY(-2px);
}
.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-primary);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) saturate(1.05);
}
.product-copy {
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.product-title {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}
.product-body {
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 300;
  margin: 0;
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Experience page ─────────────────────────────────────────────────────── */
.experience-hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--bg-primary);
}
.experience-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  z-index: 0;
}
.experience-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.35) 0%,
    rgba(10, 10, 15, 0.65) 55%,
    rgba(10, 10, 15, 0.95) 100%
  );
  z-index: 1;
}
.experience-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 5rem;
  max-width: 920px;
}
.experience-hero-content .eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  letter-spacing: 0.22em;
}
.experience-hero-content h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 200;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
.experience-hero-content .hero-tagline {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1.7;
  max-width: 720px;
  margin: 0;
}

.experience-section {
  padding-top: var(--space-2xl, 5rem);
  padding-bottom: var(--space-2xl, 5rem);
}
.experience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto var(--space-xl, 4rem);
}
.experience-split-reverse .experience-image { order: 0; }
.experience-split-reverse .experience-copy  { order: 1; }
.experience-copy .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: 0.22em;
}
.experience-copy h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 200;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
.experience-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin: 0;
}
.experience-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-primary);
  aspect-ratio: 4 / 3;
}
.experience-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.experience-conviction {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.experience-conviction-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}
.experience-conviction-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 15, 0.85) 0%,
    rgba(10, 10, 15, 0.55) 50%,
    rgba(10, 10, 15, 0.85) 100%
  );
  z-index: 1;
}
.experience-conviction-content {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
  max-width: 820px;
  text-align: center;
}
.experience-conviction-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 200;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
.experience-conviction-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  margin: 0;
}

@media (max-width: 900px) {
  .experience-split { grid-template-columns: 1fr; gap: 2rem; }
  .experience-split-reverse .experience-image { order: 1; }
  .experience-split-reverse .experience-copy  { order: 0; }
  .experience-hero { min-height: 70vh; }
}

/* ── Footer philosophy line ──────────────────────────────────────────────── */
.philosophy-line {
  display: block;
  text-align: center;
  padding: 3rem 2rem 2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
body.is-embedded .philosophy-line { display: none; }

/* ── Footer entities + copyright ─────────────────────────────────────────── */
.footer-entities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-entity h4 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
}

.footer-entity p {
  margin: 0.15rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-copy a {
  color: var(--accent-blue-soft);
  text-decoration: none;
}

.footer-copy a:hover {
  opacity: 0.85;
}

.footer-inner > div:first-child {
  flex: 1;
  min-width: min(100%, 280px);
}

@media (max-width: 768px) {
  .footer-entities {
    grid-template-columns: 1fr;
  }
}

/* ── Contact form column + entities ──────────────────────────────────────── */
.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-entities {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: var(--font-small);
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-entities strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Theme toggle ────────────────────────────────────────────────────────── */
.nav-theme {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background 0.25s var(--ease-premium),
    border-color 0.25s var(--ease-premium),
    transform 0.25s var(--ease-premium);
}

.nav-theme:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-hover);
}

.nav-theme svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.nav-theme .icon-sun {
  display: none;
}

.nav-theme .icon-moon {
  display: block;
}

:root[data-theme="light"] .nav-theme .icon-sun {
  display: block;
}

:root[data-theme="light"] .nav-theme .icon-moon {
  display: none;
}

/* ── Theme transitions ───────────────────────────────────────────────────── */
body,
.nav,
.card,
.site-footer,
.btn-primary,
.btn-ghost,
.legal-content,
.legal-toc,
.product-card,
.capability-card {
  transition:
    background-color 0.35s var(--ease-premium),
    color 0.35s var(--ease-premium),
    border-color 0.35s var(--ease-premium),
    box-shadow 0.35s var(--ease-premium);
}

/* ── Light theme: chrome & surfaces ─────────────────────────────────────── */
:root[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
}

:root[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 var(--border-subtle);
}

:root[data-theme="light"] .logo-img {
  filter:
    brightness(1) contrast(1)
    drop-shadow(0 0 2px rgba(31, 109, 255, 0.35))
    drop-shadow(0 2px 6px rgba(10, 10, 30, 0.2));
  -webkit-filter:
    brightness(1) contrast(1)
    drop-shadow(0 0 2px rgba(31, 109, 255, 0.35))
    drop-shadow(0 2px 6px rgba(10, 10, 30, 0.2));
}

:root[data-theme="light"] .logo-mark:hover .logo-img {
  filter:
    brightness(1) contrast(1)
    drop-shadow(0 0 2px rgba(31, 109, 255, 0.45))
    drop-shadow(0 0 10px rgba(31, 109, 255, 0.18))
    drop-shadow(0 3px 8px rgba(10, 10, 30, 0.18));
  -webkit-filter:
    brightness(1) contrast(1)
    drop-shadow(0 0 2px rgba(31, 109, 255, 0.45))
    drop-shadow(0 0 10px rgba(31, 109, 255, 0.18))
    drop-shadow(0 3px 8px rgba(10, 10, 30, 0.18));
}

:root[data-theme="light"] .footer-logo img {
  filter:
    brightness(1) contrast(1)
    drop-shadow(0 0 2px rgba(31, 109, 255, 0.28))
    drop-shadow(0 3px 8px rgba(10, 10, 30, 0.12));
  -webkit-filter:
    brightness(1) contrast(1)
    drop-shadow(0 0 2px rgba(31, 109, 255, 0.28))
    drop-shadow(0 3px 8px rgba(10, 10, 30, 0.12));
}

:root[data-theme="light"] .card,
:root[data-theme="light"] .legal-content,
:root[data-theme="light"] .legal-toc {
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-card);
}

:root[data-theme="light"] .btn-primary {
  background: linear-gradient(180deg, var(--accent-blue-soft), var(--accent-blue));
  color: #fff;
}

:root[data-theme="light"] .btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

:root[data-theme="light"] .site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

:root[data-theme="light"] .nav-mobile {
  background: color-mix(in srgb, var(--bg-secondary) 97%, transparent);
}

:root[data-theme="light"] .form-field input,
:root[data-theme="light"] .form-field textarea,
:root[data-theme="light"] .form-field select,
:root[data-theme="light"] .nav-mobile .mobile-lang select {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

:root[data-theme="light"] .form-field input::placeholder,
:root[data-theme="light"] .form-field textarea::placeholder {
  color: var(--text-muted);
}

:root[data-theme="light"] .philosophy-wordmark {
  text-shadow: none;
  color: var(--text-primary);
}

:root[data-theme="light"] .philosophy-wordmark span {
  color: inherit !important;
}

:root[data-theme="light"] .philosophy-stage {
  background: var(--bg-elevated);
}

:root[data-theme="light"] .philosophy-line {
  color: var(--text-muted);
  border-top-color: var(--border-subtle);
}

:root[data-theme="light"] .nav-explore-menu,
:root[data-theme="light"] .nav-lang-menu {
  background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
}

:root[data-theme="light"] .experience-hero-overlay {
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg-primary) 35%, transparent) 0%,
    color-mix(in srgb, var(--bg-primary) 65%, transparent) 55%,
    color-mix(in srgb, var(--bg-primary) 95%, transparent) 100%
  );
}

:root[data-theme="light"] .experience-conviction-overlay {
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--bg-primary) 85%, transparent) 0%,
    color-mix(in srgb, var(--bg-primary) 55%, transparent) 50%,
    color-mix(in srgb, var(--bg-primary) 85%, transparent) 100%
  );
}

:root[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(10, 10, 30, 0.12);
  border: 2px solid var(--bg-primary);
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 10, 30, 0.2);
}

:root[data-theme="light"] .about-paafekt-copy p {
  color: var(--text-secondary);
}

:root[data-theme="light"] .about-paafekt-copy .about-signature {
  color: var(--text-muted);
}

:root[data-theme="light"] .support-line {
  color: var(--text-secondary);
}

:root[data-theme="light"] .product-body,
:root[data-theme="light"] .capability-body {
  color: var(--text-secondary);
}

:root[data-theme="light"] .faq-item p {
  color: var(--text-secondary);
}

:root[data-theme="light"] .team-bio {
  color: var(--text-secondary);
}

:root[data-theme="light"] .quote-card cite {
  color: var(--text-muted);
}

/* ── About page TOC ──────────────────────────────────────────────────────── */
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--glass-bg);
  width: max-content;
  max-width: 100%;
  margin: 0 auto var(--space-xl);
  justify-content: center;
}

.page-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  transition:
    background 0.25s var(--ease-premium),
    color 0.25s var(--ease-premium);
}

.page-toc a:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

[dir="rtl"] .page-toc {
  flex-direction: row-reverse;
}

/* ---------- Split-hero panel: clean video, no fog, no rule line ---------- */

/* The panel itself: drop the always-on border, keep the rounded mask */
.hero-media {
  border: 1px solid transparent;
  box-shadow: none;
  background: transparent;
  transition:
    border-color 0.35s var(--ease-premium),
    box-shadow 0.35s var(--ease-premium);
}

/* Optional: re-introduce the frame only on hover, so the panel still feels tactile */
.hero-media:hover {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-card);
}

/* The video: render at full clarity inside the panel */
.hero-media .hero-video {
  filter: none;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* The scrim: in the split panel we don't need a heavy darkening ramp.
   Keep just enough gradient to anchor the bottom edge against the page. */
.hero-media .hero-video-scrim {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0) 0%,
    rgba(10, 10, 15, 0) 60%,
    rgba(10, 10, 15, 0.18) 100%
  );
}

/* Light theme equivalent — no dark ramp at all, just a whisper at the bottom */
:root[data-theme="light"] .hero-media .hero-video-scrim {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 60%,
    rgba(238, 241, 248, 0.35) 100%
  );
}

/* ---------- Full-bleed hero (other pages) keeps the cinematic treatment ---- */
/* No change required — `.hero > .hero-video` still uses --hero-video-filter
   and the original --hero-video-scrim token. The selectors above only target
   `.hero-media .hero-video` / `.hero-media .hero-video-scrim`. */
