/* Meridian Lab & Industrial Supply (concept project). Swiss-clean, navy + signal orange. */

@font-face {
  font-family: "Inter Tight";
  src: url("/b2b/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/b2b/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/b2b/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --navy: #0a1a2f;
  --navy-2: #1b3560;
  --ink: #0e1b2d;
  --muted: #4b5566;
  --paper: #f5f6f8;
  --white: #ffffff;
  --tint: #e9edf3;
  --line: #d3d9e3;
  --field: #7a8496;
  --signal: #2dd4bf;
  --signal-hover: #5eead4;
  --signal-ink: #0a7068;
  --signal-on-navy: #2dd4bf;
  --danger: #b42318;
  --success: #1f7a4d;
  --on-navy: #ffffff;
  --on-navy-muted: #a9b6c9;

  /* shape, depth, motion */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgb(10 26 47 / 0.06), 0 2px 8px rgb(10 26 47 / 0.05);
  --shadow-2: 0 1px 2px rgb(10 26 47 / 0.06), 0 14px 32px -12px rgb(10 26 47 / 0.22), 0 30px 60px -30px rgb(10 26 47 / 0.25);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 180ms;
  --dur-reveal: 700ms;

  /* type */
  --font-display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-display: clamp(2.5rem, 1.35rem + 5.2vw, 5.25rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --fs-small: 0.875rem;
  --fs-mono: 0.8125rem;

  /* layout */
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --maxw: 1200px;
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  --pill-space: 8.75rem; /* room for the fixed Portfolio pill */
  --space-section: clamp(4rem, 2.5rem + 6vw, 7.5rem);

  /* shared portfolio pill, recoloured to navy */
  --pf-back-bg: var(--navy);
  --pf-back-fg: #ffffff;
  --pf-back-ring: rgb(10 26 47 / 0.2);
}

/* the shared pill sets its own tokens on the element, so override there */
body > .pf-back {
  --pf-back-bg: var(--navy);
  --pf-back-fg: #ffffff;
  --pf-back-ring: rgb(10 26 47 / 0.2);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.035em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.15; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--signal-ink);
  outline-offset: 3px;
}
/* programmatic focus on headings and containers (focus restore, skip targets) stays quiet */
[tabindex="-1"]:focus-visible { outline: none; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -200px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--signal);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 4.5rem; }

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-ink);
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}
.on-navy .kicker { color: var(--signal-on-navy); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}

