/* ================================================================
   LEX.PHOTOGRAPHY — STYLESHEET
   Design sibling to munteanualexandru.com
   Tokens: #0d0d0d bg · #141414 surface · #D4A820 gold
           Playfair Display 400/500/600/700
   ================================================================ */

/* ─── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  --bg:            #0d0d0d;
  --surface:       #141414;
  --surface-2:     #1c1c1c;
  --gold:          #C5A059; /* Richer, chest-gold: shifted from #D4A820 */
  --gold-dark:     #C5A059; /* Always dark-theme gold — used for elements on dark images */
  --gold-dim:      rgba(197,160,89,0.5);
  --gold-faint:    rgba(197,160,89,0.08);
  --salmon:        #c87456;
  --text-primary:  #f0ece4;
  --text-secondary:#C5A059;
  --text-muted:    #8a7650;
  --border:        rgba(197,160,89,0.14);
  --nav-h:         70px;
  --ease:          0.3s ease;
  --font:          'Spectral', Georgia, serif;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-name:     'Cinzel Decorative', Georgia, serif;
  --btn-bg:        rgba(197,160,89,0.08);
  --btn-hover:     rgba(197,160,89,0.18);
  --btn-border:    rgba(197,160,89,0.35);
}

/* ─── LIGHT THEME ─────────────────────────────────────────────── */
[data-effective-theme="light"] {
  --bg:            #f5f0e8;
  --surface:       #ede8de;
  --surface-2:     #e4dfd4;
  --gold:          #967438;
  --gold-dim:      rgba(150,116,56,0.5);
  --gold-faint:    rgba(150,116,56,0.07);
  --text-primary:  #14100a;
  --text-secondary:#7a5a20;
  --text-muted:    #9a7840;
  --border:        rgba(120,90,40,0.18);
  --btn-bg:        rgba(150,116,56,0.06);
  --btn-hover:     rgba(150,116,56,0.14);
  --btn-border:    rgba(150,116,56,0.30);
}

/* ─── DISPLAY FONT (Playfair) on italic/title elements ───────── */
.gallery-title,
.card-title,
.about-title,
.lb-title-display,
.lb-info-title,
.photo-item-title,
.contact-title,
.nav-logo em {
  font-family: var(--font-display);
}

