/* ==========================================================================
   Caleb Morris Portfolio — Master Stylesheet
   Typography: Forrest Light (Vintage Editorial Serif) + Plus Jakarta Sans (Clean Grotesque)
   Palette: Warm Ivory (#FFFDF5), Poppy Red (#FF2F21), Cobalt Blue (#1780CA), Sky Blue (#2C98E7), Warm Sand (#F7E6BB)
   Layout: Liquid Glass Nav + Fluid Masonry + Full-Bleed Slideshow
   ========================================================================== */

/* --- Custom Local Typeface: Forrest Light --- */
@font-face {
  font-family: 'Forrest';
  src: url('../fonts/forrest-light.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Forrest';
  src: url('../fonts/forrest-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Forrest';
  src: url('../fonts/forrest-light.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Forrest';
  src: url('../fonts/forrest-light.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Forrest';
  src: url('../fonts/forrest-light.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Forrest';
  src: url('../fonts/forrest-light.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Local Typeface: Adobe Garamond Pro Italic (Callouts & Literary Accents) --- */
@font-face {
  font-family: 'Adobe Garamond Pro';
  src: url('../fonts/adobe-garamond-pro-italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Adobe Garamond Pro Italic';
  src: url('../fonts/adobe-garamond-pro-italic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Adobe Garamond Pro Italic';
  src: url('../fonts/adobe-garamond-pro-italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* --- CSS Variables & Design Tokens --- */
:root {
  --font-display: 'Forrest', Georgia, serif;
  --font-main: 'Forrest', Georgia, serif;
  --font-callout: 'Adobe Garamond Pro', 'Adobe Garamond Pro Italic', Garamond, 'Times New Roman', serif;
  --font-editorial: 'Adobe Garamond Pro', 'Adobe Garamond Pro Italic', Garamond, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Custom 5-Color System Extracted from Swatches */
  --accent-poppy: #FF2F21;
  --accent-poppy-glow: rgba(255, 47, 33, 0.35);
  --accent-cobalt: #1780CA;
  --accent-cobalt-glow: rgba(23, 128, 202, 0.3);
  --accent-sky: #2C98E7;
  --accent-sky-glow: rgba(44, 152, 231, 0.3);
  --accent-sand: #F7E6BB;
  --accent-sand-glow: rgba(247, 230, 187, 0.35);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;

  /* Liquid Glass — Constant Light Mode (White / Frosted Ivory Glass) */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 253, 245, 0.9) 100%);
  --glass-border-top: rgba(255, 255, 255, 0.98);
  --glass-border-sides: rgba(26, 25, 23, 0.08);
  --glass-border-bottom: rgba(26, 25, 23, 0.14);
  --glass-inner-bevel: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 1px 0 rgba(26, 25, 23, 0.06),
    inset 1px 0 1px 0 rgba(255, 255, 255, 0.8),
    inset -1px 0 1px 0 rgba(255, 255, 255, 0.8);
  --glass-shadow: 
    0 2px 8px 0 rgba(0, 0, 0, 0.06),
    0 12px 32px -4px rgba(0, 0, 0, 0.14),
    0 28px 64px -8px rgba(0, 0, 0, 0.18);
  --glass-specular-glare: rgba(255, 255, 255, 0.95);
  --glass-active-bg: var(--accent-poppy);
  --glass-active-border: var(--accent-poppy);
  --glass-active-shadow: 0 3px 14px var(--accent-poppy-glow);
  --glass-active-text: #FFFDF5;
  --glass-text: rgba(26, 25, 23, 0.84);
  --glass-hover-bg: rgba(255, 47, 33, 0.08);
  --glass-hover-text: var(--accent-poppy);
  --glass-pill-glow: 0 4px 14px var(--accent-poppy-glow);

  /* Fallback canvas defaults on root */
  --bg-primary: #FFFDF5;
  --bg-canvas: #FFFDF5;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: var(--accent-sand);
  --text-primary: #1A1917;
  --text-secondary: #6E6961;
  --text-muted: #948E85;
  --border-subtle: rgba(26, 25, 23, 0.08);
  --border-accent: rgba(255, 47, 33, 0.3);
}

/* Dark Theme (Obsidian Canvas & Liquid Glass) */
html[data-theme="dark"],
body[data-theme="dark"],
.theme-dark {
  --bg-primary: #141312;
  --bg-canvas: #141312;
  --bg-surface: #1C1B19;
  --bg-surface-elevated: #242220;
  --text-primary: #FFFDF5;
  --text-secondary: #ABA59B;
  --text-muted: #736E65;
  --border-subtle: rgba(255, 253, 245, 0.08);
  --border-accent: rgba(255, 47, 33, 0.4);
  background-color: #141312;
  color: #FFFDF5;

  /* Liquid Glass — Clean Dark Obsidian Mode (Zero milky haze, flare, or white glare) */
  --glass-bg: rgba(18, 17, 16, 0.94);
  --glass-border-top: rgba(255, 255, 255, 0.14);
  --glass-border-sides: rgba(255, 255, 255, 0.08);
  --glass-border-bottom: rgba(0, 0, 0, 0.6);
  --glass-inner-bevel: none;
  --glass-shadow: 
    0 4px 24px 0 rgba(0, 0, 0, 0.6),
    0 16px 40px -4px rgba(0, 0, 0, 0.7);
  --glass-specular-glare: transparent;
  --glass-active-bg: var(--accent-poppy);
  --glass-active-border: var(--accent-poppy);
  --glass-active-shadow: 0 3px 14px var(--accent-poppy-glow);
  --glass-active-text: #FFFDF5;
  --glass-text: rgba(255, 253, 245, 0.92);
  --glass-hover-bg: rgba(255, 255, 255, 0.08);
  --glass-hover-text: #FF5A4E;
}

/* Light Theme (Portraits, Love, Film, Music, Connect) */
html[data-theme="light"],
body[data-theme="light"],
.theme-light {
  --bg-primary: #FFFDF5;
  --bg-canvas: #FFFDF5;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: var(--accent-sand);
  --text-primary: #1A1917;
  --text-secondary: #6E6961;
  --text-muted: #948E85;
  --border-subtle: rgba(26, 25, 23, 0.08);
  --border-accent: rgba(255, 47, 33, 0.3);
  background-color: #FFFDF5;
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  overscroll-behavior: none;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  font-variant-emoji: text;
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hairline vector SVG arrows (prevents OS emoji rendering on mobile) */
.inline-arrow-svg {
  display: inline-block;
  vertical-align: -0.05em;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform var(--duration-fast) ease, stroke var(--duration-fast) ease, color var(--duration-fast) ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* --- Liquid Glass Top Navigation Bar --- */
.header-glass-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform, opacity;
}

.header-glass-wrap.nav-hidden {
  transform: translateY(calc(-100% - 28px));
  opacity: 0;
  pointer-events: none;
}

.liquid-glass-nav {
  pointer-events: auto;
  width: 100%;
  max-width: 1060px;
  height: 56px;
  border-radius: 9999px;
  padding: 0 10px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-sides);
  border-right: 1px solid var(--glass-border-sides);
  border-bottom: 1px solid var(--glass-border-bottom);
  box-shadow: var(--glass-shadow), var(--glass-inner-bevel);
  backdrop-filter: blur(40px) saturate(210%) contrast(106%);
  -webkit-backdrop-filter: blur(40px) saturate(210%) contrast(106%);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out-expo), 
              box-shadow var(--duration-normal) var(--ease-out-expo),
              background var(--duration-normal) ease;
}

/* Scrolled elevation state */
.liquid-glass-nav.scrolled {
  transform: translateY(-2px);
  box-shadow: 
    0 2px 4px 0 rgba(0, 0, 0, 0.08),
    0 14px 32px -4px rgba(0, 0, 0, 0.16),
    0 32px 72px -8px rgba(0, 0, 0, 0.14),
    var(--glass-inner-bevel);
}

/* Signature specular top rim highlight (Incident light) */
.liquid-glass-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1.5px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 15%, 
    var(--glass-specular-glare) 50%, 
    rgba(255, 255, 255, 0.3) 85%, 
    transparent 100%
  );
  border-radius: 9999px;
  pointer-events: none;
  z-index: 5;
}

/* Signature curved cylindrical glass lens reflection */
.liquid-glass-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.5) 0%, 
    rgba(255, 255, 255, 0.1) 40%, 
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Dynamic Interactive Specular Flare (tracks mouse in real time) */
.liquid-glass-nav .nav-glass-flare,
.home-bottom-dock .nav-glass-flare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    220px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.25) 35%,
    transparent 70%
  );
}

@media (hover: hover) {
  .liquid-glass-nav:hover .nav-glass-flare,
  .home-bottom-dock:hover .nav-glass-flare {
    opacity: 1;
  }
}

@media (hover: none) {
  .nav-glass-flare {
    display: none !important;
  }
}

/* Brand Wordmark */
.nav-brand {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  height: 36px;
  text-decoration: none;
  transition: opacity var(--duration-fast) ease;
  user-select: none;
}

.nav-brand:hover {
  opacity: 0.78;
}

.nav-brand-text {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  word-spacing: -0.05em;
  font-size: 1.34rem;
  font-weight: normal;
  text-transform: none;
  color: var(--accent-poppy);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  position: relative;
  top: -2.5px; /* Precision optical center alignment compensating for Forrest Light font ascender headroom */
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

/* Home Page: Brand on Blue Pill with Cream Text */
.page-home .liquid-glass-nav {
  padding-left: 6px;
}

.page-home .nav-brand {
  height: 44px;
  padding: 0 24px;
  background-color: var(--accent-sky, #2C98E7);
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(44, 152, 231, 0.3);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease, filter var(--duration-fast) ease;
}

.page-home .nav-brand:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 4px 16px rgba(44, 152, 231, 0.45);
}

.page-home .nav-brand-text {
  color: #F4E7C0;
  font-size: 1.34rem;
  top: -2px; /* Precision optical center inside pill */
}

@media (max-width: 480px) {
  .page-home .nav-brand {
    height: 42px;
    padding: 0 18px;
  }
  .page-home .nav-brand-text {
    font-size: 1.22rem;
  }
}

/* Desktop Links Container (Clean, no trench) */
.nav-menu {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-menu li {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 13px;
  border-radius: 9999px;
  color: var(--glass-text);
  border: 1px solid transparent;
  line-height: 1;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  top: -0.5px; /* Precision optical vertical center balance */
  white-space: nowrap;
  user-select: none;
}

.nav-link:hover {
  color: var(--glass-hover-text);
  background: var(--glass-hover-bg);
}

.nav-link.active {
  color: var(--glass-active-text);
  background: var(--glass-active-bg);
  border-color: var(--glass-active-border);
  box-shadow: var(--glass-active-shadow);
  font-weight: 700;
}

/* Right Navigation Cluster (Theme Toggle + Hamburger) */
.nav-right-cluster {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle Button (Desktop & Mobile) */
.theme-toggle-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--glass-text);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  z-index: 6;
  padding: 0;
  margin: 0;
  transition: all var(--duration-fast) var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .theme-toggle-btn:hover {
    color: var(--accent-poppy);
    border-color: var(--accent-poppy);
    background: var(--glass-hover-bg);
    transform: scale(1.08);
  }
}

.theme-toggle-btn:active {
  transform: scale(0.95);
  color: var(--accent-poppy);
  border-color: var(--accent-poppy);
}

.theme-toggle-btn svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out-expo), opacity 0.25s ease;
  pointer-events: none;
}

/* Light Theme: show Moon (prompt to switch to dark), hide Sun */
html[data-theme="light"] .theme-icon-sun,
body[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.4);
}
html[data-theme="light"] .theme-icon-moon,
body[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Dark Theme: show Sun (prompt to switch to light), hide Moon */
html[data-theme="dark"] .theme-icon-sun,
body[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}
html[data-theme="dark"] .theme-icon-moon,
body[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.4);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--glass-text);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .mobile-nav-toggle:hover {
    background: var(--glass-hover-bg);
    border-color: var(--accent-poppy);
    color: var(--accent-poppy);
  }
}