.section { padding-block: var(--space-section); }
.section--white { background: var(--white); }
.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section-head--split { align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr auto; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  align-self: start;
}
.text-link:hover { color: var(--signal-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-signal { background: var(--signal); color: var(--navy); }
.btn-signal:hover { background: var(--signal-hover); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--tint); }
.btn-sm { padding-inline: 0.85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { background: var(--tint); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 64px;
  padding-inline-start: max(var(--pill-space), var(--edge));
  padding-inline-end: var(--edge);
}
@media (min-width: 900px) {
  .header-inner { min-height: 72px; gap: 2rem; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-sub {
  display: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
@media (min-width: 900px) {
  .brand-sub { display: inline; }
}
@media (max-width: 479px) {
  .brand-mark { display: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.primary-nav {
  display: none;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.primary-nav a:hover { background: var(--tint); }
.primary-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--signal);
}

/* mobile disclosure menu */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .label { display: none; }
@media (min-width: 480px) {
  .nav-toggle .label { display: inline; }
}
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="false"] .icon-close { display: none; }

.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgb(10 26 47 / 0.3);
}
.primary-nav.is-open a {
  min-height: 52px;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

@media (min-width: 900px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-inline-start: auto;
  }
  .nav-toggle { display: none; }
  .header-actions { margin-inline-start: 0; }
  .primary-nav.is-open { position: static; box-shadow: none; border: 0; padding: 0; flex-direction: row; }
  .primary-nav.is-open a { border: 0; font-size: inherit; min-height: 44px; }
}

/* enquiry tray link with count badge */
.tray-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.5rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.tray-link:hover { background: var(--tint); }
.tray-link .tray-text { display: none; }
@media (min-width: 640px) {
  .tray-link { padding-inline: 0.85rem; }
  .tray-link .tray-text { display: inline; }
}
.tray-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--signal);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

/* ---------- hero ---------- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgb(10 26 47 / 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(10 26 47 / 0.055) 1px, transparent 1px);
  background-size: clamp(3rem, 2rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5rem);
  background-position: top left;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 6rem) clamp(3rem, 2rem + 3vw, 5rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 80% 30%, rgb(45 212 191 / 0.10), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero-copy { display: grid; gap: 1.5rem; }
.hero-copy h1 { max-width: 13ch; }
.hero-art {
  margin: 0;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
  padding: clamp(1rem, 0.6rem + 1.5vw, 1.5rem);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-2);
  border: 1px solid rgb(10 26 47 / 0.06);
}
.hero-art svg { width: 100%; height: auto; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-facts dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ---------- trust strip ---------- */
.trust {
  background: var(--navy);
  color: var(--on-navy);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  padding-block: 0.5rem;
}
.trust-item {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}
.trust-item:first-child { border-top: 0; }
.trust-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.trust-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.trust-desc { font-size: var(--fs-small); color: var(--on-navy-muted); }
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .trust-item:nth-child(2) { border-top: 0; }
}
@media (min-width: 1000px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; padding-block: 0; }
  .trust-item, .trust-item:nth-child(2) { border-top: 0; padding: 2.25rem 0; border-inline-start: 1px solid rgb(255 255 255 / 0.14); padding-inline-start: 1.5rem; }
  .trust-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- category tiles ---------- */
.tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  min-height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tile-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--navy);
}
.tile-icon .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.tile h3 { font-size: 1.25rem; }
.tile p { color: var(--muted); font-size: var(--fs-small); }
.tile-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--muted);
}
.tile-foot .arrow { color: var(--navy); font-weight: 600; }
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles > li:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- product cards ---------- */
.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
}
@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgb(10 26 47 / 0.07);
  box-shadow: var(--shadow-1);
}
.card-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background-color: var(--tint);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(10 26 47 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(10 26 47 / 0.06) 1px, transparent 1px);
  background-size: 2rem 2rem;
}
.card-art .icon {
  position: relative;
  width: 72px;
  height: 72px;
  stroke-width: 1.25;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  padding: 1.25rem 1.25rem 0;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.card-title {
  font-size: 1.3rem;
  line-height: 1.12;
}
.card-title-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: start;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.card-title-btn:hover { text-decoration-color: currentColor; }
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.card-summary { color: var(--muted); font-size: var(--fs-small); }
.card-lead {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--success);
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
}
.card-foot .btn { flex: 1 1 auto; }

/* ---------- featured band ---------- */
.band-navy {
  background: var(--navy);
  color: var(--on-navy);
}
.band-navy .lede { color: var(--on-navy-muted); }
.cta-band {
  display: grid;
  gap: 1.75rem;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-radius: 20px;
  background: var(--navy);
  color: var(--on-navy);
  background-image: radial-gradient(70% 90% at 100% 0%, rgb(45 212 191 / 0.28), transparent 60%);
}
.cta-band h2 { max-width: 18ch; }
.cta-band .lede { color: var(--on-navy-muted); }
@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- products toolbar ---------- */
.page-head {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.page-head h1 { max-width: 14ch; }
.page-head .lede { margin-top: 1.25rem; }

.toolbar {
  display: grid;
  gap: 1rem;
  padding-block: 1.5rem;
}
.search-field { position: relative; }
.search-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
}
.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.9rem 0.6rem 2.75rem;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
}
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field input:focus-visible { outline: 3px solid var(--signal-ink); outline-offset: 2px; border-color: var(--navy); }
.search-field .icon {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}
.search-field input::-webkit-search-cancel-button { cursor: pointer; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--field);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.chip-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.8;
}
.results-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: var(--fs-small);
}
.results-row strong { color: var(--ink); font-weight: 600; }

