/* =========================================================
   Kalisa Diah Anggraeni — 3D Environment Portfolio
   Theme: Roblox / game-style, professional, dark + neon
   ========================================================= */

:root {
  --bg:        #131319;
  --bg-soft:   #1a1a24;
  --bg-card:   #1e1e2b;
  --accent:    #00d4ff;
  --accent-2:  #1a9fc4;  /* deep teal — same family as the cyan accent */
  --text:      #fefefe;
  --muted:     #a1a1c5;
  --line:      rgba(255, 255, 255, 0.07);
  --glow:      0 0 24px rgba(0, 212, 255, 0.35);
  --radius:    14px;
  --maxw:      1180px;
  --font:      'Rajdhani', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; height: 100vh; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Anchor offset so fixed nav doesn't cover section tops */
section[id], header[id] { scroll-margin-top: 84px; }

/* Keyboard focus visibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Scroll progress bar */
#scrollProgress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0;
  background: var(--accent);
}

/* ---------- Animated grid + glow background ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.08), transparent 50%),
    var(--bg);
}
.bg-grid {
  position: fixed;
  inset: -2px;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 85%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 46px 46px, 46px 46px; }
}

/* Floating particle canvas */
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* =========================================================
   LOADING SCREEN
   ========================================================= */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0c0c12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridDrift 18s linear infinite;
  mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 75%);
}

.loader-logo {
  position: relative;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}
.loader-logo span { color: var(--accent); }
.loader-tag {
  position: relative;
  color: var(--muted);
  letter-spacing: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-align: center;
}

.loader-cube {
  position: relative;
  width: 56px; height: 56px;
  transform-style: preserve-3d;
  animation: cubeSpin 2.4s ease-in-out infinite;
}
.loader-cube i {
  position: absolute;
  width: 56px; height: 56px;
  border: 2px solid var(--accent);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: var(--glow);
}
.loader-cube i:nth-child(1) { transform: rotateY(0deg)   translateZ(28px); }
.loader-cube i:nth-child(2) { transform: rotateY(90deg)  translateZ(28px); }
.loader-cube i:nth-child(3) { transform: rotateY(180deg) translateZ(28px); }
.loader-cube i:nth-child(4) { transform: rotateY(270deg) translateZ(28px); }
.loader-cube i:nth-child(5) { transform: rotateX(90deg)  translateZ(28px); }
.loader-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(28px); }
@keyframes cubeSpin {
  0%   { transform: rotateX(-20deg) rotateY(0deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg); }
}

.loader-bar-wrap {
  position: relative;
  width: min(380px, 70vw);
  text-align: left;
}
.loader-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 8px;
}
.loader-bar-label .pct { color: var(--accent); }
.loader-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}
.loader-status {
  position: relative;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 1px;
  min-height: 1em;
}
.loader-status::before { content: '▸ '; color: var(--accent); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 60px);
  background: rgba(19, 19, 25, 0);
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15, 15, 21, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo {
  display: flex; align-items: center; gap: 11px;
}
/* Monogram mark — a HUD-style badge with a corner notch */
.logo-mark {
  position: relative;
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; grid-template-columns: 1fr 1fr; place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 9px;
  font-weight: 700; font-size: 0.78rem; line-height: 1;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.logo-mark .lm-k { color: var(--text); transform: translateX(2px); }
.logo-mark .lm-d {
  color: #07121a; background: var(--accent);
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.logo-mark::after {
  content: ''; position: absolute; top: 4px; left: 4px;
  width: 5px; height: 5px; border-top: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent);
  opacity: 0;
}
.nav-logo:hover .logo-mark { box-shadow: var(--glow); }
.logo-text { display: flex; flex-direction: column; line-height: 1.08; }
.logo-text b {
  font-size: 1rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--text); text-transform: uppercase;
}
.logo-text small {
  font-size: 0.58rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.85rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  position: relative; transition: color 0.2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
}
.hero-corner {
  position: absolute;
  width: 38px; height: 38px;
  border: 2px solid var(--accent);
  opacity: 0.55;
}
.hero-corner.tl { top: 90px; left: clamp(16px,5vw,70px); border-right: 0; border-bottom: 0; }
.hero-corner.tr { top: 90px; right: clamp(16px,5vw,70px); border-left: 0; border-bottom: 0; }
.hero-corner.bl { bottom: 50px; left: clamp(16px,5vw,70px); border-right: 0; border-top: 0; }
.hero-corner.br { bottom: 50px; right: clamp(16px,5vw,70px); border-left: 0; border-top: 0; }

.avatar-wrap {
  position: relative;
  width: 180px; height: 180px;
  margin-bottom: 26px;
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: var(--glow);
}
.avatar-ring {
  position: absolute; inset: -12px;
  border: 1.5px dashed rgba(0,212,255,0.45);
  border-radius: 50%;
  animation: spin 16s linear infinite;
}
.avatar-ring.inner {
  inset: -4px;
  border: 1.5px solid transparent;
  border-top-color: var(--accent-2);
  border-right-color: rgba(0,212,255,0.55);
  animation: spin 7s linear infinite reverse;
  opacity: 0.8;
}
/* glowing dot that rides along the outer rotating ring */
.orbit-dot {
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 14px 2px var(--accent);
}
.orbit-dot::after {
  content: ''; position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.5);
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: none;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.hero h1::after {
  content: '';
  position: absolute; left: 8%; right: 8%; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent));
  box-shadow: var(--glow);
}
.hero .handle {
  color: var(--muted);
  font-size: 1.15rem;
  letter-spacing: 1px;
  margin-top: 14px;
}
.hero .role {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  margin-top: 16px;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 26px;
}
.tag {
  font-size: 0.82rem; letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.tag::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.7;
}

