/* ==========================================================================
   NEXUS — Global components
   Header, navigation, footer, buttons, breadcrumbs.
   Rules: .design/DESIGN.md §11 (header), §12 (footer), §13 (buttons),
   §19 (hover), §21 (accessibility), §22 (no shadows, no pills, no glass)
   ========================================================================== */

/* ==========================================================================
   Buttons — exactly three styles, 3px radius, no shadows ever (§13)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;          /* touch target (§20) */
  min-width: 120px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-ui);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-decoration: none;     /* buttons are not underlined links */
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-state),
              border-color var(--dur-micro) var(--ease-state),
              color var(--dur-micro) var(--ease-state);
}
@media (max-width: 767px) { .btn { padding: 12px 20px; } }

/* The main action of a page or section */
.btn--primary { background: var(--c-ink); color: var(--c-canvas); }
/* Alternative actions */
.btn--secondary {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
/* The single most consequential action — once per page maximum.
   White on #0089B9 is 4.0:1, so the label must be large text: 17px/600. */
.btn--accent {
  background: var(--c-blue);
  color: #FFFFFF;
  font-size: clamp(1.0625rem, 1.02rem + 0.19vw, 1.1875rem); /* 17 → 19px */
  font-weight: var(--fw-semi);
}

@media (hover: hover) and (pointer: fine) {
  /* Background tone shift only. No lift, no scale, no shadow, no glow. */
  .btn--primary:hover   { background: var(--c-graphite); }
  .btn--secondary:hover { background: var(--c-mist); }
  .btn--accent:hover    { background: var(--c-ink); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn__arrow {
  transition: transform var(--dur-micro) var(--ease-state);
  font-family: var(--font-sans);
}
.btn[aria-disabled="true"] {
  background: var(--c-mist);
  color: var(--c-aluminium);
  border-color: transparent;
  pointer-events: none;
}

/* On dark surfaces (§13) */
.band--ink .btn--primary, .band--deep .btn--primary,
.site-footer .btn--primary { background: var(--c-surface); color: var(--c-ink); }
.band--ink .btn--secondary, .band--deep .btn--secondary,
.site-footer .btn--secondary { color: var(--c-canvas); border-color: var(--c-steel); }
@media (hover: hover) and (pointer: fine) {
  .band--ink .btn--secondary:hover, .band--deep .btn--secondary:hover {
    background: var(--c-graphite);
  }
  /* On dark, the accent brightens and the label flips to Ink — 6.7:1 */
  .band--ink .btn--accent:hover, .band--deep .btn--accent:hover {
    background: var(--c-blue-bright);
    color: var(--c-ink);
  }
}

/* Text link with an arrow — not a button */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .btn__arrow { transform: translateX(4px); }
}

/* ==========================================================================
   Header (§11) — solid Canvas, 1px hairline, no shadow, no blur, no pill
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-canvas);
  border-bottom: var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
/* Sized by height, width auto — never stretched — and never given a background,
   a border, a shadow or a filter. The brand blue is the asset (DESIGN.md §11).
   Heights are derived, not picked: see DESIGN.md §0.4.14. */
.site-logo img { width: auto; }
.site-logo__lockup { display: none; height: 74px; }
.site-logo__mark { height: 40px; }
@media (min-width: 1024px) {
  .site-logo__lockup { display: block; }
  .site-logo__mark { display: none; }
}
/* Fallback wordmark until the vector logo is supplied (MEDIA-MAP.md §9) */
.site-logo__text {
  font-weight: var(--fw-semi);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.site-logo__text span { color: var(--c-blue); }

/* --- Desktop navigation -------------------------------------------------- */
.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav { display: flex; align-items: center; gap: var(--s-6); }
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  display: inline-block;
  padding-block: var(--s-2);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--c-steel);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-micro) var(--ease-state);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover { color: var(--c-ink); }
}
/* Active page: 2px NEXUS Blue underline, offset 6px. No pills, no chips. */
.site-nav__link[aria-current="page"] {
  color: var(--c-ink);
  border-bottom-color: var(--c-blue);
  padding-bottom: 6px;
}

