/* ========================================================
   LORENZO MORRA — Portfolio 3D / CGI
   Design system inspired by ILM & DNEG
======================================================== */

/* --- RESET & VARIABLES --- */
:root {
  --bg: #080808;
  --surface: #111;
  --panel: rgba(255,255,255,.04);
  --stroke: rgba(255,255,255,.08);
  --fg: #f0f0f0;
  --muted: rgba(255,255,255,.60);
  --muted2: rgba(255,255,255,.40);
  --accent: #c8a86e;
  --accent-dim: rgba(200,168,110,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.6);
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1240px;
  --navH: 64px;
  --ease: cubic-bezier(.22,.68,0,1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- GRAIN OVERLAY --- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================
   HEADER
======================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(8,8,8,.72);
  border-bottom: 1px solid var(--stroke);
  transition: background .3s var(--ease);
}

.header__inner {
  height: var(--navH);
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .5px;
}
.logo__mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 6px; font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}
.logo__text { color: rgba(255,255,255,.85); font-size: 15px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  color: var(--muted); font-weight: 600; font-size: 12px;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 8px 12px; border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.nav__link.is-active { color: var(--fg); }

/* Hamburger */
.icon-btn {
  display: none; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,.04);
}
.icon-btn__bars {
  display: block; width: 18px; height: 2px;
  background: rgba(255,255,255,.85); margin: 0 auto; position: relative;
}
.icon-btn__bars::before, .icon-btn__bars::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,.85);
}
.icon-btn__bars::before { top: -6px; }
.icon-btn__bars::after { top: 6px; }

/* Mobile nav */
.mobile {
  display: none; border-top: 1px solid var(--stroke);
  background: rgba(8,8,8,.92); backdrop-filter: blur(16px);
}
.mobile__inner { padding: 12px 0 16px; display: grid; gap: 4px; }
.mobile__link {
  padding: 12px 14px; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid var(--stroke);
  color: rgba(255,255,255,.80); font-weight: 600; font-size: 14px;
}

/* ========================================================
   HERO — Video background (homepage)
======================================================== */
.hero {
  position: relative; z-index: 0;
  height: 100vh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden; background: #000;
}
.hero__video-wrap video,
.hero__video-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero__overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.70) 85%, #080808 100%),
    linear-gradient(90deg, rgba(0,0,0,.50) 0%, transparent 50%);
}

.hero__inner {
  position: relative; z-index: 1;
  padding: 0 0 80px; width: 100%;
}

.hero__content {
  max-width: 680px;
}

.hero__kicker {
  display: inline-block; margin-bottom: 16px;
  color: var(--accent); font-weight: 600;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
}
.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -1.5px; color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero__sub {
  margin-top: 16px; font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.70); font-weight: 400;
  max-width: 520px; line-height: 1.5;
}
.hero__cta {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px;
}
.hero__pills {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px;
}

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  width: 24px; height: 38px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.20);
  display: grid; place-items: center;
}
.hero__scroll-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.7);
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(-8px); opacity: .15; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: .15; }
}

/* ========================================================
   BUTTONS
======================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center;
  gap: 8px; padding: 12px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 13px; letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.15);
  transition: all .25s var(--ease);
  overflow: hidden; user-select: none;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: #fff; color: #080808; border-color: #fff;
}
.btn--primary:hover {
  background: rgba(255,255,255,.90); border-color: rgba(255,255,255,.90);
}

.btn--outline {
  background: transparent; color: var(--fg);
}
.btn--outline:hover {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25);
}

.btn--ghost {
  background: rgba(255,255,255,.08); color: var(--fg);
  border-color: rgba(255,255,255,.12);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.20);
}

.btn__shine {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%);
  transform: translateX(-120%); opacity: .6;
}
.btn--primary:hover .btn__shine {
  transform: translateX(120%); transition: transform .7s var(--ease);
}

/* Pill tags */
.pill {
  padding: 6px 12px; border-radius: 4px; font-size: 11px;
  font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
}

/* ========================================================
   SECTIONS — Generic
======================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

.section--dark {
  background: var(--surface);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.section__label {
  display: inline-block; margin-bottom: 12px;
  color: var(--accent); font-weight: 600;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
}

.section__title {
  margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -.5px; line-height: 1.1;
}

.section__sub {
  margin: 0; color: var(--muted); font-size: 16px; max-width: 600px;
}

.section__head {
  margin-bottom: 40px;
}

/* Divider line */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
  margin: 0;
}

