/* =========================================================================
   LUMEN FXTORY — STYLE
   ========================================================================= */

:root {
  /* brand */
  --cyan: #00f6ff;
  --cyan-press: #00d4dc;
  --magenta: #ff00ff;
  --magenta-soft: #ff3cff;
  --violet: #8b5cff;
  --navy: #00005a;

  /* surfaces */
  --bg: #03030f;
  --bg-2: #05051a;
  --surface: #0a0a24;
  --line: rgba(150, 160, 255, 0.14);
  --line-strong: rgba(190, 200, 255, 0.32);

  /* text */
  --text: #f3f3ff;
  --text-2: #b9bad8;
  --text-3: #8e90b8;
  --on-cyan: #02021a;

  /* type */
  --font-display: "Quicksand", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --gutter: clamp(16px, 4vw, 60px);
  --max: 1440px;
  --header-h: 72px;
  --radius-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  /* z */
  --z-header: 40;
  --z-menu: 50;
  --z-modal: 100;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; text-wrap: balance; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--cyan); color: var(--on-cyan); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.h2-lg { font-size: clamp(2.25rem, 4.2vw, 3.75rem); }
.display { font-size: clamp(2.25rem, 5.4vw, 5rem); max-width: 19ch; margin-top: 18px; }
.display-xl { font-size: clamp(2.5rem, 6.4vw, 6.25rem); max-width: 18ch; }
.section-lead { color: var(--text-2); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease,
    color var(--dur-fast) ease, box-shadow var(--dur) var(--ease-out), transform var(--dur-fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.0625rem; }
.btn-primary { background: var(--cyan); color: var(--on-cyan); }
.btn-primary:hover { background: #6ffbff; box-shadow: 0 0 32px rgba(0, 246, 255, 0.45); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(3, 3, 15, 0.35); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn .icon { width: 16px; height: 16px; }

/* =========================================================================
   LED surfaces — glow blobs + dot-matrix overlay
   ========================================================================= */
.led {
  --g1: #00e5ff; --g2: #b000d6;
  position: relative; overflow: hidden; isolation: isolate;
  background-color: #04041a;
}
.led::before {
  content: ""; position: absolute; inset: -8%; z-index: -2;
  background:
    radial-gradient(ellipse 52% 62% at 26% 34%, var(--g1) 0%, color-mix(in srgb, var(--g1) 45%, transparent) 30%, transparent 74%),
    radial-gradient(ellipse 50% 60% at 74% 66%, var(--g2) 0%, color-mix(in srgb, var(--g2) 45%, transparent) 30%, transparent 74%);
  transition: transform 1.2s var(--ease-out), opacity var(--dur) ease;
}
.led::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, transparent 0 1.4px, rgba(3, 3, 18, 0.74) 2.1px);
  background-size: 6px 6px;
}
.led.has-media::before, .led.has-media::after { display: none; }

.led-bg { position: relative; isolation: isolate; overflow: hidden; }
.led-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 75% at 12% 20%, rgba(80, 36, 220, 0.75), transparent 72%),
    radial-gradient(ellipse 48% 62% at 92% 92%, rgba(0, 180, 180, 0.6), transparent 72%),
    var(--bg);
}
.led-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, transparent 0 1.1px, rgba(3, 3, 15, 0.82) 1.7px);
  background-size: 6px 6px;
}
.led-bg--contact::before {
  background:
    radial-gradient(ellipse 45% 70% at 18% 25%, rgba(150, 0, 170, 0.6), transparent 72%),
    radial-gradient(ellipse 40% 55% at 78% 55%, rgba(0, 150, 150, 0.42), transparent 72%),
    var(--bg);
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: flex-end; gap: 24px;
  padding-inline: var(--gutter);
  transition: background-color var(--dur) ease, backdrop-filter var(--dur) ease, border-color var(--dur) ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(3, 3, 15, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-logo {
  margin-right: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.header-logo img { height: 34px; width: auto; }
.site-header.is-scrolled .header-logo { opacity: 1; transform: none; pointer-events: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  position: relative; padding: 10px 14px; font-weight: 500; font-size: 0.975rem;
  color: var(--text); border-radius: 8px;
  transition: color var(--dur-fast) ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--cyan); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--cyan); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 12px; position: relative; z-index: calc(var(--z-menu) + 1); }
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform var(--dur) var(--ease-out);
}
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 27px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  --art-w: min(57vw, 1180px);
  position: relative;
  height: max(100svh, 760px);
  max-height: 1100px;
  background: linear-gradient(180deg, #02020c 0%, #010130 34%, var(--navy) 50%, #010130 66%, #02020c 100%);
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0 auto 0 0; width: var(--art-w); }
.ribbons { width: 100%; height: 100%; }
.hero-line {
  position: absolute; left: var(--art-w); right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, #ff3cff 0%, var(--cyan) 6%, rgba(0, 246, 255, 0.75) 100%);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.55);
  overflow: hidden;
}
.hero-pulse {
  position: absolute; top: -1px; left: 0; width: 160px; height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  filter: blur(0.5px);
  animation: pulse 4.5s var(--ease-in) infinite;
}
@keyframes pulse {
  0% { transform: translateX(-160px); opacity: 0; }
  10% { opacity: 1; }
  70%, 100% { transform: translateX(100vw); opacity: 0.2; }
}

