/* =============================================
   MYA HAYES — ARTIST WEBSITE
   style.css
   ============================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #F9F5EF;
  --ivory:    #FDFAF5;
  --charcoal: #1A1A1A;
  --warm-gray:#8C8479;
  --accent:   #C4916B;
  --accent2:  #A07B5E;
  --border:   #E8E0D4;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --nav-h: 68px;
  --max-w: 1280px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── Dark mode token overrides ── */
[data-theme="dark"] {
  --cream:    #1E1B18;
  --ivory:    #161310;
  --charcoal: #F0EBE3;
  --warm-gray:#9E9690;
  --accent:   #C4916B;
  --accent2:  #D4A882;
  --border:   #2E2A26;
}

/* ── Dark mode toggle button ── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 1.25rem;
  color: rgba(253,250,245,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  flex-shrink: 0;
}
#navbar.scrolled .theme-toggle { color: var(--warm-gray); }
body.subpage .theme-toggle     { color: var(--warm-gray); }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }

/* sun icon hidden in light, shown in dark */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Hero always renders in light mode colours — hardcoded, not token-based ── */
#hero .hero-eyebrow,
#hero .hero-title,
#hero .hero-sub,
#hero .hero-scroll-hint,
#hero .hero-scroll-hint span,
#hero .scroll-line { color: #FDFAF5 !important; }

/* Light mode hero button — outline/ghost */
#hero .btn-primary {
  background: transparent;
  border-color: rgba(253,250,245,0.7);
  color: #FDFAF5 !important;
}
#hero .btn-primary:hover {
  background: rgba(253,250,245,0.15);
  border-color: #FDFAF5;
}

/* Dark mode hero button — solid fill */
[data-theme="dark"] #hero .btn-primary {
  background: #FDFAF5;
  border-color: #FDFAF5;
  color: #1A1A1A !important;
}
[data-theme="dark"] #hero .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FDFAF5 !important;
}

html { scroll-behavior: smooth; }

/* ---------- SCROLLBAR ---------- */
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--cream);
}
/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
  border: 2px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent2);
}

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 3rem;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  position: absolute;
  left: 3rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ivory);
  opacity: 0;
  pointer-events: none;
  transition: color var(--transition), opacity var(--transition);
}
#navbar.scrolled .nav-logo { color: var(--charcoal); }
#navbar.logo-visible .nav-logo {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(253,250,245,0.85);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
#navbar.scrolled .nav-links a { color: var(--warm-gray); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent) !important; }

/* ── Nav dropdown ── */
.nav-item--dropdown {
  position: relative;
}

.nav-dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 100;
}

.nav-dropdown-inner {
  background: rgba(253,250,245,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

[data-theme="dark"] .nav-dropdown-inner {
  background: rgba(30,27,24,0.97);
}

.nav-item--dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray) !important;
  white-space: nowrap;
}
.nav-dropdown li a:hover { color: var(--accent) !important; }
.nav-dropdown li a::after { display: none !important; }


@media (max-width: 860px) {
  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    padding: 0 0 0 1rem;
  }
  .nav-dropdown-inner {
    background: none !important;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-dropdown li a {
    font-size: 0.85rem;
    padding: 0.25rem 0;
  }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ivory);
  transition: background var(--transition);
}
#navbar.scrolled .nav-hamburger span { background: var(--charcoal); }

/* ---------- HERO ---------- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.25);
  transition: transform 20s ease-out;
  /* fallback gradient until JS sets the image */
  background-color: #2a1f1a;
}

@media (max-width: 600px) {
  .hero-bg {
    background-position: 60% center;
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,12,8,0.62) 0%,
    rgba(20,12,8,0.35) 60%,
    rgba(20,12,8,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ivory);
  padding: 0 1.5rem;
  animation: heroFadeUp 1.2s ease both;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 1.2rem;
  line-height: 1.0;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.7;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(253,250,245,0.5);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadePulse 3s ease infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(253,250,245,0.5), transparent);
}

