/* ============================================================
   WITEYE STUDIO — shared styles
   fiery orange + glowing dark blue on black / Outfit font
   ============================================================ */

:root {
  --bg: #040406;
  --bg-card: rgba(14, 12, 18, 0.82);
  --orange: #ff7300;
  --orange-hot: #ffae00;
  --ember: #ff3c00;
  --blue: #2e9fff;
  --blue-glow: #00d0ff;
  --text: #f2eee6;
  --text-dim: #9a948c;
  --line: rgba(255, 115, 0, 0.18);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ---- ember particle canvas ---- */
#embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- VHS scanlines + vignette overlay ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.022) 0px,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  animation: vhsFlicker 7s infinite steps(1);
}

@keyframes vhsFlicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.82; }
  94% { opacity: 1; }
  97% { opacity: 0.9; }
  98% { opacity: 1; }
}

main, header, footer { position: relative; z-index: 2; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* ---- chromatic aberration text ---- */
.chroma {
  position: relative;
  text-shadow:
    -2.5px 0 rgba(255, 0, 70, 0.55),
     2.5px 0 rgba(0, 208, 255, 0.55),
     0 0 28px rgba(255, 115, 0, 0.35);
}

/* occasional glitch jump */
.glitch { animation: glitchJump 6s infinite steps(1); }

@keyframes glitchJump {
  0%, 94%, 100% { transform: none; filter: none; }
  94.5% { transform: translate(-3px, 1px) skewX(-4deg); filter: hue-rotate(40deg); }
  95% { transform: translate(3px, -1px); filter: none; }
  95.5% { transform: none; }
  97% { transform: translate(2px, 0) scaleX(1.01); filter: saturate(2); }
  97.5% { transform: none; filter: none; }
}

/* ============ TOP BAR (compact header) ============ */
.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 20px 10px;
  text-align: center;
  position: relative;
}

/* "Witeye (eye) Studio" — logo sits inline between the words */
.topbar h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32em;
}
.topbar h1 img.logo { width: 1.7em; flex-shrink: 0; }

.topbar::before {
  content: "";
  position: absolute;
  inset: -40% -10% -10%;
  background:
    radial-gradient(ellipse 50% 70% at 35% 20%, rgba(255, 60, 0, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 60% at 68% 10%, rgba(46, 159, 255, 0.09), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.topbar img.logo {
  filter: drop-shadow(0 0 18px rgba(255, 115, 0, 0.55)) drop-shadow(0 0 40px rgba(0, 208, 255, 0.18));
  animation: logoPulse 5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255, 115, 0, 0.5)) drop-shadow(0 0 40px rgba(0, 208, 255, 0.15)); }
  50% { filter: drop-shadow(0 0 28px rgba(255, 140, 0, 0.8)) drop-shadow(0 0 56px rgba(0, 208, 255, 0.3)); }
}

.topbar h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--orange-hot) 10%, var(--orange) 38%, #fff 50%, var(--blue) 64%, var(--blue-glow) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.topbar .tagline {
  margin-top: 4px;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: clamp(0.58rem, 1.6vw, 0.78rem);
}

/* ============ SECTIONS ============ */
section { padding: 70px 0; }
section.first { padding-top: 28px; }

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  margin-bottom: 46px;
  color: var(--text);
}

.section-title span { color: var(--orange); }

/* ============ PROJECT CARD ============ */
/* two active projects sit side by side on desktop */
#active-list.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  align-items: start;
}
@media (max-width: 980px) {
  #active-list.two { grid-template-columns: 1fr; }
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px 28px;
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 40px rgba(255, 80, 0, 0.06), inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--blue-glow), transparent);
  opacity: 0.8;
}

/* per-project banner — fills the card background, fading down into black */
.pc-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.3) 55%, transparent 95%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.3) 55%, transparent 95%);
}
.project-card > *:not(.pc-banner),
.past-card > *:not(.pc-banner) { position: relative; z-index: 1; }
.past-card { position: relative; overflow: hidden; }

/* per-project logo next to the name */
.pc-logo {
  height: 46px;
  max-width: 130px;
  object-fit: contain;
  align-self: center;
  filter: drop-shadow(0 0 10px rgba(255, 115, 0, 0.45));
}
.past-card .pc-logo { height: 30px; max-width: 90px; }

