:root {
  --navy: #1a1a2e;
  --ink: #111111;
  --red: #e8390e;
  --red-alt: #e83a26;
  --cream: #fafaf8;
  --sand: #f4f2ee;
  --white: #ffffff;
  --muted: #4b5563;
  --gray: #6b7280;
  --line: #f3f4f6;
  --wrap: 1360px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 10vw, 112px);
  --radius: 16px;
  --header-h: 80px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-ui: "Archivo", system-ui, sans-serif;
  --font-form: "Montserrat", system-ui, sans-serif;
}

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
}

html,
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
}

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

.wrap {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
}

.section {
  padding: var(--section) 0;
}

.section-cream { background: var(--cream); }
.section-dark {
  background: linear-gradient(165deg, #111 0%, #1a1a1a 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.section-ink { background: var(--ink); color: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red-alt);
}

.eyebrow.dark-track {
  font-family: var(--font-ui);
  letter-spacing: 4.2px;
  color: var(--navy);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.05;
  color: inherit;
}

.section-dark h2,
.section-ink h2,
.section-navy h2,
.hero h1 {
  color: var(--white);
}

.lede {
  margin: 16px 0 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 40rem;
}

.lede.light { color: #d1d5db; }

.section-head { margin-bottom: clamp(32px, 5vw, 64px); }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 9999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.35px;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  object-fit: contain;
}
.btn:hover { transform: translateY(-1px); }

.btn-cta {
  background: var(--red);
  color: var(--white);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 12px 24px;
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: #ffffff99;
}

.btn-solid {
  background: var(--red-alt);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
}

.text-link.red { color: var(--red-alt); font-size: 16px; }
.text-link.dark { color: var(--navy); }

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.three { grid-template-columns: 1fr; }
.card-grid.four { grid-template-columns: 1fr; }
.card-grid.tight { margin-top: 40px; gap: 16px; }

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e83a26e6;
  flex-shrink: 0;
}

.icon-box img { width: 18px; height: 18px; object-fit: contain; }
.icon-box-light { background: rgba(255, 255, 255, 0.2); }
.icon-box-tint { background: #e83a261a; }
.icon-box-solid { background: var(--red-alt); width: 44px; height: 44px; border-radius: 8px; }
.icon-box.round { border-radius: 9999px; width: 44px; height: 44px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(26, 26, 46, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #ffffff1a;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
}

.logo img {
  width: min(160px, 42vw);
  height: auto;
}

.desktop-nav,
.desktop-cta {
  display: none;
}

.desktop-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--white);
}

.desktop-nav a:hover { color: #ffffffcc; }

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--navy);
  padding: 24px var(--pad) 40px;
  overflow-y: auto;
}