.mobile-nav-toggle:active {
  transform: scale(0.95);
}

.hamburger-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.open .hamburger-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.mobile-nav-toggle.open .hamburger-icon span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile Fullscreen Glass Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: calc(128px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vh, 1.95rem);
  line-height: 1.18;
  font-weight: normal;
  letter-spacing: -0.015em;
  text-transform: none;
  color: #FFFDF5;
  padding: 4px 14px;
  display: inline-block;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  transition: transform var(--duration-fast) ease, color var(--duration-fast) ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-poppy);
  transform: scale(1.04);
}

.mobile-nav-socials {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.mobile-nav-socials .social-dock-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #FFFDF5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out-expo);
  cursor: pointer;
}

@media (max-height: 700px) {
  .mobile-nav-overlay {
    padding-top: calc(115px + env(safe-area-inset-top, 0px));
  }
  .mobile-nav-links {
    gap: 4px;
  }
  .mobile-nav-link {
    font-size: 1.45rem;
    padding: 2px 10px;
  }
  .mobile-nav-socials {
    margin-top: 14px;
    gap: 8px;
  }
  .mobile-nav-socials .social-dock-icon {
    width: 38px;
    height: 38px;
  }
}

.mobile-nav-socials .social-dock-icon svg {
  width: 20px;
  height: 20px;
  fill: #FFFDF5;
  opacity: 0.95;
  transition: transform var(--duration-fast) ease, fill var(--duration-fast) ease;
}

.mobile-nav-socials .social-dock-icon:hover,
.mobile-nav-socials .social-dock-icon:active {
  color: #ffffff;
  background: var(--accent-poppy);
  border-color: var(--accent-poppy);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 47, 33, 0.45);
}

.mobile-nav-socials .social-dock-icon:hover svg,
.mobile-nav-socials .social-dock-icon:active svg {
  fill: #ffffff;
  opacity: 1;
  transform: scale(1.05);
}

.mobile-nav-socials .social-dock-icon svg.vsco-icon {
  fill: none;
  stroke: #FFFDF5;
  stroke-width: 1.35;
}

.mobile-nav-socials .social-dock-icon:hover svg.vsco-icon,
.mobile-nav-socials .social-dock-icon:active svg.vsco-icon {
  fill: none;
  stroke: #ffffff;
}

/* --- Homepage Ambient Cinema Slideshow (Option 2) --- */
.hero-slideshow-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #050507;
  z-index: 1;
}