.site-header__actions { display: flex; align-items: center; gap: var(--s-4); }
.site-header__actions .btn { min-height: 40px; padding: 10px 20px; min-width: 0; }
@media (max-width: 1023px) { .site-header__actions .btn { display: none; } }

/* --- Mobile toggle + full-screen panel (§11) ----------------------------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-ui);
  cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle__bars { display: block; width: 22px; height: 10px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform var(--dur-base) var(--ease-state),
              opacity var(--dur-micro) var(--ease-state);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--c-canvas);   /* opaque Canvas — no blur, no glass */
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-state), visibility var(--dur-base);
}
.mobile-nav[data-open="true"] { opacity: 1; visibility: visible; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  border-bottom: var(--hairline);
  flex-shrink: 0;
}
.mobile-nav__body { flex: 1; overflow-y: auto; padding-block: var(--s-6); }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list li + li { border-top: var(--hairline); }
.mobile-nav__link {
  display: block;
  padding-block: var(--s-5);
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  text-decoration: none;
}
.mobile-nav__link[aria-current="page"] { color: var(--c-blue); }
.mobile-nav__foot {
  border-top: var(--hairline);
  padding-block: var(--s-6);
  flex-shrink: 0;
}
.mobile-nav__foot .btn { width: 100%; }
body[data-nav-open="true"] { overflow: hidden; }

/* --- The mobile panel on the dark ground (every page) --------------------
   Moved here from dark.css, 13 Sep 2026. The homepage loads home.css, which
   never restyled these, so there the close × drew its bars in ink on the black
   panel and Contact us was ink text on a transparent button: both there, both
   invisible. Defined once in the sheet every page loads. */
.page--dark .nav-toggle__bars::before,
.page--dark .nav-toggle__bars::after { background: currentColor; }
.page--dark .mobile-nav .nav-toggle { color: var(--c-invert); }
.page--dark .mobile-nav .btn--secondary {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-ink);
  border-radius: var(--radius-dark-ui);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  letter-spacing: -0.01em;
  text-transform: none;
}
.page--dark .mobile-nav .btn--secondary:link,
.page--dark .mobile-nav .btn--secondary:visited { color: var(--c-ink); }
.page--dark .mobile-nav .nav-toggle:focus-visible,
.page--dark .mobile-nav .btn:focus-visible {
  outline: 2px solid var(--c-accent-on-dark);
  outline-offset: 3px;
}
/* The panel body scrolls between the fixed head and the fixed Contact us.
   `min-block-size: 0` lets a flex child be shorter than its content, which is
   what makes it scroll instead of pushing the last items under the button. */
.mobile-nav__body { min-block-size: 0; overscroll-behavior: contain; }

/* ==========================================================================
   The Products menu (DESIGN.md §11, §0.10) — header.njk, nav.js

   Every public page stands on the dark ground (§0.8), the homepage included,
   so the menu is drawn in the dark roles only: raised #171717 panel, #3A3A3A
   hairline, #EEEEEE text, #AFAFAF secondary text, #00A4E7 for the current
   marker (5.9:1 on the panel). One level, no fly-outs, no images, no hover
   trigger. It is defined here, once, because both header stylesheets — dark.css
   and the homepage's home.css — load after this file and neither restyles it.
   ========================================================================== */

.site-nav__item { position: static; }   /* the panel anchors to the header, not the item */

[data-menu-fallback][hidden],
[data-menu-trigger][hidden],
.menu-panel[hidden],
.mnav-groups[hidden],
.mnav-items[hidden] { display: none; }

