/* ==========================================================================
   Core MTX website styles

   Contents
   1.  Brand colours and fonts
   2.  Base styles
   3.  Layout helpers
   4.  Buttons and links
   5.  Header and menu
   6.  Page banner and breadcrumb
   7.  Home page
   8.  Cards
   9.  Application picker and map
   10. Products
   11. Tables and lists
   12. Forms
   13. Call-to-action band
   14. Footer
   15. Small helpers
   16. Contact page map
   ========================================================================== */


/* 1. Brand colours and fonts
   Change a colour here and it changes across the whole site.
   ========================================================================== */

:root {
  --blue: #0069aa;
  --blue-dark: #00528a;
  --navy: #001d36;
  --cyan: #009dd6;
  --yellow: #fff200;
  --yellow-light: #fff766;
  --pale: #d6e6f2;
  --ink: #14232f;
  --muted: #4d5b66;
  --mist: #f2f5f7;
  --line: #dfe5ea;
  --error: #b3123f;

  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
}

@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}


/* 2. Base styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  flex: 1;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

h3 {
  color: var(--blue);
  font-size: 1.125rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

address {
  font-style: normal;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--yellow);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 50;
  padding: 0.5rem 1rem;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
  transform: translateY(-5rem);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* 3. Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: 3.5rem;
}

.section-tint {
  background: var(--mist);
}

.section-line {
  border-top: 1px solid var(--line);
}

.section-dark {
  background: var(--navy);
  color: #fff;
}

.section-blue {
  background: var(--blue);
  color: #fff;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.split {
  display: grid;
  gap: 2.5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: block;
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  color: var(--blue);
  font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem);
  letter-spacing: -0.015em;
}

.eyebrow + .section-title {
  margin-top: 0.5rem;
}

.section-dark .eyebrow,
.section-blue .eyebrow,
.site-footer .eyebrow {
  color: var(--yellow);
}

.section-dark .section-title,
.section-blue .section-title {
  color: #fff;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
}

.text-muted {
  color: var(--muted);
}

.text-small {
  font-size: 0.9375rem;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }

  .section {
    padding-block: 5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }

  .split-even {
    grid-template-columns: 1fr 1fr;
  }

  .split-wide-left {
    grid-template-columns: 1.4fr 1fr;
  }

  .sticky-side {
    position: sticky;
    top: 9rem;
    align-self: start;
  }
}


/* 4. Buttons and links
   Add the class "arrow" to any button or link to give it an arrow.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid transparent;
  background: none;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.arrow::after {
  content: '';
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}

.btn-yellow:hover {
  background: var(--yellow-light);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  border-color: rgb(255 255 255 / 0.55);
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--blue);
}

.btn-wide {
  justify-content: space-between;
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.link-arrow:hover {
  color: var(--blue-dark);
  text-decoration-color: currentColor;
}

.link-plain {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.5rem;
}

.chips li {
  padding: 0.5rem 1rem;
  border: 1px solid rgb(0 105 170 / 0.3);
  background: #fff;
  color: var(--blue);
  font-weight: 500;
}

.chips-plain li {
  padding: 0.375rem 0.75rem;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 400;
}


/* 5. Header and menu
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 0.875rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.25rem;
}

.topbar-text {
  display: none;
  color: var(--pale);
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.topbar-links a:hover {
  text-decoration: underline;
}

.topbar-email {
  display: none;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.logo img {
  width: 148px;
  height: 40px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  display: none;
  min-height: 2.75rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Phone and tablet menu */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 40px -24px rgb(0 105 170 / 0.45);
}

.main-nav.is-open {
  display: block;
}

.nav-item {
  border-bottom: 1px solid var(--line);
}

.nav-link,
.nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  width: 100%;
  min-height: 3rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.nav-button::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.25rem;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}

.nav-button[aria-expanded='true']::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-link:hover,
.nav-button:hover,
.nav-button[aria-expanded='true'],
.is-current {
  color: var(--blue-dark);
}