body[data-theme="light"] .hero-slideshow-container {
  background-color: var(--bg-canvas, #FFFDF5);
}

body[data-theme="light"] .hero-ambient-bg {
  opacity: 0.35;
  filter: blur(80px) saturate(140%);
}

body[data-theme="light"] .hero-slide img {
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(26, 25, 23, 0.06);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.8s;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

/* 1. Ambient Cinema Glow Backdrop */
.hero-ambient-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(65px) brightness(0.32) saturate(1.25);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
  will-change: transform, filter;
  animation: heroAmbientBreathe 16s ease-in-out infinite alternate;
}

@keyframes heroAmbientBreathe {
  0% { transform: scale(1.15); }
  100% { transform: scale(1.22); }
}

/* 2. Hero Scrim (Atmospheric vignette framing the canvas) */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(5, 5, 7, 0.08) 0%, rgba(5, 5, 7, 0.58) 100%);
  pointer-events: none;
  z-index: 2;
}

/* 3. Pristine Foreground Photograph (Desktop: Contained & Razor-Sharp) */
.hero-slide img {
  position: relative;
  z-index: 3;
  display: block;
  max-width: min(86vw, 1500px);
  max-height: min(78vh, calc(100vh - 160px));
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  border-radius: 4px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.75),
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: heroKenBurns 14s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.025); }
}

/* 4. Mobile / Portrait Touchscreens: Maintain Native Full-Bleed */
@media (max-width: 768px), (orientation: portrait) and (max-width: 900px) {
  .hero-ambient-bg {
    display: none;
  }

  .hero-slide {
    display: block;
  }

  .hero-slide img {
    position: absolute;
    inset: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    animation: heroKenBurnsMobile 12s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate;
  }

  @keyframes heroKenBurnsMobile {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
  }
}

/* Homepage Bottom Floating Social Dock (Liquid Glass) */
.home-bottom-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-sides);
  border-right: 1px solid var(--glass-border-sides);
  border-bottom: 1px solid var(--glass-border-bottom);
  box-shadow: var(--glass-shadow), var(--glass-inner-bevel);
  backdrop-filter: blur(40px) saturate(210%) contrast(106%);
  -webkit-backdrop-filter: blur(40px) saturate(210%) contrast(106%);
  overflow: hidden;
  position: fixed;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo);
}

.home-bottom-dock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1.5px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 15%, 
    var(--glass-specular-glare) 50%, 
    rgba(255, 255, 255, 0.3) 85%, 
    transparent 100%
  );
  border-radius: 9999px;
  pointer-events: none;
  z-index: 5;
}

.home-bottom-dock::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.22) 0%, 
    rgba(255, 255, 255, 0.04) 40%, 
    transparent 65%
  );
  pointer-events: none;
  z-index: 2;
}

.social-dock-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glass-text);
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.social-dock-icon:hover {
  color: #ffffff;
  background: var(--accent-poppy);
  border-color: var(--accent-poppy);
  transform: translateY(-1.5px) scale(1.08);
}

.social-dock-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-dock-icon svg.vsco-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.social-dock-icon:hover svg.vsco-icon,
.social-dock-icon:active svg.vsco-icon {
  fill: none;
  stroke: #ffffff;
}

/* Slideshow Controls (Pause / Next) */
.slideshow-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: opacity var(--duration-fast) var(--ease-out-expo), transform var(--duration-fast) var(--ease-out-expo), width var(--duration-fast) var(--ease-out-expo);
}

.slide-ctrl-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-sides);
  border-right: 1px solid var(--glass-border-sides);
  border-bottom: 1px solid var(--glass-border-bottom);
  color: var(--glass-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), var(--glass-inner-bevel);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: all var(--duration-fast) ease;
}

.slide-ctrl-btn svg {
  display: block;
}

.slide-ctrl-btn:hover {
  background: var(--accent-poppy);
  border-color: var(--accent-poppy);
  color: #FFFDF5;
  transform: scale(1.08);
}

/* --- Interactive Mouse Image Trail (The Lupo Concept Experience) --- */
.image-trail-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-canvas, #FFFDF5);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

body.proof-sheet-active .image-trail-stage {
  opacity: 0;
  pointer-events: none;
}

.trail-hero-centerpiece {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 6;
  width: 92%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.trail-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-cobalt, #1780CA);
  margin-bottom: 0;
  line-height: 1.2;
}

.trail-hero-title {
  font-family: 'Forrest', var(--font-display, sans-serif);
  font-size: clamp(4.4rem, 12.5vw, 10.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text-primary, #1A1917);
  margin-top: 0;
  margin-bottom: clamp(52px, 8.5vh, 92px);
  text-transform: none;
  transition: color var(--duration-normal) ease;
}

.trail-hero-subtitle {
  font-family: 'Adobe Garamond Pro', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--text-secondary, #5C5850);
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.35;
  white-space: nowrap;
  transition: color var(--duration-normal) ease;
}

.subtitle-mobile-break {
  display: none;
}

.subtitle-sep {
  display: inline;
}

/* --- Dark Mode Component Overrides: Clean Obsidian Nav (Zero Liquid Glass milky glow or flares) --- */
html[data-theme="dark"] .liquid-glass-nav::before,
body[data-theme="dark"] .liquid-glass-nav::before,
[data-theme="dark"] .liquid-glass-nav::before,
html[data-theme="dark"] .liquid-glass-nav::after,
body[data-theme="dark"] .liquid-glass-nav::after,
[data-theme="dark"] .liquid-glass-nav::after,
html[data-theme="dark"] .liquid-glass-nav .nav-glass-flare,
body[data-theme="dark"] .liquid-glass-nav .nav-glass-flare,
[data-theme="dark"] .liquid-glass-nav .nav-glass-flare,
html[data-theme="dark"] .home-bottom-dock::before,
body[data-theme="dark"] .home-bottom-dock::before,
[data-theme="dark"] .home-bottom-dock::before,
html[data-theme="dark"] .home-bottom-dock::after,
body[data-theme="dark"] .home-bottom-dock::after,
[data-theme="dark"] .home-bottom-dock::after,
html[data-theme="dark"] .home-bottom-dock .nav-glass-flare,
body[data-theme="dark"] .home-bottom-dock .nav-glass-flare,
[data-theme="dark"] .home-bottom-dock .nav-glass-flare {
  display: none !important;
}

html[data-theme="dark"] .liquid-glass-nav,
body[data-theme="dark"] .liquid-glass-nav,
[data-theme="dark"] .liquid-glass-nav {
  background: rgba(18, 17, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .home-bottom-dock,
body[data-theme="dark"] .home-bottom-dock,
[data-theme="dark"] .home-bottom-dock {
  background: rgba(18, 17, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .mobile-nav-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFDF5;
}

[data-theme="dark"] .mobile-nav-overlay {
  background: rgba(14, 13, 12, 0.96);
}

[data-theme="dark"] .mobile-nav-link {
  color: rgba(255, 253, 245, 0.88);
}

[data-theme="dark"] .mobile-nav-link:hover,
[data-theme="dark"] .mobile-nav-link.active {
  color: var(--accent-poppy);
}

[data-theme="dark"] .trail-hero-hint {
  background: rgba(30, 28, 26, 0.85);
  border: 1px solid rgba(255, 253, 245, 0.12);
  color: #ABA59B;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .trail-card {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .trail-card:hover {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .contact-sheet-wrap {
  background: #1C1B19;
  border-color: rgba(255, 253, 245, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .connect-portrait-wrapper {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .connect-social-badge {
  background: #1C1B19;
  border-color: rgba(255, 253, 245, 0.08);
  color: #FFFDF5;
}

[data-theme="dark"] .connect-instagram-section {
  border-top-color: rgba(255, 253, 245, 0.08);
}

[data-theme="dark"] .instagram-follow-pill,
[data-theme="dark"] .ig-nav-btn {
  background: rgba(30, 28, 26, 0.85);
  border-color: rgba(255, 253, 245, 0.12);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .masonry-item:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background-color: #141312;
  border-color: rgba(255, 253, 245, 0.12);
  color: #FFFDF5;
}

.trail-hero-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #726E67;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.hint-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-poppy, #FF2F21);
  box-shadow: 0 0 10px rgba(255, 47, 33, 0.6);
  animation: hintDotPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes hintDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.45); opacity: 1; }
}

/* Lupo Concept Interactive Trail Canvas & Cards */
.trail-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  isolation: isolate;
  pointer-events: none;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: center center;
}

.trail-card {
  position: absolute;
  width: var(--card-w, 170px);
  height: var(--card-h, 220px);
  pointer-events: auto;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  background-color: #f2eee5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style paint;
  user-select: none;
  -webkit-user-select: none;
  
  /* Lupo Concept Initial State: opacity 0, scale 0.5, blur 5px, rotateX 50deg */
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.5) rotateX(50deg);
  filter: blur(5px);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 400ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms ease;
}

/* Lupo Concept Active/Entered State: opacity 1, scale 1, blur 0px, rotateX 0deg */
.trail-card.active {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1) rotateX(0deg);
  filter: blur(0px);
}

/* Lupo Concept Exiting State: opacity 0, scale 0.5, blur 10px, rotateX 0deg */
.trail-card.exiting {
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.5) rotateX(0deg);
  filter: blur(10px);
  pointer-events: none;
}