.hero-content {
  position: absolute; left: calc(var(--art-w) + 1.5vw); right: var(--gutter); top: 0; bottom: 0;
}
.hero-wordmark {
  position: absolute; left: 0; bottom: calc(50% + 4px);
  font-size: clamp(2.75rem, 5.6vw, 6.75rem);
  font-weight: 700; letter-spacing: -0.005em; line-height: 1; white-space: nowrap;
  padding-bottom: 0.08em;
}
.hero-wordmark .c { color: var(--cyan); text-shadow: 0 0 28px rgba(0, 246, 255, 0.35); }
.hero-wordmark .m { color: var(--magenta); text-shadow: 0 0 28px rgba(255, 0, 255, 0.4); }
.hero-copy { position: absolute; left: 0.3vw; right: 0; top: calc(50% + 22px); max-width: 640px; }
.hero-headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 2.9vw, 3.25rem); line-height: 1.14;
  margin: 14px 0 16px; text-wrap: balance;
}
.hero-intro { color: var(--text-2); font-size: 1.0625rem; max-width: 52ch; margin-bottom: 28px; }

/* ---------- hero with featured project wallpaper ---------- */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero--featured { --photo-h: 100%; background: var(--bg); }
.hero--featured .hero-art { width: 100%; }
.hero--featured .ribbons, .hero--featured .hero-line { display: none; }
.hero--featured .hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 15, 0.95) 0%, rgba(3, 3, 15, 0.82) 30%, rgba(3, 3, 15, 0.3) 55%, rgba(3, 3, 15, 0.1) 100%),
    linear-gradient(0deg, rgba(3, 3, 15, 0.92) 0%, rgba(3, 3, 15, 0.4) 26%, transparent 46%),
    linear-gradient(180deg, rgba(3, 3, 15, 0.65) 0%, transparent 20%);
}
.hero--featured .hero-content {
  left: var(--gutter); right: auto; width: min(46vw, 700px);
  top: var(--header-h); bottom: 0;
  display: flex; flex-direction: column; justify-content: center; padding-bottom: 6vh;
}
.hero--featured .hero-wordmark, .hero--featured .hero-copy { position: static; }
.hero--featured .hero-wordmark { font-size: clamp(2.75rem, 5vw, 6rem); }
.hero--featured .hero-wordmark::after {
  content: ""; display: block; height: 1px; margin-top: 0.16em; width: calc(100% + 6vw);
  background: linear-gradient(90deg, var(--magenta) 0%, var(--cyan) 8%, rgba(0, 246, 255, 0.5) 60%, transparent 100%);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.5);
}
.hero--featured .hero-copy { margin-top: 22px; max-width: none; }
.hero--featured .hero-headline { font-size: clamp(1.5rem, 2.3vw, 2.5rem); }
.hero--featured .hero-intro { color: #cfd0ea; font-size: 1rem; line-height: 1.7; max-width: 60ch; }

.hero-feature {
  position: absolute; right: var(--gutter); bottom: clamp(32px, 7vh, 72px);
  width: min(44vw, 760px); text-align: right; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}
.hero-feature[hidden] { display: none; }
.hero-feature-cat {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan);
}
.hero-feature-title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.05; text-wrap: balance;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem); margin: 8px 0 10px;
}
.hero-feature-meta { color: #d6d7ee; font-size: 0.95rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }

@media (max-width: 960px) {
  /* phone: same composition as desktop — photo fills the hero, team intro on top, featured show at the bottom right */
  .hero--featured { display: flex; flex-direction: column; min-height: 100svh; }
  .hero--featured .hero-art { position: absolute; inset: 0; width: auto; height: auto; overflow: hidden; }
  .hero--featured .hero-photo { object-position: 50% center; }
  .hero--featured .hero-art::after {
    inset: -2px 0 -2px 0;
    background: linear-gradient(180deg,
      rgba(3, 3, 15, 0.84) 0%, rgba(3, 3, 15, 0.74) 50%, rgba(3, 3, 15, 0.3) 68%,
      rgba(3, 3, 15, 0.75) 84%, var(--bg) 100%);
  }
  .hero--featured .hero-content {
    order: 1; position: relative; inset: auto; width: auto; display: block;
    padding: calc(var(--header-h) + 24px) var(--gutter) 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  }
  .hero--featured .hero-wordmark { font-size: clamp(2.75rem, 12vw, 5rem); }
  .hero--featured .hero-wordmark::after { width: 100%; }
  /* keep "Visual Stage · 3D Mapping · Hologram · VJ" on one line: scale with the screen width */
  .hero--featured .hero-copy .eyebrow { white-space: nowrap; font-size: min(0.8125rem, 2.6vw); letter-spacing: 0.12em; }
  .hero--featured .btn-row .btn { flex: 0 0 auto; }
  .hero-feature {
    order: 2; position: relative; z-index: 1; inset: auto; width: auto;
    margin: auto var(--gutter) 0; padding: clamp(72px, 16svh, 180px) 0 44px; text-align: right;
  }
  .hero-feature-title { font-size: clamp(1.375rem, 5.6vw, 2rem); }
  .hero-feature-meta { justify-content: flex-end; font-size: 0.875rem; }
}

/* =========================================================================
   SECTION HEAD + FILTERS
   ========================================================================= */
.section-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(28px, 3vw, 36px);
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn {
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); font-weight: 500; font-size: 0.95rem;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.chip-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.chip-btn[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); }