.mobile-nav[hidden],
.nav-backdrop[hidden] {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a:not(.btn) {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid #ffffff14;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #00000066;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  opacity: 0.8;
}

.hero-bg-img {
  background-size: cover;
  background-position: center;
}

.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: 70%;
  background: linear-gradient(180deg, transparent, #000);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(48px, 8vw, 80px);
  padding-top: calc(var(--header-h) + 24px);
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(40px, 10vw, 100px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span { color: var(--red); }

.hero-bottom {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-bottom > p {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.4;
  color: #ffffffd9;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.hero-actions .btn { flex: 1 1 220px; }

.hero-scroll {
  display: none;
}

/* Logo strip */
.logo-strip {
  width: 100%;
  background: var(--white);
  padding: 40px 0;
  overflow: hidden;
}

.logo-slider {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.logo-row {
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.logo-track-ltr {
  animation-name: logo-marquee-ltr;
  animation-duration: 42s;
}

.logo-track-rtl {
  animation-name: logo-marquee-rtl;
  animation-duration: 38s;
}

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

.logo-set {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding-inline-end: 12px;
}

.logo-card {
  box-sizing: border-box;
  flex: 0 0 150px;
  width: 150px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: #f5f5f5;
  border: 1px solid #ececec;
  border-radius: 12px;
}

.logo-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

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

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

@media (min-width: 640px) {
  .logo-strip { padding: 52px 0; }
  .logo-slider { gap: 16px; }
  .logo-set { gap: 14px; padding-inline-end: 14px; }
  .logo-card {
    flex-basis: 168px;
    width: 168px;
    height: 80px;
    padding: 16px 20px;
  }
}

@media (min-width: 1024px) {
  .logo-strip { padding: 64px 0; }
  .logo-slider { gap: 18px; }
  .logo-set { gap: 16px; padding-inline-end: 16px; }
  .logo-card {
    flex-basis: 186px;
    width: 186px;
    height: 86px;
    padding: 18px 22px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }

  .logo-row {
    overflow-x: auto;
  }

  .logo-set[aria-hidden="true"] {
    display: none;
  }
}

/* Engines */
.engine-grid {
  display: grid;
  gap: 24px;
}

.engine-card {
  position: relative;
  min-height: 440px;
  padding: 36px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
}

.engine-card-red { background: var(--red-alt); }

.engine-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  pointer-events: none;
}

.engine-card-red .engine-card-bg { opacity: 0.55; }

.engine-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 45%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

.engine-card-red::after {
  background: linear-gradient(0deg, rgba(196,46,26,0.55) 0%, rgba(196,46,26,0.2) 45%, transparent 100%);
}

.engine-card-body,
.engine-card .text-link {
  position: relative;
  z-index: 1;
}

.engine-card h3 {
  margin: 16px 0 10px;
  font-size: 24px;
  line-height: 32px;
}

.engine-card p {
  margin: 0;
  font-size: 14px;
  line-height: 23px;
  color: #e5e7eb;
}

.engine-card-red p {
  color: rgba(255, 255, 255, 0.9);
}

/* Info / glass / insight cards */
.info-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.info-card.shadow { box-shadow: 0 1px 2px #0000000d; padding: 28px; }

.info-card h3,
.glass-card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 28px;
}

.glass-card h3 { color: var(--white); font-size: 18px; }

.info-card p,
.glass-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.63;
  color: var(--gray);
}

.glass-card p { color: #9ca3af; }

.glass-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff0d;
  border: 1px solid #ffffff1a;
}

.tech-glow {
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: #e83a2626;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.split-media {
  min-height: 240px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
}

.split .btn { margin-top: 24px; }

/* Work */
.case {
  display: grid;
}

.case-flip .case-media {
  order: -1;
}

.case-media {
  min-height: 260px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.case-media .case-logo {
  width: min(80%, 420px);
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.case-media-wipro img {
  width: auto;
  max-width: 200px;
  max-height: 140px;
  min-height: 0;
  height: auto;
  object-fit: contain;
}

.case-media-blue { background: #040071; }
.case-media-navy { background: #0033a0; min-height: 280px; }

.case-copy {
  padding: clamp(32px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-copy-red { background: var(--red-alt); color: var(--white); }
.case-copy-cream { background: var(--sand); color: var(--navy); }

.case-tag {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
}

.case-copy h3 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 24px;
}

.case-copy p:not(.case-tag) {
  margin: 0 0 40px;
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 28px;
  max-width: 28rem;
  color: #ffffffcc;
}

.case-copy-cream p:not(.case-tag) { color: var(--navy); }

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  text-align: center;
}

.industry-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
}

.industry-card img { height: 24px; width: auto; }

/* Human x AI */
.human-ai {
  text-align: center;
  padding-inline: var(--pad);
}

.human-ai > h2 {
  font-weight: 400;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  max-width: 16ch;
  margin-inline: auto;
}

.human-ai > h2 span { color: var(--red); }

.human-ai-cols {
  display: grid;
  gap: 16px;
  margin: 48px auto 0;
  max-width: 72rem;
}

.human-col,
.machine-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.col-label {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: #ffffff80;
}

.human-ai-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.human-ai-cols li {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.times {
  margin: 0;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 1;
  color: var(--red);
}

.equals {
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 2px solid var(--red);
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 60px);
  line-height: 1;
}

.equals span { color: var(--red); }

/* Insights */
.insight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.insight-img {
  height: 208px;
  background-size: cover;
  background-position: center;
}

.insight-body { padding: 24px; }

.insight-body h3 {
  font-size: 18px;
  line-height: 1.38;
  margin: 8px 0;
}

.insight-body p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--gray);
}

/* CTA */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 4vw, 40px);
  padding: clamp(32px, 6vw, 80px);
  background: linear-gradient(169deg, #e83a26 0%, #c42e1a 100%);
  color: var(--white);
  display: grid;
  gap: 32px;
}

.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #ffffff1a;
  pointer-events: none;
}

.cta-banner::before {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -80px;
}

.cta-banner h2,
.cta-banner p,
.cta-banner .hero-actions {
  position: relative;
  z-index: 1;
}

.cta-banner p {
  margin: 16px 0 24px;
  font-size: 18px;
  line-height: 1.62;
  color: #ffffffe6;
  max-width: 32rem;
}

.cta-banner .btn-ghost { border-width: 2px; border-color: var(--white); }

.cta-photo {
  min-height: 200px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 40px;
}

.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-list .muted {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.contact-list a,
.contact-list p:not(.muted) {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.form-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 40px #0000001a;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-form);
  font-weight: 500;
  font-size: 14px;
  color: #00000099;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background: #f9f9fb;
  color: var(--ink);
  appearance: none;
}

.form-card textarea { min-height: 100px; resize: vertical; }

.form-submit {
  width: 100%;
  height: 60px;
  border: 0;
  font-family: var(--font-form);
  font-weight: 700;
  font-size: 16px;
  background: #de3723;
}

.form-status {
  margin: 0;
  font-size: 14px;
  color: #15803d;
}

.form-status.is-error { color: var(--red); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #9ca3af;
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid #ffffff1a;
}

.footer-logo { width: 180px; margin-bottom: 18px; }

.site-footer p { margin: 0; font-size: 14px; line-height: 1.63; max-width: 24rem; }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
}

.footer-socials a:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  display: block;
}

.site-footer h2 {
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.site-footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 32px;
  font-size: 14px;
  color: #6b7280;
}

.footer-bottom div { display: flex; gap: 24px; flex-wrap: wrap; }

/* Tablet */
@media (min-width: 640px) {
  .card-grid.three,
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .hero-bg {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }
  .hero-actions .btn { flex: 0 0 auto; }
}

@media (min-width: 768px) {
  .engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-card:last-child { grid-column: 1 / -1; }
  .human-ai-cols {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
  }
  .human-col { align-items: flex-end; text-align: right; }
  .machine-col { align-items: flex-start; text-align: left; }
  .case {
    grid-template-columns: 1fr 1fr;
  }
  .case-flip .case-media {
    order: 0;
  }
  .case-media,
  .case-media img {
    min-height: 420px;
    height: 100%;
  }
  .split-media { min-height: 380px; }
  .cta-banner { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .cta-photo { min-height: 300px; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .nav-toggle,
  .mobile-nav,
  .nav-backdrop { display: none !important; }

  .desktop-nav,
  .desktop-cta { display: flex; }

  .engine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .engine-card:last-child { grid-column: auto; }
  .card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  .hero {
    min-height: 900px;
  }
  .hero-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .hero-scroll {
    display: block;
    position: absolute;
    right: 8px;
    bottom: 64px;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 3.6px;
    text-transform: uppercase;
    color: #ffffff80;
    transform: rotate(90deg);
  }
  .form-card { padding: 34px 32px; }
}

@media (max-width: 379px) {
  .hero-actions .btn { flex-basis: 100%; }
  .industry-grid { grid-template-columns: 1fr; }
}

/* Legal pages */
body.legal-page {
  background: var(--cream);
}

body.legal-page .site-header {
  background: rgba(26, 26, 46, 0.94);
  backdrop-filter: blur(12px);
}

.legal-main {
  padding: calc(var(--header-h) + 48px) 0 var(--section);
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.legal-content .legal-meta {
  margin: 0 0 40px;
  color: var(--gray);
  font-size: 14px;
}

.legal-content h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--ink);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content p { margin: 0 0 16px; }

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--red-alt);
  text-decoration: underline;
}