/* ========================================================
   FEATURED WORKS GRID (homepage)
======================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.work-card {
  position: relative; display: block;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0c0c0c;
  aspect-ratio: 16 / 10;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.16);
}

.work-card__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.work-card:hover .work-card__img { transform: scale(1.04); }

.work-card__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.65) 100%);
}

.work-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; z-index: 1;
}

.work-card__cat {
  display: inline-block; margin-bottom: 6px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); opacity: .85;
}

.work-card__title {
  margin: 0; font-size: 20px; font-weight: 700;
  letter-spacing: -.2px; color: #fff;
}

.work-card__desc {
  margin: 4px 0 0; font-size: 13px;
  color: rgba(255,255,255,.55); font-weight: 400;
}

.work-card__arrow {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.4); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.6); font-size: 14px;
  opacity: 0; transform: translate(-4px, 4px);
  transition: all .3s var(--ease);
}
.work-card:hover .work-card__arrow {
  opacity: 1; transform: translate(0,0);
}

/* ========================================================
   BIO / ABOUT STRIP (homepage)
======================================================== */
.bio-strip {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.bio-strip__text { max-width: 520px; }
.bio-strip__text p {
  color: var(--muted); font-size: 16px; line-height: 1.7;
  margin-bottom: 16px;
}
.bio-strip__text p:last-child { margin-bottom: 0; }

.bio-strip__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-card {
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--stroke);
}
.stat-card__label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted2); margin-bottom: 6px;
}
.stat-card__value {
  font-size: 18px; font-weight: 800; color: var(--fg);
}

/* ========================================================
   CTA SECTION
======================================================== */
.cta {
  padding: 80px 0;
}
.cta__inner {
  text-align: center; max-width: 600px; margin: 0 auto;
}
.cta__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px;
}
.cta__text {
  color: var(--muted); margin-bottom: 24px;
}

/* ========================================================
   FOOTER
======================================================== */
.footer {
  border-top: 1px solid var(--stroke);
  background: rgba(8,8,8,.9);
}
.footer__inner {
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted2); font-size: 13px;
}
.footer__links { display: flex; gap: 20px; }
.footer__links a {
  color: var(--muted); font-size: 12px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  transition: color .2s;
}
.footer__links a:hover { color: var(--fg); }

/* ========================================================
   PORTFOLIO PAGE — Grid
======================================================== */
.page-hero {
  padding: 140px 0 60px;
  position: relative;
}
.page-hero__kicker {
  display: inline-block; margin-bottom: 12px;
  color: var(--accent); font-weight: 600;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
}
.page-hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.05;
}
.page-hero__sub {
  margin-top: 12px; color: var(--muted);
  font-size: 16px; max-width: 600px;
}

/* Filter chips */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.chip {
  padding: 7px 14px; border-radius: 4px; font-size: 12px;
  font-weight: 600; letter-spacing: .5px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  color: var(--muted); cursor: pointer;
  transition: all .2s;
}
.chip:hover, .chip.is-active {
  color: var(--fg); border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  position: relative; display: block;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--stroke); background: #0c0c0c;
  aspect-ratio: 16 / 10;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.15);
}

.project-card__media {
  position: absolute; inset: 0; background: #0a0a0a;
}
.project-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.project-card:hover .project-card__media img {
  transform: scale(1.03);
}

.project-card__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 30%, rgba(0,0,0,.70) 100%);
}

.project-card__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; z-index: 2;
}
.project-card__year {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); opacity: .8; margin-bottom: 4px;
}
.project-card__title {
  margin: 0; font-size: 20px; font-weight: 700;
  color: #fff; letter-spacing: -.2px;
}
.project-card__meta {
  margin-top: 4px; color: rgba(255,255,255,.55);
  font-size: 13px;
}
.project-card__tags {
  margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px;
}
.project-card__tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  color: rgba(255,255,255,.50);
  padding: 4px 8px; border-radius: 3px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.project-card__arrow {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 32px; height: 32px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.4); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.6); font-size: 14px;
  opacity: 0; transform: translate(-4px, 4px);
  transition: all .3s var(--ease);
}
.project-card:hover .project-card__arrow {
  opacity: 1; transform: translate(0,0);
}

/* ========================================================
   PROJECT DETAIL PAGE
======================================================== */
.proj-hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.proj-hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.proj-hero__bg img, .proj-hero__bg video {
  width: 100%; height: 100%; object-fit: cover;
}
.proj-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.75) 80%, #080808 100%),
    linear-gradient(90deg, rgba(0,0,0,.40), transparent 60%);
}
.proj-hero__inner {
  position: relative; z-index: 1; padding: 0 0 60px; width: 100%;
}
.proj-hero__kicker {
  display: inline-block; margin-bottom: 10px;
  color: var(--accent); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
}
.proj-hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.05;
}
.proj-hero__desc {
  margin-top: 12px; color: var(--muted); font-size: 16px;
  max-width: 560px; line-height: 1.6;
}

