/* Neon Arcadia Portfolio: 2004-style look in plain CSS. System fonts only, no external requests. */

:root {
  --bg: #05010f;
  --bg2: #0b0424;
  --ink: #d9e6ff;
  --dim: #8f9bc4;
  --cyan: #00f0ff;
  --pink: #ff2bd6;
  --lime: #b6ff3c;
  --gold: #ffc94a;
  --line: rgba(0, 240, 255, 0.35);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --body: Verdana, Geneva, Tahoma, sans-serif;
  --script: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, #2a0a5e 0%, transparent 60%),
    radial-gradient(ellipse at 90% 110%, #06304a 0%, transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  background-attachment: fixed;
  color: var(--ink);
  font: 12px/1.7 var(--body);
}

a { color: var(--cyan); }

/* ── Backdrop ─────────────────────────────────────────────────────────────── */

.stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.16) 2px 3px);
}

/* ── Intro ────────────────────────────────────────────────────────────────── */

@keyframes intro-out {
  0% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes intro-letter {
  0% { opacity: 0; transform: translateY(40px) scale(2.4) rotate(-12deg); filter: blur(8px); }
  60% { opacity: 1; transform: translateY(-4px) scale(1.05) rotate(0); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes intro-load {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes intro-fade-in {
  from { opacity: 0; letter-spacing: 1.2em; }
  to { opacity: 1; letter-spacing: 0.45em; }
}

@keyframes ring-pulse {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

@keyframes grid-scroll {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 40px, 0 0; }
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1a0540 0%, #05010f 70%);
  animation: intro-out 0.7s ease-in 4.4s forwards;
}

.intro.done {
  animation: intro-out 0.35s ease-in forwards;
}

.intro-grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 60%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 43, 214, 0.5) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 43, 214, 0.5) 0 1px, transparent 1px 40px);
  transform: perspective(320px) rotateX(62deg);
  transform-origin: 50% 0;
  animation: grid-scroll 0.8s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
  mask-image: linear-gradient(180deg, transparent, #000 60%);
}

.intro-rings i {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 70vmin;
  height: 70vmin;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--cyan), inset 0 0 24px rgba(0, 240, 255, 0.5);
  animation: ring-pulse 2.4s ease-out infinite;
}

.intro-rings i:nth-child(2) { animation-delay: 0.8s; border-color: var(--pink); box-shadow: 0 0 24px var(--pink), inset 0 0 24px rgba(255, 43, 214, 0.5); }
.intro-rings i:nth-child(3) { animation-delay: 1.6s; }

.intro-stage {
  position: relative;
  text-align: center;
  padding: 0 16px;
}

.intro-pre,
.intro-sub,
.intro-pct {
  margin: 0;
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.45em;
}

.intro-pre { animation: intro-fade-in 0.8s ease-out both; }
.intro-sub { color: var(--pink); text-shadow: 0 0 8px var(--pink); animation: intro-fade-in 0.9s ease-out 1.5s both; }

.intro-title {
  margin: 14px 0 10px;
  font: 400 clamp(34px, 9vw, 96px)/1 var(--display);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--cyan), 0 0 42px var(--cyan), 0 0 80px #0077ff;
}

.intro-title span {
  display: inline-block;
  animation: intro-letter 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.intro-title .gap { width: 0.28em; }
.intro-title span:nth-child(1) { animation-delay: 0.30s; }
.intro-title span:nth-child(2) { animation-delay: 0.38s; }
.intro-title span:nth-child(3) { animation-delay: 0.46s; }
.intro-title span:nth-child(4) { animation-delay: 0.54s; }
.intro-title span:nth-child(6) { animation-delay: 0.70s; }
.intro-title span:nth-child(7) { animation-delay: 0.78s; }
.intro-title span:nth-child(8) { animation-delay: 0.86s; }
.intro-title span:nth-child(9) { animation-delay: 0.94s; }
.intro-title span:nth-child(10) { animation-delay: 1.02s; }
.intro-title span:nth-child(11) { animation-delay: 1.10s; }
.intro-title span:nth-child(12) { animation-delay: 1.18s; }

.loader {
  width: min(320px, 70vw);
  height: 10px;
  margin: 26px auto 8px;
  padding: 1px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px var(--cyan), inset 0 0 6px rgba(0, 240, 255, 0.4);
}

.loader-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 8px);
  box-shadow: 0 0 12px var(--cyan);
  animation: intro-load 3.6s steps(40, end) 0.4s both;
}

.intro-skip {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.5);
}

.intro-skip:hover,
.intro-skip:focus-visible {
  color: #fff;
  box-shadow: 0 0 12px var(--cyan);
  outline: none;
}

