/* ==========================================================================
   Afri Risk  |  style.css
   Palette, type and components for the Afri Risk website.
   Edit the tokens in :root to change the whole site at once.
   ========================================================================== */

:root {
  /* Colour */
  --ink:          #0E0F11;
  --ink-2:        #16181B;
  --ink-3:        #24272B;
  --ink-line:     #2E3237;
  --paper:        #F4F5F6;
  --white:        #FFFFFF;
  --rule:         #DCDFE2;
  --text:         #1A1D21;
  --text-2:       #575D65;
  --text-3:       #666C74;
  --signal:       #D81F26;
  --signal-dark:  #A6151B;
  --signal-soft:  rgba(216, 31, 38, 0.09);
  --signal-lift:  #EE4A50;   /* red that stays legible on the dark bands */
  --on-dark:      #E9EBED;
  --on-dark-2:    #9BA2AA;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Space */
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --wrap:    1200px;
  --wrap-narrow: 860px;
  --band:    clamp(3.5rem, 7vw, 6.5rem);

  /* Other */
  --shadow:  0 1px 2px rgba(14, 15, 17, 0.06), 0 8px 24px rgba(14, 15, 17, 0.06);
  --speed:   220ms;
}

/* --------------------------------------------------------- reset and base */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0313rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.55rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.2em; padding-left: 1.15rem; }
li { margin-bottom: 0.45em; }

strong { font-weight: 600; }

::selection { background: var(--signal); color: #fff; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--signal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.skip-link:focus { left: 0; }

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

/* ------------------------------------------------------------- structure */

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

.wrap--narrow { max-width: var(--wrap-narrow); }

.band {
  padding-block: var(--band);
}
.band--tight { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.band--paper { background: var(--paper); }
.band--white { background: var(--white); }
.band--ink   { background: var(--ink); color: var(--on-dark); }

.band--ink h2,
.band--ink h3 { color: var(--white); }
.band--ink p  { color: var(--on-dark-2); }


/* --------------------------------------------------------------- eyebrow */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
  max-width: 5rem;
}
.eyebrow--plain::after { display: none; }
.band--ink .eyebrow::after { background: var(--ink-line); }
.band--ink .eyebrow,
.page-head .eyebrow,
.hero .eyebrow { color: var(--signal-lift); }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 62ch;
}
.band--ink .lede { color: var(--on-dark-2); }

/* ---------------------------------------------------------------- header */

.topbar {
  background: #08090A;
  color: var(--on-dark-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink-3);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  min-height: 2.5rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--on-dark-2); }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar__set { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.site-head {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--ink-3);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 168px; }
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--signal); color: #fff; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--on-dark);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.nav a:hover { color: #fff; text-decoration: none; border-bottom-color: var(--signal); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--signal); }

