/* ==========================================================================
   ROTO-iD Connect — single page
   Colours, type and spacing taken from WEBSITE-SINGLE-1-2026-UX.pdf
   ========================================================================== */

/* ---------- Fonts ---------------------------------------------------------
   Acumin Variable Concept (the artwork font) is Adobe Fonts / licensed.
   Work Sans is used as the substitute: it ships in the source artwork and is
   the closest free neo-grotesque. Self-hosted, variable 400-700.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/work-sans-latin.woff2') format('woff2');
  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: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --orange: #ff5d00;
  --orange-dark: #e05100;
  --navy: #18244f;
  --dark: #000b1d;
  --ink: #1c1d1e;
  --body: #3c3d3e;
  --muted: #6f7071;
  --surface: #f5f5f5;
  --line: #e3e3e4;
  --white: #fff;
  /* Sampled off the hero photo — the flat panel it becomes on phones. */
  --hero-solid: #0f1e35;

  --font: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: 24px;
  --radius: 10px;
  --header-h: 108px;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 1.14rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.28rem + 0.95vw, 2.125rem);
  --step-3: clamp(2.125rem, 1.55rem + 2.5vw, 3.375rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { margin: 0; }
a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

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

[hidden] { display: none !important; }

/* ---------- Layout helpers ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--surface { background: var(--surface); }

/* Keep anchored sections clear of the sticky header. */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section__head { max-width: 62ch; }
.section__head p { margin-top: 16px; color: var(--body); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--dark);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--onDark { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--onDark:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--white); text-transform: none; letter-spacing: 0; }
.btn--dark:hover { background: #000; border-color: #000; }

.btn--sm { padding: 11px 22px; font-size: 0.8125rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.header__logo { flex: 0 0 auto; line-height: 0; }
.header__logo img { width: 290px; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--orange); }

/* The nav carries its own Book a Demo button for the mobile panel only;
   on desktop the standalone .header__cta is the one that shows. */
.nav__list > li:last-child { display: none; }

.header__cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 660px);
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: contents; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 11, 29, 0.82) 0%, rgba(0, 11, 29, 0.55) 42%, rgba(0, 11, 29, 0.12) 72%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero__lead {
  max-width: 46ch;
  margin-top: 26px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.92);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- Split (video) ------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split__text p { margin-top: 20px; }
.split__text .btn { margin-top: 32px; }

.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  background: rgba(0, 11, 29, 0.08);
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.media__play:hover { background: rgba(0, 11, 29, 0.22); }
.media__play span {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease);
}
.media__play:hover span { transform: scale(1.06); }

/* ---------- Process steps ------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 20px);
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.step { position: relative; text-align: center; }
.step__num {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--orange);
}
.step__icon {
  display: grid;
  place-items: center;
  width: clamp(84px, 9vw, 120px);
  aspect-ratio: 1;
  margin: 14px auto 16px;
  background: var(--surface);
  border-radius: 50%;
}
.step__icon img { width: 100%; height: 100%; object-fit: contain; }
.step__label { font-size: 0.9375rem; color: var(--body); line-height: 1.45; }

/* Arrow linking each step to the previous one. Sits in the gap between the
   two icon circles, vertically centred on them. */
