/* ==========================================================
   Josh Deitel — personal site
   ========================================================== */

:root {
  color-scheme: dark;        /* the whole site is dark, so native controls and scrollbars follow */

  /* Surfaces */
  --ink: #171b28;             /* deep blue-black */
  --ink-2: #1f2433;
  --ink-line: rgba(255, 255, 255, 0.09);
  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --white: #fbfaf7;

  /* Text */
  --text: #1a1d24;
  --text-2: #5a5f6b;
  --text-inv: #eceef3;
  --text-inv-2: #9ca3b5;
  --line: rgba(23, 27, 40, 0.12);

  /* Brand */
  --deep-blue: #32374a;       /* Apple's iPhone 17 Pro "Deep Blue" */
  --blue: #354473;            /* deep blue, tuned for text on light backgrounds */
  --blue-light: #a9b7df;      /* for text and lines on dark backgrounds */
  --burgundy: #7a2638;
  --burgundy-light: #d38c9b;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(53, 68, 115, 0.2); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2, h3, blockquote { text-wrap: balance; }
p { text-wrap: pretty; }   /* avoid single-word last lines */
.nowrap { white-space: nowrap; }
p { margin: 0 0 1em; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
em { font-style: italic; }
[hidden] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
h2 em, blockquote em { color: var(--blue); }
.section--dark h2 em, .hero h1 em { color: var(--blue-light); }
h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 8px; }
.lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--text-2); max-width: 62ch; margin-top: 24px; }
.section--dark .lead { color: var(--text-inv-2); }

.label, .eyebrow {
  display: flex; align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.section--dark .label, .hero .eyebrow { color: var(--blue-light); }
.section--dark .label--muted { color: var(--text-inv-2); }
.label__num { display: inline-flex; align-items: center; color: var(--burgundy); }
.label__num::after {
  content: ""; width: 28px; height: 1px; margin: 0 12px;
  background: currentColor; opacity: .7; transform-origin: left;
}
.section--dark .label__num { color: var(--burgundy-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--primary { background: var(--text-inv); color: var(--deep-blue); }
.btn--primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 12px 32px -14px rgba(169, 183, 223, .6); }
.btn--ghost { border-color: rgba(255,255,255,.25); color: var(--text-inv); }
.btn--ghost:hover { border-color: var(--blue-light); }
.btn--deep { background: var(--deep-blue); color: #fff; white-space: nowrap; }
.btn--deep:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgba(50, 55, 74, .7); }
.btn--full { width: 100%; }
.btn__arrow { display: inline-block; margin-left: 10px; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);   /* clear of the notch on phones */
  color: var(--text-inv);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(23, 27, 40, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--ink-line);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 14px; text-decoration: none; color: var(--text-inv-2);
  position: relative; transition: color .25s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text-inv); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--blue-light);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links .nav__cta {
  color: var(--text-inv); border: 1px solid rgba(255,255,255,.25); padding: 9px 18px; border-radius: 2px;
}
.nav__links .nav__cta:hover { border-color: var(--blue-light); color: #fff; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 0; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--text-inv); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Reading progress along the bottom edge of the nav */
.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--burgundy-light));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(ellipse 55% 60% at 82% 28%, rgba(50, 55, 74, 0.8), rgba(50, 55, 74, 0) 70%),
    var(--ink);
  color: var(--text-inv);
  display: flex; flex-direction: column;
  padding-top: 120px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(23,27,40,.92) 0%, rgba(23,27,40,.4) 60%, rgba(23,27,40,0) 100%);
}
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-bottom: clamp(56px, 8vh, 96px);
  will-change: transform, opacity;
}
.hero__title {
  --word-base: 150ms;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin-bottom: 28px;
}
.hero__sub { font-size: clamp(17px, 1.6vw, 20px); color: rgba(236, 238, 243, 0.78); max-width: 54ch; margin-bottom: 40px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats { position: relative; z-index: 2; width: 100%; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink-line); }
.stat { padding: 28px 28px 36px 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.stat__num { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.01em; }
.stat__label { font-size: 14px; color: var(--text-inv-2); line-height: 1.5; max-width: 32ch; }

/* ---------- Sections ---------- */
.section { --bg: var(--white); padding: var(--section-y) 0; position: relative; background: var(--bg); }
.section--paper { --bg: var(--paper); }
.section--dark {
  --bg: var(--ink);
  color: var(--text-inv);
  /* Re-point the light-theme tokens so every component inside adapts */
  --text: var(--text-inv);
  --text-2: var(--text-inv-2);
  --line: var(--ink-line);
  --white: rgba(255, 255, 255, 0.03);
  --blue: var(--blue-light);
  --burgundy: var(--burgundy-light);
}
.section--alt { --bg: #1c2131; }       /* a slightly lighter navy, to separate neighbouring dark sections */
.section--deep { --bg: var(--deep-blue); }
.section--dark ::selection { background: rgba(169, 183, 223, 0.3); }
.section__head { margin-bottom: clamp(40px, 5vw, 64px); }
.section--grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0) 40%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0) 40%);
}
.section--grid > .container { position: relative; }