/* Hover Lift */
.trail-card:hover {
  transform: translate3d(-50%, -50%, 0) scale(1.04) rotateX(0deg) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
  filter: blur(0px) !important;
  opacity: 1 !important;
}

/* --- Mobile Drag Onboarding Pointer --- */
.trail-demo-finger {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 48px;
  pointer-events: none;
  z-index: 15;
  transform: translate3d(var(--finger-x, -999px), var(--finger-y, -999px), 0) translate(-42.9%, -21.9%);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.32));
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  transition: opacity 300ms ease;
}

.trail-demo-finger.is-visible {
  opacity: 1;
}

.trail-demo-finger.is-fading {
  opacity: 0;
  transition: opacity 350ms ease;
}

.trail-demo-finger svg {
  width: 100%;
  height: 100%;
  display: block;
}


@media (max-width: 809px) {
  .trail-hero-title {
    font-size: clamp(3.8rem, 18.5vw, 6.4rem);
    line-height: 0.92;
    margin-top: 0;
    margin-bottom: clamp(24px, 5vh, 40px);
  }
  .trail-hero-subtitle {
    font-size: clamp(1.1rem, 4.4vw, 1.4rem);
    line-height: 1.45;
    margin-bottom: 0;
    white-space: normal;
  }
  .subtitle-mobile-break {
    display: block;
  }
  .subtitle-sep {
    display: none;
  }
  .trail-card,
  .trail-card.active,
  .trail-card.exiting {
    width: var(--card-w, 130px);
    height: var(--card-h, 170px);
    filter: none;
    transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 380ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .trail-hero-hint {
    font-size: 0.72rem;
    padding: 6px 16px;
  }
}

/* --- Gallery & Subpage Layouts --- */
.page-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  position: relative;
  z-index: 2;
}

.page-header {
  margin-bottom: 48px;
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  font-weight: normal;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary);
  line-height: 1.08;
  margin-bottom: 12px;
}

.page-subtitle {
  font-family: var(--font-callout);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: normal;
  letter-spacing: 0.015em;
  text-transform: none;
  color: var(--accent-cobalt);
  margin-top: 4px;
}

/* --- Typographic Utility Styles --- */
.type-callout,
.font-callout,
.editorial-callout {
  font-family: var(--font-callout);
  font-style: italic;
  font-weight: normal;
}

.editorial-callout {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.45;
  color: var(--accent-cobalt);
  border-left: 2px solid var(--accent-poppy);
  padding-left: 18px;
  margin: 20px 0;
}

/* --- Fluid Responsive Left-to-Right Masonry Grid --- */
.masonry-gallery {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}

.masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.masonry-item {
  width: 100%;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-surface);
  cursor: pointer;
  contain: layout style;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease;
}

@media (max-width: 1100px) {
  .masonry-gallery { gap: 20px; }
  .masonry-column { gap: 20px; }
}

@media (max-width: 650px) {
  .masonry-gallery { gap: 16px; flex-direction: column; }
  .masonry-column { gap: 16px; width: 100%; }
}

.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.6s var(--ease-out-expo), filter 0.4s ease;
}

.masonry-item:hover img {
  transform: scale(1.025);
}

/* --- Dynamic Scale Editorial Grid (Haiti Design Co.) --- */
.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
}

.editorial-gallery .masonry-item.span-2 {
  grid-column: span 2;
}

.editorial-gallery .masonry-item.span-3 {
  grid-column: span 3;
}

@media (max-width: 1100px) {
  .editorial-gallery {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .editorial-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .editorial-gallery .masonry-item.span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 650px) {
  .editorial-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .editorial-gallery .masonry-item.span-2 {
    grid-column: span 1;
  }
}

/* Empty gallery placeholder card */
.empty-gallery-card {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px dashed var(--border-accent);
  color: var(--text-muted);
  max-width: 600px;
  margin: 40px auto;
}
.empty-gallery-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* --- Fullscreen Lightbox --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  overscroll-behavior: contain;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-topbar {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2010;
  color: #f5f5f7;
}

.lightbox-counter {
  font-family: var(--font-callout);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.lightbox-close-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: all var(--duration-fast) ease;
}

.lightbox-close-btn svg {
  display: block;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: all var(--duration-fast) ease;
}

.lightbox-arrow svg {
  display: block;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-arrow.prev { left: 28px; }
.lightbox-arrow.next { right: 28px; }

@media (max-width: 768px) {
  .lightbox-arrow {
    width: 44px;
    height: 44px;
  }
  .lightbox-arrow.prev { left: 14px; }
  .lightbox-arrow.next { right: 14px; }
  .lightbox-close-btn {
    width: 42px;
    height: 42px;
  }
}

/* --- Video Page Styles --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 32px;
}

@media (max-width: 500px) {
  .video-grid { grid-template-columns: 1fr; gap: 20px; }
}

.video-card {
  background: var(--bg-surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  border-color: var(--border-accent);
}

.video-thumbnail-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.video-card:hover .video-thumbnail-wrap img {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-card:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0c0c0e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out-expo);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.play-circle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}

.video-card:hover .play-circle {
  transform: scale(1.15);
  background: var(--accent-poppy);
  color: #FFFDF5;
}

.video-meta {
  padding: 18px 20px;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Video cards when used inside masonry galleries (Love page) */
.masonry-item.video-card {
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.masonry-item.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  border-color: var(--border-accent);
}

.masonry-item.video-card.no-meta {
  border: none;
  background: transparent;
}

.masonry-item.video-card.no-meta .video-thumbnail-wrap {
  border-radius: 6px;
}

.masonry-item.video-card .video-thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  background: #000;
  overflow: hidden;
}

.masonry-item.video-card .video-thumbnail-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.masonry-item.video-card:hover .video-thumbnail-wrap img {
  transform: scale(1.03);
}

.masonry-item.video-card .video-meta {
  padding: 14px 16px 16px;
}

.masonry-item.video-card .video-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: normal;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.3;
}

