/* ============================================
   FINE ART PORTFOLIO — STYLESHEET
   Aesthetic: Refined Editorial / Luxury Gallery
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@200;300;400;500&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:       #F5F0E8;
  --warm-white:  #FDFAF5;
  --charcoal:    #1C1C1C;
  --ink:         #2E2A26;
  --muted:       #8A8078;
  --accent:      #B8956A;
  --accent-dark: #8C6A3F;
  --rule:        #D9D2C5;
  --overlay:     rgba(28, 28, 28, 0.72);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  --nav-h: 72px;
  --max-w: 1280px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--warm-white);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* ── PAGE TRANSITIONS ── */
.page {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  min-height: calc(100vh - var(--nav-h));
  padding-bottom: 6rem;
}

.page.active {
  display: block;
}

.page.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   NAVIGATION
   Desktop : logo left, links right, hamburger hidden
   Mobile  : logo left, hamburger right, links dropdown
══════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--warm-white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 2px 24px rgba(28,28,28,0.07);
}

/* Inner row — constrained width, flex */
.nav-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}

.nav-logo span {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* ── DESKTOP LINKS (always visible above 768 px) ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active        { color: var(--charcoal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── HAMBURGER — hidden on desktop ── */
.nav-toggle {
  display: none;             /* shown only in mobile query below */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px; /* large tap target */
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  /* centre the bars inside the 44 px button */
  margin: 0 auto;
}

/* ── MAIN WRAPPER ── */
main {
  padding-top: var(--nav-h);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4rem;
}

.page-header .eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--charcoal);
}

.page-header h1 em {
  font-style: italic;
  color: var(--accent);
}

/* ── ════════════════════════════════════
   GALLERY PAGE
   ════════════════════════════════════ ── */

.gallery-hero {
  padding: 5.5rem 0 3.5rem;
}

.gallery-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2rem;
}

.gallery-hero-text .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.gallery-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--charcoal);
}

.gallery-hero-text h1 em {
  display: block;
  font-style: italic;
  color: var(--accent);
  font-size: 1.15em;
}

.gallery-hero-sub {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 280px;
  margin-left: auto;
  line-height: 1.6;
}

/* Filter Bar */
.filter-bar {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0;
  margin-bottom: 3.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 0;
}

.filter-btn {
  background: none;
  border: none;
  border-right: 1px solid var(--rule);
  padding: 1rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
}

.filter-btn:first-child { border-left: 1px solid var(--rule); }

.filter-btn.active,
.filter-btn:hover {
  color: var(--charcoal);
  background: var(--cream);
}

.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* Gallery Grid */
.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  columns: 3;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  object-fit: cover;
}

/* Placeholder for items without images */
.gallery-item .img-placeholder {
  width: 100%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  min-height: 200px;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item .img-placeholder svg {
  opacity: 0.2;
  width: 40px;
  height: 40px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img,
.gallery-item:hover .img-placeholder { transform: scale(1.04); }

.gallery-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.2;
  transform: translateY(8px);
  transition: transform 0.4s ease 0.05s;
}

.gallery-item:hover .gallery-overlay h3 { transform: translateY(0); }

.gallery-overlay p {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253,250,245,0.65);
  margin-top: 0.3rem;
  transform: translateY(8px);
  transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay p { transform: translateY(0); }

/* hidden gallery items */
.gallery-item.hidden {
  display: none;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 18, 16, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lightbox-img-wrap {
  max-height: 82vh;
  display: flex;
  align-items: center;
}

.lightbox img {
  max-width: 75vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.lightbox-info {
  min-width: 200px;
  max-width: 240px;
  color: var(--cream);
}

.lightbox-info h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.lightbox-info .meta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.55);
  margin-bottom: 1.2rem;
}

.lightbox-info .desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(245,240,232,0.75);
  font-weight: 300;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(245,240,232,0.2);
  color: var(--cream);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1rem;
}