.open-badge {
  margin-top: 34px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 30px;
  border: 1.5px solid var(--accent);
  border-radius: 40px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(0,212,255,0.05);
  box-shadow: var(--glow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.open-badge:hover { transform: translateY(-2px); background: rgba(0,212,255,0.12); }
.open-badge .pulse {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--glow);
  animation: blink 1.4s ease-in-out infinite;
}

.scroll-hint {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted); font-size: 0.72rem;
  letter-spacing: 3px; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .mouse {
  width: 22px; height: 36px; border: 2px solid var(--muted);
  border-radius: 12px; position: relative;
}
.scroll-hint .mouse::after {
  content: ''; position: absolute; top: 6px; left: 50%;
  width: 3px; height: 7px; background: var(--accent);
  transform: translateX(-50%); border-radius: 2px;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* =========================================================
   SECTION SHELL
   ========================================================= */
section { position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.section-head .bar { width: 5px; height: 26px; background: var(--accent); box-shadow: var(--glow); }
.section-head h2 {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  letter-spacing: 3px; text-transform: uppercase; font-weight: 700;
}
.section-line {
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 50px; opacity: 0.6;
}
.projects { padding: 90px 0; }

/* =========================================================
   PROFILE / CONTACT CARD
   ========================================================= */
.about { padding: 90px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
button.contact-card {
  font-family: inherit; color: inherit; text-align: left;
  cursor: pointer; width: 100%;
}
.contact-card.purple { border-left-color: var(--accent-2); }
.contact-card.copied { border-left-color: #2dd4bf; }
.contact-card.copied .val { color: #2dd4bf; }
.contact-card:hover {
  transform: translateX(6px);
  box-shadow: var(--glow);
}
.contact-card .ci {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--accent);
}
.contact-card.purple .ci { color: var(--accent-2); }
.contact-card .ci svg { width: 20px; height: 20px; }
.contact-card .label { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.contact-card .val { font-size: 0.98rem; color: var(--text); word-break: break-all; }

/* =========================================================
   PROJECT CARD
   ========================================================= */
.project {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}
.project::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  opacity: 0.7;
}
.project-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 700; letter-spacing: 1px;
  margin-bottom: 6px;
}
.project-sub { text-align: center; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 22px; }

.project-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.shot-main { position: relative; }
.shot {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #0d0d14;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.shot-main img { aspect-ratio: 16 / 9; }
.shot:hover img { transform: scale(1.05); }
.shot::after {
  content: '⤢'; position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(13,13,20,0.7); color: var(--accent);
  display: grid; place-items: center; font-size: 1rem;
  opacity: 0; transition: opacity 0.2s ease;
}
.shot:hover::after { opacity: 1; }
.shot-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shot-thumbs .shot img { aspect-ratio: 16 / 9; }

.project-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.project-tags .tag { font-size: 0.74rem; padding: 6px 12px; }

.project-foot {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.about-block .about-label {
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.about-block .about-label::before { content:''; width: 4px; height: 14px; background: var(--accent); }
.about-block p { color: var(--muted); font-size: 0.98rem; max-width: 80ch; }

.play-btn {
  position: relative;
  margin-top: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 9px;
  border: 1.5px solid var(--accent);
  font-family: inherit;
  background: transparent;
  color: var(--accent);
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  font-size: 0.8rem; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.play-btn .pb-ico {
  width: 18px; height: 18px; flex: 0 0 auto;
  display: block;
}
.play-btn:hover {
  background: var(--accent);
  color: #07121a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.25);
}

/* =========================================================
   UGC GALLERY
   ========================================================= */
.ugc { padding: 40px 0 100px; }
.ugc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.ugc-item {
  position: relative;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 35%, rgba(0,212,255,0.08), transparent 70%), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid; place-items: center;
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.ugc-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(0,212,255,0.12) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.ugc-item:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--glow); }
.ugc-item:hover::before { transform: translateX(120%); }
.ugc-item img {
  max-height: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
  animation: float 5s ease-in-out infinite;
}
.ugc-item:hover img { transform: scale(1.08); }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 20px 40px;
  text-align: center;
}
.footer h3 { font-size: 1.6rem; letter-spacing: 1px; margin-bottom: 8px; }
.footer h3 span { color: var(--accent); }
.footer p { color: var(--muted); margin-bottom: 22px; }
.footer-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.footer-links a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  transition: all 0.2s ease;
}
.footer-links a:hover { color: var(--accent); border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-3px); }
.footer-links a svg { width: 22px; height: 22px; }
.footer .copyright { color: var(--muted); font-size: 0.78rem; letter-spacing: 1px; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
#lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(8,8,12,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(6px);
}
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 12px; border: 1px solid var(--accent);
  box-shadow: var(--glow);
}
#lightbox .lb-close {
  position: absolute; top: 24px; right: 30px;
  font-size: 2rem; color: var(--text); cursor: pointer;
  width: 48px; height: 48px; border-radius: 8px;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: all 0.2s ease;
}
#lightbox .lb-close:hover { color: var(--accent); border-color: var(--accent); }
#lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.4rem; color: var(--text); cursor: pointer;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: all 0.2s ease; user-select: none;
}
#lightbox .lb-nav:hover { color: var(--accent); border-color: var(--accent); }
#lightbox .lb-prev { left: 24px; }
#lightbox .lb-next { right: 24px; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: rgba(15,15,21,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 16px 30px; width: 100%; }
  .nav-toggle { display: block; }
  .shot-thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .project { padding: 18px; }
  #lightbox .lb-nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .play-btn { width: 100%; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .bg-grid, .loader-grid, .avatar-ring, .orbit-dot::after,
  .play-btn::before, .ugc-item img, .scroll-hint .mouse::after { animation: none !important; }
}
