/* ============================================================
   Project Veo 3.0 - homepage (Phase 1)
   Premium stylized Veo + futuristic underwater atrium.
   Palette per spec §3.3.
   ============================================================ */

:root {
  --ocean-deep:   #081522;
  --ocean-surface:#142C3B;
  --veo-turquoise:#4DD9CF;
  --aqua-soft:    #B6E9E8;
  --text:         #F1F7F9;
  --text-muted:   #A8BDC9;

  /* Manrope everywhere; Space Mono only for tiny system labels (clock/status) */
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --nav-gap: clamp(14px, 4vw, 34px);

  /* modulated by the time-of-day system (§7) */
  --ocean-haze: rgba(77, 217, 207, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden; /* homepage is a fixed full-screen environment, no scroll */
}

body {
  font-family: var(--font-body);
  background: var(--ocean-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* A soft radial glow behind the canvas so the atrium reads even before/
   if WebGL finishes - also the backdrop in the no-WebGL fallback. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 42%, var(--ocean-haze), transparent 70%),
    radial-gradient(90% 90% at 50% 120%, rgba(20, 44, 59, 0.9), transparent 70%),
    var(--ocean-deep);
  pointer-events: none;
  transition: background 1.2s linear;
}

/* ---------- preloader / splash ---------- */
.veo-preload {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(77, 217, 207, 0.08), transparent 70%),
    radial-gradient(90% 90% at 50% 120%, rgba(20, 44, 59, 0.9), transparent 70%),
    var(--ocean-deep);
  opacity: 1;
  transition: opacity 0.7s ease;
}
.veo-preload.is-done { opacity: 0; pointer-events: none; }
.veo-preload[hidden] { display: none; }
.veo-preload__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.veo-preload__fish {
  width: 88px; height: 88px; border-radius: 22px;
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.55));
  animation: veoBreath 2.4s ease-in-out infinite;
}
@keyframes veoBreath { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.035); } }
.veo-preload__name {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.24em; font-size: 0.82rem;
  color: rgba(238, 248, 247, 0.58);
}
.veo-preload__bar {
  width: 140px; height: 2px; border-radius: 2px;
  background: rgba(182, 233, 232, 0.14); overflow: hidden; position: relative;
}
.veo-preload__bar i {
  position: absolute; top: 0; left: -40%; height: 100%; width: 40%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--veo-turquoise), transparent);
  animation: veoLoad 1.15s ease-in-out infinite;
}
@keyframes veoLoad { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .veo-preload__fish, .veo-preload__bar i { animation: none; }
  .veo-preload { transition: opacity 0.3s ease; }
}

/* ---------- 3D stage ----------
   Transparent canvas layered ABOVE the content so the docked Veo floats over
   content pages. pointer-events:none lets clicks reach content; Veo's own
   pointer interactions are handled via window listeners + raycasting. */
.veo-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.veo-stage.is-ready { opacity: 1; }
.veo-stage canvas { display: block; }

/* ---------- cinematic grade (vignette + grain) ---------- */
.veo-grade {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(135% 120% at 50% 44%, transparent 50%, rgba(2, 7, 13, 0.62) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.45), transparent 22%),
    radial-gradient(100% 90% at 50% 122%, rgba(2, 7, 13, 0.5), transparent 60%);
  mix-blend-mode: multiply;
}
.veo-grade::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* on content routes the vignette would darken the reading panel - drop it */
body.veo-route-content .veo-grade { display: none; }

/* ---------- routed content ---------- */
.veo-content {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(60px, 10vh, 120px) clamp(16px, 6vw, 80px) 120px;
  background: linear-gradient(180deg, rgba(8, 21, 34, 0.86), rgba(8, 21, 34, 0.95));
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* crossfade with the animated scene */
}
.veo-content.is-shown { opacity: 1; }
.veo-content[hidden] { display: none; }
.veo-page { max-width: 1040px; margin: 0 auto; animation: veoFadeUp 0.5s ease both; }
@keyframes veoFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.veo-page__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--veo-turquoise);
}
.veo-page__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 10px 0 12px; color: var(--text);
}
.veo-page__lead { color: var(--text-muted); max-width: 60ch; font-size: 1.02rem; }
.veo-page__head { margin-bottom: clamp(28px, 5vh, 52px); }

