:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f4f6f3;
  background: #080b0a;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #080b0a;
  --panel: #0e1210;
  --panel-2: #131815;
  --text: #f4f6f3;
  --muted: #a0aaa4;
  --quiet: #6f7a74;
  --line: rgba(224, 255, 236, 0.13);
  --line-strong: rgba(224, 255, 236, 0.24);
  --lime: #c8ff5b;
  --mint: #63efb3;
  --blue: #7595ff;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(200, 255, 91, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 91, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 83% 8%, rgba(117, 149, 255, 0.14), transparent 25rem),
    radial-gradient(circle at 12% 24%, rgba(99, 239, 179, 0.08), transparent 28rem),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  overflow: hidden;
}

.site-header,
main,
footer {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: grid;
  min-height: 92px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(200, 255, 91, 0.55);
  background: rgba(200, 255, 91, 0.07);
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  transform: rotate(-4deg);
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}

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

.header-action {
  justify-self: end;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.header-action:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.eyebrow > span {
  width: 1.7rem;
  height: 1px;
  background: currentColor;
}

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

h1 {
  max-width: 10.2ch;
  margin-bottom: 1.7rem;
  font-size: clamp(3.7rem, 8.5vw, 7.25rem);
  font-weight: 760;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.hero-lede {
  max-width: 43rem;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--lime);
  color: #0a0d0b;
}

.button-primary:hover {
  background: #d6ff82;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--mint);
}

.system-board {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(117, 149, 255, 0.08), transparent 38%),
    rgba(14, 18, 16, 0.94);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.35);
}

.system-board::before,
.system-board::after {
  position: absolute;
  width: 14px;
  height: 14px;
  content: "";
}

.system-board::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--lime);
  border-left: 2px solid var(--lime);
}

.system-board::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
}

.board-topline,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--quiet);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--mint);
}

.live-indicator i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0.75rem rgba(99, 239, 179, 0.75);
}

.system-flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  align-items: center;
  padding: 2.5rem 0;
}

.flow-node {
  display: grid;
  min-height: 132px;
  align-content: center;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.flow-node > span {
  margin-bottom: 0.85rem;
  color: var(--blue);
  font-size: 0.63rem;
  font-weight: 900;
}

.flow-node strong,
.flow-node small {
  display: block;
}

.flow-node strong {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.flow-node small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.flow-node.is-accent {
  border-color: rgba(200, 255, 91, 0.45);
  background: rgba(200, 255, 91, 0.06);
}

.flow-node.is-accent > span {
  color: var(--lime);
}

.flow-line {
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--mint), var(--line));
}

.board-output {
  padding: 1.2rem;
  border-left: 2px solid var(--lime);
  background: rgba(200, 255, 91, 0.055);
}

.board-output span,
.board-output strong {
  display: block;
}