.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}
.site-nav__chevron {
  inline-size: 7px;
  block-size: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.site-nav__trigger[aria-expanded="true"] .site-nav__chevron { transform: translateY(1px) rotate(-135deg); }
.page--dark .site-nav__trigger.is-current {
  opacity: 1;
  border-bottom-color: var(--c-accent-on-dark);
  padding-bottom: 6px;
}
.page--dark .site-nav__trigger[aria-expanded="true"] { opacity: 1; }

.page--dark .menu-panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 55;
  background: var(--c-raised);
  border-top: 1px solid var(--c-line-dark);
  border-bottom: 1px solid var(--c-line-dark);
}
.menu-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.26fr);
  gap: var(--s-8);
  padding-block: var(--s-7) var(--s-8);
}
.menu-panel__groups {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-7);
}
.menu-group { display: grid; align-content: start; gap: var(--s-3); }
.page--dark .menu-group__title {
  display: inline-block;
  justify-self: start;
  padding-bottom: var(--s-3);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  letter-spacing: -0.01em;
  color: var(--c-invert);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line-dark);
}
/* A no-break space keeps the arrow on the same line as the last word. */
.page--dark .menu-group__title::after { content: "\00a0\2192"; color: var(--c-accent-on-dark); }
/* The category the reader is in: a blue rule under its name, and the name in
   full white. Paired with visually hidden "(current category)" text. */
.page--dark .menu-group.is-current .menu-group__title { border-bottom: 2px solid var(--c-accent-on-dark); }

.menu-group__list,
.menu-panel__aside { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.page--dark .menu-link {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid transparent;
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  color: var(--c-muted-on-ground);
  text-decoration: none;
}
/* The machine the reader is on. */
.page--dark .menu-link[aria-current="page"] { color: var(--c-invert); border-left-color: var(--c-accent-on-dark); }
/* Powered / Gravity inside the Spiral group: a label, not a link. */
.page--dark .menu-sub {
  margin: var(--s-3) 0 2px;
  font-family: var(--font-label);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--c-muted-on-ground);
}
.page--dark .menu-group__title + .menu-sub { margin-top: 0; }
.page--dark .menu-sub__note {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--c-line-dark);
  border-radius: var(--radius-dark-ui);
  color: var(--c-invert);
  text-transform: none;
  letter-spacing: 0;
}
.page--dark .menu-panel__aside { align-content: start; padding-left: var(--s-6); border-left: 1px solid var(--c-line-dark); }
.page--dark .menu-link--aside { padding-left: 0; border-left: 0; font-size: var(--fs-body); color: var(--c-invert); }
.page--dark .menu-link--aside::after { content: "\00a0\2192"; color: var(--c-accent-on-dark); }
.page--dark .menu-link--aside[aria-current="page"] { color: var(--c-accent-on-dark); }
.page--dark .menu-panel a:focus-visible,
.page--dark .site-nav__trigger:focus-visible {
  outline: 2px solid var(--c-accent-on-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Narrow desktop, 1024–1279px ------------------------------------------
   After the base menu rules on purpose: same specificity, so order decides. */
/* Six items and the menu chevron no longer fit at 32px spacing between 1024
   and 1279px: at 1024 the list wrapped to two rows and pushed the page 17px
   wide. The spacing tightens in that range only; the type size does not. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-nav__list { gap: var(--s-4); }
  .site-header__inner { gap: var(--s-4); }
  /* The aside (All products, Custom Conveyor Solutions) moves under the
     groups, so each group keeps a third of the width and no title wraps. */
  .menu-panel__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .page--dark .menu-panel__aside {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-7);
    padding: var(--s-5) 0 0;
    border-left: 0;
    border-top: 1px solid var(--c-line-dark);
  }
}
.site-header__actions .btn { white-space: nowrap; }

/* --- The same menu inside the mobile panel -------------------------------- */

.mobile-nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.mobile-nav__row > a { flex: 1; min-width: 0; }
.mobile-nav__expand {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.mobile-nav__icon { position: relative; inline-size: 16px; block-size: 16px; }
.mobile-nav__icon::before,
.mobile-nav__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  inline-size: 16px;
  block-size: 2px;
  background: currentColor;
}
.mobile-nav__icon::after { transform: rotate(90deg); }
.mobile-nav__expand[aria-expanded="true"] .mobile-nav__icon::after { transform: none; }