/* Light theme — overrides for elements with hardcoded dark values */
[data-effective-theme="light"] .site-nav {
  background: rgba(245,240,232,0.7); /* more transparent */
}
[data-effective-theme="light"] .nav-dropdown-menu {
  background: rgba(237,232,222,0.99);
  border-color: var(--border);
}
[data-effective-theme="light"] .nav-mobile {
  background: rgba(245,240,232,0.98);
}
[data-effective-theme="light"] .cards-grid { background: #000; } /* No grey gap — pure black 2px lines */
[data-effective-theme="light"] .category-card[data-section="nevermore"]   { background: linear-gradient(135deg, #c8ccd8 0%, #a8b0cc 100%); }
[data-effective-theme="light"] .category-card[data-section="myths"]       { background: linear-gradient(135deg, #c4cec0 0%, #a8c0a0 100%); }
[data-effective-theme="light"] .category-card[data-section="undergrowth"] { background: linear-gradient(135deg, #c0ccb8 0%, #a4be9a 100%); }
[data-effective-theme="light"] .category-card[data-section="fieldnotes"]  { background: linear-gradient(135deg, #ccc4b4 0%, #c0b098 100%); }
[data-effective-theme="light"] .lightbox { background: rgba(245,240,232,0.97); }
/* Card subtitles (.card-meta) sit on dark photos always — keep rich dark-theme gold */
[data-effective-theme="light"] .card-meta { color: #C5A059 !important; }

[data-effective-theme="light"] .bubble-card {
  background: rgba(237,232,222,0.99);
  border-color: var(--border);
}
[data-effective-theme="light"] .bubble-form textarea,
[data-effective-theme="light"] .bubble-form input[type="email"] {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-primary);
}
[data-effective-theme="light"] .bubble-form button[type="submit"] {
  color: var(--gold);
}
[data-effective-theme="light"] .photo-item { background: var(--surface-2); }
[data-effective-theme="light"] body::after { opacity: 0.028; }

/* ─── LANGUAGE SPANS ──────────────────────────────────────────── */
[data-lang="en"] .lang-ro { display: none; }
[data-lang="ro"] .lang-en { display: none; }

/* ─── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 200;
  line-height: 1.7;
  min-height: 100vh;
}

/* All scrollable page content; bubble lives outside this */
/* overflow-x intentionally NOT set here — it would break position:sticky on .about-photo-col */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Horizontal overflow clip scoped only to pages that need it — not about.html */
.cards-grid,
.photo-grid,
.gallery-header {
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; background: none; border: none; }

/* ─── GRAIN OVERLAY ───────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.038;
  pointer-events: none;
  z-index: 9998;
}

/* ─── NAVIGATION ──────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  z-index: 900;
  background: rgba(13,13,13,0.75); /* 75% — readable over photos */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.nav-logo {
  font-size: clamp(0.72rem, 2.2vw, 1.05rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity var(--ease);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo strong {
  font-family: var(--font-name);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: none; /* Cinzel Decorative uses mixed case — preserve it */
}
.nav-logo em { font-style: italic; text-transform: lowercase; opacity: 0.85; font-weight: 300; letter-spacing: 0.08em; }
.nav-logo:hover { opacity: 0.72; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  list-style: none;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links > li > a {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--ease);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--gold); }

/* Portfolio dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  vertical-align: middle;
}
.nav-dropdown > a::after {
  content: '▾';
  font-family: var(--font-display);
  font-size: 0.55rem;
  opacity: 0.6;
  line-height: 1;
  position: relative;
  top: -0.05em;
}

/* Ampersands rendered in Playfair Display italic — richer glyph */
.amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  background: rgba(20,20,20,0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 0.6rem 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.6rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--ease), background var(--ease);
}
.nav-dropdown-menu a:hover {
  color: var(--gold);
  background: var(--gold-faint);
}

/* ─── NAV CONTROLS (theme + language) ────────────────────────── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--border);
  margin-left: 1rem;
}
.nav-ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.2rem 0;
  transition: color var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-ctrl-btn:hover { color: var(--gold); }
.nav-ctrl-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ─── HOMEPAGE — CARDS GRID ───────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: calc(50vh - var(--nav-h)/2) calc(50vh - var(--nav-h)/2);
  height: 100vh;
  padding-top: var(--nav-h);
  gap: 2px;
  background: #000; /* Gap lines between cards — always black */
}
/* Ensure the padding-top area (behind nav) is also black — no light-bg bleed */
.page-wrap:has(.cards-grid) {
  background: #000;
}

.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
}
.category-card:hover .card-cta {
  opacity: 1;
  transform: translateY(0);
}

.card-bgs {
  position: absolute;
  inset: 0;
}
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  will-change: opacity;
}
.card-bg.active { opacity: 1; }

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8)  0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.05) 75%,
    transparent      100%
  );
  z-index: 1;
  pointer-events: none;
}

.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem;
  z-index: 2;
}
.card-title {
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  color: #fff !important; /* Always white on dark images */
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.card-meta {
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold) !important; /* Always gold on dark images */
  margin-bottom: 0.7rem;
}
.card-cta {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ─── GALLERY HEADER ──────────────────────────────────────────── */
.gallery-header {
  padding: calc(var(--nav-h) + 5rem) 4rem 3.5rem;
}
.gallery-label {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.gallery-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}
.gallery-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 540px;
}

/* ─── PHOTO GRID ──────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 3px 3px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  background: var(--surface-2);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.photo-item:hover img { transform: scale(1.04); }

.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.photo-item:hover .photo-item-overlay { opacity: 1; }
.photo-item-title {
  font-size: 0.9rem;
  font-style: italic;
  color: #f0ece4; /* Always cream/white — overlay is always dark gradient regardless of theme */
}

/* ─── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.98);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 6rem 6rem 3rem; /* room for fixed controls */
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

/* Main column: image + title + info btn + panel — all in flow */
.lb-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center image + title + info horizontally */
  max-width: min(90vw, 1400px);
}
.lightbox-img {
  max-width: 88vw;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  display: block;
}

/* Controls — fixed to viewport */
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  z-index: 1001;
  color: var(--text-secondary);
  transition: color var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--gold); }

.lb-close { top: 1.5rem; right: 2rem; font-size: 1.4rem; padding: 1rem; }
.lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; padding: 2rem; }
.lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; padding: 2rem; }

/* Photo title — in-flow, immediately below image */
.lb-title-display {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  margin-top: 1rem;
  pointer-events: none;
  text-align: center;
}