.board-output span {
  margin-bottom: 0.45rem;
  color: var(--lime);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.board-output strong {
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.capability-strip > div {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.6rem;
  border-right: 1px solid var(--line);
}

.capability-strip > div:last-child {
  border-right: 0;
}

.capability-strip span {
  grid-row: 1 / 3;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 900;
}

.capability-strip strong {
  font-size: 0.85rem;
}

.capability-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.work-section,
.principles-section,
.about-section,
.contact-section {
  padding: clamp(5rem, 11vw, 9rem) 0;
  scroll-margin-top: 2rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading > p,
.principles-intro > p:last-child,
.about-section > div > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.work-card {
  min-height: 360px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  background: rgba(14, 18, 16, 0.88);
}

.work-card.featured-card {
  grid-row: span 2;
  min-height: 736px;
  background:
    radial-gradient(circle at 85% 88%, rgba(99, 239, 179, 0.13), transparent 18rem),
    linear-gradient(145deg, rgba(200, 255, 91, 0.055), transparent 42%),
    rgba(14, 18, 16, 0.94);
}

.status {
  padding: 0.38rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--quiet);
  letter-spacing: 0.1em;
}

.status-live {
  border-color: rgba(99, 239, 179, 0.3);
  background: rgba(99, 239, 179, 0.07);
  color: var(--mint);
}

.status-active {
  border-color: rgba(117, 149, 255, 0.38);
  background: rgba(117, 149, 255, 0.08);
  color: var(--blue);
}

.work-card h3 {
  max-width: 13ch;
  margin: clamp(3rem, 8vw, 6rem) 0 1.2rem;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 0.98;
}

.work-card:not(.featured-card) h3 {
  margin-top: 2.5rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.work-card > p {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.7;
}

.work-card ul {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.work-card li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: #d8dfdb;
  font-size: 0.84rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  color: var(--lime);
  font-size: 0.85rem;
  font-weight: 850;
  text-decoration: none;
}

.card-link:hover span {
  transform: translateX(4px);
}

.card-link span {
  transition: transform 150ms ease;
}

.card-note {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.75rem;
  line-height: 1.55;
}

.principles-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 9vw, 9rem);
  border-top: 1px solid var(--line);
}

.principles-intro h2 {
  margin-bottom: 1.5rem;
}

.principles-list {
  border-top: 1px solid var(--line);
}

.principles-list article {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.principles-list article > span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
}

.principles-list h3 {
  margin-bottom: 0.55rem;
}

.principles-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.about-section {
  display: grid;
  grid-template-columns: 0.45fr 1.3fr auto;
  gap: 3rem;
  align-items: end;
  border-top: 1px solid var(--line);
}

.about-section .eyebrow {
  align-self: start;
}

.about-section h2 {
  margin-bottom: 1.5rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 9vw, 9rem);
  border-top: 1px solid var(--line);
}

.contact-heading h2 {
  max-width: 11ch;
}

.contact-copy > p {
  max-width: 37rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.contact-links {
  border-top: 1px solid var(--line);
}

.contact-links a {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 82px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-links a:hover strong,
.contact-links a:hover i {
  color: var(--lime);
}

.contact-links span {
  color: var(--quiet);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-links strong {
  font-size: clamp(1rem, 2vw, 1.35rem);
  transition: color 150ms ease;
}

.contact-links i {
  color: var(--mint);
  font-style: normal;
  transition: color 150ms ease, transform 150ms ease;
}

.contact-links a:hover i {
  transform: translate(3px, -3px);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: end;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 1rem;
}

footer > div:first-child > p,
.footer-note {
  margin-bottom: 0;
  color: var(--quiet);
  font-size: 0.72rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-note {
  justify-self: end;
  max-width: 28rem;
  text-align: right;
}

.button:focus-visible,
.site-nav a:focus-visible,
.header-action:focus-visible,
.card-link:focus-visible {
  outline: 3px solid rgba(200, 255, 91, 0.25);
  outline-offset: 3px;
}

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

  .site-nav {
    display: none;
  }

  .hero,
  .section-heading,
  .principles-section,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 3rem;
  }

  .system-board {
    max-width: 700px;
  }

  .about-section .button {
    justify-self: start;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 1.5rem, var(--max));
  }

  .site-header {
    min-height: 76px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-action {
    padding: 0.55rem 0.65rem;
    font-size: 0.7rem;
  }

  .hero {
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(3.3rem, 17vw, 5.25rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .system-flow {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .flow-line {
    width: 1px;
    height: 20px;
    margin-inline: auto;
  }

  .flow-node {
    min-height: 100px;
  }

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

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

  .capability-strip > div:last-child {
    border-bottom: 0;
  }

  .work-card.featured-card {
    grid-row: auto;
    min-height: 620px;
  }

  .work-card {
    min-height: auto;
  }

  .work-card h3,
  .work-card:not(.featured-card) h3 {
    margin-top: 3rem;
  }

  .about-section,
  .contact-section,
  footer {
    gap: 2rem;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-note {
    grid-column: auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .contact-links a {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 1rem;
  }

  .contact-links span {
    grid-column: 1 / -1;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