.mnav-groups,
.mnav-items,
.mnav-list { list-style: none; margin: 0; padding: 0; }
.page--dark .mnav-sub {
  margin: var(--s-3) 0 var(--s-1) 14px;
  font-family: var(--font-label);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-muted-on-ground);
}
.page--dark .mnav-sub:first-child { margin-top: 0; }
.mnav-groups { padding: 0 0 var(--s-4) var(--s-4); border-left: 1px solid var(--c-line-dark); margin-bottom: var(--s-4); }
.mobile-nav__list .mnav-groups li + li,
.mobile-nav__list .mnav-items li + li { border-top: 0; }
.page--dark .mnav-group__link {
  display: block;
  padding-block: var(--s-3);
  font-size: var(--fs-lead);
  line-height: 1.3;
  color: var(--c-invert);
  text-decoration: none;
}
.page--dark .mnav-group.is-current > .mobile-nav__row .mnav-group__link { color: var(--c-accent-on-dark); }
.mnav-items { padding-bottom: var(--s-3); }
.page--dark .mnav-link {
  display: block;
  padding: 10px 0 10px 14px;
  border-left: 2px solid transparent;
  font-size: var(--fs-body);
  line-height: 1.35;
  color: var(--c-muted-on-ground);
  text-decoration: none;
}
.page--dark .mnav-link[aria-current="page"] { color: var(--c-invert); border-left-color: var(--c-accent-on-dark); }
.page--dark .mobile-nav__item[data-current] > .mobile-nav__row .mobile-nav__link { color: var(--c-accent-on-dark); }
.page--dark .mobile-nav a:focus-visible,
.page--dark .mobile-nav__expand:focus-visible {
  outline: 2px solid var(--c-accent-on-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Hover and focus feedback on shared navigation (13 Sep 2026) ----------
   Anything clickable in the header, the menu, the mobile panel and the footer
   answers the pointer in NEXUS blue — the bright logo blue #00A4E7, the one
   that reads on black (5.9:1 on #171717, 7.9:1 on #000) — as a colour, an
   underline or a bar, over 150ms. The native cursor stays; there is no cursor
   effect. Keyboard focus keeps its own 2px ring. Selectors carry .site-header /
   .site-footer so they outrank the page sheets' own `transition` lines. */
.page--dark .site-header .site-nav__link,
.page--dark .menu-group__title,
.page--dark .menu-link,
.page--dark .mobile-nav__link,
.page--dark .mnav-group__link,
.page--dark .mnav-link,
.page--dark .mobile-nav__expand,
.page--dark .site-footer .site-footer__list a,
.page--dark .site-footer .site-footer__contact a,
.page--dark .site-footer .site-footer__bottom a {
  transition: color var(--dur-micro) var(--ease-state),
              border-color var(--dur-micro) var(--ease-state),
              opacity var(--dur-micro) var(--ease-state),
              text-decoration-color var(--dur-micro) var(--ease-state);
}
@media (hover: hover) and (pointer: fine) {
  .page--dark .site-header .site-nav__link:hover { opacity: 1; border-bottom-color: var(--c-accent-on-dark); }
  .page--dark .menu-group__title:hover { color: var(--c-accent-on-dark); border-bottom-color: var(--c-accent-on-dark); }
  .page--dark .menu-link:hover { color: var(--c-accent-on-dark); border-left-color: var(--c-accent-on-dark); }
  .page--dark .menu-link--aside:hover { color: var(--c-accent-on-dark); }
  .page--dark .mobile-nav__link:hover,
  .page--dark .mnav-group__link:hover,
  .page--dark .mnav-link:hover,
  .page--dark .mobile-nav__expand:hover { color: var(--c-accent-on-dark); }
  .page--dark .site-footer .site-footer__list a:hover,
  .page--dark .site-footer .site-footer__bottom a:hover {
    color: var(--c-accent-on-dark);
    text-decoration: underline;
    text-decoration-color: var(--c-accent-on-dark);
    text-underline-offset: 4px;
  }
  .page--dark .site-footer .site-footer__contact a:hover { color: var(--c-accent-on-dark); }
}
@media (prefers-reduced-motion: reduce) {
  .page--dark .site-header .site-nav__link,
  .page--dark .menu-group__title,
  .page--dark .menu-link,
  .page--dark .mobile-nav__link,
  .page--dark .mnav-group__link,
  .page--dark .mnav-link,
  .page--dark .site-footer a { transition: none; }
}

/* ==========================================================================
   Definition list — used by "At a glance", "Materials and options" and
   specification blocks (SITE.md M04 / M08 / M18).
   Two columns on desktop; stacked key/value pairs below 768px, never a
   horizontal scroll (DESIGN.md §20).
   ========================================================================== */
.spec-list { margin: 0; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-1);
  padding-block: var(--s-3);
  border-top: var(--hairline);
}
.spec-row > dt { margin: 0; }
.spec-row > dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .spec-row {
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: var(--s-5);
    align-items: baseline;
  }
}

/* ==========================================================================
   Breadcrumbs (§11 / DESIGN.md §3) — Label style, current page not a link
   ========================================================================== */
.breadcrumbs { padding-block: var(--s-5); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--s-2); }
.breadcrumbs li + li::before { content: "/"; color: var(--c-hairline); }
.breadcrumbs a { text-decoration: none; color: var(--c-steel); }
@media (hover: hover) and (pointer: fine) { .breadcrumbs a:hover { color: var(--c-ink); } }
.breadcrumbs [aria-current="page"] { color: var(--c-ink); }

