:root {
  --bg: #0b1118;
  --bg-elev: #111925;
  --bg-soft: #162131;
  --panel: #0f1723;
  --text: #e7edf5;
  --muted: #a7b4c5;
  --line: #243246;
  --accent: #9cc6ff;
  --accent-strong: #cfe4ff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font-sans: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(93, 129, 170, 0.16), transparent 26%),
    linear-gradient(180deg, #0b1118 0%, #0d1420 40%, #0a1017 100%);
  line-height: 1.65;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 17, 24, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand span {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.site-nav a {
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 1.1rem;
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--accent);
  margin: 0 0 0.8rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.8rem;
  font-family: inherit;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.9rem);
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
}

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--text);
  color: #09111a;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-card,
.story-card,
.note-box,
.archive-item,
.contact-card,
.about-panel,
.featured-panel,
.video-frame,
.story-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.media-placeholder {
  min-height: 220px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(111, 146, 191, 0.16), rgba(255, 255, 255, 0.03));
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.media-placeholder.tall {
  min-height: 460px;
}

.media-placeholder.large {
  min-height: 360px;
}

.caption,
.muted,
.meta {
  color: var(--muted);
}

.section {
  padding: 2.4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.text-link {
  color: var(--accent-strong);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.2rem;
}

.story-card {
  overflow: hidden;
}

.story-card-large .media-placeholder {
  min-height: 320px;
  border-radius: 20px 20px 0 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.story-content,
.note-box,
.hero-card,
.archive-item,
.contact-card,
.about-panel,
.featured-panel,
.story-shell {
  padding: 1.2rem;
}

.side-notes {
  display: grid;
  gap: 1rem;
}

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

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

.mosaic-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.mosaic-grid > :first-child {
  grid-row: span 2;
}

.page-hero {
  padding: 3rem 0 1rem;
}

.page-hero p {
  max-width: 70ch;
  color: var(--muted);
}

.archive-grid,
.featured-grid,
.contact-grid,
.about-grid,
.story-grid {
  display: grid;
  gap: 1rem;
}

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

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

.contact-grid,
.about-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.story-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.archive-item h3,
.featured-panel h3 {
  margin-top: 0.8rem;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.video-frame {
  padding: 0;
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.quote {
  font-family: inherit;
  font-size: 1.3rem;
  color: var(--accent-strong);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.story-shell {
  margin-top: 1rem;
}

.story-shell .media-placeholder {
  margin: 1rem 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .three-up,
  .archive-grid,
  .featured-grid,
  .contact-grid,
  .about-grid,
  .story-grid,
  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-grid > :first-child {
    grid-row: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    background: rgba(11, 17, 24, 0.97);
    border: 1px solid var(--line);
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .nav-toggle {
    display: block;
  }
}