:root {
  --bg: #0b1020;
  --bg-soft: #111a33;
  --card: #121c37;
  --text: #edf2ff;
  --muted: #b3c0e3;
  --line: #2a3863;
  --accent: #6aa3ff;
  --accent-2: #8a6dff;
  --radius: 18px;
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: #060b18;
  color: var(--text);
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 16:9 cover: whichever dimension is larger wins */
  width: 100vw;
  height: 56.25vw; /* 100vw / 16 * 9 */
  min-height: 100%;
  min-width: 355.56vh; /* 200vh / 9 * 16 */
  transform: translate(-50%, -50%);
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  background: linear-gradient(
      to bottom,
      rgba(4, 8, 18, 0.42) 0%,
      rgba(4, 8, 18, 0.56) 55%,
      rgba(4, 8, 18, 0.72) 100%
    ),
    radial-gradient(circle at top right, rgba(41, 73, 142, 0.22) 0%, rgba(6, 11, 24, 0.15) 48%);
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 32, 0.78);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.nav a:hover,
.social-links a:hover {
  color: var(--text);
}

.hero {
  padding: 32px 0 24px;
}

.hero-inner {
  max-width: 760px;
  text-align: center;
}

.hero-logo {
  width: 50vw;
  max-width: 600px;
  height: auto;
  margin: 0 auto 4px;
  display: block;
  object-fit: contain;
}

.hero-inner h1 {
  margin: 0 0 16px;
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

h1 {
  margin: 0;
  line-height: 1.12;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 34px 0 56px;
}

.section-muted {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 33, 0.36);
}

.section-head h2,
.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.section-head p,
.section p,
.muted,
.project-subtitle {
  color: var(--muted);
}

.projects-grid {
  margin-top: 20px;
  display: grid;
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: none;
}

.project-card-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
}

.project-featured {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content h3 {
  margin: 0;
  font-size: 1.35rem;
}

.project-subtitle {
  margin-top: 6px;
}

.project-content p {
  line-height: 1.55;
}

.project-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 12px;
}

.project-details h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.project-details p {
  margin: 0 0 8px;
}

.project-specs {
  margin: 6px 0 12px;
  padding-left: 18px;
  color: var(--muted);
}

.project-specs li {
  margin-bottom: 6px;
}

.description-images {
  display: flex;
  gap: 12px;
  margin: 16px 0 24px;
  flex-wrap: wrap;
}

.description-image {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  min-width: 280px;
}

.description-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.thumb-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(52px, 1fr));
  gap: 8px;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.thumb.active {
  outline: 2px solid var(--accent);
}

.thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 18px;
}

.zod-page {
  margin-top: 18px;
}

.zod-title {
  margin: 0 0 10px;
  line-height: 1.2;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.zod-main-image {
  display: block;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.zod-main-image img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.3);
}

.zod-details-open {
  margin-top: 18px;
}

.project-card-announcement {
  text-align: center;
  padding: 28px 24px 32px;
}

.announcement-title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

.announcement-subtitle {
  margin: 0 0 14px;
}

.announcement-desc {
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
  color: var(--muted);
}

.announcement-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 520px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.contact-email {
  color: var(--accent);
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-field input,
.contact-field textarea {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--accent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 14px;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 16px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    min-height: 220px;
  }

  .description-images {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .nav {
    gap: 10px;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 52px;
  }
}
