:root {
  --paper: #f5f7f2;
  --paper-strong: #ffffff;
  --ink: #101411;
  --ink-soft: #3c463f;
  --muted: #68746c;
  --line: rgba(16, 20, 17, 0.14);
  --line-strong: rgba(16, 20, 17, 0.24);
  --panel: #151b17;
  --panel-soft: #202922;
  --accent: #ccff3d;
  --accent-two: #28d6b3;
  --accent-three: #ff6b3d;
  --radius: 8px;
  color-scheme: light;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(245, 247, 242, 0.3), var(--paper) 520px),
    var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(16, 20, 17, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 17, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  padding: 12px 16px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 20, 17, 0.9);
  color: var(--paper-strong);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 37px;
  height: 44px;
}

.logo-stack {
  position: relative;
  display: block;
  width: 37px;
  height: 34px;
}

.logo-square {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(245, 247, 242, 0.32);
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.logo-square-a {
  left: 0;
  top: 0;
  background: var(--accent);
}

.logo-square-b {
  left: 11px;
  top: 6px;
  background: var(--accent-two);
}

.logo-square-c {
  left: 4px;
  top: 13px;
  background: var(--accent-three);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Azeret Mono", monospace;
  font-size: 1.02rem;
  font-weight: 800;
}

.brand small {
  color: rgba(245, 247, 242, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 34px);
  color: rgba(245, 247, 242, 0.74);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper-strong);
}

.nav-links a:last-child {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(204, 255, 61, 0.4);
  border-radius: 999px;
  color: var(--accent);
}

.nav-links a:last-child:hover,
.nav-links a:last-child:focus-visible {
  background: rgba(204, 255, 61, 0.11);
}

.section-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) clamp(18px, 4vw, 56px);
}

.hero.section-shell {
  width: 100%;
  margin: 0;
  padding-right: max(clamp(18px, 4vw, 56px), calc((100vw - 1280px) / 2 + 56px));
  padding-left: max(clamp(18px, 4vw, 56px), calc((100vw - 1280px) / 2 + 56px));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 980px);
  align-items: end;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(16, 20, 17, 0.97) 0%, rgba(16, 20, 17, 0.9) 46%, rgba(16, 20, 17, 0.58) 100%),
    radial-gradient(circle at 78% 18%, rgba(204, 255, 61, 0.34), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(40, 214, 179, 0.2), transparent 34%),
    var(--panel);
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(245, 247, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 242, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}

.hero-copy {
  max-width: 850px;
  color: var(--paper-strong);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-two);
  font-family: "Azeret Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Literata", Georgia, serif;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 870px;
  font-size: clamp(3rem, 4.4vw, 6.2rem);
}

