:root {
  --bg: #0a0c10;
  --bg-elevated: #12161e;
  --bg-soft: #171c27;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ecf3;
  --muted: #9aa6b8;
  --navy: #1e3a5f;
  --navy-bright: #2f5f9a;
  --accent: #c0392b;
  --accent-soft: rgba(192, 57, 43, 0.18);
  --success: #2f8f6b;
  --error: #c0392b;
  --radius: 4px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(30, 58, 95, 0.55), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(192, 57, 43, 0.08), transparent 50%),
    linear-gradient(180deg, #0c1018 0%, var(--bg) 40%, #080a0e 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-bottom: 0.15rem;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--text) !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% 5% auto;
  height: 55%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(30, 58, 95, 0.4), transparent 65%),
    radial-gradient(ellipse at 70% 60%, rgba(192, 57, 43, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  max-width: 40rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.85s ease forwards;
}

.hero-logo {
  width: min(200px, 48vw);
  height: auto;
  margin: 0 auto 1.35rem;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55));
  animation: logo-settle 1.1s ease both;
}

.hero-brand {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.92;
}

.hero-tag {
  margin: 0 auto 1.85rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--muted);
  font-weight: 500;
  max-width: 18ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:focus-visible,
.site-nav a:focus-visible,
.form-control:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--navy-bright);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: #a83226;
}

.btn-primary:hover {
  background: #d24537;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

/* Sections */
.section {
  padding: 4.5rem 0 5rem;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-bright);
  font-weight: 600;
}

.section-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}

.section-lead {
  margin: 0;
  color: var(--muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.video-card:hover {
  transform: translateY(-3px);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.video-title {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.video-meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.empty-state {
  padding: 2.5rem 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(18, 22, 30, 0.55);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty-state p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* Page intro (inner pages) */
.page-intro {
  padding: 3rem 0 1.5rem;
}

.page-intro h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.page-intro p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

/* Forms */
.form-wrap {
  padding: 0 0 4.5rem;
}

.form-panel {
  max-width: 36rem;
}

.form-panel-wide {
  max-width: 44rem;
}

.form-stack {
  display: grid;
  gap: 1.75rem;
}

.form-block {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 1.15rem;
}

.form-block legend {
  padding: 0;
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.92rem;
  font-weight: 600;
}

.form-row .hint,
.hint-inline {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-body);
}

.req {
  color: var(--accent);
  font-weight: 700;
}

.field-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-control {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

select.form-control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9aa6b8 50%),
    linear-gradient(135deg, #9aa6b8 50%, transparent 50%);
  background-position: calc(100% - 16px) 54%, calc(100% - 11px) 54%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

textarea.form-control {
  min-height: 7rem;
  resize: vertical;
}

.form-control::placeholder {
  color: #6f7b8e;
}

.form-file {
  padding: 0.75rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.form-file::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.checkbox-row input {
  margin-top: 0.35rem;
  accent-color: var(--accent);
}

.form-assurance {
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--navy-bright);
  background: rgba(30, 58, 95, 0.22);
  color: var(--muted);
  font-size: 0.95rem;
}

.form-assurance strong {
  color: var(--text);
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.15rem;
}

.cf-turnstile {
  margin-top: 0.1rem;
}

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

.flash {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.98rem;
}

.flash-success {
  background: rgba(47, 143, 107, 0.15);
  border-color: rgba(47, 143, 107, 0.4);
}

.flash-error {
  background: rgba(192, 57, 43, 0.14);
  border-color: rgba(192, 57, 43, 0.4);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2.75rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-tag {
  margin: 0;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #6a7588;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-settle {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(10, 12, 16, 0.96);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: 0;
  }

  .header-inner {
    position: relative;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    padding-top: 3rem;
  }
}
