
:root{
  --bg: #070914;
  --bg2:#0a0d1f;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.10);
  /* Luxury gold palette */
  --text:#e9cf8a;      /* body text */
  --muted:#c4a862;     /* secondary text */
  --muted2:#a78946;    /* tertiary text */

  /* Cyber-neon accents (use sparingly) */
  --a1:#58f0ff;        /* neon cyan */
  --a2:#7dffb6;        /* neon mint */
  --a3:#c7a6ff;        /* neon violet */

  --gold1:#ffd27a;     /* headline gold */
  --gold2:#e6c26a;     /* UI gold */
  --gold3:#b88c2a;     /* deep gold */

  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1180px;
  --ease: cubic-bezier(.2,.85,.2,1);
}

html[data-theme="light"]{
  --bg:#fbfbff;
  --bg2:#f1f4ff;
  --panel: rgba(10,15,25,.04);
  --panel2: rgba(10,15,25,.06);
  --line: rgba(90,65,0,.22);
  --shadow: 0 18px 55px rgba(10,15,25,.10);
  /* Gold text tuned for light backgrounds */
  --text:#6a4f08;
  --muted:#7a5d12;
  --muted2:#8a6a16;
  --gold:#8a6a12;
  --gold2:#b88c2a;
  --gold3:#6d520a;
}


*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(900px 520px at 14% 0%, color-mix(in oklab, var(--a3) 25%, transparent), transparent 60%),
    radial-gradient(850px 520px at 86% 8%, color-mix(in oklab, var(--a1) 22%, transparent), transparent 60%),
    radial-gradient(950px 620px at 60% 100%, color-mix(in oklab, var(--a2) 18%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
strong{font-weight:850}
code,kbd{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.skip{
  position:fixed; left:10px; top:10px; clip-path:inset(100%);
  background:var(--panel2);
  border:1px solid var(--line);
  padding:10px 14px;
  border-radius:999px;
  backdrop-filter: blur(12px);
}
.skip:focus{clip-path:none; z-index:999}

#bg{
  position:fixed; inset:0;
  width:100%; height:100%;
  z-index:-2;
  opacity:.55;
}

.topbar{
  position:sticky; top:0; z-index:50;
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  backdrop-filter: blur(16px);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; align-items:baseline; gap:10px}
.brand__name{font-weight:920; letter-spacing:.2px}
.brand__tag{
  font-weight:950;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.nav{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.nav a, .nav button{
  padding:8px 10px;
  border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  font: inherit;
  font-weight:820;
}
.nav a:hover, .nav button:hover{
  color:var(--text);
  border-color:var(--line);
  background:var(--panel);
}
.nav a.active{
  color:var(--text);
  border-color: color-mix(in oklab, var(--a1) 25%, var(--line));
  background: color-mix(in oklab, var(--panel2) 75%, transparent);
}
.hide-sm{display:inline-flex}
@media (max-width: 780px){ .hide-sm{display:none} }

.iconbtn{
  border:1px solid var(--line) !important;
  background:var(--panel) !important;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  font-weight:950;
  letter-spacing:.25px;
  border:1px solid color-mix(in oklab, var(--a1) 35%, var(--line));
  background: linear-gradient(90deg, color-mix(in oklab, var(--a1) 70%, transparent), color-mix(in oklab, var(--a2) 70%, transparent));
  box-shadow: var(--shadow);
  color: color-mix(in oklab, var(--text) 85%, #001018);
}
.btn--ghost{
  background:transparent;
  border-color:var(--line);
  box-shadow:none;
  color:var(--text);
}
.btn--sm{padding:9px 12px}
.btn:hover{filter:saturate(1.15)}
.btn--ghost:hover{background:var(--panel)}

.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel2) 70%, transparent);
  color:var(--muted);
  font-weight:900;
}

.hero{
  padding:44px 0 14px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap:24px;
  align-items:center;
}
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
}

.headline{
  font-size:48px;
  line-height:1.06;
  margin:12px 0 12px;
  letter-spacing:-.8px;
}
.headline__sub{
  display:block;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
@media (max-width: 980px){ .headline{font-size:40px} }

.lead{color:var(--muted); font-size:18px; margin:0 0 18px}

.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 18px}

.facts{display:grid; gap:10px; margin-top:12px}
.fact{
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:14px;
  padding:12px 14px;
  backdrop-filter: blur(12px);
}
.fact__k{
  color:var(--muted);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.35px;
}
.fact__v{margin-top:6px}

.mediaCard{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow: var(--shadow);
}
.mediaCard img{
  height:460px; width:100%; object-fit:cover;
  transform: scale(1.02);
  transition: transform .9s var(--ease);
}

/* Main portrait: bias the crop upward so the face stays fully in-frame */
.portraitMain{object-position:50% 18%}
.mediaCard:hover img{transform: scale(1.07)}
.mediaCard__glow{
  position:absolute; inset:-40px;
  background: radial-gradient(500px 260px at 60% 0%, color-mix(in oklab, var(--a1) 22%, transparent), transparent 65%),
              radial-gradient(500px 300px at 20% 90%, color-mix(in oklab, var(--a2) 18%, transparent), transparent 65%);
  pointer-events:none;
  filter: blur(8px);
  opacity:.95;
}
.mediaCard__meta{
  position:absolute; left:14px; bottom:14px;
  display:flex; gap:10px; flex-wrap:wrap;
}
.chip{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel2) 70%, transparent);
  backdrop-filter: blur(12px);
  font-size:12px;
  font-weight:950;
  color: var(--text);
}