.empty-state {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--field);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.empty-state p { color: var(--muted); }

/* ---------- spec drawer (native dialog) ---------- */
.drawer {
  width: min(560px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: -24px 0 60px -20px rgb(10 26 47 / 0.35);
  overflow: hidden;
}
.drawer::backdrop { background: rgb(7 20 38 / 0.55); }
.drawer[open] {
  display: flex;
  flex-direction: column;
  animation: drawer-in 420ms var(--ease-out);
}
@keyframes drawer-in {
  from { transform: translateX(32px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.drawer-head .card-meta { margin-bottom: 0.5rem; }
.drawer-head h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem;
  display: grid;
  gap: 1.75rem;
  align-content: start;
}
.drawer-art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background-color: var(--tint);
  color: var(--navy);
  position: relative;
  overflow: hidden;
}
.drawer-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(10 26 47 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(10 26 47 / 0.06) 1px, transparent 1px);
  background-size: 2rem 2rem;
}
.drawer-art .icon { position: relative; width: 96px; height: 96px; stroke-width: 1.2; }
.drawer-body h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.drawer-summary { color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }
.features { display: grid; gap: 0.6rem; list-style: none; }
.features li {
  position: relative;
  padding-inline-start: 1.5rem;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.spec-table caption { text-align: start; }
.spec-table th,
.spec-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.spec-table th {
  width: 42%;
  padding-inline-end: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.spec-table td { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink); }
.lead-time {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--tint);
  font-size: var(--fs-small);
}
.lead-time .icon { color: var(--navy); margin-top: 0.1rem; }
.drawer-foot {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 -12px 24px -20px rgb(10 26 47 / 0.3);
}
.add-status { min-height: 1.5em; font-size: var(--fs-small); color: var(--success); font-weight: 500; }
.qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.qty-row > label,
.field-label {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* stepper: two 44px buttons around a number input */
.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.stepper button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.stepper button:hover { background: var(--tint); }
.stepper button .icon { width: 18px; height: 18px; }
.stepper input {
  width: 4.5rem;
  min-height: 44px;
  border: 0;
  border-inline: 1px solid var(--field);
  border-radius: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  background: var(--white);
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline-offset: -3px; }
.stepper:focus-within { border-color: var(--navy); }

/* ---------- forms ---------- */
.form-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--signal-ink); outline-offset: 2px; border-color: var(--navy); }
.field .hint { font-size: var(--fs-small); color: var(--muted); }
.field .error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--danger);
}
.field .error .icon { width: 16px; height: 16px; margin-top: 0.2rem; }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.char-count { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); justify-self: end; }

.form-status { min-height: 1.5em; font-size: var(--fs-small); font-weight: 500; }
.form-status.is-error { color: var(--danger); }

.demo-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff4e8;
  color: var(--ink);
  font-size: var(--fs-small);
  border: 1px solid #f4c9a6;
}
.demo-note .icon { color: var(--signal-ink); margin-top: 0.1rem; }

