/* ============================================================
   Natasha Lopez De Victoria — site styles
   Techno-tropical: deep aubergine base, saturated accents,
   photography-forward layouts, confident display type.
   ============================================================ */

:root {
  --ink: #12041f;          /* page background */
  --ink-soft: #1d0b30;     /* raised surfaces */
  --paper: #fdf6ee;        /* primary text on dark */
  --muted: #c3b3d6;        /* secondary text */
  --magenta: #ff2e88;
  --orange: #ff7a18;
  --aqua: #19e3d4;
  --sun: #ffd21f;
  --violet: #7c3aed;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Space Grotesk", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-gap: clamp(4rem, 10vw, 8.5rem);
  --radius: 14px;

  --grad-hot: linear-gradient(100deg, var(--magenta), var(--orange));
  --grad-cool: linear-gradient(100deg, var(--violet), var(--aqua));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

.wrap {
  width: min(1240px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- utility type ---------- */

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
}

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
}

.gradient-text {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons & tags ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--grad-hot);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 46, 136, 0.4);
}

.btn-ghost {
  border-color: rgba(253, 246, 238, 0.35);
  color: var(--paper);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--aqua);
  color: var(--aqua);
  transform: translateY(-3px);
}

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45em 1em;
  border-radius: 999px;
  border: 1.5px solid rgba(253, 246, 238, 0.3);
  color: var(--paper);
  background: rgba(18, 4, 31, 0.55);
  backdrop-filter: blur(4px);
}

.tag-hot { border-color: var(--magenta); color: var(--magenta); }
.tag-cool { border-color: var(--aqua); color: var(--aqua); }
.tag-sun { border-color: var(--sun); color: var(--sun); }

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(18, 4, 31, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(253, 246, 238, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1.2;
}

.wordmark span { color: var(--magenta); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.4em 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--paper);
  margin: 5.5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(18, 4, 31, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-links a { font-size: 1.1rem; }

  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-open .nav-toggle { position: relative; z-index: 10; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  isolation: isolate;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(18, 4, 31, 0.92) 0%, rgba(18, 4, 31, 0.25) 45%, rgba(18, 4, 31, 0.35) 100%);
}

.hero-content {
  padding: 0 var(--gutter) clamp(4rem, 9vh, 7rem);
  max-width: 1000px;
}

.hero-title {
  font-size: clamp(2.4rem, 7.5vw, 5.6rem);
  font-weight: 900;
  margin-bottom: 0.35em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0;
}

.hero-tagline .dot { color: var(--magenta); }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(253, 246, 238, 0.5);
  border-radius: 999px;
}

.scroll-cue::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--aqua);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
}

/* ---------- marquee strip ---------- */

.marquee {
  overflow: hidden;
  border-block: 1.5px solid rgba(253, 246, 238, 0.14);
  padding: 0.9rem 0;
  background: var(--ink-soft);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track .spark { color: var(--magenta); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- featured event "moments" ---------- */

.moments { padding-top: var(--section-gap); }

.moments-heading {
  padding: 0 var(--gutter);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.moment {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 0 auto clamp(3rem, 7vw, 5.5rem);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}

.moment-media {
  display: block;
}

/* Show the whole image, whatever its shape. Height is capped so a tall
   (portrait) photo doesn't dominate on desktop; width follows to keep it
   undistorted and uncropped on phone, tablet, and desktop alike. */
.moment-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(82vh, 900px);
}

.moment-card {
  position: absolute;
  inset: auto 0 0 0;
  max-width: 780px;
  padding: clamp(2.6rem, 8vw, 5rem) clamp(1.3rem, 4vw, 2.8rem) clamp(1.3rem, 3vw, 2rem);
  background: linear-gradient(
    to top,
    rgba(18, 4, 31, 0.94) 0%,
    rgba(18, 4, 31, 0.72) 34%,
    rgba(18, 4, 31, 0.2) 72%,
    transparent 100%
  );
}

.moment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.moment-title {
  font-size: clamp(1.7rem, 4.5vw, 3.4rem);
  margin-bottom: 0.4em;
}

.moment-blurb {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1.6em;
}

/* ---------- generic sections ---------- */

.section { padding-block: var(--section-gap); }

.section-tight { padding-block: calc(var(--section-gap) * 0.6); }

/* bio teaser split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* about page: smaller lead photo, intro centred against it for balance
   (desktop only — the 820px rule above keeps the stacked mobile layout) */
@media (min-width: 821px) {
  .about-split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 6fr);
    align-items: center;
  }
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 18px 18px 0 0 var(--violet);
  aspect-ratio: 4 / 5;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* press strip */

.press-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: 1rem;
}

