/* ===== Reset & Tokens ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #0a0b14;
  --surface:   #0e0f1c;
  --border:    rgba(255, 255, 255, 0.06);
  --text:      #e2e2ea;
  --text-dim:  #6b6b80;

  --accent-1:  #7c6cf0;
  --accent-2:  #a855f7;
  --accent-3:  #ec4899;

  --radius:    16px;
}

html {
  scroll-behavior: smooth;
  background: #0a0b14;
  overflow-x: hidden;
}

/* iOS safe area — fill status bar / notch area with bg color */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background: #0a0b14;
  z-index: 9999;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #0c0d1a 0%, #0a0b14 30%, #080a18 60%, #0b0a16 100%) fixed;
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* ===== Nav ===== */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;                 /* FIX: ensure above page */
  padding: 1.15rem 2rem;
  padding-top: calc(1.15rem + env(safe-area-inset-top, 0px));

  background: rgba(10, 11, 20, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border-bottom: 1px solid var(--border);

  /* FIX: contain causes drawer layering/clipping issues on iOS */
  contain: none;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Desktop inline nav links */
.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  white-space: nowrap;
}
.nav-cta:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}

/* ===== Mobile nav (single source of truth) ===== */
.nav-toggle {
  display: none;                 /* shown only on mobile */
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .25s, border-color .25s;
  line-height: 1;
  white-space: nowrap;
}
.nav-toggle:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

.nav-drawer {
  display: none;                 /* toggled by .nav-open */
  position: fixed;
  top: 64px;
  left: 16px;
  right: 16px;

  z-index: 1001;                 /* FIX: must be above nav + page */
  background: rgba(10, 11, 20, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 0.6rem;

  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}

.nav-drawer a {
  display: block;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav-drawer a:hover {
  background: rgba(255,255,255,0.05);
}

/* Optional CTA inside drawer (if you add <a class="drawer-cta">...) */
.nav-drawer a.drawer-cta {
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 0.85rem;

  background: rgba(124,108,240,0.14);
  border: 1px solid rgba(124,108,240,0.22);
  color: rgba(255,255,255,0.92);
}

.nav-open .nav-drawer { display: block; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(22,18,50,0.6) 0%, transparent 100%);
}

/* Ambient background glow */
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  translate: -50% 0;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(124,108,240,0.12) 0%,
    rgba(168,85,247,0.06) 35%,
    rgba(100,60,180,0.02) 55%,
    transparent 72%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  will-change: transform;
}

/* ===== Orb (WOW / original) ===== */
.orb-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 3rem;
  z-index: 1;

  will-change: transform;
  animation: orbFloat 8s cubic-bezier(.45,.05,.55,.95) infinite;
}

.orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  overflow: hidden;

  background: radial-gradient(circle at 48% 52%, #18103e 0%, #0d0825 55%, #050310 100%);
  box-shadow:
    0 0 80px rgba(70, 50, 255, 0.28),
    0 0 160px rgba(120, 50, 220, 0.14),
    inset 0 0 120px rgba(0, 0, 0, 0.6);

  transform: none;               /* avoid iPhone clip bugs */
  backface-visibility: hidden;
  isolation: isolate;
}

.orb::before {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 20%, rgba(40, 130, 255, 1)     0%, transparent 48%),
    radial-gradient(circle at 68% 48%, rgba(230, 75, 180, 0.88)  0%, transparent 42%),
    radial-gradient(circle at 42% 65%, rgba(110, 45, 210, 0.82)  0%, transparent 52%),
    radial-gradient(circle at 58% 14%, rgba(80, 175, 255, 0.30)  0%, transparent 30%);
  will-change: transform;
  backface-visibility: hidden;
  animation: nebulaA 24s linear infinite;
}

.orb::after {
  content: '';
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 42%, rgba(200, 45, 80, 0.55)  0%, transparent 35%),
    radial-gradient(circle at 30% 72%, rgba(95, 35, 200, 0.62)  0%, transparent 42%),
    radial-gradient(circle at 78% 34%, rgba(45, 100, 240, 0.52) 0%, transparent 40%);
  mix-blend-mode: screen;
  will-change: transform;
  backface-visibility: hidden;
  animation: nebulaB 30s linear infinite reverse;
}

