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

:root {
  --ink: #e2e8da;
  --ink-dim: #a8b8a2;
  --ink-faint: #71806c;
  --gold: #96c7a0;
  --sea: #7fb3a4;
  /* Poster type: the title is set in Chemre (pre-rendered artwork, /img/title.png).
     Body copy on the poster is SIMPLIFICA, whose licence forbids web embedding —
     Jost Light stands in for it. Swap --ui here if a licence is obtained. */
  --ui: 'Jost', 'Avenir Next', 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; background: #070a07; }

body {
  /* the kelp forest: green dusk → deep water → the void */
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(40, 72, 44, 0.14), transparent 60%),
    radial-gradient(130% 50% at 50% 58%, rgba(22, 60, 64, 0.16), transparent 65%),
    radial-gradient(130% 55% at 50% 100%, rgba(24, 84, 58, 0.16), transparent 65%),
    linear-gradient(180deg, #0a0d09 0%, #081110 34%, #06120e 62%, #050b0a 100%);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.08rem;
  overflow-x: hidden;
}

/* oceanic bubble texture, laid under the water across the whole page,
   rising almost imperceptibly */
.oceantex {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('/img/bubbles.webp') 0 0 / 2000px auto repeat;
  opacity: 0.15;
  filter: saturate(0.85) brightness(0.92);
  animation: texrise 650s linear infinite;
}
@keyframes texrise { to { background-position: 0 -2500px; } } /* one tile height = seamless loop */
@media (max-width: 720px) { .oceantex { background-size: 1150px auto; } }
@media (prefers-reduced-motion: reduce) { .oceantex { animation: none; } }

/* foreboding vignette closing in from the edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(125% 125% at 50% 42%, transparent 58%, rgba(2, 6, 4, 0.55) 100%);
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  z-index: 3;
}

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(130, 190, 150, 0.35); transition: border-color 0.3s; }
a:hover { border-bottom-color: var(--gold); }

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }

/* ---------- hero ---------- */
header {
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
header > * { position: relative; z-index: 2; }

/* Ouranos, sneaking out of the shadows — centered and large on desktop */
.hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(74vw, 940px);
  background-image: url('/img/hero.webp');
  background-size: auto 138%;
  background-position: 46% 20%;
  background-repeat: no-repeat;
  filter: contrast(1.06) saturate(0.92) brightness(0.9);
  -webkit-mask-image: radial-gradient(75% 88% at 50% 42%, #000 40%, transparent 78%);
  mask-image: radial-gradient(75% 88% at 50% 42%, #000 40%, transparent 78%);
  --heroLo: 0.63;
  --heroHi: 0.9;
  animation: lurk 19s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
@keyframes lurk {
  from { opacity: var(--heroLo, 0.42); transform: translateY(8px); }
  to { opacity: var(--heroHi, 0.60); transform: translateY(0); }
}
/* ?notext=1: pure hero render for screenshots */
header.notext > *:not(.hero-art) { display: none; }
header.notext::after { display: none; }

/* dark water between Ouranos and the words */
header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(62% 58% at 50% 56%, rgba(5, 8, 7, 0.5), transparent 78%);
}
.tagline, .premiere, .credits { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 0, 0, 0.5); }
.credits {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}
.credits span { display: block; margin-top: 0.15rem; font-size: 1.08rem; letter-spacing: 0.08em; color: var(--ink); }
@media (max-width: 720px) {
  .hero-art {
    top: -14px;
    width: 100vw;
    background-position: 44% 20%;
    filter: contrast(1.08) saturate(0.9) brightness(0.72);
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
  }
}
h1 {
  width: min(78vw, 640px);
  margin: 0 auto;
  filter: drop-shadow(0 0 44px rgba(110, 190, 140, 0.28)) drop-shadow(0 2px 16px rgba(0, 0, 0, 0.75));
}
h1 img { display: block; width: 100%; height: auto; }
.tagline {
  margin-top: 1.4rem;
  font-family: var(--ui);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.35rem, 3.8vw, 1.8rem);
  color: var(--ink-dim);
}
.premiere {
  margin-top: 3rem;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: none;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.premiere::before, .premiere::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 190, 150, 0.55), transparent);
}
.premiere::before { margin-bottom: 0.9rem; }
.premiere::after { margin-top: 0.9rem; }
.premiere span { margin-top: 0.15rem; font-size: 1.12rem; letter-spacing: 0.1em; color: var(--ink); }

