/* =========================================================
   Hayley Volkering — Concept v2
   Sticky centrepiece, floats crossing over/under, persistent
   pill navigation, detail overlay for individual pieces.
   ========================================================= */

/* ---------- Baskervville (shared with the live site) ---------- */
@font-face { font-family: "Baskervville"; src: url("../fonts/Baskervville-Regular.ttf")   format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Baskervville"; src: url("../fonts/Baskervville-Italic.ttf")    format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Baskervville"; src: url("../fonts/Baskervville-Medium.ttf")    format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Baskervville"; src: url("../fonts/Baskervville-SemiBold.ttf")  format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Baskervville"; src: url("../fonts/Baskervville-Bold.ttf")      format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper:      #ede6d8;
  --paper-soft: #f2ede2;
  --ink:        #141414;
  --ink-soft:   #4a4a4a;
  --ink-mute:   #8f8a80;
  --rule:       rgba(20, 20, 20, 0.12);
  --font-serif: "Baskervville", "Times New Roman", Georgia, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  scrollbar-gutter: stable;       /* reserve scrollbar space so opening the menu doesn't shift the page */
  overflow-x: hidden;             /* lock the viewport horizontally so fixed-positioned
                                     orbit pieces that sweep past the phone edge can't be
                                     revealed by a sideways swipe */
  overscroll-behavior-x: none;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;             /* mobile: only allow vertical touch panning */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Top bar: mark centred, Instagram icon top-right
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 22px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}
.mark {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.4;
  text-align: center;
  pointer-events: auto;
  transition: opacity 0.18s ease;
  will-change: opacity;
}
.mark.is-obscured {
  opacity: 0;
  pointer-events: none;
}
.mark a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.mark .arr { display: inline-block; margin-left: 1px; transform: translateY(-1px); }

.ig {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--ink);
  pointer-events: auto;
  transition: opacity 0.2s ease;
}
.ig:hover { opacity: 0.6; }

/* ============================================================
   Scene: tall scroll canvas, sticky Hayley, floating pieces
   ============================================================ */
.scene {
  position: relative;
  min-height: 260vh;              /* scroll drives the orbit — enough room for a couple of rotations */
  padding-top: 100px;
  /* No z-index / no transform — so children can stack against each other freely */
}

/* Fixed centrepiece — stays put in the middle of the viewport so that when
   the About / Accolades / Contact sections scroll up (their paper backgrounds
   cover the wordmark visually), the orbit itself never actually "leaves". */
.centerpiece {
  position: fixed;
  top: 50vh;
  left: 0;
  right: 0;
  z-index: 2;                   /* between orbit .back (1) and .front (3) */
  text-align: center;
  transform: translateY(-52%);
  pointer-events: none;
  user-select: none;
  padding: 0 24px;
}
.word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(140px, 30vw, 460px);
  line-height: 0.88;
  letter-spacing: 0.02em;               /* opened up so the wordmark reads wider */
  color: var(--ink);
  display: inline-block;
}
.cnt {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 34px);
  vertical-align: super;
  margin-left: 6px;
  opacity: 0.9;
}

/* Container for the floats.
   IMPORTANT: no z-index here — otherwise this element would form its own
   stacking context and the .float.front items would be trapped below the
   wordmark. Positioning-only container. */
.floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ============================================================
   Orbit — sticky zero-height container centred on the viewport.
   Its children are absolutely positioned around a ring path,
   with JS updating the rotation on scroll.
   ============================================================ */
/* Orbit wrapper is intentionally unpositioned so it does NOT create its own
   stacking context — otherwise its .front children would be trapped below
   the wordmark and could never appear in front of it. Each .orbit-item is
   itself position:fixed and competes with .centerpiece at the root level. */
.orbit {
  pointer-events: none;
}
.orbit-item {
  position: fixed;
  top: 50vh;
  left: 50%;
  width: 24vh;
  height: 32vh;
  margin-left: -12vh;               /* centre on the viewport's mid-point */
  margin-top: -16vh;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  transition: filter 0.3s ease;
}
.orbit-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;              /* click bubbles from anchor */
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.06));
}
.orbit-item:hover img {
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.14));
}
.orbit-item.back  { z-index: 1; }    /* behind the wordmark */
.orbit-item.front { z-index: 3; }    /* over the top of the wordmark */

@media (max-width: 700px) {
  .orbit-item {
    width: 30vw;
    height: 40vw;
    margin-left: -15vw;
    margin-top: -20vw;
  }
}