/* ── Frame ────────────────────────────────────────────────────────────────── */

@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 0 0 4px #fff, 0 0 12px var(--cyan), 0 0 28px var(--cyan), 0 0 56px #0077ff, 0 0 90px #0077ff;
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.72;
  }
}

@keyframes frame-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(0, 240, 255, 0.55), 0 0 44px rgba(0, 119, 255, 0.35), inset 0 0 24px rgba(0, 240, 255, 0.12); }
  50% { box-shadow: 0 0 22px rgba(255, 43, 214, 0.6), 0 0 60px rgba(255, 43, 214, 0.3), inset 0 0 24px rgba(255, 43, 214, 0.12); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes scene-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes orb-spin {
  to { transform: rotateX(68deg) rotateZ(360deg); }
}

@keyframes orb-breathe {
  0%, 100% { box-shadow: 0 0 30px var(--pink), 0 0 80px rgba(255, 43, 214, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 0 44px var(--cyan), 0 0 110px rgba(0, 240, 255, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes bar-fill {
  from { width: 0; }
}

@keyframes sheen {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

.shell {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
  padding: 34px 16px 48px;
}

.frame {
  position: relative;
  padding: 26px 26px 18px;
  border: 1px solid var(--cyan);
  outline: 1px solid rgba(255, 43, 214, 0.5);
  outline-offset: 5px;
  background:
    linear-gradient(180deg, rgba(20, 8, 60, 0.92), rgba(5, 1, 15, 0.94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 6px);
  animation: frame-glow 6s ease-in-out infinite;
}

.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.corner::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--gold);
}

.corner.tl { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.corner.tr { top: -9px; right: -9px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -9px; left: -9px; border-right: 0; border-top: 0; }
.corner.br { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }
.corner.tl::after { top: 6px; left: 6px; }
.corner.tr::after { top: 6px; right: 6px; }
.corner.bl::after { bottom: 6px; left: 6px; }
.corner.br::after { bottom: 6px; right: 6px; }

.mast { text-align: center; }

.mast-tag {
  margin: 0;
  color: var(--gold);
  font: italic 13px var(--script);
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(255, 201, 74, 0.7);
}

.logo {
  margin: 6px 0 4px;
  font: 400 clamp(30px, 7.4vw, 70px)/1.05 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  animation: neon-flicker 7s linear infinite;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 16px;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold);
}

.ornament b {
  width: min(190px, 28vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 8px var(--gold);
}

.ornament i { font-style: normal; font-size: 15px; }

/* ── Navigation ───────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav a {
  position: relative;
  min-width: 118px;
  padding: 9px 18px 8px;
  border: 1px solid var(--cyan);
  border-radius: 14px 2px 14px 2px;
  color: var(--cyan);
  font: 400 15px/1 var(--display);
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.28) 0%, rgba(0, 240, 255, 0.05) 48%, rgba(0, 0, 0, 0.4) 52%, rgba(0, 240, 255, 0.12) 100%);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 0 8px var(--cyan);
  transition: color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 0 16px var(--cyan), 0 0 36px rgba(0, 240, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav a.on {
  color: #fff;
  border-color: var(--pink);
  background: linear-gradient(180deg, rgba(255, 43, 214, 0.45) 0%, rgba(255, 43, 214, 0.1) 48%, rgba(0, 0, 0, 0.4) 52%, rgba(255, 43, 214, 0.2) 100%);
  box-shadow: 0 0 14px var(--pink), 0 0 34px rgba(255, 43, 214, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 8px var(--pink);
}

.ticker {
  margin: 16px 0 6px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.ticker p {
  display: inline-block;
  margin: 0;
  padding: 4px 0 4px 100%;
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 6px var(--lime);
  animation: ticker 26s linear infinite;
}

/* ── Scenes ───────────────────────────────────────────────────────────────── */

.scene {
  padding: 18px 0 8px;
  scroll-margin-top: 12px;
}

/* With the script running, the page behaves like a movie: one scene on stage at a time. */
.js .scene { display: none; }
.js .scene.on { display: block; animation: scene-in 0.45s ease-out both; }

.scene h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font: 400 30px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 16px var(--pink), 0 0 36px var(--pink);
}

.scene h2::before {
  content: "\00BB";
  color: var(--pink);
}

.scene h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), transparent);
  box-shadow: 0 0 8px var(--pink);
}

.cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.panel {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 2px 16px 2px 16px;
  background: linear-gradient(160deg, rgba(0, 240, 255, 0.09), rgba(255, 43, 214, 0.05) 60%, rgba(0, 0, 0, 0.35));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.18), inset 0 0 18px rgba(0, 0, 0, 0.5);
}

.panel h3 {
  margin: 0 0 8px;
  color: var(--cyan);
  font: 700 11px var(--body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--cyan);
}

.panel p { margin: 0 0 10px; }

.ph {
  color: var(--gold);
  font: italic 12px/1.6 var(--script);
}

.btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--pink);
  border-radius: 12px 2px 12px 2px;
  color: #fff;
  font: 400 14px/1 var(--display);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255, 43, 214, 0.5), rgba(255, 43, 214, 0.1) 50%, rgba(0, 0, 0, 0.4) 52%, rgba(255, 43, 214, 0.25));
  box-shadow: 0 0 12px var(--pink), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 8px var(--pink);
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--pink), 0 0 44px rgba(255, 43, 214, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cta { margin-top: 14px; }

.orb-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  overflow: hidden;
}

