/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --bg:           #0e0f11;
  --surface:      #141518;
  --surface-2:    #1a1b1f;
  --border:       #2a2b30;
  --accent:       #c8289a;
  --cyan:         #4fc8e8;
  --green:        #7ac45a;
  --amber:        #e8a020;
  --text:         #eeeef0;
  --text-dim:     #9a9aa8;
  --text-faint:   #5a5a66;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:           #f5f3ef;
  --surface:      #efede8;
  --surface-2:    #e5e2dc;
  --border:       #c9c2b8;
  --accent:       #b51c83;
  --cyan:         #087e9d;
  --green:        #4a8331;
  --amber:        #b46f00;
  --text:         #18191d;
  --text-dim:     #5f626c;
  --text-faint:   #8a8790;
  color-scheme: light;
}

/* ─────────────────────────────────────────────
   RESET + BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  min-height: 100%;
  background: #050507;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

.image-load-frame {
  position: relative;
  overflow: hidden;
  background: #24262e;
}
.image-load-frame.image-loading {
  background-image: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 80%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: image-loader-shimmer 1.5s ease-in-out infinite;
}
.image-load-frame img,
.image-load-frame .work-card-img {
  transition: opacity 0.5s ease;
}
.image-load-frame.image-loading img,
.image-load-frame.image-loading .work-card-img {
  opacity: 0;
}
.image-load-frame.image-loaded img {
  opacity: 1;
}
.work-card.image-load-frame.image-loaded .work-card-img {
  opacity: 0.84;
}
.image-load-frame.image-error {
  animation: none;
  background: #24262e;
}
:root[data-theme="light"] .image-load-frame,
:root[data-theme="light"] .image-load-frame.image-error {
  background: #e4e2dd;
}
:root[data-theme="light"] .image-load-frame.image-loading {
  background-image: linear-gradient(
    100deg,
    transparent 20%,
    rgba(18, 18, 20, 0.06) 50%,
    transparent 80%
  );
}
@keyframes image-loader-shimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .image-load-frame.image-loading {
    animation: none;
  }
}

.project-subtitle {
  margin-top: 14px;
  max-width: 34rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.45;
}

.project-live-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.project-live-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid rgba(79, 200, 232, 0.45);
  color: var(--cyan);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-live-button:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(79, 200, 232, 0.08);
}


/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  height: auto;
  padding: 0 48px;
  display: flex;
  justify-content: flex-end;
  background: transparent;
  pointer-events: none;
}

.header-inner,
.page-home .header-inner {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(238,238,240,0.1);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012) 42%, rgba(0,0,0,0.04)),
    rgba(10,11,14,0.5);
  box-shadow:
    0 16px 46px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(255,255,255,0.025);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  pointer-events: auto;
}

.header-inner::before,
.page-home .header-inner::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 36%, rgba(255,255,255,0) 64%);
  pointer-events: none;
}

.header-inner::after,
.page-home .header-inner::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  opacity: 0.42;
  pointer-events: none;
}

.header-logo,
.page-home .header-logo {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015) 50%, rgba(0,0,0,0.035)),
    rgba(238,238,240,0.055);
  color: rgba(238,238,240,0.74);
  box-shadow:
    0 0 18px rgba(200,40,154,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(200,40,154,0.035);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.header-logo:hover,
.header-logo:focus-visible {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04) 48%, rgba(200,40,154,0.12)),
    rgba(200,40,154,0.18);
  color: var(--text);
  box-shadow:
    0 0 22px rgba(200,40,154,0.14),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(200,40,154,0.08);
  outline: none;
}

.header-logo:active { transform: translateY(1px) scale(0.98); }
.header-logo span { display: none; }

.header-emblem {
  width: 24px;
  height: 24px;
  opacity: 0.76;
  filter: none;
  transition: filter 180ms ease, opacity 180ms ease;
}

.header-nav,
.page-home .header-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  font-family: 'din-2014', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238,238,240,0.66);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(238,238,240,0.055);
}

.nav-link:active { transform: translateY(1px) scale(0.98); }
.nav-label-short { display: none; }

.theme-toggle {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015) 50%, rgba(0,0,0,0.035)),
    rgba(238,238,240,0.055);
  color: rgba(238,238,240,0.74);
  box-shadow:
    0 0 18px rgba(200,40,154,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(200,40,154,0.035);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.035) 48%, rgba(200,40,154,0.14)),
    rgba(200,40,154,0.16);
  box-shadow:
    0 0 22px rgba(200,40,154,0.14),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(200,40,154,0.08);
  outline: none;
}

.theme-toggle:active { transform: translateY(1px) scale(0.98); }

.theme-toggle-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(200,40,154,0.42), 0 0 22px rgba(200,40,154,0.16);
}

.theme-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:root[data-theme="light"] .header-inner,
:root[data-theme="light"] .page-home .header-inner {
  border-color: rgba(24,25,29,0.1);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.42), rgba(255,255,255,0.12) 42%, rgba(24,25,29,0.03)),
    rgba(245,243,239,0.58);
  box-shadow:
    0 20px 62px rgba(42,37,31,0.16),
    0 2px 14px rgba(255,255,255,0.34),
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -1px 0 rgba(24,25,29,0.08);
  backdrop-filter: blur(24px) saturate(142%);
  -webkit-backdrop-filter: blur(24px) saturate(142%);
}

:root[data-theme="light"] .header-logo,
:root[data-theme="light"] .page-home .header-logo,
:root[data-theme="light"] .theme-toggle {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.58), rgba(255,255,255,0.16) 48%, rgba(24,25,29,0.04)),
    rgba(255,255,255,0.2);
  color: rgba(24,25,29,0.66);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.68),
    inset 0 -1px 0 rgba(24,25,29,0.07);
}

:root[data-theme="light"] .header-emblem {
  filter: invert(1);
  opacity: 0.62;
}

:root[data-theme="light"] .nav-link {
  color: rgba(24,25,29,0.62);
}

:root[data-theme="light"] .nav-link:hover,
:root[data-theme="light"] .nav-link.active,
:root[data-theme="light"] .header-logo:hover,
:root[data-theme="light"] .header-logo:focus-visible,
:root[data-theme="light"] .theme-toggle:hover,
:root[data-theme="light"] .theme-toggle:focus-visible {
  color: rgba(24,25,29,0.94);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.64), rgba(255,255,255,0.2) 48%, rgba(24,25,29,0.03)),
    rgba(255,255,255,0.34);
}

@keyframes nav-dock-bounce {
  0% { transform: translateY(0) scale(1); }
  34% { transform: translateY(-3px) scale(1.012); }
  68% { transform: translateY(1px) scale(0.996); }
  100% { transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.is-nav-bouncing { animation: none; }
  .header-nav::before { transition: none; }
  .header-nav .nav-link { transition: none; }
}


/* ─────────────────────────────────────────────
   LIGHT THEME — opt-in
───────────────────────────────────────────── */
:root[data-theme="light"] body {
  background: #f5f3ef;
}