/* ---------- Services ---------- */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.offer { border-top: 1px solid var(--line); padding-top: 24px; }
.offer h3 { margin-bottom: 10px; }
.offer p { color: var(--text-2); margin: 0; max-width: 40ch; }
.offers__more { margin: clamp(32px, 4vw, 48px) 0 0; color: var(--text-2); font-size: 15.5px; max-width: 64ch; }

/* ---------- AI & Data ---------- */

.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--ink-line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.feature h3 { margin-bottom: 16px; }
.feature p { color: var(--text-inv-2); }
.feature p:last-child { margin-bottom: 0; }
.feature__viz { display: flex; align-items: center; justify-content: center; }

.pipeline { width: 100%; max-width: 440px; }
.pipeline__dot { fill: rgba(255,255,255,.18); }
.pipeline__raw rect { fill: rgba(255,255,255,.22); }
.pipeline__label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; fill: var(--text-inv-2); }
.pipeline__flow { fill: none; stroke: var(--blue-light); stroke-width: 1.2; stroke-dasharray: 3 5; animation: dash 2.2s linear infinite; opacity: .8; }
.pipeline__grid rect, .pipeline__grid line, .pipeline__model line, .pipeline__out rect:first-child, .pipeline__out line { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1; }
.pipeline__model circle { fill: var(--ink); stroke: rgba(255,255,255,.6); stroke-width: 1.2; }
.pipeline__out rect:not(:first-child) { fill: rgba(255,255,255,.35); }
.pipeline .is-accent { fill: var(--blue-light) !important; stroke: var(--blue-light); }
.pipeline .is-accent-2 { fill: var(--burgundy-light) !important; }
@keyframes dash { to { stroke-dashoffset: -32; } }

/* ---------- Problems ---------- */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.pain {
  display: grid; grid-template-columns: 32px 1fr; padding: 22px 0; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.4;
}
.pain::before { content: "→"; font-family: var(--sans); font-size: 16px; line-height: 1.9; color: var(--burgundy); }

/* ---------- Case studies ---------- */
.feature + .feature { margin-top: clamp(16px, 2vw, 24px); }
.feature--plain { grid-template-columns: 1fr; }
.car { display: grid; gap: 14px; margin: 20px 0 0; }
.car div { border-top: 1px solid var(--line); padding-top: 12px; }
.car dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 4px; }
.car dd { color: var(--text-2); font-size: 15.5px; }
.car--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.industries-line {
  margin: clamp(32px, 4vw, 48px) 0 0; font-family: var(--mono); font-size: 12px; line-height: 2.1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.industries-line__label { color: var(--blue); margin-right: 14px; }

.confidential {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 180px 1fr auto; gap: 20px clamp(24px, 4vw, 56px); align-items: center;
  padding: 32px clamp(24px, 3.5vw, 44px);
  background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--burgundy);
}
.confidential__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy); margin: 0; }
.confidential__text { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; max-width: 58ch; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.quote {
  margin: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-2); }
.quote figcaption strong { display: block; font-weight: 500; color: var(--text); }
.quote__photo { width: 44px; height: 44px; border-radius: 50%; background: var(--line); flex: none; object-fit: cover; }

