/* ————————————————————————————————————————————————
   THREE GRAPE LEAVES · site stylesheet
   Palette drawn directly from the logo artwork.
———————————————————————————————————————————————— */

:root {
  --parchment: #faf3ed;
  --vellum:    #f3eae0;
  --ink:       #263850;
  --ink-soft:  #3d4d63;
  --ochre:     #a5793c;
  --ochre-lt:  #c99c5c;
  --vine:      #6f7459;
  --wine:      #6e2f3b;
  --stain:     #ead5cd;
  --hairline:  rgba(38, 56, 80, 0.22);

  --font-display: "Marcellus", "Cormorant Garamond", serif;
  --font-body: "EB Garamond", Georgia, serif;

  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Wine-stain wash, echoing the blotches on the logo's paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(38rem 26rem at -8% 108%, var(--stain) 0%, transparent 62%),
    radial-gradient(30rem 22rem at 106% -6%, rgba(234, 213, 205, 0.7) 0%, transparent 60%);
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ochre); }

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

/* ——— Signature motif: the Burgundian tiled roofline ——— */
.tile-band {
  height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Crect width='26' height='26' fill='%23263850'/%3E%3Cpath d='M13 0 26 13 13 26 0 13Z' fill='%23a5793c'/%3E%3Cpath d='M13 5.5 20.5 13 13 20.5 5.5 13Z' fill='%23f6efe5'/%3E%3C/svg%3E");
  background-size: 13px 13px;
}

/* ——— Header ——— */
.site-header {
  padding: 1.4rem var(--pad) 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.6rem; }

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ochre); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ochre);
}

/* ——— Page hero ——— */
.page-hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad) clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 1.1rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.25;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.lede {
  max-width: 46ch;
  margin: 1.4rem auto 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Benefactors' statement — deep-space panel, aurora-lit text */
.manifesto {
  max-width: 50rem;
  margin: 1.75rem auto 0;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.6rem, 6vw, 3.6rem);
  text-align: center;
  text-wrap: balance;        /* even line lengths, no lonely last words */
  border-radius: 16px;
  border: 1px solid rgba(150,130,255,0.28);
  background:
    radial-gradient(38rem 20rem at 18% 6%,  rgba(96,64,196,0.42), transparent 60%),
    radial-gradient(34rem 20rem at 86% 94%, rgba(40,132,210,0.36), transparent 60%),
    radial-gradient(24rem 16rem at 62% 48%, rgba(214,74,150,0.22), transparent 65%),
    linear-gradient(160deg, #0b0a1e 0%, #0d0b26 55%, #070410 100%);
  box-shadow:
    0 22px 64px rgba(20,12,60,0.45),
    inset 0 0 70px rgba(120,90,220,0.12);
}

.manifesto .illuminate {
  font-family: "Syne Mono", var(--font-body);
  font-size: clamp(1rem, 0.82rem + 0.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  /* shifting aurora of colour, clipped to the text */
  background: linear-gradient(100deg, #7ad7ff, #a99bff, #ff8fd0, #ffe08a, #7ad7ff);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(150,130,255,0.45));
  animation: aurora 9s ease-in-out infinite;
}
@keyframes aurora {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
@media (prefers-reduced-motion: reduce) {
  .manifesto .illuminate { animation: none; }
}
@media (max-width: 640px) {
  .manifesto .illuminate { line-height: 1.55; }
}

/* ——— Grape-leaf divider ——— */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: clamp(2.2rem, 5vw, 3.5rem) auto;
  max-width: 22rem;
  padding: 0 var(--pad);
}
.leaf-divider::before,
.leaf-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.leaf-divider svg { flex-shrink: 0; }

/* ——— Sections ——— */
.section {
  padding: 0 var(--pad) clamp(2.5rem, 6vw, 4rem);
}

.section-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.section-inner.wide { max-width: 68rem; }

/* ——— Placeholder styling: obvious, easy to find, easy to replace ——— */
.placeholder {
  font-style: italic;
  color: var(--vine);
  background: rgba(111, 116, 89, 0.07);
  border: 1px dashed rgba(111, 116, 89, 0.45);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
}

span.placeholder, .placeholder.inline {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  margin: 0;
}

/* ——— Landing ——— */
.frontispiece {
  min-height: calc(100svh - 5.5rem);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) var(--pad);
  text-align: center;
}

.frontispiece-inner { max-width: 34rem; }

.frontispiece img {
  width: min(100%, 27rem);
  height: auto;
  display: block;
  margin: 0 auto;
  mix-blend-mode: multiply; /* lets the logo's paper melt into ours */
}

.fade-up { animation: fadeUp 1.4s ease both; }
.fade-up.delay-1 { animation-delay: 0.5s; }
.fade-up.delay-2 { animation-delay: 0.9s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.frontispiece .lede { margin-top: 2rem; }

.cta-row {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--parchment); }

.btn.btn-wine {
  border-color: var(--wine);
  color: var(--wine);
}
.btn.btn-wine:hover { background: var(--wine); color: var(--parchment); }

/* ——— Landing: three doorways ——— */
.doorways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
}

.doorway {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--vellum);
  border: 1px solid var(--hairline);
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.doorway:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(38, 56, 80, 0.1);
}
.doorway .tile-band { height: 9px; background-size: 9px 9px; }
.doorway-body { padding: 1.6rem 1.5rem 1.8rem; }
.doorway h3 { color: var(--ink); }
.doorway p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.doorway .doorway-cue {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre);
}

