/* ============================================================
   DESIGN SYSTEM & COLOR PALETTE
   ============================================================ */
:root,
:root[data-theme="dark"] {
  --bg: #090b0e;
  --bg-gradient: radial-gradient(120% 100% at 50% 0%, #151b22 0%, #090b0e 100%);
  --surface: #11151a;
  --surface-raised: #171d24;
  --surface-subtle: #1e2630;
  --text: #f3f2ee;
  --text-muted: #8c97a0;
  --text-faint: #59646e;
  --line: rgba(243, 242, 238, 0.09);
  --line-hover: rgba(243, 242, 238, 0.22);
  --line-strong: rgba(243, 242, 238, 0.4);
  --accent: #d8b082;         /* Warm champagne bronze */
  --accent-dim: rgba(216, 176, 130, 0.15);
  --overlay-shadow: rgba(0, 0, 0, 0.85);
  --ph-tone-1: #192028;
  --ph-tone-2: #10141a;
  /* Hero background image slot. Replace 'none' with url("images/hero.jpg") */
  --hero-image: none;
}

:root[data-theme="light"] {
  --bg: #f9f8f5;
  --bg-gradient: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f4f2eb 100%);
  --surface: #eeece4;
  --surface-raised: #e3e0d5;
  --surface-subtle: #d7d3c6;
  --text: #161a1d;
  --text-muted: #646f79;
  --text-faint: #9aa4ae;
  --line: rgba(22, 26, 29, 0.1);
  --line-hover: rgba(22, 26, 29, 0.25);
  --line-strong: rgba(22, 26, 29, 0.5);
  --accent: #9b6c3b;         /* Rich warm umber */
  --accent-dim: rgba(155, 108, 59, 0.12);
  --overlay-shadow: rgba(0, 0, 0, 0.45);
  --ph-tone-1: #e7e4dc;
  --ph-tone-2: #dad6cc;
  --hero-image: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

img, video {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, 1360px);
  margin-inline: auto;
}

.serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-style: normal;
}

.italic {
  font-style: italic;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 4.5rem;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
}

.brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding-block: 0.25rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: rotate(15deg);
}

.theme-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: none; }