/* ---------- HERO HOTSPOTS ---------- */
.hero-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3; /* above .hero-overlay */
  pointer-events: none;
  /* Mirror the exact same Ken Burns transition as .hero-bg so dots track the image */
  transform: scale(1.25);
  transition: transform 20s ease-out;
  /* Fade in with opacity only — not heroFadeUp (which uses transform and conflicts with scale) */
  opacity: 0;
  animation: hsAppear 1.2s 1s ease forwards;
}
@keyframes hsAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-hotspot {
  position: absolute;
  left: var(--hx);
  top: var(--hy);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: all;
  text-decoration: none;
  cursor: pointer;
}


/* Dot */
.hs-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(253,250,245,0.9);
  border: 1.5px solid rgba(253,250,245,0.5);
  box-shadow: 0 0 0 0 rgba(253,250,245,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: hsPulse 2.8s ease infinite;
  position: relative;
  z-index: 1;
}

/* Line connecting dot to label — via ::after pseudo on dot */
.hs-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 28px;
  height: 1px;
  background: rgba(253,250,245,0.55);
  transform: translateY(-50%);
}

/* Label */
.hs-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(253,250,245,0.85);
  white-space: nowrap;
  margin-left: 30px; /* matches line width */
  background: rgba(20,12,8,0.45);
  padding: 3px 7px;
  border: 1px solid rgba(253,250,245,0.2);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

/* Left-side variant — label and line go left instead */
.hero-hotspot--left {
  flex-direction: row-reverse;
}
.hero-hotspot--left .hs-dot::after {
  left: auto;
  right: 100%;
}
.hero-hotspot--left .hs-label {
  margin-left: 0;
  margin-right: 30px;
}

/* Hover state */
.hero-hotspot:hover .hs-dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 5px rgba(253,250,245,0.15);
  animation: none;
}
.hero-hotspot:hover .hs-label {
  color: #fff;
  background: rgba(20,12,8,0.7);
  border-color: rgba(253,250,245,0.5);
}

/* Pulse animation */
@keyframes hsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(253,250,245,0.4); }
  60%  { box-shadow: 0 0 0 6px rgba(253,250,245,0); }
  100% { box-shadow: 0 0 0 0 rgba(253,250,245,0); }
}

/* Hide hotspots on small screens where the photo crops too much */
@media (max-width: 600px) {
  .hero-hotspots { display: none; }
}

/* ---------- ABOUT ---------- */
#about {
  background: var(--cream);
  padding: 5rem 3rem 6rem;
  border-top: 1px solid var(--border);
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/5;
}
.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -8px 8px 8px -8px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  z-index: 0;
}
.about-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.about-image-wrap:hover .about-img { transform: scale(1.03); }

.about-text { padding: 1rem 0; }
.about-text h2 {
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}
.about-text p {
  color: var(--warm-gray);
  font-size: 0.97rem;
  margin-bottom: 1.2rem;
}
.about-text .btn { margin-top: 1.5rem; }

/* ---------- WORKS ---------- */
#works {
  padding: 6rem 3rem 6rem;
  background: var(--cream);
  scroll-margin-top: var(--nav-h);
}

.works-header {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.works-years {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.year-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 2 / 3;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12), 0 16px 40px rgba(0,0,0,0.22);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  display: block;
}

.year-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.18), 0 28px 60px rgba(0,0,0,0.32);
  transform: translateY(-5px);
}

.year-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.year-card:hover .year-card-img {
  transform: scale(1.06);
}

.year-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.12) 45%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem 1.25rem;
  transition: background 0.4s ease;
}

.year-card:hover .year-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.22) 55%, transparent 80%);
}

.year-number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.year-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253,250,245,0.65);
  transition: color 0.3s ease;
}

.year-card:hover .year-label { color: var(--accent); }

/* ---------- NEWS & EXHIBITIONS ---------- */
#news {
  background: var(--cream);
  padding: 5rem 3rem;
  scroll-margin-top: var(--nav-h);
}