:root[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(to right,
      rgba(3,4,6,0.62) 0%,
      rgba(3,4,6,0.42) 30%,
      rgba(3,4,6,0.14) 54%,
      rgba(3,4,6,0) 74%
    ),
    linear-gradient(to bottom,
      rgba(0,0,0,0.16) 0%,
      rgba(0,0,0,0) 36%,
      rgba(0,0,0,0.16) 72%,
      rgba(14,15,17,0.82) 100%
    );
}

:root[data-theme="light"] .hero-video-wrap,
:root[data-theme="light"] .work-card-img,
:root[data-theme="light"] .project-gallery img,
:root[data-theme="light"] .illustration-mosaic img,
:root[data-theme="light"] .photo-card img {
  filter: none;
}

:root[data-theme="light"] .hero-role,
:root[data-theme="light"] .hero-desc,
:root[data-theme="light"] .project-copy p,
:root[data-theme="light"] .project-summary,
:root[data-theme="light"] .about-copy,
:root[data-theme="light"] .about-content-col p,
:root[data-theme="light"] .work-card-tags,
:root[data-theme="light"] .photo-meta,
:root[data-theme="light"] .illustration-meta {
  color: var(--text-dim);
}

:root[data-theme="light"] .btn-ghost,
:root[data-theme="light"] .project-live-button,
:root[data-theme="light"] .work-more-button,
:root[data-theme="light"] .section-count,
:root[data-theme="light"] .social-icon,
:root[data-theme="light"] .about-social-icon {
  border-color: rgba(24,25,29,0.22);
  color: var(--text);
  background: rgba(255,255,255,0.22);
}

:root[data-theme="light"] .btn-ghost:hover,
:root[data-theme="light"] .project-live-button:hover,
:root[data-theme="light"] .work-more-button:hover,
:root[data-theme="light"] .section-count:hover,
:root[data-theme="light"] .social-icon:hover,
:root[data-theme="light"] .about-social-icon:hover {
  border-color: rgba(181,28,131,0.54);
  color: var(--accent);
  background: rgba(181,28,131,0.07);
}
:root[data-theme="light"] .page-home .hero .btn-ghost,
:root[data-theme="light"] .page-home .hero .social-icon {
  border-color: rgba(255,255,255,0.48);
  color: rgba(12,13,16,0.84);
  background: rgba(245,243,239,0.72);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.16),
    0 0 18px rgba(181,28,131,0.08),
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -1px 0 rgba(24,25,29,0.08);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

:root[data-theme="light"] .page-home .hero .btn-ghost:hover,
:root[data-theme="light"] .page-home .hero .social-icon:hover,
:root[data-theme="light"] .page-home .hero .social-icon:focus-visible {
  border-color: rgba(181,28,131,0.58);
  color: var(--accent);
  background: rgba(255,255,255,0.82);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.18),
    0 0 24px rgba(181,28,131,0.16),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

:root[data-theme="light"] .work-section,
:root[data-theme="light"] .work-index,
:root[data-theme="light"] .project-detail,
:root[data-theme="light"] .photography-index,
:root[data-theme="light"] .illustration-index,
:root[data-theme="light"] .about-page,
:root[data-theme="light"] .site-footer {
  background: var(--bg);
}

:root[data-theme="light"] .work-card,
:root[data-theme="light"] .project-meta > div,
:root[data-theme="light"] .about-card,
:root[data-theme="light"] .photo-card,
:root[data-theme="light"] .illustration-card {
  background: rgba(255,255,255,0.42);
  border-color: rgba(24,25,29,0.12);
}

