:root {
  color-scheme: dark;
  --bg: #071016;
  --bg-soft: #0d1b24;
  --panel: #122532;
  --panel-strong: #182f3d;
  --text: #edf7fb;
  --muted: #a9bbc5;
  --line: rgba(207, 232, 241, 0.16);
  --cyan: #38d7ff;
  --green: #67e69d;
  --amber: #f2b15e;
  --shadow: rgba(0, 0, 0, 0.42);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(7, 16, 22, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(56, 215, 255, 0.55);
  background: linear-gradient(135deg, rgba(56, 215, 255, 0.2), rgba(103, 230, 157, 0.18));
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 22, 0.98) 0%, rgba(7, 16, 22, 0.86) 32%, rgba(7, 16, 22, 0.24) 72%),
    linear-gradient(0deg, rgba(7, 16, 22, 0.72), rgba(7, 16, 22, 0.04) 48%),
    url("assets/hero-workspace.png") center right / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 32px 84px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 740px;
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: 36px;
  line-height: 1.12;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.22;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

button.button {
  font: inherit;
  cursor: pointer;
}

.button.primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #041016;
}

.button.secondary {
  background: rgba(237, 247, 251, 0.06);
  color: var(--text);
}

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

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 78px 32px;
}

.section-heading {
  margin-bottom: 34px;
}

.service-band {
  width: 100%;
  max-width: none;
  padding-left: max(32px, calc((100% - var(--max)) / 2 + 32px));
  padding-right: max(32px, calc((100% - var(--max)) / 2 + 32px));
  background: #0b1821;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-item,
.principle,
.contact-panel {
  border: 1px solid var(--line);
  background: rgba(18, 37, 50, 0.78);
  border-radius: 8px;
  box-shadow: 0 18px 54px var(--shadow);
}

.service-item {
  min-height: 242px;
  padding: 26px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 8px;
  background: rgba(103, 230, 157, 0.12);
  color: var(--green);
  font-weight: 800;
}

.service-item p,
.principle p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: start;
}

.principles {
  display: grid;
  gap: 14px;
}

.principle {
  padding: 22px;
}

.principle strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.projects-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.project-item {
  position: relative;
  min-height: 336px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 18px 54px var(--shadow);
}

.featured-project {
  background:
    linear-gradient(135deg, rgba(56, 215, 255, 0.22), transparent 52%),
    linear-gradient(180deg, rgba(18, 37, 50, 0.92), rgba(7, 16, 22, 0.92));
}

.featured-project::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(103, 230, 157, 0.24);
  border-radius: 8px;
  pointer-events: none;
}

.extension-project {
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(103, 230, 157, 0.14), transparent 55%),
    var(--panel);
}

.project-copy {
  position: relative;
  z-index: 1;
  padding: 30px;
}

.project-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-copy p {
  max-width: 700px;
  font-size: 18px;
  color: var(--muted);
}

.project-icon {
  display: flex;
  justify-content: center;
  padding-right: 28px;
}

.project-icon img {
  width: 172px;
  height: 172px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 24px 42px rgba(56, 215, 255, 0.18));
}

.contact-section {
  padding-bottom: 88px;
}

.contact-panel {
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(56, 215, 255, 0.09), transparent 45%),
    var(--panel-strong);
}

.contact-panel p {
  max-width: 760px;
  margin-top: 16px;
  font-size: 18px;
}

.contact-panel .button {
  margin-top: 28px;
}

.noscript-contact {
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 22px;
  }

  .site-nav {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(7, 16, 22, 0.98), rgba(7, 16, 22, 0.76)),
      linear-gradient(0deg, rgba(7, 16, 22, 0.72), rgba(7, 16, 22, 0.12)),
      url("assets/hero-workspace.png") center right / cover no-repeat;
  }

  .hero-content,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .service-grid,
  .split-section,
  .project-grid,
  .extension-project {
    grid-template-columns: 1fr;
  }

  .project-item {
    min-height: 0;
  }

  .project-icon {
    justify-content: flex-start;
    padding: 0 30px 30px;
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding-top: 54px;
    padding-bottom: 62px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-copy,
  .project-copy p,
  .contact-panel p {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .service-item,
  .principle,
  .contact-panel {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 22px;
  }
}
