/* ============================================================
   Nullify — global site styles
   Dark minimal · #080808 canvas · glass cards · subtle motion
   Easing: cubic-bezier(0.16, 1, 0.3, 1)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; scroll-behavior: smooth; }

html, body {
  margin: 0; padding: 0;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }

/* Subtle noise overlay (SVG turbulence via data URI) */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  mix-blend-mode: overlay;
}

/* Atmospheric top glow — same concept as footer::after, applied to the full viewport */
body::after {
  content: "";
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh;
  background: radial-gradient(ellipse 115% 55% at 50% 0%,
    rgba(255,255,255,0.052) 0%,
    rgba(255,255,255,0.014) 34%,
    transparent 66%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient depth — three static structural pools (no drift) */
.ambient {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
/* Primary: top-center ceiling glow */
.ambient span:nth-child(1) {
  top: -12%; left: 50%;
  transform: translateX(-50%);
  width: 880px; height: 500px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.038) 0%, transparent 70%);
}
/* Right-side depth accent */
.ambient span:nth-child(2) {
  top: 34%; right: -8%;
  width: 520px; height: 520px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.020) 0%, transparent 70%);
}
/* Bottom complement — bridges into the footer glow */
.ambient span:nth-child(3) {
  bottom: -8%; left: 28%;
  width: 560px; height: 380px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.016) 0%, transparent 70%);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ============ NAV ============ */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              border-color 0.4s ease;
  will-change: transform, opacity;
  opacity: 0;
}
nav.top.nav-ready { opacity: 1; }
nav.top.scrolled {
  background: rgba(4, 4, 4, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
}
nav.top.hide {
  transform: translateY(-100%);
  opacity: 0;
}
body { padding-top: 60px; }
body {
  transition: opacity 0.3s ease;
}
body.lang-fade {
  opacity: 0;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}

/* Logo wordmark — DM Sans only on the brand */
.brand {
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.brand::before {
  content: "";
  position: absolute;
  width: 60px; height: 60px;
  left: -19px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.10), transparent 70%);
  filter: blur(10px);
  animation: brandHalo 5s var(--ease-brand) infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
@keyframes brandHalo {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}
.brand img {
  width: 22px; height: 22px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.20));
}
.brand .name {
  position: relative; z-index: 1;
  font: 500 16px var(--font-logo);
  letter-spacing: -0.005em;
  color: #fff;
}

/* Active status pill (replaces LIVE badge) */
.nav-stat {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  font: 500 12px var(--font-body);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
}
.nav-stat {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  font: 500 12px var(--font-body);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
  transition: box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.8s ease;
  animation: statGlow 3s ease-in-out infinite;
}
@keyframes statGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(105,226,154,0);
    border-color: rgba(255,255,255,0.07);
  }
  50% {
    box-shadow: 0 0 16px 2px rgba(105,226,154,0.12);
    border-color: rgba(105,226,154,0.25);
  }
}
.nav-stat .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #32d55e;
  box-shadow: 0 0 6px rgba(105, 226, 154, 0.8);
  animation: dotBreath 3s ease-in-out infinite;
}
@keyframes dotBreath {
  0%, 100% { box-shadow: 0 0 4px 0 rgba(105,226,154,0.5); opacity: 0.8; }
  50%       { box-shadow: 0 0 10px 2px rgba(105,226,154,0.9); opacity: 1; }
}

