:root {
  --bg: #02050a;
  --panel: rgba(8, 15, 25, 0.91);
  --panel-soft: rgba(10, 21, 35, 0.72);
  --text: #f4f8fc;
  --muted: #9cacbd;
  --cyan: #64dcff;
  --blue: #2e86ff;
  --orange: #ff9f43;
  --red: #ff5f5f;
  --line: rgba(113, 204, 255, 0.25);
  --radius: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 18%, rgba(43, 133, 205, 0.16), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.015) 50%, transparent 50%);
  background-size: auto, 100% 4px;
}

a {
  color: inherit;
}

.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-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 11, 0.82);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  color: var(--text);
  font-size: clamp(0.88rem, 1.7vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(100, 220, 255, 0.28));
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.7rem, 1.5vw, 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;
  transition: color 160ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--cyan);
  outline: none;
}

.menu-toggle {
  display: none;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: rgba(8, 18, 30, 0.9);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(285px, 0.55fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: min(760px, calc(100vh - 76px));
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.project-visual img {
  width: 50%;
  height: 50%;
  display: block;
  object-fit: cover;
}

.project-visual2 img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.2rem, 8.5vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 218, 255, 0.95);
  text-shadow: 0 0 34px rgba(56, 172, 255, 0.2);
}

.intro {
  max-width: 760px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions,
.now-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  border-color: rgba(100, 220, 255, 0.7);
  background: linear-gradient(135deg, rgba(34, 140, 201, 0.82), rgba(28, 83, 147, 0.82));
  box-shadow: 0 0 28px rgba(46, 134, 255, 0.16);
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(46, 160, 221, 0.95), rgba(34, 102, 170, 0.95));
}

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

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--cyan);
  background: rgba(25, 75, 107, 0.58);
}

.site-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

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

.site-summary span {
  color: var(--orange);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.site-summary strong {
  font-size: 0.96rem;
}

.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));
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1.6rem;
}

.section-number {
  min-width: 2.4ch;
  margin: -0.1rem 0 0;
  color: rgba(100, 220, 255, 0.26);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.section-intro,
.about-copy p,
.now-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.section-intro {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.about-grid,
.now-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.8fr);
  gap: 2rem;
}

.about-copy p:last-child,
.now-grid p:last-child {
  margin-bottom: 0;
}

.principles {
  display: grid;
  gap: 0.75rem;
}

.principles article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.principles article > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--orange);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.principles strong {
  display: block;
  margin-bottom: 0.4rem;
}

.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

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

.discipline-card {
  min-height: 235px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 16, 27, 0.76);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.discipline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 220, 255, 0.58);
  background: rgba(11, 26, 43, 0.86);
}

.card-code {
  display: inline-flex;
  margin-bottom: 2.2rem;
  padding: 0.35rem 0.48rem;
  border: 1px solid rgba(255, 159, 67, 0.38);
  border-radius: 5px;
  color: var(--orange);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.discipline-card h3,
.featured-copy h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.discipline-card p,
.featured-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.featured-grid {
  display: grid;
  gap: 1rem;
}

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

.project-visual {
  min-height: 275px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(46, 134, 255, 0.12), rgba(255, 95, 95, 0.06)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(100, 220, 255, 0.045) 47px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(100, 220, 255, 0.045) 47px),
    #030811;
}

.visual-label {
  max-width: 250px;
  padding: 1rem;
  border: 1px dashed rgba(100, 220, 255, 0.42);
  border-radius: 10px;
  text-align: center;
}

.visual-label span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.visual-label strong {
  font-size: 0.95rem;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.project-type {
  margin-bottom: 0.7rem !important;
  color: var(--cyan) !important;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.featured-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.featured-copy .text-link {
  align-self: flex-start;
  margin-top: 1.25rem;
}

.text-link {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.text-link:hover,
.text-link:focus-visible {
  color: var(--cyan);
  outline: none;
}

.now-grid {
  align-items: center;
}

.now-actions {
  justify-content: flex-end;
}

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

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

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

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

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

  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.5rem;
  }

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

  .site-header nav a {
    padding: 0.8rem 0.2rem;
    border-top: 1px solid rgba(113, 204, 255, 0.12);
  }

  .hero,
  .about-grid,
  .now-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 5rem 0;
  }

  .site-summary {
    max-width: 620px;
  }

  .discipline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .site-header {
    min-height: 66px;
    padding-inline: 0.75rem;
  }

  .brand {
    gap: 0.55rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .brand-logo {
    width: 37px;
    height: 37px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5.3rem);
  }

  .content-section {
    padding: 1rem;
    border-radius: 16px;
  }

  .section-heading {
    gap: 0.85rem;
  }

  .section-number {
    font-size: 2.7rem;
  }

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

  .discipline-card {
    min-height: 0;
  }

  .card-code {
    margin-bottom: 1.25rem;
  }

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

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

  .now-actions {
    justify-content: flex-start;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }


  .button,
  .discipline-card {
    transition: none;
  }
}
