:root {
  --ink: #181713;
  --ink-2: #24211b;
  --paper: #f6f1e8;
  --white: #fffaf2;
  --muted: #6f6a60;
  --line: rgba(24, 23, 19, 0.14);
  --line-dark: rgba(255, 250, 242, 0.16);
  --teal: #1f8a83;
  --amber: #c27a2c;
  --clay: #9b5348;
  --shadow: 0 24px 60px rgba(24, 23, 19, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

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

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

.site-header {
  align-items: center;
  background: rgba(24, 23, 19, 0.86);
  backdrop-filter: blur(18px);
  color: var(--white);
  display: flex;
  gap: 24px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 760;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--ink);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 4px;
}

.site-nav a {
  border: 1px solid transparent;
  color: rgba(255, 250, 242, 0.76);
  font-size: 0.9rem;
  padding: 10px 13px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line-dark);
  color: var(--white);
  outline: 0;
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--white);
  display: none;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 42px;
}

.nav-toggle span {
  background: currentColor;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease;
  width: 18px;
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-open .nav-toggle span:first-child {
  transform: rotate(42deg);
}

.nav-open .nav-toggle span:last-child {
  transform: rotate(-42deg);
}

.hero {
  color: var(--white);
  display: grid;
  min-height: 84svh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 12, 10, 0.88) 0%, rgba(12, 12, 10, 0.76) 34%, rgba(12, 12, 10, 0.42) 63%, rgba(12, 12, 10, 0.16) 100%),
    linear-gradient(0deg, rgba(12, 12, 10, 0.44), rgba(12, 12, 10, 0));
}

.hero-content {
  align-self: center;
  margin: 0 auto;
  max-width: var(--max);
  padding: 112px 24px 70px;
  width: 100%;
}

.eyebrow {
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.8rem, 10vw, 8.8rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 26px;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 0;
}

h3 {
  font-size: 1.14rem;
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 12px;
}

.hero-copy {
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  max-width: 650px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-weight: 780;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #f0d9bc;
}

.button-secondary {
  border-color: rgba(255, 250, 242, 0.34);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 250, 242, 0.7);
}

.platform-band {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  color: var(--white);
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: 24px;
  padding-right: 24px;
}

.platform-layout {
  display: grid;
  gap: clamp(30px, 5vw, 64px);
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  padding-bottom: clamp(34px, 5vw, 58px);
  padding-top: clamp(34px, 5vw, 58px);
}

.platform-intro {
  align-self: start;
}

.platform-intro h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.02;
}

.platform-intro p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.66);
  margin: 18px 0 0;
}

