/* ==========================================================================
   ÖRS CSERESNYÉS — TRAVEL PHOTOGRAPHY & VISUAL ART
   Nocturnal Slate & Dynamic Ambient Dark Design System
   ========================================================================== */

:root {
  /* MANDATORY per modern-web-guidance (dark-mode): viewport-wide color-scheme on :root */
  color-scheme: dark;

  /* Rich dark palette (not pure black: deep midnight slate, indigo-charcoal, warm tungsten) */
  --bg-canvas: #0c0f16;
  --bg-elevated: #121722;
  --bg-surface: #181f2e;
  --bg-surface-hover: #1f283b;
  --bg-glass: rgba(20, 26, 39, 0.76);
  --bg-glass-strong: rgba(14, 18, 28, 0.9);

  /* Text hierarchy */
  --text-primary: #f3f5f8;
  --text-secondary: #a8b3c7;
  --text-muted: #6e7b94;

  /* Accents & Dynamic Ambient Color (updated live from active photograph via Canvas) */
  --accent-gold: #e5a94c;
  --accent-gold-soft: rgba(229, 169, 76, 0.16);
  --accent-cyan: #63b3ed;
  --ambient-r: 229;
  --ambient-g: 169;
  --ambient-b: 76;
  --ambient-color: rgb(var(--ambient-r) var(--ambient-g) var(--ambient-b));
  --ambient-glow: rgba(var(--ambient-r), var(--ambient-g), var(--ambient-b), 0.24);

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --shadow-card: 0 22px 50px -12px rgba(4, 6, 12, 0.72);
  --shadow-glow: 0 20px 60px -15px var(--ambient-glow);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1360px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Scrollbars per modern-web-guidance (dark-mode): pair scrollbar-color with scrollbar-width for macOS */
  --scrollbar-thumb: #2f3b52;
  --scrollbar-track: #0c0f16;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  accent-color: var(--accent-gold);
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(36, 49, 77, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(28, 38, 60, 0.4) 0%, transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.6s ease;
}

/* Theater Dim Lights Mode */
body.theater-dimmed {
  --bg-canvas: #06080c;
  --bg-elevated: #090c12;
}
body.theater-dimmed .site-header,
body.theater-dimmed .gallery-section,
body.theater-dimmed .bio-section,
body.theater-dimmed .contact-section,
body.theater-dimmed .site-footer {
  opacity: 0.22;
  filter: saturate(0.4);
  transition: opacity 0.5s ease, filter 0.5s ease;
}
body.theater-dimmed .site-header:hover {
  opacity: 1;
  filter: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-gold);
}

.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--accent-gold);
  color: #0c0f16;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Top Scroll Progress Bar */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--ambient-color), var(--accent-cyan));
  box-shadow: 0 0 12px var(--accent-gold);
  transition: width 0.08s linear;
}

/* Dynamic Ambient Stage Backlight */
.ambient-stage-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    750px circle at 50% 42%,
    rgba(var(--ambient-r), var(--ambient-g), var(--ambient-b), 0.13),
    transparent 70%
  );
  transition: background 0.7s ease;
}

