:root {
  --bg: #0b1220;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --text: #18212f;
  --muted: #5f6b7a;
  --line: #d9e0ea;
  --primary: #125a94;
  --primary-dark: #0c416b;
  --accent: #e8f2fb;
  --shadow: 0 12px 32px rgba(14, 29, 52, 0.10);
  --radius: 20px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.65;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0b1220;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 14, 27, 0.82) 0%,
    rgba(7, 14, 27, 0.58) 42%,
    rgba(7, 14, 27, 0.78) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 2rem;
  align-items: center;
  padding: 5rem 0;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(232, 242, 251, 0.95);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1,
.section h2 {
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.02em;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.lead,
.section-intro {
  font-size: 1.07rem;
  max-width: 760px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

.btn-primary {
  background: #fff;
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* About downloads */
.about-downloads {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.download-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #0f4c81;
  background: #0f4c81;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1;
  transition: 0.22s ease;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.18);
}

.download-chip:hover {
  background: #0b3559;
  border-color: #0b3559;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Shared cards */
.info-card,
.project-card,
.contact-card,
.gallery-page-grid figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Content sections */
.muted-section {
  background: var(--surface-2);
}

.two-col,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.info-card,
.contact-card {
  padding: 1.4rem;
}

.section-intro {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.tags span {
  padding: 0.55rem 0.8rem;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-body {
  padding: 1.25rem;
}

.project-body h3 {
  margin: 0 0 0.75rem;
}

.project-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.82rem 1.05rem;
  border-radius: 14px;
  border: 1px solid #0f4c81;
  background: #eef5fb;
  color: #0f4c81;
  font-weight: 700;
  transition: 0.22s ease;
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.10);
}

.project-link-btn:hover {
  background: #0f4c81;
  color: #ffffff;
  border-color: #0f4c81;
  transform: translateY(-1px);
}

/* Gallery pages */
.gallery-page-header {
  padding: 3rem 0 1.5rem;
}

.gallery-page-header p {
  color: var(--muted);
  max-width: 760px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-bottom: 4rem;
}

.gallery-page-grid figure {
  margin: 0;
  overflow: hidden;
}

.gallery-page-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-page-grid figcaption {
  padding: 0.8rem 0.95rem;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Project videos */
.project-video-wrap {
  margin-top: 1.25rem;
}

.project-video-box {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Contact */
.contact-card {
  display: grid;
  gap: 0.9rem;
}

.contact-card a,
.contact-card span {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.contact-card a:hover {
  border-color: #bfd0e3;
  background: #f9fbfe;
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: rgba(255, 255, 255, 0.8);
  padding: 1.3rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1000px) {
  .project-grid,
  .gallery-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .project-video-box {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .nav-wrap {
    padding: 0.8rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

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

  .section {
    padding: 4rem 0;
  }

  .hero-grid {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .btn,
  .download-chip,
  .project-link-btn {
    width: 100%;
  }

  .project-video-box {
    max-width: 100%;
  }
}
