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

/* VARIABLES */
:root {
  --gold:        #ffecb8;
  --gold-dim:    #ffe1a2;
  --cream:       #e8e0d0;
  --cream-muted: #f5efe4;
  --whisper:     #f6f3ee;
  --dark:        #1c1a17;
  --dark-deep:   #100f0d;
  --font-display: 'IM Fell English', serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
}

/* WEBSITE BASE FORMATS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--cream);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PAGE TRANSITION OVERLAY - FROM & FOR TRANSITIONS.JS */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--dark-deep);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page-transition.fade-out {
  opacity: 1;
  pointer-events: all;
}

/* SHARED BACKGROUND PATTERN - APPLIES PER PAGE */
.intro-page,
.booth-page,
.gallery-page,
.path-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-direction: column;
}

.intro-page {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(60,50,30,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(40,35,25,0.2)  0%, transparent 55%),
    url("images/rain.png");
  background-color: #1a1814;
  align-items: stretch;
  justify-content: flex-start;
}

.booth-page {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(60,50,30,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(40,35,25,0.2)  0%, transparent 55%),
    url("images/booth.png");
  background-color: #1a1814;
  align-items: center;
  justify-content: center;
}

.gallery-page {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(60,50,30,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(40,35,25,0.2)  0%, transparent 55%),
    url("images/gallery.png");
  background-color: #1a1814;
  align-items: stretch;
  justify-content: flex-start;
}

.path-page {
  background-image:
    radial-gradient(ellipse at 50% 80%, rgba(80,60,20,0.3)  0%, transparent 60%),
    radial-gradient(ellipse at 20% 20%, rgba(40,35,25,0.2)  0%, transparent 55%),
    url("images/back.png");
  background-color: var(--dark-deep);
  align-items: center;
  justify-content: center;
}

/* SHARED DIVIDERS ON CARDS */
.ticket-divider,
.path-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticket-divider span:not(.ticket-icon),
.path-divider span:not(.divider-icon) {
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
  opacity: 0.4;
}

.ticket-icon,
.divider-icon {
  color: var(--gold-dim);
  font-size: 0.8rem;
}

/* SHARED BUTTON STYLES */
.ticket-btn,
.enter-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: background 0.35s ease, color 0.35s ease;
}

.ticket-btn:hover,
.enter-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

/* INTRO PAGE STYLES */
.intro-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  height: 100vh;
}

.line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s forwards;
}

/* BOOTH PAGE STYLES */
.booth-wrap {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  animation: fadeUp 1.2s ease forwards;
}