/* Project info bar */
.proj-info {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--stroke);
  margin-bottom: 48px;
}
.proj-info__item { display: block; }
.proj-info__label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted2); margin-bottom: 4px;
}
.proj-info__value { font-weight: 600; font-size: 14px; }

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 48px;
}
.gallery--2col { grid-template-columns: repeat(2, 1fr); }

.gallery__item {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0a0a0a;
  cursor: pointer;
  transition: border-color .2s;
}
.gallery__item:hover { border-color: rgba(255,255,255,.15); }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.gallery__item--full { grid-column: 1 / -1; }

/* Video player */
.video-block {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stroke);
  background: #000;
  margin-bottom: 16px;
}
.video-block video {
  width: 100%; display: block;
}
.video-block__label {
  padding: 10px 14px; font-size: 12px;
  color: var(--muted); font-weight: 600;
  letter-spacing: .5px;
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--stroke);
}

/* Project navigation */
.proj-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 0; border-top: 1px solid var(--stroke);
  margin-top: 48px;
}
.proj-nav__link {
  font-size: 13px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.proj-nav__link:hover { color: var(--fg); }

/* ========================================================
   ABOUT PAGE
======================================================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 48px; align-items: start;
}
.about-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--stroke);
  aspect-ratio: 3 / 4;
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-text h2 {
  font-size: 24px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: -.3px;
}
.about-text p {
  color: var(--muted); font-size: 16px; line-height: 1.7;
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }

.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 32px;
}
.skill-card {
  padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--stroke);
}
.skill-card__title {
  font-size: 13px; font-weight: 700;
  margin-bottom: 6px; color: var(--fg);
}
.skill-card__list {
  font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* ========================================================
   RESUME PAGE
======================================================== */
.timeline { max-width: 720px; }
.timeline__item {
  padding: 20px 0; border-bottom: 1px solid var(--stroke);
}
.timeline__date {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.timeline__title {
  font-size: 18px; font-weight: 700; margin-bottom: 4px;
}
.timeline__company {
  font-size: 14px; color: var(--muted); margin-bottom: 8px;
}
.timeline__desc {
  font-size: 14px; color: var(--muted); line-height: 1.6;
}

/* ========================================================
   REEL BREAKDOWN
======================================================== */
.reel-breakdown {
  display: grid; gap: 0;
}
.reel-item {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 24px; align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--stroke);
}
.reel-item:first-child { border-top: 1px solid var(--stroke); }
.reel-item__thumb {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stroke); aspect-ratio: 16/10;
  display: block; transition: border-color .2s;
}
.reel-item__thumb:hover { border-color: rgba(255,255,255,.20); }
.reel-item__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.reel-item__body { min-width: 0; }
.reel-item__title {
  font-size: 18px; font-weight: 700; margin-bottom: 4px;
}
.reel-item__title a { transition: color .2s; }
.reel-item__title a:hover { color: var(--accent); }
.reel-item__cat {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.reel-item__desc {
  color: var(--muted); font-size: 14px; line-height: 1.65;
  margin-bottom: 12px; max-width: 640px;
}
.reel-item__meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--muted2);
}
.reel-item__meta strong { color: var(--fg); font-weight: 600; }

/* ========================================================
   ADMIN PAGE
======================================================== */
.admin-login {
  min-height: 100vh; display: grid; place-items: center;
}
.admin-login__box {
  width: min(400px, 90vw); padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--stroke);
}

/* ========================================================
   LIGHTBOX
======================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--radius); object-fit: contain;
}
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 20px;
  display: grid; place-items: center;
  cursor: pointer; transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.12); }

/* ========================================================
   REVEAL ANIMATIONS
======================================================== */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal--up { transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.reveal-stagger > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .10s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .20s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .30s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .40s; opacity: 1; transform: translateY(0); }

/* ========================================================
   RESPONSIVE
======================================================== */
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .bio-strip { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .icon-btn { display: inline-grid; place-items: center; }
  .hero { min-height: 500px; }
  .hero__inner { padding-bottom: 60px; }
  .page-hero { padding: 120px 0 40px; }
  .section { padding: 60px 0; }
  .proj-info { gap: 20px; }
  .gallery--2col { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .proj-nav { flex-direction: column; gap: 12px; }
  .reel-item { grid-template-columns: 1fr; gap: 12px; }
  .reel-item__thumb { max-width: 240px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .hero__cta { flex-direction: column; }
}