/* ==========================================================================
   Footer (§12) — the one dark inversion; sitemap in 4 / 2 / 1 columns
   ========================================================================== */
.site-footer {
  background: var(--c-ink);
  color: var(--c-canvas);
  padding-top: var(--section-standard);
  padding-bottom: var(--s-8);
}
.site-footer__top { padding-bottom: var(--s-9); }
.site-footer__descriptor {
  color: var(--c-aluminium);
  font-size: var(--fs-body-sm);
  max-width: 46ch;
  margin-top: var(--s-4);
}
/* Mark plus the company name as real text, on nothing. */
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--c-canvas);
}
.site-footer__logo img { height: 42px; width: auto; }
.site-footer__wordmark {
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
}

.site-footer__grid {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  color: var(--c-aluminium);
  margin-bottom: var(--s-4);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li + li { margin-top: var(--s-3); }
.site-footer__list a {
  color: var(--c-hairline);
  font-size: var(--fs-body-sm);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__list a:hover {
    color: var(--c-blue-bright);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
}
.site-footer__contact { font-size: var(--fs-body-sm); color: var(--c-hairline); }
.site-footer__contact a { color: var(--c-hairline); text-decoration-color: var(--c-blue-bright); }
.site-footer__contact div + div { margin-top: var(--s-3); }

.site-footer__bottom {
  margin-top: var(--s-9);
  padding-top: var(--s-6);
  border-top: var(--hairline-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-caption);
  color: var(--c-aluminium);
}
.site-footer__bottom a { color: var(--c-aluminium); text-decoration-color: var(--c-graphite); }
.site-footer__social { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.site-footer__social a { text-decoration: none; opacity: 0.6; transition: opacity var(--dur-micro); }
@media (hover: hover) and (pointer: fine) {
  .site-footer__social a:hover { opacity: 1; color: var(--c-blue-bright); }
}

/* ==========================================================================
   The NEXUS sheet — structural chrome (DESIGN.md §7.1)
   A hairline frame behind the content, section numbers at its edge, register
   ticks at each boundary, and a title block above the footer. Desktop only:
   below 1024px the gutters do the same job.
   ========================================================================== */
.sheet { display: none; }

@media (min-width: 1024px) {
  .sheet {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }
  .sheet__edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--c-hairline);
    /* The frame draws itself downward on entry (DESIGN.md §17) */
    transform: scaleY(0);
    transform-origin: left top;
    transition: transform 900ms var(--ease-enter);
  }
    .sheet__edge.is-drawn { transform: scaleY(1); }

  /* Bands paint over the frame — that is what makes them read as full-bleed
     surfaces rather than panels sitting on the sheet (DESIGN.md §7.1). */
  .band--ink, .band--deep, .band--mist, .hero { position: relative; z-index: 1; }
  .sheet__edge--left  { left: calc(var(--gutter) / 2); }
  .sheet__edge--right { right: calc(var(--gutter) / 2); }

  /* Section number + register tick, set into the frame margin. */
  .section-mark {
    position: absolute;
    /* Sits on the frame line, which is inset half a gutter from the edge. */
    left: calc(var(--gutter) / 2 + 1px);
    top: var(--s-6);
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    letter-spacing: var(--ls-spec-key);
    color: var(--c-aluminium);
    white-space: nowrap;
  }
  .section-mark::before {
    content: "";
    width: 8px;
    height: 1px;
    background: var(--c-hairline);
  }
}
.section-mark { display: none; }
@media (min-width: 1024px) { .section-mark { display: flex; } }

.has-mark { position: relative; }

/* --- Title block: real values only, never simulated instrumentation ------ */
.title-block {
  border-top: var(--hairline);
  background: var(--c-canvas);
}
.title-block__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-spec-key);
  text-transform: uppercase;
  color: var(--c-aluminium);
}