.booth-card {
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  background: rgba(28, 26, 23, 0.88);
  backdrop-filter: blur(8px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* smooth dissolve between stages */
  transition: border-color 0.6s ease, background 0.6s ease, backdrop-filter 0.6s ease, padding 0.6s ease;
}

/* Stage 2: card shell dissolves, only title + divider float */
.booth-card--bare {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  padding: 2rem 1rem;
}

/* hides button in mid stage */
.booth-card--bare .booth-body {
  display: none;
}

.museum-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* GALLERY PAGE */
.nav {
  width: 100%;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  flex-shrink: 0;
}

.nav-inner {
  max-width: 100%;
  padding: 1.25rem 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 1;
}

.w-btn {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.w-btn:hover {
  color: var(--gold);
  transform: scale(1.08);
}

.painting-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.3s forwards;
}

.painting-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.project-hero {
  position: relative;
  overflow: hidden;
  border: 0.5px solid #b8962e;
  box-shadow:
    0 0 0 2px #8a6a20,
    0 0 0 4px var(--gold),
    0 8px 40px rgba(0,0,0,0.7),
    inset 0 0 12px rgba(0,0,0,0.4);
  max-width: 800px;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(232, 224, 208, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active,
.dot:hover {
  background: var(--gold);
  transform: scale(1.2);
}

/* PATH PAGE (p9) */
/* SMALLER SIZE HERE PROVIDES TEXT */
.path-whisper {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 2.5rem;
  text-align: center;
  height: 100vh;
}

.path-whisper.visible { display: flex; }

.whisper-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--whisper);
  opacity: 0;
}

.path-whisper.visible .whisper-line:nth-child(1) { animation: fadeUp 1s ease 0.2s forwards; }
.path-whisper.visible .whisper-line:nth-child(2) { animation: fadeUp 1s ease 0.9s forwards; }
.path-whisper.visible .whisper-line:nth-child(3) { animation: fadeUp 1s ease 1.4s forwards; }

/* ON WIDE SIZE HERE IS THE ENTRANCE */
.path-scene {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.8rem;
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.path-scene.visible { display: flex; }

.path-card {
  border: 1px solid rgba(138, 111, 53, 0.5);
  border-radius: 4px;
  padding: 3rem 2.5rem 2.5rem;
  background: rgba(16, 15, 13, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* smooth dissolve for mid stage */
  transition: border-color 0.6s ease, background 0.6s ease, backdrop-filter 0.6s ease, padding 0.6s ease;
}

.path-card--bare {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  padding: 2rem 1rem;
}

.path-card--bare .path-eyebrow,
.path-card--bare .path-body,
.path-card--bare .enter-btn {
  display: none;
}

.path-scene.visible .path-card    { animation: fadeUp 1s ease 0.2s both; }
.path-scene.visible .path-eyebrow { animation: fadeUp 1s ease 0.4s both; }
.path-scene.visible .path-title   { animation: fadeUp 1s ease 0.7s both; }
.path-scene.visible .path-divider { animation: fadeUp 1s ease 1s   both; }
.path-scene.visible .path-body    { animation: fadeUp 1s ease 1.2s both; }
.path-scene.visible .enter-btn    { animation: fadeUp 1s ease 1.6s both; }

.path-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0;
}

.path-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.35;
  color: var(--cream);
  opacity: 0;
}

.path-divider { opacity: 0; }

.path-body {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  color: var(--cream-muted);
  opacity: 0;
}

.path-body em {
  color: var(--cream);
  font-style: normal;
}

.enter-btn {
  opacity: 0;
  align-self: center;
}

/* ANIMATIONS - TRANSITIONS.JS AND KEYFRAMES */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─────────────────────────────────────────
   W GALLERY PAGES (p4–p8)
───────────────────────────────────────── */

.w-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.18em;
  color: var(--gold-dim);
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

/* ── Bottom nav: back to gallery + next W ── */
.gallery-nav {
  display: flex;
  gap: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.placard {
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  cursor: default;
}

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

.placard.expandable {
  cursor: pointer;
}

.placard.expandable:hover .placard-main {
  color: var(--gold);
}

.placard-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: color 0.3s ease;
}

.placard-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--cream);
  letter-spacing: 0.02em;
}

.placard-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.placard-extra {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream-muted);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
  margin-top: 0;
}

.placard-extra.open {
  max-height: 3rem;
  opacity: 1;
  margin-top: 0.6rem;
}


.detail-zone {
  display: none; /* hidden until activated by JS */
  position: absolute;
  top: 18%;
  left: 52%;
  width: 18%;
  height: 14%;
  cursor: crosshair;
}

.detail-zone.active {
  display: block;
}

.detail-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  animation: pulse 2.5s ease-in-out infinite;
}

.detail-text {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.detail-zone:hover .detail-text {
  opacity: 1;
}

.linger-msg {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--cream);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.linger-msg.active {
  opacity: 1;
}

.dim-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.dim-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.dim-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--cream);
  text-align: center;
  padding: 0 2rem;
  letter-spacing: 0.04em;
}


.painting-img.warm {
  filter: sepia(0.35) saturate(1.4) brightness(1.05);
  transition: filter 0.6s ease;
}

/* Default: no filter transition until class is added */
.painting-img {
  transition: opacity 0.3s ease, filter 0.6s ease;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.08); }
}


@media (max-width: 1200px) {
  .project-hero {
    max-width: 600px;
  }
  .w-label {
    font-size: 1rem;
  }
}