/* Pulsating Info Button — in-flow, below title */
@keyframes lbPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); color: var(--gold); }
}
.lb-info-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--ease), border-color var(--ease);
  animation: lbPulse 2.5s infinite ease-in-out;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}
.lb-info-btn:hover { color: var(--gold); }
.lb-info-btn.pressed {
  color: var(--gold);
  animation: none;
  opacity: 1;
}
/* No ::before pseudo — button text is just "i" set in JS */

.lb-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

/* Info panel — in-flow, expands below info button */
.lb-info-panel {
  width: 100%; /* matches image width naturally */
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.45s ease;
  pointer-events: none;
}
.lb-info-panel.open {
  max-height: 300px;
  padding: 1.2rem 0 0;
  pointer-events: auto;
}
.lb-info-title {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.lb-info-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}
.lb-info-exif {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── ABOUT PAGE ──────────────────────────────────────────────── */
.about-wrap {
  flex: 1;
  padding: calc(var(--nav-h) + 5rem) 4rem 7rem;
  max-width: 1100px;
  margin: 0 auto;
}
.about-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 8rem;
  align-items: start; /* lets photo col be its natural height so sticky has room to work */
}
.about-photo-col { position: sticky; top: calc(var(--nav-h) + 2rem); }

/* Fancy frame for profile picture */
.about-photo-wrap {
  position: relative;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 15px 45px rgba(0,0,0,0.4);
}
.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.05);
}

.about-photo-caption {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.5rem;
  text-align: center;
}

.about-photo-ornament {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  max-width: 120px;
  margin-left: auto;
  margin-right: auto;
}
.about-photo-ornament .ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.about-photo-ornament .ornament-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.about-photo-ornament .ornament-diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.about-label {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.about-title {
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 3rem;
}
.about-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 2;
}
.about-body p { margin-bottom: 2rem; }
.about-body strong { font-weight: 300; color: var(--text-secondary); }
.about-highlight { font-style: normal; color: var(--text-primary); }