.video-tag {
  display: block;
  font-family: var(--font-callout);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-poppy);
  margin-top: 4px;
}

/* Video Player Modal */
.video-player-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.video-player-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-container {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.video-modal-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Music Page Styles (Clean Squarespace Editorial Layout) --- */
.music-layout {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.music-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 44px 0 36px;
}

.music-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 820px) {
  .music-duo-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.music-band-col,
.music-release-col {
  display: flex;
  flex-direction: column;
}

.music-band-section {
  display: flex;
  flex-direction: column;
}

.music-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: normal;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  line-height: 1.2;
}

.music-band-title a {
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--duration-fast) ease;
}

.music-band-title a .ext-arrow {
  font-size: 0.85em;
  color: var(--text-muted);
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.music-band-title a:hover {
  color: var(--accent-poppy);
}

.music-band-title a:hover .ext-arrow {
  color: var(--accent-poppy);
  transform: translate(2px, -2px);
}

.music-player-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background: transparent;
}

.music-player-wrap iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 12px;
  background-color: transparent;
}

.music-notes {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 14px;
}

.music-notes em {
  font-family: var(--font-callout);
  font-style: italic;
  color: var(--text-primary);
}

/* --- Connect Page & Snoop Dogg Glasses Easter Egg --- */
.connect-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .connect-container { grid-template-columns: 1fr; gap: 48px; }
}

.connect-portrait-col {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.connect-portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  background-color: var(--bg-surface);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.connect-portrait-note {
  margin-top: 14px;
  font-family: var(--font-callout);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.01em;
}

.connect-credit-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 25, 23, 0.28);
  font-style: italic;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color var(--duration-fast) ease, text-decoration-color var(--duration-fast) ease;
}

.connect-credit-link:hover {
  color: var(--accent-poppy);
  text-decoration-color: var(--accent-poppy);
}

.connect-credit-link .inline-arrow-svg {
  transition: transform var(--duration-fast) ease;
}

.connect-credit-link:hover .inline-arrow-svg {
  transform: translate(1.5px, -1.5px);
}

[data-theme="dark"] .connect-credit-link {
  text-decoration-color: rgba(240, 237, 230, 0.35);
}

.connect-portrait-wrapper img.portrait-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  transition: transform 0.4s var(--ease-out-expo);
  pointer-events: none;
}

/* Interactive Snoop Dogg Sunglasses Floating Sprite */
.snoop-glasses-follower {
  position: absolute;
  width: 28%;
  min-width: 84px;
  max-width: 135px;
  height: auto;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  transition: transform 0.04s ease-out;
  -webkit-touch-callout: none;
  user-select: none;
}

.connect-portrait-wrapper:hover .snoop-glasses-follower {
  display: block;
}

.snoop-glasses-follower.locked {
  display: block !important;
  pointer-events: auto;
}

@keyframes snoopDropIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -160%) scale(1.3) rotate(-14deg);
  }
  65% {
    opacity: 1;
    transform: translate(-50%, -46%) scale(1.03) rotate(3deg);
  }
  85% {
    transform: translate(-50%, -52%) scale(0.98) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

.snoop-glasses-follower.dropping {
  animation: snoopDropIn 0.62s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

/* Mobile-only callout for Snoop Dogg Sunglasses Easter egg */
.glasses-hint {
  display: none;
}

@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .glasses-hint {
    display: block;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(14, 14, 18, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 9999px;
    font-family: var(--font-callout);
    font-style: italic;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    pointer-events: none;
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
    opacity: 0.95;
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.40);
    transition: all var(--duration-fast) ease;
  }
}


/* Connect Editorial Details */
.connect-editorial {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.connect-bio {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Contact Sheet Form Component --- */
.contact-sheet-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.contact-sheet-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-sheet-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: normal;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.2;
}

.contact-sheet-desc {
  font-family: var(--font-callout);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-sheet-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.form-row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row-duo {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-poppy);
  box-shadow: 0 0 0 3px rgba(255, 37, 0, 0.12);
}

.custom-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-wrap select {
  cursor: pointer;
  padding-right: 36px;
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 9999px;
  background-color: #1A1917;
  color: #FFFDF5 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, color var(--duration-fast) ease;
}

.contact-submit-btn span {
  color: #FFFDF5 !important;
  display: inline-block;
}

.contact-submit-btn .btn-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--duration-fast) ease;
}

.contact-submit-btn:hover {
  background-color: var(--accent-poppy);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 47, 33, 0.35);
}

.contact-submit-btn:hover span {
  color: #ffffff !important;
}

.contact-submit-btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-location-pill {
  font-family: var(--font-callout);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-response-alert {
  display: none;
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.form-response-alert.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
}

.form-response-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

.connect-socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.connect-social-badge {
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--duration-fast) ease;
}

.connect-social-badge:hover {
  background: var(--accent-poppy);
  border-color: var(--accent-poppy);
  color: #FFFDF5;
  transform: translateY(-2px);
}

.connect-social-badge:hover .inline-arrow-svg {
  transform: translate(2px, -2px);
}

/* --- Connect Page: Instagram Dispatches Carousel --- */
.connect-instagram-section {
  width: 100%;
  max-width: 1200px;
  margin: 70px auto 0 auto;
  padding-top: 50px;
  border-top: 1px solid rgba(26, 25, 23, 0.08);
}

.instagram-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.instagram-eyebrow {
  display: block;
  font-family: var(--font-callout);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent-poppy);
  margin-bottom: 4px;
}

.instagram-heading {
  font-family: var(--font-brand);
  font-size: 2.1rem;
  font-weight: normal;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.instagram-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.instagram-follow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 253, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 25, 23, 0.12);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--duration-fast) ease;
}

.instagram-follow-pill:hover {
  background: var(--accent-poppy);
  border-color: var(--accent-poppy);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 47, 33, 0.28);
}

.instagram-follow-pill .instagram-pill-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.instagram-follow-pill .pill-arrow {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform var(--duration-fast) ease;
}

.instagram-follow-pill:hover .pill-arrow {
  transform: translate(2px, -2px);
}

.instagram-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 253, 245, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 25, 23, 0.12);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--duration-fast) ease;
}

.ig-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ig-nav-btn:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFDF5;
  transform: scale(1.05);
}

/* Track and horizontal scroll */
.instagram-carousel-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.instagram-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 18px 2px;
  cursor: grab;
  scrollbar-width: none; /* Firefox */
}

.instagram-carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.instagram-carousel-track.grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Individual Cards */
.instagram-card {
  flex: 0 0 230px;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: #edeae0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.instagram-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.instagram-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.instagram-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.instagram-card:hover .instagram-card-media img {
  transform: scale(1.06);
}

