:root {
  color-scheme: dark;
  --ink: #07080d;
  --ink-2: #11131b;
  --panel: rgba(16, 19, 31, 0.82);
  --panel-solid: #151925;
  --text: #f8f3ec;
  --muted: #c8cad6;
  --line: rgba(255, 255, 255, 0.16);
  --gold: #f2bd68;
  --rose: #f08ca5;
  --cyan: #62d9f2;
  --green: #87d39c;
  --violet: #a991ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max: 1160px;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(7, 8, 13, 0.78), rgba(7, 8, 13, 0.96)),
    var(--ink);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 72%);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 100%;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: #17100a;
  border-radius: var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(7, 8, 13, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: calc(100vw - 32px);
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 189, 104, 0.6);
  border-radius: var(--radius);
  color: var(--gold);
  background: linear-gradient(135deg, rgba(242, 189, 104, 0.15), rgba(98, 217, 242, 0.12));
  font-family: Georgia, serif;
  font-weight: 700;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.brand-title,
.brand-subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-title {
  font-weight: 800;
  font-size: 0.98rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.82rem;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.hero {
  position: relative;
  max-width: 100%;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.88), rgba(7, 8, 13, 0.42) 47%, rgba(7, 8, 13, 0.75)),
    linear-gradient(180deg, rgba(7, 8, 13, 0.18), rgba(7, 8, 13, 0.9));
}

.hero-home {
  --hero-image: url("images/nighthaven-main-wide-banner.png");
  --hero-position: center;
}

.hero-neaura {
  --hero-image: url("images/neaura-wallpaper.png");
  --hero-position: center right;
}

.hero-nlora {
  --hero-image: url("images/nlora-guardian-banner.png");
  --hero-position: center;
}

.hero-nighthaven {
  --hero-image: url("images/nighthaven-main-wide-banner.png");
  --hero-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: calc(100vw - 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 8.5rem 0 4rem;
}

.hero-content > * {
  max-width: min(100%, 780px);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  max-width: 100%;
  overflow-wrap: break-word;
}

h1 {
  max-width: 780px;
  margin-top: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.2rem;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
}

h3 {
  font-size: 1.2rem;
}

.hero-lede {
  max-width: 660px;
  margin: 1.15rem 0 0;
  font-size: 1.15rem;
  color: #f3ecdf;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.45rem;
  max-width: 100%;
}

.button,
.button-ghost {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  border: 1px solid transparent;
}

.button {
  color: #15100b;
  background: linear-gradient(135deg, var(--gold), #ffdca0);
  box-shadow: 0 12px 30px rgba(242, 189, 104, 0.22);
}

.button.alt {
  background: linear-gradient(135deg, var(--cyan), #c7f8ff);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.button:hover,
.button-ghost:hover,
.link-card:hover,
.social-link:hover {
  transform: translateY(-1px);
}

.social-link.unavailable {
  cursor: not-allowed;
  opacity: 0.7;
}

.social-link.unavailable:hover {
  transform: none;
}

.button svg,
.button-ghost svg,
.social-link svg,
.mini-stat svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

main {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
}

.section {
  max-width: 100%;
  padding: 5rem 0;
}

.section.tight {
  padding: 3.5rem 0;
}

.section.alt-band {
  background:
    linear-gradient(90deg, rgba(242, 189, 104, 0.06), rgba(98, 217, 242, 0.08), rgba(240, 140, 165, 0.05)),
    rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

.shell {
  width: calc(100vw - 32px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 2rem;
  align-items: center;
}

.media-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel-solid);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
}

.wide-frame {
  aspect-ratio: 16 / 9;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.link-card,
.quote,
.callout,
.social-link,
.mini-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.card {
  min-height: 178px;
  padding: 1.35rem;
  color: inherit;
  text-decoration: none;
}

.card.featured {
  min-height: 240px;
  display: grid;
  align-content: end;
  overflow: hidden;
  position: relative;
  background: #11131b;
}

.card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
  opacity: 0.62;
}

.card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 13, 0.92));
}

.card-content {
  position: relative;
  z-index: 1;
}

.card p,
.link-card p,
.quote p,
.callout p {
  margin: 0.7rem 0 0;
}

.card .tag {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card .tag.accent-gold {
  color: var(--gold);
}

.card .tag.accent-cyan {
  color: var(--cyan);
}

.card .tag.accent-rose {
  color: var(--rose);
}

.card .tag.accent-green {
  color: var(--green);
}

.link-card {
  min-height: 142px;
  padding: 1.1rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.link-card:hover {
  border-color: rgba(242, 189, 104, 0.52);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.pill-list li {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #fff6e7;
  background: rgba(255, 255, 255, 0.06);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.mini-stat {
  min-height: 116px;
  padding: 1rem;
}

.mini-stat strong {
  display: block;
  color: var(--gold);
  font-size: 1.42rem;
  margin-top: 0.4rem;
}

.mini-stat span {
  display: block;
  color: var(--muted);
  margin-top: 0.3rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.social-link {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  text-decoration: none;
}

.social-link span {
  display: grid;
  gap: 0.15rem;
}

.social-link small {
  color: var(--muted);
}

.quote {
  min-height: 180px;
  padding: 1.2rem;
}

.quote p {
  color: #f4efe8;
}

.quote cite {
  display: block;
  margin-top: 0.85rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.callout {
  padding: 1.4rem;
  display: grid;
  gap: 0.4rem;
}

.accent-gold {
  color: var(--gold);
}

.accent-cyan {
  color: var(--cyan);
}

.accent-rose {
  color: var(--rose);
}

.accent-green {
  color: var(--green);
}

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.timeline-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(98, 217, 242, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.timeline-item p {
  margin: 0.35rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #080910;
  padding: 2rem 0;
}

.footer-shell {
  width: calc(100vw - 32px);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-shell a {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .split,
  .grid.three,
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
  }

  .brand-subtitle {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    background: rgba(7, 8, 13, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero {
    min-height: 650px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(7, 8, 13, 0.88), rgba(7, 8, 13, 0.62)),
      linear-gradient(180deg, rgba(7, 8, 13, 0.2), rgba(7, 8, 13, 0.95));
  }

  .hero-content {
    padding: 7.5rem 0 3.2rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .section {
    padding: 3.6rem 0;
  }

  .split,
  .grid.three,
  .grid.two,
  .social-grid,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-shell,
  .hero-content,
  .shell,
  .footer-shell {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .brand-title {
    max-width: 176px;
  }

  .hero {
    min-height: 620px;
  }

  h1 {
    font-size: 1.82rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 1.62rem;
    line-height: 1.12;
  }

  .hero-lede {
    font-size: 0.96rem;
  }

  .button,
  .button-ghost {
    width: 100%;
    flex: 1 0 100%;
  }

  .hero-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-home,
  .hero-nighthaven {
    --hero-position: center left;
  }

  .hero-nlora {
    --hero-position: center;
  }
}
