.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, var(--container-wide));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(244, 246, 251, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--color-line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  color: var(--color-ink);
}

.site-header .logo {
  max-width: min(320px, 62vw);
}

.logo img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-header .logo img {
  border-radius: 0;
  background: transparent;
}

.site-header.is-scrolled .logo img {
  height: 42px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.desktop-nav a {
  position: relative;
  padding: 0.45rem 0.72rem;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  opacity: 0.72;
  transition: opacity 0.2s, color 0.2s;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  opacity: 1;
  color: var(--color-accent);
}

.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.08rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  color: var(--color-ink);
  z-index: calc(var(--z-overlay) + 2);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle span {
  top: 21px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle.is-open span {
  background: transparent;
}

.menu-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: var(--z-overlay);
  background: #f7f8fc;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

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

.overlay-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 44px;
  min-width: 72px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.nav-overlay-inner {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--header-h) + 0.75rem) 1.5rem max(3.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.overlay-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  font-weight: 400;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
}

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

.overlay-cta {
  margin-top: auto;
  padding-top: 2rem;
}

.overlay-meta {
  margin-top: 1.25rem;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.82);
  position: relative;
}

.site-footer .logo {
  color: var(--color-white);
}

.site-footer .logo img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: transparent;
}

.site-footer .logo-text span {
  color: rgba(216, 188, 134, 0.9);
}

.footer-ridge {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: var(--space-7);
  padding: var(--space-8) 0 var(--space-7);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-sm);
}

.footer-title {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
  display: block;
  padding: 0.28rem 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-white);
}

.legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.48);
}

.legal-warning {
  color: var(--color-gold-soft);
  letter-spacing: 0.04em;
}

.page-main {
  min-height: 50vh;
}

.page-hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
  background: var(--color-navy);
}

.page-hero.compact {
  min-height: 420px;
  align-items: end;
}

.page-hero img.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(7, 11, 20, 0.82) 0%, rgba(7, 11, 20, 0.5) 48%, rgba(7, 11, 20, 0.22) 100%);
}

.page-hero.compact::before {
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.28) 0%, rgba(7, 11, 20, 0.72) 100%);
}

.page-hero::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: calc(var(--header-h) + 2.5rem) 0 5rem;
}

.page-hero.compact .hero-copy {
  padding: 3.5rem 0 3.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-gold-bright);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: var(--lh-tight);
  max-width: 12ch;
  color: var(--color-white);
  letter-spacing: -0.035em;
}

.hero-copy .lede {
  margin-top: 1.25rem;
  max-width: 38ch;
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.page-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.28);
}

.page-hero .btn-ghost::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat,
    rgba(255, 255, 255, 0.16);
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
}

.section {
  padding: var(--space-9) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-7);
}

.section-kicker {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(21, 28, 44, 0.18);
  text-transform: none;
  margin-bottom: 0.55rem;
}

.section-head h2,
.article-title,
.block-title {
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--color-ink);
  font-weight: 500;
}

.section-intro {
  color: var(--color-body);
  max-width: 48ch;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), transparent 28%),
    radial-gradient(circle at 70% 30%, rgba(167, 139, 250, 0.55), transparent 42%),
    radial-gradient(circle at 40% 78%, rgba(47, 107, 255, 0.42), transparent 46%),
    linear-gradient(160deg, #dbe4ff 0%, #eef2ff 100%);
  min-height: 340px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.split-media::after {
  display: none;
}

.prose {
  font-size: 1.02rem;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-sans);
  color: var(--color-ink);
  margin: 2rem 0 0.8rem;
  font-weight: 600;
}

.prose p + p {
  margin-top: 1rem;
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .bullet-list,
.bullet-list {
  margin-left: 0;
  list-style: none;
}

.prose .bullet-list li,
.bullet-list li {
  list-style: none;
}

.prose ul,
.prose ol {
  margin: 1rem 0 1.2rem 1.1rem;
}

.prose li {
  list-style: disc;
  margin: 0.35rem 0;
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: var(--z-backtop);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.menu-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1280px) {
  .desktop-nav a {
    padding: 0.45rem 0.48rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 900px) {
  .container,
  .container-wide {
    width: min(100% - 1.5rem, var(--container));
  }

  .section-head,
  .split,
  .split.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .page-hero.compact {
    min-height: 320px;
  }

  .split-media img {
    min-height: 240px;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 38px;
  }

  .site-header.is-scrolled .logo img {
    height: 34px;
  }

  .logo-text span {
    display: none;
  }

  .hero-copy {
    padding-bottom: 3.5rem;
  }

  .overlay-nav a {
    font-size: 1.32rem;
    min-height: 46px;
    padding: 0.65rem 0;
  }
}