/* Custom Interactive Viewfinder Cursor Reticle (Desktop Pointer Only) */
.cursor-reticle {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-reticle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) scale(0.85);
    transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
  }
  .cursor-reticle.is-active {
    opacity: 1;
    width: 68px;
    height: 68px;
    background: rgba(12, 15, 22, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 50%;
  }
  .reticle-corner {
    position: absolute;
    width: 9px;
    height: 9px;
    border-color: var(--accent-gold);
    border-style: solid;
    transition: all 0.2s ease;
  }
  .reticle-corner.tl { top: 6px; left: 6px; border-width: 1.5px 0 0 1.5px; }
  .reticle-corner.tr { top: 6px; right: 6px; border-width: 1.5px 1.5px 0 0; }
  .reticle-corner.bl { bottom: 6px; left: 6px; border-width: 0 0 1.5px 1.5px; }
  .reticle-corner.br { bottom: 6px; right: 6px; border-width: 0 1.5px 1.5px 0; }
  .reticle-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--text-primary);
    font-weight: 500;
  }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 120;
  background: rgba(12, 15, 22, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(12, 15, 22, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.header-inner {
  width: min(100% - 2.5rem, var(--container-max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.aperture-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(229, 169, 76, 0.18), rgba(99, 179, 237, 0.1));
  border: 1px solid rgba(229, 169, 76, 0.4);
  color: var(--accent-gold);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand-logo:hover .aperture-mark {
  transform: rotate(90deg) scale(1.06);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}
.nav-link.active {
  box-shadow: inset 0 0 0 1px rgba(229, 169, 76, 0.38);
}
.nav-idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
  opacity: 0.85;
}
.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: rgba(229, 169, 76, 0.15);
  color: var(--accent-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quick-lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-highlight);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.quick-lightbox-btn:hover {
  border-color: var(--accent-gold);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger-line {
  width: 18px;
  height: 1.8px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.8px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION WITH VIEWFINDER HUD
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-backdrop-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.68) contrast(1.06) saturate(1.08);
  transform: scale(1.05);
  transition: opacity 0.55s ease, transform 8s ease-out;
}
.hero-bg-image.ken-burns {
  transform: scale(1.12);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 15, 22, 0.65) 0%, rgba(12, 15, 22, 0.25) 42%, rgba(12, 15, 22, 0.96) 100%),
    radial-gradient(circle at center, transparent 35%, rgba(12, 15, 22, 0.72) 100%);
}

/* Camera Viewfinder HUD Overlay */
.viewfinder-hud {
  position: absolute;
  inset: calc(var(--header-height) + 1.25rem) 2rem 2rem 2rem;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.35rem;
}

.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(243, 245, 248, 0.65);
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(12, 15, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulseDot 2.4s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.hud-rule-of-thirds {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  opacity: 0.18;
}
.hud-rule-of-thirds span {
  border: 0.5px dashed rgba(255, 255, 255, 0.22);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin-inline: 0;
  padding-left: max(3.25rem, calc((100vw - var(--container-max)) / 2 + 1.25rem));
  padding-right: 2.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--accent-gold);
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-title .serif-italic {
  font-size: 1.12em;
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, #e5a94c 0%, #cf8729 100%);
  color: #0c0f16;
  box-shadow: 0 10px 28px rgba(229, 169, 76, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(229, 169, 76, 0.42);
}
.btn-glass {
  background: rgba(24, 31, 46, 0.72);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}
.btn-glass:hover {
  background: rgba(34, 44, 65, 0.9);
  border-color: var(--accent-gold);
}
.btn-sm {
  padding: 0.58rem 1.15rem;
  font-size: 0.82rem;
}

.hero-featured-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(18, 23, 34, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  text-align: center;
  max-width: 100%;
}
.strip-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.strip-current-title {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 195px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.strip-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.strip-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-highlight);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.strip-arrow:hover {
  background: var(--accent-gold);
  color: #0c0f16;
  border-color: var(--accent-gold);
}
.strip-counter {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  padding-inline: 0.3rem;
}

/* ==========================================================================
   COMMON SECTION HEADERS
   ========================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-title:focus {
  outline: none;
}

.section-desc {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ==========================================================================
   INTERACTIVE 3D FLIPPABLE SPOTLIGHT DECK (LEFT / RIGHT ARROWS)
   ========================================================================== */
.spotlight-stage-wrapper {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 31, 46, 0.85) 0%, rgba(16, 21, 32, 0.94) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.spotlight-ambient-orb {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(var(--ambient-r), var(--ambient-g), var(--ambient-b), 0.25),
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  transition: background 0.6s ease;
}

.spotlight-deck-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.deck-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.deck-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ambient-color);
  box-shadow: 0 0 12px var(--ambient-color);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.deck-counter {
  font-weight: 600;
  color: var(--text-primary);
}
.deck-divider {
  color: var(--text-muted);
}
.deck-category {
  color: var(--accent-gold);
}

.deck-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.deck-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.deck-action-btn:hover,
.deck-action-btn[aria-pressed="true"] {
  color: var(--text-primary);
  border-color: var(--accent-gold);
  background: rgba(229, 169, 76, 0.14);
}

/* Carousel & Arrows */
.spotlight-carousel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  perspective: 1600px;
}

.flip-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-highlight);
  background: rgba(18, 23, 34, 0.88);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, border-color 0.22s ease;
  z-index: 5;
}
.flip-arrow:hover {
  background: var(--accent-gold);
  color: #0c0f16;
  border-color: var(--accent-gold);
  transform: scale(1.08);
}
.flip-arrow:active {
  transform: scale(0.95);
}

