:root {
  --ink: #010302;
  --panel: #050a08;
  --line: #1a2924;
  --muted: #8f9b96;
  --paper: #f3f4ec;
  --lime: #b8ff16;
  --cyan: #20e0d0;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(1, 3, 2, .94);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: .08em;
}
header .brand,
header nav {
  color: var(--paper);
}
.brand b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 11px;
}
nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 14px;
}
nav a {
  transition: color .2s ease, border-color .2s ease;
}
nav a:hover,
nav a:focus-visible {
  color: var(--cyan);
}
.outline {
  border: 1px solid #35433e;
  padding: 12px 18px;
}
header .outline { border-color: rgba(184, 255, 22, .42); }

.hero {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 790px;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: clamp(80px, 9vw, 138px) clamp(32px, 5vw, 86px) 55px;
  border-right: 1px solid var(--line);
}
.kicker {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 35px 0 38px;
  font-size: clamp(60px, 6.3vw, 108px);
  line-height: .93;
  letter-spacing: -.065em;
}
em { color: var(--lime); font-style: normal; }
.lede {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.75;
}
.actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 35px;
}
.button {
  display: inline-block;
  padding: 18px 24px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: #061006;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.button:hover { background: transparent; color: var(--lime); }
.button:disabled { cursor: wait; opacity: .65; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 11px 15px;
  border: 1px solid #293933;
  font-size: 13px;
}

.systems {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  background:
    radial-gradient(circle at 51% 42%, rgba(10, 35, 29, .38), transparent 39%),
    linear-gradient(rgba(11, 23, 19, .72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 23, 19, .72) 1px, transparent 1px),
    #020504;
  background-size: auto, 36px 36px, 36px 36px, auto;
}
.systems::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 49%, rgba(1, 3, 2, .8) 100%);
}
.system-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.flow-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: .78;
}
.flow-energy {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1.4 12;
  vector-effect: non-scaling-stroke;
  opacity: .82;
  animation: signal-flow 2.8s linear infinite;
}
.signal-packet { fill: var(--lime); }
.signal-packet-secondary { opacity: .6; }
.node-surface {
  fill: rgba(3, 9, 7, .98);
  stroke: #385047;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke .25s ease, fill .25s ease;
}
.map-node:hover .node-surface {
  fill: #06100c;
  stroke: var(--cyan);
}
.map-node-outcome:hover .outcome-surface { stroke: var(--lime); }
.node-index {
  fill: #61736b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.node-label {
  fill: #8ca099;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-anchor: middle;
}
.outcome-label { fill: var(--lime); }
.node-icon {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}
.node-icon-outcome { stroke: var(--lime); }

@keyframes signal-flow {
  to { stroke-dashoffset: -53.6; }
}

.ticker {
  padding: 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #020504;
  color: #717d78;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-align: center;
  white-space: nowrap;
}
.ticker span {
  margin: 0 28px;
  color: var(--lime);
}