:root[data-theme="light"] .work-card-overlay {
  background: linear-gradient(to top, rgba(14,15,17,0.84), rgba(14,15,17,0.18) 62%, rgba(14,15,17,0));
}

:root[data-theme="light"] .work-card-info,
:root[data-theme="light"] .work-card-title,
:root[data-theme="light"] .work-card-tags,
:root[data-theme="light"] .work-card .work-tag {
  color: rgba(238,238,240,0.9);
}

:root[data-theme="light"] .work-card .work-tag {
  border-color: rgba(238,238,240,0.2);
  background: rgba(7,8,10,0.28);
}

:root[data-theme="light"] .hero-title {
  color: rgba(238,238,240,0.94);
}

:root[data-theme="light"] .hero-role,
:root[data-theme="light"] .hero-desc {
  color: rgba(238,238,240,0.58);
}

:root[data-theme="light"] .hero-title,
:root[data-theme="light"] .hero-role,
:root[data-theme="light"] .hero-desc {
  text-shadow: 0 1px 22px rgba(0,0,0,0.38);
}


:root[data-theme="light"] .project-tags,
:root[data-theme="light"] .work-tag,
:root[data-theme="light"] .project-meta-label,
:root[data-theme="light"] .section-label,
:root[data-theme="light"] .project-kicker,
:root[data-theme="light"] .footer-nav a,
:root[data-theme="light"] .site-footer {
  color: var(--text-faint);
}


:root[data-theme="light"] .work-filter,
:root[data-theme="light"] .illustration-filter {
  border-color: transparent;
  background: transparent;
  color: rgba(90,90,102,0.62);
  box-shadow: none;
}

:root[data-theme="light"] .work-filter:hover,
:root[data-theme="light"] .work-filter:focus-visible,
:root[data-theme="light"] .work-filter.active,
:root[data-theme="light"] .illustration-filter:hover,
:root[data-theme="light"] .illustration-filter:focus-visible,
:root[data-theme="light"] .illustration-filter.active {
  border-color: rgba(181,28,131,0.38);
  background: rgba(181,28,131,0.055);
  color: var(--accent);
  box-shadow:
    0 calc(var(--tag-glow) * 10px) calc(var(--tag-glow) * 28px) rgba(181,28,131,0.16),
    inset 0 0 calc(var(--tag-glow) * 12px) rgba(255,255,255,0.22);
}

:root[data-theme="light"] .project-tags span,
:root[data-theme="light"] .work-tag,
:root[data-theme="light"] .work-filter-button {
  border-color: rgba(24,25,29,0.14);
  background: rgba(255,255,255,0.26);
}
:root[data-theme="light"] .project-tags span {
  border-color: rgba(8,126,157,0.24);
  background: rgba(8,126,157,0.055);
  color: rgba(8,92,116,0.78);
}
:root[data-theme="light"] .project-adjacent-link {
  border-color: rgba(24,25,29,0.12);
  background: rgba(255,255,255,0.34);
  box-shadow: 0 18px 42px rgba(42,37,31,0.08);
}
:root[data-theme="light"] .project-adjacent-link:hover,
:root[data-theme="light"] .project-adjacent-link:focus-visible {
  border-color: rgba(181,28,131,0.38);
  background: rgba(181,28,131,0.055);
}

:root[data-theme="light"] .reel-shadowbox {
  background: rgba(242,240,235,0.78);
}

:root[data-theme="light"] .reel-shadowbox-panel {
  background: rgba(255,255,255,0.9);
  border-color: rgba(24,25,29,0.16);
  box-shadow: 0 36px 100px rgba(42,37,31,0.22), 0 0 50px rgba(181,28,131,0.08);
}

:root[data-theme="light"] .preloader { background: #050507; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  background: #040405;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-sep { margin: 0 4px; opacity: 0.4; }

.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a { color: var(--text-faint); transition: color 0.15s; }
.footer-nav a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   PRELOADER
───────────────────────────────────────────── */
.preloader {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #050507;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.preloader.loaded {
  opacity: 0;
}

.preloader-lockup {
  width: min(360px, calc(100vw - 48px));
  display: grid;
  gap: 10px;
  color: var(--text);
}

.preloader-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238,238,240,0.52);
}

.preloader-meta span:first-child {
  color: var(--accent);
}

.preloader-bar {
  width: 100%;
  height: 2px;
  background: rgba(200,40,154,0.16);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(200,40,154,0.48), var(--accent));
  box-shadow: 0 0 12px rgba(200,40,154,0.46);
  transition: width 0.18s ease;
}

/* ─────────────────────────────────────────────
   HERO — HOME
───────────────────────────────────────────── */
.hero {
  position: relative;
  background: #050507;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Vimeo background */
.hero-video-wrap {
  position: absolute;
  background: #050507;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  background: #050507;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero-video-ready .hero-video {
  opacity: 1;
}

/* Gradient scrim */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(3,4,6,0.62) 0%,
      rgba(3,4,6,0.42) 30%,
      rgba(3,4,6,0.14) 54%,
      rgba(3,4,6,0) 74%
    ),
    linear-gradient(to bottom,
      rgba(0,0,0,0.16) 0%,
      rgba(0,0,0,0) 36%,
      rgba(0,0,0,0.16) 72%,
      rgba(14,15,17,0.82) 100%
    );
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  max-width: 860px;
  margin-bottom: 42vh;
  transform: translateY(50%);
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.4s;
}