/* projects showroom */
.veo-showroom { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.veo-proj {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: rgba(18, 38, 52, 0.55); border: 1px solid rgba(182, 233, 232, 0.14);
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.veo-proj:hover { transform: translateY(-6px); border-color: rgba(77, 217, 207, 0.4); }
.veo-proj__media { aspect-ratio: 16 / 10; overflow: hidden; background: #0d2230; display: grid; place-items: center; }
.veo-proj__media img { width: 100%; height: 100%; object-fit: cover; }
.veo-proj__media--coin, .veo-proj__media--self {
  background: radial-gradient(circle at 50% 40%, rgba(77, 217, 207, 0.22), transparent 70%), #0d2230;
}
.veo-coin {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; color: #06201c;
  background: linear-gradient(145deg, #bdeee9, #4dd9cf 60%, #2f9f98);
  box-shadow: 0 10px 30px -8px rgba(77, 217, 207, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.5);
}
.veo-proj__media--self span { font-family: var(--font-display); font-weight: 600; color: var(--aqua-soft); letter-spacing: 0.05em; }
.veo-proj__media--fleet { background: linear-gradient(135deg, #0e2b38, #0a2230); }
.veo-proj__media--fleet span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--veo-turquoise); letter-spacing: 0.04em; opacity: 0.9; }
.veo-proj__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.veo-proj__body h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); }
.veo-proj__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.veo-proj__tags span {
  font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-muted);
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(182, 233, 232, 0.16);
}
.veo-proj__body p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.6; }
.veo-proj__link {
  margin-top: 6px; align-self: flex-start; color: var(--veo-turquoise); font-weight: 600;
  text-decoration: none; font-size: 0.92rem;
}
.veo-proj__link:hover { color: var(--aqua-soft); }
.veo-proj__note { font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; }

/* ---------- project detail page (opens like portfolio/experience/contact) ---------- */
.veo-detail__back {
  display: inline-block; margin-bottom: 20px;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}
.veo-detail__back:hover { color: var(--veo-turquoise); transform: translateX(-3px); }
.veo-detail__logo {
  width: 56px; height: 56px; object-fit: contain; display: block;
  margin-bottom: 16px; border-radius: 14px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}