.nav-mid {
  display: flex; gap: 4px; justify-content: center;
  font: 500 13px var(--font-body); color: rgba(255,255,255,0.65);
}
.nav-mid a {
  position: relative; padding: 6px 10px;
  border-radius: 7px;
  transition: color 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s cubic-bezier(0.16,1,0.3,1);
}
.nav-mid a::after { display: none; }
.nav-mid a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-mid a.active { color: #fff; background: rgba(255,255,255,0.07); }

.nav-right { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* ============ NAV DROPDOWN ============ */
.nav-drop { position: relative; }
.nav-drop > a {
  display: flex !important; align-items: center; gap: 4px;
}
.ndrop-chevron {
  width: 11px; height: 11px; flex: none;
  opacity: 0.45;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
}
.nav-drop:hover > a .ndrop-chevron { transform: rotate(180deg); opacity: 0.75; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 262px;
  background: rgba(7,7,7,0.97);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  backdrop-filter: blur(36px); -webkit-backdrop-filter: blur(36px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 4px 8px rgba(0,0,0,0.25),
    0 24px 60px rgba(0,0,0,0.65);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease,
              transform 0.38s cubic-bezier(0.16,1,0.3,1),
              visibility 0s linear 0.22s;
  z-index: 200;
  pointer-events: none;
}
/* bridge gap to prevent flicker on mouse travel */
.nav-dropdown::before {
  content: ""; position: absolute;
  bottom: 100%; left: 0; right: 0; height: 12px;
}
.nav-drop:hover .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s ease,
              transform 0.38s cubic-bezier(0.16,1,0.3,1),
              visibility 0s linear 0s;
  pointer-events: auto;
}

.ndrop-section { padding: 2px 0; }
.ndrop-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 6px 2px;
}
.ndrop-label {
  font: 500 9px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 6px 10px 4px;
  pointer-events: none;
}
.ndrop-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px;
  text-decoration: none; color: inherit;
  opacity: 0; transform: translateY(5px);
  transition: background 0.18s ease, opacity 0.12s ease, transform 0.12s ease;
}
.nav-drop:hover .ndrop-item {
  opacity: 1; transform: translateY(0);
  transition: background 0.2s ease,
              opacity 0.38s cubic-bezier(0.16,1,0.3,1),
              transform 0.48s cubic-bezier(0.16,1,0.3,1);
  transition-delay: calc(var(--i, 0) * 55ms + 40ms);
}
.ndrop-item:hover { background: rgba(255,255,255,0.06); }
.ndrop-icon {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
}
.ndrop-name {
  font: 500 13px var(--font-body);
  color: #fff; margin-bottom: 2px;
  line-height: 1.2;
}
.ndrop-desc {
  font: 400 11px var(--font-body);
  color: rgba(255,255,255,0.38);
  line-height: 1.4;
}

/* Lang toggle */
#langToggle {
  background: transparent;
  border: 0;
  padding: 5px 8px;
  color: rgba(255,255,255,0.5);
  font: 500 12px var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
#langToggle:hover { color: #fff; }

