:root {
  --bg: #070b14;
  --bg-soft: #0d1422;
  --panel: rgba(12, 19, 32, 0.72);
  --panel-strong: rgba(16, 25, 42, 0.92);
  --text: #f8fbff;
  --muted: #a7b2c2;
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ff8a24;
  --cyan: #39d4ff;
  --green: #76f0a4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 138, 36, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(57, 212, 255, 0.16), transparent 26rem),
    linear-gradient(135deg, #070b14 0%, #0e1724 48%, #090d16 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

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

.orbital-field {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.cursor-light {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 138, 36, 0.16), transparent 66%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header[data-state="scrolled"] {
  background: rgba(7, 11, 20, 0.92);
  box-shadow: var(--shadow);
}

.brand-mark,
.site-nav,
.hero-actions,
.contact-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark img {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.65rem;
  object-fit: cover;
}

.site-nav {
  gap: 0.35rem;
}

.site-nav a {
  min-height: 2.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, 0.88fr) minmax(18rem, 1.12fr);
  grid-template-areas:
    "media copy"
    "media status";
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 1.25rem;
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100vh - 5rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0 5rem;
}

.hero-media {
  grid-area: media;
  position: relative;
  isolation: isolate;
  transform-style: preserve-3d;
}

.hero-copy {
  grid-area: copy;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transform: translateZ(-1px);
  animation: spinRing 12s linear infinite;
}

.hero-media img {
  width: min(27rem, 84vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.15rem;
  object-fit: cover;
  box-shadow: var(--shadow);
}

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

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

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.86;
}

h2 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 5.5vw, 4.6rem);
  line-height: 0.95;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.hero-lead,
.intro > p {
  max-width: 43rem;
  color: #d5dce7;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(255, 138, 36, 0.9);
  color: #130b04;
  background: linear-gradient(135deg, var(--orange), #ffd36b);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.07);
}

.hero-status {
  grid-area: status;
  display: grid;
  grid-template-columns: repeat(3, minmax(7rem, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.hero-status div,
.service-card,
.project-card,
.project-panel,
.contact-band {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-status div {
  padding: 1rem;
  border-radius: 0.7rem;
}

.hero-status strong {
  display: block;
  color: var(--green);
  font-size: 1.7rem;
}

.hero-status span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.service-grid,
.project-list {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  min-height: 23rem;
  padding: 1.4rem;
  border-radius: 0.8rem;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 1.4rem 1.4rem;
  height: 0.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--cyan), var(--green));
}

.service-index,
.project-card span,
.project-panel p:first-child {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 3.8rem 0 1rem;
}

.service-card p,
.project-card p,
.project-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.service-card a,
.project-card a {
  position: absolute;
  left: 1.4rem;
  bottom: 2.4rem;
  color: var(--orange);
  font-weight: 850;
}

.project-stage {
  display: grid;
  grid-template-columns: 1fr 21rem;
  gap: 1rem;
  align-items: start;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.2rem;
  min-height: 13rem;
  padding: 0.85rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.project-card:hover,
.project-card.is-active {
  border-color: rgba(255, 138, 36, 0.7);
  background: var(--panel-strong);
}

.project-card img {
  width: 12rem;
  height: 100%;
  min-height: 11rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.project-card a {
  position: static;
}

.project-panel {
  position: sticky;
  top: 6.5rem;
  min-height: 20rem;
  padding: 1.4rem;
  border-radius: 0.8rem;
}

.project-panel h3 {
  margin-top: 4rem;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 0.9rem;
}

.contact-band h2 {
  max-width: 12ch;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
}

.footer-links {
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--orange);
}

@keyframes spinRing {
  from {
    transform: rotate(0deg) translateZ(-1px);
  }
  to {
    transform: rotate(360deg) translateZ(-1px);
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .intro,
  .project-stage {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "media"
      "copy"
      "status";
    padding-top: 3rem;
  }

  .hero-status {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1.5rem;
  }

  .section-heading {
    display: block;
  }

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

  .service-card {
    min-height: 18rem;
  }

  .project-panel {
    position: relative;
    top: auto;
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    margin-top: 0.65rem;
    padding: 0.6rem;
  }

  .brand-mark img {
    width: 2.55rem;
    height: 2.55rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    padding-inline: 0.65rem;
  }

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

  .hero-status {
    margin-top: 1.25rem;
  }

  .hero {
    gap: 1.4rem;
    min-height: auto;
    padding: 3rem 0 3.4rem;
  }

  .hero-media img {
    width: min(18rem, 74vw);
    margin-inline: auto;
  }

  .hero-copy {
    margin-top: 0.2rem;
  }

  .hero-actions {
    gap: 0.65rem;
  }

  .button {
    min-height: 2.75rem;
    padding: 0.72rem 0.9rem;
  }

  .project-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

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

  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
  }
}