.spotlight-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 52vw, 560px);
  transform-style: preserve-3d;
  outline: none;
}

.spotlight-side-card {
  position: absolute;
  width: 54%;
  max-height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 0.26;
  filter: blur(1.5px) brightness(0.6);
  pointer-events: none;
  border: 1px solid var(--border-subtle);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}
.spotlight-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotlight-side-card.prev-card {
  transform: translate3d(-44%, 0, -180px) rotateY(24deg) scale(0.85);
}
.spotlight-side-card.next-card {
  transform: translate3d(44%, 0, -180px) rotateY(-24deg) scale(0.85);
}

.spotlight-main-card {
  position: relative;
  z-index: 3;
  width: min(100%, 880px);
  background: rgba(12, 15, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.72);
  transform-style: preserve-3d;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

/* 3D Flip Animation Keyframes when clicking Left/Right Arrows */
.spotlight-main-card.flip-next {
  animation: cardFlipNext 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}
.spotlight-main-card.flip-prev {
  animation: cardFlipPrev 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardFlipNext {
  0% {
    opacity: 0.35;
    transform: perspective(1400px) translateX(55px) rotateY(-18deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: perspective(1400px) translateX(0) rotateY(0deg) scale(1);
  }
}

@keyframes cardFlipPrev {
  0% {
    opacity: 0.35;
    transform: perspective(1400px) translateX(-55px) rotateY(18deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: perspective(1400px) translateX(0) rotateY(0deg) scale(1);
  }
}

.spotlight-img-container {
  position: relative;
  width: 100%;
  height: clamp(250px, 46vw, 500px);
  background: #080b10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}
.spotlight-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}
.spotlight-img-container:hover img {
  transform: scale(1.018);
}

.spotlight-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.spotlight-img-container:hover .spotlight-glare {
  opacity: 1;
}

.spotlight-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.35rem;
  background: rgba(16, 21, 32, 0.95);
  border-top: 1px solid var(--border-subtle);
}

.spotlight-photo-title {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.spotlight-photo-specs {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-icon-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 169, 76, 0.4);
  background: rgba(229, 169, 76, 0.12);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-icon-pill:hover {
  background: var(--accent-gold);
  color: #0c0f16;
}

/* Filmstrip Scrubber under Spotlight */
.spotlight-filmstrip-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.spotlight-filmstrip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
}
.filmstrip-thumb {
  flex: 0 0 74px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.48;
  cursor: pointer;
  background: #0c0f16;
  padding: 0;
  scroll-snap-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.filmstrip-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.filmstrip-thumb.active {
  opacity: 1;
  border-color: var(--accent-gold);
  transform: scale(1.06);
}

/* ==========================================================================
   GALLERY FILTER & SEARCH TOOLBAR + MASONRY GRID
   ========================================================================== */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.filter-pill.active {
  background: var(--accent-gold);
  color: #0c0f16;
  border-color: var(--accent-gold);
  font-weight: 600;
}
.pill-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.85;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  min-width: 240px;
}
.search-box:focus-within {
  border-color: var(--accent-gold);
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.84rem;
  color: var(--text-primary);
}
.search-box input::placeholder {
  color: var(--text-muted);
}

.layout-switcher {
  display: inline-flex;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
}
.layout-btn {
  width: 34px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.layout-btn.active,
.layout-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-gold);
}

/* Photo Grid Layouts */
.photo-grid {
  display: grid;
  gap: 1.35rem;
}
.photo-grid.layout-masonry {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  grid-auto-flow: dense;
}
.photo-grid.layout-cinematic {
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
}
.photo-grid.layout-contact {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.85rem;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}
.photo-grid.layout-masonry .photo-card.is-portrait {
  grid-row: span 2;
}
.photo-grid.layout-masonry .photo-card.is-panoramic {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .photo-grid.layout-masonry .photo-card.is-panoramic {
    grid-column: span 1;
  }
  .photo-grid.layout-cinematic {
    grid-template-columns: 1fr;
  }
}

.photo-card:hover {
  border-color: rgba(229, 169, 76, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.68), 0 0 25px rgba(229, 169, 76, 0.14);
}
.photo-card.is-selected-spotlight {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(229, 169, 76, 0.35);
}

.photo-card-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 230px;
  overflow: hidden;
}
.photo-grid.layout-contact .photo-card-media {
  min-height: 145px;
  aspect-ratio: 4 / 3;
}

.photo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.photo-card:hover .photo-card-media img {
  transform: scale(1.06);
}

.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 15, 22, 0.05) 35%, rgba(12, 15, 22, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.card-top-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.photo-card:hover .card-top-badges {
  opacity: 1;
  transform: translateY(0);
}

.card-frame-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: rgba(12, 15, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--accent-gold);
}
.card-expand-chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(12, 15, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--text-primary);
}

