/* Palette from the UI/UX Pro Max design system: neon purple + rose on deep navy. */
:root {
  --bg: #0f0f23;
  --card: #1e1c35;
  --muted: #27273b;
  --fg: #e2e8f0;
  --fg-dim: #a3adbf;
  --primary: #7c3aed;
  --secondary: #a78bfa;
  --accent: #f43f5e;
  --sunset: linear-gradient(90deg, #f43f5e, #c026d3 55%, #7c3aed);
  --radius: 18px;
  --dock-h: 64px;
  --head: "Russo One", system-ui, sans-serif;
  --body: "Chakra Petch", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--body);
  padding-bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--secondary); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.05; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Hero: Lucia fills the phone screen head to toe ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 0; /* Lucia is on the right of this artwork */
  z-index: -1;
  transform-origin: 70% 30%;
}
.hero-bg { display: none; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,35,.55) 0%, rgba(15,15,35,0) 22%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15,15,35,.85) 18%, rgba(15,15,35,0) 46%);
}
.hero-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 20px calc(var(--dock-h) + 40px + env(safe-area-inset-bottom));
}
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border: 1px solid rgba(167,139,250,.5);
  border-radius: 999px;
  background: rgba(15,15,35,.5);
  backdrop-filter: blur(6px);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.title { font-size: clamp(3.4rem, 17vw, 7.5rem); text-transform: uppercase; letter-spacing: -.01em; }
.title span { display: block; }
.title span:last-child {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { margin: 12px 0 0; font-size: 1.15rem; font-weight: 600; max-width: 22ch; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.scroll-cue {
  position: absolute;
  right: 20px;
  bottom: calc(var(--dock-h) + 40px + env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
}
.scroll-cue svg { width: 24px; height: 24px; fill: none; stroke: var(--fg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { max-width: 720px; margin: 0 auto; padding: 56px 20px 8px; scroll-margin-top: 8px; }
.section-wide { max-width: 1200px; padding-left: 0; padding-right: 0; }
.section-head { padding: 0 20px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 4px; }
.lede { font-size: 1.2rem; color: var(--fg); }
p { color: var(--fg-dim); }
.hint { margin: -8px 0 16px; font-size: .9rem; }

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact {
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.fact-k { color: var(--secondary); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fact-v { font-weight: 600; line-height: 1.3; }

/* Gallery: swipeable on phones */
.carousel {
  list-style: none; margin: 0; padding: 4px 20px 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel li { scroll-snap-align: start; }
.shot {
  display: block; width: 100%; padding: 0; border: 0; background: var(--card);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.carousel .shot { aspect-ratio: 16 / 10; }
@media (hover: hover) { .shot:hover img { transform: scale(1.04); } }

/* Story timeline */
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--muted); }
.timeline li { position: relative; padding: 0 0 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sunset); box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(244,63,94,.6);
}
.timeline p { margin: 0; }
.missions { color: var(--fg); }

.callout {
  margin-top: 8px; padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244,63,94,.16), rgba(124,58,237,.16));
  border: 1px solid rgba(244,63,94,.4);
}
.callout p { margin: 0; color: var(--fg); }
.callout-k { color: var(--accent) !important; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 6px !important; }

/* Artwork */
.art-grid { list-style: none; margin: 0; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.art-grid .shot { aspect-ratio: 844 / 1500; }

.footer { max-width: 720px; margin: 56px auto 0; padding: 24px 20px; border-top: 1px solid var(--muted); font-size: .9rem; }
.footer p { margin: 0 0 8px; }

/* Bottom dock: thumb-reachable section nav */
.dock {
  position: fixed; z-index: 20;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 24px));
  height: var(--dock-h);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  border-radius: 22px;
  background: rgba(30,28,53,.78);
  border: 1px solid rgba(167,139,250,.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 16px; color: var(--fg-dim); text-decoration: none; font-size: .72rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.dock a.on { color: var(--fg); background: rgba(124,58,237,.35); }
.dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Full-screen viewer */
.viewer { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.viewer::backdrop { background: rgba(5,5,15,.94); }
.viewer img { width: 100%; height: 100%; object-fit: contain; }
.viewer-close {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(15,15,35,.7); display: grid; place-items: center;
}
.viewer-close svg { width: 22px; height: 22px; stroke: var(--fg); stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Bigger screens: keep Lucia head-to-toe instead of cropping to landscape ---------- */
@media (min-width: 820px) {
  .hero-bg {
    display: block; position: absolute; inset: -40px; z-index: -2;
    background: url(/img/jason-lucia-rooftop-portrait.webp) center / cover;
    filter: blur(40px) brightness(.45) saturate(1.3);
  }
  .hero-img {
    left: auto; right: 6vw; width: auto; aspect-ratio: 844 / 1500; object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  /* flex, not transform: Motion animates this element's transform on scroll */
  .hero-text { top: 0; bottom: 0; left: 8vw; right: auto; max-width: 560px; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .scroll-cue { position: static; margin-top: 28px; }
  .carousel { grid-auto-columns: 32%; padding-left: 20px; }
  .art-grid { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