.section{padding:60px 0}
.section--alt{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background: color-mix(in oklab, var(--panel) 55%, transparent);
}
.section__head{margin-bottom:18px}
.section__head h2{margin:0 0 6px; font-size:28px}
.muted{color:var(--muted)}

.grid{display:grid; gap:14px}
.grid--2{grid-template-columns: repeat(2, 1fr)}
.grid--3{grid-template-columns: repeat(3, 1fr)}
@media (max-width: 980px){
  .grid--2,.grid--3{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel2) 55%, transparent);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position:relative;
  overflow:hidden;
}
.card::after{
  content:"";
  position:absolute; inset:-120px;
  background: radial-gradient(360px 220px at 20% 20%, color-mix(in oklab, var(--a1) 12%, transparent), transparent 70%),
              radial-gradient(340px 220px at 80% 70%, color-mix(in oklab, var(--a2) 10%, transparent), transparent 70%);
  opacity:.8;
  pointer-events:none;
}
.card > *{position:relative; z-index:1}

.tile{
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel) 65%, transparent);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.tile__pill{
  display:inline-flex;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel2) 70%, transparent);
  font-size:12px; font-weight:950; color:var(--muted);
  margin-bottom:10px;
}

.list{margin:0; padding-left:18px}
.list li{margin:8px 0}

.link{
  color: var(--a1);
  font-weight:950;
}
.link:hover{text-decoration:underline}

.pageHero{padding:44px 0 8px}

.callout{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel2) 60%, transparent);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.callout__actions{display:flex; gap:12px; flex-wrap:wrap}

.masonry{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){ .masonry{grid-template-columns:1fr} }

.shot img{
  width:100%;
  height:320px;
  object-fit:cover;
  border-radius: var(--radius);
  border:1px solid var(--line);
}
.shot figcaption{margin-top:8px}

/* Social dropdown */
.nav__social{position:relative; display:inline-flex}
.nav__socialBtn{font-weight:900}
.nav__socialMenu{
  position:absolute;
  top:42px;
  right:0;
  min-width:240px;
  display:none;
  padding:8px;
  border-radius:14px;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel2) 75%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.nav__socialMenu a{
  display:block;
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
}
.nav__socialMenu a:hover{background:var(--panel); color:var(--text)}
.nav__social.open .nav__socialMenu{display:block}

/* Reveal animations (safe-by-default)
   If JS is blocked (e.g., iOS ZIP preview), content remains visible. */
.reveal{
  opacity:1;
  transform:none;
}
.js .reveal{
  opacity:0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: transform, opacity;
}
.js .reveal.is-in{opacity:1; transform: translateY(0)}
@media (prefers-reduced-motion: reduce){
  .js .reveal{opacity:1; transform:none; transition:none}
}

/* Testimonials carousel */
.carousel{
  display:flex;
  gap:14px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:6px;
}
.carousel::-webkit-scrollbar{height:8px}
.carousel::-webkit-scrollbar-thumb{background: color-mix(in oklab, var(--a1) 25%, var(--line)); border-radius:999px}
.testimonial{
  flex: 0 0 min(520px, 90%);
  scroll-snap-align: start;
}
.quote{
  font-size:14px;
  color:var(--muted);
}
.quote strong{color:var(--text)}
.stars{letter-spacing:1px; color: color-mix(in oklab, var(--a2) 70%, var(--text));}

/* Security radar */
.radarWrap{display:grid; grid-template-columns: 1.2fr .8fr; gap:14px; align-items:stretch}
@media (max-width: 980px){ .radarWrap{grid-template-columns:1fr} }
.radar{
  position:relative;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel) 60%, transparent);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.radar canvas{width:100%; height:420px; display:block}
.radarInfo{
  display:grid; gap:10px;
}
.kpi{
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel2) 60%, transparent);
  border-radius:14px;
  padding:12px 14px;
  backdrop-filter: blur(14px);
}
.kpi__k{font-size:12px; color:var(--muted); font-weight:950; text-transform:uppercase; letter-spacing:.3px}
.kpi__v{margin-top:6px; font-weight:850}