.nav__cta {
  background: var(--signal);
  color: #fff !important;
  padding: 0.7rem 1.2rem !important;
  border-bottom: 0 !important;
  font-weight: 600;
}
.nav__cta:hover { background: var(--signal-dark); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(1) contrast(1.05);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,10,11,0.94) 0%, rgba(9,10,11,0.82) 46%, rgba(9,10,11,0.42) 100%),
    linear-gradient(0deg, rgba(9,10,11,0.95) 0%, rgba(9,10,11,0.1) 55%);
}
.hero__inner {
  padding-block: clamp(4.5rem, 11vw, 9rem);
  max-width: 46rem;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: #C9CDD2;
  max-width: 40ch;
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* The three pillars, indexed to match the printed profile's own numbering */
.hero__index {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(255,255,255,0.16);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hero__index a {
  padding: 1.4rem 1.4rem 1.4rem 0;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  display: block;
  transition: background var(--speed);
}
.hero__index a:last-child { border-right: 0; }
.hero__index a:hover { background: rgba(255,255,255,0.05); text-decoration: none; }
.hero__index span {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--signal-lift);
  margin-bottom: 0.5rem;
}
.hero__index strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* ---------------------------------------------------------------- page head */

.page-head {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  top: 0; right: -6%;
  width: 26%; height: 100%;
  background: var(--signal);
  opacity: 0.9;
  transform: skewX(-11deg);
}
.page-head::after {
  content: "";
  position: absolute;
  top: 0; right: 12%;
  width: 10%; height: 100%;
  background: rgba(255,255,255,0.05);
  transform: skewX(-11deg);
}
.page-head__inner { position: relative; z-index: 2; max-width: 44rem; }
.page-head h1 { color: #fff; margin-bottom: 0.75rem; }
.page-head p {
  color: #C9CDD2;
  max-width: 52ch;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}
.page-head .eyebrow { color: var(--signal-lift); }
.page-head .eyebrow::after { background: rgba(255,255,255,0.3); }

/* Section number set as outline type. Used on the service pages only. */
.page-head__figure {
  position: absolute;
  right: 4%;
  bottom: -1.2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.28);
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--signal); color: #fff; }
.btn--primary:hover { background: var(--signal-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: #fff; }

.arrow-link {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.arrow-link:hover { text-decoration: none; }
.arrow-link::after { content: "\2192"; transition: transform var(--speed); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-top-color var(--speed), transform var(--speed), box-shadow var(--speed);
}
.card:hover {
  border-top-color: var(--signal);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card__index {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--text-2); font-size: 0.96rem; }
.card .arrow-link { margin-top: auto; padding-top: 1.4rem; }

.capability {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  padding: 1.75rem;
}
.capability h3 {
  font-size: 0.94rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.capability p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

.callout {
  background: var(--white);
  border-left: 3px solid var(--signal);
  padding: 1.75rem 1.9rem;
  margin-block: 2rem;
}
.callout h3 {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.9rem;
}
.callout p { color: var(--text-2); margin-bottom: 0; }

/* -------------------------------------------------------------- listings */

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--text-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--signal);
}
.checklist--split { columns: 2; column-gap: 3rem; }
.checklist--split li { break-inside: avoid; }
.band--ink .checklist li { color: var(--on-dark-2); }

.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  border-top: 1px solid var(--rule);
  padding: 0.95rem 0;
  color: var(--text-2);
  display: flex;
  gap: 1.1rem;
}
.spec-list li:last-child { border-bottom: 1px solid var(--rule); }
.spec-list span {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--signal);
  padding-top: 0.28em;
  flex: 0 0 2.2rem;
}

/* ------------------------------------------------------------ industries */

.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sectors li {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink-line);
  color: var(--on-dark);
  padding: 0.65rem 1rem;
  margin: 0;
}
.band--white .sectors li,
.band--paper .sectors li { border-color: var(--rule); color: var(--text-2); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media img { width: 100%; }
.figure-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-top: 0.8rem;
}

.media-band img {
  width: 100%;
  max-height: 30rem;
  object-fit: cover;
}

/* ---------------------------------------------------------------- clients */

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--white);
}
.client-grid li {
  margin: 0;
  list-style: none;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 5 / 3;
  display: grid;
  place-items: center;
  padding: 1.1rem;
}
.client-grid li:nth-child(5n) { border-right: 0; }
.client-grid li:nth-last-child(-n+5) { border-bottom: 0; }

.disclaimer {
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--text-3);
  margin-top: 1.5rem;
  max-width: 80ch;
}

/* ------------------------------------------------------------------ form */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field .req { color: var(--signal); }
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.85rem 0.95rem;
  width: 100%;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
  outline: none;
}
.field-note { font-size: 0.82rem; color: var(--text-3); }
.field--error input,
.field--error select,
.field--error textarea { border-color: var(--signal); }
.field__error {
  font-size: 0.8rem;
  color: var(--signal-dark);
  min-height: 1px;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  grid-column: 1 / -1;
}
.consent input { width: 1.6rem; height: 1.6rem; min-width: 1.6rem; min-height: 1.6rem; margin-top: 0.1rem; flex: 0 0 auto; }
.consent label a { padding: 0.35rem 0; display: inline-block; }
.consent label {
  font-family: var(--body);
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-2);
  line-height: 1.5;
}

.form-status {
  grid-column: 1 / -1;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--signal);
  background: var(--signal-soft);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }

.honeypot { position: absolute; left: -9999px; }