/* Card Overlay on Hover */
.instagram-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 13, 12, 0.72) 0%, rgba(14, 13, 12, 0.2) 45%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: opacity 0.35s ease;
}

.instagram-card:hover .instagram-card-overlay {
  opacity: 1;
}

.instagram-card-tag {
  font-family: var(--font-callout);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--accent-butter);
  letter-spacing: 0.02em;
}

.instagram-card-caption {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.35;
  color: #FFFDF5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-card-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-poppy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.instagram-card-badge .inline-arrow-svg {
  transition: transform var(--duration-fast) ease;
}

.instagram-card:hover .instagram-card-badge .inline-arrow-svg {
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .connect-instagram-section {
    margin-top: 50px;
    padding-top: 36px;
  }
  .instagram-card {
    flex: 0 0 180px;
  }
  .instagram-heading {
    font-size: 1.8rem;
  }
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  padding: 40px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
}

/* Mobile Media Queries */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .mobile-nav-toggle { display: flex; }
  .mobile-nav-overlay { display: flex; }
}

@media (max-width: 768px) {
  /* Prevent overlap between homepage social dock and slideshow controls on mobile */
  .home-bottom-dock {
    left: 16px;
    right: auto;
    transform: none;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 4px 8px;
    gap: 4px;
  }

  .home-bottom-dock .social-dock-icon {
    width: 32px;
    height: 32px;
  }

  .home-bottom-dock .social-dock-icon svg {
    width: 15px;
    height: 15px;
  }

  .slideshow-controls {
    gap: 6px;
  }

  .slide-ctrl-btn {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 360px) {
  .home-bottom-dock {
    left: 10px;
    padding: 3px 6px;
    gap: 3px;
  }

  .home-bottom-dock .social-dock-icon {
    width: 28px;
    height: 28px;
  }

  .home-bottom-dock .social-dock-icon svg {
    width: 13px;
    height: 13px;
  }

  .slideshow-controls {
    gap: 4px;
  }

  .slide-ctrl-btn {
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================================
   INTERACTIVE ANIMATIONS & EASTER EGGS SUITE (Features 1, 2, 6, 7)
   ========================================================================== */

/* --- 1. Film Page: Analog Darkroom Tools & Loupe --- */
.analog-darkroom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -10px auto 36px;
  max-width: 1200px;
  padding: 0 20px;
}

.darkroom-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.darkroom-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--glass-text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  user-select: none;
}

.darkroom-tool-btn:hover {
  color: var(--accent-poppy);
  background: var(--glass-hover-bg);
  border-color: rgba(255, 47, 33, 0.15);
}

.darkroom-tool-btn.active {
  color: #FFFFFF;
  background: var(--accent-poppy);
  border-color: var(--accent-poppy);
  box-shadow: 0 4px 14px rgba(255, 47, 33, 0.4);
  font-weight: 700;
}

.darkroom-tool-btn kbd {
  font-family: inherit;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: var(--glass-text);
  margin-left: 2px;
}

.darkroom-tool-btn.active kbd {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.darkroom-tool-btn .tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.darkroom-tool-btn .tool-svg,
.darkroom-tool-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  display: block;
}

/* 2.5x Photographer's Loupe */
.film-loupe-lens {
  position: fixed;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2500;
  display: none;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  border: 3px solid #222226;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  will-change: transform, left, top;
}

.film-loupe-lens.active {
  display: block;
}

.film-loupe-lens::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 60%);
  pointer-events: none;
}

.loupe-crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loupe-crosshair::before,
.loupe-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
}

.loupe-crosshair::before {
  top: 50%;
  left: 20%;
  right: 20%;
  height: 1px;
}

.loupe-crosshair::after {
  left: 50%;
  top: 20%;
  bottom: 20%;
  width: 1px;
}

/* Negative Film Mode Inversion (Authentic Kodak Portra C-41 Orange Mask) */
body.film-negative-mode {
  background-color: #140803 !important;
  color: #FFFDF5;
  transition: background-color 0.4s ease;
}

/* Page Header: "Film" & Subtitle turn vibrant Kodak C-41 negative orange */
body.film-negative-mode .page-title {
  color: #FF8A3D !important;
  text-shadow: 0 0 28px rgba(255, 138, 61, 0.45);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

body.film-negative-mode .page-subtitle {
  color: #FFB074 !important;
  transition: color 0.35s ease;
}

/* Darkroom Tools Bar Inversion */
body.film-negative-mode .darkroom-tools {
  background: rgba(30, 14, 6, 0.94) !important;
  border: 1px solid rgba(255, 140, 60, 0.45) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 120, 40, 0.25) !important;
}

body.film-negative-mode .darkroom-tool-btn {
  color: rgba(255, 235, 220, 0.9);
}

body.film-negative-mode .darkroom-tool-btn:hover {
  color: #FFA558;
  background: rgba(255, 140, 60, 0.16);
}

body.film-negative-mode .darkroom-tool-btn.active {
  color: #FFFFFF;
  background: #FF3B22;
  border-color: #FF3B22;
  box-shadow: 0 4px 16px rgba(255, 59, 34, 0.5);
}

body.film-negative-mode .darkroom-tool-btn kbd {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFE6D5;
}

body.film-negative-mode .site-footer {
  border-color: rgba(255, 140, 60, 0.2);
  color: rgba(255, 210, 190, 0.6);
}

body.film-negative-mode .masonry-gallery .masonry-item {
  background: #c25f1e !important;
  box-shadow: 0 8px 26px rgba(194, 95, 30, 0.35);
  border: 1px solid rgba(220, 115, 45, 0.45);
}

body.film-negative-mode .masonry-gallery .masonry-item img,
body.film-negative-mode .lightbox-content img {
  filter: invert(1) sepia(0.85) saturate(2.4) hue-rotate(332deg) contrast(1.18) brightness(0.92);
  transition: filter 0.4s ease;
}

/* Synchronize Loupe with Negative Mode */
body.film-negative-mode .film-loupe-lens {
  filter: invert(1) sepia(0.85) saturate(2.4) hue-rotate(332deg) contrast(1.18) brightness(0.92);
  border-color: #d06f2d !important;
  box-shadow: 0 16px 40px rgba(208, 111, 45, 0.45), inset 0 0 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 140, 60, 0.5);
}

/* Loupe Active Mode State */
body.loupe-mode-active .masonry-gallery .masonry-item {
  cursor: crosshair !important;
}



/* --- 3. Love Page: Developing Instax / Polaroid --- */
.polaroid-develop-card {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.polaroid-develop-card img {
  transition: filter 1.8s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.polaroid-develop-card.undeveloped img {
  filter: brightness(1.45) contrast(0.55) saturate(0.22) blur(1.5px) sepia(0.2);
}

.polaroid-develop-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFDF5;
  font-family: var(--font-callout);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 5;
}

.polaroid-develop-card.developing .polaroid-develop-badge {
  background: rgba(255, 47, 33, 0.85);
  border-color: rgba(255, 47, 33, 0.4);
}


/* ==========================================================================
   16. Home Page: View Switcher & 35mm Darkroom Proof Sheet
   ========================================================================== */

/* Home Bottom Controls Group */
.home-bottom-controls {
  position: fixed;
  bottom: 25px;
  right: 28px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.home-view-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-sides);
  border-right: 1px solid var(--glass-border-sides);
  border-bottom: 1px solid var(--glass-border-bottom);
  border-radius: 9999px;
  padding: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), var(--glass-inner-bevel);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--glass-text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: all var(--duration-fast) var(--ease-out-expo);
  user-select: none;
}