.step + .step::before {
  content: '';
  position: absolute;
  top: calc(1.25rem * 1.16 + 14px + clamp(84px, 9vw, 120px) / 2 - 5px);
  right: calc(50% + clamp(84px, 9vw, 120px) / 2 + 8px);
  left: calc(-50% + clamp(84px, 9vw, 120px) / 2 + 8px);
  height: 10px;
  background: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5h38' stroke='%231c1d1e' stroke-width='1'/%3E%3Cpath d='M33 1l5 4-5 4' fill='none' stroke='%231c1d1e' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- Benefits accordion ------------------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.benefits__intro p { margin-top: 20px; }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.accordion__btn:hover { color: var(--orange); }
.accordion__btn svg {
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}
.accordion__btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.accordion__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.32s var(--ease);
}
.accordion__panel > div {
  padding-bottom: 20px;
  max-width: 58ch;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Cards -------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(36px, 4.5vw, 56px);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__body { padding: 26px 26px 22px; }
.card__body p { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }
/* One frame for all three, so the cards line up however the source art is
   shaped. The images are cropped to 762x635 to match it. */
.card__media { margin-top: auto; }
.card__media img { display: block; width: 100%; aspect-ratio: 762 / 635; object-fit: cover; }

/* ---------- Industries (hidden until content is confirmed) --------------- */
.industries {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 4.5vw, 56px);
}
.industries__tabs { display: flex; flex-direction: column; }
.industries__tab {
  padding: 14px 0 14px 16px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  font-size: 0.9375rem;
  color: var(--body);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.industries__tab[aria-selected='true'] { border-left-color: var(--orange); color: var(--ink); font-weight: 500; }
.industries__tab:hover { color: var(--orange); }

.industries__panel {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
}
.industries__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.industries__card {
  position: relative;
  width: min(430px, 82%);
  margin: 56px 0 56px 56px;
  padding: 32px;
  background: var(--surface);
  border-radius: 6px;
}
.industries__card p { margin: 16px 0 22px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- CTA band ----------------------------------------------------- */
/* Flat panel, no photo. The band used to be cta-band.jpg under a
   left-to-right dark gradient; --dark is what that gradient already resolved
   to behind the copy, so the colour is unchanged where it matters. */
.cta-band {
  display: flex;
  align-items: center;
  min-height: 440px;
  background: var(--dark);
  color: var(--white);
}
.cta-band__inner { width: 100%; }
.cta-band h2 { color: var(--white); font-size: var(--step-3); }
.cta-band p { max-width: 38ch; margin-top: 22px; color: rgba(255, 255, 255, 0.9); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Page head (contact page) ------------------------------------- */
.page-head {
  padding-block: clamp(40px, 5.5vw, 76px) clamp(8px, 1.5vw, 20px);
  background: var(--white);
}
.page-head h1 { font-size: var(--step-2); }
.page-head p { max-width: 56ch; margin-top: 16px; }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumb a { color: var(--orange); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- Forms -------------------------------------------------------- */
.form-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.form-section__text h2 { margin-top: 14px; max-width: 14ch; }
.form-section__text > p { margin-top: 20px; max-width: 46ch; }

.points { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.point { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.point__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
}
.point strong { display: block; font-weight: 500; color: var(--ink); }
.point span { font-size: 0.9375rem; color: var(--muted); }

.form-card {
  padding: clamp(26px, 3.4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 20px rgba(0, 11, 29, 0.05);
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #a9aaab; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 93, 0, 0.14);
}
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: #d13b1f; }
.field__error { font-size: 0.8125rem; color: #d13b1f; }

.form-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.form-note a { color: var(--muted); }

.form-status { font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status[data-state='ok'] { color: #1c7a3e; }
.form-status[data-state='error'] { color: #d13b1f; }

.btn[aria-busy='true'] { opacity: 0.65; pointer-events: none; }

/* ---------- Footer ------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
}
.footer__copy { font-size: 0.9375rem; color: var(--body); }
.footer__social { display: flex; gap: 20px; }
.footer__social a { color: var(--ink); transition: color 0.2s var(--ease); }
.footer__social a:hover { color: var(--orange); }

/* ---------- Video modal -------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(0, 11, 29, 0.86);
}
.modal[hidden] { display: none; }
/* No overflow:hidden here — .modal__close hangs 46px above the top edge and
   was being clipped away by it, leaving the player with no visible X. The
   mount does the corner clipping instead. */
.modal__box {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
}
/* The iframe is injected into .modal__mount, so the mount has to carry the
   box's full height itself. Without this the iframe's height:100% resolves
   against an auto-height block, falls back to the intrinsic 150px, and the
   video sits as a letterbox strip at the top of the 16:9 well. Scoped to
   .modal__box because .modal--form reuses .modal__mount as a normal
   auto-height, scrolling block. */
.modal__box .modal__mount {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.modal__box iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}
/* Form variant: a white panel holding the Book a Demo / Contact Us form. */
.modal--form .modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  padding: clamp(28px, 3.6vw, 52px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 11, 29, 0.35);
}
.modal--form .form-section { gap: clamp(28px, 4vw, 56px); align-items: start; }
.modal--form .form-card {
  padding: 0;
  border: 0;
  box-shadow: none;
}
.modal--form .form-section__text > p { margin-top: 16px; }
.modal--form .points { margin-top: 28px; }
.modal__loading { padding: 60px 0; text-align: center; color: var(--muted); }

.modal__dismiss {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--surface);
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__dismiss:hover { background: var(--ink); color: var(--white); }

.modal__close {
  position: absolute;
  top: -46px;
  right: 0;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1080px) {
  .split,
  .benefits,
  .form-section { grid-template-columns: minmax(0, 1fr); }
  .form-section__text h2 { max-width: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries { grid-template-columns: minmax(0, 1fr); }
  .industries__card { width: auto; margin: 24px; }
}

/* 1070px, not 1024px: the 290px ROTO-iD Connect lockup, the nav and Book a
   Demo need 1034px of viewport to sit side by side (measured), so the nav has
   to collapse above that. Keep in sync with the `mq` in main.js's nav module —
   if they drift, the dropdown panel renders permanently open. */
@media (max-width: 1070px) {
  :root { --header-h: 82px; }

  .nav-toggle { display: block; }
  .header__inner { gap: 12px; }
  .header__cta { display: none; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 11, 29, 0.08);
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list > li:last-child { display: block; border-bottom: 0; padding-top: 18px; }
  .nav__link { display: block; padding: 15px 0; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .step + .step::before { display: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }

  /* Cards go single-column on phones, but the five process steps stay two to a
     row — stacking all five makes the section a long scroll for little gain. */
  .cards { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  /* Phones get a solid panel keyed to the hero photo instead of the photo
     itself — the art is too busy at this width to read behind the copy. */
  .hero { min-height: 480px; background: var(--hero-solid); }
  .hero__media { display: none; }
  .btn { width: 100%; }
  .hero__actions .btn,
  .cta-band__actions .btn { width: auto; flex: 1 1 auto; }
}

/* Below this the logo would crowd the menu button. */
@media (max-width: 350px) {
  .header__logo img { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