/* --------------------------------------------------------------- contact */

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { border-top: 1px solid var(--ink-line); padding: 1.15rem 0; margin: 0; }
.contact-list li:last-child { border-bottom: 1px solid var(--ink-line); }
.contact-list .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-lift);
  margin-bottom: 0.35rem;
}
.contact-list .value { font-size: 1.05rem; color: #fff; }
.contact-list .value a { color: #fff; }
.contact-list .value a:hover { color: var(--signal); }

/* ------------------------------------------------------------------- cta */

.cta {
  background: var(--signal);
  color: #fff;
}
.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.cta h2 { color: #fff; margin: 0 0 0.4rem; }
.cta p { color: rgba(255,255,255,0.88); margin: 0; max-width: 46ch; }
.cta .btn {
  background: #fff;
  color: var(--signal);
  border-color: #fff;
}
.cta .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- footer */

.site-foot {
  background: var(--ink);
  color: var(--on-dark-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: 0.92rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.site-foot img { width: 150px; margin-bottom: 1.25rem; }
.site-foot h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.6rem; }
.site-foot a { color: var(--on-dark-2); }
.site-foot a:hover { color: #fff; text-decoration: none; }
.site-foot p { color: var(--on-dark-2); }

.foot-base {
  border-top: 1px solid var(--ink-3);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
}
.foot-base a { color: var(--on-dark-2); }


/* Two photographs side by side, stacking on narrow screens */
.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* The bands above and below are white, so the strip the images sit on has to
   be white too, or the page background shows through either side of them. */
.media-pair-band { background: var(--white); }
.media-pair img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------- privacy notice */
.privacy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--ink);
  border-top: 2px solid var(--signal);
  padding: 1.1rem var(--gutter) 1.2rem;
  transform: translateY(110%);
  transition: transform 420ms ease;
}
.privacy-bar.is-up { transform: none; }
.privacy-bar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.privacy-bar p {
  margin: 0;
  flex: 1 1 22rem;
  color: var(--on-dark-2);
  font-size: 0.88rem;
  line-height: 1.55;
}
.privacy-bar a { color: var(--signal-lift); }
.privacy-bar .btn { padding: 0.7rem 1.4rem; font-size: 0.88rem; }
@media (max-width: 720px) {
  .privacy-bar__inner { gap: 0.9rem; }
  .privacy-bar .btn { width: 100%; justify-content: center; }
}

/* -------------------------------------------------------------- reveal */

.reveal { transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .client-grid li:nth-child(5n) { border-right: 1px solid var(--rule); }
  .client-grid li:nth-last-child(-n+5) { border-bottom: 1px solid var(--rule); }
  .client-grid li:nth-child(3n) { border-right: 0; }
  .client-grid li:nth-last-child(-n+1) { border-bottom: 0; }
  .page-head__figure { display: none; }
}

@media (max-width: 720px) {
  /* 16px minimum stops iOS zooming the page when a field is focused */
  .field input,
  .field select,
  .field textarea { font-size: 16px; padding: 1rem 0.95rem; }
  .btn { width: 100%; justify-content: center; min-height: 48px; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .hero__index a { min-height: 44px; }
  .topbar { display: none; }
  .nav-toggle { display: inline-block; }
  .site-head__inner { min-height: 4.25rem; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-3);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--ink-3); }
  .nav a { display: block; padding: 0.95rem 0; border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom: 0; color: var(--signal); }
  .nav__cta { text-align: center; margin-top: 1rem; }

  .hero__index { grid-template-columns: 1fr; }
  .hero__index a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); padding-right: 0; }
  .hero__index a:last-child { border-bottom: 0; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .media-pair { grid-template-columns: 1fr; }
  .media-pair img { height: 13rem; }
  .form-grid { grid-template-columns: 1fr; }
  .checklist--split { columns: 1; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid li:nth-child(3n) { border-right: 1px solid var(--rule); }
  .client-grid li:nth-child(2n) { border-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .page-head::before, .page-head::after { display: none; }
}


/* ------------------------------------------------ mobile ergonomics ----
   Larger type and finger sized tap targets on phones. Nothing below 12px,
   and every link at least 44px tall, which is the usual touch minimum. */
@media (max-width: 900px) {
  .eyebrow { font-size: 0.78rem; }
  .site-foot { font-size: 0.98rem; }
  .site-foot h4 { font-size: 0.78rem; }
  .contact-list .label { font-size: 0.78rem; }
  .foot-base { font-size: 0.8rem; line-height: 1.6; }
  .disclaimer, .figure-note, .field-note, .field__error { font-size: 0.86rem; }
  .card__index, .sectors li { font-size: 0.82rem; }
  .field label { font-size: 0.8rem; }
  .spec-list span { font-size: 0.8rem; }
  .contact-list .value a { display: inline-flex; align-items: center; min-height: 44px; }
  .consent input { width: 1.5rem; height: 1.5rem; }
  .consent label { font-size: 0.92rem; }

  .site-foot li { margin-bottom: 0; }
  .site-foot li a,
  .foot-base a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .arrow-link { min-height: 44px; align-items: center; }
  .nav-toggle { min-height: 44px; padding-inline: 1.1rem; }
  .btn { min-height: 48px; }
  .consent input { width: 1.35rem; height: 1.35rem; }
  .rail button { min-width: 44px; min-height: 44px; }
  .checklist li a { display: inline-flex; align-items: center; min-height: 44px; }
  .topbar { font-size: 0.8rem; }
  .topbar a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* Tablet keeps the horizontal nav, so give those links a touch sized height */
@media (min-width: 721px) and (max-width: 900px) {
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav__cta { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .topbar, .nav, .cta, .site-foot { display: none; }
  body { background: #fff; }
}