.press-strip span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 246, 238, 0.45);
  transition: color 0.25s ease;
}

.press-strip span:hover { color: var(--paper); }

blockquote.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  max-width: 26em;
  margin: 2.5rem auto 0.8rem;
}

.pull-quote + .quote-source {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- work grid (home preview + portfolio) ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

.work-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  text-decoration: none;
  isolation: isolate;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.work-card:hover img { transform: scale(1.06); }

.work-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.4rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(18, 4, 31, 0.92), transparent);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  translate: 0 30%;
  opacity: 0;
  transition: translate 0.35s ease, opacity 0.35s ease;
}

.work-card:hover figcaption,
.work-card:focus-visible figcaption { translate: 0 0; opacity: 1; }

@media (hover: none) {
  .work-card figcaption { translate: 0 0; opacity: 1; padding-top: 1.6rem; }
}

.work-card .work-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.work-card .work-medium {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua);
  white-space: nowrap;
}

/* portfolio filters */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.6rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1.5px solid rgba(253, 246, 238, 0.25);
  border-radius: 999px;
  padding: 0.6em 1.4em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover { color: var(--paper); border-color: var(--paper); }

.filter-btn.active {
  color: #fff;
  background: var(--grad-hot);
  border-color: transparent;
}

.work-grid .hidden-by-filter { display: none; }

/* ---------- event detail pages ---------- */

.event-hero {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: clamp(4.5rem, 9vh, 6.5rem) auto 0;
  isolation: isolate;
}

/* Show the ENTIRE hero image — top and bottom preserved on every device.
   Overrides the full-bleed cover behavior inherited from .hero-media so the
   image is displayed whole (never cropped), just capped in height. */
.event-hero .hero-media {
  position: static;
  inset: auto;
  display: block;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.event-hero .hero-media img {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(82vh, 900px);
  object-fit: fill;
}

.event-hero-content {
  position: absolute;
  inset: auto 0 0 0;
  max-width: 900px;
  padding: clamp(3rem, 9vw, 5.5rem) var(--gutter) clamp(1.6rem, 4vw, 2.4rem);
  background: linear-gradient(
    to top,
    rgba(18, 4, 31, 0.95) 0%,
    rgba(18, 4, 31, 0.72) 34%,
    rgba(18, 4, 31, 0.2) 72%,
    transparent 100%
  );
  border-radius: 0 0 var(--radius) var(--radius);
}

/* On phones the landscape hero is short — overlaying the title would crowd or
   clip it. Stack the text below the (still whole, uncropped) image instead. */
@media (max-width: 640px) {
  .event-hero-content {
    position: static;
    max-width: none;
    padding: clamp(1.3rem, 5vw, 1.8rem) 0 0;
    background: none;
    border-radius: 0;
  }
}

.event-title { font-size: clamp(2rem, 5.5vw, 4rem); }

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-meta strong {
  display: block;
  color: var(--paper);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.event-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 820px) {
  .event-body { grid-template-columns: 1fr; }
}

.event-narrative p:first-of-type {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--paper);
}

.event-narrative { color: var(--muted); }

.credits-card {
  background: var(--ink-soft);
  border: 1px solid rgba(253, 246, 238, 0.1);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: sticky;
  top: 6rem;
}