.orb-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 3;
  background:
    radial-gradient(ellipse 36% 26% at 24% 16%, rgba(255,255,255,0.55) 0%, rgba(200,220,255,0.15) 45%, transparent 100%),
    radial-gradient(ellipse 28% 18% at 76% 82%, rgba(180,130,255,0.07) 0%, transparent 100%),
    radial-gradient(ellipse 60% 20% at 50% 92%, rgba(120,160,255,0.10) 0%, transparent 100%),
    radial-gradient(ellipse 98% 98% at 50% 50%, transparent 42%, rgba(90,130,255,0.11) 47%, rgba(70,110,255,0.04) 50%, transparent 54%);
  will-change: transform;
  backface-visibility: hidden;
  animation: highlightDrift 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.orb-bloom {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(100,75,240,0.14) 0%,
    rgba(150,70,230,0.06) 45%,
    transparent 70%);
  filter: blur(50px);
  will-change: opacity;
  backface-visibility: hidden;
  isolation: isolate;
  animation: bloomPulse 7s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.orb-sm {
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
}

.orb-paused,
.orb-paused .orb,
.orb-paused .orb::before,
.orb-paused .orb::after,
.orb-paused .orb-core,
.orb-paused .orb-bloom {
  animation-play-state: paused !important;
}

/* Keyframes */
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(-12px); }
  50%      { transform: translateY(-5px); }
  75%      { transform: translateY(-14px); }
}
@keyframes nebulaA { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes nebulaB { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes highlightDrift {
  0%   { transform: rotate(-5deg); opacity: 0.82; }
  100% { transform: rotate(7deg);  opacity: 1; }
}
@keyframes bloomPulse { 0% { opacity: 0.4; } 100% { opacity: 1; } }

/* Hero typography */
.hero-label {
  font-size: 0.82rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 1rem;
  z-index: 1;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  background: linear-gradient(160deg, #fff 20%, rgba(226,226,234,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.9rem;
  z-index: 1;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 1.8rem;
  z-index: 1;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  z-index: 1;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,108,240,0.28);
}
.btn-confirmed {
  background: rgba(124,108,240,0.18) !important;
  cursor: default;
  pointer-events: none;
}

/* ===== Shared section helpers ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Features ===== */
.features {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: border-color 0.35s, background 0.35s;
}
.feature-card:hover {
  border-color: rgba(124,108,240,0.14);
  background: rgba(14,12,28,0.85);
}
.feature-icon {
  color: var(--accent-2);
  margin-bottom: 1rem;
  opacity: 0.85;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Stagger card entrance */
.features-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }

/* ===== Showcase ===== */
.showcase {
  padding: 3rem 0 8rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.showcase-card {
  position: relative;
  grid-column: span 2;
  background: linear-gradient(145deg, var(--surface) 0%, rgba(18,14,36,0.7) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  transition: border-color 0.35s;
}
.showcase-card.large { grid-column: span 3; }
.showcase-card:hover { border-color: rgba(124,108,240,0.12); }
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.3s;
}
.showcase-card:hover img { opacity: 1; }

/* Fallback when image is missing */
.showcase-card.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-card.no-image::after {
  content: attr(data-label);
  color: var(--text-dim);
  font-size: 0.88rem;
  text-align: center;
  padding: 1.5rem;
  letter-spacing: 0.02em;
}

/* Stagger showcase entrance */
.showcase-grid .fade-in:nth-child(2) { transition-delay: 0.07s; }
.showcase-grid .fade-in:nth-child(3) { transition-delay: 0.14s; }
.showcase-grid .fade-in:nth-child(4) { transition-delay: 0.21s; }
.showcase-grid .fade-in:nth-child(5) { transition-delay: 0.28s; }

/* ===== CTA ===== */
.cta {
  padding: 7rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
.cta h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 0.65rem;
}
.cta > p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2.25rem;
}
.cta-form {
  display: flex;
  gap: 0.65rem;
  max-width: 400px;
  width: 100%;
}
.cta-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s;
}
.cta-form input::placeholder { color: var(--text-dim); }
.cta-form input:focus { border-color: rgba(124,108,240,0.35); }
.cta-form input:disabled { opacity: 0.5; }

/* ===== Footer ===== */
footer {
  padding: 1.75rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ===== Cookie Notice ===== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 2rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 15, 28, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cookie-notice p {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 520px;
  text-align: center;
}
.cookie-notice a {
  color: var(--accent-1);
  text-decoration: underline;
}
.cookie-notice button {
  padding: 0.5rem 1.4rem;
  border-radius: 8px;
  border: none;
  background: var(--accent-1);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.cookie-notice button:hover { opacity: 0.85; }

/* ===== Pages (About/Contact/Vision shared) ===== */
.page { padding: 10rem 2rem 6rem; }
.page-title {
  font-size: 2.6rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* About */
.about-wrap { max-width: 1100px; margin: 0 auto; }
.about-header { text-align: center; margin-bottom: 3rem; }
.about-lead {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
}

/* ===== Solar System ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.profile-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 18px 48px rgba(0,0,0,0.42);
}

.profile-top {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transform: translateZ(0);
}

/* Bob — pixel art character */
.avatar-bob img {
  object-position: 50% 30%;
  transform: scale(1.15);
  image-rendering: pixelated;
}

.profile-meta h2 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.profile-name { font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.profile-sub { color: var(--text-dim); line-height: 1.6; }

.profile-body { margin-top: 1.2rem; }
.profile-body h3 { font-size: 1rem; margin-bottom: 0.6rem; }

.disclaimer {
  margin-top: 0.75rem;
  color: rgba(226,226,234,0.55);
  font-size: 0.88rem;
}

/* Social buttons */
.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-size: 0.86rem;
  transition: background .2s, border-color .2s, transform .2s;
  position: relative;
}
.social-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.social-btn .icon { width: 18px; height: 18px; display: inline-flex; }
.social-btn svg { width: 18px; height: 18px; color: var(--accent-2); }

/* Bob: crossed out socials */
.social-btn.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}
.social-btn.is-disabled::after {
  content: "";
  position: absolute;
  inset: 8px 10px;
  background: linear-gradient(90deg, transparent, rgba(236,72,153,0.85), transparent);
  transform: rotate(-18deg);
  border-radius: 999px;
  opacity: 0.9;
}

.bob-quote { font-style: italic; color: rgba(226,226,234,0.6); }

/* Contact */
.contact-form{
  max-width: 520px;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea{
  padding: .9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Sections */
  .features-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-card,
  .showcase-card.large { grid-column: span 1; }
  .cta-form { flex-direction: column; }

  .orb-wrapper { width: 190px; height: 190px; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-desc br { display: none; }

  /* NAV: phone layout */
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-cta { display: none; }

  /* Drawer positioning */
  .nav-drawer {
    top: 64px;
    left: 12px;
    right: 12px;
  }

  /* About page — stack profile card layout vertically */
  .profile-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .avatar { width: 88px; height: 88px; min-width: 88px; min-height: 88px; }
  .social-row { justify-content: center; }
  .profile-card { padding: 1.2rem; }
  .page { padding: 7rem 1.2rem 4rem; }
  .page-title { font-size: 2rem; margin-bottom: 2rem; }
  .about-lead { font-size: 0.95rem; }

  /* Cookie notice — mobile friendly */
  .cookie-notice {
    flex-direction: column;
    padding: 1rem 1.2rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    gap: 0.8rem;
  }
  .cookie-notice p { font-size: 0.78rem; }
  .cookie-notice button { width: 100%; }
}

@media (max-width: 480px) {
  .orb-wrapper { width: 150px; height: 150px; }
  .feature-card { padding: 1.75rem; }
  .avatar { width: 76px; height: 76px; min-width: 76px; min-height: 76px; border-radius: 16px; }
  .profile-meta h2 { font-size: 0.95rem; }
  .profile-name { font-size: 0.92rem; }
  .profile-sub { font-size: 0.85rem; }
  .about-list { font-size: 0.88rem; padding-left: 1.2rem; }
}

/* ===== Accessibility — reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Safari / WebKit PATCH (keeps WOW orb, kills square) ===== */

/* Applied globally — Safari clips pseudo-elements outside border-radius */
.orb {
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
}

@supports (-webkit-touch-callout: none) {
  /* iOS hates background-attachment: fixed */
  body { background-attachment: scroll !important; }

  /* blend-mode can box on iOS */
  .orb::after {
    mix-blend-mode: normal !important;
    opacity: 0.88;
  }

  /* reduce bloom rasterization boxing (still glowy) */
  .orb-bloom {
    inset: -25%;
    filter: blur(26px);
    -webkit-filter: blur(26px);
  }

  /* Ensure fixed drawer layers above */
  .nav-drawer { transform: translateZ(0); }
}