.hero-emblem-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
  vertical-align: middle;
}
.hero-emblem {
  width: 48px;
  height: 48px;
  opacity: 0.7;
}

.hero-title {
  font-family: 'din-2014', sans-serif;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 44px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
  opacity: 0;
  animation: fade-up 0.8s 0.4s ease forwards;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-role {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(238,238,240,0.45);
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-up 0.8s 0.55s ease forwards;
}

.hero-desc {
  font-size: 15px;
  color: rgba(238,238,240,0.55);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-up 0.8s 0.7s ease forwards;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.8s 0.85s ease forwards;
}

.btn-ghost {
  appearance: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(238,238,240,0.25);
  padding: 13px 28px;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,40,154,0.06);
}

/* Featured reel shadowbox */
.reel-is-open { overflow: hidden; }

.reel-shadowbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 48px;
  background: rgba(2,3,5,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.reel-shadowbox[hidden] { display: none; }

.reel-shadowbox-panel {
  width: min(1120px, 100%);
  border: 1px solid rgba(238,238,240,0.1);
  border-radius: 4px;
  background: rgba(7,8,10,0.88);
  box-shadow: 0 36px 100px rgba(0,0,0,0.72), 0 0 50px rgba(200,40,154,0.08);
  overflow: hidden;
}

.reel-shadowbox-header {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid rgba(238,238,240,0.1);
}

.reel-shadowbox-header h2,
.reel-shadowbox-close,
.reel-shadowbox-fullscreen {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reel-shadowbox-header h2 { color: rgba(238,238,240,0.58); }

.reel-shadowbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reel-shadowbox-close,
.reel-shadowbox-fullscreen {
  border: 0;
  padding: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.reel-shadowbox-close:hover,
.reel-shadowbox-fullscreen:hover { color: var(--accent); }

.reel-shadowbox-fullscreen { display: none; }

.reel-shadowbox-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.reel-shadowbox-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Social row */
.hero-social {
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0;
  animation: fade-up 0.8s 1s ease forwards;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200,40,154,0.3);
  border-radius: 6px;
  color: var(--accent);
  transition: border-color 0.2s, background 0.2s;
}
.social-icon svg { width: 14px; height: 14px; }
.social-icon:hover {
  border-color: var(--accent);
  background: rgba(200,40,154,0.12);
}

/* Scroll hint */
.scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  opacity: 0.38;
  transition: opacity 0.5s ease;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  animation: hint-fade-up 1s 1.6s ease both;
}
.scroll-hint:hover { opacity: 0.72; }
.scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}
.scroll-hint svg { width: 16px; height: 23px; }
.scroll-hint line,
.scroll-hint polyline {
  stroke: var(--accent);
}

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hint-fade-up {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 0.38; transform: translate(-50%, 0); }
}

/* Subtle page and imagery entrances */
.motion-ready main {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(.16,1,.3,1);
}

.motion-ready body.page-entered main {
  opacity: 1;
  transform: none;
}

.motion-ready .media-reveal {
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 0.7s ease, transform 1s cubic-bezier(.16,1,.3,1);
}

.motion-ready .media-reveal.is-media-loaded {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    transform 0.8s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.is-in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready main,
  .motion-ready .media-reveal,
  .motion-ready .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .work-filter,
  .illustration-filter {
    transform: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  .work-filter.is-tag-popping,
  .illustration-filter.is-tag-popping {
    animation: none;
  }
}

/* ─────────────────────────────────────────────
   WORK GRID — HOME (below hero)
───────────────────────────────────────────── */
.work-section {
  background: var(--bg);
  padding: 80px 48px 100px;
}

.work-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.section-count {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.section-count-number {
  color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* First card spans full width */
.work-card--featured {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 18% 22%, rgba(200,40,154,0.24), transparent 34%),
    radial-gradient(circle at 78% 64%, rgba(79,200,232,0.18), transparent 36%),
    linear-gradient(135deg, #101116, #07080a 62%, #171219);
}

.work-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  opacity: 0.84;
}

/* Hide the bright source-image edge visible on the Dark Star thumbnail. */
.work-card[href*="/dark-star/"] .work-card-img {
  inset: -1px;
}

.work-card:hover .work-card-img { transform: scale(1.03); }

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,0.045) 50%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 18px);
  mix-blend-mode: screen;
  opacity: 0.28;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0,0,0,0.75) 100%
  );
  transition: opacity 0.3s;
}
.work-card:hover .work-card-overlay { opacity: 1.3; }

.work-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  z-index: 2;
}

.work-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.work-tag {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-tag + .work-tag::before {
  content: '·';
  margin-right: 6px;
  opacity: 0.4;
}
.work-tag-filter {
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.work-tag-filter:hover,
.work-tag-filter:focus-visible {
  color: #ff4fc3;
  text-shadow: 0 0 8px rgba(200, 40, 154, 0.45);
  outline: none;
}

.work-card-title {
  font-family: 'din-2014', sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 2.5vw, 26px);
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.1;
}

.work-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.work-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 13px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(238,238,240,0.02);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.work-more-button:hover,
.work-more-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,40,154,0.06);
  outline: none;
}

/* ─────────────────────────────────────────────
   WORK INDEX PAGE
───────────────────────────────────────────── */
.work-index {
  padding: 120px 48px 100px;
}

