:root {
  --background: #091223;
  --background-soft: #0d1a37;
  --surface: #12213f;
  --surface-2: #1a2b4d;
  --primary: #2a3b60;
  --primary-soft: #496084;
  --accent: #6c87a6;
  --accent-soft: #9ab4c9;
  --moon: #f2eed7;
  --text: #edf4fb;
  --text-soft: #b9c7d8;
  --border: rgba(154, 180, 201, 0.18);
  --glow: rgba(242, 238, 215, 0.18);
  --shadow: 0 28px 60px rgba(3, 8, 20, 0.55);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(108, 135, 166, 0.22), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(242, 238, 215, 0.12), transparent 55%),
    linear-gradient(180deg, var(--background) 0%, #071024 100%);
  line-height: 1.7;
}

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

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

a:hover {
  color: var(--moon);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 2px;
}

p {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 1rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--text);
  letter-spacing: 0.4px;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

small {
  color: var(--text-soft);
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent-soft);
  margin-bottom: 1.25rem;
}

.section-title::before {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--accent-soft);
  opacity: 0.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 43, 77, 0.7);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.8rem;
}

.glow {
  position: relative;
}

.glow::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(242, 238, 215, 0.18), transparent 65%);
  z-index: -1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(7, 16, 36, 0.78) 0%, rgba(7, 16, 36, 0.28) 100%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.header.header-scrolled {
  background: rgba(9, 18, 35, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(154, 180, 201, 0.18);
  box-shadow: 0 14px 32px rgba(3, 8, 20, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 0;
  transition: padding 0.3s ease;
}

.header.header-scrolled .header-inner {
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 220px;
}

.brand img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 8px 18px rgba(3, 8, 20, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--accent-soft);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  flex: 1;
}

.nav a {
  color: var(--text-soft);
  position: relative;
  padding-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 238, 215, 0.6), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--moon);
}

.nav-highlight {
  color: var(--moon);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 33, 63, 0.55);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: color 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.search-toggle svg {
  width: 16px;
  height: 16px;
}

.search-toggle:hover {
  color: var(--text);
  border-color: rgba(242, 238, 215, 0.3);
  background: rgba(26, 43, 77, 0.8);
}

.header-cta {
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  box-shadow: 0 12px 24px rgba(242, 238, 215, 0.2);
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  display: none;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--moon);
  color: #0a1220;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.hero {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-full {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 36, 0.75) 0%, rgba(7, 16, 36, 0.5) 45%, rgba(7, 16, 36, 0.8) 100%),
    radial-gradient(ellipse at top, rgba(26, 43, 77, 0.6), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-full .hero-grid {
  padding: 4rem 0;
}

.hero-logo {
  width: 120px;
  margin-bottom: 1.5rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  z-index: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--moon);
  color: #0a1220;
  box-shadow: 0 12px 30px rgba(242, 238, 215, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(26, 43, 77, 0.7);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(3, 8, 20, 0.35);
}

.link-muted {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--accent-soft);
  font-weight: 500;
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(18, 33, 63, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(242, 238, 215, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 238, 215, 0.3);
}

.card:hover::after {
  opacity: 1;
}

.card p {
  margin-bottom: 0;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  margin-bottom: 0.8rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.callout {
  border: 1px solid rgba(242, 238, 215, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  background: rgba(9, 18, 35, 0.65);
  color: var(--text);
}

.media-block {
  background: linear-gradient(135deg, rgba(26, 43, 77, 0.85), rgba(9, 18, 35, 0.9));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
}

.video-placeholder {
  background: radial-gradient(circle at top, rgba(242, 238, 215, 0.12), transparent 70%),
    rgba(26, 43, 77, 0.9);
  border-radius: var(--radius-sm);
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
}

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

.input,
.textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(9, 18, 35, 0.9);
  color: var(--text);
  font-size: 1rem;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 5rem 0 0;
  background: linear-gradient(180deg, rgba(7, 16, 36, 0.96) 0%, rgba(7, 16, 36, 0.92) 100%);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  height: 150px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(108, 135, 166, 0.35), transparent 70%),
    radial-gradient(ellipse at 80% 0%, rgba(242, 238, 215, 0.18), transparent 65%);
  opacity: 0.85;
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.6rem;
  padding-bottom: 3.5rem;
}

.footer-brand-block {
  max-width: 360px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.4rem;
}

.footer-subtitle {
  margin: 0.2rem 0 0;
  color: var(--accent-soft);
  font-size: 0.92rem;
}

.footer-brand-block p {
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.footer-cta {
  margin-top: 1.4rem;
  width: fit-content;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.footer-subheading {
  margin-top: 1.6rem;
}

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

.footer-links a {
  color: var(--text-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--moon);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(154, 180, 201, 0.2);
  background: rgba(7, 16, 36, 0.98);
  padding: 1.4rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-bottom-note {
  color: var(--accent-soft);
  font-style: italic;
  flex: 1 1 280px;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-bottom-links a {
  color: var(--text-soft);
}

.footer-bottom-links a:hover {
  color: var(--moon);
}

.article-hero {
  padding: 3rem 0 2rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--accent-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.article-body {
  max-width: 72ch;
}

.article-body h2,
.article-body h3 {
  margin-top: 2.2rem;
}

.article-body ul {
  padding-left: 1.2rem;
}

.article-body li {
  margin-bottom: 0.6rem;
}

.article-body blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--moon);
  background: rgba(26, 43, 77, 0.6);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  background: rgba(9, 18, 35, 0.85);
}

.toc ol {
  padding-left: 1.1rem;
  margin: 0;
}

.toc a {
  color: var(--text-soft);
}

.toc a:hover {
  color: var(--text);
}

.related-grid {
  display: grid;
  gap: 1.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr 260px;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: 6.5rem;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    margin-top: 0.9rem;
    padding: 1.2rem 1.4rem;
    background: rgba(9, 18, 35, 0.96);
    border: 1px solid rgba(154, 180, 201, 0.18);
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(3, 8, 20, 0.45);
    order: 3;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

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

  .header-inner {
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }

  .brand-tagline {
    display: none;
  }

  .search-toggle span {
    display: none;
  }

  .header-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .footer-brand-block {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
  }

  .header-inner {
    gap: 1.2rem;
  }

  .brand {
    min-width: auto;
  }

  .footer-main {
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-note {
    text-align: left;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero-full .hero-grid {
    padding: 3rem 0;
  }

  .section {
    padding: 3.4rem 0;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .reveal,
  .card,
  .btn {
    transition: none;
  }
}