.mega-menu-inner {
  display: grid;
  gap: 1rem;
  padding: 0 0 1rem;
}

.mega-menu-title {
  display: none;
}

.mega-menu .eyebrow {
  margin-bottom: 0.25rem;
}

.mega-menu li a {
  display: block;
  padding-block: 0.375rem;
}

.mega-menu li a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.nav-cta {
  padding-top: 1rem;
}

.nav-cta .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .topbar-email {
    display: list-item;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }
}

@media (min-width: 768px) {
  .topbar-text {
    display: block;
  }
}

/* Desktop menu */
@media (min-width: 1280px) {
  .menu-toggle {
    display: none;
  }

  .main-nav,
  .main-nav.is-open {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .main-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-item {
    border: 0;
  }

  .nav-link,
  .nav-button {
    width: auto;
    min-height: 2.75rem;
    padding-inline: 0.75rem;
  }

  .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px -24px rgb(0 105 170 / 0.45);
  }

  .mega-menu-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }

  .mega-menu-title {
    display: block;
    margin-bottom: 1rem;
    color: var(--blue);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
  }

  .mega-menu .eyebrow {
    margin-bottom: 0.75rem;
  }
}


/* 6. Page banner and breadcrumb
   ========================================================================== */

.breadcrumb {
  padding-block: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
}

.breadcrumb a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.breadcrumb [aria-current] {
  color: var(--ink);
}

.page-banner {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

.page-banner-logo {
  display: none;
  position: absolute;
  top: 50%;
  right: 1.5rem;
  width: auto;
  height: 7rem;
  transform: translateY(-50%);
}

.page-banner-inner {
  position: relative;
  padding-block: 3rem;
}

.accent-rule {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: var(--yellow);
}

.page-banner h1 {
  max-width: 48rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.page-banner p {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--pale);
  font-size: 1.125rem;
}

@media (min-width: 640px) {
  .page-banner-logo {
    display: block;
  }

  /* Keeps long titles clear of the logo */
  .page-banner h1,
  .page-banner p {
    padding-right: 10rem;
  }
}

@media (min-width: 1024px) {
  .page-banner-logo {
    right: 6%;
    height: 8rem;
  }

  .page-banner-inner {
    padding-block: 4rem;
  }

  .page-banner p {
    font-size: 1.25rem;
  }
}


/* 7. Home page
   ========================================================================== */

.hero {
  background: var(--navy);
  color: #fff;
}

.hero-inner {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

.hero .accent-rule {
  width: 3rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero-text {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--pale);
  font-size: 1.125rem;
}

.hero .btn-group {
  margin-top: 2rem;
}

.hero-trace {
  padding: 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  background: rgb(0 105 170 / 0.5);
}

.hero-trace img {
  width: 100%;
  height: auto;
}

.hero-trace p {
  margin-top: 0.5rem;
  color: rgb(214 230 242 / 0.8);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.stats-band {
  padding-bottom: 3rem;
  background: var(--navy);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--yellow);
  color: var(--navy);
}

.stat dt {
  font-size: 0.9875rem;
  line-height: 1.35;
}

.stat dd {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}

.industries {
  position: relative;
  overflow: hidden;
}

.industries-inner {
  position: relative;
}

.industries h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem);
  font-weight: 300;
  text-align: center;
}

.industries-list {
  display: grid;
  gap: 0.75rem;
  max-width: 64rem;
  margin: 2rem auto 0;
}