.work-index-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.work-index-header .section-label {
  margin: 0;
  font-weight: 400;
}

.work-index > .section-description,
.illustration-index > .section-description {
  display: block;
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.025em;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  align-items: center;
}

.work-filter {
  --tag-scale: 1;
  --tag-lift: 0px;
  --tag-glow: 0;
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(154,154,168,0.7);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(var(--tag-lift)) scale(var(--tag-scale));
  transform-origin: center bottom;
  will-change: transform;
  box-shadow:
    0 calc(var(--tag-glow) * 12px) calc(var(--tag-glow) * 34px) rgba(200,40,154,0.22),
    inset 0 0 calc(var(--tag-glow) * 18px) rgba(255,255,255,0.045);
  transition:
    transform 210ms cubic-bezier(.18,.9,.22,1.28),
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.work-filter:hover {
  --tag-scale: 1.04;
  --tag-lift: -3px;
  --tag-glow: 0.28;
}
.work-filter:hover,
.work-filter:focus-visible,
.work-filter.active {
  color: var(--accent);
  border-color: rgba(200,40,154,0.5);
  background: rgba(200,40,154,0.07);
}
.work-filter:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(200,40,154,0.18);
}
.work-filter.is-tag-popping {
  animation: tag-pill-pop 340ms cubic-bezier(.18,.9,.25,1.2);
}

@keyframes tag-pill-pop {
  0% { transform: translateY(var(--tag-lift)) scale(var(--tag-scale)); }
  44% { transform: translateY(calc(var(--tag-lift) - 5px)) scale(calc(var(--tag-scale) + 0.07)); }
  100% { transform: translateY(var(--tag-lift)) scale(var(--tag-scale)); }
}

.work-grid--full {
  grid-template-columns: repeat(2, 1fr);
}

.work-card[hidden] {
  display: none;
}

