:root {
  color-scheme: dark;
  --ink: #f4f4f4;
  --muted: #9d9d9d;
  --soft: #cfcfcf;
  --line: rgba(255, 255, 255, 0.12);
  --bg: #020202;
  --panel: #111111;
  --panel-2: #191919;
  --accent: #f2f2f2;
  --gold: #d8b15a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(2, 2, 2, 0.55), #020202 72%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 24px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1200px, calc(100% - 32px));
  min-height: 92px;
  margin: 24px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 6, 6, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 168px;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  color: var(--soft);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav a,
.nav-cta,
.button,
.filter-button,
.project-toggle,
.lightbox-close {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: #fff;
}

.nav a {
  position: relative;
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav a::after {
  display: none;
}

.nav a.is-active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 22px rgba(255, 255, 255, 0.08);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.055);
}

.nav-cta {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #222222;
  color: #fff;
  font-weight: 900;
}

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

.hero {
  display: grid;
  align-items: end;
  min-height: calc(100svh - 116px);
  padding: clamp(80px, 12vw, 150px) clamp(18px, 5vw, 72px) 36px;
}

.hero-copy {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 22px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9d9d9;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #67e8a5;
  box-shadow: 0 0 18px rgba(103, 232, 165, 0.8);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1 {
  color: #f5f5f5;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  font-weight: 900;
  text-shadow: 0 18px 36px rgba(255, 255, 255, 0.08);
}

.hero-text {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #050505;
}

.button.secondary {
  background: #202020;
  color: #fff;
}

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, 100%);
  margin: 64px auto 0;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  box-shadow: var(--shadow);
}

.showcase-item:nth-child(even) {
  margin-top: 38px;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 14, 14, 0.84);
}

.marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(1120px, calc(100% - 36px));
  margin: 22px auto 0;
}

.marquee span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 900;
}

.stats div {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: clamp(1.35rem, 3vw, 2.15rem);
}

.stats span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.section,
.contact {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.about {
  text-align: center;
}

.about h2 {
  margin-bottom: 28px;
  color: #ededed;
  font-size: clamp(4rem, 10vw, 8.3rem);
  font-weight: 400;
}

.about p {
  max-width: 920px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.7;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-note {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
}

.section h2,
.contact h2 {
  max-width: 970px;
  font-size: clamp(2.4rem, 5vw, 5.25rem);
  font-weight: 900;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111111;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
}

.filter-button[aria-pressed="true"] {
  border-color: #f0f0f0;
  background: #f0f0f0;
  color: #050505;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.project-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.86);
}

.project-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #171717;
}

.project-cover img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-card:hover .project-cover img,
.thumb:hover img,
.thumb:focus-visible img {
  transform: scale(1.035);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px 14px;
}

.project-meta h3 {
  font-size: clamp(1.12rem, 2vw, 1.55rem);
}

.project-meta span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 900;
}

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

.thumb {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 6px;
  background: #171717;
  cursor: zoom-in;
  padding: 0;
}

.project-toggle {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202020;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.capabilities {
  width: 100%;
  max-width: none;
  border-block: 1px solid var(--line);
  background: #0b0b0b;
}

.capabilities > .section-heading,
.capabilities > .capability-grid {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
}

.capability-grid article {
  min-height: 260px;
  padding: clamp(24px, 4vw, 38px);
  background: #0b0b0b;
}

.capability-grid span {
  color: var(--gold);
  font-weight: 900;
}

.capability-grid h3 {
  margin-top: 44px;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.capability-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, 100%);
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.process-strip span {
  display: grid;
  min-height: 64px;
  place-items: center;
  background: #141414;
  color: #eeeeee;
  font-weight: 900;
}

.contact {
  min-height: 58vh;
  text-align: center;
}

.contact h2 {
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 28px;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.lightbox p {
  position: absolute;
  right: 20px;
  bottom: 12px;
  left: 20px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 82px;
  }

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

  .showcase-item:nth-child(even) {
    margin-top: 0;
  }

  .section-heading,
  .project-meta {
    align-items: start;
    flex-direction: column;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .project-grid,
  .capability-grid,
  .process-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 12px;
    width: calc(100% - 20px);
    margin-top: 12px;
  }

  .brand {
    width: 130px;
  }

  .brand img {
    width: 126px;
  }

  .nav-cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .nav {
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero-showcase {
    gap: 10px;
    margin-top: 42px;
  }

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

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

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