/* CYICU Console (terminal) */
#consoleOverlay{
  position:fixed; inset:0; z-index:999;
  display:none;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
}
#consoleOverlay.open{display:block}
.console{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  width:min(920px, 92vw);
  height:min(620px, 86vh);
  border-radius: 20px;
  border:1px solid color-mix(in oklab, var(--a1) 25%, var(--line));
  background: color-mix(in oklab, var(--bg) 70%, black);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  overflow:hidden;
}
.console__top{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.dots{display:flex; gap:8px}
.dot{width:10px; height:10px; border-radius:999px; opacity:.9}
.dot.r{background:#ff5f57}.dot.y{background:#febc2e}.dot.g{background:#28c840}
.console__title{color:var(--muted); font-weight:900}
.console__body{
  height:calc(100% - 52px);
  padding:14px;
  overflow:auto;
  font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color:#dce6ff;
}
.console__body .dim{color: rgba(220,230,255,.60)}
.prompt{color:#8bf2ff}
.consoleInputRow{
  display:flex; gap:10px; align-items:center;
  margin-top:10px;
}
.consoleInput{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:#dce6ff;
  border-radius: 12px;
  padding:10px 12px;
  outline:none;
}
.consoleInput:focus{border-color: rgba(140,245,255,.45)}

/* Intro splash */
#intro{
  position:fixed; inset:0; z-index:998;
  display:none;
  background: radial-gradient(800px 500px at 30% 20%, rgba(109,240,255,.20), transparent 60%),
              radial-gradient(700px 520px at 80% 30%, rgba(176,255,122,.16), transparent 60%),
              linear-gradient(180deg, rgba(7,9,20,.92), rgba(10,13,31,.95));
  backdrop-filter: blur(10px);
}
#intro.show{display:block}
.introBox{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  text-align:left;
  width:min(860px, 92vw);
  padding:26px 22px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.introTitle{
  font-size:36px; font-weight:950; letter-spacing:-.8px;
  margin:0 0 6px;
}
.introSub{color:var(--muted); margin:0 0 14px}
.scan{
  height:2px; width:100%;
  border-radius:999px;
  background: linear-gradient(90deg, transparent, var(--a1), var(--a2), transparent);
  animation: scan 1.6s var(--ease) infinite;
  opacity:.9;
}
@keyframes scan{
  0%{transform: translateX(-40%)}
  100%{transform: translateX(40%)}
}
.introMeta{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:14px;
}
.kTag{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:rgba(234,240,255,.92);
  font-weight:900;
  font-size:12px;
}

/* Wizard */
.wizard{
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel2) 60%, transparent);
  border-radius: var(--radius);
  padding:16px;
}
.steps{display:flex; gap:10px; flex-wrap:wrap; margin:6px 0 14px}
.step{
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel) 70%, transparent);
  color:var(--muted);
  font-weight:900; font-size:12px;
}
.step.on{color:var(--text); border-color: color-mix(in oklab, var(--a1) 25%, var(--line))}
.field{display:grid; gap:6px; margin:10px 0}
.field label{color:var(--muted); font-weight:900; font-size:12px; letter-spacing:.25px; text-transform:uppercase}
.field input,.field textarea,.field select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel) 70%, transparent);
  color:var(--text);
  outline:none;
}
.field input:focus,.field textarea:focus,.field select:focus{
  border-color: color-mix(in oklab, var(--a1) 35%, var(--line));
}
.wizActions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.notice{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:22px 0;
}
.footer__inner{
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.footer__links{display:flex; gap:12px; flex-wrap:wrap}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important; animation:none !important; transition:none !important}
  #bg{display:none}
}

/* Small separator dot used in hero lead copy */
.soft-sep{display:inline-block;margin:0 .5rem;opacity:.65}


/* Brand footer logo */
.footer__brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer__logo{
  height:22px;
  width:auto;
  border-radius:6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* Subtle page watermark (used on Visuals + Cybersecurity pages) */
.page-watermark{
  position:fixed;
  right:18px;
  bottom:18px;
  width:220px;
  height:220px;
  background: url("assets/img/logo-cyicu.jpg") no-repeat center / contain;
  opacity: .06;
  pointer-events:none;
  z-index:0;
  filter: grayscale(1) contrast(1.1) brightness(1.1);
}

@media (max-width: 720px){
  .page-watermark{ width:140px; height:140px; right:12px; bottom:12px; opacity:.05; }
}


/* Gold accent typography */
:root{
  --gold: #d9b46b;
}

h1, h2, h3{
  color: var(--gold);
}

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

a:hover{ opacity: .88; }

/* --- Stacked gallery + lightbox (Visuals) --- */
.stacked-gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.photo-card{
  grid-column: span 12;
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  outline: none;
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.photo-card.span-12{ grid-column: span 12; }
.photo-card.span-6{ grid-column: span 12; }

@media (min-width: 900px){
  .photo-card.span-6{ grid-column: span 6; }
}

/* Premium “no-crop” frame: blurred backdrop + crisp subject */
.photo-frame{
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: rgba(0,0,0,.25);
}

@media (min-width: 900px){
  .photo-frame{ height: 360px; }
}

.photo-card{ --bg: none; }

.photo-frame::before{
  content:"";
  position:absolute;
  inset:-16px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(.78) saturate(1.1);
  transform: scale(1.12);
}

.photo-card img{
  position: relative;
  width:100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display:block;
  transition: transform .28s ease, filter .28s ease;
}

.photo-card[data-fit="contain"] img{
  object-fit: contain;
  padding: 12px;
  filter: none;
}

.photo-card:focus-visible{
  box-shadow: 0 0 0 3px rgba(217,180,107,.35);
}

.photo-card:hover{
  transform: translateY(-3px);
  border-color: rgba(217,180,107,.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.photo-card:hover img,
.photo-card:focus-visible img{
  transform: scale(1.05);
  filter: contrast(1.05) saturate(1.05);
}

.photo-card[data-fit="contain"]:hover img{
  transform: scale(1.02);
}

.photo-meta{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding: 16px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
}

.photo-meta h3{
  margin: 0;
  font-weight: 780;
  letter-spacing: .2px;
}

.photo-meta p{
  margin: 6px 0 0;
  opacity: .86;
  font-size: 14px;
}

/* Scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: none;
}

.no-scroll{ overflow:hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.lightbox.is-open{ display:block; }

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
}

.lightbox__panel{
  position: relative;
  width: min(980px, calc(100% - 28px));
  margin: 6vh auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10,10,10,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
}

.lightbox__img{
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: #000;
}

.lightbox__cap{
  padding: 12px 14px 14px;
  font-size: 14px;
  opacity: .88;
}

.lightbox__close{
  position:absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover{ background: rgba(0,0,0,.75); }


/* Light mode contrast tweaks */
[data-theme="light"] .btn,
[data-theme="light"] .btnPrimary,
[data-theme="light"] .themeBtn{
  border-color: color-mix(in oklab, var(--gold2) 45%, rgba(0,0,0,.12));
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.55));
}
[data-theme="light"] .nav a:hover{background: rgba(184,140,42,.12)}
[data-theme="light"] .card{background: rgba(255,255,255,.72)}
[data-theme="light"] .divider{background: rgba(90,65,0,.18)}


/* CYICU Hidden Node (Easter Egg) */
#cyicu-node{
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(88,240,255,.22);
  background: radial-gradient(circle at 30% 30%, rgba(88,240,255,.28), rgba(0,0,0,.02) 60%),
              radial-gradient(circle at 70% 70%, rgba(125,255,182,.16), rgba(0,0,0,0) 70%);
  box-shadow: 0 0 0 rgba(88,240,255,0);
  opacity: .05;
  cursor: pointer;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#cyicu-node:hover{
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(88,240,255,.55);
  box-shadow: 0 0 22px rgba(88,240,255,.22), 0 0 44px rgba(125,255,182,.14);
}
#cyicu-node .nodeTip{
  position: absolute;
  right: 42px;
  bottom: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(88,240,255,.22);
  background: rgba(0,0,0,.42);
  color: rgba(88,240,255,.92);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(10px);
}
#cyicu-node:hover .nodeTip{opacity: 1; transform: translateX(0)}
#cyicu-node .gear{
  width: 14px; height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(230,194,106,.72);
  position: relative;
  filter: drop-shadow(0 0 8px rgba(88,240,255,.18));
}
#cyicu-node .gear:before,
#cyicu-node .gear:after{
  content:'';
  position:absolute;
  inset:-3px;
  border-radius:999px;
  border: 2px dashed rgba(88,240,255,.40);
}
#cyicu-node .gear:after{
  inset:-7px;
  border-color: rgba(125,255,182,.28);
}
#cyicu-node:hover .gear:before{animation: cyicuSpin 1.1s linear infinite}
#cyicu-node:hover .gear:after{animation: cyicuSpinR 1.6s linear infinite}
@keyframes cyicuSpin{to{transform:rotate(360deg)}}
@keyframes cyicuSpinR{to{transform:rotate(-360deg)}}