.lightbox-nav:hover {
  background: rgba(245,240,232,0.1);
  border-color: rgba(245,240,232,0.5);
}

.lightbox-nav.prev { left: -60px; }
.lightbox-nav.next { right: -60px; }

/* ── ════════════════════════════════════
   BIO PAGE
   ════════════════════════════════════ ── */

.bio-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--gutter) 0;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 6rem;
  align-items: start;
}

.bio-portrait-col {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.bio-portrait-frame {
  position: relative;
  background: var(--cream);
}

.bio-portrait-frame::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid var(--rule);
  z-index: -1;
}

.bio-portrait-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.bio-portrait-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
}

.bio-portrait-placeholder svg {
  opacity: 0.15;
  width: 56px;
  height: 56px;
}

.bio-caption {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.bio-text-col {}

.bio-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.bio-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.bio-name em {
  font-style: italic;
  display: block;
  color: var(--accent);
}

.bio-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.bio-section {
  margin-bottom: 2.5rem;
}

.bio-section-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.bio-section p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 1em;
}

.bio-section p:last-child { margin-bottom: 0; }

/* CV / Exhibition list */
.cv-list {
  list-style: none;
}

.cv-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
}

.cv-list li:first-child { border-top: 1px solid var(--rule); }

.cv-year {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 0.1rem;
  font-weight: 400;
}

.cv-detail strong {
  display: block;
  font-weight: 400;
  color: var(--charcoal);
  font-size: 0.9rem;
}

.cv-detail span {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* Press quotes */
.press-quote {
  border-left: 2px solid var(--accent);
  padding: 0.8rem 0 0.8rem 1.5rem;
  margin: 1.5rem 0;
}

.press-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.press-quote cite {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* ── ════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════ ── */

.contact-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.contact-info {}

.contact-info .bio-eyebrow { margin-bottom: 1.2rem; }

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.contact-heading em {
  font-style: italic;
  color: var(--accent);
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item-label {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--charcoal);
}

.contact-item-value a:hover {
  color: var(--accent);
}

.contact-divider {
  width: 40px;
  height: 1px;
  background: var(--rule);
  margin: 1rem 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--rule);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--charcoal);
  border-color: var(--accent);
  background: var(--cream);
}

/* Contact Form */
.contact-form-wrap {}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--warm-white);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238A8078'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #FFFEF9;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--rule);
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.6;
}

.btn-submit {
  align-self: flex-start;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.btn-submit:hover::before { transform: translateX(0); }
.btn-submit span { position: relative; z-index: 1; }

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--cream);
  border: 1px solid var(--rule);
}

.form-success.show { display: block; }

.form-success .checkmark {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 6rem;
  padding: 2.5rem var(--gutter);
}

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

.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--charcoal); }

/* ── RESPONSIVE ── */