/* ============ BUTTONS (no arrows) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font: 500 13px var(--font-body);
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  transform: scale(1.025);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
}
.btn:active { transform: scale(0.98); box-shadow: none; transition-duration: 0.08s; }
.btn-white {
  background: #fff; color: #000;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.btn-white:hover {
  background: #f0f0f0;
  transform: scale(1.025);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 2px 6px rgba(0,0,0,0.14);
}
.btn-white:active { transform: scale(0.97); box-shadow: 0 1px 3px rgba(0,0,0,0.18); transition-duration: 0.08s; }
.btn-lg { height: 44px; padding: 0 22px; border-radius: 12px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: transparent; color: rgba(255,255,255,0.7); }
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  color: #fff;
  transform: none;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-white, .btn-ghost { transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
  .btn:hover, .btn-white:hover { transform: none; }
  .nav-dropdown { transition: opacity 0.15s ease, visibility 0s linear 0.15s; }
  .nav-drop:hover .nav-dropdown { transition: opacity 0.15s ease, visibility 0s linear 0s; transform: translateX(-50%) translateY(0); }
  .ndrop-item, .nav-drop:hover .ndrop-item { transition: background 0.15s ease; opacity: 1; transform: none; transition-delay: 0s; }
  .ndrop-chevron { transition: none; }
}

/* ============ PAGE HERO ============ */
.page-hero { padding: 120px 0 60px; text-align: center; position: relative; z-index: 2; }
.page-hero .eyebrow {
  display: inline-block;
  font: 500 11px var(--font-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.page-hero h1 {
  font: 500 clamp(36px, 5.3vw, 64px)/1.05 var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: #fff;
}
.page-hero p.lede {
  font: 400 17px/1.55 var(--font-body);
  color: rgba(255,255,255,0.6);
  max-width: 580px; margin: 0 auto 34px;
}
.page-hero .cta-row { justify-content: center; }

/* ============ SECTIONS — no visible dividers ============ */
section.s {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}
.s-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.s-head.left { margin: 0 0 36px; text-align: left; }
.s-head h2 {
  font: 500 clamp(28px, 4vw, 44px)/1.1 var(--font-display);
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: #fff;
}
.s-head p {
  font: 400 16px/1.6 var(--font-body);
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.cta-row.center { justify-content: center; }

/* ============ GLASS CARDS (unified) ============ */
.gcard, .glass-card {
  padding: 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease;
  cursor: default;
}
.gcard:hover, .glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10),
              0 16px 48px rgba(0,0,0,0.5),
              0 0 40px rgba(255,255,255,0.035);
}
.gcard h3 { font: 500 18px var(--font-display); margin: 0 0 8px; letter-spacing: -0.01em; }
.gcard p { font: 400 14px/1.6 var(--font-body); color: rgba(255,255,255,0.6); margin: 0; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Contact list (used on /contacts before — kept for backward compat) */
.contact-list { display: flex; flex-direction: column; gap: 14px; max-width: 480px; margin: 0 auto; }
.contact-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  font: 500 15px var(--font-body);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-list a:hover {
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10),
              0 12px 36px rgba(0,0,0,0.45);
}
.contact-list a .label { color: rgba(255,255,255,0.5); font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; min-width: 92px; }
.contact-list a .value { color: #fff; }

/* ============ FORM ELEMENTS ============ */
.field { margin-bottom: 14px; }
.field label.lbl {
  display: block;
  font: 500 12px var(--font-body);
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.input, .textarea {
  width: 100%; height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  font: 400 14px var(--font-body);
  outline: none;
  transition: border-color 0.3s var(--ease-brand), box-shadow 0.3s var(--ease-brand), background 0.3s var(--ease-brand);
}
.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,0.35); }
.input:focus, .textarea:focus {
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }

/* Hero domain input (shared) */
.dom-input {
  position: relative;
  max-width: 520px; margin: 0 auto;
}
.dom-input .ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  opacity: 0.5;
  pointer-events: none;
  color: rgba(255,255,255,0.7);
}
.dom-input input {
  width: 100%; height: 48px;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  font: 400 14px var(--font-body);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.dom-input input::placeholder { color: rgba(255,255,255,0.35); }
.dom-input input:focus {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

/* ============ FOOTER ============ */
footer {
  padding: 60px 0 50px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
  background: transparent;
}
/* Hair-thin glowing separator line at footer top */
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 20%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.06) 80%,
    transparent 100%);
  pointer-events: none;
}
/* Subtle downward glow that falls from the separator line */
footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 240px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.026) 0%,
    rgba(255,255,255,0.009) 22%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  color: rgba(255,255,255,0.55);
}
.foot-brand .name { font: 500 14px var(--font-logo); color: rgba(255,255,255,0.55); }
.foot-brand .socials { display: flex; gap: 8px; margin: 18px 0; }
.foot-brand .socials a {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  transition: background 0.3s var(--ease-brand), color 0.3s var(--ease-brand), transform 0.3s var(--ease-brand);
}
.foot-brand .socials a:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-2px); }
.foot-brand .stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font: 500 11px var(--font-body);
  margin-bottom: 18px;
  box-shadow: 0 0 12px rgba(255,255,255,0.03);
}
.foot-brand .stat-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: pulse-soft 2s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.foot-col h5 {
  font: 600 12px var(--font-body);
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: inline-block;
  width: 100%;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font: 400 13px var(--font-body); color: rgba(255,255,255,0.45); }