/* =========================
   Hidden Node Game (Neon Kart)
   ========================= */
.pageGame .gameWrap{max-width:1100px;margin:28px auto;padding:0 18px}
.pageGame .gameTop{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.pageGame .gameTitle{margin:0;font-size:34px;letter-spacing:.02em}
.pageGame .gameSub{margin:6px 0 0;color:var(--muted)}
.pageGame .gamePanel{margin-top:16px;display:grid;grid-template-columns:1.35fr .65fr;gap:14px}
@media (max-width:980px){.pageGame .gamePanel{grid-template-columns:1fr}}
.pageGame .gameCard{background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.pageGame .gameCanvasWrap{position:relative}
.pageGame canvas{display:block;width:100%;height:auto;background:linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.85))}
.pageGame .hud{position:absolute;left:14px;top:12px;display:flex;gap:10px;flex-wrap:wrap}
.pageGame .hud .chip{background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(10px);padding:6px 10px;border-radius:999px;color:var(--text);font-size:13px}
.pageGame .gameRight{padding:16px}
.pageGame .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.pageGame input[type="text"]{background:rgba(0,0,0,.25);border:1px solid var(--line);border-radius:12px;color:var(--text);padding:10px 12px;outline:none;min-width:220px}
.pageGame .btnPrimary{cursor:pointer;border-radius:14px;border:1px solid color-mix(in oklab,var(--gold) 55%, transparent);background:linear-gradient(180deg, color-mix(in oklab,var(--gold) 38%, transparent), rgba(0,0,0,.25));color:var(--text);padding:10px 14px}
.pageGame .btnGhost{cursor:pointer;border-radius:14px;border:1px solid var(--line);background:transparent;color:var(--text);padding:10px 14px}
.pageGame #playerNameIntro{background:rgba(0,0,0,.25);border:1px solid rgba(0,255,210,.25);border-radius:12px;color:var(--text);padding:10px 12px;outline:none;min-width:220px}
.pageGame .help{margin-top:10px;color:var(--muted);font-size:14px}
.pageGame .scoreboard{margin-top:14px}
.pageGame .scoreboard h3{margin:0 0 8px}
.pageGame .scoreList{display:flex;flex-direction:column;gap:8px}
.pageGame .scoreRow{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);padding:10px 12px;border-radius:14px}
.pageGame .intro{position:absolute;inset:0;background:radial-gradient(1000px 520px at 20% 20%, rgba(0,255,210,.14), transparent),linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.90));display:flex;align-items:center;justify-content:center;padding:18px}
.pageGame .introCard{max-width:760px;width:min(760px, 100%);background:rgba(0,0,0,.40);border:1px solid rgba(255,255,255,.14);border-radius:20px;backdrop-filter:blur(12px);padding:18px 18px 16px}
.pageGame .introOverline{color:rgba(125,255,182,.85);font-weight:700;letter-spacing:.18em;text-transform:uppercase;font-size:12px}
.pageGame .introTitle{margin:6px 0 0;font-size:42px}
@media (max-width:560px){.pageGame .introTitle{font-size:32px}}
.pageGame .introLead{margin:8px 0 14px;color:var(--muted);line-height:1.5}
.pageGame .introRow{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.pageGame .stageZoom{animation:stageZoom 520ms ease both}
@keyframes stageZoom{from{transform:scale(.96)}to{transform:scale(1)}}

/* Touch controls (mobile) */
.pageGame .touchBar{position:absolute;left:12px;right:12px;bottom:12px;display:none;justify-content:space-between;gap:10px;pointer-events:none}
.pageGame .touchCluster{display:flex;gap:10px;pointer-events:auto}
.pageGame .touchBtn{width:52px;height:52px;border-radius:16px;border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.35);backdrop-filter:blur(10px);color:rgba(255,255,255,.9);display:grid;place-items:center;font-weight:800}
.pageGame .touchBtn:active{transform:scale(.98)}
@media (hover:none) and (pointer:coarse){
  .pageGame .touchBar{display:flex}
  .pageGame .hud{top:10px}
}