.veo-detail {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(22px, 4vw, 46px); align-items: start;
}
.veo-detail__media {
  border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: #0d2230;
  border: 1px solid rgba(182, 233, 232, 0.14);
  box-shadow: 0 26px 64px -32px rgba(0, 0, 0, 0.85);
}
.veo-detail__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a wide annotated dashboard shows in full (its own aspect, no side-crop) */
.veo-detail__media--wide { aspect-ratio: 1800 / 822; }
/* stacked layout: media spans the full width (much larger / readable), text below */
.veo-detail--stacked { grid-template-columns: 1fr; }
.veo-detail--stacked .veo-detail__body { max-width: 72ch; }
.veo-detail--stacked .veo-detail__body p { max-width: none; }
.veo-detail__body { display: flex; flex-direction: column; gap: 14px; }
.veo-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.veo-detail__tags span {
  font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-muted);
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(182, 233, 232, 0.18);
}
.veo-detail__body p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; max-width: 48ch; }
.veo-detail__cta {
  align-self: flex-start; margin-top: 8px;
  padding: 11px 22px; border-radius: 999px;
  color: var(--veo-turquoise); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  border: 1px solid rgba(77, 217, 207, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.veo-detail__cta:hover { color: var(--aqua-soft); border-color: var(--aqua-soft); background: rgba(77, 217, 207, 0.12); transform: translateY(-2px); }
.veo-detail__note { margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); opacity: 0.72; }
@media (max-width: 760px) { .veo-detail { grid-template-columns: 1fr; } }

/* experience / contact / placeholder */
.veo-placeholder {
  padding: 40px; border-radius: 18px; text-align: center; color: var(--text-muted);
  border: 1px dashed rgba(182, 233, 232, 0.22); background: rgba(18, 38, 52, 0.4);
}
.veo-xp { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; }
.veo-xp li {
  display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(182, 233, 232, 0.1);
  align-items: center; flex-wrap: wrap;
}
.veo-xp__when { color: var(--veo-turquoise); font-size: 0.82rem; min-width: 190px; }
.veo-xp__logo {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 110px;                         /* same slot width; logos share one cap-height */
  opacity: 0.85; filter: saturate(0.9);
  transition: opacity 0.2s ease;
}
.veo-xp__logo img { height: 22px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.veo-xp__logo--hpe img { height: 14px; } /* HPE mark has no padding; scale to match the rest */
.veo-xp__logo:hover, .veo-xp__logo:focus-visible { opacity: 1; outline: none; }
.veo-xp div { color: var(--text); }
.veo-contact { display: flex; flex-direction: column; gap: 14px; font-size: 1.1rem; }
.veo-contact a { color: var(--text); text-decoration: none; width: fit-content; border-bottom: 1px solid transparent; }
.veo-contact a:hover { color: var(--veo-turquoise); border-color: var(--veo-turquoise); }

/* ---------- Veo's dock (content routes) ---------- */
/* Free-floating clock under docked Veo - no card/container (section 6). */
.veo-dock {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(14px, 2.6vh, 26px);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease;
  /* leave headroom above for the docked fish rendered on the canvas */
  margin-top: 90px;
  pointer-events: none;
}
.veo-dock.is-shown { opacity: 1; transform: none; }
.veo-dock[hidden] { display: none; }
.veo-dock__clock {
  font-family: 'Space Mono', monospace; font-weight: 400; font-size: 0.8rem; letter-spacing: 0.1em;
  color: rgba(182, 233, 232, 0.55); font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 10px rgba(8, 21, 34, 0.9);
}
.veo-dock__home {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(182, 233, 232, 0.2); transition: color 0.2s ease, border-color 0.2s ease;
}
.veo-dock__home:hover { color: var(--text); border-color: rgba(182, 233, 232, 0.5); }

/* ---------- docked Veo as the return-home control (§12) ---------- */
.veo-home-hit {
  position: fixed; z-index: 6;
  right: clamp(8px, 2vw, 26px);
  bottom: clamp(64px, 10vh, 118px);
  width: clamp(130px, 16vw, 170px); height: clamp(110px, 14vh, 140px);
  background: transparent; border: 1px solid transparent; border-radius: 18px;
  cursor: pointer; pointer-events: auto;
}
.veo-home-hit[hidden] { display: none; }
.veo-home-hit:focus-visible { outline: none; border-color: rgba(77, 217, 207, 0.6); box-shadow: 0 0 0 3px rgba(77, 217, 207, 0.18); }

/* ---------- Veo speech bubble (§13) ---------- */
.veo-speech {
  position: fixed; z-index: 7;
  max-width: min(300px, 70vw);
  padding: 11px 15px; border-radius: 16px;
  background: rgba(8, 20, 30, 0.52);
  border: 1px solid rgba(170, 230, 235, 0.16);
  color: rgba(240, 248, 250, 0.94);
  font-family: var(--font-body); font-size: 0.94rem; font-weight: 500; line-height: 1.4;
  box-shadow: 0 10px 34px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%);
  opacity: 0; transform: translate(-50%, 4px) scale(0.97); filter: blur(2px);
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), filter 0.24s ease;
  pointer-events: none;
}
.veo-speech.is-show { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
.veo-speech[hidden] { display: none; }
.veo-speech::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  width: 11px; height: 11px; transform: translateX(-50%) rotate(45deg);
  background: rgba(8, 20, 30, 0.52);
  border-right: 1px solid rgba(170, 230, 235, 0.16);
  border-bottom: 1px solid rgba(170, 230, 235, 0.16);
}
@media (prefers-reduced-motion: reduce) { .veo-speech { transition: opacity 0.2s ease; transform: translate(-50%, 0); filter: none; } }

/* ---------- Portfolio content (§22-§28) ---------- */
.veo-folio { display: flex; flex-direction: column; gap: 22px; }
.veo-folio__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.veo-folio__panel {
  background: rgba(18, 38, 52, 0.42);
  border: 1px solid rgba(182, 233, 232, 0.12);
  border-radius: 20px; padding: 26px 28px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.veo-folio__no { font-family: 'Space Mono', monospace; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--veo-turquoise); }