.float {
  position: absolute;
  display: block;
  aspect-ratio: 3 / 4;              /* width is derived from the height set inline in vh */
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.float:hover { transform: scale(1.02); }
.float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.float.back  { z-index: 1; }   /* sits behind the wordmark */
.float.front { z-index: 3; }   /* crosses in front of the wordmark */

/* Float positions are set inline by scene.js (random each load) */

.scroll-hint {
  position: fixed;
  bottom: 108px;                    /* higher above the pill bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  pointer-events: none;
  animation: dip 2.4s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.scroll-hint.is-hidden {
  opacity: 0;
}
@keyframes dip {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ============================================================
   Sections beneath the scene (About / Accolades / Contact)
   ============================================================ */
.section {
  padding: 120px 32px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  z-index: 10;                 /* above the sticky word once we scroll past scene */
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 72px;
  max-width: 1100px;
}
.section-title em { font-style: italic; }

/* About layout — original two-column grid, header on top, small portrait
   left, copy right. */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.about-portrait {
  margin: 0;
  aspect-ratio: 3 / 4;
  background: #efece5;
  overflow: hidden;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.9) contrast(1.02);
}
.about-copy p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 640px;
}
.about-copy .lede {
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 32px;
}

/* Accolades — museum-plaque list */
.awards {
  list-style: none;
  border-top: 1px solid var(--rule);
  max-width: 1080px;
}
.awards li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.awards .year {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.awards .award {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.4;
}

/* Contact */
.contact-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.45;
  max-width: 780px;
  margin-bottom: 60px;
}
.contact-list {
  list-style: none;
  max-width: 780px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list .k {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-list a, .contact-list span:not(.k) {
  font-family: var(--font-serif);
  font-size: 19px;
}
.contact-list a { border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.contact-list a:hover { border-bottom-color: var(--ink); }

.foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 32px 120px;    /* pushed up so pillbar doesn't sit over it */
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

/* ============================================================
   Detail overlay (opens when a piece is clicked)
   ============================================================ */
.detail {
  position: fixed;
  inset: 0;
  z-index: 90;                 /* below the pillbar (which is 200) */
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.detail[aria-hidden="false"] {
  opacity: 1; visibility: visible;
  transition: opacity 0.4s ease;
}
.detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 88px 64px 160px;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}
.detail-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ffffff;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.5s ease 0.1s, transform 0.6s cubic-bezier(0.2,0.7,0.2,1) 0.1s;
}
.detail[aria-hidden="false"] .detail-img { opacity: 1; transform: none; }
.detail-img img { width: 100%; height: 100%; object-fit: contain; }

.detail-copy {
  padding: 20px 0;
  max-width: 500px;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.5s ease 0.2s, transform 0.6s cubic-bezier(0.2,0.7,0.2,1) 0.2s;
}
.detail[aria-hidden="false"] .detail-copy { opacity: 1; transform: none; }
.detail-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.detail-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.detail-desc {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 40px;
}
.detail-meta > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.03em;
  align-items: baseline;
}
.detail-meta > div:last-child { border-bottom: 1px solid var(--rule); }
.detail-meta dt { color: var(--ink-mute); text-transform: lowercase; letter-spacing: 0.06em; }
.detail-meta dd { color: var(--ink); }

body.detail-open { overflow: hidden; }
body.menu-open   { overflow: hidden; }

/* ============================================================
   Persistent pill navigation (always visible, opens upward)
   ============================================================ */
.pillbar {
  position: fixed;
  /* Sit 22px above the *visual* viewport bottom. --chrome-bottom is set
     by JS from visualViewport, so when iOS Safari's bottom nav bar is
     up, the pill lifts to sit just above it; when Safari collapses to
     its mini URL pill, --chrome-bottom is 0 and we're back on the
     physical bottom edge (still clear of the mini pill). */
  bottom: calc(var(--chrome-bottom, 0px) + 22px);
  left: 50%;
  /* At rest the pillbar centers on the Menu pill alone. When a piece
     opens, --pillbar-shift becomes -25px so the pill + close-X group
     stays visually centered as a pair. */
  transform: translateX(calc(-50% + var(--pillbar-shift, 0px)));
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 200;
  transition: bottom 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.detail-open { --pillbar-shift: -25px; }

/* Pill button (Menu / current piece + chevron) —
   iOS "liquid glass" material: high-opacity white fill, heavy backdrop
   blur, hairline top-lit rim. Consistent across desktop and mobile. */
.pill-piece {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px 6px 6px;
  background: rgba(252, 252, 252, 0.72);
  color: #141414;
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  min-width: 220px;
  max-width: 60vw;
  position: relative;
  backdrop-filter: blur(40px) saturate(1.9);
  -webkit-backdrop-filter: blur(40px) saturate(1.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.10);
  transition: background 0.2s ease;
}
.pill-piece:hover { background: rgba(255, 255, 255, 0.88); }
.pill-thumb-wrap {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.06);
  flex: 0 0 auto;
  transition: opacity 0.2s ease;
}
.pill-thumb-wrap img { width: 100%; height: 100%; object-fit: contain; }
.pill-title {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.pill-chev {
  color: rgba(20, 20, 20, 0.45);
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.menu-open .pill-chev { transform: rotate(180deg); }

/* Close X — detached from the flex flow so the pillbar can centre on
   the Menu pill alone when nothing's open. When a piece opens, the
   whole pillbar slides left by --pillbar-shift and the X slides in
   from the right, so they read as one balanced group. Reverse on
   close. */
.pill-close {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(252, 252, 252, 0.72);
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 8px;
  transform: translate(24px, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(40px) saturate(1.9);
  -webkit-backdrop-filter: blur(40px) saturate(1.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.10);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 0.3s ease,
              visibility 0s linear 0.4s,
              background 0.2s ease;
}
.pill-close:hover { background: rgba(255, 255, 255, 0.88); }
body.detail-open .pill-close {
  transform: translate(0, -50%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 0.3s ease 0.05s,
              visibility 0s,
              background 0.2s ease;
}

/* Menu panel — slides up from the pillbar */
.menu-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  min-width: 380px;
  max-width: 92vw;
  padding: 22px 24px 20px;
  /* Same liquid-glass material as the pill so the two read as one UI. */
  background: rgba(252, 252, 252, 0.72);
  color: #141414;
  backdrop-filter: blur(40px) saturate(1.9);
  -webkit-backdrop-filter: blur(40px) saturate(1.9);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.14);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: 30% 100%;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.menu-panel[aria-hidden="false"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.menu-heading {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.5);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}
.menu-list { list-style: none; }
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  min-height: 48px;                      /* same row height as a Works item */
  border: 0;
  background: transparent;
  color: #141414;
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.005em;
  cursor: pointer;
  border-radius: 10px;
  text-align: left;
  transition: background 0.15s ease;
}
/* Sections don't have a thumb, so pad their text over to the same
   x-position as Works text (8px base + 30px thumb + 12px gap). */
.menu-item:not(.is-piece) {
  padding-left: 50px;
}
.menu-item:hover, .menu-item:focus-visible { background: rgba(20, 20, 20, 0.06); outline: 0; }
.menu-item.is-current { background: rgba(20, 20, 20, 0.09); }
.menu-thumb {
  width: 30px; height: 30px;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  flex: 0 0 auto;
}
.menu-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Backdrop click-to-close for menu */
.menu-backdrop {
  position: fixed; inset: 0;
  z-index: 150;
  background: transparent;
  display: none;
}
body.menu-open .menu-backdrop { display: block; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .mark { font-size: 11px; }
  .ig { top: 20px; right: 20px; }

  .scene { min-height: 260vh; }

  .section { padding: 88px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 460px; }
  .awards li, .contact-list li { grid-template-columns: 90px 1fr; gap: 20px; }

  .detail-inner { grid-template-columns: 1fr; gap: 40px; padding: 70px 20px 140px; }
  .detail-img { max-width: 500px; margin: 0 auto; width: 100%; }
  .detail-copy { padding: 0; margin: 0 auto; }
  .detail-meta > div { grid-template-columns: 110px 1fr; }

  /* Mobile pill: same liquid-glass look inherited from the desktop
     defaults, just smaller so it sits neatly beside Safari's chrome. */
  .pill-piece {
    min-width: 152px;
    max-width: 78vw;
    padding: 6px 14px 6px 5px;
    font-size: 13px;
    border-radius: 20px;
  }
  .pill-thumb-wrap { width: 30px; height: 30px; }
  .pill-close      { width: 40px; height: 40px; }

  .menu-panel {
    min-width: 300px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .mark { font-size: 10px; letter-spacing: 0.06em; }
  /* Wordmark tuned so "Volks" fits comfortably within the viewport on
     narrow phones without any overflow. */
  .centerpiece { padding: 0 16px; white-space: nowrap; }
  .word { font-size: clamp(64px, 28vw, 148px); letter-spacing: 0.02em; }
  .cnt  { font-size: 13px; margin-left: 4px; }
  /* Instagram icon: the 66×66 desktop size is too much on a phone. */
  .ig svg { width: 32px; height: 32px; }
  .ig { top: 16px; right: 16px; }
  .foot { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 380px) {
  .word { font-size: clamp(54px, 26vw, 118px); }
  .cnt  { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .float img,
  .detail, .detail-img, .detail-copy,
  .menu-panel, .pill-chev,
  .scroll-hint { transition: none; animation: none; }
}

/* ============================================================
   TEMPORARY: hide piece copy in the detail overlay until real
   descriptions are ready. Click still opens the large image;
   the pill-close X still returns you to the scene. Lift this
   whole block to restore the copy layout.
   ============================================================ */
.detail-copy { display: none; }
.detail-inner {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 32px 160px;
}
.detail-img {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: auto;
  background: transparent;
}
.detail-img img { height: auto; }
@media (max-width: 900px) {
  .detail-inner { padding: 70px 20px 140px; }
}
