:root {
  color-scheme: dark;
  --ink: #f6fbff;
  --muted: #a8b7c4;
  --soft: rgba(246, 251, 255, 0.72);
  --cyan: #3ee7ff;
  --green: #54ff9f;
  --amber: #ffc857;
  --coral: #ff6f61;
  --panel: rgba(8, 18, 28, 0.72);
  --panel-solid: #0b1520;
  --stroke: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 20%, rgba(62, 231, 255, 0.13), transparent 28rem),
    radial-gradient(circle at 88% 58%, rgba(255, 200, 87, 0.1), transparent 26rem),
    #050a10;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-background img,
.page-vignette {
  position: absolute;
  inset: 0;
}

.page-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  filter: saturate(1.16) contrast(1.12) brightness(1.08);
}

.page-vignette {
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.74) 0%, rgba(5, 10, 16, 0.58) 36%, rgba(5, 10, 16, 0.3) 72%),
    linear-gradient(180deg, rgba(5, 10, 16, 0.48) 0%, rgba(5, 10, 16, 0.2) 44%, rgba(5, 10, 16, 0.74) 100%);
}

.site-header,
main,
.site-footer {
  position: relative;
}

main,
.site-footer {
  z-index: 2;
}

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

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

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.22;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(4, 10, 16, 0.9), rgba(4, 10, 16, 0.44));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-cta,
.button,
.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  position: relative;
  width: 3.45rem;
  height: 3.45rem;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0.55rem;
}

.brand-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: none;
  transform: translate(-50%, -50%) scale(1.72);
}

.brand-name {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  min-height: 2.75rem;
  border: 1px solid rgba(62, 231, 255, 0.34);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  background: rgba(62, 231, 255, 0.08);
  box-shadow: inset 0 0 24px rgba(62, 231, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.button:hover,
.project-card a:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.65fr);
  gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: center;
  padding: 8rem clamp(1rem, 5vw, 4rem) 5rem;
}

.hero-content,
.hero-panel {
  width: min(100%, var(--max));
}

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

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.1rem;
  font-size: clamp(3.25rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 43rem;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #031018;
  border-color: transparent;
}

.button.ghost {
  color: var(--ink);
}

.hero-panel {
  justify-self: end;
  align-self: end;
  max-width: 31rem;
}

.terminal-card {
  border: 1px solid rgba(84, 255, 159, 0.32);
  border-radius: 8px;
  background: rgba(3, 12, 18, 0.76);
  box-shadow: var(--shadow), inset 0 0 60px rgba(84, 255, 159, 0.05);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.terminal-top {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.terminal-top span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--coral);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--green);
}

.terminal-card code {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
  color: #caffdc;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  white-space: normal;
}

.terminal-card code span {
  display: block;
  overflow-wrap: anywhere;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: -2.2rem auto 0;
  padding: 0 clamp(1rem, 3vw, 1.4rem);
  position: relative;
  z-index: 4;
}

.signal-strip div,
.project-card,
.build-flow div,
.metrics div {
  border: 1px solid var(--stroke);
  background: rgba(9, 19, 28, 0.78);
  backdrop-filter: blur(14px);
}

.signal-strip div {
  min-height: 8.5rem;
  padding: 1rem;
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.signal-strip span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section,
.capabilities,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 3vw, 1.4rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading p:last-child,
.capability-copy p,
.impact-copy p,
.contact p {
  color: var(--soft);
  font-size: 1.05rem;
}

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

.project-card {
  min-height: 19rem;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 231, 255, 0.38);
}

.project-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(62, 231, 255, 0.17), rgba(84, 255, 159, 0.08)),
    rgba(9, 19, 28, 0.8);
}

.project-card p {
  color: var(--soft);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.6rem;
  color: #08232b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.project-meta span,
.project-icon {
  border-radius: 999px;
  background: var(--green);
  padding: 0.4rem 0.65rem;
}

.project-meta span:nth-child(2) {
  background: var(--amber);
}

.project-card a {
  margin-top: 1rem;
  color: var(--green);
  font-weight: 900;
  transition: transform 180ms ease;
}

.project-icon {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  margin-bottom: 2rem;
  color: #061018;
  font-weight: 900;
}

.capabilities {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.capability-layout,
.impact,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 0.7fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: start;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.stack-list span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

.build-flow {
  display: grid;
  gap: 0.85rem;
}

.build-flow div {
  position: relative;
  border-radius: 8px;
  padding: 1rem 1rem 1rem 4.3rem;
}

.build-flow span {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--cyan);
  font-weight: 900;
}

.build-flow strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.build-flow p {
  margin-bottom: 0;
  color: var(--muted);
}

.impact {
  align-items: center;
}

.impact-copy h2 {
  max-width: 16ch;
}

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

.metrics div {
  min-height: 9rem;
  border-radius: 8px;
  padding: 1rem;
}

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

.metrics strong {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--amber);
}

.metrics span {
  margin-top: 0.7rem;
  color: var(--muted);
}

.contact {
  margin-bottom: 2rem;
  border: 1px solid rgba(62, 231, 255, 0.24);
  border-radius: 8px;
  padding: clamp(1.2rem, 5vw, 3rem);
  background:
    linear-gradient(135deg, rgba(62, 231, 255, 0.12), rgba(255, 111, 97, 0.1)),
    rgba(8, 17, 25, 0.82);
}

.contact h2 {
  max-width: 14ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-self: end;
  justify-self: end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 1.4rem) 3rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section-heading,
  .capability-layout,
  .impact,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero-panel,
  .contact-actions {
    justify-self: start;
  }

  .signal-strip,
  .work-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand-name {
    max-width: 8.5rem;
    white-space: normal;
    line-height: 1.05;
  }

  .nav-cta {
    min-height: 2.45rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero {
    padding: 7rem 1rem 3.5rem;
  }

  .page-vignette {
    background:
      linear-gradient(90deg, rgba(5, 10, 16, 0.82), rgba(5, 10, 16, 0.52)),
      linear-gradient(180deg, rgba(5, 10, 16, 0.42) 0%, rgba(5, 10, 16, 0.18) 40%, rgba(5, 10, 16, 0.78) 100%);
  }

  .signal-strip,
  .work-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .project-meta {
    margin-bottom: 1.5rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
