* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #07111f;
  color: #ffffff;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #091321;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  margin-right: 40px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.86;
  transition: 0.2s ease;
  white-space: nowrap;
  font-size: 0.9rem;
}

nav a:hover {
  opacity: 1;
}

/* GENERIC */
.section-inner {
  width: min(1280px, 92%);
  margin: 0 auto;
}

.section-kicker {
  font-size: 0.88rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #7fd0ff;
  margin-bottom: 10px;
}

.section-kicker.light {
  color: #cfe9ff;
}

.section-head h2,
.about-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

/* NEWS SECTION */
.news-section {
  background: #091321;
  padding: 0;
}

.news-stage {
  width: 100%;
  margin: 0 auto;
}

.news-main {
  --fade-color: #6f7480;

  position: relative;
  width: 100%;
  aspect-ratio: 1850 / 790;
  height: auto;
  min-height: unset;
  max-height: calc(100vh - 72px - 120px);
  overflow: hidden;
  background: var(--fade-color);
}

.news-main img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1);
  transition: opacity 0.28s ease, transform 0.35s ease;
}

.news-main.changing img {
  opacity: 0.65;
  transform: scale(1.02);
}

.news-edge-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      var(--fade-color) 0%,
      var(--fade-color) 4%,
      color-mix(in srgb, var(--fade-color) 45%, transparent) 9%,
      transparent 15%
    ),
    linear-gradient(
      270deg,
      var(--fade-color) 0%,
      var(--fade-color) 4%,
      color-mix(in srgb, var(--fade-color) 45%, transparent) 9%,
      transparent 15%
    );
}

.news-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(3, 9, 18, 0.62) 0%,
      rgba(3, 9, 18, 0.36) 24%,
      rgba(3, 9, 18, 0.06) 58%,
      rgba(3, 9, 18, 0.16) 100%
    ),
    linear-gradient(
      0deg,
      rgba(3, 9, 18, 0.35) 0%,
      transparent 50%
    );
}

.news-content {
  position: absolute;
  left: 12%;
  top: 50%;
  max-width: 560px;
  z-index: 3;
  transform: translateY(-35%);
}

.news-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d4ecff;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.news-content h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  margin-bottom: 18px;
}

.news-text {
  font-size: 1.08rem;
  color: #d7e6f3;
  margin-bottom: 24px;
  max-width: 520px;
}

.news-button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #07111f;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.news-button:hover {
  transform: translateY(-2px);
}

.news-thumbs {
  width: 100%;
  min-height: 120px;
  background: #091321;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 20px 32px 24px;
  flex-wrap: wrap;
}

.news-thumb {
  width: 220px;
  height: 124px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.news-thumb:hover {
  transform: translateY(-4px);
}

.news-thumb.active {
  border-color: #2f7df7;
  box-shadow:
    0 0 0 3px rgba(47, 125, 247, 0.28),
    0 12px 26px rgba(0, 0, 0, 0.34);
}

/* PROJECTS */
.projects-section {
  background: #f6f7fb;
  color: #0a1423;
  padding: 78px 0 96px;
}

.projects-section .section-kicker {
  color: #2c6fbf;
}

.project-icons {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 44px;
  margin-top: 36px;
}

.project-icon-card {
  width: 300px;
  text-decoration: none;
  color: #0a1423;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: 0.2s ease;
}

.project-icon-card:hover {
  transform: translateY(-5px);
}

.project-icon-wrap {
  width: 300px;
  height: 300px;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #dfeaff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 18px 34px rgba(9, 35, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.project-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-icon-card span {
  font-weight: 800;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.2;
  padding-left: 2px;
}

/* ABOUT */
.about-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #0f5cab 0%, #0b4d92 100%);
}

.about-inner {
  color: #ffffff;
}

.about-inner p {
  max-width: 820px;
  color: #e5f1ff;
  margin-top: 14px;
  font-size: 1.05rem;
}

/* FOOTER */
.site-footer {
  background: #091321;
  color: #ffffff;
  padding: 54px 0 24px;
}

.footer-inner {
  width: min(1320px, 92%);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  gap: 42px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-brand img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-column h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  margin-bottom: 9px;
}

.footer-column a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-top: 22px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.86);
}

/* LEGAL PAGES */
.legal-page {
  background: #f6f7fb;
  color: #091321;
}

.legal-hero {
  background: #ffffff;
  padding: 80px 0 56px;
}

.legal-inner {
  width: min(980px, 92%);
  margin: 0 auto;
}

.legal-hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 18px;
}

.legal-hero p {
  color: #53647c;
  font-size: 1.08rem;
}

.legal-content-section {
  padding: 56px 0 88px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid #dce6f3;
  border-radius: 30px;
  padding: 42px;
  box-shadow: 0 18px 36px rgba(9, 35, 74, 0.08);
}

.legal-card h2 {
  font-size: 1.35rem;
  margin: 30px 0 10px;
  color: #091321;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: #53647c;
  margin-bottom: 14px;
}

.legal-card a {
  color: #2f7df7;
  font-weight: 700;
  word-break: break-word;
}

.legal-card ul {
  margin: 12px 0 20px 22px;
  color: #53647c;
}

.legal-card li {
  margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .news-main {
    aspect-ratio: 1850 / 790;
    height: auto;
    min-height: unset;
    max-height: none;
  }

  .news-thumbs {
    min-height: 120px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .navbar {
    padding: 16px 20px;
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
  }

  nav {
    gap: 16px;
    flex-wrap: wrap;
    margin-right: 0;
  }

  .news-main {
    aspect-ratio: 1850 / 790;
    height: auto;
    min-height: unset;
    max-height: none;
  }

  .news-content {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 42px;
    max-width: none;
    transform: none;
  }

  .news-text {
    font-size: 1rem;
  }

  .news-thumbs {
    min-height: 120px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 18px 20px;
  }

  .news-thumb {
    min-width: 170px;
    width: 170px;
    height: 96px;
  }

  .project-icons {
    gap: 28px;
  }

  .project-icon-card {
    width: 150px;
  }

  .project-icon-wrap {
    width: 132px;
    height: 132px;
    border-radius: 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .news-main {
    aspect-ratio: 1850 / 790;
    height: auto;
    min-height: unset;
    max-height: none;
  }

  .news-content h1 {
    font-size: 2.3rem;
  }

  .news-thumbs {
    min-height: 104px;
  }

  .news-thumb {
    min-width: 138px;
    width: 138px;
    height: 78px;
    border-radius: 12px;
  }

  .projects-section,
  .about-section,
  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .project-icons {
    flex-direction: column;
  }

  .project-icon-card {
    width: 100%;
  }

  .project-icon-wrap {
    width: 118px;
    height: 118px;
    border-radius: 26px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-card {
    padding: 28px 22px;
    border-radius: 24px;
  }
}