.news-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.news-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ── Grid: 3 columns, explicit row placement ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1.25rem;
  align-items: stretch;
}

/* ── Base card ── */
.news-card {
  background: var(--ivory);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 6px 24px rgba(0,0,0,0.07);
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 16px 48px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* ── Featured: YC 2026 — row 1, col 1–2, horizontal layout ── */
.news-card--featured {
  grid-column: 1 / 3;
  grid-row: 1;
  flex-direction: row;
}
.news-card--featured .nc-img-wrap {
  flex: 0 0 52%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 300px;
}
.news-card--featured .nc-body {
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Thesis: row 1–2, col 3, vertical with 2×2 image grid ── */
.news-card--thesis {
  grid-column: 3;
  grid-row: 1 / 3;
  flex-direction: column;
}

/* ── Rome: row 3, col 1–2, horizontal landscape ── */
.news-card--rome {
  grid-column: 1 / 3;
  grid-row: 3;
  flex-direction: row;
  align-items: stretch;
}
.news-card--rome .nc-img-link {
  flex: 0 0 55%;
  display: block;
}
.news-card--rome .nc-img-wrap--wide {
  height: 100%;
  min-height: 180px;
}
.news-card--rome .nc-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Trio image layout (2×2 inside featured card) ── */
.nc-img-wrap--trio {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.nc-trio-main,
.nc-trio-side {
  display: flex;
  flex-direction: column;
}
.nc-trio-main .nc-img,
.nc-trio-side .nc-img {
  flex: 1;
  min-height: 0;
}
.nc-trio-side {
  border-left: 2px solid var(--cream);
}
.nc-trio-main .nc-img + .nc-img,
.nc-trio-side .nc-img + .nc-img {
  border-top: 2px solid var(--cream);
}

/* ── Quad image layout (2×2 grid, used in thesis card) ── */
.nc-img-wrap--quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: var(--cream);
  min-height: 280px;
  flex: 1;
}
.nc-img-wrap--quad .nc-img-link {
  height: 100%;
  min-height: 0;
}
.nc-img-wrap--quad .nc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Wide image (used in rome card) ── */
.nc-img-wrap--wide {
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.nc-img-wrap--wide .nc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Upcoming cards ── */
.news-card--upcoming {
  border-top: 2px solid var(--accent);
  background: var(--ivory);
}
.news-card--upcoming .nc-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* ── Image link wrapper ── */
.nc-img-link {
  display: block;
  overflow: hidden;
  height: 100%;
}
.nc-img-link .nc-img { height: 100%; }

/* ── News image zoom button ── */
.nc-img-zoom-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.nc-img-zoom-btn .nc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.nc-img-zoom-btn:hover .nc-img { transform: scale(1.04); }
.nc-img-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,12,8,0);
  transition: background var(--transition);
}
.nc-img-zoom-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
}
.nc-img-zoom-btn:hover .nc-img-zoom-icon { background: rgba(20,12,8,0.35); }
.nc-img-zoom-btn:hover .nc-img-zoom-icon svg { opacity: 1; }

/* ── Image wrappers ── */
.nc-img-wrap {
  overflow: hidden;
}
.nc-img-wrap--sm {
  aspect-ratio: 4/3;
}
.nc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.nc-img--secondary {
  border-left: 2px solid var(--cream);
}
.news-card--featured .nc-img-wrap {
  min-height: 280px;
}
.news-card:hover .nc-img { transform: scale(1.04); }

/* ── Body ── */
.nc-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.nc-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.nc-badge {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border-radius: 2px;
}
.nc-badge--upcoming { background: var(--accent);  color: var(--ivory); }
.nc-badge--award    { background: var(--charcoal); color: var(--ivory); }

.nc-date {
  font-size: 0.72rem;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
}

.nc-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}
.news-card--featured .nc-title { font-size: 1.55rem; }

.nc-sub {
  font-size: 0.78rem;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
}

.nc-desc {
  font-size: 0.83rem;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  flex: 1;
}
.nc-desc em { font-style: italic; }

