/* ==========================================================
   Radztech — corporate site
   Minimal, light, single accent (brand orange)
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --ink: #0c0c0d;
  --ink-2: #3a3a3f;
  --muted: #6b6b72;
  --line: #e8e8ea;
  --line-strong: #d6d6da;
  --accent: #ff7a00;
  --accent-ink: #c25a00;
  --dark: #0c0c0d;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1160px;
  --gutter: 24px;
  --section-y: 120px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --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(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

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

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

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

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

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

/* ---------- Primitives ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn--dark {
  background: var(--dark);
  color: #fff;
}
.btn--dark:hover {
  background: #2a2a2e;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #fff;
}
.btn--ghost:hover {
  border-color: var(--ink);
}

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

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn--outline-light:hover {
  border-color: #fff;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.link span {
  transition: transform 0.2s var(--ease);
}
.link:hover {
  color: var(--accent-ink);
}
.link:hover span {
  transform: translateX(3px);
}

.pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  background: #fff1e5;
  vertical-align: 2px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

.nav__logo {
  flex: none;
}

.nav__logo img {
  height: 28px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav__links > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav__links > a:hover {
  color: var(--ink);
}

.nav__mobile-actions {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav__signin:hover {
  color: var(--ink);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.nav__toggle span:first-child {
  top: 16px;
}
.nav__toggle span:last-child {
  top: 23px;
}
.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

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

.hero {
  padding: 112px 0 88px;
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 22ch;
}

.hero__lede {
  margin-top: 28px;
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 96px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 28px 24px 0 0;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stat dd {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat dt {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Logos ---------- */

.logos {
  padding: 48px 0 72px;
}

.logos__label {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 48px;
  margin-top: 32px;
}

.logos__row img {
  height: 48px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}

.logos__row img:hover {
  filter: none;
  opacity: 1;
}

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

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

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 720px;
}

.section__head h2 {
  margin-top: 20px;
  font-size: clamp(32px, 4vw, 48px);
}