/* =========================
   Internal helper page
   ========================= */
.pageStart .card{max-width:820px;margin:0 auto}
.pageStart .container{padding-top:26px}

.pageGame .howTitle{margin:0 0 6px}


/* =========================
   Small hero + cards
   ========================= */
.hero--small .container{padding-top:44px;padding-bottom:22px}
.hero--small h1{font-size:48px;line-height:1.05;margin:10px 0 10px}
.hero--small .lead{max-width:72ch}

.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width:980px){.grid-3{grid-template-columns:1fr}}
.cardLink{display:block;text-decoration:none;color:inherit}
.cardLink:hover{transform:translateY(-2px)}
.bullets{margin:10px 0 0 18px;color:rgba(255,255,255,.82)}
.bullets li{margin:6px 0}
.impact{margin-top:10px}

/* Masonry shots (Safari) */
.masonry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:980px){.masonry{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.masonry{grid-template-columns:1fr}}
.shot{position:relative;border-radius:18px;overflow:hidden;display:block;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02)}
.shot img{width:100%;height:320px;object-fit:cover;display:block;transform:scale(1.02);transition:transform .25s ease}
.shot:hover img{transform:scale(1.06)}
.shotCap{position:absolute;left:10px;bottom:10px;padding:6px 10px;border-radius:999px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;background:rgba(0,0,0,.35);backdrop-filter:blur(10px);color:rgba(255,255,255,.9)}

/* Darkroom mode (subtle) */
.darkroom body{filter:contrast(1.06) saturate(1.04)}
.darkroom .gridBG::before{opacity:.22}
.darkroom::after{content:"";position:fixed;inset:0;pointer-events:none;background:
  repeating-linear-gradient(to bottom, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 4px);
mix-blend-mode:overlay;opacity:.10}


/* Photo Gallery v2 (organized grid + filters) */
.filterBar{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 18px;}
.filterBtn{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);color:var(--text);padding:10px 12px;border-radius:999px;font-weight:600;font-size:13px;line-height:1;cursor:pointer;transition:transform .12s ease, background .12s ease, border-color .12s ease;}
.filterBtn:hover{transform:translateY(-1px);background:rgba(255,255,255,.06);}
.filterBtn.is-active{border-color:rgba(120,255,218,.55);background:rgba(120,255,218,.12);}
.photoGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;}
.photoCard{position:relative;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 60px rgba(0,0,0,.28);cursor:pointer;outline:none;}
.photoCard::after{content:"";position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,.68), rgba(0,0,0,0) 58%);opacity:.9;pointer-events:none;}
.photoThumb{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:4/5;filter:saturate(1.05) contrast(1.02);}
.photoMeta{position:absolute;left:12px;right:12px;bottom:10px;z-index:2;display:flex;flex-direction:column;gap:4px;}
.photoTag{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.78);}
.photoSub{font-size:13px;color:rgba(255,255,255,.92);font-weight:650;}
.photoCard:focus-visible{box-shadow:0 0 0 3px rgba(120,255,218,.35),0 20px 60px rgba(0,0,0,.28);}


/* ===== Collections & Case Studies ===== */
.collectionGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
@media (max-width: 820px){
  .collectionGrid{ grid-template-columns:1fr; }
}
.collectionCard{
  display:block;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  transition:transform .18s ease, border-color .18s ease;
}
.collectionCard:hover{ transform:translateY(-2px); border-color:rgba(137,236,255,.25); }

.collectionCard:active{ transform:translateY(0) scale(.985); }
.collectionCard:focus-visible{ outline:2px solid rgba(137,236,255,.55); outline-offset:3px; }

.collectionTitleRow{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.countBadge{
  font-size:.82rem;
  padding:.22rem .55rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  color:rgba(255,255,255,.78);
  white-space:nowrap;
}


.collectionThumbWrap{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  background:rgba(0,0,0,.25);
}
.collectionCard:hover .collectionThumb{ transform:scale(1.06); }
.collectionPills{
  position:absolute;
  left:12px;
  bottom:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-width:calc(100% - 24px);
  pointer-events:none;
}
.pill{
  font-size:12px;
  line-height:1;
  padding:7px 10px;
  border-radius:999px;
  color:rgba(255,255,255,.92);
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.collectionDesc{
  margin-top:6px;
  color:rgba(255,255,255,.72);
  font-size:14px;
}

.collectionThumb{ width:100%; height:100%; object-fit:cover; display:block; transform:scale(1); transition:transform .45s cubic-bezier(.2,.8,.2,1); }
.collectionBody{ padding:14px 14px 16px; }
.collectionTitle{ font-weight:700; letter-spacing:.2px; }

.caseGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
@media (max-width: 980px){
  .caseGrid{ grid-template-columns:1fr; }
}
.caseCard{
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  padding:18px;
}
.caseTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.caseTag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(137,236,255,.10);
  border:1px solid rgba(137,236,255,.18);
}
.caseList{ margin:10px 0 12px 18px; }
.caseList li{ margin:6px 0; }
.caseImpact{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.86);
}