.card-bottom-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Scroll-driven entry animations per modern-web-guidance (scroll-entry-exit-effects) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes cardScrollEntry {
      from {
        opacity: 0.15;
        transform: translateY(36px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .photo-card {
      animation: cardScrollEntry auto ease-out backwards;
      /* MANDATORY per modern-web-guidance: declare animation-timeline AFTER animation shorthand */
      animation-timeline: view(block);
      animation-range: entry 0% entry 28%;
    }
  }
}

/* Fallback class for browsers without CSS view() timeline */
.photo-card.io-hidden {
  opacity: 0;
  transform: translateY(24px);
}
.photo-card.io-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ==========================================================================
   MOVIES / 4K CINEMA SCREENING ROOM
   ========================================================================== */
.cinema-header-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}
@media (max-width: 768px) {
  .cinema-header-controls {
    align-items: flex-start;
  }
}

.cinema-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .cinema-stage-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cinema-screen-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.78);
}

.cinema-aspect-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070b;
}
.cinema-aspect-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cinema-poster-facade {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}
.cinema-poster-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.1);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.cinema-poster-facade:hover img {
  transform: scale(1.04);
  filter: brightness(0.85) saturate(1.15);
}

.cinema-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.2) 0%, rgba(8, 10, 16, 0.88) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.cinema-play-trigger {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: rgba(12, 15, 22, 0.82);
  color: var(--accent-gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.cinema-poster-facade:hover .cinema-play-trigger {
  transform: scale(1.1);
  background: var(--accent-gold);
  color: #0c0f16;
}
.play-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(229, 169, 76, 0.45);
  animation: pulseRing 2.2s infinite ease-out;
}
@keyframes pulseRing {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.32); opacity: 0; }
}

.cinema-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.35rem;
}
.cinema-active-title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  max-width: 600px;
}

.cinema-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.35rem;
  background: rgba(14, 18, 28, 0.95);
  border-top: 1px solid var(--border-subtle);
}

.cinema-now-playing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.reel-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background: rgba(229, 169, 76, 0.15);
  color: var(--accent-gold);
  white-space: nowrap;
}
.cinema-bar-title {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cinema-nav-btn,
.cinema-yt-external {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cinema-nav-btn:hover,
.cinema-yt-external:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Cinema Playlist Column */
.cinema-playlist-column {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.playlist-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.playlist-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cinema-playlist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.playlist-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.playlist-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}
.playlist-item.active {
  background: rgba(229, 169, 76, 0.12);
  border-color: rgba(229, 169, 76, 0.45);
}

.playlist-thumb-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #080a0f;
}
.playlist-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.playlist-play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 15, 22, 0.45);
  color: var(--text-primary);
}
.playlist-item.active .playlist-play-badge {
  background: rgba(229, 169, 76, 0.35);
  color: #fff;
}

.playlist-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.playlist-item-idx {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-gold);
}
.playlist-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   BIO & PRESS RECOGNITION SECTION
   ========================================================================== */
.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .bio-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.bio-portrait-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.portrait-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.bio-portrait-card:hover .portrait-frame img {
  transform: scale(1.03);
}
.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem 0.25rem;
}
.portrait-caption strong {
  display: block;
  font-size: 1.05rem;
}
.portrait-caption span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.coordinates-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem !important;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold) !important;
}

.bio-role-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  margin: 0.75rem 0 1.5rem;
}

.bio-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-style: italic;
  line-height: 1.38;
  color: var(--text-primary);
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent-gold);
  margin-bottom: 1.35rem;
}

.bio-body {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2.25rem;
}
.inline-anchor {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.press-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.press-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.press-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  background: var(--bg-surface);
}
.press-outlet {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.press-article {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding-right: 1.2rem;
}
.press-arrow {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.press-card:hover .press-arrow {
  color: var(--accent-gold);
  transform: translate(2px, -2px);
}

.instagram-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(24, 31, 46, 0.9), rgba(32, 24, 46, 0.75));
  border: 1px solid var(--border-highlight);
}
.insta-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
}
.insta-info p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT SECTION & POSTCARD PREVIEW
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-copy {
  color: var(--text-secondary);
  margin: 1rem 0 2rem;
}

