:root {
  --bg: #02050a;
  --text: #f4f8fc;
  --muted: #9cacbd;
  --cyan: #64dcff;
  --orange: #ff9f43;
  --line: rgba(113, 204, 255, 0.25);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(1, 4, 8, 0.48), rgba(1, 4, 8, 0.8)),
    url("images/stars_background.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.75rem max(1rem, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 11, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  gap: 1.2rem;
}

.site-header nav a {
  color: #b8c8d9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a.current {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: #08121e;
  font-weight: 900;
  text-transform: uppercase;
}

/* Main layout */

main,
footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: auto;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 5rem;
  align-items: center;
  min-height: min(700px, calc(100vh - 76px));
  padding: 5rem 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 218, 255, 0.95);
}

.intro,
.section-intro,
.project-copy p,
.feature-row p {
  color: var(--muted);
  line-height: 1.7;
}

.intro {
  max-width: 720px;
  font-size: 1.12rem;
}

/* Hero summary */

.summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.summary div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  background: rgba(7, 16, 27, 0.94);
}

.summary span,
.project-type {
  color: var(--orange);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

/* Content sections */

.content-section {
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 3.6vw, 2.7rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(9, 18, 30, 0.95),
      rgba(4, 9, 16, 0.91)
    );
}

.section-heading {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-number {
  margin: 0;
  color: rgba(100, 220, 255, 0.26);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.85;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

/* Project cards */

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

.project-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(7, 16, 27, 0.8);
}

.project-image {
  min-height: 260px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #030811;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
}

.project-copy h3 {
  margin: 0.45rem 0 0.65rem;
  font-size: 1.35rem;
}

.text-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  color: var(--cyan);
}

/* Feature rows */

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.feature-row h3 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

/* Buttons */

.button {
  display: inline-flex;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary {
  background:
    linear-gradient(
      135deg,
      rgba(34, 140, 201, 0.82),
      rgba(28, 83, 147, 0.82)
    );
}

.secondary {
  background: rgba(8, 18, 30, 0.76);
}

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 2.5rem;
  color: #718296;
  font-size: 0.76rem;
}

.footer-brand {
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
}

footer p {
  margin: 0;
  text-align: right;
}

/* Tablet */

@media (max-width: 950px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
  }

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

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }

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

/* Mobile */

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  main,
  footer {
    width: calc(100% - 1rem);
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-row,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer p {
    text-align: left;
  }
}

.feature-project {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: stretch;
  gap: 2rem;
}

.feature-project-image {
  display: block;
  min-height: 260px;
  overflow: hidden;
  border-radius: 4px;
}

.feature-project-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-project-image:hover img {
  transform: scale(1.03);
}

.feature-project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.feature-project-copy .button {
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .feature-project {
    grid-template-columns: 1fr;
  }

  .feature-project-image,
  .feature-project-image img {
    min-height: 220px;
  }
}
