:root {
  --ink: #08110f;
  --paper: #f3f5ef;
  --line: #c9d0c6;
  --muted: #5a6661;
  --green: #b9ff38;
  --green-bright: #caff5c;
  --aqua: #49e6ce;
  --white: #ffffff;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--green); color: var(--ink); }

.site-header {
  align-items: center;
  background: rgba(243, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 76px;
  padding: 0 clamp(1.25rem, 4vw, 4.75rem);
  position: relative;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.12rem;
  font-weight: 750;
  gap: 0.7rem;
  letter-spacing: -0.04em;
  width: max-content;
}

.brand-mark {
  display: grid;
  gap: 0.14rem;
  grid-template-columns: repeat(2, 0.45rem);
  grid-template-rows: repeat(2, 0.45rem);
  transform: rotate(45deg);
}

.brand-mark i { background: var(--ink); display: block; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--green); }

.site-nav {
  align-items: center;
  display: flex;
  font-size: 0.88rem;
  font-weight: 600;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-nav a, .header-cta { transition: opacity 180ms ease; }
.site-nav a:hover, .header-cta:hover { opacity: 0.58; }
.header-cta {
  align-items: center;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.45rem;
  justify-self: end;
}

.hero {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(20rem, 0.64fr);
  min-height: calc(100vh - 76px);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(8, 17, 15, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 17, 15, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  inset: 0;
  mask-image: linear-gradient(to right, black, transparent 82%);
  pointer-events: none;
  position: absolute;
}

.hero-copy {
  align-content: center;
  display: grid;
  padding: clamp(4rem, 8vw, 8.5rem) clamp(1.25rem, 6.5vw, 7.75rem);
  position: relative;
  z-index: 1;
}

.eyebrow {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 650;
  gap: 0.65rem;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow > span {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(185, 255, 56, 0.18);
  height: 0.48rem;
  width: 0.48rem;
}

.hero h1 {
  font-size: clamp(3.55rem, 6.75vw, 7.8rem);
  font-weight: 640;
  letter-spacing: -0.075em;
  line-height: 0.9;
  margin: clamp(2.5rem, 6vh, 5.5rem) 0 clamp(2.8rem, 7vh, 5.5rem);
  max-width: 12ch;
}

.hero h1 em, .contact-section h2 em {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-bottom {
  align-items: flex-end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  max-width: 55rem;
}

.hero-description {
  color: #35413d;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  margin: 0;
  max-width: 34rem;
}

.hero-actions { display: flex; flex: 0 0 auto; gap: 0.6rem; }
.button {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.65rem;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 1.15rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: #21312d; }
.button-secondary:hover { background: var(--green); }

.hero-system {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: center;
  min-height: 34rem;
  overflow: hidden;
  position: relative;
}

.hero-system::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
  opacity: 0.6;
  position: absolute;
}

.system-orbit {
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  position: absolute;
}

.orbit-one { height: min(66%, 34rem); width: min(82%, 34rem); }
.orbit-two { height: min(42%, 21rem); width: min(54%, 21rem); }
.system-node {
  background: rgba(8, 17, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  padding: 0.8rem 1rem;
  position: absolute;
  z-index: 2;
}

.system-node span { color: #8e9b96; font-size: 0.63rem; letter-spacing: 0.1em; }
.system-node strong { font-size: 0.78rem; font-weight: 550; margin-top: 0.2rem; }
.node-input { left: 8%; top: 19%; }
.node-output { bottom: 18%; right: 7%; }
.node-center {
  align-items: center;
  aspect-ratio: 1;
  background: var(--green);
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  justify-content: center;
  padding: 1rem;
  width: clamp(7.6rem, 12vw, 10.5rem);
}

.node-center .brand-mark { margin-bottom: 0.9rem; transform: rotate(45deg) scale(1.25); }
.node-center .brand-mark i:nth-child(2), .node-center .brand-mark i:nth-child(3) { background: var(--white); }
.node-center > span:last-child { color: var(--ink); font-size: 0.6rem; font-weight: 750; }
.system-pulse {
  background: var(--aqua);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(73, 230, 206, 0.11), 0 0 24px rgba(73, 230, 206, 0.7);
  height: 0.52rem;
  position: absolute;
  width: 0.52rem;
}

.pulse-one { right: 15%; top: 30%; }
.pulse-two { bottom: 27%; left: 14%; }
.hero-system > p {
  bottom: 2rem;
  color: #75817d;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  position: absolute;
}

.signal-strip {
  align-items: center;
  background: var(--green);
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  display: flex;
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 700;
  gap: clamp(1.15rem, 3vw, 3.5rem);
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 3.75rem;
  overflow: hidden;
  padding: 0.85rem 1rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-strip i { background: var(--ink); height: 0.3rem; transform: rotate(45deg); width: 0.3rem; }
.section { margin: 0 auto; max-width: 94rem; padding: clamp(5.5rem, 10vw, 10rem) clamp(1.25rem, 6vw, 6rem); }
.section-heading {
  align-items: end;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(16rem, 0.65fr) minmax(24rem, 1.35fr) minmax(18rem, 0.75fr);
}

.section-heading h2, .work-heading h2, .approach-copy h2, .contact-section h2 {
  font-size: clamp(3rem, 5.3vw, 6rem);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.95;
  margin: 0;
}

.section-heading > p:last-child, .work-heading > p:last-child { color: var(--muted); font-size: 1.03rem; margin: 0; }
.capability-grid {
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(4rem, 8vw, 7rem);
}

.capability-card {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 25rem;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  transition: background 220ms ease, transform 220ms ease;
}

.capability-card:hover { background: var(--white); transform: translateY(-6px); }
.card-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: var(--mono);
  font-size: 0.7rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
}

.card-topline b { color: var(--ink); font-weight: 700; }
.capability-card h3 { font-size: clamp(2rem, 3vw, 3.25rem); letter-spacing: -0.055em; margin: auto 0 1.25rem; }
.capability-card > p { color: var(--muted); margin: 0 0 2.5rem; max-width: 25rem; }
.capability-card small {
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding-top: 1rem;
  text-transform: uppercase;
}

.work-section { background: var(--ink); color: var(--white); }
.work-inner { padding-bottom: clamp(5.5rem, 9vw, 9rem); }
.work-heading {
  display: grid;
  gap: 3rem;
  grid-template-columns: 0.55fr 1fr 0.65fr;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.eyebrow-light { color: #96a29e; }
.project-list { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); }
.project-card {
  background: #15211e;
  border: 1px solid #34413d;
  display: grid;
  grid-template-rows: minmax(20rem, 30vw) auto;
  overflow: hidden;
}

.project-visual { background: #22312d; overflow: hidden; position: relative; }
.project-visual::after {
  background: linear-gradient(to top, rgba(8, 17, 15, 0.72), transparent 55%);
  content: "";
  inset: 0;
  position: absolute;
}

.project-visual img { height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); width: 100%; }
.project-card:hover .project-visual img { transform: scale(1.035); }
.project-index {
  background: var(--green);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 750;
  left: 1.4rem;
  padding: 0.55rem 0.7rem;
  position: absolute;
  top: 1.4rem;
  z-index: 2;
}

.project-content { padding: clamp(1.75rem, 4vw, 3.75rem); }
.project-label { color: var(--aqua) !important; font-family: var(--mono); font-size: 0.7rem !important; letter-spacing: 0.08em; text-transform: uppercase; }
.project-content h3 { font-size: clamp(2.4rem, 4vw, 4.3rem); letter-spacing: -0.06em; line-height: 1; margin: 0.75rem 0 1.5rem; }
.project-content > p { color: #b4bfbb; font-size: 1.02rem; margin: 0; max-width: 38rem; }
.project-content ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 2rem 0 2.5rem; padding: 0; }
.project-content li {
  border: 1px solid #46534f;
  color: #c7cfcc;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.48rem 0.65rem;
  text-transform: uppercase;
}

.project-content > a, .project-status { align-items: center; color: var(--green); display: inline-flex; font-size: 0.85rem; font-weight: 700; gap: 0.45rem; }
.project-content > a:hover { color: var(--green-bright); }
.approach-section { display: grid; gap: clamp(4rem, 8vw, 8rem); grid-template-columns: minmax(20rem, 0.88fr) minmax(24rem, 1.12fr); }
.approach-copy .eyebrow { margin-bottom: 2rem; }
.approach-copy h2 { font-size: clamp(3rem, 4.3vw, 4.8rem); }
.approach-list { border-top: 1px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.approach-list li {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 3rem 1fr;
  padding: 1.75rem 0;
}

.approach-list > li > span { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; padding-top: 0.35rem; }
.approach-list h3 { font-size: 1.45rem; letter-spacing: -0.03em; margin: 0 0 0.35rem; }
.approach-list p { color: var(--muted); margin: 0; }
.contact-section {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: min(48rem, 78vh);
  overflow: hidden;
  padding: clamp(5.5rem, 11vw, 10rem) 1.5rem;
  position: relative;
  text-align: center;
}

.contact-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  inset: 0;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  position: absolute;
}

.contact-section > *:not(.contact-pattern) { position: relative; }
.contact-section h2 { font-size: clamp(4rem, 8.5vw, 9rem); margin: 2.5rem 0 3rem; }
.contact-section h2 em { color: var(--green); }
.contact-section > a {
  align-items: center;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  display: inline-flex;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 650;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
}

.site-footer {
  align-items: center;
  background: var(--green);
  display: grid;
  font-family: var(--mono);
  font-size: 0.7rem;
  grid-template-columns: 1fr auto 1fr;
  min-height: 6.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.75rem);
  text-transform: uppercase;
}

.site-footer p { margin: 0; }
.site-footer p:last-child { justify-self: end; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 44rem; }
  .hero-system { min-height: 38rem; }
  .section-heading, .work-heading { grid-template-columns: 0.6fr 1.4fr; }
  .section-heading > p:last-child, .work-heading > p:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; height: 68px; padding: 0 1.2rem; }
  .site-nav { display: none; }
  .header-cta { font-size: 0.82rem; }
  .hero { min-height: auto; }
  .hero-copy { align-content: start; min-height: auto; padding: 5rem 1.25rem 4.5rem; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5.35rem); margin: 3.25rem 0; }
  .hero-bottom { align-items: stretch; flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .hero-system { min-height: 30rem; }
  .signal-strip { justify-content: flex-start; }
  .signal-strip span:nth-of-type(n + 3), .signal-strip i:nth-of-type(n + 3) { display: none; }
  .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section-heading, .work-heading { align-items: start; grid-template-columns: 1fr; }
  .section-heading > p:last-child, .work-heading > p:last-child { grid-column: auto; }
  .capability-grid, .project-list { border-left: 0; grid-template-columns: 1fr; }
  .capability-card { min-height: 22rem; }
  .project-card { grid-template-rows: minmax(16rem, 68vw) auto; }
  .approach-section { grid-template-columns: 1fr; }
  .site-footer { gap: 1.25rem; grid-template-columns: 1fr auto; }
  .site-footer > p:first-of-type { display: none; }
}

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