.nc-link {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--transition);
  margin-top: auto;
}
.nc-link:hover { color: var(--charcoal); }

@media (max-width: 960px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .news-card--featured {
    grid-column: 1 / 3;
    grid-row: auto;
    flex-direction: column;
  }
  .news-card--featured .nc-img-wrap { flex: none; min-height: 220px; }
  .news-card--thesis {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .nc-img-wrap--quad { min-height: 240px; flex: none; }
  .news-card--rome {
    grid-column: 1 / 3;
    grid-row: auto;
    flex-direction: column;
  }
  .news-card--rome .nc-img-link { flex: none; }
  .news-card--rome .nc-img-wrap--wide { min-height: 200px; height: 200px; }
  .news-card--rome .nc-body { padding: 1.25rem 1.5rem 1.5rem; }
}

@media (max-width: 600px) {
  #news { padding: 4rem 1.25rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card--featured,
  .news-card--thesis,
  .news-card--rome { grid-column: 1; }

  .news-card--rome .nc-img-link { flex: none; width: 100%; }
  .news-card--rome .nc-img-wrap--wide { height: 220px; min-height: 220px; }
}

/* ---------- FEED (formerly Gallery) ---------- */
#feed {
  padding: 8rem 3rem;
  background: var(--ivory);
}

.gallery-header {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.gallery-header h2 { margin-bottom: 1.5rem; }

.gallery-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--warm-gray);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}

/* Masonry-style grid */
.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  columns: 4;
  column-gap: 1.25rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  background: var(--border);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,12,8,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-zoom {
  color: var(--ivory);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.gallery-item-zoom svg { width: 14px; height: 14px; }

/* fade-in animation for grid items */
.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  animation: itemFadeIn 0.5s ease forwards;
}

.gallery-more {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
}
#loadMore { min-width: 180px; }
#loadMore.hidden { display: none; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,8,6,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transition: opacity 0.2s ease;
}
.lb-img.loading { opacity: 0; }

.lb-close {
  position: fixed;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: rgba(253,250,245,0.7);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10000;
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
}
.lb-close:hover { color: var(--ivory); transform: rotate(90deg); }

.lb-arrow {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(253,250,245,0.08);
  border: 1px solid rgba(253,250,245,0.15);
  color: rgba(253,250,245,0.8);
  font-size: 1.4rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.lb-arrow:hover { background: rgba(253,250,245,0.2); color: var(--ivory); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

.lb-counter {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(253,250,245,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- CONTACT ---------- */
#contact {
  background: var(--cream);
  padding: 8rem 3rem;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}
.contact-sub {
  color: var(--warm-gray);
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.form-group input,
.form-group textarea {
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input.error,
.form-group textarea.error { border-color: #c0392b; }

.contact-form .btn { align-self: flex-start; }

.form-success {
  display: none;
  color: var(--accent2);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.form-success.visible { display: block; }

.contact-socials {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--warm-gray);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.social-link:hover { color: var(--accent); }
.social-link svg { width: 18px; height: 18px; }

/* ---------- ABOUT BUTTONS + MAILING LIST ---------- */
.about-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.mailing-list-wrap {
  margin: 5rem 0 0;
  padding: 3rem 2rem;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.mailing-list-inner {
  max-width: 480px;
  margin: 0 auto;
}

.mailing-list-inner h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.4rem;
}

.mailing-list-inner p {
  color: var(--warm-gray);
  font-style: italic;
  margin-bottom: 1.25rem;
  font-size: 0.93rem;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-end;
}

.subscribe-form input {
  flex: 1 1 140px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.7rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition);
}

.subscribe-form input::placeholder { color: var(--warm-gray); }

.subscribe-form input:focus { border-color: var(--accent); }


/* ============================================
   SUBPAGE (cv.html, gallery.html) STYLES
   ============================================ */

body.subpage {
  background: var(--ivory);
}

/* ── Subpage header — matches main #navbar scrolled state exactly ── */
.subpage-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.subpage-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--charcoal);
}

.subpage-nav {
  display: flex;
  gap: 2.5rem;
}

.subpage-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}

.subpage-nav a:hover { color: var(--accent); }

.subpage-nav a.active {
  color: var(--charcoal);
}

.subpage-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--charcoal);
}

.subpage-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.subpage-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--charcoal);
  transition: background var(--transition);
}