.view-switch-btn svg {
  display: block;
  stroke: currentColor;
  opacity: 0.8;
  transition: opacity var(--duration-fast) ease, stroke var(--duration-fast) ease;
}

.view-switch-btn:hover {
  color: var(--accent-poppy);
}

.view-switch-btn:hover svg {
  opacity: 1;
}

.view-switch-btn.active {
  background: var(--accent-poppy);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 47, 33, 0.4);
}

.view-switch-btn.active svg {
  stroke: #FFFFFF;
  opacity: 1;
  stroke-width: 2.2;
}

/* In proof sheet mode, hide pause/next slideshow buttons seamlessly */
body.proof-sheet-active .slideshow-controls {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

/* Home Proof Sheet Fullscreen Overlay */
.home-proof-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #09090b;
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 96px 20px 110px 20px;
}

body.proof-sheet-active .home-proof-sheet {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Authentic Darkroom Fiber Paper Board */
.proof-sheet-board {
  max-width: 1140px;
  margin: 0 auto;
  background: #0e0e11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 0 100px rgba(0, 0, 0, 0.5);
  padding: 24px 28px 36px 28px;
  position: relative;
}

/* Contact Sheet Darkroom Header */
.proof-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 16px;
  margin-bottom: 24px;
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  user-select: none;
}

.proof-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.proof-brand {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #CCA45E; /* Kodak classic rebate amber */
  text-transform: uppercase;
}

.proof-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.proof-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Interactive China Marker Legend Button */
.proof-legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: rgba(255, 46, 46, 0.08);
  border: 1px solid rgba(255, 46, 46, 0.3);
  color: rgba(255, 95, 85, 0.95);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: all var(--duration-fast) var(--ease-out-expo);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.proof-legend-btn:hover {
  background: rgba(255, 46, 46, 0.18);
  border-color: rgba(255, 46, 46, 0.6);
  color: #ff6e65;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 46, 46, 0.28);
}

.proof-legend-btn:active {
  transform: translateY(0) scale(0.98);
}

.proof-legend-btn .proof-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2e2e;
  box-shadow: 0 0 8px rgba(255, 46, 46, 0.9);
  transition: all var(--duration-fast) ease;
}

.proof-legend-btn .proof-legend-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: rgba(255, 46, 46, 0.25);
  color: #ff6e65;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  transition: all var(--duration-fast) ease;
}

/* Active / Filtered State */
.proof-legend-btn.active {
  background: #ff2e2e;
  border-color: #ff2e2e;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 46, 46, 0.7), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.proof-legend-btn.active .proof-legend-dot {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.proof-legend-btn.active .proof-legend-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.proof-batch {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

/* Strips Container */
.proof-strips-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Single 35mm Film Strip */
.proof-strip {
  background: #080809;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* Top & Bottom Sprocket Tracks */
.sprocket-track {
  height: 24px;
  background-color: #070708;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow: hidden;
  user-select: none;
}

.sprocket-perfs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='24' viewBox='0 0 28 24'%3E%3Crect x='9' y='4' width='10' height='16' rx='3' fill='%23141418' stroke='%23030304' stroke-width='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left center;
  opacity: 0.9;
  pointer-events: none;
}

.rebate-row {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: #CCA45E; /* Kodak amber edge exposure */
  opacity: 0.85;
  pointer-events: none;
}

.rebate-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rebate-arrow {
  font-size: 0.5rem;
}

.rebate-arrow-svg {
  width: 5px;
  height: 6px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Frames Row (5 frames per strip) */
.proof-frames-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 8px 14px;
  background: #050506;
}

/* Individual Frame */
.proof-frame {
  position: relative;
  cursor: pointer;
  aspect-ratio: 3 / 2;
  background: #111114;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease, border-color 0.25s ease;
}

.proof-frame:hover {
  transform: translateY(-2px) scale(1.02);
  z-index: 4;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 255, 255, 0.1);
}

.proof-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.proof-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.03) saturate(1.02);
  transition: transform 0.35s ease;
}

.proof-frame:hover img {
  transform: scale(1.04);
}

/* Authentic 35mm Darkroom Rotation for Portrait Exposures (Option 1) */
.proof-frame.is-rotated-frame .proof-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.proof-frame.is-rotated-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% * 2 / 3);
  height: calc(100% * 3 / 2);
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.proof-frame.is-rotated-frame:hover img {
  transform: translate(-50%, -50%) rotate(90deg) scale(1.04);
}

/* Red China Marker / Grease Pencil SVGs */
.grease-pencil-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.92;
  filter: drop-shadow(0 0 2px rgba(255, 30, 20, 0.8));
  mix-blend-mode: screen;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.grease-pencil-svg path,
.grease-pencil-svg line,
.grease-pencil-svg circle {
  stroke-dasharray: 450;
  stroke-dashoffset: 0;
}

.grease-pencil-svg.draw-stroke path,
.grease-pencil-svg.draw-stroke line,
.grease-pencil-svg.draw-stroke circle {
  animation: drawGreaseStroke 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawGreaseStroke {
  0% {
    stroke-dashoffset: 450;
    opacity: 0.2;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Hero Select Badge on Frame */
.proof-hero-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(255, 46, 46, 0.9);
  color: #ffffff;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo);
}

.hero-filter-active .proof-hero-tag,
.proof-frame.is-hero-select:hover .proof-hero-tag {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Selects Isolation Filter --- */
.hero-filter-active .proof-frame:not(.is-hero-select) {
  opacity: 0.15;
  filter: grayscale(85%) contrast(85%);
  transform: scale(0.96);
  transition: opacity 0.35s var(--ease-out-expo), filter 0.35s ease, transform 0.35s var(--ease-out-expo);
}

.hero-filter-active .proof-frame:not(.is-hero-select):hover {
  opacity: 0.75;
  filter: grayscale(20%) contrast(100%);
  transform: scale(1.0);
}

.hero-filter-active .proof-frame.is-hero-select {
  transform: scale(1.04);
  z-index: 6;
  border-color: #ff2e2e;
  box-shadow: 0 0 0 2px rgba(255, 46, 46, 0.8), 0 10px 30px rgba(255, 46, 46, 0.4), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-filter-active .proof-frame.is-hero-select .grease-pencil-svg {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 46, 46, 1)) drop-shadow(0 0 1px #ffffff);
  animation: greasePencilPulse 2s ease-in-out infinite alternate;
}

@keyframes greasePencilPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(255, 46, 46, 0.85)); }
  100% { transform: scale(1.02); filter: drop-shadow(0 0 7px rgba(255, 46, 46, 1)) drop-shadow(0 0 2px #ff8888); }
}

/* Frame numbering badge */
.frame-edge-num {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: #CCA45E;
  opacity: 0.8;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   16B. 5-Up Art Director Light Table (Concept 2)
   ========================================================================== */

.light-table-active .proof-strips-container {
  display: none !important;
}

.light-table-active #lightTableContainer {
  display: block !important;
  animation: lightTableFadeIn 0.35s var(--ease-out-expo) forwards;
}

@keyframes lightTableFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.light-table-container {
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.04) 0%, rgba(10, 11, 14, 0.98) 70%), #07080a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 22px 24px;
  box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.02), 0 24px 60px rgba(0, 0, 0, 0.9);
  margin-top: 4px;
}