.pc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 6px;
}

.pc-head h3 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid;
}
.badge.type { color: var(--blue-glow); border-color: rgba(0, 208, 255, 0.4); background: rgba(0, 120, 200, 0.08); }
.badge.phase { color: var(--orange-hot); border-color: rgba(255, 150, 0, 0.5); background: rgba(255, 90, 0, 0.1); text-shadow: 0 0 8px rgba(255,140,0,.6); }
.badge.released { color: #7CFFB2; border-color: rgba(124,255,178,.4); background: rgba(40,160,90,.1); }

.pc-desc { color: var(--text-dim); font-weight: 300; margin: 6px 0 18px; max-width: 70ch; }

.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.pc-meta b { color: var(--text); font-weight: 500; }
.pc-meta .dev-days b { color: var(--orange-hot); }

/* ---- progress bar ---- */
.pbar-zone { margin: 10px 0 8px; }

.pbar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.pbar-pct {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange-hot);
  text-shadow: 0 0 18px rgba(255, 140, 0, 0.7);
}

.pbar {
  position: relative;
  height: 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.pbar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8a1a00, var(--ember) 30%, var(--orange) 65%, var(--orange-hot) 92%, #fff3c0);
  box-shadow: 0 0 18px rgba(255, 100, 0, 0.75), 0 0 50px rgba(255, 60, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}

.pbar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(100%); } }

/* ---- phase markers on the bar ---- */
.ph-mark {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  box-shadow: 0 0 10px rgba(46, 159, 255, 0.7);
  z-index: 2;
}
.ph-mark.done { border-color: var(--orange-hot); background: var(--orange); box-shadow: 0 0 12px rgba(255, 140, 0, 0.9); }
.ph-mark.current { width: 14px; height: 14px; animation: markPulse 1.6s ease-in-out infinite; }
@keyframes markPulse {
  0%,100% { box-shadow: 0 0 10px rgba(255,140,0,.9); }
  50% { box-shadow: 0 0 22px rgba(255,180,0,1), 0 0 40px rgba(255,120,0,.6); }
}

/* ---- phase timeline labels (alternate above / below the bar) ---- */
.ph-labels { position: relative; height: 60px; margin-top: 10px; }
.ph-labels.top { margin-top: 0; margin-bottom: 10px; }

.ph-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  max-width: 110px;
  line-height: 1.3;
}
.ph-labels.top .ph-label { top: auto; bottom: 0; }

/* connector line: below-bar labels have it on top… */
.ph-label::before {
  content: "";
  display: block;
  width: 1px; height: 12px;
  margin: 0 auto 4px;
  background: linear-gradient(to bottom, rgba(46,159,255,.7), transparent);
}
/* …above-bar labels have it underneath, pointing down to the bar */
.ph-labels.top .ph-label::before { display: none; }
.ph-labels.top .ph-label::after {
  content: "";
  display: block;
  width: 1px; height: 12px;
  margin: 4px auto 0;
  background: linear-gradient(to top, rgba(46,159,255,.7), transparent);
}
.ph-label.done { color: var(--orange-hot); }
.ph-label.done::before { background: linear-gradient(to bottom, rgba(255,140,0,.8), transparent); }
.ph-labels.top .ph-label.done::after { background: linear-gradient(to top, rgba(255,140,0,.8), transparent); }
.ph-label .ph-date { display: block; font-size: 0.6rem; color: var(--blue-glow); margin-top: 2px; letter-spacing: 0.04em; text-transform: none; }
.ph-label .ph-pct { opacity: .6; }

/* ---- countdown ---- */
.countdown {
  margin: 26px auto 4px;
  text-align: center;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 208, 255, 0.22);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0, 140, 220, 0.12), transparent 70%),
    rgba(2, 10, 20, 0.5);
  max-width: 560px;
}

.cd-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(0, 208, 255, 0.6);
}

.cd-units { display: flex; justify-content: center; gap: 18px; }

.cd-unit { min-width: 64px; }

.cd-num {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  text-shadow: -1.5px 0 rgba(255,0,70,.45), 1.5px 0 rgba(0,208,255,.45);
  font-variant-numeric: tabular-nums;
}

.cd-word { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }

.cd-date { margin-top: 10px; font-size: 0.74rem; color: var(--text-dim); }

/* ---- post-countdown CTA button ---- */
.cta-box { border-color: rgba(255, 150, 0, 0.35); }

.cta-btn {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(95deg, var(--ember), var(--orange) 55%, var(--orange-hot));
  padding: 15px 42px;
  border-radius: 99px;
  box-shadow: 0 0 24px rgba(255, 100, 0, 0.6), 0 0 70px rgba(255, 60, 0, 0.25);
  animation: ctaPulse 2.2s ease-in-out infinite;
  transition: transform .15s;
}
.cta-btn:hover { transform: translateY(-2px) scale(1.03); }

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 100, 0, 0.55), 0 0 60px rgba(255, 60, 0, 0.2); }
  50% { box-shadow: 0 0 36px rgba(255, 140, 0, 0.9), 0 0 90px rgba(255, 80, 0, 0.4), 0 0 30px rgba(0, 208, 255, 0.2); }
}

/* ---- updates ---- */
.updates { margin-top: 30px; text-align: center; }

.updates h4 {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.update {
  max-width: 640px;
  margin: 0 auto 14px;
  padding: 14px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid var(--orange);
  text-align: left;
}

.update .u-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.update .u-title { font-weight: 600; font-size: 0.95rem; }
.update .u-date { font-size: 0.7rem; color: var(--blue-glow); white-space: nowrap; }
.update .u-body { margin-top: 5px; font-weight: 300; font-size: 0.86rem; color: var(--text-dim); line-height: 1.5; }

.u-weight {
  display: inline-block;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em;
  color: #7CFFB2; border: 1px solid rgba(124,255,178,.35);
  background: rgba(40,160,90,.1);
  padding: 2px 9px; border-radius: 99px; margin-left: 8px;
  vertical-align: middle; white-space: nowrap;
}

/* update photos */
.u-imgs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.u-imgs img {
  height: 84px; border-radius: 8px; cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .2s, box-shadow .2s;
}
.u-imgs img:hover { transform: scale(1.04); box-shadow: 0 0 16px rgba(255, 115, 0, 0.4); }

/* lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 4vmin;
}
#lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(255, 100, 0, 0.35), 0 0 120px rgba(0, 160, 255, 0.2);
}
#lightbox[hidden] { display: none; }

/* ============ PROJECT SUB-PAGE ============ */
.back-link {
  display: inline-block; margin: 26px 0 0;
  color: var(--text-dim); text-decoration: none;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  transition: color .2s;
}
.back-link:hover { color: var(--orange-hot); }

.proj-title-link { color: inherit; text-decoration: none; }
.proj-title-link:hover { text-shadow: 0 0 18px rgba(255, 140, 0, 0.8); }

.proj-page-link {
  display: inline-block; margin-top: 22px;
  color: var(--blue-glow); text-decoration: none;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid rgba(0, 208, 255, 0.3); border-radius: 99px;
  padding: 9px 24px; transition: all .25s;
}
.proj-page-link:hover { box-shadow: 0 0 18px rgba(0, 208, 255, 0.35); border-color: var(--blue-glow); }

/* long-form updates feed */
.feed { max-width: 760px; margin: 0 auto; }
.feed-item {
  position: relative;
  padding: 0 0 46px 34px;
  border-left: 1px solid rgba(255, 115, 0, 0.25);
}
.feed-item:last-child { border-left-color: transparent; }
.feed-item::before {
  content: "";
  position: absolute; left: -7px; top: 4px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--orange);
  box-shadow: 0 0 12px rgba(255, 115, 0, 0.7);
}
.feed-item .f-date {
  font-size: 0.72rem; color: var(--blue-glow);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.feed-item h3 { font-size: 1.35rem; font-weight: 700; margin: 6px 0 10px; }
.feed-item .f-body {
  font-weight: 300; color: var(--text-dim); line-height: 1.75; font-size: 0.97rem;
  white-space: pre-line; max-width: 64ch;
}
.feed-item .u-imgs img { height: 130px; }

/* devlog feed embedded in homepage cards */
.updates .feed { text-align: left; }
.updates .feed-item { padding-bottom: 32px; }
.updates .feed-item h3 { font-size: 1.1rem; }
.updates .feed-item .u-imgs img { height: 100px; }
.updates .more-wrap { display: block; }

.show-more {
  background: none; border: 1px solid var(--line); color: var(--text-dim);
  font-family: inherit; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 22px; border-radius: 99px; cursor: pointer; margin-top: 6px;
  transition: all .25s;
}
.show-more:hover { color: var(--orange-hot); border-color: var(--orange); box-shadow: 0 0 14px rgba(255,115,0,.3); }

/* ============ PAST PROJECTS ============ */
.past-card {
  background: rgba(10, 10, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s;
}
.past-card:hover { border-color: rgba(0, 208, 255, 0.35); box-shadow: 0 0 24px rgba(0, 150, 255, 0.12); }

.past-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.past-head h3 { font-size: 1.2rem; font-weight: 600; flex: 1; }
.past-dates { font-size: 0.76rem; color: var(--text-dim); }
.past-dates b { color: var(--blue-glow); font-weight: 500; }
.past-toggle { color: var(--orange); font-size: 1.1rem; transition: transform .3s; }
.past-card.open .past-toggle { transform: rotate(90deg); }
.past-body { display: none; margin-top: 18px; }
.past-card.open .past-body { display: block; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 60px;
  text-align: center;
  background: linear-gradient(to bottom, transparent, rgba(255, 60, 0, 0.04));
}

footer .f-logo { width: 64px; opacity: 0.85; filter: drop-shadow(0 0 12px rgba(255,115,0,.4)); }
footer p { color: var(--text-dim); font-size: 0.8rem; margin-top: 12px; font-weight: 300; }
footer a { color: var(--orange-hot); text-decoration: none; }
footer a:hover { text-shadow: 0 0 10px rgba(255, 150, 0, 0.7); }

.socials { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.socials a {
  color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color .25s;
}
.socials a:hover { color: var(--blue-glow); text-shadow: 0 0 10px rgba(0,208,255,.7); }

.admin-link { margin-top: 26px; display: inline-block; font-size: 0.66rem; color: rgba(255,255,255,.18) !important; letter-spacing: .2em; }

/* ============================================================
   INTRO SEQUENCE (index only)
   ============================================================ */

/* fullscreen video */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  transition: opacity 0.8s ease;
}
#intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#intro.fading { opacity: 0; pointer-events: none; }

#skip-intro {
  position: absolute;
  bottom: 26px;
  right: 30px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.25s;
}
#skip-intro:hover { color: var(--orange-hot); border-color: var(--orange); }

/* black boot screen with name + charging bar */
#boot {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#boot[hidden] { display: none; }
.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: min(620px, 86vw);
}
.boot-name {
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 1.3em;
  text-align: center;
}
.boot-name .caret {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 4px;
  background: var(--orange-hot);
  vertical-align: -0.12em;
  animation: caretBlink 0.6s steps(1) infinite;
  box-shadow: 0 0 12px rgba(255, 150, 0, 0.9);
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* each letter slams in from a blur with chromatic split */
.boot-name .l {
  display: inline-block;
  animation: letterIn 0.55s cubic-bezier(0.16, 1.3, 0.3, 1) backwards;
}
@keyframes letterIn {
  0% {
    opacity: 0;
    transform: scale(2.8) translateY(-0.12em);
    filter: blur(10px);
    text-shadow: -0.18em 0 rgba(255, 0, 70, 0.95), 0.18em 0 rgba(0, 208, 255, 0.95);
  }
  45% { opacity: 1; filter: blur(0); }
  70% { text-shadow: -0.04em 0 rgba(255, 0, 70, 0.6), 0.04em 0 rgba(0, 208, 255, 0.6); }
  100% { transform: scale(1) translateY(0); }
}

/* wide-tracked cinematic sub-line (type · current phase) */
.boot-sub {
  font-size: clamp(0.62rem, 2vw, 0.82rem);
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--blue-glow);
  text-shadow: 0 0 14px rgba(0, 208, 255, 0.7);
  opacity: 0;
  margin-top: -6px;
}
.boot-sub.show { animation: subIn 1s ease forwards; }
@keyframes subIn {
  from { opacity: 0; letter-spacing: 0.95em; filter: blur(5px); }
  to { opacity: 0.92; letter-spacing: 0.52em; filter: blur(0); }
}