.section__lede {
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 600px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.split__aside {
  position: sticky;
  top: 108px;
}

.split__aside .link {
  margin-top: 28px;
}

/* ---------- Platforms ---------- */

.platforms {
  display: grid;
  gap: 24px;
  margin-top: 64px;
}

.platform {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.platform__body {
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.platform__tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
}

.platform h3 {
  margin-top: 10px;
  font-size: 32px;
}

.platform__body > p:not(.platform__tag) {
  margin-top: 16px;
  color: var(--ink-2);
}

.checks {
  display: grid;
  gap: 10px;
  margin: 28px 0 32px;
}

.checks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.platform__body .link {
  margin-top: auto;
}

.platform__media {
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.platform__media img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -8px rgba(0, 0, 0, 0.12);
}

.platform:nth-child(2) .platform__media img {
  box-shadow: none;
  border-radius: 0;
}

/* Radztech ERP card: cobalt (the app's cobalt theme, #1565c0), so the third
   product reads as a different kind of offer */

.platform--erp {
  --cobalt: #1565c0;
  --cobalt-deep: #0d47a1;
  --cobalt-tint: #e3f2fd;
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.platform--erp .platform__tag {
  color: var(--cobalt-tint);
}

.platform--erp .platform__body > p:not(.platform__tag),
.platform--erp .checks li {
  color: rgba(255, 255, 255, 0.85);
}

.platform--erp .checks li::before {
  border-color: var(--cobalt-tint);
}

.platform--erp .link {
  color: #fff;
}

.platform--erp .link:hover {
  color: var(--cobalt-tint);
}

.platform--erp .platform__media {
  background: var(--cobalt-deep);
  border-color: rgba(255, 255, 255, 0.12);
}

/* the flagship's spec sheet, on the deep cobalt panel */

.erp-spec {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5);
}

.erp-spec div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.erp-spec div:last-child {
  border-bottom: 0;
}

.erp-spec dt {
  color: var(--ink-2);
}

.erp-spec dd {
  font-weight: 600;
  color: #0d47a1;
}

/* "One engine underneath both": what UlapBiz and Radztech ERP share, and how
   they differ */

.engine {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  align-items: center;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.engine__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.engine__parts {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.engine__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.engine__table th,
.engine__table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.engine__table tbody tr:last-child th,
.engine__table tbody tr:last-child td {
  border-bottom: 0;
}

.engine__table thead th {
  font-size: 15px;
  font-weight: 600;
}

.engine__table thead th:last-child {
  color: #1565c0;
}

.engine__table tbody th {
  padding-left: 0;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.engine__table td:last-child {
  font-weight: 500;
}

.platforms__sub {
  margin-top: 40px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

/* Modules */

.modules {
  margin-top: 96px;
}

.modules__title {
  font-size: 20px;
  letter-spacing: -0.015em;
}

.modules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.module {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease);
}

.module:hover {
  background: var(--bg-alt);
}

.module__name {
  font-weight: 600;
  font-size: 16px;
}

.module__desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Capabilities ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
  margin-top: 72px;
}

.feature {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.feature__num {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.feature h3 {
  margin-top: 16px;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.feature p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

/* Spotlight: DaloyWF and E-Signature */

.spotlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.spot {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.spot:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.spot__tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
}

.spot h3 {
  margin-top: 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.spot > p:not(.spot__tag) {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-2);
  flex: 1;
}

.spot .link {
  margin-top: 28px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.flow__step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-alt);
}

.flow__step::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.flow__step + .flow__step {
  position: relative;
  margin-left: 14px;
}

.flow__step + .flow__step::after {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--line-strong);
}

.flow__step.is-done::before {
  background: #2e9e5b;
}

.flow__step.is-active {
  color: var(--ink);
  border-color: var(--accent);
  background: #fff;
}

.flow__step.is-active::before {
  background: var(--accent);
}

.sig {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 30px;
  margin-top: 24px;
}

.sig__line {
  width: 120px;
  height: 30px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.sig__chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f7a45;
  background: #e8f5ed;
}

/* ---------- Industries & roles (row lists) ---------- */

.industries,
.roles {
  border-top: 1px solid var(--line);
}

.industries li,
.roles li {
  border-bottom: 1px solid var(--line);
}

.industries a,
.industries li > div,
.roles a {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 20px;
  align-items: baseline;
  gap: 24px;
  padding: 22px 4px;
}

/* industries: an icon column before the name */
.industries a,
.industries li > div {
  grid-template-columns: 40px minmax(0, 2fr) minmax(0, 3fr) 20px;
  align-items: center;
  gap: 20px;
}

.ind__icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: #fff1e5;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color 0.2s var(--ease);
}

.industries a:hover .ind__icon {
  background: #ffe2c7;
}

.roles a {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 20px;
}

.ind__name,
.role__title {
  font-weight: 600;
  font-size: 16px;
}

.ind__desc,
.role__meta {
  font-size: 14.5px;
  color: var(--muted);
}

.ind__arrow {
  color: var(--muted);
  justify-self: end;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.industries a:hover .ind__arrow,
.roles a:hover .ind__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.industries a:hover .ind__name,
.roles a:hover .role__title {
  color: var(--accent-ink);
}

/* ---------- Customers ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.case {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.case:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.case__sector {
  font-size: 13px;
  color: var(--muted);
}

.case__metric {
  margin-top: 28px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.case h3 {
  margin-top: 28px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.case > p:not(.case__sector):not(.case__metric) {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
  flex: 1;
}

.case .link {
  margin-top: 28px;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 88px;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.quote blockquote {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
}

.quote figcaption {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.quote figcaption span {
  color: var(--muted);
}

/* ---------- Company ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  margin-top: 56px;
}

/* stays in view while the timeline scrolls, like the Industries heading */
.story {
  align-items: start;
}

.story__text {
  position: sticky;
  top: 108px;
}

.story__text p {
  color: var(--ink-2);
  font-size: 16.5px;
}

.story__text p + p {
  margin-top: 18px;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.tl__year {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.timeline h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.timeline p {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 80px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.gallery figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- News ---------- */

.news__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.news__head .link {
  flex: none;
  margin-bottom: 4px;
}

.news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  margin-top: 56px;
}

.post {
  display: flex;
  flex-direction: column;
}

.post img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.post__meta {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
}

.post h3 {
  margin-top: 8px;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.post > p:not(.post__meta) {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

.post .link {
  margin-top: 14px;
}

/* ---------- Contact ---------- */

.contact {
  padding: 112px 0;
  background: #4169e1; /* royal blue */
  color: #fff;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: end;
}

.contact h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  max-width: 14ch;
}

.contact__lede {
  margin-top: 20px;
  max-width: 480px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

.contact__details {
  display: grid;
  gap: 24px;
}

.contact__details div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact__details dt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.contact__details dd {
  margin-top: 4px;
  font-size: 16px;
}

.contact__details a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact .btn--outline-light {
  border-color: rgba(255, 255, 255, 0.6);
}

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

.footer {
  padding: 72px 0 40px;
  background: #fff;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
}

.footer__brand img {
  height: 30px;
  width: auto;
}

.footer__brand p {
  margin-top: 20px;
  max-width: 300px;
  font-size: 14px;
  color: var(--muted);
}

.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
}

.footer__social a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.footer__social svg {
  width: 15px;
  height: 15px;
}

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

.footer__cols h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
}

.footer__cols a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer__cols a:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

@media (max-width: 1024px) {
  :root {
    --section-y: 96px;
  }

  .nav__links {
    gap: 20px;
  }

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

  .platform__media {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .cases,
  .quotes,
  .spotlight {
    grid-template-columns: 1fr;
  }

  .cases {
    gap: 16px;
  }

  .quotes {
    gap: 40px;
    max-width: 680px;
  }

  .split,
  .story,
  .contact__grid,
  .footer__top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split__aside,
  .story__text {
    position: static;
  }

  .engine {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* the nav has seven links: below this width they move into the menu */
@media (max-width: 1080px) {
  .nav__toggle {
    display: block;
  }

  .nav__actions {
    display: none;
  }

  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  .nav__links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__links > a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav__mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
  }
}

@media (max-width: 880px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 72px;
  }

  .stat {
    padding: 24px 16px 24px 0;
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

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

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

  .gallery figure:last-child {
    display: none;
  }

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

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --section-y: 72px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
  }

  .stat dd {
    font-size: 30px;
  }

  .logos__row {
    gap: 24px 32px;
  }

  .logos__row img {
    height: 32px;
    max-width: 96px;
  }

  .platforms {
    margin-top: 40px;
  }

  .platform__body {
    padding: 28px 24px;
  }

  .platform__media {
    padding: 20px;
  }

  .modules {
    margin-top: 64px;
  }

  .modules__grid,
  .features,
  .gallery {
    grid-template-columns: 1fr;
  }

  .module {
    padding: 22px 20px;
  }

  .features {
    gap: 40px;
    margin-top: 48px;
  }

  .industries a,
  .industries li > div,
  .roles a {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 4px 16px;
    padding: 18px 0;
  }

  .industries li > div {
    grid-template-columns: 1fr;
  }

  .role__meta {
    grid-row: 2;
    grid-column: 1;
  }

  /* industries on a phone: icon | name over description | arrow */
  .industries a {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: 2px 14px;
  }

  .industries li > div {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 14px;
  }

  .ind__icon {
    grid-row: 1 / span 2;
    grid-column: 1;
    align-self: center;
  }

  .ind__name {
    grid-row: 1;
    grid-column: 2;
  }

  .ind__desc {
    grid-row: 2;
    grid-column: 2;
  }

  .ind__arrow {
    grid-row: 1 / span 2;
    grid-column: 3;
    align-self: center;
  }

  .roles .ind__arrow {
    grid-column: 2;
  }

  .case,
  .spot {
    padding: 24px;
  }

  .engine {
    padding: 24px 20px;
  }

  .engine__parts {
    font-size: 15.5px;
  }

  .engine__table {
    font-size: 13px;
  }

  .engine__table th,
  .engine__table td {
    padding: 10px 6px;
  }

  .engine__table tbody th {
    white-space: normal;
  }

  .spotlight {
    margin-top: 56px;
  }

  /* pills wrap here: drop the connectors so none starts a line */
  .flow__step + .flow__step {
    margin-left: 0;
  }

  .flow__step + .flow__step::after {
    display: none;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gallery figure:last-child {
    display: block;
  }

  .news__head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* on a phone, the posts scroll sideways instead of stacking six deep */
  .news {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 16px;
    margin: 40px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
  }

  .post {
    scroll-snap-align: start;
  }

  .contact {
    padding: 80px 0;
  }

  .contact .hero__cta {
    flex-direction: column;
  }
}
