/* =========================================================
   1. ROOT VARIABLES
========================================================= */
:root {
  --bg: #0c1222;
  --bg-soft: #121b32;

  --surface: #ffffff;
  --surface-alt: #eef3ff;

  --text: #182133;
  --text-soft: #5a6784;

  --accent: #4f7cff;
  --accent-2: #9f6bff;

  --border: #dbe4ff;
  --shadow: 0 18px 45px rgba(13, 24, 52, 0.12);

  --radius: 22px;
  --radius-inner: 16px;

  --transition: 0.2s ease;
  --max-text-width: 65ch;
}

/* =========================================================
   2. BASE / RESET
========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

a:hover {
  opacity: 0.92;
}

/* Accessible keyboard focus styling */
a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(79, 124, 255, 0.35);
  outline-offset: 3px;
}

/* =========================================================
   3. LAYOUT UTILITIES
========================================================= */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 2rem));
}

.hero-grid,
.split,
.cta,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: 2rem 0 3rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(219, 228, 255, 0.6);
  border-bottom: 1px solid rgba(219, 228, 255, 0.6);
}

/* Shared rounded blocks */
.hero-card,
.card,
.shot-card,
.team-card,
.video-shell,
.cta,
.section-accent .container,
.steps {
  border-radius: var(--radius);
}

/* =========================================================
   4. HEADER / NAVIGATION
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 255, 0.9);
  border-bottom: 1px solid rgba(219, 228, 255, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  white-space: nowrap;
}

/* =========================================================
   5. TYPOGRAPHY
========================================================= */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.lead,
.section-copy,
.card p,
.steps,
.team-card p,
figcaption,
.site-footer,
.video-placeholder p {
  color: var(--text-soft);
  line-height: 1.7;
}

.lead,
.section-copy {
  max-width: var(--max-text-width);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.12);
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.accent {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* =========================================================
   6. BUTTONS / INTERACTIVE ELEMENTS
========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(79, 124, 255, 0.24);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(79, 124, 255, 0.28);
}

.button-small {
  padding: 0.72rem 0.95rem;
  font-size: 0.95rem;
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.button-secondary:hover,
.button-ghost:hover {
  box-shadow: 0 8px 20px rgba(13, 24, 52, 0.08);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.4rem 0;
}

/* =========================================================
   7. HERO
========================================================= */
.hero {
  padding: 5rem 0 3rem;
}

.hero-small {
  padding-bottom: 1rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.hero-card {
  background: linear-gradient(145deg, #0d1730 0%, #1c2a55 100%);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-points {
  margin: 1.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* =========================================================
   8. SECTION LAYOUTS / CARDS
========================================================= */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.card,
.team-card,
.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.team-card:hover,
.shot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(13, 24, 52, 0.14);
}

.steps {
  margin: 0;
  padding-left: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.5rem 2.7rem;
}

.steps li + li {
  margin-top: 0.8rem;
}

/* =========================================================
   9. MEDIA / GALLERY / VIDEO
========================================================= */
.video-shell {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto 0;
  aspect-ratio: 16 / 9;
  background: #091120;
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: var(--radius);
}

.video-placeholder {
  min-height: 360px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  border-radius: calc(var(--radius) - 8px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: #edf2ff;
}

.video-shell iframe,
.video-shell video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.shot-card img {
  width: 100%;
  border-radius: var(--radius-inner);
  border: 1px solid var(--border);
}

figcaption {
  margin-top: 0.85rem;
}

/* =========================================================
   10. TEAM / ABOUT PAGE
========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Flexible layout for five-person team rows */
.team-grid.five-up {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.team-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

/* =========================================================
   11. CTA / FOOTER
========================================================= */
.section-accent {
  padding-top: 0;
}

.cta {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  background: linear-gradient(135deg, #111d38 0%, #233a7a 100%);
  color: #fff;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.section-accent .section-copy,
.section-accent .eyebrow {
  color: #d7e3ff;
}

.section-accent .eyebrow {
  background: rgba(255, 255, 255, 0.12);
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 3rem;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.footer-grid > div:last-child {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================================
   12. RESPONSIVE RULES
========================================================= */
@media (max-width: 1024px) {
  .hero-grid,
  .three-col,
  .gallery,
  .split,
  .cta,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid > :first-child,
  .split > :first-child,
  .cta > :first-child,
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  /* Keep five-up team layout comfortable on medium screens */
  .team-grid.five-up {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 0.75rem;
  }

  .hero,
  .section {
    padding: 1.5rem 0 2rem;
  }

  .hero-grid,
  .three-col,
  .gallery,
  .split,
  .cta,
  .team-grid,
  .team-grid.five-up,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .video-shell {
    aspect-ratio: 16 / 9;
  }

  .video-placeholder {
    min-height: 250px;
  }

  .steps {
    padding: 1.25rem 1.25rem 1.25rem 2.3rem;
  }
}