/* white-hot spark riding the tip of the charging bar */
.boot-spark {
  position: absolute;
  top: 50%;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, rgba(255, 190, 60, 0.9) 30%, rgba(255, 100, 0, 0.4) 55%, transparent 75%);
  pointer-events: none;
  z-index: 3;
  animation: sparkFlick 0.1s infinite alternate;
}
@keyframes sparkFlick {
  from { opacity: 0.75; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

/* full-charge moment: bar flash, % beat, impact shake */
.boot-bar.flash::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 99px;
  background: #fff;
  z-index: 4;
  animation: barFlash 0.55s ease-out forwards;
}
@keyframes barFlash {
  0% { opacity: 0.95; box-shadow: 0 0 60px rgba(255, 255, 255, 0.9); }
  100% { opacity: 0; box-shadow: 0 0 0 transparent; }
}
.boot-inner.charged .boot-pct { animation: pctBeat 0.5s cubic-bezier(0.2, 1.7, 0.3, 1); }
@keyframes pctBeat { 30% { transform: scale(1.28); } 100% { transform: scale(1); } }
.boot-inner.charged { animation: chargeShake 0.42s linear; }
@keyframes chargeShake {
  12% { transform: translate(5px, -3px); }
  28% { transform: translate(-5px, 3px); }
  44% { transform: translate(4px, 2px); }
  62% { transform: translate(-3px, -2px); }
  80% { transform: translate(2px, 1px); }
  100% { transform: translate(0, 0); }
}

.boot-pct {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 800;
  color: var(--orange-hot);
  text-shadow: 0 0 30px rgba(255, 140, 0, 0.8), -2px 0 rgba(255,0,70,.4), 2px 0 rgba(0,208,255,.4);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.boot-bar { width: 100%; height: 22px; }
.boot-bar .pbar-fill {
  box-shadow: 0 0 26px rgba(255, 110, 0, 0.95), 0 0 80px rgba(255, 60, 0, 0.5);
  transition: none;
}

/* dramatic collapse: swell, then crush to nothing */
.boot-inner.collapse {
  animation: bootCrush 0.75s cubic-bezier(0.85, -0.45, 0.15, 1.45) forwards;
}
@keyframes bootCrush {
  0% { transform: scale(1); opacity: 1; filter: none; }
  35% { transform: scale(1.18); opacity: 1; filter: brightness(1.6) saturate(1.4); }
  100% { transform: scale(0); opacity: 0; filter: brightness(3); }
}

/* shockwave rings */
.shock-ring {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 98;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  pointer-events: none;
  border: 3px solid var(--orange-hot);
  box-shadow: 0 0 40px rgba(255, 120, 0, 0.8), inset 0 0 30px rgba(255, 120, 0, 0.5);
  animation: shockExpand 0.9s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
.shock-ring.blue {
  border-color: var(--blue-glow);
  box-shadow: 0 0 40px rgba(0, 208, 255, 0.7), inset 0 0 30px rgba(0, 208, 255, 0.4);
  animation-duration: 1.15s;
}
@keyframes shockExpand {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(260); opacity: 0; border-width: 0.5px; }
}

/* hide site during intro, pop it in with the shockwave */
body.preintro { overflow: hidden; }
body.preintro .topbar,
body.preintro main,
body.preintro footer { visibility: hidden; }

body.revealing .topbar,
body.revealing main,
body.revealing footer { visibility: visible; }
body.revealing .topbar { animation: popIn 0.65s cubic-bezier(0.2, 1.5, 0.35, 1) backwards; }
body.revealing #now { animation: popIn 0.65s cubic-bezier(0.2, 1.5, 0.35, 1) 0.12s backwards; }
body.revealing #past { animation: popIn 0.65s cubic-bezier(0.2, 1.5, 0.35, 1) 0.26s backwards; }
body.revealing footer { animation: popIn 0.65s cubic-bezier(0.2, 1.5, 0.35, 1) 0.4s backwards; }
@keyframes popIn {
  0% { transform: scale(0.82); opacity: 0; filter: blur(6px); }
  60% { filter: blur(0); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============ STATES ============ */
.loading, .empty {
  text-align: center;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.1em;
  padding: 30px 0;
}
.loading::after { content: "…"; animation: dots 1.2s infinite steps(4); }
@keyframes dots { 0% { content: ""; } 33% { content: "."; } 66% { content: ".."; } 100% { content: "..."; } }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { padding: 40px 0 80px; }

.login-box {
  max-width: 380px; margin: 18vh auto 0; padding: 40px 36px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center;
}
.login-box img { width: 90px; margin-bottom: 16px; filter: drop-shadow(0 0 16px rgba(255,115,0,.5)); }
.login-box h2 { letter-spacing: .2em; text-transform: uppercase; font-size: 1rem; margin-bottom: 22px; }

input, textarea, select {
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 12px rgba(255, 115, 0, 0.25); }
input[type="range"] { padding: 0; accent-color: var(--orange); }
select option { background: #16141c; }
textarea { resize: vertical; min-height: 70px; }
label { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin: 14px 0 6px; }

.btn {
  display: inline-block;
  font-family: inherit; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(95deg, var(--ember), var(--orange));
  color: #fff; border: none; border-radius: 99px;
  padding: 11px 28px; cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 90, 0, 0.4);
  transition: transform .15s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(255, 120, 0, 0.65); }
.btn.blue { background: linear-gradient(95deg, #0a5fae, var(--blue)); box-shadow: 0 0 18px rgba(0, 150, 255, 0.35); }
.btn.ghost { background: none; border: 1px solid rgba(255,255,255,.2); box-shadow: none; color: var(--text-dim); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange-hot); }
.btn.danger { background: linear-gradient(95deg, #7a0d0d, #c22424); box-shadow: 0 0 14px rgba(220, 40, 40, 0.35); }
.btn.sm { padding: 7px 16px; font-size: 0.66rem; }

.admin-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 36px; }
.admin-top h2 { flex: 1; letter-spacing: .12em; text-transform: uppercase; font-size: 1.2rem; }

.admin-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 24px;
}
.admin-card h3 { font-size: 1.05rem; margin-bottom: 4px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.phase-row {
  display: grid; gap: 8px; align-items: center;
  grid-template-columns: 1.4fr 0.6fr 1.1fr auto;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
}
.phase-row .ph-btntext { grid-column: 1 / 2; }
.phase-row .ph-btnurl { grid-column: 2 / 5; }
@media (max-width: 700px) {
  .phase-row { grid-template-columns: 1fr; }
  .phase-row .ph-btntext, .phase-row .ph-btnurl { grid-column: auto; }
}

.msg { font-size: 0.8rem; margin-top: 12px; min-height: 1.2em; }
.msg.err { color: #ff5d5d; }
.msg.ok { color: #7CFFB2; }

.muted { color: var(--text-dim); font-size: .78rem; font-weight: 300; }
hr.sep { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 22px 0; }

/* admin update cards */
.update-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--orange);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.update-card .uc-row { display: grid; grid-template-columns: 1.6fr 0.5fr auto; gap: 8px; align-items: center; }
@media (max-width: 700px) { .update-card .uc-row { grid-template-columns: 1fr; } }
.update-card textarea { margin-top: 8px; min-height: 56px; }
.uc-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.uc-imgs .thumb { position: relative; }
.uc-imgs img { height: 64px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); }
.uc-imgs .rm {
  position: absolute; top: -7px; right: -7px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #c22424; color: #fff; border: none; cursor: pointer;
  font-size: 11px; line-height: 1;
}
.file-label {
  display: inline-block; margin-top: 10px; cursor: pointer;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-glow); border: 1px dashed rgba(0,208,255,.4);
  border-radius: 8px; padding: 8px 16px;
}
.file-label:hover { box-shadow: 0 0 12px rgba(0,208,255,.25); }
.file-label input { display: none; }

/* admin logo/banner preview slots */
.img-slot { display: flex; align-items: center; gap: 12px; margin-top: 10px; min-height: 30px; }
.img-slot img {
  height: 56px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04);
}
.img-slot img.banner-prev { width: 170px; object-fit: cover; }
.img-slot img.logo-prev { max-width: 120px; object-fit: contain; }

/* project page full backdrop from banner */
.page-banner {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-size: cover;
  background-position: center top;
  opacity: 0.16;
  filter: blur(2px) saturate(1.25);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