/* =========================================================================
   PROJECT GRID
   ========================================================================= */
.project-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--line); border-block: 1px solid var(--line);
}
.project-card {
  position: relative; aspect-ratio: 16 / 10; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 2vw, 30px);
  animation: cardIn var(--dur-slow) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.project-card[hidden] { display: none; }
@media (min-width: 961px) {
  .project-card.is-wide { grid-column: 1 / -1; aspect-ratio: 32 / 10; }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.project-card .cover {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.project-card .scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(3, 3, 15, 0.94) 0%, rgba(3, 3, 15, 0.45) 38%, transparent 62%),
    linear-gradient(180deg, rgba(3, 3, 15, 0.5) 0%, transparent 22%);
}
.project-card:hover .cover, .project-card:focus-within .cover { transform: scale(1.04); }
.project-card:hover::before { transform: scale(1.08) translate(2%, -2%); }

.card-top, .card-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card-num { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; }
.card-lead { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
/* team role on the project (Visual Design / Vận hành / VJ) */
.role-pill {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 246, 255, 0.55); background: rgba(3, 3, 15, 0.55); color: var(--cyan);
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 6px; background: rgba(3, 3, 15, 0.55);
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.badge svg { width: 10px; height: 10px; }
.card-cat, .card-year {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
}
.card-year { color: var(--text-2); }
.card-title { font-size: clamp(1.5rem, 2.3vw, 2.125rem); margin: 8px 0 6px; }
.card-meta { color: var(--text-2); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* credit icons (location / director / agency) — pre-colored with the logo gradient */
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.ico {
  flex: none; display: inline-block; width: 1em; height: 1em;
  background: var(--ico) center / contain no-repeat;
}
.ico-location { --ico: url("../img/icon-location.png"); }
.ico-director { --ico: url("../img/icon-director.png"); }
.card-open {
  color: var(--cyan); font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border-radius: 4px;
}
.card-open::after { content: ""; position: absolute; inset: 0; border-radius: 0; }
.card-open .arrow { transition: transform var(--dur) var(--ease-out); }
.project-card:hover .card-open .arrow { transform: translateX(4px); }
.card-open:focus-visible { outline: none; }
.card-open:focus-visible::after { outline: 2px solid var(--cyan); outline-offset: -4px; }

.empty-state { padding-block: 48px; color: var(--text-2); }

/* =========================================================================
   CLIPS
   ========================================================================= */
/* columns follow the number of clips (centered), up to 4 per row on desktop */
.clip-grid {
  display: grid; gap: 2px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, min(25%, 400px)));
}
.clip-card {
  position: relative; aspect-ratio: 9 / 16; max-height: 82svh; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; text-align: left;
  padding: 20px;
}
.clip-card .cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.clip-card .scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 3, 15, 0.85), transparent 35%); }
.play-dot {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(3, 3, 15, 0.6); border: 1px solid var(--line-strong);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.play-dot svg { width: 18px; height: 18px; margin-left: 3px; }
.clip-card:hover .play-dot { transform: scale(1.08); background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.clip-card.is-previewing .play-dot { opacity: 0; }
.clip-meta { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--text-2); }
.clip-title { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; margin-top: 4px; }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services { padding-block: clamp(72px, 9vw, 130px); }
.service-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: clamp(48px, 6vw, 80px); counter-reset: svc; }
.service-list li { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.svc-num { font-family: var(--font-display); font-weight: 700; color: var(--magenta-soft); font-size: 0.95rem; letter-spacing: 0.06em; }
.svc-title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin: 14px 0 10px; }
.svc-desc { color: var(--text-2); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { padding-block: clamp(96px, 12vw, 180px); }
.contact .display { margin-bottom: 24px; }
.contact-text { color: var(--text-2); font-size: 1.0625rem; max-width: 52ch; margin-bottom: 36px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { padding-block: 44px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; color: var(--text-2); font-size: 0.95rem; }
.footer-brand img { height: 56px; width: auto; }
.footer-social { display: flex; gap: 8px; }
.footer-social a, .footer-social span { display: inline-block; padding: 10px 12px; color: var(--text-2); border-radius: 6px; transition: color var(--dur-fast) ease; }
.footer-social a:hover { color: var(--cyan); }

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(2, 2, 12, 0.96); color: var(--text);
  display: none; grid-template-rows: auto 1fr auto;
}
.lightbox[open] { display: grid; animation: lbIn var(--dur) var(--ease-out); }
.lightbox::backdrop { background: rgba(2, 2, 12, 0.7); backdrop-filter: blur(6px); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lb-top { display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); }
.lb-top > div { flex: 1; min-width: 0; }
.lb-title { font-size: clamp(1.25rem, 2vw, 1.75rem); overflow-wrap: anywhere; }
.lb-count { color: var(--text-2); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 7vw, 110px); min-height: 0; }
.lb-stage > * { max-width: 100%; max-height: 100%; animation: fade var(--dur) ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage img, .lb-stage video { max-height: calc(100dvh - 190px); width: auto; object-fit: contain; border-radius: 4px; }
.lb-stage video { background: #000; }
.lb-placeholder {
  width: min(100%, 1100px, calc((100dvh - 190px) * 16 / 9)); aspect-ratio: 16 / 9;
  display: grid; place-items: center; text-align: center; border-radius: 4px;
}
.lb-placeholder.is-vertical { width: min(100%, calc((100dvh - 190px) * 9 / 16)); aspect-ratio: 9 / 16; }
.lb-placeholder p { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 16px; }
.lb-placeholder small { display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-2); }
.lb-caption { text-align: center; color: var(--text-2); padding: 16px var(--gutter) 24px; min-height: 1.6em; }
.lb-btn {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(3, 3, 15, 0.6);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.lb-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -26px; }
.lb-prev { left: clamp(10px, 2vw, 32px); }
.lb-next { right: clamp(10px, 2vw, 32px); }
.lb-prev[hidden], .lb-next[hidden] { display: none; }

/* =========================================================================
   PROJECT DETAIL PAGE (project.html)
   ========================================================================= */
.is-detail .header-logo { opacity: 1; transform: none; pointer-events: auto; }

/* cover */
.pd-hero { position: relative; height: max(100svh, 560px); max-height: 1100px; overflow: hidden; isolation: isolate; }
.pd-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: pdZoom 1.6s var(--ease-out) both; }
@keyframes pdZoom { from { transform: scale(1.06); } to { transform: none; } }
.pd-hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3, 3, 15, 0.7) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
.pd-crumbs {
  position: absolute; left: 0; right: 0; bottom: 28px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
}
.pd-crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--text-3); }
.pd-crumbs a { color: var(--cyan); }
.pd-crumbs a:hover { text-decoration: underline; }
.pd-crumbs [aria-current] { color: var(--text); }