.platform-matrix {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-group {
  background: rgba(255, 250, 242, 0.06);
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: 8px;
  padding: 18px;
}

.platform-group h3 {
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-tags span {
  background: rgba(255, 250, 242, 0.09);
  border: 1px solid rgba(255, 250, 242, 0.12);
  color: rgba(255, 250, 242, 0.76);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.1;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.section {
  padding: clamp(72px, 9vw, 126px) 0;
}

.section-light {
  background: var(--paper);
}

.section-white {
  background: var(--white);
}

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

.intro-grid,
.architecture-grid,
.split-layout,
.contact-grid {
  display: grid;
  gap: clamp(32px, 6vw, 88px);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.intro-copy {
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-copy p:last-child,
.muted-copy:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: clamp(32px, 5vw, 58px);
  max-width: 860px;
}

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

.service-card {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 260px;
  padding: 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(31, 138, 131, 0.46);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-index {
  color: var(--clay);
  display: block;
  font-size: 0.78rem;
  font-weight: 820;
  margin-bottom: 54px;
}

.service-card p,
.process-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.muted-copy {
  color: rgba(255, 250, 242, 0.68);
  font-size: 1.04rem;
  margin-top: 24px;
  max-width: 560px;
}

.system-map {
  align-self: start;
  background: rgba(255, 250, 242, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: 22px;
}

.node-grid {
  display: grid;
  gap: 24px 16px;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

.map-node {
  appearance: none;
  background: rgba(255, 250, 242, 0.08);
  border: 1px solid rgba(255, 250, 242, 0.13);
  border-radius: 8px;
  color: rgba(255, 250, 242, 0.86);
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 15px 14px;
  position: relative;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  width: 100%;
}

.map-node::before {
  background: var(--teal);
  content: "";
  height: 8px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 8px;
}

.map-node::after {
  background: rgba(255, 250, 242, 0.28);
  content: "";
  height: 2px;
  left: calc(100% + 1px);
  position: absolute;
  top: 50%;
  width: 16px;
}

.map-node:nth-child(3n)::after,
.map-node:last-child::after {
  display: none;
}

.map-node:nth-child(4)::before,
.map-node:nth-child(5)::before,
.map-node:nth-child(6)::before {
  background: var(--amber);
}

.map-node:nth-child(7)::before,
.map-node:nth-child(8)::before,
.map-node:nth-child(9)::before {
  background: var(--clay);
}

.map-node:hover,
.map-node:focus-visible,
.map-node.is-active {
  background: rgba(255, 250, 242, 0.14);
  border-color: rgba(255, 250, 242, 0.44);
  outline: 0;
  transform: translateY(-1px);
}

.map-node.is-active {
  box-shadow: inset 0 0 0 1px rgba(31, 138, 131, 0.82);
}

.node-kicker {
  color: rgba(255, 250, 242, 0.52);
  font-size: 0.72rem;
  font-weight: 820;
}

.node-label {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.15;
  padding-right: 16px;
}

.node-explanation {
  background: rgba(255, 250, 242, 0.1);
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  padding: 18px;
}

.node-explanation span {
  color: var(--white);
  display: block;
  font-weight: 820;
  margin-bottom: 8px;
}

.node-explanation p {
  color: rgba(255, 250, 242, 0.72);
  margin: 0;
}

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

.outcome-list div {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  padding: 22px 0;
}

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

.outcome-list strong {
  color: var(--ink);
}

.outcome-list span {
  color: var(--muted);
}

.process-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.process-grid article {
  border-top: 3px solid var(--teal);
  padding: 22px 10px 0 0;
}

.process-grid article:nth-child(2) {
  border-color: var(--amber);
}

.process-grid article:nth-child(3) {
  border-color: var(--clay);
}

.process-grid article:nth-child(4) {
  border-color: var(--ink);
}

.process-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 820;
  margin-bottom: 18px;
  text-transform: uppercase;
}

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

.contact-form {
  background: rgba(255, 250, 242, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

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

.contact-form span {
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.82rem;
  font-weight: 760;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(255, 250, 242, 0.95);
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  min-height: 48px;
  padding: 12px;
  width: 100%;
}

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

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(31, 138, 131, 0.26);
}

.contact-form .button {
  border: 0;
  width: fit-content;
}

.form-status {
  color: rgba(255, 250, 242, 0.74);
  font-size: 0.92rem;
  margin: 0;
  min-height: 1.4em;
}

.site-footer {
  background: #11100d;
  color: rgba(255, 250, 242, 0.64);
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 24px;
  padding-top: 24px;
}

.footer-inner span:first-child {
  color: var(--white);
  font-weight: 800;
}

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

  .platform-layout {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .architecture-grid,
  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 235px;
  }

  .card-index {
    margin-bottom: 34px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 66px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: rgba(24, 23, 19, 0.97);
    border-bottom: 1px solid var(--line-dark);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 8px 18px 18px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 66px;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-color: var(--line-dark);
    padding: 14px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(12, 12, 10, 0.9) 0%, rgba(12, 12, 10, 0.78) 60%, rgba(12, 12, 10, 0.46) 100%),
      linear-gradient(0deg, rgba(12, 12, 10, 0.48), rgba(12, 12, 10, 0));
  }

  .hero-content {
    padding: 98px 18px 52px;
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

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

  .button {
    width: 100%;
  }

  .section-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .platform-layout,
  .platform-matrix,
  .service-grid,
  .process-grid,
  .node-grid {
    grid-template-columns: 1fr;
  }

  .outcome-list div {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .system-map {
    padding: 16px;
  }

  .map-node::after {
    height: 24px;
    left: 24px;
    top: calc(100% + 1px);
    width: 2px;
  }

  .map-node:nth-child(3n)::after {
    display: block;
  }

  .map-node:last-child::after {
    display: none;
  }

  .contact-form {
    padding: 18px;
  }
}

@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;
  }
}
