:root {
  --red: #c8102e;
  --navy: #1c2838;
  --gray: #5a6578;
  --light: #f4f6f9;
  --white: #fff;
  --shadow: 0 12px 40px rgba(28, 40, 56, 0.12);
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8edf3;
}

.logo {
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  flex: 1;
}

.site-nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--red);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero .tag {
  color: var(--red);
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0.25rem 0;
  line-height: 1.1;
}

.hero-sub {
  color: var(--gray);
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section.alt {
  background: var(--light);
  max-width: none;
}

.section.alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-kicker {
  color: var(--gray);
  margin-top: 0.35rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.slide-figure img,
.slide-card img,
.metric-card img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.slide-grid.two-up {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.slide-card {
  margin: 0;
}

.slide-card figcaption {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.metric-card {
  margin: 0;
}

.slide-figure.wide img {
  width: 100%;
}

.prose.narrow {
  max-width: 720px;
  margin-top: 1.5rem;
}

.contact-box h2 {
  color: var(--red);
  font-weight: 500;
  text-transform: lowercase;
}

.contact-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
  border-top: 1px solid #e8edf3;
}

@media (max-width: 900px) {
  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}

img.zoomable {
  cursor: zoom-in;
  transition: box-shadow 0.2s, transform 0.2s;
}

img.zoomable:hover {
  box-shadow: 0 16px 48px rgba(28, 40, 56, 0.2);
  transform: translateY(-2px);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(12, 18, 28, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #c8102e;
}

.lightbox-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  pointer-events: none;
}