/* prev / next links */
.pd-nav { display: inline-flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--text); }
.pd-nav-icon {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(3, 3, 15, 0.45);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.pd-nav-icon svg { width: 18px; height: 18px; }
.pd-nav--prev .pd-nav-icon svg { transform: rotate(180deg); }
.pd-nav-text { display: flex; flex-direction: column; font-weight: 600; font-size: 0.95rem; line-height: 1.3; max-width: 22ch; }
.pd-nav-text small { font-weight: 500; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.pd-nav--next { flex-direction: row-reverse; text-align: right; }
.pd-nav:hover .pd-nav-icon, .pd-top:hover .pd-nav-icon { border-color: var(--cyan); color: var(--cyan); }
/* prev / next float: fixed at mid-height on both sides, stays while scrolling */
.pd-float-nav {
  position: fixed; z-index: 30; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; pointer-events: none;
}
.pd-float-nav .pd-nav { pointer-events: auto; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.pd-float-nav .pd-nav-text { transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); }
/* past the cover: icon only (title appears on hover / keyboard focus) so the media stays clear */
.pd-scrolled .pd-float-nav .pd-nav-icon {
  width: 52px; height: 52px; background: rgba(3, 3, 15, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.pd-scrolled .pd-float-nav .pd-nav-text {
  opacity: 0; pointer-events: none; transform: translateX(-6px);
  padding: 10px 14px; border-radius: 12px; background: rgba(3, 3, 15, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pd-scrolled .pd-float-nav .pd-nav--next .pd-nav-text { transform: translateX(6px); }
.pd-scrolled .pd-float-nav .pd-nav:hover .pd-nav-text,
.pd-scrolled .pd-float-nav .pd-nav:focus-visible .pd-nav-text { opacity: 1; transform: none; }

/* intro */
.pd-intro { text-align: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(40px, 6vw, 80px); }
.pd-title {
  font-size: clamp(2.25rem, 6vw, 5.5rem); line-height: 1.05; margin: 16px auto 0; max-width: 18ch;
  background: linear-gradient(90deg, var(--cyan), #8fa0ff 55%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pd-credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; margin: 36px auto 0; }
.pd-credits div { min-width: 140px; }
.pd-credits dt { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.pd-credits dt .ico { font-size: 1.15rem; }
.pd-credits dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.pd-desc { max-width: 68ch; margin: 36px auto 0; color: var(--text-2); font-size: 1.0625rem; line-height: 1.8; }

/* media stack */
.pd-media { display: grid; gap: clamp(12px, 1.6vw, 24px); width: min(100% - 2 * var(--gutter), 1600px); margin-inline: auto; }
.pd-row { display: grid; gap: clamp(12px, 1.6vw, 24px); }
.pd-row--pair { grid-template-columns: 1fr 1fr; }
.pd-item { margin: 0; position: relative; }
.pd-item img, .pd-item video { width: 100%; height: auto; border-radius: 6px; background: #000; }
.pd-video video { aspect-ratio: 16 / 9; object-fit: contain; }
.pd-row--pair .pd-item img { aspect-ratio: 3 / 2; object-fit: cover; }
.pd-zoom { display: block; width: 100%; padding: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.pd-zoom img { transition: transform 0.9s var(--ease-out), opacity var(--dur) ease; }
.pd-zoom:hover img { transform: scale(1.025); }
/* full-width rows: keep portrait shots within one screen, centered */
.pd-row--img .pd-zoom img { width: auto; max-width: 100%; max-height: 88vh; margin-inline: auto; background: none; }
.pd-item figcaption {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 2px 0;
  font-size: 0.9rem; color: var(--text-2);
}
.pd-item figcaption .mono { color: var(--cyan); font-weight: 600; font-size: 0.8rem; }
.pd-ph { aspect-ratio: 16 / 9; border-radius: 6px; }
.tile-label {
  position: absolute; left: 30px; bottom: 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
}

/* other projects rail */
.pd-others { padding-top: clamp(72px, 9vw, 120px); }
.pd-others-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.pd-others-head .card-open::after { display: none; }
.pd-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 440px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.pd-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: 8px; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.pd-card .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.pd-card .scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 3, 15, 0.92), transparent 60%); }
.pd-card:hover .cover { transform: scale(1.05); }
.pd-card-cat { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.pd-card-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.15; margin-top: 6px; }

/* footer nav */
.pd-footer-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px);
}
.pd-footer-nav .pd-nav--next { justify-self: end; }
.pd-top { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.pd-top .pd-nav-icon svg { transform: rotate(-90deg); }
.pd-missing { padding-top: calc(var(--header-h) + 120px); padding-bottom: 120px; display: grid; gap: 24px; justify-items: start; }

@media (max-width: 760px) {
  .pd-hero { height: 72svh; min-height: 420px; }
  /* phone: icon-only buttons in the bottom corners, within thumb reach */
  .pd-float-nav { top: auto; transform: none; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .pd-float-nav .pd-nav-text { display: none; }
  .pd-float-nav .pd-nav-icon, .pd-scrolled .pd-float-nav .pd-nav-icon {
    width: 48px; height: 48px; background: rgba(3, 3, 15, 0.75);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .pd-crumbs { bottom: 20px; font-size: 0.75rem; }
  .pd-row--pair { grid-template-columns: 1fr; }
  .pd-footer-nav { grid-template-columns: 1fr 1fr; }
  .pd-top { grid-column: 1 / -1; order: -1; }
  .pd-nav-text { font-size: 0.875rem; }
}

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1200px) {
  .service-list { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: var(--z-menu);
    flex-direction: column; justify-content: center; align-items: stretch; gap: 4px;
    padding: 96px var(--gutter) 40px;
    background: rgba(3, 3, 15, 0.97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav a { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; padding: 14px 0; }
  .site-nav a::after { left: 0; right: auto; width: 40px; }

  .hero { height: auto; max-height: none; }
  .hero-art { position: relative; width: 82%; height: clamp(300px, 52svh, 520px); }
  .hero-line { left: 82%; top: calc(clamp(300px, 52svh, 520px) / 2); }
  .hero-content { position: relative; left: auto; right: auto; padding: 8px var(--gutter) 64px; }
  .hero-wordmark { position: static; font-size: clamp(2.75rem, 12vw, 5rem); }
  .hero-copy { position: static; max-width: 100%; margin-top: 18px; }

  .project-grid { grid-template-columns: 1fr; }
  .clip-grid { grid-template-columns: repeat(2, 1fr); }
  .clip-card { padding: 14px; }
  .clip-title { font-size: 1.0625rem; line-height: 1.25; }
  .play-dot { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}

@media (max-width: 640px) {
  .project-card { aspect-ratio: 4 / 5; min-height: 0; }
  .service-list { grid-template-columns: 1fr; }
  .card-row { flex-wrap: wrap; }
  .btn-row .btn { flex: 1 1 auto; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; }
  .lb-caption { padding-inline: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .hero-pulse { display: none; }
  .reveal { opacity: 1; transform: none; }
}
