:root {
  --night: #1e1631;
  --dusk: #2f2450;
  --fog: #b8a6dc;
  --fog-soft: rgba(184, 166, 220, .16);
  --glaze: #ee7b2c;
  --glaze-deep: #c4561a;
  --vine: #7fa046;
  --moon: #f6eedb;
  --ink: #ece6f6;
  --muted: #b3a8c9;
  --display: "Caprasimo", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--glaze); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--fog); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 1080px; margin: 0 auto; }
.bar a { color: var(--ink); text-decoration: none; }
.bar .home { font-family: var(--display); font-size: 1.25rem; color: var(--moon); }
.bar nav { display: flex; gap: 18px; font-size: .95rem; }
.bar nav a { color: var(--muted); }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--moon); }

/* ---------- hero with the eye ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 24px 16px 96px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(184,166,220,.35), transparent 70%),
    linear-gradient(var(--night), var(--dusk));
}
.fog { position: absolute; left: -20%; right: -20%; height: 160px; bottom: -40px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(205,190,235,.45), transparent 65%);
  filter: blur(18px); animation: drift 26s ease-in-out infinite alternate; }
.fog.two { bottom: 10px; opacity: .6; animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

.eye { width: min(64vw, 300px); aspect-ratio: 1; margin: 12px auto 0; position: relative; }
.eye svg { width: 100%; height: 100%; overflow: visible; }
.eye .lid { transform-origin: 150px 150px; animation: blink 6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); color: var(--moon); margin-top: 18px; letter-spacing: .01em; }
.hero p.luck { font-size: clamp(1.1rem, 3.4vw, 1.4rem); color: var(--fog); margin: 10px 0 0; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; position: relative; z-index: 2; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--glaze); color: #2a1206; border: 2px solid var(--glaze); }
.btn:hover { background: var(--glaze-deep); border-color: var(--glaze-deep); color: var(--moon); }
.btn.ghost { background: transparent; color: var(--moon); border-color: var(--fog); }
.btn.ghost:hover { background: var(--fog-soft); }

/* ---------- sightings slideshow ---------- */
.sightings { padding: 72px 0 24px; }
.frame { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 0 auto;
  background: var(--moon); padding: 14px 14px 52px; border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); transform: rotate(-1.5deg); }
.frame .stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: #2a2140; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.frame img.on { opacity: 1; }
.frame .cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--display); color: #4a3a6a; font-size: 1.15rem; }

/* ---------- origins ---------- */
.origins { padding: 72px 0; }
.origins .story { max-width: 62ch; margin: 0 auto; }
.origins h2 { font-size: clamp(2rem, 6vw, 3rem); color: var(--fog); text-align: center; margin-bottom: 24px; }
.origins p { font-size: 1.15rem; line-height: 1.75; margin: 0 0 1.1em; }
.origins p:first-of-type::first-letter { font-family: var(--display); float: left; font-size: 3.6em; line-height: .85; padding: 6px 10px 0 0; color: var(--glaze); }
.video { position: relative; aspect-ratio: 16/9; max-width: 820px; margin: 36px auto 0; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- galleries entry ---------- */
.years { position: relative; padding: 80px 0 96px; overflow: hidden; }
.years .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; filter: saturate(.8); }
.years .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--night), transparent 30%, transparent 70%, var(--night)); }
.years .wrap { position: relative; }
.years h2 { font-size: clamp(2rem, 6vw, 3rem); text-align: center; color: var(--moon); }
.yearlist { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; }
.year { display: block; text-decoration: none; color: var(--ink); background: rgba(30,22,49,.82); border: 2px solid var(--fog-soft); border-radius: 18px; padding: 22px; }
.year:hover { border-color: var(--glaze); }
.year h3 { font-size: 2rem; color: var(--glaze); }
.year p { margin: 6px 0 0; color: var(--muted); }
.year.soon h3 { color: var(--fog); }

footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 32px 16px 48px; }

/* ---------- gallery page ---------- */
.page-head { text-align: center; padding: 32px 16px 8px; }
.page-head h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); color: var(--moon); }
.page-head p { color: var(--fog); margin: 8px auto 0; max-width: 52ch; }
.jump { position: sticky; top: 0; z-index: 5; background: rgba(30,22,49,.94); backdrop-filter: blur(6px); padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; }
.jump a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--fog-soft); color: var(--ink); text-decoration: none; font-size: .95rem; }
.jump a:hover { border-color: var(--glaze); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 20px 0 48px; }
.tile { background: var(--dusk); border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; color: var(--ink); text-align: left; font: inherit; scroll-margin-top: 70px; }
.tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #3a2e5a; }
.tile span { display: block; padding: 6px 10px 8px; font-family: var(--display); font-size: 1.3rem; color: var(--moon); }
.tile:hover span { color: var(--glaze); }

