:root {
  --paper: #faf8f3;
  --paper-deep: #f3ede0;
  --paper-strong: #ece4d2;
  --ink: #151719;
  --ink-muted: #50545a;
  --ink-faint: #7d8289;
  --slate: #14324a;
  --bronze: #a36b36;
  --bronze-soft: #c89466;
  --divider: #e4ddcf;
  --void: #081015;
  --void-panel: #101922;
  --void-line: #23303c;
  --void-ink: #e8e2d7;
  --void-muted: #a8a096;
  --green: #75a983;
  --amber: #d0a15d;
  --red: #b97973;
  --max: 1180px;
  --reading: 720px;
  --serif: "Charter", "Iowan Old Style", "Palatino", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--slate);
  text-decoration-color: var(--bronze-soft);
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
  color: var(--bronze);
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.reading {
  max-width: var(--reading);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--divider);
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(14px);
}

.nav-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-word {
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.brand-unit {
  color: var(--bronze);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--bronze);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 40px;
  min-width: 44px;
  border: 1px solid var(--divider);
  border-radius: 6px;
  background: transparent;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--bronze);
  border-radius: 4px;
  background: transparent;
  color: var(--bronze);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--slate);
  background: var(--slate);
  color: var(--paper);
}

.button:hover,
.button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.hero {
  border-bottom: 1px solid var(--divider);
  background:
    linear-gradient(90deg, rgba(163, 107, 54, 0.06), transparent 22%, transparent 78%, rgba(20, 50, 74, 0.05)),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: clamp(32px, 4.6vw, 54px);
  align-items: center;
  padding: clamp(36px, 5vw, 52px) 0 clamp(34px, 4.6vw, 48px);
}