.callout{
  margin-top:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.calloutTitle{ font-weight:800; }

.photoInfo{
  margin-top:6px;
  font-size:12px;
  color:rgba(255,255,255,.72);
}


/* --- CYICU TUNNEL (hidden node) -------------------------------------- */

.midPortal{position:absolute;left:58%;top:58vh;width:42px;height:42px;border-radius:999px;border:1px solid rgba(125,249,255,.22);background:radial-gradient(circle at 30% 30%, rgba(125,249,255,.18), rgba(0,0,0,0) 58%),radial-gradient(circle at 60% 70%, rgba(255,180,80,.10), rgba(0,0,0,0) 60%);box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 22px rgba(125,249,255,.12);opacity:.05;transition:opacity .2s ease,transform .2s ease,box-shadow .2s ease;cursor:pointer;z-index:5}
.midPortal:hover{opacity:.28;transform:scale(1.06);box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 32px rgba(125,249,255,.22)}
.midPortal:focus-visible{opacity:.4;outline:2px solid rgba(125,249,255,.55);outline-offset:3px}

.tunnelWrap{padding:26px 18px 56px;max-width:1200px;margin:0 auto}
.tunnelStage{position:relative;height:min(72vh,740px);border-radius:24px;overflow:hidden;margin-top:14px;background:radial-gradient(circle at 50% 20%, rgba(125,249,255,.08), rgba(0,0,0,0) 60%),radial-gradient(circle at 20% 80%, rgba(255,180,80,.06), rgba(0,0,0,0) 55%),rgba(10,14,22,.72);box-shadow:0 20px 60px rgba(0,0,0,.45)}
.tunnelVignette{pointer-events:none;position:absolute;inset:0;background:radial-gradient(circle at center, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%)}
.tunnelMouth{pointer-events:none;position:absolute;left:50%;top:50%;width:220px;height:220px;margin-left:-110px;margin-top:-110px;border-radius:999px;opacity:.0;filter:blur(.2px);mix-blend-mode:screen;transform:translateZ(0);background:radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 40%, rgba(120,255,240,.08) 58%, rgba(120,255,240,0) 70%),conic-gradient(from 0deg, rgba(255,80,120,.18), rgba(80,255,220,.18), rgba(160,120,255,.16), rgba(255,80,120,.18));transition:opacity 280ms ease, transform 280ms ease;}
.tunnelStage.blackHole .tunnelMouth{opacity:.55;transform:scale(1.06);} 
.tunnelStage.bite .tunnelMouth{animation:mouthBite 420ms ease-out both;}
 mouthBite{0%{transform:scale(1.06);opacity:.6;}40%{transform:scale(1.22);opacity:.85;}100%{transform:scale(1.06);opacity:.55;}}
.tunnelChrom{pointer-events:none;position:absolute;inset:-20%;opacity:.0;mix-blend-mode:screen;background:
  radial-gradient(circle at 30% 30%, rgba(255,60,120,.10), rgba(255,60,120,0) 55%),
  radial-gradient(circle at 70% 65%, rgba(60,180,255,.12), rgba(60,180,255,0) 55%),
  radial-gradient(circle at 50% 55%, rgba(160,120,255,.07), rgba(160,120,255,0) 60%);
  filter: blur(8px) saturate(1.05);
  transform: translate3d(0,0,0);
  transition: opacity 800ms ease;
}

/* Warp-in intro (subtle by default, dramatic but short) */
body.warp .tunnelStage{animation:warpIn 1100ms cubic-bezier(.18,.9,.1,1) both;}
body.warp .tunnelChrom{opacity:.85;}
@keyframes warpIn{
  0%{ filter: blur(6px) saturate(1.35) contrast(1.05); transform: scale(1.06); }
  70%{ filter: blur(1.2px) saturate(1.15) contrast(1.04); transform: scale(1.01); }
  100%{ filter: blur(0px) saturate(1.02) contrast(1.0); transform: scale(1.0); }
}
.tunnelRig,.tunnelTube{position:absolute;inset:0;transform-style:preserve-3d;perspective:1000px}
.tunnelTube{transform:translateZ(-200px)}
.tunnelCard{position:absolute;left:50%;top:50%;width:220px;height:140px;margin-left:-110px;margin-top:-70px;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.22);box-shadow:0 10px 40px rgba(0,0,0,.35);cursor:pointer}
.tunnelCard img{width:100%;height:100%;object-fit:cover;filter:saturate(1.02) contrast(1.02)}
.tunnelCap{position:absolute;left:0;right:0;bottom:0;padding:10px 12px;font-size:12px;letter-spacing:.02em;color:rgba(255,255,255,.82);background:linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0))}
.tunnelHUD{display:flex;flex-direction:column;gap:10px;padding:14px 16px}
.tunnelHUDTitle{font-size:16px;font-weight:700;letter-spacing:.02em}
.tunnelHUDSub{font-size:13px;color:rgba(255,255,255,.7)}
.tunnelHUDRow{display:flex;flex-wrap:wrap;gap:8px}
.tunnelHUDBtns{display:flex;gap:10px;flex-wrap:wrap}
.tunnelFoot{margin-top:12px;font-size:12px;color:rgba(255,255,255,.5)}

@media (max-width:720px){
  .tunnelCard{width:180px;height:118px;margin-left:-90px;margin-top:-59px}
  .midPortal{left:66%;top:64vh}
}