.licensing-postcard {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-card);
}
.postcard-thumb-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #080b10;
}
.postcard-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.postcard-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.postcard-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
}
.postcard-details strong {
  font-size: 1rem;
}
.postcard-details span:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  min-width: 0;
  overflow: hidden;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .form-row.two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.field-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.field-error-msg {
  display: none;
  font-size: 0.76rem;
  color: #f87171;
  margin-top: 0.15rem;
}
.req {
  color: var(--accent-gold);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field textarea {
  white-space: pre-wrap;
  overflow: auto;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(229, 169, 76, 0.15);
}

/* Validation after user interaction per modern-web-guidance (validate-input-after-interaction) */
.form-field :is(input, textarea):user-invalid,
.form-field :is(input, textarea).user-invalid-fallback {
  border-color: #f87171;
  background-color: rgba(248, 113, 113, 0.06);
}
.form-field :is(input, textarea):user-invalid + .field-error-msg,
.form-field :is(input, textarea).user-invalid-fallback + .field-error-msg {
  display: block;
}
.form-field :is(input, textarea):user-valid,
.form-field :is(input, textarea).user-valid-fallback {
  border-color: rgba(74, 222, 128, 0.55);
}

/* Built-in Interactive CAPTCHA Widget */
.captcha-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}
@media (max-width: 560px) {
  .captcha-box {
    grid-template-columns: minmax(0, 1fr);
  }
}
.captcha-canvas-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.45rem 0.3rem 0.3rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  width: fit-content;
}
#captchaCanvas {
  display: block;
  border-radius: 5px;
  background: #080b11;
}
.captcha-refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
}
.captcha-refresh-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: rotate(90deg);
}
#captchaInput {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.captcha-box:has(#captchaInput:user-invalid) + .field-error-msg,
.captcha-box:has(#captchaInput.user-invalid-fallback) + .field-error-msg {
  display: block;
}