.section {
  padding: 120px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
}
.heading {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}
.heading h2, .work h2, .about h2, .contact h2 {
  margin: 18px 0;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.heading > p, .work > div > p, .about > div > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cards article {
  min-height: 375px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(10, 21, 17, .42), transparent);
  transition: transform .25s ease, border-color .25s ease;
}
.cards article:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--lime);
}
.cards article > span { color: #65766f; font-size: 11px; }
.cards h3 { margin: 76px 0 22px; font-size: 24px; }
.cards p {
  min-height: 100px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.cards small {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .1em;
}
.work {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 8vw, 140px);
}
.work-intro p + p {
  margin-top: 22px;
}
.cases { border-top: 1px solid var(--line); }
.cases article {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.cases span {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.cases h3 { margin: 16px 0; font-size: clamp(27px, 3vw, 42px); }

.about {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
  align-items: center;
  background: #020504;
}
.about-copy { max-width: 840px; }
.about-blueprint {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(#0b1713 1px, transparent 1px),
    linear-gradient(90deg, #0b1713 1px, transparent 1px),
    #010302;
  background-size: 28px 28px;
}
.about-system-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.about-blueprint::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, transparent 46%, rgba(1, 3, 2, .74) 100%);
}
.about-map-heading,
.about-map-status {
  fill: #687770;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.8px;
}
.about-map-status { fill: var(--lime); }
.about-flow-line { opacity: .72; }
.about-flow-energy { animation-duration: 4.2s; }
.about-map-node .node-surface {
  transition: stroke .25s ease, fill .25s ease;
}
.about-map-node:hover .node-surface {
  fill: #06100c;
  stroke: var(--cyan);
}
.about-map-node-outcome:hover .outcome-surface { stroke: var(--lime); }
.about-node-icon { stroke-width: 1.6; }
.about-signal-packet { pointer-events: none; }
.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.stats div {
  padding: 42px;
  border-right: 1px solid var(--line);
}
.stats strong {
  display: block;
  color: var(--lime);
  font-size: 52px;
}
.stats span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}
.social-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #385047;
  color: var(--cyan);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.social-link:hover,
.social-link:focus-visible {
  border-color: var(--lime);
  background: rgba(184, 255, 22, .06);
  color: var(--lime);
  transform: translateY(-2px);
}

.contact {
  padding: 140px 24px;
  background: radial-gradient(circle at 50% 110%, #10271f, transparent 42%), #010302;
  text-align: center;
}
.contact h2 { max-width: 960px; margin: 22px auto; }
.contact > p:not(.kicker) {
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 19px;
}
footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 30px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--line);
  background: #010302;
  color: #727d78;
  font-size: 11px;
}
footer p { margin: 0; text-align: center; }
footer p:last-child { text-align: right; }

.project-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #33483f;
  background: #030705;
  color: var(--paper);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .8);
}
.project-dialog::backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(5px);
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 38px 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -.045em;
}
.dialog-close {
  width: 42px;
  height: 42px;
  border: 1px solid #35433e;
  background: transparent;
  color: var(--paper);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover { border-color: var(--lime); color: var(--lime); }
.dialog-intro {
  margin-bottom: 0;
  padding: 24px 38px 0;
  color: var(--muted);
  line-height: 1.6;
}
#project-inquiry { padding: 26px 38px 38px; }
.honey-field { position: absolute; left: -10000px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid label {
  display: grid;
  gap: 9px;
  color: #cbd2cf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.form-grid label span { color: #66746e; font-weight: 400; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #2d3d37;
  outline: none;
  background: #070d0a;
  color: var(--paper);
  letter-spacing: 0;
  text-transform: none;
}
.form-grid input:focus, .form-grid textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}
.form-grid textarea { min-height: 130px; resize: vertical; }
.form-actions {
  display: flex;
  align-items: center;
  margin-top: 26px;
}

.form-toast {
  position: fixed;
  z-index: 100;
  top: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 235px;
  padding: 15px 18px;
  border: 1px solid #385047;
  background: rgba(3, 9, 7, .97);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .22s ease, transform .22s ease;
}
.form-toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(184, 255, 22, .75);
}
.form-toast.is-error { border-color: #805052; }
.form-toast.is-error .toast-indicator {
  background: #ff727b;
  box-shadow: 0 0 12px rgba(255, 114, 123, .65);
}

@media (max-width: 1000px) {
  .hero, .work { grid-template-columns: 1fr; }
  .systems { min-height: 680px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  header { height: 70px; }
  html { scroll-padding-top: 70px; }
  nav a:not(.outline) { display: none; }
  .hero-copy { padding: 70px 24px 48px; }
  h1 { font-size: 15vw; }
  .actions { flex-direction: column; align-items: flex-start; }
  .systems { min-height: 540px; }
  .system-map { transform: scale(.94); }
  .section { padding: 82px 24px; }
  .heading, .about { grid-template-columns: 1fr; gap: 30px; }
  .about-blueprint { min-height: 360px; }
  .cards, .stats { grid-template-columns: 1fr; }
  .ticker { text-align: left; }
  .brand span { font-size: 12px; }
  footer { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  footer .brand { justify-content: center; }
  footer p:last-child { text-align: center; }
  .dialog-header { padding: 26px 22px 18px; }
  .dialog-intro { padding: 20px 22px 0; }
  #project-inquiry { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .form-toast {
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .signal-packet { display: none; }
  .form-toast { transition: none; }
}