.orb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, #ffb3f3 16%, var(--pink) 46%, #3b0a6e 100%);
  animation: orb-breathe 4s ease-in-out infinite;
}

.orb i {
  position: absolute;
  inset: -34px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  transform: rotateX(68deg);
  animation: orb-spin 5s linear infinite;
}

.orb i:nth-child(2) { inset: -52px; border-color: var(--lime); box-shadow: 0 0 10px var(--lime); animation-duration: 8s; animation-direction: reverse; }
.orb i:nth-child(3) { inset: -18px; border-color: var(--gold); box-shadow: 0 0 10px var(--gold); animation-duration: 3.4s; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.stats li {
  padding: 10px 6px;
  border: 1px solid rgba(182, 255, 60, 0.4);
  background: rgba(0, 0, 0, 0.4);
}

.stats b {
  display: block;
  font: 400 30px/1.1 var(--display);
  color: var(--lime);
  text-shadow: 0 0 10px var(--lime), 0 0 26px rgba(182, 255, 60, 0.6);
}

.stats span {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ── Work ─────────────────────────────────────────────────────────────────── */

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.work {
  padding: 8px 8px 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.work:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: 0 0 16px var(--pink), 0 0 40px rgba(255, 43, 214, 0.4);
}

.thumb {
  position: relative;
  height: 110px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: sheen 4.5s linear infinite;
}

.w1 .thumb { background: radial-gradient(circle at 30% 40%, var(--cyan), transparent 45%), linear-gradient(135deg, #12024a, #5a0b8c); }
.w2 .thumb { background: repeating-linear-gradient(45deg, var(--pink) 0 6px, #2a0440 6px 16px); }
.w3 .thumb { background: conic-gradient(from 0deg at 50% 50%, var(--gold), var(--pink), var(--cyan), var(--lime), var(--gold)); }
.w4 .thumb { background: radial-gradient(circle at 70% 60%, var(--lime), transparent 40%), linear-gradient(200deg, #02303a, #05010f); }
.w5 .thumb { background: repeating-radial-gradient(circle at 50% 50%, #0077ff 0 6px, #05010f 6px 14px); }
.w6 .thumb { background: linear-gradient(90deg, #05010f 0 20%, var(--cyan) 20% 24%, #05010f 24% 48%, var(--pink) 48% 54%, #05010f 54% 78%, var(--gold) 78% 81%, #05010f 81%); }

.work h3 {
  margin: 9px 0 0;
  color: #fff;
  font: 400 16px/1.1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--cyan);
}

.work p {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 10px;
}

/* ── About ────────────────────────────────────────────────────────────────── */

.bars {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bars li { margin-bottom: 10px; }

.bars span {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bar {
  height: 9px;
  padding: 1px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 10px var(--cyan);
  animation: bar-fill 1.2s ease-out both;
}

.b1 i { width: 92%; }
.b2 i { width: 78%; }
.b3 i { width: 64%; }
.b4 i { width: 85%; }

/* ── Contact + footer ─────────────────────────────────────────────────────── */

.contact { text-align: center; padding: 26px 18px; }

.foot {
  margin-top: 22px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: center;
}

.foot p { margin: 0; }
.foot-small { color: var(--gold); font: italic 11px var(--script); }

/* ── Narrow screens ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .shell { padding: 22px 16px 32px; }
  .frame { padding: 20px 14px 14px; }
  .cols { grid-template-columns: 1fr; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .nav a { min-width: 0; flex: 1 1 40%; }
  .orb-panel { min-height: 170px; }
  .stats b { font-size: 22px; }
  .stats span { letter-spacing: 0.1em; }
}

/* ── Reduced motion: no intro, no loops ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