.work-filter-empty {
  margin: 34px 0 0;
  padding: 22px 0;
  border-top: 1px solid rgba(238,238,240,0.055);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ─────────────────────────────────────────────
   PROJECT DETAIL
───────────────────────────────────────────── */
.project-detail {
  min-height: 100vh;
  padding: 112px 48px 88px;
}

.project-back {
  display: inline-flex;
  margin-bottom: 44px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s;
}
.project-back::before {
  content: '←';
  margin-right: 10px;
}
.project-back:hover { color: var(--accent); }

.project-back-footer {
  max-width: 1440px;
  margin: 48px auto 0;
}

.project-back--bottom {
  margin-bottom: 0;
}
.project-adjacent {
  max-width: 1440px;
  margin: 54px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-adjacent-link {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(238,238,240,0.1);
  border-radius: 4px;
  background: rgba(238,238,240,0.025);
  color: var(--text-dim);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}
.project-adjacent-link--next { justify-content: flex-end; text-align: right; }
.project-adjacent-label {
  display: block;
  margin-bottom: 5px;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.project-adjacent-link strong {
  display: block;
  font-family: 'din-2014', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.project-adjacent-arrow { flex: 0 0 auto; font-family: 'Space Mono', monospace; font-size: 20px; color: var(--accent); }
.project-adjacent-link:hover,
.project-adjacent-link:focus-visible {
  border-color: rgba(200,40,154,0.46);
  background: rgba(200,40,154,0.06);
  color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(360px, 0.58fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
  max-width: 1440px;
  margin: 0 auto;
}

.project-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.project-intro h1 {
  font-family: 'din-2014', sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 3.2vw, 58px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  color: var(--text);
}

.project-copy {
  max-width: 620px;
  color: var(--text-dim);
}

.project-copy p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.project-summary {
  color: rgba(238,238,240,0.76);
}

.project-summary a,
.project-copy a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(79, 200, 232, 0.36);
  transition: color 180ms ease, border-color 180ms ease;
}

.project-copy a:hover,
.project-copy a:focus-visible {
  color: var(--text);
  border-color: var(--cyan);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(79,200,232,0.24);
  border-radius: 999px;
  background: rgba(79,200,232,0.045);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(79,200,232,0.78);
}
.project-tags span + span::before {
  content: none;
}

.project-player {
  max-width: 1440px;
  margin: 42px auto 0;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 20% 24%, rgba(200,40,154,0.22), transparent 30%),
    linear-gradient(135deg, #101116, #040405);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.project-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.project-gallery {
  max-width: 1440px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-intro + .project-gallery {
  margin-top: 42px;
}

.project-gallery-item {
  margin: 0;
  background: #08090b;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.project-gallery-button {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.project-gallery-button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -4px;
}

.project-gallery-item--wide {
  grid-column: 1 / -1;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-gallery-item--wide img {
  min-height: 520px;
  aspect-ratio: 16 / 8;
}

.project-gallery figcaption {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.lightbox-open {
  overflow: hidden;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 20px;
  padding: 72px 38px 42px;
  background: rgba(3,3,5,0.82);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.project-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.project-lightbox-frame {
  grid-column: 2;
  justify-self: center;
  width: min(100%, 1480px);
  margin: 0;
}

.project-lightbox-image {
  width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
  background: #050506;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 28px 80px rgba(0,0,0,0.58);
}

.project-lightbox-caption {
  min-height: 24px;
  margin-top: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-faint);
}

.project-lightbox-close {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,10,12,0.38);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.project-lightbox-close:hover,
.project-lightbox-close:focus-visible {
  border-color: rgba(200,40,154,0.62);
  background: rgba(200,40,154,0.12);
  color: var(--accent);
}

.project-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  padding: 12px 16px;
}

.project-lightbox-nav {
  width: 84px;
  height: 84px;
  align-self: center;
  position: relative;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0;
  cursor: pointer;
  opacity: 0.34;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-lightbox-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.project-lightbox-nav:hover,
.project-lightbox-nav:focus-visible {
  opacity: 0.78;
  outline: none;
}

.project-lightbox-nav:focus-visible::before {
  filter: drop-shadow(0 0 8px rgba(200,40,154,0.45));
}

.project-lightbox-prev {
  grid-column: 1;
}

.project-lightbox-prev::before {
  transform: translate(-35%, -50%) rotate(225deg);
}

.project-lightbox-next {
  grid-column: 3;
}

.project-lightbox-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.project-meta {
  max-width: 1440px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px auto 0;
}

.project-meta > div {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.project-meta-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.project-meta p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   ABOUT PAGE
───────────────────────────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 86px;
}

.about-photo-col {
  position: relative;
  overflow: hidden;
  background: #080809;
}

.about-photo-wrap {
  position: sticky;
  top: 86px;
  height: calc(100vh - 86px);
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 30%;
  filter: grayscale(100%);
  opacity: 0.85;
}

.about-photo-credit {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238,238,240,0.3);
  background: rgba(14,15,17,0.7);
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.08);
}

.about-content-col {
  padding: 72px 64px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: var(--bg);
}

.about-name {
  font-family: 'din-2014', sans-serif;
  font-weight: 200;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

.about-email-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 18px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.about-email-label {
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.18em;
}
.about-email-link {
  color: var(--accent);
  transition: opacity 0.2s;
}
.about-email-link:hover { opacity: 0.75; }

.about-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.about-social-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200,40,154,0.3);
  border-radius: 7px;
  color: var(--accent);
  transition: border-color 0.2s, background 0.2s;
}
.about-social-icon svg { width: 14px; height: 14px; }
.about-social-icon:hover {
  border-color: var(--accent);
  background: rgba(200,40,154,0.1);
}

.about-map {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #090a0c;
}

.about-map iframe {
  display: block;
  filter: invert(90%) hue-rotate(180deg) brightness(0.72) contrast(1.18) saturate(0.55);
}

.about-colophon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
}

.about-colophon-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-colophon p {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.025em;
}

/* ─────────────────────────────────────────────
   ILLUSTRATION MOSAIC
───────────────────────────────────────────── */
.illustration-index {
  min-height: 100vh;
  padding: 124px 48px 96px;
}

.illustration-header {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.7fr);
  gap: 60px;
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.illustration-header h1 {
  margin-top: 10px;
  font-family: 'din-2014', sans-serif;
  font-size: clamp(52px, 8vw, 118px);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.illustration-intro {
  display: grid;
  gap: 18px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
}

.illustration-intro span {
  font-family: 'Space Mono', monospace;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.illustration-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 28px;
}

.illustration-filter {
  --tag-scale: 1;
  --tag-lift: 0px;
  --tag-glow: 0;
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: rgba(154,154,168,0.7);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(var(--tag-lift)) scale(var(--tag-scale));
  transform-origin: center bottom;
  will-change: transform;
  box-shadow:
    0 calc(var(--tag-glow) * 12px) calc(var(--tag-glow) * 34px) rgba(200,40,154,0.22),
    inset 0 0 calc(var(--tag-glow) * 18px) rgba(255,255,255,0.045);
  transition:
    transform 210ms cubic-bezier(.18,.9,.22,1.28),
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.illustration-filter:hover {
  --tag-scale: 1.04;
  --tag-lift: -3px;
  --tag-glow: 0.28;
}
.illustration-filter:hover,
.illustration-filter:focus-visible,
.illustration-filter.active {
  border-color: rgba(200,40,154,0.5);
  color: var(--accent);
  background: rgba(200,40,154,0.07);
  outline: none;
}
.illustration-filter.is-tag-popping {
  animation: tag-pill-pop 340ms cubic-bezier(.18,.9,.25,1.2);
}

.illustration-filter:disabled { cursor: wait; }

.illustration-mosaic {
  columns: 4 300px;
  column-gap: 12px;
}

.illustration-tile {
  break-inside: avoid;
  margin: 0 0 12px;
  overflow: hidden;
  background: var(--surface);
}

.illustration-tile[hidden] { display: none; }

.illustration-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.illustration-open img {
  width: 100%;
  height: auto;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.illustration-tile-meta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 12px 11px;
  background: linear-gradient(transparent, rgba(4,4,5,0.86));
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.illustration-tile-meta span:last-child { color: var(--text-faint); }
.illustration-open:hover img { transform: scale(1.015); filter: brightness(0.82); }
.illustration-open:hover .illustration-tile-meta,
.illustration-open:focus-visible .illustration-tile-meta { opacity: 1; }

.illustration-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 24px;
  padding: 64px 32px 28px;
  background: rgba(4,4,5,0.96);
}

.illustration-lightbox.active { display: grid; }
.illustration-lightbox figure { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.illustration-lightbox-image { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.illustration-lightbox-caption { color: var(--text-dim); font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.illustration-lightbox-close { position: absolute; top: 22px; right: 28px; }
.illustration-lightbox-close { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 10px 14px; font-family: 'Space Mono', monospace; font-size: 9px; text-transform: uppercase; cursor: pointer; }

.illustration-lightbox-nav {
  position: relative;
  width: 80px;
  height: 84px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0;
  cursor: pointer;
  opacity: 0.34;
  transition: opacity 0.2s ease;
}

.illustration-lightbox-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.illustration-lightbox-nav:hover,
.illustration-lightbox-nav:focus-visible {
  opacity: 0.78;
  outline: none;
}

.illustration-lightbox-nav:focus-visible::before {
  filter: drop-shadow(0 0 8px rgba(200,40,154,0.45));
}

.illustration-lightbox-prev::before {
  transform: translate(-35%, -50%) rotate(225deg);
}

.illustration-lightbox-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header {
    padding: 0 24px;
    justify-content: center;
  }
  .hero-content { padding: 0 24px; margin-bottom: 46vh; }
  .work-section { padding: 60px 24px 80px; }
  .work-index { padding: 100px 24px 80px; }
  .project-detail { padding: 100px 24px 80px; }
  .project-intro { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .project-kicker { margin-bottom: 18px; }
  .project-copy p { font-size: 14px; }
  .project-player { margin-top: 32px; }
  .project-gallery { grid-template-columns: 1fr; margin-top: 8px; }
  .project-intro + .project-gallery { margin-top: 32px; }
  .project-gallery img,
  .project-gallery-item--wide img {
    min-height: 260px;
    aspect-ratio: 16 / 10;
  }
  .project-lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 12px;
    padding: 70px 16px 18px;
  }
  .project-lightbox-frame {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: center;
  }
  .project-lightbox-image {
    max-height: calc(100vh - 170px);
  }
  .project-lightbox-nav {
    grid-row: 2;
    width: 100%;
    height: 48px;
  }
  .project-lightbox-prev { grid-column: 1; }
  .project-lightbox-next { grid-column: 2; }
  .project-meta { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--featured { grid-column: 1; }
  .about-hero {
    grid-template-columns: 1fr;
    padding-top: 0;
  }
  .about-photo-col { height: min(54vh, 430px); }
  .about-photo-wrap { position: relative; top: 0; height: 100%; }
  .about-content-col { padding: 38px 24px 64px; }
  .site-footer { padding: 20px 24px; }
  .illustration-index { padding: 108px 24px 72px; }
  .illustration-header { grid-template-columns: 1fr; gap: 28px; }
  .illustration-mosaic { columns: 2 240px; }
}

@media (max-width: 600px) {
  body { padding-bottom: 86px; }
  .site-footer { display: none; }
  .site-header,
  .page-home .site-header,
  .page-about .site-header,
  .page-work .site-header {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 0;
    justify-content: stretch;
  }
  .site-header.is-nav-bouncing {
    animation: nav-dock-bounce 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .header-inner,
  .page-home .header-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px;
    align-items: center;
    justify-content: stretch;
  }
  .header-logo,
  .page-home .header-logo {
    mix-blend-mode: normal;
    width: 48px;
    min-height: 46px;
    display: flex;
    justify-content: center;
    border-radius: 999px;
    background: rgba(238,238,240,0.055);
  }
  .page-home .header-logo {
    background: rgba(238,238,240,0.14);
  }
  .header-logo:hover,
  .header-logo:focus-visible {
    background: rgba(200,40,154,0.18);
    outline: none;
  }
  .header-emblem {
    width: 24px;
    height: 24px;
    opacity: 0.8;
  }
  .header-nav,
  .page-home .header-nav {
    --nav-indicator-x: 0px;
    --nav-indicator-y: 0px;
    --nav-indicator-width: 0px;
    --nav-indicator-height: 46px;
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .header-nav::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    width: var(--nav-indicator-width);
    height: var(--nav-indicator-height);
    border-radius: 999px;
    background: rgba(238,238,240,0.1);
    transform: translate3d(var(--nav-indicator-x), var(--nav-indicator-y), 0);
    transition:
      transform 430ms cubic-bezier(0.22, 1.35, 0.36, 1),
      width 430ms cubic-bezier(0.22, 1.35, 0.36, 1),
      height 430ms cubic-bezier(0.22, 1.35, 0.36, 1),
      opacity 180ms ease;
    opacity: 1;
    pointer-events: none;
  }
  .header-nav .nav-link {
    mix-blend-mode: normal;
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(238,238,240,0.66);
    white-space: nowrap;
    transition: color 180ms ease, transform 220ms ease;
  }
  .header-nav .nav-link:active {
    transform: translateY(1px) scale(0.98);
  }
  .nav-label-long { display: none; }
  .nav-label-short { display: inline; }
  .header-nav .nav-link.active {
    color: var(--text);
    background: transparent;
  }
  .header-nav .nav-link--external,
  .page-home .header-nav .nav-link--external {
    display: none;
  }
  :root[data-theme="light"] .header-inner,
  :root[data-theme="light"] .page-home .header-inner {
    border-color: rgba(24,25,29,0.1);
    background:
      linear-gradient(135deg, rgba(255,255,255,0.38), rgba(255,255,255,0.1) 42%, rgba(24,25,29,0.03)),
      rgba(245,243,239,0.52);
    box-shadow:
      0 18px 60px rgba(42,37,31,0.16),
      0 2px 12px rgba(255,255,255,0.12),
      inset 0 1px 0 rgba(255,255,255,0.68),
      inset 0 -1px 0 rgba(24,25,29,0.08);
    backdrop-filter: blur(24px) saturate(142%);
    -webkit-backdrop-filter: blur(24px) saturate(142%);
  }
  :root[data-theme="light"] .header-logo,
  :root[data-theme="light"] .page-home .header-logo {
    background: rgba(255,255,255,0.2);
    box-shadow: inset 0 0 0 1px rgba(24,25,29,0.06);
  }
  :root[data-theme="light"] .header-emblem {
    filter: invert(1);
    opacity: 0.52;
  }
  :root[data-theme="light"] .header-nav::before {
    background: rgba(24,25,29,0.08);
  }
  :root[data-theme="light"] .header-nav .nav-link {
    color: rgba(24,25,29,0.58);
  }
  :root[data-theme="light"] .header-nav .nav-link.active {
    color: rgba(24,25,29,0.92);
  }
  .theme-toggle {
    width: 100%;
    min-width: 0;
    height: 46px;
  }
  .header-logo span { display: none; }
  .page-home .hero { min-height: 560px; }
.page-home .hero-video {
  opacity: 1;
}
.page-home .hero-overlay {
  background:
    linear-gradient(to right,
      rgba(3,4,6,0.48) 0%,
      rgba(3,4,6,0.28) 38%,
      rgba(3,4,6,0.08) 68%,
      rgba(3,4,6,0) 100%
    ),
    linear-gradient(to bottom,
      rgba(0,0,0,0.08) 0%,
      rgba(0,0,0,0) 38%,
      rgba(0,0,0,0.12) 72%,
      rgba(14,15,17,0.68) 100%
    );
}
:root[data-theme="light"] .page-home .hero-overlay {
  background:
    linear-gradient(to right,
      rgba(245,243,239,0.38) 0%,
      rgba(245,243,239,0.18) 36%,
      rgba(245,243,239,0.04) 68%,
      rgba(245,243,239,0) 100%
    ),
    linear-gradient(to bottom,
      rgba(245,243,239,0.04) 0%,
      rgba(245,243,239,0) 42%,
      rgba(245,243,239,0.12) 74%,
      rgba(245,243,239,0.42) 100%
    );
}
  .page-home .hero-content {
    margin-bottom: 42vh;
    transform: translateY(34%);
  }
  .hero-title {
    display: flex;
    align-items: center;
    gap: clamp(10px, 3vw, 14px);
    width: 100%;
    max-width: 100%;
    font-size: clamp(24px, 7.3vw, 34px);
    letter-spacing: clamp(0.08em, 1vw, 0.14em);
    white-space: nowrap;
  }
  .hero-emblem-wrap {
    flex: 0 0 auto;
    margin-right: 0;
  }
  .hero-emblem {
    width: clamp(34px, 10vw, 44px);
    height: clamp(34px, 10vw, 44px);
  }
  .page-home .hero-cta { flex-direction: row; align-items: flex-start; }
  .page-home .hero-cta .hero-cta-secondary { display: none; }
  .work-index { padding-top: 72px; }
  .project-detail { padding: 72px 18px 80px; }
  .illustration-index { padding-top: 76px; }
  .about-content-col { padding: 34px 24px 142px; }
  .about-colophon {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .reel-shadowbox {
    padding: 12px;
    place-items: center;
  }
  .reel-shadowbox-panel {
    width: min(calc(100vw - 24px), calc((100dvh - 108px) * 16 / 9));
    max-height: calc(100dvh - 24px);
  }
  .reel-shadowbox.is-reel-expanded {
    padding: 0;
    background: #000;
  }
  .reel-shadowbox.is-reel-expanded .reel-shadowbox-panel,
  .reel-shadowbox-panel:fullscreen,
  .reel-shadowbox-panel:-webkit-full-screen {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: #000;
  }
  .reel-shadowbox.is-reel-expanded .reel-shadowbox-header,
  .reel-shadowbox-panel:fullscreen .reel-shadowbox-header,
  .reel-shadowbox-panel:-webkit-full-screen .reel-shadowbox-header {
    height: 48px;
  }
  .reel-shadowbox.is-reel-expanded .reel-shadowbox-player,
  .reel-shadowbox-panel:fullscreen .reel-shadowbox-player,
  .reel-shadowbox-panel:-webkit-full-screen .reel-shadowbox-player {
    width: 100vw;
    height: calc(100dvh - 48px);
    aspect-ratio: auto;
  }
  .reel-shadowbox-header { padding-inline: 14px 8px; }
  .reel-shadowbox-header h2 { max-width: 42vw; }
  .reel-shadowbox-fullscreen { display: inline-flex; }
  .work-filters { display: none; }
  .project-tags { padding: 0; }\n  .project-adjacent { grid-template-columns: 1fr; margin-top: 40px; }
  .illustration-mosaic { columns: 1; }
  .illustration-lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 62px 16px 18px; }
  .illustration-lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .illustration-lightbox-nav { grid-row: 2; width: 100%; }
}