.foot-col a { color: rgba(255,255,255,0.45); transition: color 0.25s var(--ease-brand); }
.foot-col a:hover { color: #fff; }

.foot-bottom {
  margin-top: 40px;
  font: 400 12px var(--font-body);
  color: rgba(255,255,255,0.45);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  letter-spacing: 0;
}
.foot-bottom .legal { display: inline-flex; gap: 18px; margin-left: auto; }
.foot-bottom .legal a {
  color: rgba(255,255,255,0.5);
  font: 400 12px var(--font-body);
  letter-spacing: 0;
  transition: color 0.3s var(--ease-brand);
}
.foot-bottom .legal a:hover { color: #fff; }

/* Bilingual visibility */
[data-lang="en"] .ru { display: none !important; }
[data-lang="ru"] .en { display: none !important; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ PAGE-TRANSITION OVERLAY (enhanced glow) ============ */
#page-transition {
  position: fixed; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, #0c0c0c 0%, #060606 70%, #050505 100%);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#page-transition.visible { opacity: 1; pointer-events: auto; }

/* Big logo + halo + word */
#page-transition .pt-logo-wrap {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#page-transition .pt-logo-wrap::before {
  content: "";
  position: absolute;
  left: -40px; top: -40px; right: -40px; bottom: -40px;
  background: radial-gradient(50% 50% at 28% 50%, rgba(255,255,255,0.18), transparent 70%);
  filter: blur(18px);
  z-index: -1;
  animation: haloBreathe 2.4s var(--ease-brand) infinite;
  pointer-events: none;
}
#page-transition .pt-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  animation: floatY 3.6s var(--ease-brand) infinite;
}
#page-transition .pt-word {
  font: 500 26px var(--font-logo);
  color: #fff;
  letter-spacing: -0.005em;
  background: linear-gradient(180deg, #ffffff 0%, #c8c8d0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: textShimmer 2.8s linear infinite;
  background-size: 200% 100%;
}
#page-transition.fade-out .pt-logo-wrap { opacity: 0; transform: scale(0.96); }

@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.25));
    opacity: 0.85;
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(255,255,255,0.6)) drop-shadow(0 0 40px rgba(255,255,255,0.15));
    opacity: 1;
  }
}
@keyframes haloBreathe {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50%      { transform: scale(1.08); opacity: 1;    }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes textShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#page-transition .pt-bar { display: none; }

#page-transition .pt-tag {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ============ BRAND LOGO — reusable glow + halo classes ============ */

/* Header brand (subtle micro-glow on hover) */
.brand img {
  transition: filter 0.4s var(--ease-brand), transform 0.4s var(--ease-brand);
}
.brand:hover img {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.35));
}

/* Big logo: used in hero sections + slides — wrapped in .logo-aura */
.logo-aura {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-aura::before {
  content: "";
  position: absolute; inset: -22%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.18), transparent 70%);
  filter: blur(18px);
  z-index: 0;
  animation: haloBreathe 5s var(--ease-brand) infinite;
  pointer-events: none;
}
.logo-aura > img, .logo-aura > svg {
  position: relative; z-index: 1;
  animation: logoBreathe 6s var(--ease-brand) infinite;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.28));
  transition: filter 0.6s var(--ease-brand);
}
.logo-aura:hover > img, .logo-aura:hover > svg {
  filter: drop-shadow(0 0 28px rgba(255,255,255,0.55));
}
@keyframes logoBreathe {
  0%, 100% { transform: scale(1)    rotate(0deg); }
  50%      { transform: scale(1.03) rotate(0.4deg); }
}

/* Spinning aura (used on closing presentation watermark or hero logo) */
.logo-aura.with-rays::after {
  content: "";
  position: absolute; inset: -50%;
  background:
    conic-gradient(from 0deg,
      transparent 0deg,
      rgba(255,255,255,0.06) 30deg,
      transparent 60deg,
      transparent 120deg,
      rgba(255,255,255,0.04) 150deg,
      transparent 180deg,
      transparent 240deg,
      rgba(255,255,255,0.05) 270deg,
      transparent 300deg);
  border-radius: 50%;
  filter: blur(8px);
  animation: spinSlow 28s linear infinite;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}
@keyframes spinSlow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Soft sweep — hairline of light passing diagonally over the logo */
.logo-aura.with-sweep > img, .logo-aura.with-sweep > svg {
  mask: linear-gradient(120deg, #000 30%, rgba(0,0,0,0.6) 50%, #000 70%);
  -webkit-mask: linear-gradient(120deg, #000 30%, rgba(0,0,0,0.6) 50%, #000 70%);
  mask-size: 220% 100%;
  -webkit-mask-size: 220% 100%;
  animation: logoBreathe 6s var(--ease-brand) infinite, sweep 4.2s var(--ease-brand) infinite;
}
@keyframes sweep {
  0%   { mask-position: 100% 0; -webkit-mask-position: 100% 0; }
  100% { mask-position: -100% 0; -webkit-mask-position: -100% 0; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-mid { display: none; }
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient span, .nav-stat .dot, .foot-brand .stat-pill .dot,
  #page-transition .pt-logo, #page-transition.visible .pt-bar::after { animation: none !important; }
}