/* The Deep Blue button turns light on dark sections */
.section--dark .btn--deep { background: var(--text-inv); color: var(--deep-blue); }
.section--dark .btn--deep:hover { background: #fff; box-shadow: 0 12px 32px -14px rgba(169, 183, 223, .6); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 280px 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__facts { border-bottom: 1px solid var(--line); }
.about__facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.about__facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.about__facts dd { font-size: 15.5px; }
.about__main .lead { color: var(--text); margin-top: 0; margin-bottom: 20px; }
.about__main > p:not(.lead):not(.label) { color: var(--text-2); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__direct { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.14); }
.contact__direct li { display: grid; grid-template-columns: 100px 1fr; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 15.5px; }
.contact__direct li > span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-2); padding-top: 4px; }
.contact__direct a {
  justify-self: start; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .25s;
}
.contact__direct a:hover { color: #fff; background-size: 100% 1px; }
.contact__wa { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact__direct .contact__chat {
  display: inline-flex; align-items: center; padding: 8px 14px; font-size: 13.5px; line-height: 1;
  color: var(--text-inv); border: 1px solid rgba(255,255,255,.25); border-radius: 2px; background: none;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.contact__direct .contact__chat:hover { border-color: var(--blue-light); color: #fff; }
.contact__chat .btn__arrow { margin-left: 8px; }
.contact__chat:hover .btn__arrow { transform: translate(2px, -2px); }
.contact__book { margin-top: 28px; }

.form { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3.5vw, 44px); border: 1px solid rgba(255,255,255,.12); background: rgba(23, 27, 40, 0.28); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-inv-2); letter-spacing: .01em; }
.form .opt { opacity: .6; }
.form input, .form select, .form textarea {
  font: 400 16px/1.5 var(--sans); color: var(--text-inv);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.22);
  padding: 8px 0 10px; border-radius: 0; outline: none; transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%239ca3b5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; cursor: pointer;
}
.form select option { background: var(--ink-2); color: var(--text-inv); }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { border-bottom-color: var(--blue-light); }
.form .is-invalid { border-bottom-color: var(--burgundy-light); }
.form button { margin-top: 8px; }
.form__status { min-height: 1.4em; margin: 0; font-size: 14px; color: var(--blue-light); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--text-inv-2); border-top: 1px solid var(--ink-line); font-size: 13.5px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer a { text-decoration: none; transition: color .25s; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a:hover { color: var(--text-inv); }

/* ==========================================================
   Motion — only applies once main.js has added the "js" class
   ========================================================== */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Blocks fade up as they enter the viewport */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* List items rise in one after another */
.js [data-stagger]:not(.is-in) > * { opacity: 0; }
.js [data-stagger].is-in > * {
  animation: riseIn .8s var(--ease) both;
  animation-delay: calc(var(--base, 0ms) + var(--i, 0) * var(--step, 60ms));
}

/* Headlines rise word by word from behind a mask */
.split .word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0.06em 0.12em 0.16em 0; margin: -0.06em -0.12em -0.16em 0;
}
.split .word__inner { display: inline-block; }
.js .split:not(.is-split) { visibility: hidden; }
.js .split .word__inner {
  transform: translateY(115%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--word-base, 120ms) + var(--i, 0) * 45ms);
}
.js .is-in .split .word__inner { transform: none; }

/* Section-number rules draw in */
.js .label__num::after { transform: scaleX(0); transition: transform .9s var(--ease) .3s; }
.js .is-in .label__num::after { transform: scaleX(1); }

/* Data pipeline assembles stage by stage */
.js .feature .pl { opacity: 0; transition: opacity .9s var(--ease); transition-delay: calc(300ms + var(--d, 0) * 220ms); }
.js .feature.is-in .pl { opacity: 1; }
.js .feature.is-in .pipeline__flow.pl { opacity: .8; }

/* Hero entrance */
.js .hero__inner:not(.is-in) .eyebrow,
.js .hero__inner:not(.is-in) .hero__sub,
.js .hero__inner:not(.is-in) .hero__ctas { opacity: 0; }
.hero__inner.is-in .eyebrow { animation: riseIn .9s var(--ease) both; }
.hero__inner.is-in .hero__sub { animation: riseIn .9s var(--ease) .6s both; }
.hero__inner.is-in .hero__ctas { animation: riseIn .9s var(--ease) .75s both; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink);
    padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--ink-line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open { background: var(--ink); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { font-size: 17px; padding: 16px 0; border-bottom: 1px solid var(--ink-line); }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__links .nav__cta { margin-top: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.25); }

  .pains, .offers, .feature, .car--row, .quotes, .about, .contact__grid { grid-template-columns: 1fr; }
  .feature__viz { order: -1; }
  .confidential { grid-template-columns: 1fr; }
  .confidential .btn { justify-self: start; }
}

@media (max-width: 700px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 20px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--ink-line); }
}

@media (max-width: 560px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .confidential .btn { justify-self: stretch; }
  .form__row { grid-template-columns: 1fr; }
  .contact__direct li { grid-template-columns: 80px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js [data-stagger] > *, .js .split .word__inner, .js .feature .pl,
  .js .hero__inner .eyebrow, .js .hero__inner .hero__sub, .js .hero__inner .hero__ctas {
    opacity: 1 !important; transform: none !important;
  }
  .js .feature .pipeline__flow.pl { opacity: .8 !important; }
  .js .label__num::after { transform: none !important; }
}