.credits-card h3 { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--aqua); }

.credits-card dl { margin: 0; }
.credits-card dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.1rem;
}
.credits-card dd { margin: 0.15rem 0 0; font-weight: 500; }

/* gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
  margin-top: var(--section-gap);
}

.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.gallery figure:hover img { transform: scale(1.05); }

.gallery .span-2 { grid-column: span 2; }

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .span-2 { grid-column: span 1; }
}

.video-slot {
  margin-top: var(--section-gap);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--ink-soft);
  border: 1.5px dashed rgba(253, 246, 238, 0.25);
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}

/* When the slot holds a real video or an embedded player, drop the
   placeholder styling and let the media fill the 16:9 frame. */
.video-slot:has(video),
.video-slot:has(iframe) {
  padding: 0;
  border: none;
  background: var(--ink);
}

.video-slot video,
.video-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

/* Custom play affordance overlaid on project videos so the poster
   reads clearly as "click to play". Hidden once the video is playing. */
.video-slot:has(.video-play) { position: relative; }
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(60px, 12vw, 88px);
  height: clamp(60px, 12vw, 88px);
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  background: var(--grad-hot);
  color: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.25s ease;
}
.video-play svg {
  width: 46%;
  height: 46%;
  fill: currentColor;
  margin-left: 6%; /* optically center the triangle */
}
.video-play:hover,
.video-play:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(255, 46, 136, 0.5);
}
.video-play:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.video-slot.is-playing .video-play { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .video-play { transition: none; }
}

.event-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: var(--section-gap);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(253, 246, 238, 0.12);
}

/* ---------- past events page ---------- */

.events-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 0.3rem;
}

.events-list button {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(253, 246, 238, 0.12);
  background: var(--ink-soft);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.events-list button:hover { border-color: rgba(253, 246, 238, 0.35); }

.events-list button:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.events-list .el-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}

.events-list .el-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.events-list button.active {
  background: var(--grad-cool);
  border-color: transparent;
}

.events-list button.active .el-meta { color: rgba(253, 246, 238, 0.85); }

/* panels flow one into the next; the sticky side tab tracks scroll position */
.event-panel + .event-panel {
  margin-top: var(--section-gap);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(253, 246, 238, 0.12);
}

/* Gentle scroll-snap so each event settles into place under the header as you
   move through the archive — "proximity" (not "mandatory") so tall photo
   galleries still scroll freely within a single event. */
html:has(.events-flow) { scroll-snap-type: y proximity; }
.events-flow .event-panel {
  scroll-snap-align: start;
  scroll-margin-top: 92px;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.events-flow) { scroll-snap-type: none; }
}

.event-panel-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin: 0.35rem 0 0.2rem;
}

.event-panel-loc {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aqua);
  margin: 0 0 1.2rem;
}

.event-panel-desc {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

.event-panel .gallery { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

/* ---- editorial "flow" body: text + images woven together for a single
   richly-documented event (e.g. Uncertain States of America) ---- */
.event-flowbody > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
}
.event-flowbody > p + p,
.event-flowbody > * + p { margin-top: 1.3rem; }
.event-flowbody .event-lead {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--paper);
  max-width: 40ch;
}
.event-flowbody em { font-style: italic; color: var(--paper); }

