:root {
  --ink: #171815;
  --ink-soft: #272822;
  --paper: #f3f0e8;
  --paper-deep: #e6e1d5;
  --acid: #c9ff63;
  --acid-deep: #9ad72d;
  --white: #fffef9;
  --muted: #74766d;
  --line: rgba(23, 24, 21, 0.17);
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--acid-deep);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.92);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.brand span {
  color: var(--acid-deep);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.86rem;
  font-weight: 650;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
}

.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--ink);
  transition: right 180ms ease;
}

.main-nav > a:hover::after {
  right: 0;
}

.nav-cta {
  padding: 11px 17px;
  border: 1px solid var(--ink);
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 98px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(23, 24, 21, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 21, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(52px, 8vw, 108px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 23px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #585b51;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  background: var(--acid-deep);
  border-radius: 50%;
}

.eyebrow.light {
  color: rgba(255, 254, 249, 0.62);
}

.hero h1 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(4.2rem, 7.6vw, 7rem);
  font-weight: 720;
  letter-spacing: -0.078em;
  line-height: 0.91;
}

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

.hero-intro {
  max-width: 620px;
  margin: 34px 0 0;
  color: #505248;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.62;
}

.button-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 13px 20px;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 760;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary {
  background: var(--acid);
  border-color: var(--ink);
}

.button-light {
  min-width: 175px;
  justify-content: space-between;
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

.button-light i {
  font-size: 1.25rem;
  font-style: normal;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.86rem;
  font-weight: 720;
}

.text-link span {
  color: var(--acid-deep);
}

.system-card {
  position: relative;
  min-height: 490px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink);
  color: var(--white);
  box-shadow: 18px 18px 0 var(--paper-deep);
}

.system-card::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 72px;
  height: 72px;
  border-top: 2px solid var(--acid-deep);
  border-right: 2px solid var(--acid-deep);
}

.card-bar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.72rem;
}

.card-label {
  color: rgba(255, 255, 255, 0.52);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
}

.live-indicator i {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(201, 255, 99, 0.1);
}

.flow-stage {
  min-height: 360px;
  display: grid;
  grid-template-columns: 0.88fr 1.05fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 36px 24px;
  background:
    radial-gradient(circle at 52% 50%, rgba(201, 255, 99, 0.12), transparent 27%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size:
    auto,
    26px 26px,
    26px 26px;
}

.input-stack {
  display: grid;
  gap: 10px;
}

.input-stack div {
  position: relative;
  display: grid;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.045);
}

.input-stack div::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 20px;
  height: 1px;
  background: rgba(201, 255, 99, 0.48);
}

.input-stack b {
  font-family: Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.input-stack span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.64rem;
}

.flow-core {
  position: relative;
  z-index: 1;
  width: 114px;
  height: 114px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--acid);
  border-radius: 50%;
  background: #20211d;
  box-shadow: 0 0 0 13px rgba(201, 255, 99, 0.05);
  color: rgba(255, 255, 255, 0.58);
  font-family: Consolas, monospace;
  font-size: 0.62rem;
  line-height: 1.7;
}

.flow-core span:last-child {
  color: var(--acid);
}

.flow-core::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 31px;
  height: 1px;
  background: rgba(201, 255, 99, 0.48);
}

.output-card {
  display: grid;
  padding: 16px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.output-card > span {
  margin-bottom: 23px;
  font-family: Consolas, monospace;
  font-size: 0.62rem;
}

.output-card strong {
  font-size: 0.86rem;
}

.output-card small {
  font-size: 0.64rem;
}

.card-footer {
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 0 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-family: Consolas, monospace;
  font-size: 0.61rem;
  text-align: center;
}

.card-footer span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

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

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.principles p {
  margin: 0;
  padding: 21px 22px;
  font-size: 0.77rem;
  font-weight: 700;
}

.principles p + p {
  border-left: 1px solid var(--line);
}

.principles strong {
  margin-right: 18px;
  color: var(--acid-deep);
  font-family: Consolas, monospace;
  font-size: 0.65rem;
}

.section {
  padding: 112px 0;
}

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

.section-heading.compact {
  max-width: 730px;
}

.section-heading h2,
.industries h2,
.engagement-wrap h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.55rem, 4.8vw, 4.45rem);
  font-weight: 690;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.section-heading > p:last-child {
  max-width: 590px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 510px;
  padding: 31px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.service-card + .service-card {
  border-left: 0;
}

.service-card.featured {
  background: var(--white);
}

.service-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 88px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.7rem;
}

.featured .service-number {
  background: var(--acid);
  border-color: var(--ink);
  color: var(--ink);
}

.service-card h3 {
  margin: 0;
  font-size: 1.54rem;
  letter-spacing: -0.035em;
}

.service-card > p {
  margin: 15px 0 28px;
  color: var(--muted);
  font-size: 0.91rem;
}

