/* ========================================================================
   JENNA MCFARLAND LORD — Portfolio Design System
   ======================================================================== */

/* --- Custom Properties (Design Tokens) --- */
:root {
  /* Colors — Cinematic dark palette with warm stage-lighting accents */
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #141414;
  --color-bg-elevated: #1a1a1a;
  --color-bg-card: #1e1e1e;
  --color-bg-hover: #252525;
  --color-bg-overlay: rgba(0, 0, 0, 0.7);
  --color-bg-glass: rgba(10, 10, 10, 0.85);

  --color-text-primary: #f0ece4;
  --color-text-secondary: #a8a29e;
  --color-text-muted: #6b6560;
  --color-text-inverse: #0a0a0a;

  --color-accent: #c8a87c;
  --color-accent-hover: #d4b88e;
  --color-accent-muted: rgba(200, 168, 124, 0.15);

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --fs-hero: clamp(3rem, 8vw, 6rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;
  --ls-widest: 0.2em;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1400px;
  --container-narrow: 900px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(200, 168, 124, 0.1);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --blur-glass: 20px;

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Glow Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(200, 168, 124, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bg-hover);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-muted);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

ul, ol {
  list-style: none;
}

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

::selection {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}


/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-secondary); }
.text-upper {
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-small);
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--dark {
  background-color: var(--color-bg-secondary);
}


/* ========================================================================
   HEADER / NAVIGATION
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-lg) 0;
  transition: background-color var(--transition-slow),
              padding var(--transition-base),
              backdrop-filter var(--transition-slow);
}

.site-header.is-scrolled {
  padding: var(--space-sm) 0;
  background-color: var(--color-bg-glass);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo / Site Title */
.site-logo {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--transition-base);
}

.site-logo:hover {
  opacity: 0.7;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
}

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

.nav-link.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Portfolio Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover {
  background-color: var(--color-bg-hover);
  border-color: var(--color-border-hover);
}

.nav-dropdown-toggle.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav-dropdown-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition-base);
}

.nav-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(-135deg) translateY(-2px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: var(--space-sm) 0;
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
  background-color: var(--color-bg-hover);
  color: var(--color-accent);
}

.nav-dropdown-item.is-active {
  color: var(--color-accent);
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger-line + .hamburger-line {
  margin-top: 6px;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background-color: var(--color-bg-primary);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile .nav-link {
  font-size: var(--fs-body);
  padding: var(--space-md) var(--space-xl);
}

.nav-mobile .nav-dropdown-toggle {
  font-size: var(--fs-body);
  padding: var(--space-md) var(--space-xl);
}

.nav-mobile .nav-dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  border: none;
  box-shadow: none;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height var(--transition-slow);
}

.nav-mobile .nav-dropdown.is-open .nav-dropdown-menu {
  max-height: 500px;
  padding: var(--space-sm) 0;
}

.nav-mobile .nav-dropdown-item {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}


/* ========================================================================
   HERO SECTIONS
   ======================================================================== */

/* Homepage Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: var(--fw-light);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-lg) auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.5s;
}

/* Page Header (for year-range & show pages) */
.page-header {
  padding: calc(var(--space-5xl) + 60px) 0 var(--space-3xl);
  background-color: var(--color-bg-secondary);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-light);
  margin-bottom: var(--space-sm);
}

.page-header-subtitle {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}


/* ========================================================================
   PORTFOLIO GALLERY (Homepage & Year Pages)
   ======================================================================== */
.gallery {
  padding: var(--space-4xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--color-bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  color: #ffffff;
  margin-bottom: var(--space-xs);
}

.gallery-item-meta {
  font-size: var(--fs-xs);
  color: var(--color-accent);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

/* Year-range grid — card style with more info */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-4xl) 0;
}

.portfolio-card {
  display: block;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.portfolio-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-bg-elevated);
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.05);
}

.portfolio-card-body {
  padding: var(--space-lg);
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-xs);
}