/* Small (≤480px): stack vertically, painting fills width MOBILE */
@media (max-width: 480px) {
  .painting-stage {
    padding: 1rem;
    gap: 1rem;
  }
  .project-hero {
    max-width: 100%;
    aspect-ratio: 3 / 2;
  }
  .placard-title {
    font-size: 0.95rem;
  }
  .gallery-nav {
    gap: 1rem;
  }
  .detail-zone {
    display: none !important;
  }
  .linger-msg {
    font-size: 0.85rem;
  }
}


body.how-page {
  background-image:
    radial-gradient(ellipse at 30% 60%, rgba(60,50,30,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(40,35,25,0.2) 0%, transparent 55%),
    url("images/how.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1814;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}


/* Scene base All states share this shell.*/
.how-scene {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  max-width: 620px;
  width: 100%;
  text-align: center;
}

/* JS adds .visible to the active state — triggers fadeUp */
.how-scene.visible {
  display: flex;
  animation: fadeUp 0.8s ease forwards;
}

/* Text content HERE */
.how-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  width: 100%;
}

.how-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.how-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  color: var(--cream);
}

.how-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.how-divider span:not(.divider-icon) {
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
  opacity: 0.4;
}

.how-body {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: var(--cream-muted);
}

.how-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.how-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
  padding-bottom: 2px;
}

.how-link:hover {
  border-color: var(--gold);
  color: var(--cream);
}

/* ─── Responsive: tighten on small screens ─── */
@media (max-width: 480px) {
  .how-scene {
    padding: 2rem 1.5rem;
  }

  .how-title {
    font-size: 1.3rem;
  }

  .how-body {
    font-size: 0.9rem;
  }

  .how-nav {
    gap: 1rem;
  }
}


/* ─────────────────────────────────────────
   IMPORTANT: PAINTING INTERACTION CLASSES
   All W gallery interactions live here.
───────────────────────────────────────── */
.painting-img {
  transition: filter 0.9s ease, transform 1.2s cubic-bezier(0.25,0.1,0.25,1), opacity 0.2s;
}

.painting-img.zoomed {
  transform: scale(1.05);
}

@keyframes breathe {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.7;  transform: scale(1.02); }
}
.painting-img.breathing {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0deg);     }
  15%      { transform: translateX(-5px) rotate(-0.4deg); }
  30%      { transform: translateX(5px)  rotate(0.4deg);  }
  50%      { transform: translateX(-4px);                 }
  70%      { transform: translateX(4px);                  }
  90%      { transform: translateX(-2px);                 }
}
.painting-img.shaking {
  animation: shake 0.45s ease;
}

.painting-img.parallax-active {
  transition: none;
}

.painting-img.cooled {
  filter: saturate(0.35) hue-rotate(180deg) brightness(0.88);
  transition: filter 1.1s ease;
}

.painting-img.warm {
  filter: sepia(0.45) saturate(1.6) brightness(1.08);
}

.painting-img.tilt-active {
  transition: none;
}

.painting-img.desaturated {
  filter: saturate(0) brightness(0.95);
  transition: filter 2s ease;
}

.painting-img.grey {
  filter: grayscale(1) brightness(0.88);
}

#painting-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.6) 100%);
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
  z-index: 2;
}
#painting-frame.vignetting::after {
  opacity: 1;
}

@keyframes tremor {
  0%   { transform: translate(0, 0);     }
  25%  { transform: translate(1px, 1px); }
  50%  { transform: translate(-1px, -1px); }
  75%  { transform: translate(1px, -1px); }
  100% { transform: translate(0, 0);     }
}
.painting-img.trembling {
  animation: tremor 0.14s infinite;
}

.painting-img.flash {
  filter: brightness(4) saturate(0) contrast(2);
  transition: none; /* instant */
}
.painting-img.after-flash {
  filter: brightness(1) contrast(1.05);
  transition: filter 1.4s ease-out; /* slow recovery */
}

.painting-img.desaturated-slow {
  filter: grayscale(1) brightness(0.82);
  transition: filter 5s ease;
}