.service-card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  font-weight: 650;
}

.service-card li::before {
  content: "↳";
  margin-right: 9px;
  color: var(--acid-deep);
}

.industries {
  background: var(--ink);
  color: var(--white);
}

.industries-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(56px, 9vw, 140px);
}

.industries-intro {
  max-width: 480px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.56);
}

.industry-list {
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.industry-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.industry-list article > span {
  padding-top: 5px;
  color: var(--acid);
  font-family: Consolas, monospace;
  font-size: 0.66rem;
}

.industry-list h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 630;
}

.industry-list p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.83rem;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 67px;
}

.approach-grid article {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.approach-index {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.69rem;
}

.approach-mark {
  margin: 52px 0 28px;
  color: var(--acid-deep);
  font-size: 2rem;
}

.approach-grid h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.approach-grid p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.89rem;
}

.engagements {
  padding-top: 24px;
}

.engagement-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(55px, 9vw, 130px);
  padding: 72px;
  background: var(--paper-deep);
}

.engagement-wrap h2 {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
}

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

.engagement-list article {
  position: relative;
  padding: 23px 0 22px;
  border-bottom: 1px solid var(--line);
}

.engagement-list h3 {
  margin: 0;
  font-size: 1.06rem;
}

.engagement-list p {
  margin: 7px 0 15px;
  color: var(--muted);
  font-size: 0.84rem;
}

.engagement-list span {
  display: inline-block;
  padding: 4px 9px;
  background: var(--white);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact {
  background: var(--ink-soft);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(62px, 10vw, 155px);
}

.contact-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.contact-copy > p:not(.eyebrow) {
  margin: 26px 0 21px;
  color: rgba(255, 255, 255, 0.58);
}

.contact-copy > a {
  border-bottom: 1px solid var(--acid);
  color: var(--acid);
  font-size: 0.91rem;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 23px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.contact-form small {
  font-weight: 400;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  color: var(--white);
  outline: 0;
}

.contact-form select {
  color-scheme: dark;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--acid);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-form .consent {
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--acid);
}

.consent a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 11px;
}

#form-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.78rem;
}

#form-status.error {
  color: #ffaaa0;
}

#form-status.success {
  color: var(--acid);
}

.site-footer {
  padding: 72px 0 23px;
  background: #11120f;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 55px;
}

.footer-brand {
  font-size: 1.7rem;
}

.footer-grid > div:first-child p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.79rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: var(--acid);
}

.footer-contact p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.71rem;
}

.footer-contact a {
  border-bottom: 1px solid var(--acid);
  color: var(--acid);
  font-size: 0.83rem;
}

.footer-bottom {
  margin-top: 72px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.35);
  font-family: Consolas, monospace;
  font-size: 0.62rem;
}

.privacy-page {
  min-height: 100vh;
}

.privacy-main {
  padding: 90px 0 120px;
}

.privacy-content {
  max-width: 760px;
}

.privacy-content h1 {
  margin: 0 0 40px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.privacy-content h2 {
  margin: 42px 0 10px;
  font-size: 1.35rem;
}

.privacy-content p,
.privacy-content li {
  color: #55584e;
}

.privacy-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-back {
  display: inline-block;
  margin-bottom: 35px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .industries-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .system-card {
    width: min(100%, 620px);
  }

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

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

  .service-card + .service-card {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .service-number {
    margin-bottom: 54px;
  }

  .service-card ul {
    margin-top: 35px;
  }

  .engagement-wrap {
    grid-template-columns: 1fr;
    padding: 54px;
  }

  .contact-copy {
    position: static;
    max-width: 670px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 32px, 1180px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    align-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 24px;
    height: 2px;
    margin-left: auto;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    padding: 30px 16px 36px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    font-size: 1rem;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding: 70px 0 76px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
  }

  .button-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-card {
    min-height: 425px;
    box-shadow: 10px 10px 0 var(--paper-deep);
  }

  .flow-stage {
    min-height: 305px;
    padding-inline: 14px;
  }

  .flow-core {
    width: 86px;
    height: 86px;
    font-size: 0.53rem;
  }

  .input-stack span,
  .output-card small,
  .card-footer {
    font-size: 0.54rem;
  }

  .output-card {
    padding: 11px;
  }

  .output-card > span {
    margin-bottom: 15px;
  }

  .principles-grid,
  .approach-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .principles p + p {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 83px 0;
  }

  .section-heading {
    margin-bottom: 43px;
  }

  .approach-grid {
    gap: 53px;
  }

  .approach-mark {
    margin-top: 36px;
  }

  .engagements {
    padding-top: 0;
  }

  .engagement-wrap {
    width: 100%;
    padding: 64px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    gap: 42px;
  }

  .footer-bottom {
    gap: 20px;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