.portfolio-card-meta {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.portfolio-card-award {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--color-accent);
  background-color: var(--color-accent-muted);
  border-radius: var(--radius-sm);
  letter-spacing: var(--ls-normal);
}


/* ========================================================================
   SLIDESHOW (Show Pages)
   ======================================================================== */
.slideshow {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.slideshow-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.slideshow-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--color-bg-primary);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.slideshow-viewport img.is-active {
  opacity: 1;
}

/* Slideshow Controls */
.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  opacity: 0;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
}

.slideshow:hover .slideshow-btn {
  opacity: 1;
}

.slideshow-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slideshow-btn--prev { left: var(--space-md); }
.slideshow-btn--next { right: var(--space-md); }

/* Slideshow Thumbnails */
.slideshow-thumbs {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-text-muted) transparent;
  padding-bottom: var(--space-md);
}

.slideshow-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: all var(--transition-base);
}

.slideshow-thumb:hover {
  opacity: 0.8;
}

.slideshow-thumb.is-active {
  opacity: 1;
  border-color: var(--color-accent);
}

.slideshow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Show Info (on show pages) */
.show-info {
  padding: var(--space-2xl) 0;
}

.show-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.show-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.show-detail-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.show-detail-value {
  font-size: var(--fs-body);
  color: var(--color-text-primary);
}

.show-award {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-accent-muted);
  border: 1px solid rgba(200, 168, 124, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-size: var(--fs-small);
  margin-top: var(--space-md);
}

.show-award::before {
  content: '★';
}


/* ========================================================================
   ABOUT PAGE
   ======================================================================== */
.about-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-4xl) var(--container-padding);
}

.about-content p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.about-content p:first-of-type {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--color-text-primary);
}


/* ========================================================================
   CONTACT PAGE
   ======================================================================== */
.contact-section {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-4xl) var(--container-padding);
}

.contact-intro {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.contact-intro h2 {
  margin-bottom: var(--space-md);
}

.contact-intro p {
  color: var(--color-text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-base);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}

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

.form-textarea {
  min-height: 180px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-2xl);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}


/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-quote {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  line-height: var(--lh-snug);
}

.footer-quote cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-wide);
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xl);
}


/* ========================================================================
   LIGHTBOX
   ======================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  cursor: pointer;
}

.lightbox-close:hover {
  opacity: 1;
}


/* ========================================================================
   ANIMATIONS
   ======================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered gallery items */
.gallery-item,
.portfolio-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item.is-visible,
.portfolio-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================================================
   YEAR NAVIGATION (on year-range pages)
   ======================================================================== */
.year-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.year-nav-link {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.year-nav-link:hover {
  border-color: var(--color-border-hover);
  background-color: var(--color-bg-hover);
}

.year-nav-link.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-accent-muted);
}


/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: calc(var(--space-4xl) + 40px) 0 var(--space-2xl);
  }

  .slideshow-thumb {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 60vh;
  }

  .slideshow-thumbs {
    display: none;
  }

  .slideshow-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    opacity: 1;
  }
}


/* ========================================================================
   PRINT
   ======================================================================== */
@media print {
  .site-header,
  .hamburger,
  .nav-mobile,
  .lightbox,
  .slideshow-btn,
  .slideshow-thumbs {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .gallery-item-overlay {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
  }

  .gallery-item-title,
  .gallery-item-meta {
    color: #000;
  }
}


/* ========================================================================
   Phase 5 additions: Animations & View Transitions
   ======================================================================== */

/* View Transitions */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header {
  view-transition-name: site-header;
}

.page-header {
  view-transition-name: page-header;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.in-view,
.slide-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Add slight stagger delay via inline custom properties if needed */
.portfolio-card.slide-up {
  transition-delay: var(--stagger-delay, 0ms);
}

/* ==========================================================================
   About Page Layout
   ========================================================================== */

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding: 2rem 0 6rem 0;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr 2fr;
  }
}

.about-image-col {
  position: sticky;
  top: 6rem;
}

.about-headshot-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.awards-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.awards-list li:last-child {
  border-bottom: none;
}

