:root {
  --ink: #e9f2ed;
  --muted: #8fa39a;
  --dark: #07110f;
  --line: rgba(218, 239, 227, 0.15);
  --acid: #a8ff3e;
  --aqua: #62f7d4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 35%, rgba(15, 88, 72, 0.18), transparent 28rem),
    var(--dark);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 6.25vw 6.25vw;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  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='.8'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand em { color: var(--muted); font-style: normal; font-weight: 500; }

.brand-mark { width: 34px; height: 34px; }
.brand-mark path, .brand-mark circle { fill: none; stroke: var(--acid); stroke-width: 1.4; }
.brand-mark circle { fill: var(--acid); stroke: none; }

.header-link {
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.header-link span { color: var(--acid); margin-left: 8px; }

main { width: min(1440px, 100%); margin: 0 auto; }

.hero {
  min-height: calc(100vh - 94px);
  padding: clamp(56px, 9vh, 120px) clamp(24px, 5vw, 80px) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  gap: 40px;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  margin: 0 0 30px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px var(--acid);
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 8.2vw, 124px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.86;
}
h1 i { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(233, 242, 237, 0.55); }

.intro {
  max-width: 500px;
  margin: 40px 0 36px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}

.cta {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 18px 16px 22px;
  color: #07110f;
  background: var(--acid);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(168, 255, 62, 0.18); }
.cta-arrow { font-size: 18px; line-height: 1; }

.signal {
  --mx: 0px;
  --my: 0px;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  position: relative;
  justify-self: end;
  transform: translate(var(--mx), var(--my));
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}

.signal::before {
  position: absolute;
  inset: 12%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 247, 212, 0.12), transparent 68%);
  filter: blur(20px);
}

.harness-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.drawing-guides { fill: none; stroke: rgba(98, 247, 212, 0.11); stroke-width: 1; stroke-dasharray: 3 8; }
.loom { fill: none; stroke: rgba(3, 8, 7, 0.92); stroke-width: 30; stroke-linecap: round; }
.wires .wire { stroke-width: 2.2; stroke-linecap: round; filter: url(#wire-glow); stroke-dasharray: 8 5; animation: wire-flow 8s linear infinite; }
.wire-1 { stroke: #a8ff3e; }
.wire-2 { stroke: #62f7d4; animation-delay: -1.2s !important; }
.wire-3 { stroke: #e9f2ed; animation-delay: -2.4s !important; }
.wire-4 { stroke: #ffb65c; animation-delay: -3.6s !important; }
.wire-5 { stroke: #62f7d4; animation-delay: -4.8s !important; }
.wire-6 { stroke: #a8ff3e; animation-delay: -6s !important; }
.connector-shell { fill: rgba(7, 17, 15, 0.9); stroke: rgba(233, 242, 237, 0.55); stroke-width: 1.5; }
.connector-detail, .connector-pins path { fill: none; stroke: rgba(143, 163, 154, 0.55); stroke-width: 1; }
.connector-pins circle { fill: var(--acid); filter: url(#wire-glow); }
.terminal { fill: var(--aqua); filter: url(#wire-glow); }
.loom-bands { fill: none; stroke: rgba(233, 242, 237, 0.62); stroke-width: 5; stroke-linecap: round; }

.signal-label {
  position: absolute;
  padding: 7px 9px;
  color: var(--aqua);
  border: 1px solid rgba(98, 247, 212, 0.25);
  background: rgba(7, 17, 15, 0.72);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}
.signal-label b { color: var(--muted); font-weight: 400; margin-left: 8px; }
.label-a { top: 22%; left: 0; }
.label-b { top: 9%; right: 3%; }
.label-c { bottom: 9%; right: 3%; }

.principles {
  padding: 100px clamp(24px, 5vw, 80px) 140px;
  border-top: 1px solid var(--line);
}
.section-number { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.12em; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.principle-grid article { min-height: 250px; padding: 28px 34px 28px 0; border-top: 1px solid var(--line); }
.principle-grid article + article { padding-left: 34px; border-left: 1px solid var(--line); }
.principle-grid span { color: var(--acid); font-family: "DM Mono", monospace; font-size: 10px; }
.principle-grid h2 { margin: 72px 0 12px; font-size: 25px; font-weight: 500; letter-spacing: -0.035em; }
.principle-grid p { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

footer {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(24px, 5vw, 80px);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
footer p { margin: 0; }
footer a { color: var(--ink); text-decoration: none; }

@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.8); } }
@keyframes wire-flow { to { stroke-dashoffset: -52; } }

@media (max-width: 820px) {
  body::before { background-size: 64px 64px; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .signal { width: min(92vw, 530px); justify-self: center; margin-top: -20px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { min-height: 190px; }
  .principle-grid article + article { padding-left: 0; border-left: 0; }
  .principle-grid h2 { margin-top: 42px; }
}

@media (max-width: 560px) {
  .site-header { padding-top: 22px; }
  .brand em { display: none; }
  .header-link { font-size: 0; }
  .header-link span { font-size: 18px; }
  .hero { min-height: auto; padding-top: 60px; }
  h1 { font-size: clamp(50px, 14vw, 68px); letter-spacing: -0.07em; }
  .signal { width: calc(100vw - 48px); margin-left: 0; }
  .principles { padding-top: 76px; padding-bottom: 90px; }
  footer { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