.veo-folio__about p { color: var(--text); font-size: 1.05rem; line-height: 1.65; margin-top: 12px; max-width: 62ch; }
.veo-folio__about strong { color: var(--aqua-soft); font-weight: 600; }
.veo-folio__caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 16px; }
.veo-folio__caps h3 { font-family: var(--font-display); font-size: 0.95rem; color: var(--text); margin-bottom: 6px; }
.veo-folio__caps p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.veo-folio__muted { color: var(--text-muted); opacity: 0.72; }
.veo-folio__edu { margin-top: 14px; }
.veo-folio__edu h3 { font-family: var(--font-display); font-size: 1rem; color: var(--text); }
.veo-folio__edu p { color: var(--text-muted); font-size: 0.9rem; margin-top: 2px; }
.veo-folio__list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.veo-folio__list li { color: var(--text-muted); font-size: 0.95rem; padding-left: 18px; position: relative; }
.veo-folio__list li::before { content: "◆"; position: absolute; left: 0; top: 3px; color: var(--veo-turquoise); font-size: 0.6rem; }
.veo-folio__langs { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 14px; }
.veo-folio__langs span { color: var(--text-muted); font-size: 0.98rem; }
.veo-folio__langs strong { color: var(--text); font-weight: 600; margin-right: 6px; }
.veo-folio__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.veo-folio__tags span { font-size: 0.82rem; color: var(--text-muted); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(182, 233, 232, 0.16); }

/* ---------- route-based visibility ---------- */
body.veo-route-content .veo-nav { display: none; }
body.veo-route-content .veo-brand { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
body.veo-route-content .veo-skip { display: none; }
body.veo-route-home .veo-dock { display: none; }

/* projects hub: the home menu steps aside, the projects ring takes over,
   Veo stays central and the ocean keeps living (like home). */
body.veo-route-hub .veo-nav { display: none; }
body.veo-route-hub .veo-projnav { display: block; }
body.veo-route-hub .veo-dock { display: none; }
body.veo-route-hub .veo-skip { display: none; }
body.veo-route-hub .veo-status { opacity: 0; }
/* the name steps down to a quiet wordmark on the hub (the "Projects" title leads) */
body.veo-route-hub .veo-brand__name {
  font-size: clamp(0.9rem, 2.1vw, 1.3rem);
  letter-spacing: 0.18em;
  filter: none;
}
body:not(.veo-route-hub) .veo-projnav { display: none; }

/* ---------- branding ---------- */
.veo-brand {
  position: fixed;
  top: clamp(28px, 6vh, 56px);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.6s ease;
}
/* Premium 3D display face for the name. Drop the real font file at
   assets/fonts/deep-shadow.{woff2,ttf} and it takes over automatically;
   until then a bold fallback carries the extruded 3D treatment below. */
@font-face {
  font-family: "Deep Shadow";
  src: url("assets/fonts/deep-shadow.woff2") format("woff2"),
       url("assets/fonts/deep-shadow.ttf") format("truetype");
  font-display: swap;
}
.veo-brand__name {
  margin: 0;
  font-family: "Deep Shadow", var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.12;
  font-size: clamp(1.45rem, 3.8vw, 2.6rem);
  /* translucent, softly graded wordmark - airy rather than a solid slab */
  background: linear-gradient(180deg, rgba(244, 252, 251, 0.88), rgba(197, 224, 222, 0.46));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 20px rgba(6, 16, 26, 0.55));
}

/* ---------- radial navigation (home + projects hub share these styles) ---------- */
.veo-nav, .veo-projnav {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none; /* items re-enable pointer events individually */
}
.veo-projnav { display: none; }

/* Floating navigation anchors, positioned by JS so each icon centers exactly
   on its projected orbit node. The icon is a premium glass "coin" with a line
   icon inside, a rotating conic rim and a centered ambient halo; the label
   sits absolutely below. */
.veo-nav__item {
  position: fixed;
  left: 0; top: 0;
  display: grid; place-items: center;
  width: 84px; height: 84px;         /* invisible hit target; icon is centered within */
  color: var(--text);
  text-decoration: none;
  pointer-events: auto;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.5s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}
