:root {
  --bg: #05101b;
  --bg-deep: #02070d;
  --panel: rgba(7, 26, 39, 0.54);
  --panel-hover: rgba(9, 36, 52, 0.76);
  --text: #eef8fb;
  --muted: #7892a2;
  --line: rgba(159, 211, 224, 0.12);
  --cyan: #58e6e6;
  --cyan-soft: rgba(88, 230, 230, 0.16);
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 68% 30%, rgba(20, 127, 150, 0.12), transparent 31%),
    linear-gradient(180deg, #081725 0%, var(--bg) 49%, var(--bg-deep) 100%);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.ambient-a {
  width: 620px;
  height: 620px;
  top: 4%;
  right: -9%;
  background: rgba(0, 181, 204, 0.085);
}

.ambient-b {
  width: 420px;
  height: 420px;
  left: -12%;
  top: 44%;
  background: rgba(24, 87, 122, 0.075);
}

.topbar,
.hero,
.lab-section,
footer {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.brand-mark {
  position: relative;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(88, 230, 230, 0.42);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark span {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 1px;
  background: var(--cyan);
}

.brand-mark::before {
  top: 10px;
  transform: rotate(-8deg);
}

.brand-mark span {
  top: 15px;
  opacity: 0.55;
  transform: rotate(9deg);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7f9aa8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(88, 230, 230, 0.75);
}

.hero {
  min-height: calc(100vh - 98px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
  padding: 96px 0 120px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(62px, 7.7vw, 124px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: #8ea5b3;
}

.intro {
  max-width: 550px;
  margin: 38px 0 0;
  color: #8ba1ae;
  font-size: 17px;
  line-height: 1.75;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  margin-top: 42px;
  padding: 16px 18px 16px 20px;
  border: 1px solid rgba(88, 230, 230, 0.28);
  background: rgba(88, 230, 230, 0.04);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 230, 230, 0.56);
  background: rgba(88, 230, 230, 0.08);
}

.cta-arrow {
  color: var(--cyan);
  font-size: 16px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.sonar {
  position: absolute;
  top: 50%;
  left: 53%;
  width: min(34vw, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(88, 230, 230, 0.08);
  border-radius: 50%;
}

.sonar::before,
.sonar::after {
  content: "";
  position: absolute;
  background: rgba(88, 230, 230, 0.08);
}

.sonar::before {
  left: 50%;
  top: -9%;
  bottom: -9%;
  width: 1px;
}

.sonar::after {
  top: 50%;
  left: -9%;
  right: -9%;
  height: 1px;
}

.sonar-ring {
  position: absolute;
  border: 1px solid rgba(88, 230, 230, 0.1);
  border-radius: 50%;
}

.ring-1 {
  inset: 16%;
}

.ring-2 {
  inset: 32%;
}

.ring-3 {
  inset: 44%;
}

.sonar-core {
  position: absolute;
  width: 7px;
  height: 7px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 12px rgba(88, 230, 230, 0.78),
    0 0 42px rgba(88, 230, 230, 0.3);
}

.sonar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 316deg,
    rgba(88, 230, 230, 0.025) 316deg,
    rgba(88, 230, 230, 0.15) 357deg,
    rgba(88, 230, 230, 0.34) 360deg
  );
  animation: sweep 9s linear infinite;
  mask-image: radial-gradient(circle, transparent 0 9%, black 10%);
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.depth-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.depth-label span {
  color: #597281;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.depth-label strong {
  color: #9eb4c0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.depth-1 {
  left: 3%;
  bottom: 17%;
}

.depth-2 {
  right: 1%;
  top: 16%;
  text-align: right;
}

.lab-section {
  padding: 80px 0 130px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin: 0;
}

.section-note {
  max-width: 390px;
  margin: 0;
  color: #708896;
  font-size: 13px;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 25px 27px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    transform 200ms ease,
    background 200ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  background: var(--panel-hover);
}

.project-top,
.project-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.project-index,
.project-state {
  color: #657f8d;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.project-state {
  color: var(--cyan);
}

.project-state-muted {
  color: #718794;
}

.project-bottom {
  align-items: flex-end;
}

.project-card h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.project-card p {
  margin: 0;
  color: #718a98;
  font-size: 12px;
}

.project-arrow {
  color: var(--cyan);
  font-size: 18px;
  transform: translate(-2px, -2px);
  transition: transform 180ms ease;
}

.project-card:hover .project-arrow {
  transform: translate(2px, -6px);
}

footer {
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #4e6878;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 110px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .sonar {
    width: min(68vw, 430px);
  }

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

  .project-card {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero,
  .lab-section,
  footer {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .topbar {
    height: 78px;
  }

  .status span:last-child {
    display: none;
  }

  .hero {
    padding: 82px 0 88px;
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(52px, 18vw, 82px);
  }

  .intro {
    margin-top: 28px;
    font-size: 15px;
  }

  .cta {
    margin-top: 34px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .sonar {
    left: 50%;
    width: min(82vw, 350px);
  }

  .depth-1 {
    left: 0;
  }

  .depth-2 {
    right: 0;
  }

  .lab-section {
    padding: 64px 0 88px;
  }

  .section-heading {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .project-card {
    min-height: 210px;
  }

  footer {
    min-height: 110px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

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

  .sonar-sweep {
    animation: none;
  }

  .cta,
  .project-card,
  .project-arrow {
    transition: none;
  }
}
