@font-face {
  font-family: Inter;
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

:root {
  --navy: #0b2545;
  --navy-deep: #07182d;
  --blue: #1f6fb2;
  --cyan: #4fc3f7;
  --ice: #e8f3fb;
  --paper: #f5f9fc;
  --ink: #142235;
  --muted: #4a6a8a;
  --line: #cfe2f3;
  --white: #ffffff;
  --header-h: 4.25rem;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(11, 37, 69, 0.12);
  --max: 70rem;
  --space: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 24, 45, 0.92);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(79, 195, 247, 0.16);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  flex: none;
}
.brand-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-text .uk { color: var(--cyan); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #d6e6f5;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.25rem; height: 1.25rem; flex: none; }

.btn-youtube {
  background: #e11d2e;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(225, 29, 46, 0.28);
}
.btn-youtube:hover { background: #c81827; color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(79, 195, 247, 0.28);
}
.btn-cyan:hover { background: #7ad3f9; color: var(--navy); }

.btn-small { padding: 0.55rem 0.95rem; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(36rem, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #123a66 55%, var(--blue) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 24, 45, 0.72) 0%, rgba(11, 37, 69, 0.78) 55%, rgba(7, 24, 45, 0.88) 100%),
    url("../assets/hero-photo.jpg") center 42% / cover no-repeat;
  pointer-events: none;
}

.hero-inner {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(79, 195, 247, 0.16);
  color: var(--ice);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero h1 .uk { color: var(--cyan); }

.tagline {
  margin: 0 0 0.9rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  color: var(--ice);
  letter-spacing: -0.015em;
}

.lede {
  margin: 0 auto 1.8rem;
  max-width: 36rem;
  color: #c5d8ea;
  font-size: 1.05rem;
}

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

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker-on-dark { color: var(--cyan); }

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.2rem;
}
.section-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: none;
}
.section-head-row h2 { margin-bottom: 0; }

.btn-ghost-on-light {
  color: var(--navy);
  border-color: rgba(11, 37, 69, 0.28);
}
.btn-ghost-on-light:hover {
  background: rgba(11, 37, 69, 0.06);
  color: var(--navy);
}

/* ---------- About ---------- */
.about { background: var(--paper); border-block: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.about-copy p { margin: 0 0 1rem; font-size: 1.05rem; color: #24364b; }
.about-copy p:last-child { margin-bottom: 0; }

.story-note {
  margin-top: 1.25rem;
  padding: 0.95rem 1.05rem;
  border: 1px dashed #8fb5d4;
  border-radius: 10px;
  background: #fff;
}
.story-note p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.story-tag {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--blue);
}

/* ---------- Routes ---------- */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.route-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 1px 0 rgba(11, 37, 69, 0.03);
}
.route-num {
  display: block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.55rem;
}
.route-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.route-card p { margin: 0; color: #3d5570; }
.route-link { margin-top: 0.9rem !important; font-weight: 600; font-size: 0.95rem; }
.route-link a { text-decoration: underline; text-underline-offset: 3px; }

.start-note {
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Videos ---------- */
.videos { background: var(--paper); border-block: 1px solid var(--line); }

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

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(11, 37, 69, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-body { padding: 0.95rem 1rem 1.1rem; }
.video-date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.video-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.35;
}

.videos-empty {
  text-align: center;
  padding: 3rem 1.25rem;
  background: var(--white);
  border: 1px dashed #9dbcd9;
  border-radius: var(--radius);
}
.empty-flake {
  width: 3rem;
  height: 3rem;
  color: var(--blue);
  margin: 0 auto 0.9rem;
}
.empty-title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.videos-empty p { margin: 0 auto 1.3rem; max-width: 32rem; color: var(--muted); }
.videos-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Checklist ---------- */
.checklist { padding-bottom: clamp(4rem, 8vw, 6rem); }

.checklist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
  background:
    linear-gradient(135deg, var(--navy) 0%, #123a66 60%, var(--blue) 100%);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.checklist-copy h2 { color: var(--white); }
.checklist-copy p {
  margin: 0 0 1.4rem;
  color: #d6e6f5;
  font-size: 1.05rem;
  max-width: 36rem;
}

.pdf-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  min-height: 11rem;
  padding: 1.3rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    var(--navy-deep);
  border: 1px solid rgba(79, 195, 247, 0.28);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  color: var(--white);
}
.pdf-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: auto;
}
.pdf-card strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.pdf-card span:last-child { color: #c5d8ea; }

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); border-block: 1px solid var(--line); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.gallery-grid-single {
  grid-template-columns: 1fr;
  max-width: 42rem;
  margin-inline: auto;
}

.gallery-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(11, 37, 69, 0.03);
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.gallery-item img.portrait-subject {
  object-position: center 28%;
}
.gallery-item img.lower-subject {
  object-position: center 70%;
}
.gallery-item figcaption {
  padding: 0.9rem 1.05rem 1.1rem;
  color: #3d5570;
  font-size: 0.98rem;
  line-height: 1.45;
}

/* ---------- Contact ---------- */
.contact { background: var(--white); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: 0 1px 0 rgba(11, 37, 69, 0.03);
}

.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.form-field { margin: 0 0 1rem; }
.form-field:last-of-type { margin-bottom: 0; }

.form-field label {
  display: block;
  margin: 0 0 0.4rem;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b7cfe3;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  box-shadow: inset 0 1px 0 rgba(11, 37, 69, 0.02);
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(79, 195, 247, 0.45);
  outline-offset: 0;
}

.form-actions { margin: 1.2rem 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #c5d8ea;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid rgba(79, 195, 247, 0.16);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.footer-links a {
  color: #d6e6f5;
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover { color: var(--cyan); }
.footer-links { align-items: center; }
.footer-links .btn {
  color: var(--white);
  box-shadow: none;
}
.footer-links .btn:hover {
  color: var(--white);
  transform: none;
}

.copyright {
  margin: 0;
  font-size: 0.88rem;
  color: #8aa3ba;
  text-align: right;
}

/* ---------- 404 ---------- */
.page-error {
  min-height: calc(100vh - var(--header-h) - 7rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}
.page-error h1 { color: var(--navy); margin: 0 0 0.6rem; font-size: clamp(2rem, 4vw, 3rem); }
.page-error p { color: var(--muted); margin: 0 0 1.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: 2.6rem; padding-bottom: 3rem; }
  .eyebrow {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    background: rgba(79, 195, 247, 0.16);
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    line-height: 1.45;
    text-wrap: balance;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.8rem var(--space) 1.1rem;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(79, 195, 247, 0.16);
    box-shadow: 0 16px 30px rgba(0,0,0,0.28);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { display: block; padding: 0.7rem 0.5rem; }
  .site-nav .btn { width: 100%; margin-top: 0.3rem; }

  .split,
  .route-grid,
  .videos-grid,
  .gallery-grid,
  .checklist-panel,
  .contact-layout,
  .form-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .gallery-grid-single { max-width: none; }

  .footer-inner { text-align: left; justify-items: start; }
  .footer-links { justify-content: flex-start; }
  .copyright { text-align: left; }

  .checklist-aside { display: none; }

  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