/* ── Subpage main ── */
.subpage-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
}

/* ── Subpage footer — matches main footer exactly ── */
.subpage-footer {
  background: var(--charcoal);
  color: rgba(253,250,245,0.35);
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.subpage-footer-links {
  display: flex;
  gap: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
}

.subpage-footer a { color: rgba(253,250,245,0.35); }
.subpage-footer a:hover { opacity: 0.8; }

/* ── CV page ── */
.cv-intro {
  background: var(--cream);
  padding: calc(var(--nav-h) + 2.5rem) 3rem 3rem;
  border-bottom: 1px solid var(--border);
}

.cv-intro-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cv-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  margin-bottom: 1rem;
}

.cv-tagline {
  color: var(--warm-gray);
  font-size: 1rem;
  font-style: italic;
  font-family: var(--font-serif);
  margin-top: 0.25rem;
}

.cv-band {
  padding: 2.5rem 3rem;
}

.cv-band--cream { background: var(--cream); }
.cv-band--ivory { background: var(--ivory); }

.cv-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  max-width: 860px;
}

.cv-band-inner .section-label {
  display: block;
  margin-bottom: 1rem;
}

.cv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.cv-list li:first-child {
  border-top: 1px solid var(--border);
}

.cv-year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--warm-gray);
}

.cv-desc {
  color: var(--charcoal);
  line-height: 1.7;
}

/* ── Gallery viewer page ── */
.gallery-viewer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.25rem) 3rem 2rem;
}

.gv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.gv-year-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gv-year-arrow {
  font-size: 1rem;
  color: var(--warm-gray);
  text-decoration: none;
  line-height: 1;
  transition: color var(--transition);
  user-select: none;
}

.gv-year-arrow:hover { color: var(--charcoal); }

.gv-year-arrow.hidden { visibility: hidden; pointer-events: none; }

.gv-back {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--warm-gray);
  transition: color var(--transition);
}

.gv-back:hover { color: var(--accent); }

.gv-year {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
}

.gv-counter {
  font-size: 0.82rem;
  color: var(--warm-gray);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.gv-viewer {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 1.5rem;
}

.gv-arrow {
  background: none;
  border: 1.5px solid var(--border);
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  transition: all var(--transition);
  justify-self: center;
}

.gv-arrow svg { width: 22px; height: 22px; }

.gv-arrow:hover {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

.gv-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
}

.gv-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;
}

.gv-image.fade { opacity: 0; }

.gv-image img {
  max-height: 60vh;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(0,0,0,0.14));
}

/* Diptych */
.gv-image.diptych {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.gv-image.diptych img {
  max-height: 60vh;
  max-width: 48%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.12));
}

.gv-caption {
  text-align: center;
  max-width: 600px;
}

.gv-caption h2 {
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.gv-caption p {
  font-size: 0.78rem;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ── Gallery zoom button ── */
.gv-stage {
  position: relative;
}
.gv-zoom-btn {
  position: absolute;
  bottom: 3.5rem; /* above caption */
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(120,100,80,0.45);
  background: rgba(255,252,248,0.75);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
  padding: 0;
  z-index: 10;
}
.gv-zoom-btn svg { width: 16px; height: 16px; }
.gv-stage:hover .gv-zoom-btn { opacity: 1; }
.gv-zoom-btn:hover { background: rgba(255,252,248,1); }

[data-theme="dark"] .gv-zoom-btn {
  background: rgba(30,20,14,0.7);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
[data-theme="dark"] .gv-zoom-btn:hover { background: rgba(30,20,14,0.92); }

/* ── Gallery lightbox ── */
.gv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8,6,4,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.gv-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.gv-lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition);
  z-index: 2001;
}
.gv-lb-close:hover { color: #fff; }
.gv-lb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-out;
}
.gv-lb-img-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.25s ease;
  will-change: transform;
  cursor: grab;
}
.gv-lb-img-wrap.dragging { cursor: grabbing; transition: none; }
.gv-lb-img-wrap img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}
.gv-lightbox.diptych .gv-lb-img-wrap img {
  max-width: 44vw;
}