/* the La MaMa Puppet Festival lockup, upper left, per their style guide */
header > .lamama {
  width: min(78vw, 640px);   /* matches the title block, so it sits at its left edge */
  margin: 0 auto 1.2rem;
  text-align: left;
  border-bottom: none;
}
.lamama .lockup { display: inline-block; width: min(34vw, 190px); }
.lamama img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.75));
}
.lamama .presents {
  display: block;
  width: 79%;
  margin-top: -0.28rem;              /* the wordmark ends here; the asterisk sits beyond it */
  text-align: right;
  font-family: 'Bricolage Grotesque', var(--ui);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.lamama:hover .presents { color: var(--gold); }
@media (max-width: 720px) {
  header > .lamama { width: min(86vw, 640px); margin-bottom: 1rem; }
  .lamama img { width: min(46vw, 175px); }
  .lamama .presents { font-size: 0.82rem; }
}

/* funding credit, poster wording, ruled off at the foot of The Show */
.funding {
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px dotted rgba(232, 224, 204, 0.14);
  font-size: 0.95rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  max-width: 34rem;
}

/* ---------- sections: coral slabs ---------- */
section { padding: 4.2rem 0; position: relative; z-index: 2; }
section.wrap {
  padding: 4.2rem 2rem;
  margin: 3.6rem auto;
  background:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(170, 210, 170, 0.09), transparent 100%),
    radial-gradient(1.5px 1.5px at 67% 74%, rgba(170, 210, 170, 0.07), transparent 100%),
    radial-gradient(1px 1px at 38% 88%, rgba(190, 215, 190, 0.08), transparent 100%),
    radial-gradient(1px 1px at 84% 18%, rgba(160, 200, 165, 0.08), transparent 100%),
    radial-gradient(120% 90% at 18% 0%, rgba(40, 80, 50, 0.16), transparent 55%),
    radial-gradient(110% 85% at 85% 100%, rgba(20, 64, 44, 0.26), transparent 60%),
    rgba(8, 12, 9, 0.68);
  background-size: 90px 110px, 130px 90px, 70px 120px, 150px 140px, 100% 100%, 100% 100%, 100% 100%;
  border: 1px solid rgba(130, 180, 140, 0.10);
  border-top: 1px solid rgba(160, 210, 170, 0.20);
  border-radius: 28px 74px 24px 88px / 62px 28px 80px 32px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.62), inset 0 0 70px rgba(14, 38, 26, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
section.wrap:nth-of-type(even) {
  border-radius: 84px 26px 70px 24px / 30px 74px 26px 66px;
}

/* algae wash inside each slab — one large image, a different crop per
   slab, kept subtle beneath the stone tints */
section.wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/img/algae.webp') 30% 18% / cover no-repeat;
  opacity: 0.24;
}
section.wrap:nth-of-type(2)::before { background-position: 72% 62%; }
section.wrap:nth-of-type(3)::before { background-position: 46% 88%; }

/* reef rim: wobbly inner outline + coral knobs + pores (drawn by script) */
.reefrim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
section.wrap:last-of-type { padding-bottom: 5rem; }
section.wrap h2 { transform: rotate(-0.8deg); }
section.wrap:nth-of-type(even) h2 { transform: rotate(0.6deg); }

/* barnacle rings along slab edges */
.barn { position: absolute; border: 1px solid rgba(210, 190, 160, 0.15); border-radius: 50%; pointer-events: none; }
.barn::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; border: 1px solid rgba(210, 190, 160, 0.09); }

/* algae fronds leaking off the slabs (drawn as SVG ribbons by script) */
.algaerow { max-width: 40rem; margin: -3.6rem auto 3.6rem; position: relative; z-index: 1; height: 0; pointer-events: none; }
.frond { animation: sway ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(4deg); } }

/* drifting smoke — veils, never hides */
.mist {
  position: fixed;
  z-index: 3;
  pointer-events: none;
  width: 64vmax;
  height: 36vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(104, 148, 118, 0.10), transparent 70%);
  filter: blur(28px);
  animation: mistdrift linear infinite;
}
.mist.m1 { top: 16%; animation-duration: 95s; }
.mist.m2 { top: 54%; animation-duration: 135s; animation-delay: -68s; background: radial-gradient(closest-side, rgba(84, 128, 128, 0.09), transparent 70%); }
@keyframes mistdrift { from { transform: translateX(-70vmax); } to { transform: translateX(120vw); } }