/* Tablet landscape */
@media (max-width: 1024px) {
  .gallery-grid { columns: 2; column-gap: 1.25rem; }

  .bio-layout {
    grid-template-columns: 1fr 2fr;
    gap: 3.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .lightbox-info { display: none; }
  .lightbox img { max-width: 88vw; }
}

/* Tablet portrait + mobile */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
    --gutter: 1.25rem;
  }

  /* ── Show hamburger, hide inline links ── */
  .nav-toggle {
    display: flex;   /* flex so the column gap works */
  }

  /* ── Nav links become a dropdown panel ──
     Hidden with display:none by default.
     JS adds/removes .open to show/hide.     */
  .nav-links {
    display: none;                 /* completely hidden until .open */
    position: absolute;            /* drops below the nav bar */
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 199;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--warm-white);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(28,28,28,0.12);
  }

  .nav-links.open {
    display: flex;                 /* snap open — no slide glitch */
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1.1rem 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--ink);
  }

  /* Remove underline animation inside dropdown */
  .nav-links a::after { display: none; }

  .nav-links a.active,
  .nav-links a:hover {
    background: var(--cream);
    color: var(--accent);
  }

  /* Hamburger bars animate to ✕ when open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── Gallery hero ── */
  .gallery-hero { padding: 3rem 0 2rem; }
  .gallery-hero-inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .gallery-hero-text h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .gallery-hero-sub {
    text-align: left;
    margin-left: 0;
    font-size: 1rem;
  }

  /* ── Filter bar: pill-style horizontal scroll on mobile ── */
  .filter-bar { border-top: none; border-bottom: 1px solid var(--rule); }
  .filter-bar-inner {
    padding: 0.75rem var(--gutter);
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .filter-btn {
    border: 1px solid var(--rule) !important;
    border-radius: 2rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.65rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .filter-btn:first-child { border-left: 1px solid var(--rule) !important; }
  .filter-btn.active {
    background: var(--charcoal);
    color: var(--cream);
    border-color: var(--charcoal) !important;
  }
  .filter-btn.active::after { display: none; }

  /* ── Gallery grid: single column ── */
  .gallery-grid { columns: 1; column-gap: 0; }
  .gallery-item { margin-bottom: 1rem; }

  /* Always show overlay info on touch devices */
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(28,28,28,0.75) 0%, transparent 55%);
  }
  .gallery-overlay h3,
  .gallery-overlay p { transform: translateY(0); }

  /* ── Bio page ── */
  .bio-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
  }
  .bio-portrait-col {
    position: static;
    max-width: 280px;
  }
  .bio-portrait-frame::before { display: none; }
  .bio-name { font-size: clamp(2rem, 9vw, 3.2rem); }

  /* ── Contact page ── */
  .contact-layout { padding-top: 3rem; }
  .contact-heading { font-size: clamp(2rem, 9vw, 3.2rem); }
  .social-links { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Larger tap targets for form elements */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1rem 1rem;
    font-size: 1rem; /* prevents iOS auto-zoom on focus */
  }

  .btn-submit {
    width: 100%;
    text-align: center;
    padding: 1.1rem 2rem;
    font-size: 0.75rem;
  }

  /* ── Footer ── */
  .footer-inner {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  /* ── Lightbox: full-screen on mobile ── */
  .lightbox {
    align-items: flex-end;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .lightbox-content {
    max-width: 100vw;
    width: 100vw;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
  }
  .lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(28,28,28,0.6);
    padding: 0.5rem 0.9rem;
    border-radius: 2rem;
    opacity: 1;
    font-size: 0.7rem;
  }
  .lightbox img {
    max-width: 100vw;
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
    padding: 0.5rem;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    /* Move nav buttons to sides of screen */
  }
  .lightbox-nav.prev { left: 8px; top: 40%; }
  .lightbox-nav.next { right: 8px; top: 40%; }

  /* Caption strip below image on mobile */
  .lightbox-mobile-caption {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    color: rgba(245,240,232,0.75);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
  }
}

/* Small phones */
@media (max-width: 430px) {
  .gallery-hero-text h1 { font-size: 2.6rem; }
  /* Shrink logo text so hamburger stays visible at all screen widths */
  .nav-logo { font-size: 1rem; letter-spacing: 0.02em; }
  .bio-section p { font-size: 0.95rem; }
  .cv-list li { grid-template-columns: 3rem 1fr; }
}

/* Extra small — prevent logo overflowing on very narrow screens */
@media (max-width: 360px) {
  .nav-logo { font-size: 0.9rem; }
}

/* Safe area support for notched phones */
@supports (padding: max(0px)) {
  nav {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .gallery-grid,
  .bio-layout,
  .contact-layout,
  .footer-inner {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}

/* ── UTILITY ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Animate-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── AVAILABLE BADGE ── */
.available-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: var(--accent);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  pointer-events: none;
}

/* img-placeholder min-height */
.img-placeholder {
  min-height: 220px;
}