/* =========================================================
   Nanachi — Echoes of the Abyss
   Fan tribute · dark abyss, warm lantern light
   ========================================================= */

:root {
  --bg: #05070d;
  --bg-2: #0a1020;
  --bg-3: #0e1630;
  --panel: rgba(14, 20, 38, 0.72);
  --panel-solid: #0e1426;
  --text: #ece8f4;
  --muted: #a7a2bd;
  --muted-2: #7f7a99;
  --teal: #7ef0d4;
  --teal-deep: #3fb9a5;
  --gold: #ffd28a;
  --pink: #ff9fbb;
  --violet: #b9a7ff;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(126, 240, 212, 0.10), transparent 60%),
    radial-gradient(900px 700px at 10% 18%, rgba(185, 167, 255, 0.08), transparent 60%),
    radial-gradient(1000px 800px at 50% 100%, rgba(255, 210, 138, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(126, 240, 212, 0.28);
  color: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- atmosphere ---------- */

#spores {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.burst-canvas {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.06);
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--pink));
  box-shadow: 0 0 14px rgba(126, 240, 212, 0.7);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: var(--line);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(126, 240, 212, 0.45);
  box-shadow: 0 0 22px rgba(126, 240, 212, 0.22);
}
.brand-text {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  white-space: nowrap;
}
.brand-text em {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s var(--ease);
  padding: 6px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--teal);
  transition: right 0.3s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--text); }
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { right: 0; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(14, 20, 38, 0.6);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: 0 0 auto;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(4.4rem, 11vw, 8.5rem);
  line-height: 0.92;
  background: linear-gradient(135deg, #fff7e8 10%, var(--gold) 48%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(255, 210, 138, 0.18));
}
.h1-dot { color: var(--teal); -webkit-text-fill-color: var(--teal); }

h2 {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  color: var(--text);
}

.lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section {
  padding: 110px 24px;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  max-width: 760px;
  margin-bottom: 54px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #5fd3bd);
  color: #04110f;
  box-shadow: 0 10px 36px rgba(126, 240, 212, 0.22);
}
.btn-primary:hover { box-shadow: 0 14px 44px rgba(126, 240, 212, 0.34); }
.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(126, 240, 212, 0.55);
  background: rgba(126, 240, 212, 0.06);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 138px 24px 92px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(5, 7, 13, 0.2) 0%, rgba(5, 7, 13, 0.55) 58%, var(--bg) 100%),
    url("../img/nanachi-portrait.jpg");
  background-size: cover;
  background-position: 72% 22%;
  filter: blur(46px) saturate(0.8) brightness(0.32);
  opacity: 0.9;
  transform: scale(1.06);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 72% 32%, rgba(126, 240, 212, 0.16), transparent 70%),
    radial-gradient(500px 400px at 20% 20%, rgba(185, 167, 255, 0.12), transparent 70%);
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
}

.hero-copy { max-width: 620px; }

.hero-sub {
  margin: 22px 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  color: var(--gold);
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 52ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.hero-note span { color: var(--teal); }

.hero-art {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  transform: translate3d(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 10px), 0);
  transition: transform 0.4s var(--ease);
}

.hero-art-glow {
  position: absolute;
  inset: -18% -22%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, rgba(126, 240, 212, 0.30), transparent 62%),
    radial-gradient(circle at 50% 78%, rgba(255, 210, 138, 0.16), transparent 60%);
  filter: blur(28px);
  animation: aura 7s ease-in-out infinite;
}

.portrait-card {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(126, 240, 212, 0.34);
  background: var(--panel-solid);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(126, 240, 212, 0.08);
  transform: rotate(1.4deg);
}
.portrait-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 13;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03) brightness(0.96);
}
.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 7, 13, 0.82) 100%);
  pointer-events: none;
}
.portrait-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.portrait-card figcaption span {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: #fff7e8;
}
.portrait-card figcaption small {
  color: var(--teal);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.floating-tag {
  position: absolute;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 16, 32, 0.7);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}
.tag-1 { top: 8%; left: -12%; color: var(--teal); }
.tag-2 { bottom: 14%; right: -10%; color: var(--gold); animation-delay: -2.5s; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint span {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, transparent, var(--teal));
  animation: scroll-line 2.4s ease-in-out infinite;
}

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

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.about-art {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.1deg);
  background: var(--panel-solid);
}
.about-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) contrast(1.03) brightness(0.9);
}
.about-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 13, 0.82) 100%);
  pointer-events: none;
}
.about-art figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.about-copy p { color: var(--muted); max-width: 58ch; }
.about-copy h2 { margin-bottom: 24px; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
  margin: 32px 0 34px;
}
.stats div {
  padding-left: 14px;
  border-left: 1px solid rgba(126, 240, 212, 0.35);
}
.stats dt {
  color: var(--muted-2);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.stats dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
}

.pull-quote {
  margin: 0;
  padding: 18px 0 18px 22px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--gold);
  opacity: 0.92;
}

/* ---------- layers ---------- */