/* Mobile Nav Bar */
@media (max-width: 720px) {
  .nav {
    height: 4rem;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-subtitle {
    display: none;
  }
  .nav-links {
    gap: 1.1rem;
  }
  .nav-links a {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }
  .theme-btn {
    width: 2.15rem;
    height: 2.15rem;
  }
  .filter-wrapper {
    top: 4rem;
  }
}

@media (max-width: 560px) {
  .brand {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
  }
  nav[aria-label="Main Navigation"] {
    flex: 1;
  }
  .nav-links {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .nav-links li:first-child {
    display: none;
  }
  .nav-links {
    gap: 0.85rem;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 0 4rem;
  overflow: hidden;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(9, 11, 14, 0.4) 45%, rgba(9, 11, 14, 0.7) 100%),
    var(--hero-image) center/cover no-repeat,
    radial-gradient(ellipse 90% 80% at 50% 20%, #1c2630 0%, transparent 70%),
    radial-gradient(circle at 15% 85%, rgba(216, 176, 130, 0.08) 0%, transparent 45%),
    var(--bg);
}

:root[data-theme="light"] .hero {
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(249, 248, 245, 0.3) 45%, rgba(249, 248, 245, 0.6) 100%),
    var(--hero-image) center/cover no-repeat,
    radial-gradient(ellipse 90% 80% at 50% 20%, #ebe7dc 0%, transparent 70%),
    radial-gradient(circle at 15% 85%, rgba(155, 108, 59, 0.09) 0%, transparent 45%),
    var(--bg);
}

/* Ambient filmic texture overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 50%, var(--bg) 110%);
  pointer-events: none;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 600;
  animation: fadeIn 1s ease-out both;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.hero-title {
  font-size: clamp(3.2rem, 11.5vw, 9.8rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2rem;
  animation: riseIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title span {
  display: block;
}

.hero-title .hero-last {
  padding-left: clamp(0.5rem, 5vw, 4.5rem);
  color: color-mix(in srgb, var(--text) 92%, var(--accent));
}

.hero-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  animation: fadeIn 1.2s ease-out 0.2s both;
}

.hero-meta {
  max-width: 38ch;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-location svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--accent);
}

.hero-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  list-style: none;
}

.hero-quick-filters .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-right: -0.5rem;
}

.hero-quick-filters a {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-quick-filters a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Subtle scroll indicator */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.scroll-cue:hover {
  color: var(--text);
  transform: translateY(2px);
}

.scroll-line {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: pulseScroll 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes pulseScroll {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(2.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.section-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.section-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 44ch;
}

/* Sticky Category Filter Bar */
.filter-wrapper {
  position: sticky;
  top: 4.5rem;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 0 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--line-hover);
  background: var(--surface-raised);
}

.filter-btn[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.filter-count {
  font-size: 0.72rem;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.filter-btn[aria-pressed="true"] .filter-count {
  opacity: 0.9;
}

/* Masonry Grid */
.grid {
  columns: 3 340px;
  column-gap: 1rem;
}

@media (max-width: 1080px) {
  .grid {
    columns: 2 300px;
  }
}

@media (max-width: 620px) {
  .grid {
    columns: 1 100%;
    column-gap: 0;
  }
}

/* Gallery Tile Card */
.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
  border-color: var(--line-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.tile-media-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--surface-raised);
}

.tile img,
.tile video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.tile:hover img,
.tile:hover video {
  transform: scale(1.03);
}

/* Filmic Overlay on Hover */
.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 11, 14, 0.85) 0%, rgba(9, 11, 14, 0.2) 50%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

:root[data-theme="light"] .tile-overlay {
  background: linear-gradient(to top, rgba(15, 18, 22, 0.88) 0%, rgba(15, 18, 22, 0.25) 50%, transparent 100%);
}

.tile:hover .tile-overlay,
.tile:focus-visible .tile-overlay {
  opacity: 1;
}

.tile-top-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tile-cat-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
}

.tile-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tile-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #ffffff;
}

.tile-title {
  font-size: 1.05rem;
  line-height: 1.25;
  color: #ffffff;
  font-weight: 500;
}

.tile-action-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Play Icon on Video / YouTube Tiles */
.tile-play-indicator {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.tile:hover .tile-play-indicator {
  transform: scale(1.08);
}

.play-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(9, 11, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

/* Placeholder Tile Design */
.tile.is-placeholder {
  background: linear-gradient(145deg, var(--ph-tone-1) 0%, var(--ph-tone-2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.tile.is-placeholder .ph-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ph-watermark {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ph-title {
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--text);
}

.ph-guide {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.tile.is-placeholder::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  opacity: 0.6;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 5rem;
}

@media (min-width: 900px) {
  .about-grid {
    /* text on the left, photo on the right */
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 5.5rem;
  }
  .about-text-content { order: 1; }
  .about-portrait-wrapper {
    order: 2;
    justify-self: end;
    width: 100%;
    max-width: 480px;
  }
}

.about-portrait-wrapper {
  position: relative;
}

.about-portrait-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4 / 5;
  max-width: 480px;
  width: 100%;
}

.about-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;   /* keeps the face in frame when the photo is cropped to 4:5 */
}

.about-portrait-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 75% 25%, rgba(216, 176, 130, 0.15) 0%, transparent 60%),
    linear-gradient(160deg, var(--surface-raised) 0%, var(--surface) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.about-portrait-placeholder .stamp {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.about-portrait-placeholder .hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.about-portrait-placeholder .hint code {
  color: var(--text);
  font-family: monospace;
  font-size: 0.82rem;
  background: var(--surface-subtle);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
}

.about-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 480px;
}

.about-spec-item {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.spec-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}

.spec-value {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about-lead {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--text);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 60ch;
}

.about-body p strong {
  color: var(--text);
  font-weight: 500;
}

.about-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.pillar-tag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: var(--surface);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  border-top: 1px solid var(--line);
  padding: 7rem 0 5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.contact-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-heading {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2.25rem;
  max-width: 22ch;
}

.contact-email-link {
  display: inline-block;
  font-size: clamp(1.5rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  color: var(--text);
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 0.35rem;
  word-break: break-all;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.contact-socials a {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.contact-socials a:hover {
  color: var(--text);
}

.contact-socials svg {
  width: 1.1rem;
  height: 1.1rem;
}

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  color: var(--text);
  transform: translateY(-2px);
}

/* ============================================================
   FULLSCREEN LIGHTBOX MODAL
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
  touch-action: pan-y;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lb-stage-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 6.5rem;
  user-select: none;
}

.lb-media-frame {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lb-media-frame img,
.lb-media-frame video {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: zoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lb-media-frame iframe {
  width: min(88vw, 1080px);
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.lb-placeholder-card {
  width: min(85vw, 760px);
  aspect-ratio: var(--lb-ratio, 4 / 3);
  max-height: 75vh;
  background: linear-gradient(150deg, #182029 0%, #0d1217 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  color: #f3f2ee;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: zoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lb-placeholder-card .genre {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.lb-placeholder-card .caption {
  font-size: 1.6rem;
  line-height: 1.3;
}

.lb-placeholder-card .instruction {
  font-size: 0.85rem;
  color: #8c97a0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Lightbox Controls */
.lb-ctrl-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  z-index: 1010;
}

.lb-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.lb-ctrl-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.lb-close-btn {
  top: 1.5rem;
  right: 1.5rem;
}

.lb-prev-btn {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.lb-next-btn {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

/* Lightbox Bottom Metadata Bar */
.lb-bottom-bar {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 5rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(6, 8, 10, 0.95) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1010;
}

.lb-caption-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 65%;
}

.lb-cat-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}

.lb-title-text {
  font-size: 1rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-counter {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .lb-prev-btn, .lb-next-btn {
    top: auto;
    bottom: 1.25rem;
    transform: none;
    width: 2.75rem;
    height: 2.75rem;
  }
  .lb-prev-btn {
    left: calc(50% - 3.75rem);
  }
  .lb-next-btn {
    right: calc(50% - 3.75rem);
  }
  .lb-close-btn {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
  .lb-bottom-bar {
    display: none;
  }
  .lb-stage-container {
    padding: 4rem 1rem 5.5rem;
  }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Accessibility / Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
  

/* ============================================================
   ADDED: global [hidden] fix, home covers, exhibitions, page nav
   ============================================================ */
[hidden] { display: none !important; }

.nav-links a[aria-current="page"] {
  color: var(--text);
}
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

/* Portfolio page keeps the Home link visible on small phones */
.page-portfolio .nav-links li:first-child {
  display: list-item;
}

/* Home page: one cover photo per category */
.covers {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 1rem;
}

@media (max-width: 1080px) {
  .covers { grid-template-columns: repeat(2, 1fr); }
}

.cover-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.cover-card:hover img {
  transform: scale(1.04);
}

.cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 11, 14, 0.82) 0%, rgba(9, 11, 14, 0.15) 45%, transparent 70%);
  pointer-events: none;
}

.cover-label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.25rem;
  color: #ffffff;
}

.cover-name {
  font-size: 1.7rem;
  line-height: 1.1;
  color: #ffffff;
}

.cover-meta {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 620px) {
  .cover-label { padding: 0.9rem; }
  .cover-name { font-size: 1.2rem; }
  .cover-meta { font-size: 0.64rem; }
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.view-all:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Exhibitions section */
.exhibitions-section {
  border-top: 1px solid var(--line);
}

.tile-caption {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.tile-caption-title {
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--text);
}

.tile-caption-meta {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   ADDED: "Follow me" row in the contact card
   ============================================================ */
.follow-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.follow-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

.follow-handle {
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.social-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