/* === Hidden Photo Tunnel Portal === */
.portalDot{
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(160, 255, 240, .28);
  background: radial-gradient(circle at 30% 30%, rgba(160,255,240,.22), rgba(0,0,0,0));
  box-shadow: 0 0 0 2px rgba(0,0,0,.35) inset, 0 0 24px rgba(80,255,220,.10);
  opacity: .18;
  display: inline-block;
  margin-left: 10px;
  transform: translateY(1px);
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}
.portalDot:hover{
  opacity: .55;
  transform: translateY(0px) scale(1.05);
  box-shadow: 0 0 0 2px rgba(0,0,0,.35) inset, 0 0 28px rgba(80,255,220,.22);
}
.portalDot:focus{ outline: none; opacity: .7; }



/* --- Safari Portal (hidden gateway) --- */
.safariPortal{
  display:inline-block;
  position:relative;
  padding:0 .18em;
  margin:0 .04em;
  cursor:pointer;
  border-radius:10px;
  transition:transform .25s ease, filter .25s ease, opacity .25s ease;
  text-shadow:0 0 14px rgba(90,220,255,.22);
}
.safariPortal::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-.25em;
  width:10px;height:10px;
  transform:translateX(-50%);
  border-radius:999px;
  background:radial-gradient(circle at 30% 30%, rgba(90,220,255,.9), rgba(90,220,255,.08) 60%, rgba(0,0,0,0) 70%);
  opacity:.35;
  filter:blur(.2px);
}
.safariPortal:hover{
  transform:translateY(-1px);
  filter:brightness(1.15);
}
.safariPortal.portalSpell{
  animation:spellGlow 1.1s ease-in-out infinite;
  letter-spacing:.12em;
}
@keyframes spellGlow{
  0%,100%{ text-shadow:0 0 12px rgba(90,220,255,.25), 0 0 22px rgba(160,120,255,.18); }
  50%{ text-shadow:0 0 18px rgba(90,220,255,.55), 0 0 34px rgba(160,120,255,.35); }
}

/* --- Tunnel "black hole" mode --- */
.tunnelWrap.tunnelHole .tunnelRig{
  animation:holeSpin 2.4s linear infinite;
}
.tunnelWrap.tunnelHole .tunnelTube{
  animation:holeDrift 1.6s ease-in-out infinite;
}
@keyframes holeSpin{
  from{ transform:rotateZ(0deg); }
  to{ transform:rotateZ(360deg); }
}
@keyframes holeDrift{
  0%,100%{ filter:contrast(1.02) saturate(1.05); }
  50%{ filter:contrast(1.15) saturate(1.15); }
}
.tunnelCard:hover img{animation:imgSpin 1.6s linear infinite; transform-style:preserve-3d}
@keyframes imgSpin{from{transform:rotateY(0deg)}to{transform:rotateY(360deg)}}


/* === Safari portal spell (Harry-Potter-ish mist + flying letters) === */
.safariPortal{
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 0 .12em;
  border-radius: 12px;
  transition: filter .25s ease, text-shadow .25s ease, transform .25s ease;
}
.safariPortal.portalSpell{
  text-shadow: 0 0 18px rgba(120,255,240,.55), 0 0 42px rgba(120,255,240,.25);
  filter: saturate(1.1);
  transform: translateY(-1px);
}
.safariPortal .spellCloud{
  position:absolute;
  inset:-24px -22px -24px -22px;
  pointer-events:none;
}
.safariPortal .spellPuff{
  position:absolute;
  left:50%;
  top:50%;
  width:22px;
  height:22px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(170,255,245,.55), rgba(120,255,240,.12) 55%, rgba(120,255,240,0) 70%);
  transform: translate(var(--x), var(--y)) scale(var(--s));
  opacity:.0;
  animation: spellPuff 1.05s ease-out forwards;
  animation-delay: var(--d);
  filter: blur(.4px);
}
@keyframes spellPuff{
  0%{ opacity:0; transform: translate(var(--x), var(--y)) scale(calc(var(--s)*.6)); }
  20%{ opacity:.55; }
  100%{ opacity:0; transform: translate(calc(var(--x)*1.25), calc(var(--y)*1.25)) scale(calc(var(--s)*1.35)); }
}
.safariPortal .spellLetters{
  position:relative;
  display:inline-block;
  letter-spacing:.08em;
}
.safariPortal .spellLetter{
  display:inline-block;
  will-change: transform, opacity;
  transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(.7);
  opacity:0;
  animation: spellIn 1.05s cubic-bezier(.2,.9,.15,1) forwards;
  animation-delay: calc(var(--i)*0.06s);
}
.safariPortal .spellLetter.spellOut{
  transform: translate(0,0) rotate(0) scale(1);
  opacity:1;
  animation: spellOut 0.65s ease-in forwards;
  animation-delay: calc(var(--i)*0.03s);
}
@keyframes spellIn{
  0%{ opacity:0; transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(.65); filter: blur(2px); }
  55%{ opacity:1; }
  100%{ opacity:1; transform: translate(0,0) rotate(0) scale(1); filter: blur(0px); }
}
@keyframes spellOut{
  0%{ opacity:1; transform: translate(0,0) rotate(0) scale(1); filter: blur(0px); }
  100%{ opacity:0; transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(.65); filter: blur(2px); }
}