.layers {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(185, 167, 255, 0.06), transparent 60%),
    linear-gradient(180deg, transparent, rgba(14, 20, 38, 0.35) 40%, transparent);
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.layer-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--layer, var(--teal)) 26%, transparent);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(8, 12, 24, 0.55);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.layer-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--layer, var(--teal)), transparent 88%);
  opacity: 0.8;
}
.layer-card:hover,
.layer-card:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--layer, var(--teal)) 55%, transparent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35),
              0 0 34px color-mix(in srgb, var(--layer, var(--teal)) 10%, transparent);
}
.layer-card--wide { grid-column: span 2; }

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 22px 8px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.layer-num {
  min-width: 54px;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--layer, var(--teal));
  opacity: 0.85;
}
.layer-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.layer-title strong {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.2;
}
.layer-title small {
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.layer-plus {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--layer, var(--teal));
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.layer-card.is-open .layer-plus { transform: rotate(45deg); }

.layer-desc {
  margin: 0;
  padding: 0 22px 22px 92px;
  color: var(--muted);
  font-size: 0.95rem;
}

.layer-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 22px;
}
.layer-more p {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted-2);
  font-size: 0.92rem;
}
.layer-card.is-open .layer-more {
  max-height: 220px;
  padding: 0 22px 22px;
}

/* ---------- quote band ---------- */

.quote-band {
  position: relative;
  padding: 132px 24px;
  overflow: hidden;
  text-align: center;
}
.quote-bg {
  position: absolute;
  inset: -6%;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(5, 7, 13, 0.78), rgba(5, 7, 13, 0.86)),
    url("../img/s2-banner.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.5) saturate(0.9);
  transform: scale(1.04);
}
.quote-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 360px at 50% 45%, rgba(126, 240, 212, 0.16), transparent 70%);
}
.quote-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quote-inner .eyebrow { justify-content: center; }
.quote-inner blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 1;
  color: #fff7e8;
  text-shadow: 0 0 40px rgba(126, 240, 212, 0.3), 0 0 90px rgba(255, 210, 138, 0.12);
}
.quote-caption {
  margin: 14px 0 30px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel-solid);
  color: var(--text);
  cursor: zoom-in;
  text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(126, 240, 212, 0.42);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02) brightness(0.9);
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.03) brightness(0.98);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 7, 13, 0.82) 100%);
  pointer-events: none;
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--wide img { aspect-ratio: 16 / 7; }

.gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #fff7e8;
}

/* ---------- legacy ---------- */

.legacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.legacy-copy p { color: var(--muted); max-width: 58ch; }
.legacy-copy .btn { margin-top: 14px; }

.legacy-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(1deg);
}
.legacy-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03) brightness(0.9);
}
.legacy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 7, 13, 0.86) 100%);
  pointer-events: none;
}
.legacy-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.legacy-card figcaption span {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold);
}
.legacy-card figcaption small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.35), rgba(5, 7, 13, 0.9));
  padding: 64px 24px 26px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.2fr;
  gap: 42px;
}
.footer-brand img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(126, 240, 212, 0.4);
  margin-bottom: 14px;
}
.footer-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
}
.footer-brand p { margin: 0; color: var(--muted-2); font-size: 0.9rem; }
.site-footer h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 8px; }
.site-footer li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease);
}
.site-footer li a:hover { color: var(--text); }
.disclaimer {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.6;
}
.footer-bottom {
  max-width: var(--max);
  margin: 42px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-size: 0.78rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--teal); }

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

.lightbox {
  width: min(94vw, 1100px);
  max-width: 1100px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(5, 7, 13, 0.96);
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(2, 4, 9, 0.82);
  backdrop-filter: blur(8px);
}
.lightbox figure { margin: 0; display: flex; flex-direction: column; }
.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #05070d;
}
.lightbox figcaption {
  padding: 14px 20px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 13, 0.7);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- reveal / animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes aura {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  70% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .hero-copy { max-width: 680px; }
  .hero-art {
    justify-self: start;
    width: min(100%, 380px);
  }
  .tag-1 { left: auto; right: -6%; }
  .tag-2 { right: auto; left: -6%; }
  .about-grid,
  .legacy-grid {
    grid-template-columns: 1fr;
  }
  .about-art { max-width: 620px; }
  .legacy-card { max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 760px) {
  .header-inner { padding: 12px 18px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(10, 16, 32, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .site-nav a:hover { background: rgba(126, 240, 212, 0.08); }
  .site-nav a::after { display: none; }

  .section { padding: 78px 18px; }
  .hero { padding: 118px 18px 84px; }
  .hero-sub { margin-top: 18px; }
  .hero-actions .btn { width: 100%; }

  .layer-grid { grid-template-columns: 1fr; }
  .layer-card--wide { grid-column: auto; }
  .layer-desc { padding-left: 22px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--tall { grid-row: auto; }
  .gallery-item--wide { grid-column: span 2; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(3.8rem, 18vw, 5.4rem); }
  .hero-art { width: 100%; }
  .tag-1 { right: 0; top: 4%; }
  .tag-2 { left: 0; bottom: 8%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: auto; }
  .gallery-item--wide img { aspect-ratio: 16 / 9; }
  .layer-toggle { padding: 18px 18px 6px; }
  .layer-num { min-width: 44px; font-size: 1.7rem; }
  .layer-title strong { font-size: 1.12rem; }
  .quote-band { padding: 96px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  #spores { display: none; }
}