.partner-strip {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.partner-logo {
  width: auto;
  max-width: 100%;
  height: 3.5rem;
  object-fit: contain;
  object-position: left center;
}

.partner-strip li {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-strip a {
  display: block;
  height: 100%;
  padding: 1.5rem;
}

.partner-strip span {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
}

.vision {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  text-align: center;
}

.vision p {
  max-width: 48rem;
  margin: 0.75rem auto 0;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
}

.vision-mission p {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .stats-band {
    padding-bottom: 4rem;
  }

  .hero-trace {
    padding: 1.25rem;
  }

  .industries-list,
  .partner-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    padding-block: 6rem;
  }

  .hero-text {
    font-size: 1.25rem;
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .stat {
    padding: 1.5rem;
  }

  .partner-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vision-mission {
    max-width: 64rem;
  }

  .vision {
    padding-block: 4rem;
  }
}


/* 8. Cards
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 28px -18px rgb(0 105 170 / 0.55);
}

.card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.card .link-arrow {
  align-self: flex-start;
  margin-top: auto;
}

.card p + .link-arrow {
  margin-top: 1.25rem;
}

.card-rule::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--blue);
}

.points {
  display: grid;
  gap: 1.5rem 2rem;
}

.points li {
  padding-top: 0.75rem;
  border-top: 2px solid var(--blue);
}

.points h2,
.points h3 {
  color: var(--blue);
  font-size: 1rem;
}

.points p {
  margin-top: 0.375rem;
  color: var(--muted);
}

.point-number {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.definition {
  padding-left: 1rem;
  border-left: 4px solid var(--yellow);
}

.definition + .definition {
  margin-top: 1.25rem;
  border-left-color: var(--cyan);
}

.definition dt {
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 500;
}

.definition dd {
  margin-top: 0.25rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-photo {
  aspect-ratio: 4 / 3;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.photo-single {
  height: auto;
  border: 1px solid var(--line);
}

.diagram {
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.diagram img {
  width: 100%;
  height: auto;
}

@media (min-width: 640px) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagram {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


/* 9. Application picker and map
   ========================================================================== */

.picker {
  display: grid;
  border: 1px solid var(--line);
  background: #fff;
}

.picker-side {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.picker-intro {
  padding: 1.5rem;
}

.picker-intro p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.picker-tabs {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.picker-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
}

.picker-tab:last-child {
  border-bottom: 0;
}

.picker-tab:hover {
  background: var(--mist);
}

.picker-tab[aria-selected='true'] {
  background: var(--blue);
  color: #fff;
}

.picker-main {
  min-width: 0;
  background: rgb(242 245 247 / 0.6);
}

.picker-map {
  padding: 1rem 0.5rem 0;
}

.picker-panel-wrap {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.picker-panel h3 {
  font-size: 1.25rem;
}

.picker-panel p {
  max-width: 42rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

.picker-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .picker-map {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .picker {
    grid-template-columns: 23rem 1fr;
  }

  .picker-side {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .picker-intro {
    padding: 2rem;
  }

  .picker-tab {
    padding-inline: 2rem;
  }

  .picker-panel-wrap {
    min-height: 12rem;
    padding: 2rem;
  }
}

/* Map drawing. A selected zone turns blue and yellow. */
.iso {
  width: 100%;
  height: auto;
}

.iso .f-top { fill: #fbfcfd; }
.iso .f-l { fill: #d9e3ea; }
.iso .f-r { fill: #c3d1dc; }

.iso .f-top,
.iso .f-l,
.iso .f-r {
  stroke: #9fb2c0;
  stroke-width: 0.5;
  stroke-linejoin: round;
  transition: fill 0.25s;
}

.iso .wire {
  fill: none;
  stroke: #b4c4d0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}

.iso .label {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: fill 0.25s;
}

.iso .is-on .f-top { fill: var(--yellow); }
.iso .is-on .f-l { fill: #00558c; }
.iso .is-on .f-r { fill: var(--blue); }

.iso .is-on .f-top,
.iso .is-on .f-l,
.iso .is-on .f-r {
  stroke: var(--navy);
}

.iso .is-on .wire {
  stroke: var(--blue);
  stroke-width: 3;
  stroke-dasharray: 2 7;
  animation: pulse-run 1.2s linear infinite;
}

.iso .is-on .label {
  fill: var(--blue);
  font-weight: 500;
}

@keyframes pulse-run {
  to {
    stroke-dashoffset: -18;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .iso .is-on .wire {
    animation: none;
  }
}


/* 10. Products
   ========================================================================== */

.catalogue {
  display: grid;
  gap: 2rem;
}

.filters .field-label {
  margin-top: 1.25rem;
}

.filters .field-label:first-child {
  margin-top: 0;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-check input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--blue);
}

/* On phones the results sit below the filters, so this jumps down to them. */
.filters-show {
  width: 100%;
  margin-top: 1rem;
}

.product-count {
  margin-bottom: 1rem;
  font-weight: 500;
}

.product-group + .product-group {
  margin-top: 3rem;
}

.product-group-title {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-size: 1.25rem;
}

.product-grid {
  display: grid;
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.product-card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 28px -18px rgb(0 105 170 / 0.55);
}

.product-card:target {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--yellow);
}

.product-photo {
  aspect-ratio: 4 / 3;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Shown when a product has no confirmed photo */
.product-photo-empty {
  display: flex;
  align-items: flex-end;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150' fill='none' stroke='%23cfdde6' stroke-width='2'%3E%3Cpath d='M200 26H120L92 54H40M200 62H146L118 90H74M200 98H170L142 126H112'/%3E%3Ccircle cx='33' cy='54' r='7'/%3E%3Ccircle cx='67' cy='90' r='7'/%3E%3Ccircle cx='105' cy='126' r='7'/%3E%3C/svg%3E") right top / auto 100% no-repeat;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.product-brand {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-body h3 {
  margin-top: 0.375rem;
}

.product-text {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9875rem;
  line-height: 1.4;
}

.product-features {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  list-style: disc;
}

.product-features li::marker,
.list-bullets li::marker {
  color: var(--cyan);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: auto;
  padding-top: 1rem;
}

.empty-state {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--mist);
}

.empty-state h2 {
  color: var(--blue);
  font-size: 1.25rem;
}

.empty-state p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.empty-state .btn-group {
  align-items: center;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .catalogue {
    grid-template-columns: 17rem 1fr;
  }

  .filters {
    position: sticky;
    top: 9rem;
    align-self: start;
  }

  .filters-show {
    display: none;
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* 11. Tables and lists
   ========================================================================== */

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-wrap thead {
  background: var(--mist);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.table-wrap th,
.table-wrap td {
  padding: 0.75rem 1rem;
}

.table-wrap thead th {
  font-weight: 500;
}

.table-wrap tbody tr {
  border-top: 1px solid var(--line);
}

.table-wrap tbody th {
  width: 6rem;
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 500;
}

.table-dark {
  border-color: rgb(255 255 255 / 0.2);
}

.table-dark thead {
  background: rgb(0 29 54 / 0.4);
  color: #fff;
}

.table-dark tbody tr {
  border-color: rgb(255 255 255 / 0.15);
}

.table-dark tbody th {
  color: var(--yellow);
}

.facts {
  align-self: start;
  border: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  font-weight: 500;
}

.list-bullets {
  padding-left: 1.25rem;
  list-style: disc;
}

.list-bullets li + li {
  margin-top: 0.25rem;
}

.list-spaced li + li {
  margin-top: 0.5rem;
}

.list-spaced a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.contact-list > div + div {
  margin-top: 1.25rem;
}

.contact-list dd {
  margin-top: 0.25rem;
}

.contact-strong {
  color: var(--blue);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.steps li {
  display: flex;
  gap: 0.75rem;
}

.steps li + li {
  margin-top: 1rem;
}

.steps span:first-child {
  color: var(--blue);
  font-family: var(--font-mono);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 2.5rem;
}

.legal h2 {
  color: var(--blue);
  font-size: 1.25rem;
}

.legal p,
.legal address {
  margin-top: 0.5rem;
}

.legal-block {
  margin-bottom: 2rem;
}

.narrow {
  max-width: 48rem;
}


/* 12. Forms
   ========================================================================== */

.form-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--mist);
}

.contact-quote {
  align-self: start;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.field-input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid #7c8a95;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea.field-input {
  min-height: 9rem;
}

.field-input:focus-visible {
  border-color: var(--blue);
}

.field-input[aria-invalid='true'] {
  border: 2px solid var(--error);
}

.field-error {
  margin-top: 0.375rem;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}

.field-hint,
.form-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.field-hint {
  margin-top: 0.25rem;
}

.form-note {
  margin-top: 1.25rem;
}

.form-submit {
  margin-top: 1.25rem;
}

.form-send-hint {
  margin-top: 0.75rem;
}

/* Hidden field that catches spam bots */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem;
  border-left: 4px solid var(--blue);
  background: #fff;
}

.form-status.is-error {
  border-left-color: var(--error);
  background: #fdf0f3;
}

.form-status a {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .form-panel {
    padding: 2rem;
  }

  .contact-quote {
  align-self: start;
}

.form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-full {
    grid-column: 1 / -1;
  }
}


/* 13. Call-to-action band
   ========================================================================== */

.cta-band {
  padding-block: 2.5rem;
  background: var(--navy);
}

.cta-box {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--yellow);
  color: var(--navy);
}

.cta-box h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
  letter-spacing: -0.015em;
}

.cta-box p {
  max-width: 42rem;
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.cta-actions p {
  margin: 0;
  font-size: 1.0625rem;
}

.cta-actions a:not(.btn) {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 640px) {
  .cta-box {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .cta-band {
    padding-block: 3.5rem;
  }

  .cta-box {
    grid-template-columns: 1.5fr 1fr;
    padding: 3rem;
  }

  .cta-actions {
    align-items: flex-end;
  }
}


/* 14. Footer
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: var(--pale);
}

.footer-inner {
  padding-block: 3rem 2rem;
}

.footer-links {
  display: grid;
  gap: 0.75rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

.footer-logo {
  width: 108px;
  height: 88px;
}

.footer-company {
  margin-top: 1.5rem;
}

.footer-company strong {
  color: #fff;
}

.footer-contact {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 0.25rem 0.5rem;
  margin-top: 1rem;
}

.footer-contact a,
.footer-map {
  color: #fff;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-map {
  display: inline-block;
  margin-top: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-column .eyebrow {
  margin-bottom: 0.75rem;
}

.footer-column li + li {
  margin-top: 0.375rem;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: 0.875rem;
}

.footer-legal p + p {
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}


/* 15. Small helpers
   ========================================================================== */

.text-large {
  font-size: 1.125rem;
}

.text-lavender {
  color: var(--pale);
}

.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.section-flush-top {
  padding-top: 0;
}

.card-title {
  color: var(--blue);
  font-size: 1.25rem;
}

.partner-heading {
  line-height: 0;
}

.card .partner-supplies {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: 1.125rem;
}

.partner-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: auto;
}

.partner-links .link-arrow {
  margin: 0;
}

.prefer-talk {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.prefer-talk-title {
  color: var(--blue);
  font-weight: 500;
}

.page-title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}

@media (min-width: 1024px) {
  .split-form {
    grid-template-columns: 1.6fr 1fr;
  }
}


/* 16. Contact page map
   On phones the card sits below the map. On larger screens it floats over the map.
   ========================================================================== */

.office-map {
  border-top: 1px solid var(--line);
}

.office-map-frame {
  display: block;
  width: 100%;
  height: 20rem;
  border: 0;
  background: var(--mist);
}

.office-map-inner {
  padding-block: 1.5rem;
}

.office-card address {
  margin-top: 0.75rem;
  color: var(--muted);
}

.office-card address strong {
  color: var(--ink);
}

.office-card .btn {
  margin-top: 1.25rem;
}

.office-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-size: 1.5rem;
}

.office-card-title svg {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
}

@media (min-width: 768px) {
  .office-map {
    position: relative;
  }

  .office-map-frame {
    height: 32rem;
  }

  /* Clicks pass through the empty space, so the map can still be dragged. */
  .office-map-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    padding-block: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .office-card {
    width: 22rem;
    padding: 2rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 16px 40px -16px rgb(0 29 54 / 0.45);
    pointer-events: auto;
  }
}