/* ─── ABOUT ORNAMENT ──────────────────────────────────────────── */
.about-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}
.ornament-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ornament-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.about-credentials {
  margin-top: 0;
  padding-top: 2rem;
}
.credentials-label {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.credential {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
  align-items: baseline;
}
.credential-year {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  text-transform: uppercase;
}
.credential-text {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── CONTACT PAGE ────────────────────────────────────────────── */
.contact-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 5rem;
}
.contact-label {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.contact-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 2rem;
}
.contact-body {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 500px;
  margin-bottom: 4rem;
}
.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ─── CONTACT BUTTONS (landing-page style) ────────────────────── */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--btn-border, rgba(197,160,89,0.35));
  border-radius: 4px;
  background: var(--btn-bg, rgba(197,160,89,0.08));
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s,
              transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  position: relative;
}
.contact-btn:hover {
  background: var(--btn-hover, rgba(197,160,89,0.18));
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.contact-btn svg {
  width: 16px; height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Primary email button */
.contact-btn-primary {
  background: rgba(197,160,89,0.11);
  border-color: var(--gold);
  border-width: 1.5px;
  color: var(--gold);
  letter-spacing: 0.08em;
  gap: 0.55rem;
  box-shadow: 0 0 14px rgba(197,160,89,0.22);
}
.contact-btn-primary:hover {
  background: rgba(197,160,89,0.2);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 24px rgba(197,160,89,0.42), 0 4px 16px rgba(0,0,0,.3);
  transform: translateY(-2px);
}
[data-effective-theme="light"] .contact-btn-primary {
  background: rgba(150,116,56,0.16);
  border-color: var(--gold);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(150,116,56,0.2);
}
[data-effective-theme="light"] .contact-btn-primary:hover {
  background: rgba(150,116,56,0.28);
  color: var(--text-primary);
  box-shadow: 0 0 18px rgba(150,116,56,0.38), 0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* Copy micro-button inside email btn */
.contact-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.15);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  margin-left: 0.15rem;
  color: inherit;
  transition: background 0.15s;
  flex-shrink: 0;
}
.contact-copy-btn:hover { background: rgba(0,0,0,0.3); }
.contact-copy-btn svg { width: 11px; height: 11px; fill: currentColor; }
.contact-copy-btn.copied svg { display: none; }
.contact-copy-btn.copied::after { content: '✓'; font-size: 0.75rem; font-family: sans-serif; }

.platform-label {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3rem;
  margin-bottom: 1.2rem;
}
.platform-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── FLOATING CONTACT BUBBLE ─────────────────────────────────── */
.contact-bubble {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 1100;
}
.bubble-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bubble-btn:hover { transform: scale(1.08); }

/* Bounce animation */
@keyframes bubbleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.contact-bubble.bounce .bubble-btn {
  animation: bubbleBounce 0.6s ease;
}

.bubble-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.bubble-card {
  position: absolute;
  bottom: calc(100% + 1.2rem);
  right: 0;
  width: 320px;
  background: rgba(20,20,20,0.98);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.bubble-card.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bubble-form textarea,
.bubble-form input[type="email"],
.bubble-form button[type="submit"],
.bubble-sent {
  font-family: var(--font);
  font-weight: 300;
}
.bubble-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bubble-form textarea {
  resize: none;
  height: 100px;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  outline: none;
  transition: border-color var(--ease);
}
.bubble-form textarea:focus {
  border-color: var(--gold-dim);
}
.bubble-form input[type="email"] {
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color var(--ease);
}
.bubble-form input[type="email"]:focus {
  border-color: var(--gold-dim);
}
.bubble-form input[type="email"]::placeholder,
.bubble-form textarea::placeholder {
  color: var(--text-muted);
}
.bubble-form button[type="submit"] {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), border-color var(--ease), transform 0.2s ease;
}
.bubble-form button[type="submit"]:hover {
  background: var(--btn-hover);
  border-color: var(--gold);
  transform: translateX(2px);
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 8rem 2.5rem 3rem; /* right padding keeps content clear of bubble */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-copy {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.copy-symbol {
  font-family: Arial, sans-serif; /* Cleaner font for © */
  font-size: 1rem;
  vertical-align: -1px;
}
.footer-links {
  display: flex;
  gap: 2.5rem;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 1;
}
.footer-links a {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--gold); }

/* ─── HAMBURGER / MOBILE NAV ──────────────────────────────────── */
.nav-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-left: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none; /* shown via .open on mobile */
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  z-index: 899;
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--ease);
}
.nav-mobile a.sub {
  padding-left: 3rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-controls {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 2rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}
[data-effective-theme="light"] .nav-mobile {
  background: rgba(245,240,232,0.98);
}

/* ─── BUBBLE TOOLTIP ──────────────────────────────────────────── */
.bubble-btn {
  position: relative;
}
.bubble-btn::after {
  content: 'Drop me a message';
  position: absolute;
  right: calc(100% + 0.9rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  /* Always light-theme colours — readable against both dark and light page */
  color: #3a2e1a;
  background: #f5f0e8;
  border: 1px solid rgba(150,116,56,0.25);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.bubble-btn:hover::after { opacity: 1; }

/* ─── PAGE FADE ───────────────────────────────────────────────── */
/* Fade only — no transform, so no stacking context created on .page-wrap */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-fade {
  animation: pageFadeIn 0.4s ease forwards;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-layout { grid-template-columns: 320px 1fr; gap: 5rem; }
  .site-footer { padding-right: 7rem; }
}
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); padding: 0 2rem 4rem; }
  .about-layout { grid-template-columns: 1fr; gap: 4rem; }
  .about-photo-col { position: static; max-width: 360px; margin: 0 auto; }
  .cards-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 62vw);
    height: auto;
    padding-top: var(--nav-h);
  }
}
/* Hide full nav and show hamburger only when items are about to collide with logo */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .site-nav { padding: 0 1rem; }
  /* Lightbox adjust for smaller screens */
  .lightbox { padding: 5rem 3.5rem 2.5rem; }
  .lightbox-img { max-height: 55vh; }
  /* Footer: links on top, copyright at bottom, right pad clears bubble */
  .site-footer {
    flex-direction: column-reverse;
    gap: 1.2rem;
    text-align: center;
    padding: 2.5rem 5rem 2.5rem 1.5rem;
    align-items: center;
  }
}
@media (max-width: 480px) {
  /* Collapse footer nav links smoothly — max-height transition prevents snap */
  .site-footer .footer-links { max-height: 0; opacity: 0; pointer-events: none; }
  .site-footer { padding: 2rem 5rem 2rem 1rem; } /* keep right padding for bubble */
  /* Single column photo grid */
  .photo-grid { grid-template-columns: 1fr; padding: 0 0 3rem; }
}