.event-figure {
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.event-figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.event-figure:hover img { transform: scale(1.04); }

.event-figure-pair {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
  /* top-align so a captioned figure paired with an uncaptioned one keeps both
     images flush at the top (captions simply hang below their own image) */
  align-items: start;
}
.event-figure-pair .event-figure { margin-top: 0; }

/* mixed-orientation pair (one landscape + one portrait): give the landscape
   the wider column so both images resolve to roughly the same height and the
   duo reads as one balanced unit instead of two mismatched heights */
.event-figure-pair.is-mixed {
  grid-template-columns: 1.7fr 1fr;
  align-items: start;
}

/* hero image — the first thing seen in the panel, sitting above the title */
.event-hero {
  margin-top: 0;
  margin-bottom: clamp(1.3rem, 3.5vw, 2rem);
}

/* a lone portrait figure shouldn't run the full content width on desktop —
   cap it and centre it so it stays contained (a no-op on narrow screens) */
.event-figure.is-portrait {
  max-width: 24rem;
  margin-inline: auto;
}

/* three-up row — a portrait flanked by two landscapes. Column widths track the
   images' aspect ratios (0.71 : 1.33 : 1.33) so all three resolve to the same
   height and align horizontally. Stacks on narrow screens. */
.event-figure-row {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: 0.71fr 1.33fr 1.33fr;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  align-items: start;
}
.event-figure-row .event-figure { margin-top: 0; }
@media (max-width: 640px) {
  .event-figure-row { grid-template-columns: 1fr; }
}

/* contained image floated to the left, with body text wrapping alongside */
.event-figure.float-left {
  float: left;
  width: min(14rem, 40%);
  margin: 0.3rem 1.6rem 0.9rem 0;
}
.event-flowbody::after { content: ""; display: block; clear: both; }
@media (max-width: 560px) {
  .event-figure.float-left {
    float: none;
    width: 100%;
    max-width: 20rem;
    margin: 1.4rem 0;
  }
}

/* standalone, editorial pull-quote — a compact, contained "moment" */
.event-quote {
  margin: clamp(2.4rem, 6vw, 4rem) auto;
  max-width: 34rem;
  padding: clamp(1.5rem, 4vw, 2.2rem) clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--ink-soft);
  border: 1px solid rgba(253, 246, 238, 0.1);
  text-align: center;
}
.event-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 0.7;
  margin-bottom: clamp(0.4rem, 1.5vw, 0.8rem);
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.event-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}
.event-quote figcaption {
  margin-top: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.event-quote figcaption::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 auto clamp(0.8rem, 2vw, 1.1rem);
  border-radius: 2px;
  background: var(--grad-cool);
}

/* wider, roomier quote on desktop; phones keep the compact version above */
@media (min-width: 821px) {
  .event-quote {
    max-width: 46rem;
    padding: clamp(2rem, 3vw, 2.8rem) clamp(2.2rem, 3.5vw, 3.2rem);
  }
  .event-quote blockquote { font-size: 1.4rem; }
}

/* compact, de-emphasized roster of participating artists */
.event-roster {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(253, 246, 238, 0.12);
}
.event-roster-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.event-roster p {
  margin: 0;
  columns: 16rem;
  column-gap: 2.4rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

/* museum-style caption sitting quietly beneath a figure */
.event-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.event-figure figcaption em { font-style: italic; color: var(--paper); }

/* gallery "wall label" — a compact credits block, sitting in the panel
   header directly beneath the title / location line. Museum-label feel:
   small gold labels, refined off-white values, hairline-separated rows. */
.event-credits {
  margin: 0.4rem 0 clamp(1.4rem, 4vw, 2.2rem);
  display: grid;
  gap: 0;
  max-width: 44rem;
}
.event-credits > div {
  display: grid;
  grid-template-columns: minmax(5rem, 6.5rem) 1fr;
  gap: 0.25rem 1.3rem;
  align-items: baseline;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(253, 246, 238, 0.08);
}
.event-credits > div:first-child { padding-top: 0; }
.event-credits > div:last-child { border-bottom: 0; padding-bottom: 0; }
/* labels keep the .event-panel-loc typographic treatment but recolour to a
   quiet gold and shrink — a wall-label voice rather than the aqua meta line */
.event-credits dt.event-panel-loc {
  margin: 0;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  /* dusty rose — softened from the brand magenta so it stays gallery-quiet */
  color: color-mix(in srgb, var(--magenta) 74%, var(--paper));
  opacity: 0.9;
}
.event-credits dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--paper);
  /* a whisper of violet keeps the values from reading as flat white */
  color: color-mix(in srgb, var(--paper) 84%, var(--violet));
}
@media (max-width: 520px) {
  .event-credits > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media (max-width: 640px) {
  .event-figure-pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .event-figure img { transition: none; }
}

.media-slot {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--ink-soft);
  border: 1.5px dashed rgba(253, 246, 238, 0.22);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.event-media-label {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
}

.event-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(0.8rem, 2vw, 1.4rem);
  margin-top: 0.9rem;
}