.kicker,
.eyebrow,
.section-kicker,
.scope-item strong,
.label {
  font-family: var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker,
.section-kicker {
  margin: 0 0 20px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(43px, 4.8vw, 60px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(31px, 4.2vw, 50px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 500;
}

.lead {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--ink-muted);
  font-size: 19px;
  line-height: 1.5;
}

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

.hero-rule {
  width: min(100%, 590px);
  height: 1px;
  margin: 20px 0;
  background: var(--bronze-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 18px;
}

.scope-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.scope-item {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 11px;
  border-right: 1px solid var(--divider);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.scope-item:last-child {
  border-right: 0;
}

.scope-mark {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid var(--bronze-soft);
  border-radius: 50%;
  color: var(--bronze);
  font-family: var(--mono);
  font-size: 10px;
}

.instrument {
  min-width: 0;
  border: 1px solid #242f38;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--void);
  background-size: 42px 42px;
  color: var(--void-ink);
  box-shadow: 0 26px 70px rgba(20, 50, 74, 0.22);
  font-family: var(--sans);
}

.instrument-inner {
  margin: 12px;
  padding: clamp(18px, 2.4vw, 24px);
  overflow: hidden;
  border: 1px solid var(--void-line);
  border-radius: 7px;
  background: rgba(16, 25, 34, 0.76);
}

.instrument-top,
.instrument-status,
.trace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.instrument-top {
  margin-bottom: 18px;
}

.instrument-top span,
.trace-footer span {
  min-width: 0;
}

.instrument-status {
  white-space: nowrap;
  color: var(--green);
}

.pulse {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(117, 169, 131, 0.42);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(117, 169, 131, 0.42); }
  70% { box-shadow: 0 0 0 8px rgba(117, 169, 131, 0); }
  100% { box-shadow: 0 0 0 0 rgba(117, 169, 131, 0); }
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.flow-step {
  position: relative;
  min-width: 0;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 13px 10px;
  border: 1px solid var(--void-line);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transition: background 420ms ease, border-color 420ms ease, transform 420ms ease;
}

.flow-step.is-active {
  border-color: var(--bronze-soft);
  background: linear-gradient(180deg, rgba(200, 148, 102, 0.13), rgba(255, 255, 255, 0.025));
}

.flow-step span {
  display: block;
  max-width: 100%;
  color: var(--void-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.flow-step strong {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  color: var(--void-ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.12;
  overflow-wrap: normal;
  white-space: nowrap;
}

.trace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 15px 0;
  border: 1px solid var(--void-line);
  border-radius: 7px;
}

.trace-cell {
  min-width: 0;
  min-height: 104px;
  overflow: hidden;
  padding: 14px 12px;
  border-right: 1px solid var(--void-line);
  transition: background 420ms ease;
}

.trace-cell:last-child {
  border-right: 0;
}

.trace-cell strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trace-cell.is-active {
  background: rgba(200, 148, 102, 0.1);
}

.trace-cell p,
.trace-footer span:last-child {
  min-width: 0;
  margin: 0;
  color: var(--void-muted);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-transform: none;
}

.trace-cell[data-tone="repair"] strong {
  color: var(--green);
}

.trace-cell[data-tone="review"] strong {
  color: #b8c9dc;
}

.trace-footer {
  padding: 12px 15px;
  border: 1px solid var(--void-line);
  border-radius: 6px;
}

.trace-footer span:first-child {
  color: var(--green);
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--divider);
}

.hero + .section {
  padding-top: clamp(40px, 5vw, 58px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 42px;
}

.hero + .section .section-head {
  margin-bottom: 30px;
}

.section-head p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-muted);
}

.problem-grid,
.product-grid,
.support-grid,
.route-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.problem,
.product-card,
.support-card,
.route-card {
  min-height: 250px;
  padding: 28px clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--divider);
}

.problem:last-child,
.product-card:last-child,
.support-card:last-child,
.route-card:nth-child(2n) {
  border-right: 0;
}

.product-card:nth-child(3n),
.support-card:nth-child(4n) {
  border-right: 0;
}

.product-card:nth-child(n+4),
.support-card:nth-child(n+5) {
  border-top: 1px solid var(--divider);
}

.index-num {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--bronze);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.13em;
  border-bottom: 2px solid var(--bronze-soft);
}

.subtle-label {
  display: block;
  margin: 22px 0 8px;
  color: var(--bronze);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.problem p,
.product-card p,
.support-card p,
.route-card p,
.product-copy p,
.contact-panel p {
  color: var(--ink-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link::after {
  content: "->";
  color: var(--bronze);
  font-family: var(--mono);
}

.product-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 22px;
}

.product-card .text-link {
  margin-top: auto;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--divider);
  border-radius: 4px;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  background: rgba(243, 237, 224, 0.62);
}

.product-hero {
  padding: clamp(52px, 8vw, 86px) 0;
  border-bottom: 1px solid var(--divider);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(36px, 6vw, 74px);
  align-items: center;
}

.crumb {
  margin-bottom: 18px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.product-copy h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.mini-panel {
  border: 1px solid var(--divider);
  border-radius: 7px;
  background: var(--paper-deep);
}

.mini-panel header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--divider);
  color: var(--slate);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-panel-body {
  padding: 22px;
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}

.signal:last-child {
  border-bottom: 0;
}

.signal span {
  color: var(--bronze);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.plain-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--divider);
}

.plain-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
  color: var(--ink-muted);
}

.cta-band {
  padding: clamp(58px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--divider);
  background: var(--paper-strong);
}

.cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-row p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.contact-panel {
  padding: 28px;
  border: 1px solid var(--divider);
  border-radius: 7px;
  background: var(--paper-deep);
}

.intent-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.direct-email {
  margin: 16px 0 4px;
  color: var(--ink-muted);
}

.direct-email a {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.intent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
  color: var(--slate);
  text-decoration: none;
}

.intent:last-child {
  border-bottom: 0;
}

.intent strong {
  color: var(--ink);
  font-weight: 500;
}

.intent span {
  color: var(--bronze);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer {
  padding: 42px 0;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--divider);
  padding-top: 22px;
}

.footer-row a {
  color: var(--ink-muted);
}

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

  .product-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card,
  .support-card,
  .product-card:nth-child(3n),
  .support-card:nth-child(4n) {
    border-right: 1px solid var(--divider);
  }

  .product-card:nth-child(2n) {
    border-right: 0;
  }

  .support-card:nth-child(2n) {
    border-right: 0;
  }

  .product-card:nth-child(n+3),
  .support-card:nth-child(n+3) {
    border-top: 1px solid var(--divider);
  }

  .flow,
  .trace-grid,
  .scope-strip {
    grid-template-columns: 1fr;
  }

  .flow-step::after {
    display: none;
  }

  .scope-item,
  .trace-cell {
    border-right: 0;
    border-bottom: 1px solid var(--divider);
  }

  .trace-cell {
    border-bottom-color: var(--void-line);
  }

  .scope-item:last-child,
  .trace-cell:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, var(--max));
  }

  .nav-row {
    min-height: 64px;
  }

  .brand-unit {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--divider);
    background: var(--paper);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--divider);
  }

  .nav-links .button {
    margin-top: 16px;
  }

  h1 {
    font-size: clamp(38px, 11.5vw, 52px);
  }

  .actions .button {
    width: 100%;
  }

  .problem-grid,
  .product-grid,
  .support-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .problem,
  .product-card,
  .support-card,
  .route-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--divider);
  }

  .problem:last-child,
  .product-card:last-child,
  .support-card:last-child,
  .route-card:last-child {
    border-bottom: 0;
  }

  .section-head {
    display: block;
  }

  .footer-row {
    display: block;
  }
}

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

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