/* pop-up */
.pop { position: fixed; inset: 0; z-index: 20; background: rgba(14,10,24,.94); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.pop.open { display: flex; }
.pop figure { margin: 0; max-width: 960px; width: 100%; }
.pop img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 8px; background: #000; }
.pop figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.pop .num { font-family: var(--display); font-size: 1.8rem; color: var(--moon); }
.pop button { font: inherit; cursor: pointer; border-radius: 999px; padding: 10px 16px; border: 1.5px solid var(--fog); background: transparent; color: var(--moon); }
.pop button:hover { background: var(--fog-soft); }
.pop .close { position: absolute; top: 12px; right: 12px; font-size: 1.4rem; width: 48px; height: 48px; padding: 0; }
.pop .side { display: flex; gap: 8px; }
.pop .flip { background: var(--glaze); color: #2a1206; border-color: var(--glaze); font-weight: 700; }

/* 2026 placeholder */
.attack { margin: 24px auto 0; max-width: 960px; }
.attack img { width: 100%; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.attack figcaption { text-align: center; font-family: var(--display); font-size: 1.4rem; color: var(--glaze); margin-top: 14px; }
.page-head.crowd { position: relative; overflow: hidden; padding-bottom: 28px; }
.page-head.crowd::before { content: ""; position: absolute; inset: 0; background: var(--crowd) center/cover; opacity: .16; }
.page-head.crowd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--night)); }
.page-head.crowd > * { position: relative; z-index: 1; }
.soon-box { max-width: 560px; margin: 40px auto 96px; text-align: center; }
.soon-box .eye { width: 160px; }
.soon-box p { color: var(--fog); font-size: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  .fog, .eye .lid { animation: none; }
  .frame img { transition: none; }
}

/* ---------- welcome ---------- */
.hero .lair { font-family: var(--display); color: var(--fog); font-size: clamp(1.05rem, 3.2vw, 1.4rem); margin: 18px 0 0; }
.hero .lair + h1 { margin-top: 4px; }
.welcome { padding: 64px 0 8px; }
.welcome .letter { max-width: 60ch; margin: 0 auto; }
.welcome h2 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); color: var(--moon); margin-bottom: 18px; }
.welcome h3 { font-size: clamp(1.5rem, 4.5vw, 2rem); color: var(--glaze); margin: 34px 0 2px; }
.welcome p { font-size: 1.15rem; line-height: 1.75; margin: 0 0 1em; }
.welcome .meet { font-family: var(--display); font-size: 1.5rem; color: var(--glaze); }
.welcome .wait { color: var(--fog); font-style: italic; }
.rule { margin: 48px auto 0; max-width: 34ch; text-align: center; padding: 28px 20px; border-top: 2px solid var(--fog-soft); border-bottom: 2px solid var(--fog-soft); }
.rule p { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 4.6vw, 1.9rem); line-height: 1.35; color: var(--moon); }
.rule cite { display: block; margin-top: 12px; font-style: normal; color: var(--fog); }
.years { scroll-margin-top: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- 2026 pop-up with bio and seed link ---------- */
.pop.has-bio { overflow-y: auto; justify-content: flex-start; padding-top: 68px; }
.pop.has-bio figure { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1040px; margin: auto 0; }
.pop.has-bio figcaption { grid-column: 1 / -1; }
.bio h2 { font-size: clamp(2rem, 6vw, 2.8rem); color: var(--moon); margin-bottom: 14px; }
.bio .lbl { display: block; margin: 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bio .val { margin: 2px 0 14px; font-size: 1.1rem; }
.bio .byline { font-style: italic; color: var(--fog); }
.bio .yr { margin: -8px 0 14px; color: var(--glaze); font-family: var(--display); font-size: 1.2rem; }
.pop .bio .seed { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: 14px; padding: 8px 14px 8px 8px; margin-top: 6px; border-color: var(--glaze); }
.pop .bio .seed img { width: 56px; height: 56px; max-height: none; object-fit: cover; border-radius: 10px; flex: none; }
.bio .seedtxt { display: flex; flex-direction: column; line-height: 1.35; }
.bio .seedtxt .lbl { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.bio .arrow { margin-left: auto; font-size: 1.6rem; color: var(--glaze); }
.pop .bio .back { margin-top: 4px; }
@media (max-width: 720px) {
  .pop.has-bio figure { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pop.has-bio img { max-height: 48vh; }
  .bio h2 { margin-bottom: 8px; }
}
.pop.has-bio > figure > img { background: transparent; }

/* ---------- class video at top of each gallery ---------- */
.top-video { max-width: 760px; margin: 20px auto 24px; box-shadow: 0 18px 48px rgba(0,0,0,.45); border: 2px solid var(--fog-soft); }
