@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-latin.woff2") format("woff2");
}

:root {
  --bg: #f8f7f3;
  --surface: #f0eee8;
  --ink: #1a1a18;
  --ink-soft: #2e2d2a;
  --muted: #5c5a55;
  --faint: #8a867c;
  --line: #e2dfd7;
  --line-strong: #b9b4a8;
  --dark: #141412;
  --dark-2: #1a1a18;
  --dark-ink: #f1efea;
  --dark-muted: #cfcbc2;
  --dark-faint: #a8a398;
  --accent: #1f6b4a;
  --accent-deep: #164f37;
  --accent-soft: #c9e6d6;
  --accent-bright: #4cc38a;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-card: 0 30px 60px -36px rgba(26, 26, 24, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

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

button {
  font: inherit;
}

.wrap {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.page {
  position: relative;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10000;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
  box-shadow: 0 0 18px rgba(31, 107, 74, 0.65);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 243, 0.86);
  backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 25px;
  height: 42px;
  overflow: visible;
}

.brand-mark .mark-core {
  transform-origin: 12px 35px;
  animation: core-pulse 5s infinite;
}

.brand-mark .mark-input {
  animation: input-drift 5s infinite;
}

.brand-mark .mark-input:nth-of-type(2) {
  animation-delay: 0.2s;
}

.brand-mark .mark-input:nth-of-type(3) {
  animation-delay: 0.4s;
}

.brand-mark .mark-input:nth-of-type(4) {
  animation-delay: 0.6s;
}

@keyframes input-drift {
  0%,
  12% {
    transform: translateY(0);
    opacity: 1;
  }
  24%,
  92% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes core-pulse {
  0%,
  30%,
  50%,
  100% {
    transform: scale(1);
  }
  38% {
    transform: scale(0.35);
  }
  44% {
    transform: scale(1.25);
  }
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.brand-word strong {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-word span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 550;
}

.nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
}

.nav a:not(.btn-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav a:not(.btn-contact):hover::after,
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a.active {
  color: var(--accent-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s;
}

.btn:hover {
  color: #fff;
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(31, 107, 74, 0.55);
}

.btn-light {
  background: var(--dark-ink);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 18px;
}

.btn .arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  margin-top: 28px;
  max-width: 1100px;
  font-size: clamp(48px, 8.6vw, 84px);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.display-sm {
  margin-top: 28px;
  max-width: 1080px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.h2 {
  margin-top: 24px;
  max-width: 920px;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.h2-sm {
  margin-top: 24px;
  max-width: 900px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.h3 {
  margin: 8px 0 10px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.lede {
  margin-top: 40px;
  max-width: 720px;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.body-lg {
  font-size: 20px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

.accent {
  color: var(--accent);
}

.dark-ink {
  color: var(--dark-ink);
}

.dark-muted {
  color: var(--dark-muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(104px, 13vw, 160px) 0 clamp(96px, 11vw, 144px);
}

.hero-fx,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-fx {
  z-index: 1;
  opacity: 0.95;
}

.hero-grid {
  z-index: 0;
  background-image: linear-gradient(rgba(26, 26, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 24, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 75%);
}

.hero-aura {
  position: absolute;
  z-index: 0;
  width: 900px;
  height: 900px;
  right: -240px;
  top: -260px;
  background: radial-gradient(circle, rgba(31, 107, 74, 0.14), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 247, 243, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  backdrop-filter: blur(8px);
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(31, 107, 74, 0.55);
  animation: status-ping 2.4s infinite;
}

@keyframes status-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 107, 74, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(31, 107, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 107, 74, 0);
  }
}

.hero-note {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--faint);
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note b {
  color: var(--ink);
  font-weight: 650;
}

/* ---------- Sections ---------- */

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

.section-pad {
  padding: clamp(84px, 10vw, 128px) 0;
}

.section-pad-sm {
  padding: clamp(72px, 8vw, 112px) 0;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 72px);
  align-items: flex-start;
}

.split > .col {
  flex: 1 1 420px;
  min-width: 0;
}

.split > .col-wide {
  flex: 1 1 560px;
}

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

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

.dark-section .muted {
  color: var(--dark-muted);
}

.dark-section .faint {
  color: var(--dark-faint);
}

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

/* ---------- Inference / receipt comparison ---------- */

.compare {
  flex: 1 1 480px;
  min-width: 0;
  align-self: end;
  border-bottom: 1px solid var(--line);
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.compare-head {
  padding-bottom: 14px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.compare-row {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 19px;
}

.compare-row .guess {
  color: var(--muted);
}

.compare-row .proof {
  font-weight: 650;
}

.compare-row:hover .proof {
  color: var(--accent);
}

/* ---------- DesignWins stage ---------- */

.dw-stage {
  position: relative;
  margin-top: 64px;
  min-height: clamp(380px, 48vw, 560px);
  border: 1px solid #2b2a27;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 62% 46%, rgba(31, 107, 74, 0.12), transparent 45%),
    linear-gradient(180deg, #111110, #171715 70%, #10100f);
}

.dw-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dw-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(241, 239, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 239, 234, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
  pointer-events: none;
}

.dw-stage-label {
  position: absolute;
  left: 22px;
  top: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #2f2e2a;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-faint);
  background: rgba(16, 16, 15, 0.6);
  backdrop-filter: blur(6px);
}

.dw-stage-label .status-dot {
  width: 5px;
  height: 5px;
}

.dw-stage-caption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dark-faint);
}

.dw-stage-caption b {
  display: block;
  margin-bottom: 4px;
  color: var(--dark-ink);
  font-size: 15px;
}

.dw-receipt {
  position: absolute;
  z-index: 3;
  right: clamp(16px, 4vw, 48px);
  top: 50%;
  width: min(340px, calc(100% - 32px));
  padding: 22px 22px 20px;
  border-radius: 10px;
  background: #fbfaf7;
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(-42%) rotate(4deg) scale(0.94);
  transition: opacity 0.5s var(--ease-out), transform 0.65s var(--ease-spring);
  pointer-events: none;
}

.dw-receipt.show {
  opacity: 1;
  transform: translateY(-50%) rotate(-1.2deg) scale(1);
  pointer-events: auto;
}

.dw-receipt-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--line-strong);
  font-weight: 750;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
}

.dw-receipt-head span:last-child {
  color: var(--muted);
  font-weight: 400;
}

.dw-receipt-title {
  font-weight: 750;
  font-size: 17px;
}

.dw-receipt-sub {
  color: var(--muted);
  font-size: 14px;
}

.dw-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
  font-size: 13px;
}

.dw-receipt-row span:first-child {
  color: var(--muted);
}

.dw-receipt-row span:last-child {
  text-align: right;
  font-weight: 550;
}

.receipt-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.receipt-copy {
  flex: 1;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.receipt-copy:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.dw-steps {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dw-step {
  position: relative;
  min-height: 116px;
  padding: 16px 16px 14px;
  border: 1px solid #34332f;
  border-radius: 10px;
  background: transparent;
  color: var(--dark-ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.dw-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 195, 138, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.dw-step:hover {
  border-color: #56544d;
  transform: translateY(-2px);
}

.dw-step.active {
  background: var(--dark-ink);
  color: var(--ink);
  border-color: var(--dark-ink);
}

.dw-step.active::before {
  opacity: 1;
}

.dw-step .n {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dark-faint);
}

.dw-step.active .n {
  color: var(--accent);
}

.dw-step .t {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dw-step .b {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--dark-muted);
}

.dw-step.active .b {
  color: var(--muted);
}

.dw-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--dark-faint);
}

/* ---------- Priority grid ---------- */

.priorities {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}

.priority {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.priority:first-child {
  border-color: var(--accent);
}

.priority:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.priority .n {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--faint);
}

.priority p {
  font-size: 18px;
  color: var(--muted);
}

/* ---------- CTA cards ---------- */

.cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
}

.cta-card {
  flex: 1 1 420px;
  min-width: 0;
  display: block;
  border-top: 2px solid var(--ink);
  padding: 32px 0 8px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.cta-card:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.cta-card .cta-title {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.15;
  font-weight: 730;
  letter-spacing: -0.03em;
}

.cta-card .cta-link {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 650;
  color: var(--accent);
}

.cta-card:hover .cta-link {
  color: var(--accent-deep);
}

/* ---------- About ---------- */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding: clamp(84px, 10vw, 104px) 0;
}

.about-side {
  flex: 1 1 300px;
  min-width: 0;
}

.about-main {
  flex: 999 1 560px;
  min-width: 0;
}

.about-main p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.about-main p + p {
  margin-top: 16px;
}

.about-main .lede-line {
  margin-top: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 750;
  color: var(--ink);
}

.about-main .quote {
  margin-top: 24px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.about-main .signature {
  margin-top: 20px;
  font-weight: 650;
  color: var(--ink);
}

.teacher-track {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--muted);
}

.teacher-marquee .marquee-track {
  flex-wrap: nowrap;
  gap: 44px;
  font-size: 15px;
  color: var(--muted);
  padding: 6px 0;
}

.teacher-marquee .marquee-track span {
  white-space: nowrap;
}

.teacher-track span {
  transition: color 0.2s, transform 0.2s;
}

.teacher-track span:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  padding: 40px 0;
  font-size: 14px;
}

.footer-inner a {
  color: var(--dark-ink);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent-bright);
}

/* ---------- Engineers page ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 136px) 0 clamp(88px, 10vw, 128px);
}

.page-hero .hero-fx {
  opacity: 0.55;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
}

.query-block {
  flex: 1 1 460px;
  min-width: 0;
}

.query-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-faint);
}

.query-text {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.chips {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid #45433e;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
  color: #e6e1d6;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--accent-bright);
  background: rgba(76, 195, 138, 0.1);
  color: var(--dark-ink);
}

.families {
  flex: 1 1 460px;
  min-width: 0;
  margin-top: 14px;
  border-bottom: 1px solid #34332f;
}

.family {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid #34332f;
  padding: 20px 0;
  transition: padding-left 0.3s var(--ease-out), background 0.3s;
}

.family:hover {
  padding-left: 10px;
  background: rgba(76, 195, 138, 0.04);
}

.family-name {
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 730;
  letter-spacing: -0.02em;
}

.family-meta {
  font-size: 15px;
  color: var(--dark-faint);
  text-align: right;
}

.capability-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 56px 72px;
}

.capability {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.capability:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.capability .n {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--faint);
}

.capability p {
  font-size: 17px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.compare-table thead th {
  border-top: 0;
  padding-bottom: 16px;
}

.compare-table thead th:first-child {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 650;
}

.compare-table thead th:not(:first-child) {
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -0.02em;
}

.compare-table tbody th {
  font-weight: 500;
}

.compare-table tbody tr {
  transition: background 0.2s;
}

.compare-table tbody tr:hover {
  background: rgba(31, 107, 74, 0.045);
}

.compare-table td {
  color: var(--ink-soft);
}

.compare-table td.ok {
  color: var(--accent);
  font-weight: 650;
}

.evidence-card {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 26px;
  font-size: 16px;
  box-shadow: 0 20px 40px -32px rgba(26, 26, 24, 0.4);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.evidence-card:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: 0 30px 60px -34px rgba(26, 26, 24, 0.5);
}

.evidence-card.evidence-open {
  border-color: var(--accent);
  box-shadow: 0 30px 60px -30px rgba(31, 107, 74, 0.45);
}

.evidence-card.evidence-open .value {
  color: var(--accent);
}

.evidence-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.evidence-card .value {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.evidence-card .checks {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

.doc-figure {
  margin: 0;
}

.doc-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  background: #fff;
}

.doc-frame img {
  width: 100%;
  height: auto;
}

.doc-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(76, 195, 138, 0.16), transparent);
  animation: doc-scan 5.5s infinite linear;
  pointer-events: none;
}

@keyframes doc-scan {
  0% {
    top: -30%;
  }
  100% {
    top: 110%;
  }
}

.doc-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Manufacturers page ---------- */

.timeline {
  margin-top: 88px;
  position: relative;
}

.timeline-heads {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.timeline-head {
  flex: 1 1 0;
  min-width: 0;
  border-top: 3px solid var(--line-strong);
  padding-top: 14px;
}

.timeline-head.us {
  flex: 3 1 0;
  border-color: var(--accent);
}

.timeline-head p {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
}

.timeline-head span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.timeline-track {
  position: relative;
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.timeline-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 16px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.timeline-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--timeline-progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width 0.4s var(--ease-out);
}

.timeline-step {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  opacity: 0.45;
  transition: opacity 0.35s, transform 0.35s;
}

.timeline-step.on {
  opacity: 1;
  transform: translateY(-2px);
}

.timeline-dot {
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.3s, box-shadow 0.3s;
}

.timeline-step.on .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(31, 107, 74, 0.12);
}

.timeline-step p {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 650;
}

.timeline-step:not(.on) p {
  color: var(--muted);
  font-weight: 500;
}

.doc-to-table {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.doc-card {
  flex: 0 1 300px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  padding: 28px 26px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.doc-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(76, 195, 138, 0.22), transparent);
  animation: doc-scan 4.5s infinite linear;
}

.doc-line {
  height: 8px;
  border-radius: 2px;
  background: #ece9e2;
  margin-top: 10px;
}

.doc-line.dark {
  height: 12px;
  width: 50%;
  background: var(--ink);
  margin-top: 0;
}

.doc-line.green {
  background: var(--accent-soft);
}

.doc-card .caption {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.transform-arrow {
  flex: 0 0 auto;
  font-size: 40px;
  color: var(--faint);
  animation: arrow-nudge 2.4s infinite;
}

@keyframes arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

.attr-table {
  flex: 1 1 420px;
  min-width: 0;
  display: grid;
  gap: 0;
}

.attr-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #34332f;
  font-size: 15px;
  transition: background 0.2s, padding-left 0.2s;
}

.attr-head {
  border-top: 0;
  padding-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-faint);
}

.attr-row:not(.attr-head):hover {
  background: rgba(76, 195, 138, 0.05);
  padding-left: 6px;
}

.attr-row b {
  font-weight: 700;
}

.attr-row .src {
  color: var(--dark-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(104px, 13vw, 152px) 0;
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(76, 195, 138, 0.13), transparent 55%);
  animation: aura-breathe 6s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes aura-breathe {
  from {
    transform: scale(0.95);
    opacity: 0.7;
  }
  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

.final-cta .h2 {
  position: relative;
  margin-inline: auto;
  max-width: 900px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
}

.final-cta .btn {
  position: relative;
  margin-top: 48px;
}

/* ---------- Engagement layer ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9997;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(31, 107, 74, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.2s;
}

body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: var(--accent);
}

.confetti-piece {
  position: fixed;
  z-index: 9996;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  will-change: transform, opacity;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9996;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: marquee 22s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--faint), transparent);
  animation: cue 1.8s infinite;
}

@keyframes cue {
  0% {
    transform: scaleY(0.2);
    transform-origin: top;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 0;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .wrap {
    width: min(1240px, calc(100% - 40px));
  }

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

  .dw-receipt {
    right: 16px;
  }

  .timeline-heads {
    flex-wrap: wrap;
  }

  .timeline-head,
  .timeline-head.us {
    flex: 1 1 100%;
    border-top-width: 2px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .wrap {
    width: min(1240px, calc(100% - 32px));
  }

  .header-inner {
    padding: 14px 0;
  }

  .brand-word span {
    display: none;
  }

  .nav {
    width: 100%;
    gap: 12px 18px;
    font-size: 14px;
  }

  .nav .btn-contact {
    margin-left: auto;
  }

  .hero,
  .page-hero {
    padding-top: 88px;
    padding-bottom: 84px;
  }

  .display,
  .display-sm {
    letter-spacing: -0.035em;
  }

  .lede {
    margin-top: 28px;
  }

  .compare-head,
  .compare-row {
    gap: 16px;
    font-size: 16px;
  }

  .dw-stage {
    min-height: 460px;
  }

  .dw-receipt {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 74px;
    width: auto;
  }

  .dw-receipt.show {
    transform: translateY(0) rotate(-1deg) scale(1);
  }

  .dw-stage-caption {
    right: 16px;
    max-width: none;
  }

  .dw-steps {
    grid-template-columns: 1fr;
  }

  .dw-step {
    min-height: 0;
  }

  .priorities,
  .capability-grid {
    gap: 32px;
  }

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

  .about {
    gap: 36px;
  }

  .timeline {
    margin-top: 56px;
  }

  .timeline-track {
    flex-wrap: wrap;
    gap: 24px 8px;
  }

  .timeline-step {
    flex: 1 1 40%;
  }

  .timeline-line {
    display: none;
  }

  .doc-to-table {
    gap: 32px;
  }

  .transform-arrow {
    display: none;
  }

  .attr-row {
    grid-template-columns: 1.2fr 1fr 0.7fr;
    font-size: 13px;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

.no-wasm .hero-fx,
.no-wasm .dw-fx {
  opacity: 0.25;
  background: radial-gradient(circle at 50% 50%, rgba(31, 107, 74, 0.18), transparent 60%);
}
