:root {
  /* Canvas — deep near-black-blue so photography + aurora are the light */
  --bg:        #070a12;
  --bg-2:      #0a0f1c;
  --panel:     #0e1424;
  --panel-2:   #121a2e;
  --raise:     #16203a;

  /* Aurora accent spectrum */
  --teal:   #63e6d2;
  --cyan:   #55c8f0;
  --violet: #9d8bf0;
  --rose:   #f0a6c8;
  --aurora: #63e6d2; /* primary single-tone accent */

  /* Signature aurora gradient — used on rules, buttons, underlines */
  --grad: linear-gradient(90deg, #63e6d2 0%, #55c8f0 32%, #9d8bf0 68%, #f0a6c8 100%);
  --grad-soft: linear-gradient(120deg, rgba(99,230,210,0.18), rgba(157,139,240,0.18) 55%, rgba(240,166,200,0.16));

  /* Text */
  --text:   #eef2f8;
  --muted:  #b7c0d4;
  --dim:    #808ba6;
  --faint:  #5b6580;

  /* Hairlines & structure */
  --line:   rgba(210, 224, 255, 0.10);
  --line-2: rgba(210, 224, 255, 0.06);
  --glass:  rgba(255, 255, 255, 0.03);
  --hair:   rgba(210, 224, 255, 0.12);

  /* legacy alias names referenced elsewhere in file */
  --night:  #0a0f1c;
  --ink:    #eef2f8;
  --gray:   #b7c0d4;
  --pink:   #f0a6c8;

  --shadow:   0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 14px 40px rgba(0, 0, 0, 0.40);

  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  Inter, "Helvetica Neue", system-ui, sans-serif;

  --maxw: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* One subtle fixed aurora vignette — the only fixed layer (perf-safe) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 55% at 78% -8%, rgba(99, 230, 210, 0.10), transparent 60%),
    radial-gradient(70% 50% at 8% 4%, rgba(157, 139, 240, 0.10), transparent 60%),
    radial-gradient(90% 60% at 50% 108%, rgba(240, 166, 200, 0.06), transparent 60%);
}
body > * { position: relative; z-index: 1; }

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

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
h1 {
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
h2 {
  font-size: clamp(30px, 4.2vw, 56px);
  max-width: 20ch;
}
h3 {
  font-size: clamp(19px, 1.6vw, 24px);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 0 clamp(20px, 4vw, 44px);
  background: rgba(7, 10, 18, 0.82);
  border-bottom: 1px solid var(--line-2);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--grad);
  opacity: 0.35;
}

.brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.site-nav a {
  position: relative;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--grad);
  transition: right 0.25s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { right: 0; }

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: 999px;
  overflow: hidden;
  background: var(--glass);
}
.lang-btn {
  background: transparent;
  border: 0;
  color: var(--dim);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-height: 32px;
  padding: 0 12px;
  transition: color 0.2s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--grad);
  color: #07131a;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  height: 38px;
  padding: 0 18px;
  cursor: pointer;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 140px clamp(22px, 8vw, 120px) 96px;
  color: var(--text);
}
.hero-bg, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg {
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7,10,18,0.96) 0%, rgba(7,10,18,0.80) 40%, rgba(7,10,18,0.20) 100%),
    linear-gradient(0deg, rgba(7,10,18,0.94) 2%, rgba(7,10,18,0.10) 55%),
    radial-gradient(70% 60% at 85% 20%, rgba(99,230,210,0.16), transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero h1 {
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-copy {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: var(--grad);
  color: #07131a;
  font-weight: 700;
  box-shadow: 0 10px 34px rgba(99, 230, 210, 0.22);
}
.btn.primary:hover { box-shadow: 0 16px 44px rgba(99, 230, 210, 0.34); }

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--hair);
}
.btn.secondary:hover {
  border-color: transparent;
  background: var(--grad-soft);
  color: var(--text);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn.ghost:hover { color: var(--text); border-color: var(--hair); }

/* =====================================================================
   SECTION RHYTHM
   ===================================================================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) clamp(22px, 6vw, 64px);
}
.section-heading {
  margin-bottom: 48px;
  max-width: 900px;
}
.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  max-width: 68ch;
  margin-top: 18px;
}

/* Full-bleed tinted bands (still centered content via inner max-width) */
.intro-band,
.timeline-section,
.anime-section,
.members-section,
.roadmap-section,
.licensing-section,
.contact-section {
  max-width: none;
  padding-left: max(22px, calc((100% - var(--maxw)) / 2 + 64px));
  padding-right: max(22px, calc((100% - var(--maxw)) / 2 + 64px));
}
.intro-band { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.timeline-section { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.members-section { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.licensing-section { background: var(--bg-2); border-top: 1px solid var(--line-2); }

/* =====================================================================
   CARD SYSTEM
   ===================================================================== */
.intro-grid,
.product-grid,
.members-grid,
.license-grid,
.game-layout,
.roadmap,
.membership-pricing,
.episodes {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro-grid article,
.product,
.members-grid article,
.license-grid article,
.game-card,
.roadmap article,
.membership-pricing article,
.episodes article,
.chapter-list article,
.music-panel,
.contact-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
/* Aurora top-rule that lights up on hover */
.intro-grid article::before,
.members-grid article::before,
.license-grid article::before,
.game-card::before,
.episodes article::before,
.roadmap article::before {
  content: "";
  position: absolute;
  left: 28px; right: 28px; top: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.intro-grid article:hover,
.members-grid article:hover,
.license-grid article:hover,
.game-card:hover,
.episodes article:hover,
.roadmap article:hover,
.product:hover,
.membership-pricing article:hover {
  transform: translateY(-4px);
  border-color: var(--hair);
  background: var(--panel-2);
}
.intro-grid article:hover::before,
.members-grid article:hover::before,
.license-grid article:hover::before,
.game-card:hover::before,
.episodes article:hover::before,
.roadmap article:hover::before { opacity: 1; }

.intro-grid article h3,
.members-grid article h3,
.license-grid article h3,
.game-card h3,
.roadmap article h3 { margin-bottom: 10px; }
.intro-grid article p,
.members-grid article p,
.license-grid article p,
.game-card p,
.roadmap article p,
.episodes article p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Shared small-caps kicker labels */
.timeline-card span,
.chapter-list span,
.episodes span,
.roadmap span,
.tag {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   TIMELINE (horizontal scroll rail)
   ===================================================================== */
.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 22px;
  scroll-snap-type: x mandatory;
}
.timeline::-webkit-scrollbar { height: 6px; }
.timeline::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 999px; }
.timeline-card {
  scroll-snap-align: start;
  min-height: 200px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.timeline-card:hover { transform: translateY(-4px); border-color: var(--hair); }
.timeline-card strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 10px;
}
.timeline-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* =====================================================================
   STORY BOOK
   ===================================================================== */
.book-layout {
  display: grid;
  align-items: start;
  gap: 36px;
  grid-template-columns: 280px minmax(0, 1fr);
}
.chapter-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 2px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.chapter-sidebar a {
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: 0 8px 8px 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.chapter-sidebar a:hover {
  color: var(--text);
  border-left-color: var(--teal);
  background: var(--glass);
}
.chapter-list { display: grid; gap: 16px; }
.chapter-list article h3 { margin-bottom: 8px; }
.chapter-list article p { color: var(--muted); margin: 0; }

/* =====================================================================
   PHOTOGRAPHY — section note + filters (COLORS restyled, structure kept)
   ===================================================================== */
.section-note {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-row button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--glass);
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-row button:hover { color: var(--text); border-color: var(--teal); }
.filter-row button.active,
.filter-row button[aria-pressed="true"] {
  background: var(--grad);
  color: #07131a;
  border-color: transparent;
  font-weight: 700;
}

/* =====================================================================
   ARCHIVE STORE
   ===================================================================== */
.product h3 { margin-bottom: 8px; }
.product p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.product.featured {
  grid-column: span 2;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  border-color: var(--hair);
}
.product.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.tag { margin-bottom: 14px; }
.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.price-row span {
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.membership-pricing { margin-bottom: 22px; }
.membership-pricing strong,
.product strong {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.membership-pricing article p { color: var(--muted); margin: 8px 0 0; }

/* =====================================================================
   ANIME / AURORA SPIRIT
   ===================================================================== */
.anime-section { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.anime-hero {
  display: grid;
  align-items: center;
  gap: 52px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  margin-bottom: 40px;
}
.anime-hero .eyebrow { margin-bottom: 20px; }
.anime-hero > div p { color: var(--muted); font-size: 18px; max-width: 54ch; }
.anime-hero img {
  border-radius: 20px;
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
}
.episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.episodes article h3 { margin-bottom: 8px; }

/* =====================================================================
   GAME
   ===================================================================== */
.game-section { background: var(--bg); }
.game-layout { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-card.main {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  border-color: var(--hair);
}
.game-card h3 { margin-bottom: 8px; }
.energy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.energy-row span {
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   ROADMAP
   ===================================================================== */
.roadmap-section {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(157,139,240,0.10), transparent 55%),
    var(--bg-2);
  border-block: 1px solid var(--line-2);
}
.roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =====================================================================
   MUSIC
   ===================================================================== */
.music-section { background: var(--bg); }
.music-panel {
  max-width: 860px;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  border-color: var(--hair);
}
.music-panel h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.music-panel p { color: var(--muted); margin-bottom: 22px; max-width: 58ch; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-section {
  background:
    linear-gradient(rgba(7,10,18,0.86), rgba(7,10,18,0.94)),
    url("assets/aurora-hero.png") center/cover fixed;
}
.contact-card {
  margin: 0 auto;
  max-width: 880px;
  background: rgba(14, 20, 36, 0.78);
  border-color: var(--hair);
  padding: clamp(30px, 5vw, 52px);
}
.contact-card > p { color: var(--muted); max-width: 62ch; }
form {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
label:last-of-type { grid-column: 1 / -1; }
input, select, textarea {
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: rgba(7, 10, 18, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-transform: none;
  letter-spacing: normal;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(99, 230, 210, 0.16);
}
form .btn { grid-column: 1 / -1; justify-self: start; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 40px clamp(22px, 6vw, 64px);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--grad);
  opacity: 0.3;
}
.site-footer strong {
  font-weight: 800;
  letter-spacing: 0.14em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-disclaimer {
  flex-basis: 100%;
  max-width: 92ch;
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--dim);
}

/* =====================================================================
   A11Y — skip link + focus
   ===================================================================== */
.skip-link {
  position: absolute;
  left: 12px; top: -56px;
  z-index: 200;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--hair);
  padding: 10px 16px;
  border-radius: 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.photo-tile:focus-visible,
.growth-tile:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* =====================================================================
   PHOTOGRAPHY GALLERY — FINAL LAYOUT (structure preserved verbatim,
   colors/captions/hover restyled to the aurora identity)
   ===================================================================== */
.gallery-empty { text-align: center; color: var(--dim); padding: 30px; }

#photo-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto 30px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.filter-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  min-width: 62px;
}
.filter-group button {
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--glass);
  color: var(--muted);
  border: 1px solid var(--hair);
  transition: all 0.15s ease;
}
.filter-group button:hover { color: var(--text); border-color: var(--teal); }
.filter-group button.active,
.filter-group button[aria-pressed="true"] {
  background: var(--grad);
  color: #07131a;
  border-color: transparent;
  font-weight: 700;
}

#photo-gallery.masonry { display: block; column-count: unset; }
.gallery-block { margin: 0 0 44px; }

/* Collection > theme > orientation hierarchy heads */
.collection-block { margin: 0 0 64px; }
.collection-head {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 42px);
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.collection-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 140px; height: 2px;
  background: var(--grad);
}
.collection-head .col-count {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.theme-block { margin: 30px 0 0; }
.theme-head {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 700;
}
.topic-head {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 14px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.topic-head .topic-count { font-size: 11px; opacity: 0.55; letter-spacing: normal; }
.ori-head {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ori-head .ori-count { font-size: 12px; opacity: 0.55; letter-spacing: normal; }
.ori-sublabel {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 16px 0 8px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.ori-sublabel .ori-count { opacity: 0.5; letter-spacing: normal; }

/* CRITICAL grid — centered flex so partial rows have no gaps; 3-up uniform tiles */
#photo-gallery .photo-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#photo-gallery .photo-grid.grid-land .photo-tile { width: calc((100% - 24px) / 3); aspect-ratio: 3 / 2; }
#photo-gallery .photo-grid.grid-port .photo-tile { width: calc((100% - 24px) / 3); aspect-ratio: 2 / 3; }
#photo-gallery .photo-grid .filler { display: none !important; }

#photo-gallery .photo-tile {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  position: relative;
  min-height: 0;
  border: 1px solid var(--line-2);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
#photo-gallery .photo-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
#photo-gallery .photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
  border-radius: 0;
  transition: transform 0.5s ease;
}
#photo-gallery .photo-tile:hover img { transform: scale(1.04); }
#photo-gallery .photo-tile.is-hero {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
#photo-gallery .photo-tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(0deg, rgba(5, 8, 15, 0.92), rgba(5, 8, 15, 0.4) 55%, transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}
#photo-gallery .photo-tile:hover figcaption,
#photo-gallery .photo-tile:focus-within figcaption { opacity: 1; }
#photo-gallery .photo-tile strong { display: block; font-size: 13.5px; color: #fff; }
#photo-gallery .photo-tile figcaption span {
  display: block;
  font-size: 11px;
  color: rgba(230, 238, 255, 0.72);
  margin-top: 2px;
}

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 6, 12, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox-figure > figure { margin: 0; }
.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.lightbox-figure figcaption { color: var(--text); margin-top: 18px; }
.lightbox-figure strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
}
.lightbox-figure #lightbox-series { color: var(--muted); font-size: 14px; }
.lightbox-cta {
  display: inline-flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 30px;
  line-height: 1;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); }

/* =====================================================================
   MEMBERS — US Growth Calendar (structure preserved, restyled)
   ===================================================================== */
.growth-cal-wrap {
  margin: 48px 0 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
}
.growth-cal-head { margin-bottom: 26px; }
.members-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #07131a;
  background: var(--grad);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.growth-cal-head h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 8px;
}
.growth-cal-head p { color: var(--muted); max-width: 62ch; margin: 0; }
.growth-year { margin: 0 0 34px; }
.growth-year-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.growth-year-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 90px; height: 2px;
  background: var(--grad);
}
.growth-year-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--text);
}
.growth-year-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.growth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.growth-tile {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line-2);
}
.growth-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.growth-tile:hover img { transform: scale(1.06); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1040px) {
  .game-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card.main { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 70px;
    display: none;
    padding: 20px clamp(20px, 4vw, 44px) 28px;
    background: rgba(7, 10, 18, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: grid; gap: 4px; }
  .site-nav a { padding: 10px 0; font-size: 15px; }

  .book-layout, .anime-hero, form { grid-template-columns: 1fr; }
  .chapter-sidebar { position: static; max-height: none; }

  .intro-grid, .product-grid, .members-grid, .license-grid,
  .roadmap, .membership-pricing, .episodes {
    grid-template-columns: 1fr;
  }
  .product.featured { grid-column: auto; }

  #photo-gallery .photo-grid.grid-land .photo-tile { width: calc((100% - 12px) / 2); }
  #photo-gallery .photo-grid.grid-port .photo-tile { width: calc((100% - 24px) / 3); }
}

@media (max-width: 700px) {
  .growth-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 92vh; padding: 116px 22px 64px; }
  .hero-actions .btn { width: 100%; }
  #photo-gallery .photo-grid.grid-land .photo-tile,
  #photo-gallery .photo-grid.grid-port .photo-tile { width: calc((100% - 12px) / 2); }
  .site-footer { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .growth-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .contact-section { background-attachment: scroll; }
}