/* enquiry list */
.enquiry-panel {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
  border: 1px solid rgb(10 26 47 / 0.07);
}
.enquiry-panel h2 { font-size: 1.5rem; }
.tray-list { display: grid; gap: 0; list-style: none; }
.tray-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.tray-item:first-child { border-top: 0; padding-top: 0; }
.tray-name { font-weight: 600; line-height: 1.3; }
.tray-sku { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.tray-controls { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.remove-btn {
  min-height: 44px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.remove-btn:hover { color: var(--danger); }
.tray-empty { display: grid; gap: 0.75rem; color: var(--muted); font-size: var(--fs-small); }

/* preview panel */
.preview {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--navy);
  box-shadow: var(--shadow-2);
}
.preview:focus { outline: none; }
.preview h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.demo-tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.preview pre {
  margin: 0;
  padding: 1.1rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.copy-status { min-height: 1.5em; font-size: var(--fs-small); color: var(--success); font-weight: 500; }
.tray-empty a.text-link { justify-self: start; }

/* ---------- contact layout ---------- */
.contact-grid { display: grid; gap: 2.5rem; padding-block: 0; }
.section--flush-top { padding-top: 0; }
.form-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-actions { margin-top: 1.5rem; }
.tray-note { font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; gap: 3.5rem; }
  .enquiry-panel { position: sticky; top: 6.5rem; }
}

/* ---------- about ---------- */
.prose { display: grid; gap: 1.1rem; max-width: 42rem; font-size: 1.0625rem; color: var(--ink); }
.prose p + p { color: var(--muted); }

.values {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  list-style: none;
}
.values li { background: var(--white); padding: 1.75rem 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.value-num { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--signal-ink); }
.values p { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 760px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.75rem;
  list-style: none;
  padding-inline-start: 1.75rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; display: grid; gap: 0.3rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--navy);
  box-sizing: border-box;
}
.timeline li:last-child::before { background: var(--signal); border-color: var(--signal); }
.timeline time {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--signal-ink);
  font-weight: 500;
}
.timeline h3 { font-size: 1.2rem; }
.timeline p { color: var(--muted); font-size: var(--fs-small); max-width: 36rem; }
@media (min-width: 900px) {
  .timeline { padding-inline-start: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .timeline::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; }
  .timeline li { padding-inline-end: 1.5rem; }
  .timeline li::before { left: 0; top: -0.25rem; }
}

.team {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
}
.person {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgb(10 26 47 / 0.1);
}
.person h3 { font-size: 1.2rem; }
.person .role { color: var(--muted); font-size: var(--fs-small); }
.person p.bio { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.locations {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
}
.location {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
  border-top: 3px solid var(--navy);
}
.location.is-hq { border-top-color: var(--signal); }
.location dl { display: grid; gap: 0.5rem; margin: 0; font-size: var(--fs-small); }
.location dt { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.location dd { margin: 0; }
@media (min-width: 760px) { .locations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.footer-note { margin-top: 0.75rem; color: var(--on-navy-muted); font-size: var(--fs-small); max-width: 34rem; }
.footer-title {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  margin-bottom: 0.75rem;
}
.footer-links { display: grid; gap: 0.25rem; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  color: var(--on-navy);
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  color: var(--on-navy-muted);
  font-size: var(--fs-small);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  width: min(calc(100% - 2rem), 440px);
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--on-navy);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-small);
  opacity: 0;
  transform: translate(-50%, 1.5rem);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.toast-text { flex: 1 1 14rem; min-width: 0; }
.toast-actions { display: contents; }
.toast a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  color: var(--signal-on-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.toast .icon-btn { width: 44px; height: 44px; border-color: rgb(255 255 255 / 0.35); background: transparent; color: var(--on-navy); }
.toast .icon-btn:hover { background: rgb(255 255 255 / 0.1); }

/* ---------- reveal on scroll (IntersectionObserver adds .is-in) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* very narrow phones: swap the wordmark for the mark so the header fits beside the Portfolio pill */
@media (max-width: 379px) {
  :root { --pill-space: 8.25rem; }
  .brand-name { display: none; }
  .brand-mark { display: block; }
  .tray-link { padding-inline: 0.4rem; }
  .header-actions { gap: 0.25rem; }
}

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

/* Focus rings on navy surfaces use the bright teal (dark teal is under 3:1 on navy). */
.on-navy :focus-visible { outline-color: var(--signal-on-navy); }

/* No "Portfolio" pill for visitors who arrive directly, so give the header its room back. */
html:not(.pf-from-hub) { --pill-space: 0px; }

/* Phone held sideways: the page is short, so let the header scroll away instead of taking a fifth of the screen. */
@media (orientation: landscape) and (max-height: 500px) {
  .site-header { position: static; }
}