/* ——— Story page ——— */
.story-block { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.story-block .eyebrow { text-align: left; margin-bottom: 0.6rem; }

blockquote.epigraph {
  margin: 0 auto;
  max-width: 40ch;
  text-align: center;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-soft);
}
blockquote.epigraph cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-style: normal;
  font-family: var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ochre);
}

/* ——— Gallery ——— */
.plates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 2rem 1.75rem;
}

.plate { margin: 0; }

.plate-frame {
  aspect-ratio: 4 / 3;
  background: var(--vellum);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  position: relative;
}
.plate-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Crect width='26' height='26' fill='%23263850'/%3E%3Cpath d='M13 0 26 13 13 26 0 13Z' fill='%23a5793c'/%3E%3Cpath d='M13 5.5 20.5 13 13 20.5 5.5 13Z' fill='%23f6efe5'/%3E%3C/svg%3E");
  background-size: 8px 8px;
}
.plate-frame span {
  font-style: italic;
  color: var(--vine);
  font-size: 0.95rem;
  padding: 0 1rem;
  text-align: center;
}
.plate.tall .plate-frame { aspect-ratio: 3 / 4; }

.plate figcaption {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.plate figcaption .plate-no {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-right: 0.6rem;
}

/* ——— Creators ——— */
.creators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.5rem;
}

.creator .portrait {
  aspect-ratio: 4 / 5;
  background: var(--vellum);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.creator .portrait span { font-style: italic; color: var(--vine); font-size: 0.95rem; }
.creator .role {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 0.35rem;
}
.creator h3 { font-size: 1.35rem; letter-spacing: 0.12em; }

/* ——— Journal ——— */
.entry {
  border-top: 1px solid var(--hairline);
  padding: 2rem 0 0.6rem;
  margin-bottom: 1.6rem;
}
.entry time {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre);
  display: block;
  margin-bottom: 0.5rem;
}

/* ——— Support / benefactors ——— */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.tier {
  background: var(--vellum);
  border: 1px solid var(--hairline);
  text-align: center;
}
.tier .tile-band { height: 9px; background-size: 9px 9px; }
.tier-body { padding: 1.8rem 1.4rem 2rem; }
.tier .tier-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}
.tier .tier-sub {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
}
.tier .tier-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--wine);
  margin: 0 0 1.1rem;
}
.tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.tier li { padding: 0.35rem 0; border-top: 1px solid rgba(38,56,80,0.1); }
.tier li:first-child { border-top: 0; }