/* Thumbnail strip */
.gv-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gv-thumb {
  flex: 0 0 70px;
  height: 70px;
  cursor: pointer;
  opacity: 0.45;
  overflow: hidden;
  transition: opacity var(--transition);
}

.gv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gv-thumb--diptych {
  flex: 0 0 130px;
  display: flex;
  gap: 2px;
}

.gv-thumb--diptych img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.gv-thumb.active,
.gv-thumb:hover { opacity: 1; }

/* ---------- FOOTER ---------- */
footer {
  background: #E8E2D8;
  color: var(--warm-gray);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

[data-theme="dark"] footer {
  background: #0E0C0A;
  color: rgba(253,250,245,0.25);
  border-top-color: var(--border);
}

.footer-credit {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  opacity: 0.35;
  letter-spacing: 0.06em;
}

/* ============================================
   CART NAV BUTTON
   ============================================ */
.cart-nav-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0.75rem;
  color: rgba(253,250,245,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  flex-shrink: 0;
}
#navbar.scrolled .cart-nav-btn { color: var(--warm-gray); }
body.subpage .cart-nav-btn     { color: var(--warm-gray); }
.cart-nav-btn:hover { color: var(--accent); }
.cart-nav-btn svg { width: 17px; height: 17px; }

.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 600;
  min-width: 14px;
  height: 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1100;
  backdrop-filter: blur(2px);
}
.cart-overlay[hidden] { display: none; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--ivory);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer[hidden] { display: none; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--warm-gray);
  transition: color var(--transition);
  padding: 2px 4px;
}
.cart-drawer-close:hover { color: var(--charcoal); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-empty {
  font-size: 0.875rem;
  color: var(--warm-gray);
  text-align: center;
  margin-top: 3rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--border);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.3;
}

.cart-item-variant {
  font-size: 0.72rem;
  color: var(--warm-gray);
  letter-spacing: 0.03em;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cart-qty-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--charcoal);
  width: 24px;
  height: 24px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.cart-qty-btn:hover {
  border-color: var(--charcoal);
  background: var(--cream);
}

.cart-qty {
  font-size: 0.82rem;
  color: var(--charcoal);
  min-width: 18px;
  text-align: center;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cart-item-price {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--charcoal);
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--warm-gray);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color var(--transition);
  padding: 0;
  line-height: 1;
}
.cart-remove-btn:hover { color: var(--charcoal); }

.cart-footer {
  padding: 1.25rem 1.75rem 1.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--charcoal);
}