/* ink-wash blooms (populated by script) */
.blob {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  filter: blur(46px);
  opacity: 0.5;
  animation: blobm ease-in-out infinite alternate;
}
@keyframes blobm { to { transform: translate(34px, -24px) scale(1.14) rotate(9deg); } }

h2 {
  font-weight: 300;
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 190, 150, 0.35), transparent);
}

p + p { margin-top: 1.2rem; }

/* drop cap */
.lede::first-letter {
  font-family: var(--ui);
  font-weight: 400;
  float: left;
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold);
}

/* ---------- performances ---------- */
.performances { list-style: none; }
.performances li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(232, 224, 204, 0.1);
}
.performances li:first-child { border-top: 1px solid rgba(232, 224, 204, 0.1); }
.performances .date {
  font-family: var(--ui);
  font-size: 1.35rem;
  font-weight: 400;
  min-width: 9.5rem;
  color: var(--ink);
}
.performances .time { color: var(--ink-dim); }
.performances .note { margin-left: auto; color: var(--gold); font-style: italic; font-size: 0.9rem; white-space: nowrap; }
.venue { margin-top: 1.6rem; color: var(--ink-dim); font-style: italic; }

/* ---------- team ---------- */
.team { list-style: none; columns: 1; }
.team li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted rgba(232, 224, 204, 0.12);
}
.team summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  cursor: pointer;
  list-style: none;
}
.team summary::-webkit-details-marker { display: none; }
.team summary::after {
  content: "bio +";
  flex: 0 0 auto;
  color: var(--gold);
  opacity: 0.7;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.1rem;
}
.team summary:hover::after { opacity: 1; }
.team details[open] summary::after { content: "bio −"; opacity: 1; }
.team .name { font-family: var(--ui); font-size: 1.15rem; font-weight: 400; white-space: nowrap; }
.team .role { color: var(--ink-faint); font-style: italic; font-size: 0.92rem; text-align: right; margin-left: auto; }
.team .bio { margin: 0.65rem 0 0.5rem; font-size: 0.92rem; line-height: 1.7; color: var(--ink-dim); }
.team .bio.placeholder { font-style: italic; color: var(--ink-faint); }

/* ---------- poster ---------- */
.poster-block a {
  display: block;
  border-bottom: none;
  text-align: center;
}
.poster-block img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid rgba(160, 210, 170, 0.16);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.6);
  transition: border-color 0.3s, transform 0.4s;
}
.poster-block a:hover img { border-color: rgba(160, 210, 170, 0.42); transform: translateY(-2px); }
.poster-block span {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.poster-block a:hover span { color: var(--ink); }

/* ---------- footer ---------- */
footer {
  padding: 0 1.5rem 5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.linkbox {
  max-width: 24rem;
  margin: 0 auto;
  padding: 1.5rem 1.6rem;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(40, 80, 50, 0.16), transparent 55%),
    rgba(8, 12, 9, 0.74);
  border: 1px solid rgba(130, 180, 140, 0.14);
  border-top: 1px solid rgba(160, 210, 170, 0.26);
  border-radius: 20px 48px 22px 54px / 42px 22px 46px 24px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.linkbox a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #c6d9c0;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  border-bottom: none;
}
.linkbox a svg { flex: 0 0 auto; color: var(--gold); }
.linkbox a img { flex: 0 0 auto; height: 24px; width: auto; }
    .linkbox a.lm { justify-content: center; }
    .linkbox a.lm img { height: 40px; }
.linkbox a:hover { color: var(--gold); }

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .premiere { font-size: 0.78rem; letter-spacing: 0.2em; }
  .premiere span { letter-spacing: 0.16em; }
  section { padding: 3rem 0; }
  section.wrap { padding: 3rem 1.4rem; margin: 2.4rem 0.8rem; }
  .algaerow { margin: -2.4rem 0.8rem 2.4rem; max-width: none; }
  .performances .date { min-width: 7.4rem; font-size: 1.2rem; }
  .performances li { gap: 0.8rem; }
  .team summary { flex-wrap: wrap; gap: 0.2rem 0.6rem; }
  .team .role { text-align: left; margin-left: 0; flex-basis: 100%; order: 2; }
  .team summary::after { order: 1; margin-left: auto; }
  footer a { letter-spacing: 0.14em; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art, .blob, .frond, .mist { animation: none; }
  html { scroll-behavior: auto; }
}