/* --- Brand marks --------------------------------------------------------- */
.site-logo img { height: 22px; width: auto; }
@media (min-width: 768px) { .site-logo img { height: 26px; } }
.mobile-nav__logo { height: 22px; width: auto; }
.site-footer__logo { height: 44px; width: auto; margin-bottom: var(--s-4); }

/* ==========================================================================
   Motion — the two signature moves (DESIGN.md §17)
   Applied only when JS has marked the document; without JS everything is
   simply visible.
   ========================================================================== */
[data-draw] { will-change: transform; }

.js .rule--draw {
  transform: scaleX(0);
  transform-origin: left top;
  transition: transform 900ms var(--ease-enter);
}
.js .rule--draw.is-drawn { transform: scaleX(1); }

/* Split text: an intact copy stays in the DOM for screen readers (§17).
   Each word is held in a nowrap span so a per-character split can still only
   break between words, never inside one. */
.split__word { display: inline-block; white-space: nowrap; }
.split__part {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity var(--dur-reveal) var(--ease-enter) var(--d, 0ms),
              transform var(--dur-reveal) var(--ease-enter) var(--d, 0ms);
}
.js .is-shown .split__part { opacity: 1; transform: none; }
html:not(.js) .split__part { opacity: 1; transform: none; }

.js .fade-in {
  opacity: 0;
  transition: opacity var(--dur-media) var(--ease-enter);
}
.js .fade-in.is-shown { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .rule--draw,
  .js .rule--draw.is-drawn { transform: none; transition: none; }
  .sheet__edge, .sheet__edge.is-drawn { transform: scaleY(1); transition: none; }
  .split__part { opacity: 1; transform: none; transition: none; }
  .js .fade-in { opacity: 1; transition: none; }
}

/* ==========================================================================
   Forms — first-contact enquiry only (SITE.md T10).
   Real labels, never placeholder-as-label (DESIGN.md §20).
   ========================================================================== */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-graphite);
}
.field label abbr { color: var(--c-blue); text-decoration: none; }
.t-optional { text-transform: none; letter-spacing: 0; color: var(--c-aluminium); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  border-radius: var(--radius-ui);
  padding: var(--s-3) var(--s-4);
  transition: border-color var(--dur-micro) var(--ease-state);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--c-aluminium); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--c-blue); }

/* Consent — checkbox beside its label, label in sentence case. */
.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.field--check input { width: 1rem; height: 1rem; margin-top: 0.25rem; accent-color: var(--c-blue); border-radius: 2px; }
.field--check label {
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-graphite);
  line-height: 1.5;
}
.form__actions { margin-top: var(--s-3); }
@media (max-width: 479px) { .form__actions .btn { width: 100%; justify-content: center; } }
.form { max-width: 40rem; }

/* A specification value may carry its qualifier beneath it. The qualifier is
   part of the claim, not a footnote (VERIFY.md §2.5.1), so it breaks onto its
   own line instead of running on. No type style, colour or spacing token is
   introduced — this rule only sets the line break. */
.spec-row > dd > .t-caption { display: block; margin-top: var(--s-1); }
