/* ============================================
   LIGHT LAB HAWAIʻI — Sculpture detail pages
   (mushroom.html / jellyfish.html)
   Relies on css/style.css for tokens, fonts, buttons.
   Per-page accent set via --sp-accent / --sp-accent-rgb on <body>.
   ============================================ */

.sp-page { background: var(--black); }

/* ─── TOP BAR ─── */
.sp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 40px;
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.sp-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}
.sp-wordmark span { font-weight: 600; color: #FFD89C; }
.sp-creature { width: 26px; height: 28px; flex: none; overflow: visible; }
@keyframes sp-shroom-bob { 0%,100%{ transform: translateY(0) rotate(-1deg);} 50%{ transform: translateY(-2px) rotate(1deg);} }
.sp-creature { animation: sp-shroom-bob 4.2s ease-in-out infinite; }

/* ─── HERO (split: text panel + image panel, no overlap) ─── */
.sp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: clamp(460px, 66vh, 700px);
  background: #080808;
  overflow: hidden;
}
.sp-hero-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sp-hero-scrim {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  pointer-events: none;
  /* soften only the seam where the photo meets the black text panel */
  background: linear-gradient(90deg, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.25) 16%, rgba(8,8,8,0) 34%);
}
.sp-hero-inner {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(32px, 4.5vw, 80px);
}
.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 18px;
}
.sp-eyebrow .bar {
  width: 28px;
  height: 2px;
  background: var(--sp-accent, var(--amber));
}
.sp-title {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-size: clamp(42px, 5.4vw, 82px);
  color: var(--white);
  margin: 0;
}
.sp-title em { font-style: italic; color: var(--sp-accent, var(--amber)); text-shadow: 0 0 38px rgba(var(--sp-accent-rgb, 255,184,48), 0.45), 0 0 12px rgba(var(--sp-accent-rgb, 255,184,48), 0.25); }
.sp-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.5;
  color: var(--white-dim);
  max-width: 540px;
  margin: 20px 0 30px;
}
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ─── HERO (stacked: media band on top, text below — for tall/portrait media) ─── */
.sp-hero--stacked {
  display: block;
  min-height: 0;
}
.sp-hero--stacked .sp-hero-media {
  display: block;
  width: 100%;
  height: clamp(300px, 48vh, 520px);
  object-fit: cover;
  object-position: center;
}
.sp-hero--stacked .sp-hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(300px, 48vh, 520px);
  /* fade the bottom of the media band into the text panel */
  background: linear-gradient(180deg, rgba(8,8,8,0) 55%, rgba(8,8,8,0.85) 88%, #080808 100%);
}
.sp-hero--stacked .sp-hero-inner {
  align-self: auto;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) 48px clamp(40px, 5vw, 64px);
}
.sp-hero--stacked { position: relative; }

/* ─── SECTION SHELL ─── */
.sp-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 48px;
  border-top: 1px solid var(--border);
}
.sp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 26px;
}
.sp-section-eyebrow .bar { width: 22px; height: 2px; background: var(--sp-accent, var(--amber)); }

/* ─── STORY ─── */
.sp-story-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
.sp-lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  color: var(--white);
  letter-spacing: -0.005em;
}
.sp-lede em { font-style: italic; color: var(--sp-accent, var(--amber)); }
.sp-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
}
.sp-aside-item {
  border-left: 2px solid rgba(var(--sp-accent-rgb, 255,184,48), 0.5);
  padding: 2px 0 2px 16px;
}
.sp-aside-item .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-accent, var(--amber));
  margin-bottom: 5px;
}
.sp-aside-item .v {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.55;
}
.sp-aside-item .v strong { color: var(--white); font-weight: 500; }

/* ─── GALLERY ─── */
.sp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sp-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.sp-shot {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--black-card);
  border: 1px solid var(--border);
}
.sp-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.sp-shot:hover img { transform: scale(1.05); }
.sp-shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Video tiles: poster + play badge until tapped */
.sp-shot--video { cursor: pointer; }
.sp-shot--video .sp-shot-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(8,8,8,.05), rgba(8,8,8,.35));
  transition: opacity .3s ease;
  z-index: 2;
  pointer-events: none;
}
.sp-shot--video .sp-shot-play svg {
  width: 46px; height: 46px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
}
.sp-shot--video.is-playing .sp-shot-play { opacity: 0; }