.painting-img.focused {
  filter: blur(6px) brightness(0.5);
  transition: filter 0.4s ease;
}
.painting-img.revealed {
  filter: blur(0) brightness(1);
  transition: filter 1.6s ease; /* slow clarification */
}
/* ── Shared HOW page base ── */
.how-who-page,
.how-what-page,
.how-when-page,
.how-where-page,
.how-why-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

/* Individual HOW backgrounds */
.how-who-page {
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(60,50,20,0.3) 0%, transparent 60%),
    url("images/bg/how-who.png");
  background-color: #161412;
}
.how-what-page {
  background-image:
    radial-gradient(ellipse at 70% 40%, rgba(60,20,10,0.3) 0%, transparent 60%),
    url("images/bg/how-what.png");
  background-color: #140e0e;
}
.how-when-page {
  background-image:
    radial-gradient(ellipse at 40% 60%, rgba(10,20,50,0.35) 0%, transparent 60%),
    url("images/bg/how-when.png");
  background-color: #0e1218;
}
.how-where-page {
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(10,40,30,0.3) 0%, transparent 60%),
    url("images/bg/how-where.png");
  background-color: #0e1410;
}
.how-why-page {
  background-image:
    radial-gradient(ellipse at 60% 70%, rgba(50,10,10,0.35) 0%, transparent 60%),
    url("images/bg/how-why.png");
  background-color: #120e0e;
}

/* W gallery frame colors  */
body.who-page  .project-hero { border-color: #8a6f35; box-shadow: 0 0 0 2px #6a5020, 0 0 0 4px #c9a84c, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }
body.what-page .project-hero { border-color: #7a3a1a; box-shadow: 0 0 0 2px #5a2a10, 0 0 0 4px #a0522d, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }
body.when-page .project-hero { border-color: #2a4a60; box-shadow: 0 0 0 2px #1a3040, 0 0 0 4px #4a7090, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }
body.where-page .project-hero { border-color: #1a4a3a; box-shadow: 0 0 0 2px #0a3028, 0 0 0 4px #3a7060, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }
body.why-page  .project-hero { border-color: #5a1010; box-shadow: 0 0 0 2px #3a0808, 0 0 0 4px #8b2020, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }

/* HOW gallery frame colors will match W counterpart, slightly lighter */
body.how-who-page  .project-hero { border-color: #8a6f35; box-shadow: 0 0 0 2px #6a5020, 0 0 0 4px #c9a84c, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }
body.how-what-page .project-hero { border-color: #7a3a1a; box-shadow: 0 0 0 2px #5a2a10, 0 0 0 4px #a0522d, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }
body.how-when-page .project-hero { border-color: #2a4a60; box-shadow: 0 0 0 2px #1a3040, 0 0 0 4px #4a7090, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }
body.how-where-page .project-hero { border-color: #1a4a3a; box-shadow: 0 0 0 2px #0a3028, 0 0 0 4px #3a7060, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }
body.how-why-page  .project-hero { border-color: #5a1010; box-shadow: 0 0 0 2px #3a0808, 0 0 0 4px #8b2020, 0 8px 40px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.4); }

/*Hover-reveal*/
.painting-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none; /* let hover events fall through to frame */
}
.project-hero:hover .painting-alt { opacity: 1; }

/* Description overlay - will stay unless clicked away */
.description-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 6; /* above alt image */
  cursor: pointer; /* click anywhere to dismiss */
}

.description-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.description-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  line-height: 1.8;
  color: var(--cream-muted);
  text-align: center;
  max-width: 480px;
}

.desc-dismiss {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 0.5rem;
}
.how-w-nav {
  display: flex;
  gap: 1.8rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}
.how-w-nav a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color 0.25s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.how-w-nav a:hover {
  color: var(--cream);
  border-color: var(--gold-dim);
}

/* ── W page back nav ── */
.w-back-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.w-back-nav a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.w-back-nav a:hover { color: var(--cream); }

.how-hint-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}