.awards-list strong {
  color: var(--accent-color);
  font-weight: 500;
}

/* ==========================================================================
   Spotlight Cursor Effect
   ========================================================================== */
.spotlight-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
}

/* ==========================================================================
   Ken Burns Slideshow (Hero)
   ========================================================================== */
.ken-burns {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 1;
}
.ken-burns::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 12, 0.75); /* Dark overlay */
  z-index: 2;
}

.kb-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  animation: kenBurns 24s infinite linear;
}

.kb-slide-1 { animation-delay: 0s; }
.kb-slide-2 { animation-delay: 6s; }
.kb-slide-3 { animation-delay: 12s; }
.kb-slide-4 { animation-delay: 18s; }

@keyframes kenBurns {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

/* ==========================================================================
   Masonry Grid (Show Pages)
   ========================================================================== */
.masonry-grid {
  columns: 1;
  column-gap: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .masonry-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    columns: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Portfolio Filtering
   ========================================================================== */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--accent-color);
  color: var(--bg-color);
  border-color: var(--accent-color);
}

.portfolio-card-category {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Press & Praise Section
   ========================================================================== */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .press-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.press-quote {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 4px;
  border-left: 2px solid var(--accent-color);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-color);
  position: relative;
}

.press-quote::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: serif;
  line-height: 1;
}

.press-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Light Mode Theme
   ========================================================================== */
body.light-mode {
  --color-bg-primary: #f9f9f9;
  --color-bg-secondary: #ffffff;
  --color-bg-elevated: #ffffff;
  --color-text-primary: #222222;
  --color-text-secondary: #555555;
  --accent-color: #c98a2c;
  --nav-bg: rgba(255, 255, 255, 0.95);
}

body.light-mode .hero-bg::after {
  background: rgba(255, 255, 255, 0.5); /* Lighter overlay for Ken Burns */
}

body.light-mode .hero-title,
body.light-mode .hero-subtitle {
  color: #111;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

body.light-mode .portfolio-card-category {
  color: #c98a2c;
}

body.light-mode .portfolio-card-year {
  color: #555 !important;
}

body.light-mode .btn {
  background-color: var(--accent-color);
  color: #fff;
}

body.light-mode .spotlight-cursor {
  background: radial-gradient(circle at center, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 70%);
  mix-blend-mode: multiply;
}

body.light-mode .up-next-card {
  background: rgba(0,0,0,0.03) !important;
  border-top-color: var(--accent-color) !important;
}

body.light-mode .press-quote {
  background: rgba(0,0,0,0.03);
}

body.light-mode .press-quote::before {
  color: rgba(0,0,0,0.1);
}

body.light-mode .filter-btn {
  border-color: rgba(0,0,0,0.2);
  color: var(--text-muted);
}

body.light-mode .filter-btn:hover,
body.light-mode .filter-btn.is-active {
  background: var(--accent-color);
  color: #fff;
}

body.light-mode select#year-filter {
  border-color: rgba(0,0,0,0.2) !important;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker); 
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted); 
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color); 
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #fff;
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* ==========================================================================
   Mobile & Responsive Tweaks (Phase 11)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem); /* Slightly smaller on phones to prevent wrapping poorly */
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
  }
  
  .section, .section--dark {
    padding: 3rem 0; /* Reduce massive vertical padding on mobile */
  }
  
  .page-header {
    padding: 6rem 0 3rem; /* Reduce top spacing on mobile pages */
  }

  .portfolio-filters {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .filter-group {
    width: 100%;
    margin-bottom: 1rem;
    justify-content: center;
  }

  select#year-filter {
    margin-left: 0 !important;
    width: 100%; /* Full width dropdown on mobile */
    text-align: center;
  }
  
  /* Ensure tap targets are large enough (44x44px minimum recommended) */
  .hamburger {
    padding: 0.5rem;
  }
  
  .back-to-top {
    width: 3.5rem;
    height: 3.5rem;
    bottom: 1rem;
    right: 1rem;
  }
}
