/* Layout: header, hero, sections, footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 242, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(227, 28, 36, 0.14), rgba(255, 177, 0, 0.12));
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.08);
}

.brand-mark img {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav a {
  display: inline-flex;
  padding: 10px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: rgba(21, 21, 21, 0.82);
  transition: background 160ms ease, color 160ms ease;
}

.nav a:hover {
  background: rgba(21, 21, 21, 0.06);
  color: rgba(21, 21, 21, 0.92);
}

.nav a[aria-current="page"] {
  background: rgba(227, 28, 36, 0.12);
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
}

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

  .brand {
    min-width: unset;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(21, 21, 21, 0.12);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
  }
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 60;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 92vw);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(21, 21, 21, 0.1);
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  z-index: 70;
  display: flex;
  flex-direction: column;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open .drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
}

.drawer-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.drawer-body {
  padding: 8px 18px 18px;
  overflow: auto;
}

.drawer-nav {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  text-decoration: none;
  font-weight: 800;
  color: rgba(21, 21, 21, 0.9);
}

.drawer-nav a small {
  font-weight: 700;
  color: rgba(21, 21, 21, 0.55);
}

/* Main */
main {
  min-height: 70vh;
}

.section {
  padding: 76px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
  border-top: 1px solid rgba(21, 21, 21, 0.06);
  border-bottom: 1px solid rgba(21, 21, 21, 0.06);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.12;
}

.section-kicker {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(21, 21, 21, 0.06);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 700px at 15% 15%, rgba(227, 28, 36, 0.35), transparent 60%),
    radial-gradient(900px 650px at 95% 10%, rgba(255, 177, 0, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.62) 35%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
  position: relative;
  padding: 92px 0 80px;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
}

.hero-inner {
  width: min(720px, 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-title {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(40px, 5.3vw, 68px);
  color: #ffffff;
}

.hero-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

/* Page banner (non-home) */
.page-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 21, 21, 0.1);
  margin-top: 26px;
  background: #121212;
  color: rgba(255, 255, 255, 0.92);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.76)),
    var(--banner-img, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.05);
  filter: saturate(1.12) contrast(1.05);
}

.page-banner-inner {
  position: relative;
  padding: 44px 22px 22px;
  display: grid;
  gap: 10px;
}

.page-banner-inner .tag {
  width: fit-content;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.page-banner-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(30px, 3.4vw, 50px);
}

.page-banner-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  max-width: 72ch;
}

/* Footer */
.site-footer {
  margin-top: 90px;
  background: #101010;
  color: rgba(255, 255, 255, 0.88);
}

.footer-top {
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-brand img {
  width: 170px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.68);
  max-width: 44ch;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}

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

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.92);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}

.footer-social img {
  width: 18px;
  height: 18px;
  filter: saturate(0) brightness(1.5);
  opacity: 0.9;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}