.veo-nav.is-revealed .veo-nav__item.is-in,
.veo-projnav.is-revealed .veo-nav__item.is-in {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.veo-nav__item:hover,
.veo-nav__item:focus-visible { outline: none; transform: translate(-50%, -50%) scale(1.05); }

.veo-nav__icon {
  position: relative;
  width: 62px; height: 62px;         /* substantial premium coin */
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(120, 236, 226, 0.32), transparent 62%),
    linear-gradient(160deg, rgba(34, 72, 88, 0.88), rgba(12, 30, 42, 0.82));
  border: 1px solid rgba(182, 233, 232, 0.3);
  color: var(--veo-turquoise);
  box-shadow:
    inset 0 1px 1px rgba(197, 241, 236, 0.4),
    inset 0 -8px 16px -10px rgba(0, 0, 0, 0.7),
    0 10px 26px -14px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(9px) saturate(130%); -webkit-backdrop-filter: blur(9px) saturate(130%);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.veo-nav__icon svg {
  width: 27px; height: 27px; display: block;
  filter: drop-shadow(0 1px 6px rgba(77, 217, 207, 0.5));
  transition: color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
/* rotating conic rim - a slow premium light sweep around the coin edge */
.veo-nav__icon::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(from 0deg,
    rgba(77, 217, 207, 0) 0deg, rgba(77, 217, 207, 0.85) 60deg,
    rgba(182, 233, 232, 0.2) 140deg, rgba(77, 217, 207, 0) 240deg, rgba(77, 217, 207, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55;
  animation: veoRimSpin 7s linear infinite;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
@keyframes veoRimSpin { to { transform: rotate(360deg); } }
/* centered ambient halo behind the node (aligned, never offset) */
.veo-nav__icon::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 88px; height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 217, 207, 0.32), rgba(77, 217, 207, 0) 66%);
  opacity: 0.5; z-index: -1; pointer-events: none;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.veo-nav__item:hover .veo-nav__icon,
.veo-nav__item:focus-visible .veo-nav__icon {
  border-color: rgba(77, 217, 207, 0.85);
  background:
    radial-gradient(circle at 50% 32%, rgba(140, 244, 234, 0.42), transparent 62%),
    linear-gradient(160deg, rgba(40, 84, 100, 0.82), rgba(16, 38, 52, 0.72));
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 1px rgba(197, 241, 236, 0.5),
    0 16px 34px -16px rgba(0, 0, 0, 0.95),
    0 0 30px -4px rgba(77, 217, 207, 0.55);
}
.veo-nav__item:hover .veo-nav__icon { color: var(--aqua-soft); }
.veo-nav__item:hover .veo-nav__icon svg,
.veo-nav__item:focus-visible .veo-nav__icon svg { transform: scale(1.08); }
.veo-nav__item:hover .veo-nav__icon::after,
.veo-nav__item:focus-visible .veo-nav__icon::after { opacity: 1; }
.veo-nav__item:hover .veo-nav__icon::before,
.veo-nav__item:focus-visible .veo-nav__icon::before { opacity: 0.95; width: 104px; height: 104px; }

.veo-nav__label {
  position: absolute; left: 50%; top: calc(50% + 44px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-shadow: 0 2px 14px rgba(8, 21, 34, 0.95);
  transition: color 0.25s ease;
}
.veo-nav__item:hover .veo-nav__label,
.veo-nav__item:focus-visible .veo-nav__label { color: var(--text); }
/* selection: chosen item brightens, the others dim and retreat (§21) */
.veo-nav.is-selecting .veo-nav__item:not(.is-selected),
.veo-projnav.is-selecting .veo-nav__item:not(.is-selected) {
  opacity: 0.22;
  transform: translate(-50%, -50%) scale(0.9);
  filter: blur(1px);
}
/* temporarily locked route: dimmed, dashed, no hover lift */
.veo-nav__item.is-locked { opacity: 0.45; }
.veo-nav__item.is-locked:hover, .veo-nav__item.is-locked:focus-visible { transform: translate(-50%, -50%) scale(1); }
.veo-nav__item.is-locked .veo-nav__icon { border-style: dashed; }
.veo-nav__item.is-locked .veo-nav__icon::after { display: none; }
.veo-nav__item.is-locked:hover .veo-nav__icon { border-color: rgba(182, 233, 232, 0.3); transform: none; }
.veo-nav__item.is-locked .veo-nav__icon::before { opacity: 0.15; }
.veo-nav__item.is-locked:hover .veo-nav__icon::before { opacity: 0.2; width: 88px; height: 88px; }

.veo-nav__item.is-selected .veo-nav__icon {
  border-color: var(--veo-turquoise);
  background: rgba(40, 80, 95, 0.7);
  box-shadow: 0 0 40px -2px rgba(77, 217, 207, 0.95);
}
.veo-nav__item.is-selected .veo-nav__icon { color: var(--aqua-soft); }

/* project coins: real brand logos sit inside the glass coin */
.veo-nav__icon--logo {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(160deg, rgba(18, 40, 54, 0.92), rgba(7, 18, 28, 0.88));
  overflow: hidden;
}
.veo-nav__logo {
  width: 58%; height: 58%; object-fit: contain; display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.veo-nav__item:hover .veo-nav__logo,
.veo-nav__item:focus-visible .veo-nav__logo { transform: scale(1.09); }

/* ---------- projects hub caption + return control ---------- */
.veo-hub {
  position: fixed;
  top: clamp(68px, 12vh, 120px);
  left: 0; right: 0;
  z-index: 3;
  text-align: center;
  pointer-events: none;
  animation: veoFadeUp 0.6s ease both;
}
.veo-hub[hidden] { display: none; }
.veo-hub__eyebrow { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--veo-turquoise); }
.veo-hub__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 2.6rem); color: var(--text); margin: 6px 0 0; text-shadow: 0 2px 24px rgba(8, 21, 34, 0.9); }

/* system status detail (§19) */
.veo-status {
  position: fixed;
  left: clamp(16px, 3vw, 28px);
  bottom: clamp(44px, 7vh, 66px);
  z-index: 3;
  display: flex; flex-direction: column; gap: 3px;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(168, 189, 201, 0.34);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.veo-status__state { color: rgba(77, 217, 207, 0.5); }
.veo-status__clock {
  font-size: 0.56rem; letter-spacing: 0.24em; color: rgba(168, 189, 201, 0.42);
  margin-top: 1px;
}
body.veo-route-content .veo-status { opacity: 0; }

/* ---------- skip intro ---------- */
.veo-skip {
  position: fixed;
  bottom: clamp(16px, 3vh, 26px);
  right: clamp(16px, 3vw, 28px);
  z-index: 6;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(18, 38, 52, 0.4);
  border: 1px solid rgba(182, 233, 232, 0.14);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.4s ease;
}
.veo-skip:hover { color: var(--text); border-color: rgba(182, 233, 232, 0.4); }
.veo-skip.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- footer ---------- */
.veo-footer {
  position: fixed;
  bottom: clamp(14px, 2.4vh, 22px);
  left: clamp(16px, 3vw, 28px);
  z-index: 3;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  pointer-events: none;
}

.veo-fallback-note {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- no-WebGL fallback ---------- */
body.veo-no-webgl .veo-stage { display: none; }
body.veo-no-webgl .veo-grade { display: none; }
body.veo-no-webgl .veo-nav,
body.veo-no-webgl .veo-projnav { /* reveal nav immediately, laid out in a row */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding: 0 16px;
}
body.veo-no-webgl .veo-nav__item {
  position: static;
  width: auto; height: auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 6px;
  opacity: 1;
  transform: none;
}
body.veo-no-webgl .veo-nav__label {
  position: static; left: auto; top: auto; transform: none;
}
body.veo-no-webgl .veo-skip { display: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .veo-stage { transition: none; }
  /* keep the centering translate (nodes are placed by their centre on the
     projected point); only drop the scale/entrance animation */
  .veo-nav__item,
  .veo-nav.is-revealed .veo-nav__item.is-in,
  .veo-projnav.is-revealed .veo-nav__item.is-in { transition: opacity 0.2s ease; transform: translate(-50%, -50%) !important; }
  .veo-nav__icon::after { animation: none; }
  .veo-skip { display: none; }
}

/* small screens: compact controls; orbit positions come from JS projection */
@media (max-width: 560px) {
  .veo-nav__item { width: 66px; height: 66px; }
  .veo-nav__icon { width: 50px; height: 50px; }
  .veo-nav__icon svg { width: 22px; height: 22px; }
  .veo-nav__icon::before { width: 70px; height: 70px; }
  .veo-nav__label { font-size: 0.72rem; top: calc(50% + 38px); }
  .veo-brand { top: 16px; }
  .veo-hub { top: 70px; }
}