/* === Tunnel organism mode (idle: wiggle, grow, split) === */
.tunnelMotes{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}
.tunnelMotes .mote{
  position:absolute;
  left:50%; top:50%;
  width:10px; height:10px;
  margin-left:-5px; margin-top:-5px;
  border-radius:999px;
  background: radial-gradient(circle at 35% 35%, rgba(120,255,240,1), rgba(120,255,240,.35) 55%, rgba(120,255,240,0) 70%);
  opacity:0;
  filter: blur(.1px);
  --sx: 0px; --sy: 0px; --rot: 540deg; --dur: 3800ms;
  animation:
    moteSwim var(--dur) cubic-bezier(.15,.9,.15,1) forwards,
    moteGlow 1200ms ease-in-out infinite;
}
@keyframes moteSwim{
  0%{ opacity:0; transform: translate3d(calc(var(--sx)*1), calc(var(--sy)*1), 0) scale(.65) rotate(0deg); }
  15%{ opacity:.6; }
  100%{ opacity:0; transform: translate3d(0,0,0) scale(.25) rotate(var(--rot)); }
}
@keyframes moteGlow{
  0%,100%{ opacity:.18; transform: scale(.9); }
  50%{ opacity:.55; transform: scale(1.15); }
}
.tunnelRig.organism{
  animation: rigSwim 3.2s ease-in-out infinite;
}
.organism.predator{ filter:saturate(1.12) contrast(1.08); }
@keyframes rigSwim{
  0%,100%{ transform: translate3d(0,0,0) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  20%{ transform: translate3d(0,-14px,0) rotateX(5deg) rotateY(-8deg) rotateZ(-1.2deg); }
  50%{ transform: translate3d(0,14px,0) rotateX(-5deg) rotateY(8deg) rotateZ(1.2deg); }
  80%{ transform: translate3d(0,-10px,0) rotateX(3deg) rotateY(-6deg) rotateZ(-.9deg); }
}
.tunnelStage.blackHole{
  animation: stageSpin 1.2s linear infinite;
  transform-origin: 50% 50%;
}
.tunnelStage.rage{
  filter:saturate(1.2) contrast(1.12);
}
.tunnelStage.rage .tunnelChrom{opacity:.95;}
.tunnelStage.rage.blackHole{animation: stageSpin .78s linear infinite;}
.tunnelStage.rage .tunnelMouth{opacity:.7;}
@keyframes stageSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
.tunnelTube2{
  opacity:.72;
  transform: translateZ(0) translateX(18px) rotateZ(6deg);
  filter: saturate(1.05);
  display:none;
}
.tunnelStage.split .tunnelTube2{ display:block; }


/* --- Lightbox v2 --- */
.lightbox__top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 0 10px}
.lightbox__h{font-size:14px;letter-spacing:.2px}
.lightbox__count{font-size:12px}
.lightbox__actions{display:flex;gap:8px;align-items:center}
.lightbox__info{display:none;margin-top:10px;border-top:1px solid var(--line);padding-top:10px;color:rgba(255,255,255,.78);font-size:12px;line-height:1.5}
.lightbox__info.is-open{display:block}
.lbRow{display:flex;gap:10px;padding:6px 0;border-bottom:1px dashed rgba(255,255,255,.10)}
.lbRow:last-child{border-bottom:none}
.lbK{width:88px;flex:0 0 88px;color:rgba(255,255,255,.55)}
.lbV{flex:1}
.lightbox__info code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:rgba(255,255,255,.75)}
.iconbtn.is-done{outline:2px solid rgba(233,207,138,.55)}



/* --- CmdK palette --- */
.cmdk{position:fixed;inset:0;display:none;z-index:2000}
.cmdk.is-open{display:block}
.cmdk__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(10px)}
.cmdk__panel{position:relative;max-width:720px;margin:12vh auto 0 auto;background:rgba(10,13,31,.92);border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.55);padding:12px}
.cmdk__top{display:flex;gap:10px;align-items:center}
.cmdk__k{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;color:rgba(255,255,255,.55);padding:6px 8px;border:1px solid rgba(255,255,255,.10);border-radius:10px}
.cmdk__input{flex:1;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:10px 12px;color:rgba(255,255,255,.92);outline:none}
.cmdk__input:focus{border-color:rgba(233,207,138,.45);box-shadow:0 0 0 4px rgba(233,207,138,.12)}
.cmdk__list{margin-top:10px;display:flex;flex-direction:column;gap:6px;max-height:44vh;overflow:auto}
.cmdk__item{display:flex;justify-content:space-between;gap:12px;align-items:center;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:10px 12px;color:rgba(255,255,255,.88);text-align:left;cursor:pointer}
.cmdk__item:hover,.cmdk__item.is-active{background:rgba(255,255,255,.08);border-color:rgba(233,207,138,.35)}
.cmdk__meta{font-size:12px;color:rgba(255,255,255,.55)}
.cmdk__hint{padding:8px 2px 2px 2px;font-size:12px}

/* --- Diagnostics HUD --- */
.diagHud{position:fixed;left:14px;bottom:14px;z-index:2100;display:none;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:10px 12px;backdrop-filter:blur(10px)}
.diagHud.is-on{display:block}
.diagHud .hud__row{display:flex;justify-content:space-between;gap:14px;font-size:12px;line-height:1.5}
.diagHud .hud__k{color:rgba(255,255,255,.55)}
.diagHud .hud__v{color:rgba(255,255,255,.88)}

/* Darkroom mode (subtle) */
.darkroom body{filter:contrast(1.05) saturate(1.05)}
.darkroom .photoThumb{filter:contrast(1.08) saturate(1.08)}

.mt-14{margin-top:14px}
.mt-16{margin-top:16px}