.cart-note {
  font-size: 0.72rem;
  color: var(--warm-gray);
  line-height: 1.55;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

/* ---------- DARK MODE COMPONENT OVERRIDES ---------- */

/* Year card numbers always white (overlay is always dark) */
[data-theme="dark"] .year-number { color: #FDFAF5 !important; }
[data-theme="dark"] .year-label  { color: rgba(253,250,245,0.65) !important; }
[data-theme="dark"] .year-card:hover .year-label { color: var(--accent) !important; }

[data-theme="dark"] #navbar.scrolled {
  background: rgba(22, 19, 16, 0.92);
}

[data-theme="dark"] footer,
[data-theme="dark"] .subpage-footer {
  background: #0E0C0A;
  color: rgba(253,250,245,0.35);
}
[data-theme="dark"] .subpage-footer a { color: rgba(253,250,245,0.35); }

[data-theme="dark"] .nav-links.open,
[data-theme="dark"] .subpage-nav.open {
  background: rgba(22, 19, 16, 0.97);
}

[data-theme="dark"] .nav-links.open a {
  color: var(--charcoal) !important;
}

[data-theme="dark"] .subpage-header {
  background: rgba(22, 19, 16, 0.92);
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .subscribe-form input {
  background: #1E1B18;
  color: var(--charcoal);
  border-color: var(--border);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder,
[data-theme="dark"] .subscribe-form input::placeholder {
  color: var(--warm-gray);
}

[data-theme="dark"] .gv-arrow {
  background: rgba(240,235,227,0.06);
  border-color: var(--border);
  color: var(--charcoal);
}
[data-theme="dark"] .gv-arrow:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

[data-theme="dark"] .gv-image img {
  filter: drop-shadow(0 25px 35px rgba(0,0,0,0.5));
}

[data-theme="dark"] .year-card {
  box-shadow: 0 4px 8px rgba(0,0,0,0.18), 0 10px 24px rgba(0,0,0,0.22);
}

[data-theme="dark"] .btn-outline {
  color: var(--charcoal);
  border-color: var(--charcoal);
}
[data-theme="dark"] .btn-outline:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

[data-theme="dark"] .btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}
[data-theme="dark"] .btn-primary:hover {
  background: var(--accent2);
}

[data-theme="dark"] .news-card,
[data-theme="dark"] .news-card--upcoming {
  background: #2A2520;
}

[data-theme="dark"] .nc-img--secondary {
  border-left-color: var(--ivory);
}
[data-theme="dark"] .nc-trio-main .nc-img + .nc-img,
[data-theme="dark"] .nc-trio-side .nc-img + .nc-img {
  border-top-color: var(--ivory);
}
[data-theme="dark"] .nc-trio-side {
  border-left-color: var(--ivory);
}
[data-theme="dark"] .nc-img-wrap--quad {
  background: var(--ivory);
}

/* ---------- ANIMATIONS ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadePulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
@keyframes itemFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- INTERSECTION OBSERVER (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .gallery-grid { columns: 3; }
}

@media (max-width: 1100px) {
  .works-years { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 860px) {
  /* Center the orphaned 5th year card in a 2-col grid */
  .works-years .year-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.75rem);
  }

  .subpage-header { padding: 0 1.5rem; }

  .subpage-hamburger { display: flex; }

  .subpage-nav {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(253,250,245,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    z-index: 800;
  }

  .subpage-nav.open { display: flex; }
  .subpage-nav.open a { font-size: 1rem; }

  .subpage-main { padding: 2.5rem 1.5rem 4rem; }

  .subpage-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .mailing-list-wrap { padding: 2.5rem 1.5rem; }

  .gallery-viewer { padding: calc(var(--nav-h) + 1.5rem) 1rem 3rem; }

  .gv-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .gv-viewer {
    grid-template-columns: 1fr;
    position: relative;
  }

  .gv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(253,250,245,0.9);
  }

  .gv-arrow--prev { left: 0.5rem; }
  .gv-arrow--next { right: 0.5rem; }

  .gv-stage { grid-column: 1; }

  .gv-image { min-height: 50vh; }

  .cv-intro { padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem; }

  .cv-band { padding: 3rem 1.5rem; }

  .cv-list li {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

  .about-btns { flex-direction: column; }

  #navbar { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(253,250,245,0.97);
    backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  }
  .nav-links.open a { color: var(--charcoal) !important; font-size: 1rem; }
  .nav-hamburger { display: flex; }

  .gallery-grid { columns: 2; }

  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 460px; margin: 0 auto; }

  .form-row { grid-template-columns: 1fr; }

  #about { padding: 5rem 1.5rem 3rem; }
  #works, #feed, #contact { padding: 5rem 1.5rem; }

  .works-years { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .works-years { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .works-years .year-card:last-child:nth-child(odd) { width: calc(50% - 0.375rem); }
  .gallery-grid { columns: 1; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .lb-arrow { width: 40px; height: 40px; font-size: 1.1rem; }
}