.event-videos .video-slot { margin-top: 0; }

/* Keep the vertical side selector on phones too — just narrower and more
   compact, same styling as desktop. */
@media (max-width: 640px) {
  .events-layout {
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
    gap: 1rem;
  }
  .events-list { top: 82px; }
  .events-list button { padding: 0.6rem 0.7rem; }
  .events-list .el-title { font-size: 0.82rem; }
  .events-list .el-meta {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
}

/* ---------- about page ---------- */

.page-hero {
  padding: clamp(9rem, 20vh, 13rem) 0 clamp(2rem, 5vw, 4rem);
}

.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }

.prose { max-width: 68ch; color: var(--muted); }

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--paper);
  margin-top: 2.2em;
}

.prose strong { color: var(--paper); }

/* ---------- CV page ---------- */

.cv-section { margin-bottom: 3.5rem; }

.cv-section h2 {
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
  border-bottom: 1px solid rgba(253, 246, 238, 0.14);
  padding-bottom: 0.8rem;
  margin-bottom: 1.4rem;
}

.cv-list { list-style: none; margin: 0; padding: 0; }

.cv-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(253, 246, 238, 0.08);
}

.cv-list .yr {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--magenta);
}

.cv-list .what strong { display: block; }
.cv-list .what span { color: var(--muted); font-size: 0.95rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.chip {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  background: var(--ink-soft);
  border: 1px solid rgba(253, 246, 238, 0.16);
}

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }

.contact-list li { margin-bottom: 1.4rem; }

.contact-list .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-list a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(var(--aqua), var(--aqua));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: background-size 0.3s ease;
}

.contact-list a:hover { background-size: 100% 2px; }

form.inquiry { display: grid; gap: 1.2rem; }

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--paper);
  background: var(--ink-soft);
  border: 1.5px solid rgba(253, 246, 238, 0.18);
  border-radius: 10px;
  padding: 0.85em 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 46, 136, 0.25);
}

.field textarea { min-height: 9rem; resize: vertical; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid rgba(253, 246, 238, 0.12);
  background: var(--ink-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-inner h3 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
}

.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li { margin-bottom: 0.55rem; }
.footer-inner a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer-inner a:hover { color: var(--paper); }

.footer-cta {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  max-width: 18em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1.2rem;
  border-top: 1px solid rgba(253, 246, 238, 0.08);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- lightbox ---------- */

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 92vw);
  max-height: 90vh;
}

dialog.lightbox::backdrop { background: rgba(10, 2, 18, 0.92); }

dialog.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}

dialog.lightbox .lightbox-caption {
  text-align: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding-top: 0.9rem;
}

/* structured mural credit (title / location · venue / commissioned or curated by) */
dialog.lightbox .lightbox-caption .lb-title,
dialog.lightbox .lightbox-caption .lb-meta,
dialog.lightbox .lightbox-caption .lb-credit {
  display: block;
}

dialog.lightbox .lightbox-caption .lb-title {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
}

dialog.lightbox .lightbox-caption .lb-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

dialog.lightbox .lightbox-caption .lb-credit {
  margin-top: 0.3rem;
  color: var(--aqua);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee-track { animation: none; }
  .scroll-cue::before { animation: none; }

  .reveal { opacity: 1; transform: none; transition: none; }

  .moment-media img,
  .work-card img,
  .gallery img { transition: none; }
}