.btn-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.form-status {
  font-size: 0.86rem;
  color: var(--accent-gold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 2.5rem 0;
  background: #090c12;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer-brand span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--accent-gold);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}
.back-to-top:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ==========================================================================
   NATIVE <dialog> LIGHTBOX MODAL & TOP-LAYER ANIMATIONS
   Follows modern-web-guidance: dialog, light-dismiss-a-dialog, animate-to-from-top-layer
   ========================================================================== */

/* MANDATORY per modern-web-guidance (dialog): prevent scroll chaining without locking body overflow */
dialog:modal {
  overscroll-behavior: contain;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Base closed state & transitions per animate-to-from-top-layer */
.lightbox-dialog {
  inset: 0;
  width: min(96vw, 1520px);
  height: min(93vh, 960px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  background: rgba(12, 15, 22, 0.95);
  color: var(--text-primary);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.88);
  opacity: 0;
  transform: scale(0.94);

  /* MANDATORY per modern-web-guidance (animate-to-from-top-layer): transition display and overlay with allow-discrete */
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

.lightbox-dialog::backdrop {
  background-color: rgba(6, 8, 13, 0);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

/* Open state + @starting-style + Top-layer exit fallback (:where(:not([data-closing]))) */
:is(.lightbox-dialog[open]):where(:not([data-closing])) {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);

  @starting-style {
    opacity: 0;
    transform: scale(0.94);
  }

  &::backdrop {
    background-color: rgba(6, 8, 13, 0.86);
    backdrop-filter: blur(14px);

    @starting-style {
      background-color: rgba(6, 8, 13, 0);
      backdrop-filter: blur(0px);
    }
  }
}

/* Keep display:flex while data-closing is active during exit fallback */
.lightbox-dialog[open][data-closing] {
  display: flex;
  flex-direction: column;
}

.lightbox-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.35rem;
  background: rgba(16, 21, 32, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.lightbox-meta {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
}
.lightbox-title {
  font-size: 1.15rem;
  font-weight: 600;
}
.lightbox-dimensions {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lb-close-form {
  display: contents;
}
.lb-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lb-icon-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.lb-close-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #f87171;
  color: #fca5a5;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 4.5rem;
  background: radial-gradient(
    circle at center,
    rgba(var(--ambient-r), var(--ambient-g), var(--ambient-b), 0.14),
    rgba(8, 10, 15, 0.95) 70%
  );
  overflow: hidden;
  user-select: none;
}

.lightbox-figure {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  view-transition-name: lightbox-photo;
}
.lightbox-img.is-zoomed {
  transform: scale(1.65);
  cursor: zoom-out;
}

.lb-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border-highlight);
  background: rgba(18, 23, 34, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.lb-arrow-prev { left: 1.15rem; }
.lb-arrow-next { right: 1.15rem; }
.lb-nav-arrow:hover {
  background: var(--accent-gold);
  color: #0c0f16;
  border-color: var(--accent-gold);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-footer {
  padding: 0.75rem 1.25rem;
  background: rgba(14, 18, 28, 0.94);
  border-top: 1px solid var(--border-subtle);
}
.lightbox-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

/* ==========================================================================
   DIRECTIONAL VIEW TRANSITIONS FOR FLIPPING PHOTOS LEFT / RIGHT
   Follows modern-web-guidance: directional-navigation-transitions & same-document-transitions
   ========================================================================== */
@keyframes vt-slide-to-left {
  to {
    transform: translateX(-48px) scale(0.94);
    opacity: 0;
  }
}
@keyframes vt-slide-from-right {
  from {
    transform: translateX(48px) scale(0.94);
    opacity: 0;
  }
}
@keyframes vt-slide-to-right {
  to {
    transform: translateX(48px) scale(0.94);
    opacity: 0;
  }
}
@keyframes vt-slide-from-left {
  from {
    transform: translateX(-48px) scale(0.94);
    opacity: 0;
  }
}

::view-transition-group(lightbox-photo) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html:active-view-transition-type(forward)::view-transition-old(lightbox-photo) {
  animation: 0.28s cubic-bezier(0.22, 1, 0.36, 1) both vt-slide-to-left;
}
html:active-view-transition-type(forward)::view-transition-new(lightbox-photo) {
  animation: 0.28s cubic-bezier(0.22, 1, 0.36, 1) both vt-slide-from-right;
}

html:active-view-transition-type(backward)::view-transition-old(lightbox-photo) {
  animation: 0.28s cubic-bezier(0.22, 1, 0.36, 1) both vt-slide-to-right;
}
html:active-view-transition-type(backward)::view-transition-new(lightbox-photo) {
  animation: 0.28s cubic-bezier(0.22, 1, 0.36, 1) both vt-slide-from-left;
}

/* Reduced Motion Accessibility per modern-web-guidance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
    scroll-behavior: auto !important;
  }
  .lightbox-dialog {
    transform: none;
    transition-duration: 0.1s;
  }
  @starting-style {
    :is(.lightbox-dialog[open]):where(:not([data-closing])) {
      transform: none;
    }
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 860px) {
  .mobile-menu-btn {
    display: flex;
  }
  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(12, 15, 22, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-highlight);
    padding: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    justify-content: space-between;
  }

  .viewfinder-hud {
    inset: calc(var(--header-height) + 0.75rem) 0.75rem 1rem 0.75rem;
    padding: 0.65rem;
  }
  .hud-telemetry {
    min-width: 0;
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hud-telemetry:last-child {
    display: none;
  }
  .hero-content {
    width: 100%;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
  .hero-featured-strip {
    border-radius: 999px;
    padding: 0.55rem 1rem;
    width: auto;
    max-width: 100%;
    justify-content: center;
  }
  .strip-current-title {
    min-width: 130px;
    text-align: center;
  }

  .spotlight-carousel {
    grid-template-columns: 1fr;
  }
  .spotlight-side-card {
    display: none;
  }
  .flip-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
  }
  .flip-arrow-prev { left: 0.5rem; }
  .flip-arrow-next { right: 0.5rem; }
  .flip-arrow:hover {
    transform: translateY(-50%) scale(1.05);
  }

  .lightbox-stage {
    padding: 0.5rem;
  }
  .lb-nav-arrow {
    width: 44px;
    height: 44px;
  }
  .lb-arrow-prev { left: 0.5rem; }
  .lb-arrow-next { right: 0.5rem; }
  .lb-btn-text,
  .lightbox-dimensions {
    display: none;
  }
}