.support-note {
  text-align: center;
  max-width: 48ch;
  margin: 2.4rem auto 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--hairline);
  padding: 2.2rem var(--pad) 2.6rem;
  text-align: center;
}
.site-footer .fleuron {
  color: var(--ochre);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.site-footer p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.site-footer .credit-line {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink);
}

@media (max-width: 640px) {
  .site-header { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
}

/* ————————————————————————————————————————————————
   DARK MODE · "the cellar at night"
   Ink field from the logo's navy; parchment becomes light;
   gold glows warmer; the wine stain becomes lamplight.
   Activates via .dark on <html>, or OS preference.
———————————————————————————————————————————————— */

html.dark {
  --parchment: #06090f;
  --vellum:    #121b28;
  --ink:       #f0e7d8;
  --ink-soft:  #c9bfae;
  --ochre:     #c99c5c;
  --ochre-lt:  #dfb87a;
  --vine:      #a4aa8b;
  --wine:      #c98a96;
  --stain:     rgba(110, 47, 59, 0.5);
  --hairline:  rgba(240, 231, 216, 0.18);
}



/* Wine-stain wash becomes candlelight pooling in the corners */
html.dark body::before,
html.dark body {
  background: var(--parchment);
}
html.dark body::before {
  background-image:
    /* star fields — three drifting layers at co-prime tile sizes */
    radial-gradient(1px 1px at 22px 34px, rgba(240,231,216,0.9), transparent 1.6px),
    radial-gradient(1px 1px at 128px 90px, rgba(240,231,216,0.55), transparent 1.4px),
    radial-gradient(1.4px 1.4px at 70px 160px, rgba(223,184,122,0.8), transparent 2px),
    radial-gradient(1px 1px at 190px 40px, rgba(240,231,216,0.4), transparent 1.3px),
    radial-gradient(1px 1px at 40px 110px, rgba(201,138,150,0.5), transparent 1.4px),
    /* galaxy wisps — wine, gilt, and deep ink, angled like drifts */
    radial-gradient(52rem 20rem at 12% -4%, rgba(110, 47, 59, 0.34) 0%, transparent 65%),
    radial-gradient(60rem 22rem at 96% 30%, rgba(38, 66, 110, 0.4) 0%, transparent 62%),
    radial-gradient(44rem 16rem at 30% 68%, rgba(201, 156, 92, 0.13) 0%, transparent 60%),
    radial-gradient(50rem 24rem at 78% 102%, rgba(110, 47, 59, 0.28) 0%, transparent 64%),
    radial-gradient(30rem 12rem at 55% 22%, rgba(140, 120, 180, 0.1) 0%, transparent 58%);
  background-size:
    210px 210px, 290px 290px, 340px 340px, 370px 370px, 430px 430px,
    auto, auto, auto, auto, auto;
  background-repeat:
    repeat, repeat, repeat, repeat, repeat,
    no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

/* The logo keeps its own paper: presented as a lit plate on the dark field */
html.dark .frontispiece img {
  mix-blend-mode: normal;
  background: #faf3ed;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(201, 156, 92, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

html.dark .placeholder {
  background: rgba(164, 170, 139, 0.08);
  border-color: rgba(164, 170, 139, 0.4);
}

html.dark .btn:hover { background: var(--ink); color: #06090f; }
html.dark .btn.btn-wine:hover { background: var(--wine); color: #06090f; }

html.dark .doorway:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }

/* Theme toggle */
.theme-toggle {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ochre); border-color: var(--ochre); }

/* ————————————————————————————————————————————————
   LIVING SKY · dark mode only
   Turbulence-drawn nebulae that drift on their own,
   layered starfields, and scroll parallax (site.js).
———————————————————————————————————————————————— */

html.dark body::before { background: none; }

.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
}
html.dark .cosmos { display: block; }

.par { position: absolute; inset: -22vh -8vw; will-change: transform; }

.nebula {
  position: absolute;
  inset: -28%;
  mix-blend-mode: screen;
}

/* wine nebula — fine grain, tiled seamlessly at near-native scale */
.n1 {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2000' height='1400'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.007 0.012' numOctaves='5' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.43 0 0 0 0 0.18 0 0 0 0 0.23 0.7 0.7 0.7 0 -0.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    radial-gradient(30rem 13rem at 18% 8%, rgba(110,47,59,0.4), transparent 65%),
    radial-gradient(22rem 10rem at 62% 40%, rgba(110,47,59,0.26), transparent 60%),
    radial-gradient(26rem 12rem at 80% 92%, rgba(110,47,59,0.32), transparent 62%);
  background-size: 2000px 1400px, auto, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 22% 16%, 0 0, 0 0, 0 0;
  -webkit-mask-image: radial-gradient(58rem 32rem at 22% 16%, #000 0%, rgba(0,0,0,0.65) 42%, transparent 72%);
  mask-image: radial-gradient(58rem 32rem at 22% 16%, #000 0%, rgba(0,0,0,0.65) 42%, transparent 72%);
  opacity: 0.55;
  animation: drift1 160s ease-in-out infinite alternate;
}

/* deep ink-blue nebula — fine grain */
.n2 {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2200' height='1500'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.01' numOctaves='5' seed='29'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.25 0 0 0 0 0.45 0.65 0.65 0.65 0 -0.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"),
    radial-gradient(32rem 14rem at 92% 22%, rgba(38,66,110,0.5), transparent 62%),
    radial-gradient(20rem 10rem at 30% 70%, rgba(38,66,110,0.3), transparent 58%);
  background-size: 2200px 1500px, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 82% 68%, 0 0, 0 0;
  -webkit-mask-image: radial-gradient(64rem 36rem at 82% 68%, #000 0%, rgba(0,0,0,0.6) 45%, transparent 74%);
  mask-image: radial-gradient(64rem 36rem at 82% 68%, #000 0%, rgba(0,0,0,0.6) 45%, transparent 74%);
  opacity: 0.5;
  animation: drift2 210s ease-in-out infinite alternate;
}

/* gilt dust — a true band: long, thin, rotated, elliptical fade */
.n3 {
  inset: auto;
  left: -30%;
  top: 34%;
  width: 160%;
  height: 22rem;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2400' height='360'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.026' numOctaves='4' seed='47'/%3E%3CfeColorMatrix values='0 0 0 0 0.79 0 0 0 0 0.61 0 0 0 0 0.36 0.55 0.55 0.55 0 -0.44'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-mask-image: radial-gradient(85% 46% at 50% 50%, #000 30%, rgba(0,0,0,0.5) 60%, transparent 80%);
  mask-image: radial-gradient(85% 46% at 50% 50%, #000 30%, rgba(0,0,0,0.5) 60%, transparent 80%);
  transform: rotate(-14deg);
  opacity: 0.32;
  animation: drift3 260s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate3d(-3.5%, -2%, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(3.5%, 2.5%, 0) rotate(3deg) scale(1.07); }
}
@keyframes drift2 {
  from { transform: translate3d(3%, 1.5%, 0) rotate(1.5deg) scale(1.05); }
  to   { transform: translate3d(-3%, -2.5%, 0) rotate(-2deg) scale(1); }
}
@keyframes drift3 {
  from { transform: rotate(-14deg) translateX(-1.5%); }
  to   { transform: rotate(-13deg) translateX(1.5%); }
}

/* starfields — smaller tiles, more stars per tile */
.stars { position: absolute; inset: -20%; }
.s1 {
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(240,231,216,0.9), transparent 1.6px),
    radial-gradient(1px 1px at 88px 12px, rgba(240,231,216,0.6), transparent 1.4px),
    radial-gradient(1px 1px at 118px 96px, rgba(240,231,216,0.5), transparent 1.4px),
    radial-gradient(1px 1px at 52px 120px, rgba(201,138,150,0.55), transparent 1.4px),
    radial-gradient(1px 1px at 140px 58px, rgba(240,231,216,0.4), transparent 1.3px);
  background-size: 150px 150px;
  animation: starDrift1 320s linear infinite;
}
.s2 {
  background-image:
    radial-gradient(1.3px 1.3px at 60px 40px, rgba(223,184,122,0.85), transparent 2px),
    radial-gradient(1px 1px at 150px 118px, rgba(240,231,216,0.5), transparent 1.4px),
    radial-gradient(1px 1px at 24px 150px, rgba(240,231,216,0.45), transparent 1.3px),
    radial-gradient(1px 1px at 118px 190px, rgba(201,138,150,0.4), transparent 1.3px);
  background-size: 210px 210px;
  animation: starDrift2 460s linear infinite, twinkle 6.5s ease-in-out infinite alternate;
}
.s3 {
  background-image:
    radial-gradient(2.4px 2.4px at 110px 190px, rgba(240,231,216,1), rgba(223,184,122,0.35) 3px, transparent 5px),
    radial-gradient(1px 1px at 230px 60px, rgba(240,231,216,0.6), transparent 1.5px),
    radial-gradient(1.6px 1.6px at 40px 70px, rgba(223,184,122,0.7), transparent 2.4px);
  background-size: 290px 290px;
  animation: starDrift1 600s linear infinite reverse, twinkle 9s ease-in-out infinite alternate-reverse;
}

@keyframes starDrift1 { from { background-position: 0 0; } to { background-position: 1200px 500px; } }
@keyframes starDrift2 { from { background-position: 0 0; } to { background-position: -1000px 600px; } }
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }


/* ————————————————————————————————————————————————
   SKY, TAMED · keep the black dominant
———————————————————————————————————————————————— */
.n1 { opacity: 0.42; }
.n2 { opacity: 0.38; }
.n3 { opacity: 0.3; }

/* dark scrim + blur so the header always reads over the sky */
html.dark .site-header {
  background: rgba(6, 9, 15, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* hero + footer text gets a breath of shadow against bright wisps */
html.dark h1, html.dark .lede, html.dark .eyebrow,
html.dark .site-footer p, html.dark .wordmark, html.dark .site-nav a {
  text-shadow: 0 1px 14px rgba(6, 9, 15, 0.85);
}

/* gilt edges give the tile band definition against the black */
html.dark .tile-band {
  box-shadow: 0 1px 0 rgba(223, 184, 122, 0.4), 0 -1px 0 rgba(223, 184, 122, 0.4);
}

/* ————————————————————————————————————————————————
   ARCHED WINDOW CARDS
   Doorways and tiers echo the three spires of the logo:
   gothic-arched panels, double gold frame, tile sill below.
   In dark mode they become stained glass over the sky.
———————————————————————————————————————————————— */

.doorway, .tier {
  position: relative;
  background: var(--vellum);
  border: 1px solid rgba(165, 121, 60, 0.55);
  border-top-left-radius: 12rem 15rem;
  border-top-right-radius: 12rem 15rem;
  overflow: hidden;
  text-align: center;
}

/* inner hairline frame following the arch */
.doorway::after, .tier::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(165, 121, 60, 0.32);
  border-top-left-radius: 11rem 14rem;
  border-top-right-radius: 11rem 14rem;
  pointer-events: none;
}

/* keystone ornament at the peak */
.doorway::before, .tier::before {
  content: "◆";
  position: absolute;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--ochre);
}

.doorway-body, .tier-body { padding-top: 3rem; }

/* the tile band becomes a sill at the base of the window */
.doorway .tile-band, .tier .tile-band { margin: 0.4rem 0 0; }

.doorway:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(38, 56, 80, 0.16);
}

/* dark: stained glass — translucent ink, the nebula glows through */
html.dark .doorway, html.dark .tier {
  background: rgba(12, 19, 31, 0.58);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-color: rgba(223, 184, 122, 0.55);
}
html.dark .doorway::after, html.dark .tier::after {
  border-color: rgba(223, 184, 122, 0.28);
}
html.dark .doorway:hover {
  box-shadow: 0 0 36px rgba(223, 184, 122, 0.18);
}

/* ————————————————————————————————————————————————
   WINDOW CARDS · v2
   Sills pinned to the base so all bands align,
   and a beveled metallic gilt frame around the arch.
———————————————————————————————————————————————— */

.doorway, .tier {
  display: flex;
  flex-direction: column;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--vellum), var(--vellum)) padding-box,
    linear-gradient(165deg, #f0d9a5 0%, #c99c5c 22%, #8a6224 48%, #dfb87a 72%, #f6e7c1 100%) border-box;
  box-shadow: 0 6px 20px rgba(38, 56, 80, 0.12);
}

/* body grows; the sill rides the bottom edge on every card */
.doorway-body, .tier-body { flex: 1; }
.doorway .tile-band, .tier .tile-band { margin-top: auto; }

/* inner hairline sits a touch deeper inside the metal frame */
.doorway::after, .tier::after {
  inset: 9px;
  border-color: rgba(165, 121, 60, 0.4);
}

html.dark .doorway, html.dark .tier {
  background:
    linear-gradient(rgba(12, 19, 31, 0.6), rgba(12, 19, 31, 0.6)) padding-box,
    linear-gradient(165deg, #f0d9a5 0%, #c99c5c 25%, #6d4f1f 50%, #dfb87a 75%, #f6e7c1 100%) border-box;
  box-shadow: 0 0 30px rgba(223, 184, 122, 0.15);
}
html.dark .doorway::after, html.dark .tier::after {
  border-color: rgba(223, 184, 122, 0.35);
}
html.dark .doorway:hover {
  box-shadow: 0 0 44px rgba(223, 184, 122, 0.26);
}

/* ————————————————————————————————————————————————
   REAL CONTENT · premiere line, facts strip, playbill credits
———————————————————————————————————————————————— */

.premiere-line {
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-top: 1.7rem;
}

.facts-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 3rem;
  text-align: center;
  margin: 0 auto 2.5rem;
}
.fact .fact-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 0.3rem;
}
.fact .fact-value { margin: 0; font-size: 1.05rem; }

/* playbill-style credit rows with dotted leaders */
.credits { max-width: 38rem; margin: 0 auto; }
.credit {
  display: flex;
  align-items: baseline;
  padding: 0.6rem 0;
}
.credit .role {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  white-space: nowrap;
}
.credit .dots {
  flex: 1;
  border-bottom: 1px dotted var(--hairline);
  margin: 0 0.8rem 0.3rem;
}
.credit .name { white-space: nowrap; font-size: 1.05rem; }

@media (max-width: 480px) {
  .credit { flex-wrap: wrap; }
  .credit .name { white-space: normal; }
}

/* ————————————————————————————————————————————————
   SLIM WINDOWS · taller, narrower, more window-like
———————————————————————————————————————————————— */

.doorways {
  max-width: 54rem;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.doorway {
  min-height: 27rem;
  border-top-left-radius: 13rem 24rem;
  border-top-right-radius: 13rem 24rem;
}
.doorway::after {
  border-top-left-radius: 12rem 23rem;
  border-top-right-radius: 12rem 23rem;
}
.doorway-body {
  padding: 3.8rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ————————————————————————————————————————————————
   NIGHT GLASS · each window looks into the night on hover
———————————————————————————————————————————————— */

.night-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: #06090f;
  pointer-events: none;
}
.night-glass .ng-neb {
  position: absolute;
  inset: -45%;
  mix-blend-mode: screen;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.007 0.012' numOctaves='5' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.43 0 0 0 0 0.18 0 0 0 0 0.23 0.7 0.7 0.7 0 -0.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    radial-gradient(14rem 9rem at 75% 22%, rgba(38, 66, 110, 0.4), transparent 65%),
    radial-gradient(11rem 7rem at 20% 80%, rgba(110, 47, 59, 0.32), transparent 60%);
  background-size: 1200px 900px, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 32% 24%, 0 0, 0 0;
  -webkit-mask-image: radial-gradient(75% 55% at 32% 24%, #000 0%, rgba(0,0,0,0.55) 45%, transparent 78%);
  mask-image: radial-gradient(75% 55% at 32% 24%, #000 0%, rgba(0,0,0,0.55) 45%, transparent 78%);
  opacity: 0.55;
  animation: drift1 70s ease-in-out infinite alternate;
}
.night-glass .ng-stars {
  position: absolute;
  inset: -25%;
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(240,231,216,0.9), transparent 1.6px),
    radial-gradient(1.3px 1.3px at 90px 130px, rgba(223,184,122,0.8), transparent 2px),
    radial-gradient(1px 1px at 160px 60px, rgba(240,231,216,0.5), transparent 1.4px);
  background-size: 220px 220px;
  animation: starDrift1 200s linear infinite;
}

.doorway-body, .doorway .tile-band { position: relative; z-index: 1; }

.doorway:hover .night-glass,
.doorway:active .night-glass { opacity: 1; }

.doorway h3, .doorway p, .doorway .doorway-cue {
  transition: color 0.5s ease;
}
.doorway:hover h3, .doorway:active h3 { color: #f0e7d8; }
.doorway:hover p, .doorway:active p { color: #c9bfae; }
.doorway:hover .doorway-cue, .doorway:active .doorway-cue { color: #dfb87a; }
.doorway:hover {
  box-shadow: 0 0 40px rgba(223, 184, 122, 0.25);
}

/* ————————————————————————————————————————————————
   NIGHT PAGES · story + portal cross the threshold
———————————————————————————————————————————————— */

html.dark body { animation: nightfallIn 1.2s ease both; }
@keyframes nightfallIn { from { opacity: 0; } to { opacity: 1; } }

.site-nav a.nightfall-link { color: var(--wine); }
.site-nav a.nightfall-link:hover { color: var(--ochre); }

/* ————————————————————————————————————————————————
   MEMBERS BUTTON · a rectangle of night in the daylight nav
———————————————————————————————————————————————— */

.site-nav a.nightfall-link {
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(201, 156, 92, 0.65);
  border-bottom: 1px solid rgba(201, 156, 92, 0.65);
  color: #f0e7d8;
  background:
    radial-gradient(1px 1px at 12px 8px, rgba(240,231,216,0.9), transparent 1.5px),
    radial-gradient(1px 1px at 44px 22px, rgba(223,184,122,0.8), transparent 1.5px),
    radial-gradient(1px 1px at 74px 12px, rgba(240,231,216,0.5), transparent 1.3px),
    radial-gradient(9rem 4rem at 85% 130%, rgba(38, 66, 110, 0.55), transparent 70%),
    radial-gradient(7rem 3rem at 8% -30%, rgba(110, 47, 59, 0.5), transparent 70%),
    #06090f;
  background-size: 92px 34px, 92px 34px, 92px 34px, auto, auto, auto;
  transition: box-shadow 0.3s ease, color 0.3s ease;
}
.site-nav a.nightfall-link:hover {
  color: #dfb87a;
  box-shadow: 0 0 18px rgba(223, 184, 122, 0.35);
}
.site-nav a.nightfall-link[aria-current="page"] {
  border-bottom-color: rgba(201, 156, 92, 0.65);
  box-shadow: 0 0 14px rgba(223, 184, 122, 0.3);
}

/* ————————————————————————————————————————————————
   SIZZLE REEL · gilt-framed player + landing link
———————————————————————————————————————————————— */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 3px solid transparent;
  background:
    linear-gradient(#06090f, #06090f) padding-box,
    linear-gradient(165deg, #f0d9a5 0%, #c99c5c 22%, #8a6224 48%, #dfb87a 72%, #f6e7c1 100%) border-box;
  box-shadow: 0 10px 30px rgba(38, 56, 80, 0.18);
  margin: 0.5rem 0 1rem;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 47, 59, 0.4);
  padding-bottom: 3px;
}
.reel-link:hover { color: var(--ochre); border-bottom-color: var(--ochre); }

/* header alignment: the Members box centers with the text links */
.site-header { align-items: center; }
.site-nav { align-items: center; }

/* portraits hold real photos */
.creator .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-credit {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin: 0.4rem 0 0;
  text-align: right;
}