h1 strong {
  display: block;
  color: var(--accent);
  font-family: "Azeret Mono", monospace;
  font-size: clamp(1.08rem, 1.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

h1 span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.primary-link {
  background: var(--accent);
  color: var(--ink);
}

.secondary-link {
  border: 1px solid rgba(245, 247, 242, 0.22);
  color: var(--paper-strong);
}

.primary-link:hover,
.secondary-link:hover,
.primary-link:focus-visible,
.secondary-link:focus-visible,
.contact-mail:hover,
.contact-mail:focus-visible {
  transform: translateY(-2px);
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: rgba(245, 247, 242, 0.48);
}

.company-details dt,
.service-card span,
.confidence-metrics span {
  display: block;
  color: var(--muted);
  font-family: "Azeret Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-visual {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  top: clamp(120px, 18vh, 190px);
  width: min(560px, 45vw);
  aspect-ratio: 1;
  opacity: 0.86;
  pointer-events: none;
}

.trace {
  position: absolute;
  border: 1px solid rgba(204, 255, 61, 0.34);
  border-radius: var(--radius);
}

.trace::before,
.trace::after {
  position: absolute;
  background: var(--accent);
  content: "";
}

.trace-a {
  inset: 10% 14% 28% 20%;
}

.trace-a::before {
  left: 18%;
  top: 100%;
  width: 1px;
  height: 88px;
}

.trace-a::after {
  left: 18%;
  bottom: -88px;
  width: 132px;
  height: 1px;
}

.trace-b {
  inset: 34% 2% 10% 42%;
  border-color: rgba(40, 214, 179, 0.36);
}

.trace-b::before {
  right: 100%;
  top: 34%;
  width: 112px;
  height: 1px;
  background: var(--accent-two);
}

.trace-b::after {
  left: 28%;
  top: -72px;
  width: 1px;
  height: 72px;
  background: var(--accent-two);
}

.trace-c {
  inset: 0 38% 54% 0;
  border-color: rgba(255, 107, 61, 0.35);
}

.trace-c::before {
  right: -84px;
  bottom: 28%;
  width: 84px;
  height: 1px;
  background: var(--accent-three);
}

.trace-c::after {
  right: -84px;
  bottom: -60px;
  width: 1px;
  height: 60px;
  background: var(--accent-three);
}

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(204, 255, 61, 0.12);
}

.node-one {
  right: 22%;
  top: 14%;
}

.node-two {
  right: 4%;
  bottom: 22%;
  background: var(--accent-two);
  box-shadow: 0 0 0 10px rgba(40, 214, 179, 0.12);
}

.node-three {
  left: 28%;
  bottom: 18%;
  background: var(--accent-three);
  box-shadow: 0 0 0 10px rgba(255, 107, 61, 0.12);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 7vw, 108px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.method h2,
.confidence h2,
.company h2,
.contact h2 {
  font-size: clamp(2.2rem, 4.8vw, 5.4rem);
}

.intro > p,
.method-copy p,
.confidence-panel p,
.company-description,
.contact-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.35vw, 1.24rem);
  font-weight: 500;
  line-height: 1.75;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 330px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.32)),
    rgba(245, 247, 242, 0.72);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background-color: var(--paper-strong);
}

.service-card span {
  color: var(--accent-three);
}

.service-card h3 {
  margin: clamp(34px, 8vw, 84px) 0 16px;
  font-family: "Azeret Mono", monospace;
  font-size: clamp(1.08rem, 1.55vw, 1.38rem);
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.72fr);
  gap: clamp(32px, 8vw, 118px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-copy {
  position: sticky;
  top: 116px;
}

.method-copy p {
  margin-top: 28px;
}

.method-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.method-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: "Azeret Mono", monospace;
  font-weight: 800;
}

.method-list h3 {
  margin: 0 0 8px;
  font-family: "Azeret Mono", monospace;
  font-size: 1rem;
}

.method-list p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.6;
}

.confidence {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: stretch;
}

.confidence-panel {
  padding: clamp(28px, 5vw, 60px);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--paper-strong);
}

.confidence-panel p {
  margin-top: 26px;
  color: rgba(245, 247, 242, 0.74);
}

.confidence-metrics {
  display: grid;
  gap: 12px;
}

.confidence-metrics div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.confidence-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1.9rem, 3.3vw, 3.3rem);
  line-height: 1;
}

.confidence-metrics span {
  color: var(--ink-soft);
}

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

.company-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.54fr) minmax(0, 0.9fr);
  gap: clamp(28px, 7vw, 94px);
  align-items: start;
}

.company-details {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.company-details div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.company-details dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.company-details a {
  color: #137f6f;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-copy p {
  margin-top: 22px;
}

.contact-mail {
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius);
  background: #bdf47c;
  color: var(--ink);
  font-family: "Azeret Mono", monospace;
  font-size: clamp(1.2rem, 3.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  box-shadow: 0 24px 70px rgba(64, 116, 69, 0.16);
  overflow-wrap: normal;
  word-break: normal;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 56px) 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 640ms ease,
    transform 640ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1060px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-visual {
    width: 58vw;
    opacity: 0.5;
  }

  .intro,
  .method,
  .confidence,
  .company-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .method-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 64px;
  }

  .hero-visual {
    right: -24vw;
    top: 120px;
    width: 88vw;
  }

  h1 {
    font-size: clamp(2.55rem, 11vw, 4.4rem);
    line-height: 1.02;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .service-card h3 {
    margin-top: 46px;
  }

  .method-list li {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand small {
    max-width: 170px;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.86rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .method-list li,
  .confidence-metrics div {
    padding: 20px;
  }
}