.light-table-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
  flex-wrap: wrap;
}

.light-table-subbar-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.light-table-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff3326;
  display: flex;
  align-items: center;
  gap: 6px;
}

.light-table-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3326;
  box-shadow: 0 0 6px #ff3326;
}

.light-table-subbar-meta {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.light-table-subbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.light-table-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.light-table-view-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.light-table-view-btn.active {
  background: rgba(255, 46, 46, 0.18);
  border-color: rgba(255, 46, 46, 0.6);
  color: #ff5549;
  box-shadow: 0 0 10px rgba(255, 46, 46, 0.3);
}

.light-table-view-btn kbd {
  display: inline-block;
  padding: 1px 4px;
  font-size: 0.58rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-left: 2px;
}

/* Luminous frosted acrylic light table grid */
.light-table-board-surface {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  background: #040507;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.02);
}

.light-table-card {
  position: relative;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-out-expo), border-color 0.25s ease, box-shadow 0.28s ease;
}

.light-table-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #ff2e2e;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 46, 46, 0.25);
  z-index: 4;
}

.light-table-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000000;
  overflow: hidden;
}

.light-table-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(1.02);
  transition: transform 0.35s ease;
}

.light-table-card:hover .light-table-img-wrap img {
  transform: scale(1.04);
}

.light-table-hero-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(255, 46, 46, 0.92);
  color: #ffffff;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.light-table-card-meta {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0a0b0e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-frame-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: #CCA45E;
}

.card-frame-badge .badge-tag {
  color: #ff3326;
  font-weight: 700;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-spec {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-palette-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.palette-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Comparative Exposure & Medium Ledger */
.light-table-ledger-wrap {
  margin-top: 24px;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.light-table-ledger-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.light-table-ledger-title {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.light-table-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.light-table-ledger-table th {
  text-align: left;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.light-table-ledger-table td {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.light-table-ledger-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.light-table-ledger-table td.td-frame {
  color: #ff3326;
  font-weight: 700;
}

.light-table-ledger-table td.td-stock {
  color: #F7E6BB;
}

@media (max-width: 1100px) {
  .light-table-board-surface {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .light-table-board-surface {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .light-table-ledger-wrap {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .light-table-board-surface {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   17. Lightbox: Analog Film Stock & Recipe HUD
   ========================================================================== */

.lightbox-bottombar {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  padding: 0 20px;
}

.lightbox-recipe-hud {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(14, 14, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 92vw;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.lightbox-recipe-hud::-webkit-scrollbar {
  display: none;
}

.recipe-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.recipe-bullet {
  color: #ff3322;
  font-size: 0.65rem;
  line-height: 1;
}

.recipe-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.64rem;
}

.recipe-val {
  font-weight: 500;
  color: #ffffff;
}

.recipe-divider {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

.recipe-item.hero-select-tag {
  background: rgba(255, 46, 46, 0.18);
  border: 1px solid rgba(255, 46, 46, 0.45);
  padding: 1px 7px;
  border-radius: 9999px;
  color: #ff5f55;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.recipe-item.hero-select-tag .red-bullet {
  color: #ff2e2e;
}


/* Proof Sheet Responsive Breakpoints */
@media (max-width: 900px) {
  .proof-sheet-board {
    padding: 16px 14px 24px 14px;
  }

  .proof-frames-row {
    gap: 5px;
    padding: 6px 8px;
  }

  .sprocket-track {
    height: 20px;
    padding: 0 8px;
  }

  .rebate-row {
    font-size: 0.5rem;
  }

  .home-bottom-controls {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .view-switch-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .lightbox-bottombar {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .lightbox-recipe-hud {
    font-size: 0.65rem;
    padding: 6px 14px;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  /* Prevent social dock from colliding with lookbook controls on mobile screens; social links remain available in mobile nav drawer */
  .home-bottom-dock {
    display: none;
  }

  .home-bottom-controls {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }

  .view-switch-btn {
    padding: 5px 9px;
    font-size: 0.7rem;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .home-proof-sheet {
    padding: 85px 8px 90px 8px;
  }

  .proof-sheet-board {
    padding: 12px 8px 18px 8px;
  }

  .proof-legend-btn {
    padding: 3px 8px;
    font-size: 0.6rem;
    gap: 5px;
  }
  .proof-legend-btn .proof-legend-dot {
    width: 6px;
    height: 6px;
  }

  /* Make strips horizontally scrollable with snap on very small screens to keep 35mm film integrity */
  .proof-strip {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .proof-strip::-webkit-scrollbar {
    display: none;
  }

  .proof-frames-row {
    min-width: 520px;
  }

  .sprocket-track {
    min-width: 520px;
  }
}

/* ==========================================================================
   18. Lightbox: Spec Drawer & Chromatic Swatch Palette (Feature 4)
   ========================================================================== */

/* Spec & Palette pill inside Lightbox HUD */
.hud-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 4px;
}

.lightbox-recipe-hud:hover .hud-spec-pill,
.hud-spec-pill:hover {
  background: var(--accent-poppy, #FF2F21);
  border-color: var(--accent-poppy, #FF2F21);
  color: #ffffff;
  transform: translateY(-1px);
}

.hud-palette-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

.hud-palette-dots .palette-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-recipe-hud:hover .hud-palette-dots .palette-dot {
  transform: scale(1.15);
}

.hud-spec-pill svg {
  transition: transform 0.25s ease;
}

.lightbox-spec-drawer.open ~ .lightbox-bottombar .hud-spec-pill svg,
.lightbox-modal.drawer-open .hud-spec-pill svg {
  transform: rotate(180deg);
}

.lightbox-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Lightbox Spec Drawer Slide-Up Panel */
.lightbox-spec-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 85vh;
  background: rgba(14, 13, 12, 0.94);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8);
  z-index: 25;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.35s;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.lightbox-spec-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.spec-drawer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 28px calc(32px + env(safe-area-inset-bottom, 0px)) 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Drawer Header */
.spec-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
}

.spec-drawer-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-drawer-eyebrow {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-poppy, #FF2F21);
  font-weight: 600;
}

.spec-drawer-title {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.spec-drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.spec-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Section Labels */
.spec-section-label {
  display: block;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}

/* Palette Strip */
.spec-palette-strip {
  display: flex;
  gap: 12px;
  width: 100%;
}

.spec-swatch-chip {
  flex: 1;
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 4px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.spec-swatch-chip:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.swatch-hex-tag {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

/* Technical Ledger Grid */
.spec-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.spec-ledger-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ledger-label {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.ledger-val {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  word-break: break-word;
}





/* ==========================================================================
   20. Site Toast System
   ========================================================================== */

.site-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 19, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Responsive styles for Spec Drawer */
@media (max-width: 768px) {
  .spec-ledger-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-palette-strip {
    flex-wrap: wrap;
  }

  .spec-swatch-chip {
    min-width: calc(33.33% - 8px);
  }
}