/* ─── SPECS + INCLUDED ─── */
.sp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.sp-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  font-size: 14.5px;
}
.sp-specs dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-muted);
  padding: 13px 24px 13px 0;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}
.sp-specs dd {
  font-weight: 300;
  color: var(--white);
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.sp-specs dt:first-of-type, .sp-specs dd:first-of-type { border-top: none; }

.sp-incl-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 18px;
}
.sp-incl { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sp-incl li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.55;
}
.sp-incl li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-accent, var(--amber));
  box-shadow: 0 0 10px rgba(var(--sp-accent-rgb, 255,184,48), 0.6);
}

/* ─── FAQ ─── */
.sp-faq-list { display: flex; flex-direction: column; }
.sp-faq-item { border-top: 1px solid var(--border); }
.sp-faq-item:last-child { border-bottom: 1px solid var(--border); }
.sp-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}
.sp-faq-item summary::-webkit-details-marker { display: none; }
.sp-faq-q {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 400;
  color: var(--white);
}
.sp-faq-toggle {
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--sp-accent, var(--amber));
  transition: transform 0.25s ease;
}
.sp-faq-item[open] .sp-faq-toggle { transform: rotate(45deg); }
.sp-faq-a {
  padding: 0 0 24px;
  max-width: 680px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
}
.sp-faq-a a { color: var(--sp-accent, var(--amber)); border-bottom: 1px solid currentColor; }

/* ─── CTA ─── */
.sp-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 48px 104px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.sp-cta h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 18px;
}
.sp-cta h2 em { font-style: italic; color: var(--sp-accent, var(--amber)); }
.sp-cta p {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 16px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.6;
}
.sp-cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.sp-cta-call {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--white-dim);
}
.sp-cta-call:hover { color: var(--white); }

/* ─── FOOTER ─── */
.sp-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 48px 56px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--white-muted);
}
.sp-foot a { color: var(--white-dim); }
.sp-foot a:hover { color: var(--white); }
.sp-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ─── ACCENT TEXT (bioluminescent palette — match homepage) ─── */
.sp-a-amber   { color: var(--amber); }
.sp-a-violet  { color: #C4AEFF; }
.sp-a-algae   { color: var(--algae); }
.sp-a-magenta { color: #FF5BB0; }
.sp-a-sky     { color: var(--sky); }
.sp-a-coral   { color: var(--coral); }
.sp-a-violet  { color: var(--violet); }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .sp-story-grid { grid-template-columns: 1fr; gap: 36px; }
  .sp-detail-grid { grid-template-columns: 1fr; gap: 44px; }
  .sp-gallery, .sp-gallery.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .sp-topbar { padding: 13px 18px; }
  .sp-wordmark { font-size: 15px; }
  /* Below tablet the split collapses to a stack: image banner on top,
     text below on black */
  .sp-hero {
    display: block;
    min-height: 0;
    height: auto;
    background: #080808;
  }
  .sp-hero-media {
    position: relative;
    width: 100%;
    height: 340px;
  }
  .sp-hero-scrim { display: none; }
  .sp-hero-inner { padding: 26px 20px 36px; }
  .sp-title { font-size: clamp(38px, 12vw, 54px); }
  .sp-tagline { font-size: 15.5px; line-height: 1.5; margin: 14px 0 24px; }
  .sp-section { padding: 60px 20px; }
  /* Phone header: wordmark on top row, nav centered on its own row so the
     three chips never overflow the viewport (was causing horizontal scroll). */
  .sp-topbar {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    padding: 12px 16px;
  }
  .sp-topbar .ll-nav { width: 100%; justify-content: center; }
  /* Primary CTAs go full-width and center so long labels sit on one line
     instead of wrapping mid-phrase. */
  .sp-hero-actions,
  .sp-cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .sp-hero-actions .btn-primary,
  .sp-cta-actions .btn-primary { width: 100%; }
  .sp-cta-actions .sp-cta-call { text-align: center; }
  .btn-primary { padding: 15px 22px; font-size: 14px; letter-spacing: 0.03em; }
  /* Gallery videos are 16:9 landscape — on phones let them span the full
     row at native ratio so they show sharp and uncropped, not squeezed
     into the portrait photo tiles (which upscales + crops to a blur). */
  .sp-shot--video {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .sp-cta { padding: 68px 20px 80px; }
  .sp-foot { padding: 26px 20px 48px; flex-direction: column; align-items: flex-start; }
}
