/* ==========================================================================
   M n T Technologies — mntltd.ai
   Dark, technical, premium. No dependencies, no build step.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-var-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --ground:   #08090B;
  --surface:  #101216;
  --raised:   #16181E;
  --line:     rgba(255, 255, 255, .08);
  --line-2:   rgba(255, 255, 255, .16);

  --text:     #F4F5F7;
  --muted:    #9AA0AA;
  --dim:      #767D87;

  --accent:   #2E6BFF;
  --accent-2: #7FA8FF;
  --accent-bg: rgba(46, 107, 255, .12);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --sec-y: clamp(4.5rem, 10vw, 9rem);
  --r: 10px;
  --r-lg: 16px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--accent); color: #fff;
  padding: .7rem 1.25rem; border-radius: 0 0 var(--r) var(--r);
  font-size: .875rem; font-weight: 500;
  transition: transform .18s ease;
}
.skip:focus { transform: translate(-50%, 0); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 1.25rem;
}
.h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  margin: 0 0 1.25rem;
  max-width: 20ch;
}
.sec__lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 62ch;
  margin: 0 0 3.5rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: var(--r);
  font-size: .9375rem; font-weight: 500;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
  text-align: center;
}
.btn--sm { padding: .5rem 1rem; font-size: .8125rem; }
.btn--lg { padding: .875rem 1.6rem; font-size: 1rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #1F57DB; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,.04); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.is-stuck {
  background: rgba(8, 9, 11, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--gut);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: .55rem; }
.nav__mark { width: 28px; height: 28px; flex: none; color: var(--text); }
.nav__word { font-size: .9375rem; font-weight: 500; letter-spacing: .18em; }

.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links > a:not(.btn) {
  font-size: .875rem; color: var(--muted);
  transition: color .18s ease;
}
.nav__links > a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-2); border-radius: var(--r);
  cursor: pointer;
}
.nav__bars { display: block; width: 18px; }
.nav__bars i {
  display: block; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav__bars i + i { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu {
  position: fixed; inset: 68px 0 0 0;
  background: var(--ground);
  padding: 2rem var(--gut) 3rem;
  overflow-y: auto;
}
.menu__links { display: flex; flex-direction: column; gap: .25rem; }
.menu__links a:not(.btn) {
  font-size: 1.375rem; padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.menu__cta { margin-top: 1.75rem; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 18vh, 11rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
  pointer-events: none;
}
.hero__inner { position: relative; padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero__title {
  font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  max-width: 17ch;
  margin: 0 0 1.5rem;
}
.hero__title-2 { color: var(--muted); }
.hero__lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  max-width: 56ch;
  margin: 0 0 2.25rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.proof {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(12, 14, 18, .6);
}
.proof__inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .75rem 1.75rem;
  padding-block: 1.125rem;
}
.proof__label {
  font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); margin: 0;
}
.proof__list { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.proof__list a {
  font-size: .875rem; color: var(--muted); letter-spacing: .04em;
  transition: color .18s ease;
}
.proof__list a:hover { color: var(--text); }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec-y); }
.sec--alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about__copy p:not(.eyebrow) { color: var(--muted); max-width: 60ch; }

.duality { display: grid; gap: 0; }
.duality__panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  background: var(--surface);
  display: grid; gap: .4rem;
}
.duality__panel--b { background: var(--raised); }
.duality__num { font-family: var(--mono); font-size: .6875rem; color: var(--accent-2); letter-spacing: .1em; }
.duality__label { font-size: 1.0625rem; font-weight: 500; }
.duality__note { font-size: .875rem; color: var(--muted); line-height: 1.55; }
.duality__join {
  width: 1px; height: 36px; margin-inline: auto;
  background: linear-gradient(to bottom, var(--line), var(--accent));
}
.sec--alt .duality__panel { background: var(--ground); }

/* ---------- capability cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card {
  position: relative;
  background: var(--ground);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: background-color .25s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(46,107,255,.10), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 1.25rem;
  border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--accent-2);
  transition: border-color .25s ease, color .25s ease;
}
.card:hover .card__icon { border-color: var(--accent); color: var(--accent-2); }
.card__icon svg { width: 22px; height: 22px; }
.card__title { font-size: 1.0625rem; margin-bottom: .6rem; letter-spacing: -0.01em; }
.card__text { font-size: .9375rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- pipeline ---------- */
.pipe {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.pipe__node {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ground);
  padding: 1.25rem 1.125rem 1.375rem;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.sec .pipe__node { background: var(--surface); }
.pipe__node:hover, .pipe__node:focus-within {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.pipe__node::after {
  content: '';
  position: absolute; top: 50%; right: -1rem;
  width: 1rem; height: 1px;
  background: linear-gradient(to right, var(--accent), rgba(46,107,255,.25));
}
.pipe__node:last-child::after { display: none; }
.pipe__node--key { border-color: rgba(46,107,255,.55); background: #101A2E !important; }
.pipe__num { font-family: var(--mono); font-size: .6875rem; color: var(--dim); letter-spacing: .1em; }
.pipe__node--key .pipe__num { color: var(--accent-2); }
.pipe__name { font-size: 1rem; margin: .5rem 0 .5rem; letter-spacing: -0.01em; }
.pipe__note { font-size: .8125rem; color: var(--muted); margin: 0; line-height: 1.5; }

.pillars {
  display: flex; flex-wrap: wrap; gap: .625rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.pillars li {
  font-family: var(--mono); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: .4rem .9rem;
}

/* ---------- matrix ---------- */
.matrix {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ground);
  padding: clamp(1rem, 2vw, 1.75rem);
}
.matrix__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.matrix__table th, .matrix__table td { text-align: center; }
.matrix__table thead th {
  font-family: var(--mono); font-size: .6875rem; font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim); padding: 0 .35rem .9rem;
  vertical-align: bottom;
  line-height: 1.35;
}
.matrix__table thead th:first-child,
.matrix__table tbody th { text-align: left; width: 22%; }
.matrix__table tbody th {
  font-weight: 400; padding: 1rem .5rem 1rem 0;
  border-top: 1px solid var(--line);
}
.matrix__table tbody td { border-top: 1px solid var(--line); }
.matrix__name { display: block; font-size: .9375rem; color: var(--text); }
.matrix__cat { display: block; font-family: var(--mono); font-size: .6875rem; color: var(--dim); margin-top: .15rem; }
.matrix__table td:not(.on)::after {
  content: '–'; color: #3A3F47; font-size: .875rem;
}
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}

/* ---------- ventures ---------- */
.vent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.vent__card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.vent__card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--brand, var(--accent));
  opacity: 0; transition: opacity .3s ease;
}
.vent__card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.vent__card:hover::before { opacity: 1; }
.vent__logo {
  height: 34px; display: flex; align-items: center;
  margin-bottom: 1.5rem;
}
.vent__logo img { max-height: 30px; width: auto; object-fit: contain; }
.vent__name {
  font-size: 1.375rem; margin-bottom: .35rem;
}
.vent__cat {
  font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand, var(--accent-2));
  margin: 0 0 1rem;
}
.vent__text { font-size: .9375rem; color: var(--muted); line-height: 1.65; margin: 0 0 1.5rem; }
.vent__link {
  margin-top: auto; align-self: flex-start;
  font-size: .875rem; font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.vent__link:hover { color: var(--brand, var(--accent-2)); border-color: currentColor; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
  padding-top: 2.5rem;
}
.steps::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line);
}
.steps::after {
  content: '';
  position: absolute; top: 0; left: 0; height: 1px;
  width: var(--progress, 0%);
  background: var(--accent);
  transition: width .2s linear;
}
.step { position: relative; }
.step::before {
  content: '';
  position: absolute; top: -2.5rem; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--raised); border: 1px solid var(--line-2);
  transform: translateY(-3px);
  transition: background-color .3s ease, border-color .3s ease;
}
.step.is-visible::before { background: var(--accent); border-color: var(--accent); }
.step__num { font-family: var(--mono); font-size: .75rem; color: var(--dim); letter-spacing: .1em; }
.step__name { font-size: 1.125rem; margin: .5rem 0 .6rem; }
.step__text { font-size: .875rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- why ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.why__item {
  background: var(--ground);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.why__item--wide { grid-column: span 2; }
.why__title { font-size: 1.0625rem; margin-bottom: .6rem; }
.why__text { font-size: .9375rem; color: var(--muted); margin: 0; line-height: 1.6; }
.why__text a { color: var(--accent-2); border-bottom: 1px solid transparent; }
.why__text a:hover { border-bottom-color: currentColor; }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__details {
  display: grid; gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.contact__details dt {
  font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); margin-bottom: .3rem;
}
.contact__details dd { margin: 0; font-size: .9375rem; line-height: 1.6; }
.contact__details a { border-bottom: 1px solid var(--line-2); }
.contact__details a:hover { border-bottom-color: var(--text); }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ground);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .8125rem; color: var(--muted);
  margin-bottom: .45rem; font-weight: 500;
}
.req { color: var(--accent-2); }
.field input, .field textarea {
  font: inherit; font-size: .9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: .7rem .85rem;
  width: 100%;
  transition: border-color .18s ease, background-color .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.28); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--raised);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.field.has-error input, .field.has-error textarea { border-color: #FF6B6B; }
.err {
  font-size: .75rem; color: #FF8F8F;
  margin: .4rem 0 0; min-height: 0;
}
.err:empty { display: none; }

.hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.form__actions {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: .25rem;
}
.form__note { font-size: .8125rem; color: var(--dim); margin: 0; }

.form__status {
  grid-column: 1 / -1;
  margin: 0; font-size: .875rem; line-height: 1.6;
  border-radius: var(--r);
  padding: .875rem 1rem;
  border: 1px solid var(--line);
}
.form__status:empty { display: none; }
.form__status.is-ok { border-color: rgba(53, 195, 158, .45); background: rgba(53, 195, 158, .10); color: #7DE3C6; }
.form__status.is-bad { border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .08); color: #FFB4B4; }
.form__status a { color: inherit; border-bottom: 1px solid currentColor; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--ground);
}
.foot__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.foot__name { font-size: 1rem; font-weight: 500; margin: 1.1rem 0 .3rem; }
.foot__tag { font-size: .8125rem; color: var(--dim); margin: 0; letter-spacing: .02em; }
.foot__h {
  font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 1rem; font-weight: 400;
}
.foot__col li { font-size: .875rem; color: var(--muted); margin-bottom: .6rem; line-height: 1.5; }
.foot__col a { transition: color .18s ease; }
.foot__col a:hover { color: var(--text); }

.foot__legal {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.foot__legal p { margin: 0; font-size: .8125rem; color: var(--dim); }
.foot__legal ul { display: flex; gap: 1.5rem; }
.foot__legal a { font-size: .8125rem; color: var(--muted); }
.foot__legal a:hover { color: var(--text); }

/* ---------- legal pages ---------- */
.legal { padding-top: clamp(7rem, 14vh, 9rem); padding-bottom: var(--sec-y); }
.legal__banner {
  border: 1px solid rgba(255, 176, 46, .4);
  background: rgba(255, 176, 46, .08);
  color: #FFCF86;
  border-radius: var(--r);
  padding: 1rem 1.125rem;
  font-size: .875rem;
  margin-bottom: 2.5rem;
}
.legal__banner strong { color: #FFDFAE; }
.legal__body { max-width: 72ch; }
.legal__body h2 {
  font-size: 1.25rem; margin: 2.5rem 0 .75rem;
}
.legal__body h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.legal__body p, .legal__body li { color: var(--muted); font-size: .9375rem; }
.legal__body ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; }
.legal__body li { margin-bottom: .45rem; }
.legal__body a { color: var(--accent-2); border-bottom: 1px solid transparent; }
.legal__body a:hover { border-bottom-color: currentColor; }
.legal__meta { font-family: var(--mono); font-size: .75rem; color: var(--dim); }

/* ---------- reveal ----------
   Progressive enhancement: content is only hidden when the .js class is
   present, which an inline script in <head> adds before first paint. With
   JavaScript disabled or broken, every .reveal stays fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__item--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.25rem; }
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipe__node::after { display: none; }
}

@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .vent { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 80px; }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why__item--wide { grid-column: span 1; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .pipe { grid-template-columns: minmax(0, 1fr); gap: .625rem; }
  .form { grid-template-columns: minmax(0, 1fr); }

  /* matrix collapses from a table to per-venture chips */
  .matrix__table, .matrix__table tbody, .matrix__table tr,
  .matrix__table tbody th, .matrix__table td { display: block; width: auto; }
  .matrix__table thead { display: none; }
  .matrix__table { table-layout: auto; }
  .matrix__table tr {
    border-top: 1px solid var(--line);
    padding-block: 1.125rem;
  }
  .matrix__table tr:first-child { border-top: 0; padding-top: 0; }
  .matrix__table tbody th {
    border-top: 0; padding: 0 0 .75rem;
  }
  .matrix__table td:not(.on) { display: none; }
  .matrix__table td.on {
    display: inline-flex; align-items: center; gap: .45rem;
    border-top: 0;
    font-size: .75rem; color: var(--muted);
    border: 1px solid var(--line-2); border-radius: 999px;
    padding: .3rem .7rem;
    margin: 0 .35rem .35rem 0;
  }
  .matrix__table td.on::before { content: attr(data-label); }
  .dot { width: 6px; height: 6px; box-shadow: none; }
}

@media (max-width: 420px) {
  .hero__cta .btn { width: 100%; justify-content: center; }
  .form__actions .btn { width: 100%; justify-content: center; }
  .foot__inner { grid-template-columns: minmax(0, 1fr); }
  .proof__list { gap: .4rem 1.25rem; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
  .vent__card:hover, .pipe__node:hover { transform: none; }
}
