/* ============================================================
   TRANSFIX TRANSFORMERS SA

   Every colour, typeface and structural rule is taken from
   Transfix Brand Identity Guideline v2.0. Section references
   below are against that document.

   The site commits to one palette. White is the ground, there
   is no dark theme.
   ============================================================ */

:root {
  /* Section 04, Colour */
  --ink:      #101F35;
  --blue:     #223266;
  --copper:   #B26A43;
  --graphite: #4A5058;
  --steel:    #8C949E;
  --mist:     #EEF0F3;
  --paper:    #FFFFFF;

  /* semantic */
  --ground:      var(--paper);
  --panel:       var(--mist);      /* Mist, panels and table fills */
  --heading:     var(--ink);
  --body:        var(--graphite);
  --muted:       var(--steel);
  --rule:        #DFE4EA;          /* derived, hairlines */
  --rule-strong: var(--ink);
  --accent:      var(--copper);
  --field:       var(--blue);      /* the one reversed panel per page */
  --field-deep:  #1A2650;          /* derived, Blue on hover */
  --field-ink:   #FFFFFF;
  --field-muted: #A9B4D0;          /* derived, type inside the Blue panel */

  /* Section 07, grid */
  --cols: 12;
  --gutter: 20px;
  --measure: 60ch;
  --datum: 40px;                   /* web translation of the 46mm datum */

  /* radius scale, applied by role */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* one elevation step, spent on cards only */
  --shadow:    0 1px 2px rgba(16, 31, 53, 0.04), 0 8px 24px rgba(16, 31, 53, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 31, 53, 0.05), 0 16px 40px rgba(16, 31, 53, 0.10);

  /* Motion. The built in CSS easings are too weak to read as deliberate,
     so these are the stronger custom curves. Nothing on this site uses
     ease-in: it withholds movement at the exact moment the user is
     watching, which reads as lag. */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --t-press: 140ms;   /* button press feedback */
  --t-hover: 180ms;   /* colour and border on hover */
  --t-show:  190ms;   /* header returning, the system answering the user */
  --t-hide:  260ms;   /* header leaving, incidental, can take its time */

  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;               /* Section 05, leading 1.55 */
  -webkit-font-smoothing: antialiased;
}

/* keyboard users reach the content without tabbing the whole nav */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--field);
  color: #fff;
  padding: 14px 22px;
  z-index: 100;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---- shared layout ---------------------------------------- */
/* 24px side gutter, which is also the mark's clear space against the trim
   edge. See .mark, section 03. */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gutter); }
.span-12 { grid-column: span 12; }
.span-8  { grid-column: span 8; }
.span-7  { grid-column: span 7; }
.span-6  { grid-column: span 6; }
.span-5  { grid-column: span 5; }

/* ---- type, Section 05 -------------------------------------- */
h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.125rem; line-height: 1.3; }
p  { margin: 0; max-width: var(--measure); }
.stack > * + * { margin-top: 1em; }
.lede { font-size: 1.125rem; }

/* Section 05: anything a reader compares, checks or quotes is
   set in Mono. Everything they need to understand is Sans. */
.mono {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

/* long form copy, privacy and PAIA */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4em; }
.prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 1em; max-width: none; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--heading); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.prose a:hover { color: var(--accent); }

/* ---- the datum, Section 07 --------------------------------- */
.datum {
  border-top: 1px solid var(--accent);
  padding-top: 14px;
  margin-bottom: var(--datum);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.datum .label {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.datum .index {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ============================================================
   HEADER. Section 02, horizontal lockup for website headers.
   ============================================================ */
/* Sticky, hiding on scroll down and returning on scroll up. Driven by
   site.js, which only toggles the two classes below. With the script
   absent or broken the header is still sticky and still visible, which is
   a working header, so there is no no-JS fallback to write. */
.site-head {
  background: var(--ground);
  position: sticky;
  top: 0;
  z-index: 50;
  will-change: transform;
  /* Returning. Transition lives on the base rule so removing .is-hidden
     uses this timing: the user asked for the nav by scrolling up, so the
     system answers quickly. */
  transition: transform var(--t-show) var(--ease-out);
}
/* Leaving. Slower, because nobody asked for it. Asymmetry is the point:
   fast where the system responds, unhurried where it gets out of the way. */
.site-head.is-hidden {
  transform: translateY(-100%);
  transition: transform var(--t-hide) var(--ease-out);
}

/* The shadow is a separate layer whose opacity animates, rather than a
   box-shadow transition on the header itself. Shadow is a paint property
   and animating it directly repaints the full header width every frame. */
.site-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(16, 31, 53, 0.07), rgba(16, 31, 53, 0));
  transition: opacity var(--t-hover) var(--ease-out);
}
.site-head.is-stuck::after { opacity: 1; }

/* An in page jump must not land behind the header. */
html { scroll-padding-top: 7rem; }

@media (prefers-reduced-motion: reduce) {
  /* Stay sticky, stop moving. Someone who asked for less movement should
     not get a header sliding in and out of the page as they read. */
  .site-head.is-hidden { transform: none; }
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 26px;          /* 0.5x clear space above and below the mark */
  border-bottom: 1px solid var(--rule);
}
/* The mark is supplied artwork. It is only ever placed and scaled, never
   redrawn, recoloured, rotated, stretched or given effects. Sections 01
   and 08.

   Section 03, clear space: a minimum of 0.5x on all four sides, where x is
   the outer diameter of the roundel. In the horizontal lockup the roundel
   is the full artwork height, so at 175px wide the roundel is about 45px
   and the clear space required is about 23px. The header holds 26px above
   and below, 24px to the trim edge and 28px to the nav.

   Section 03, minimum reproduction size: 34mm / 135px for the horizontal
   lockup. Header 175px, footer 165px, phone 150px. All above the floor. */
.mark { display: block; flex: none; text-decoration: none; }
.mark img { width: 175px; height: auto; }
.foot-mark .mark img { width: 165px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--heading); border-bottom-color: var(--accent); }
.site-nav a[aria-current] { color: var(--heading); border-bottom-color: var(--rule-strong); }
/* .site-nav a is more specific than .btn, so a button inside the nav would
   otherwise inherit the nav's Graphite link colour and render at about
   1.6:1 on the Blue panel. Restate the button's own colours at matching
   specificity. */
.site-nav a.btn { color: var(--field-ink); border-bottom-color: var(--field); }
.site-nav a.btn:hover, .site-nav a.btn:focus-visible { color: var(--field-ink); border-bottom-color: var(--field-deep); }

/* ---- submenu ------------------------------------------------
   Quality, About and News live one level down, so the top row stays
   short enough to breathe. The trigger is a button: it navigates
   nowhere, so it must not claim to.

   Collapsed only under .js, exactly like the mobile menu and for the
   same reason. With scripting off, display: contents dissolves the
   wrapper and the three links rejoin the row as ordinary items, so the
   nav degrades to the flat eight item row it used to be rather than to
   three links sealed behind a button that cannot open.

   Opens on hover for a pointer and on click for everything else. Hover
   alone would strand touch and keyboard users, click alone would feel
   stiff to a mouse, so both are wired and click owns the state. */
.nav-group { display: contents; }
.nav-group-btn { display: none; }
.nav-sub { display: contents; }

.js .nav-group { position: relative; display: inline-flex; }
.js .nav-group-btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.js .nav-group-btn:hover, .js .nav-group-btn:focus-visible {
  color: var(--heading);
  border-bottom-color: var(--accent);
}
.js .nav-group.is-current > .nav-group-btn {
  color: var(--heading);
  border-bottom-color: var(--rule-strong);
}
/* the chevron is two borders on a rotated square, so it scales with the
   text and needs no icon file */
.chev {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 190ms var(--ease-out);
}
.js .nav-group.is-open .chev { transform: translateY(1px) rotate(-135deg); }

.js .nav-sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 208px;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: 0 14px 30px rgba(16, 31, 53, 0.12);
  /* closed. visibility keeps it out of the tab order, delayed so it does
     not vanish before the fade finishes. Same pattern as the mobile
     panel. */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 160ms var(--ease-out),
              transform 190ms var(--ease-out),
              visibility 0s linear 190ms;
}
.js .nav-group.is-open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 160ms var(--ease-out),
              transform 190ms var(--ease-out),
              visibility 0s;
}
/* a hover bridge across the 12px gap, so the pointer can travel from the
   trigger to the panel without the menu closing underneath it */
.js .nav-sub::before {
  content: "";
  position: absolute;
  inset: -13px 0 100% 0;
}
.js .site-nav .nav-sub a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border-bottom: 0;
  white-space: nowrap;
  transition: background-color var(--t-hover) var(--ease-out);
}
.js .site-nav .nav-sub a:hover, .js .site-nav .nav-sub a:focus-visible {
  background: var(--mist);
  color: var(--heading);
  border-bottom: 0;
}
.js .site-nav .nav-sub a[aria-current] {
  color: var(--accent);
  background: var(--mist);
}
@media (prefers-reduced-motion: reduce) {
  .js .nav-sub {
    transition: opacity 160ms linear, visibility 0s linear 160ms;
    transform: translate(-50%, 0);
  }
  .js .nav-group.is-open .nav-sub { transition: opacity 160ms linear, visibility 0s; }
  .chev { transition: none; }
}

/* ============================================================
   MOBILE MENU

   Seven links and a button do not fit across a phone. Below 1100px,
   which is where the row actually stops fitting, they collapse behind a
   toggle and the header returns to one line.

   The nav is plain markup and visible by default. Only `.js` collapses
   it, so with no JavaScript the links are all still there and reachable
   rather than sealed behind a button that cannot open.
   ============================================================ */
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 48px;
    height: 48px;             /* full touch target, not just the glyph */
    position: relative;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    color: var(--heading);
    cursor: pointer;
    transition: background-color var(--t-hover) var(--ease-out),
                border-color var(--t-hover) var(--ease-out),
                transform var(--t-press) var(--ease-out);
  }
  .js .nav-toggle:active { transform: scale(0.94); }
  .js .nav-toggle[aria-expanded="true"] { background: var(--panel); border-color: var(--muted); }

  /* three bars that become a cross */
  .bars, .bars::before, .bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 180ms var(--ease-out), opacity 120ms var(--ease-out);
  }
  .bars::before, .bars::after { content: ""; position: absolute; left: 14px; }
  .bars::before { transform: translateY(-6px); }
  .bars::after  { transform: translateY(6px); }
  .js .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .js .nav-toggle[aria-expanded="true"] .bars::before { transform: rotate(45deg); }
  .js .nav-toggle[aria-expanded="true"] .bars::after  { transform: rotate(-45deg); }

  /* the panel */
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 22px;
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 14px 30px rgba(16, 31, 53, 0.10);
    /* closed. visibility keeps it out of the tab order, delayed so it
       does not vanish before the fade finishes */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t-show) var(--ease-out),
                transform var(--t-show) var(--ease-out),
                visibility 0s linear var(--t-show);
  }
  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--t-show) var(--ease-out),
                transform var(--t-show) var(--ease-out),
                visibility 0s;
  }

  .js .site-nav a {
    padding: 15px 2px;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule);
    min-height: 50px;
    display: flex;
    align-items: center;
  }
  .js .site-nav a:hover { border-bottom-color: var(--rule); }
  .js .site-nav a[aria-current] { color: var(--accent); border-bottom-color: var(--rule); }
  .js .site-nav a.btn {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
    border: 1px solid var(--field);
    border-radius: var(--r-sm);
  }
  .js .site-nav a.btn:hover { border-color: var(--field-deep); }

  /* The submenu flattens. Grouping exists to buy horizontal room, and a
     phone panel has none of that problem and plenty of vertical space.
     A second tap to reach About would be cost with no benefit, so the
     children become ordinary rows and the group label becomes a heading
     above them.

     Every selector here is prefixed .js to match the specificity of the
     desktop rules it has to override. Without the prefix, .js .nav-sub
     outranks .nav-sub no matter which comes later in the file, and the
     panel stays absolutely positioned inside the phone menu. */
  .js .nav-group { display: block; position: static; }
  .js .nav-group-btn {
    display: block;
    width: 100%;
    text-align: left;
    pointer-events: none;      /* it is a heading here, not a control */
    padding: 22px 2px 8px;
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--steel);
    border-bottom: 0;
  }
  .js .nav-group.is-current > .nav-group-btn { color: var(--steel); border-bottom: 0; }
  .js .chev { display: none; }
  .js .nav-sub {
    position: static;
    display: block;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    /* always open here: there is nothing to toggle */
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .js .nav-sub::before { content: none; }
  .js .site-nav .nav-sub a {
    padding: 15px 2px;
    border-radius: 0;
    border-bottom: 1px solid var(--rule);
    background: none;
    white-space: normal;
  }
  .js .site-nav .nav-sub a[aria-current] { color: var(--accent); background: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bars, .bars::before, .bars::after { transition: none; }
  .js .site-nav { transition: opacity 120ms ease, visibility 0s linear 120ms; transform: none; }
  .js .site-nav.is-open { transition: opacity 120ms ease, visibility 0s; transform: none; }
}

/* Section 04: Copper is an accent, never a field. The primary
   action is a Transfix Blue panel. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--field);
  border-radius: var(--r-sm);
  background: var(--field);
  color: var(--field-ink);
  white-space: nowrap;
  cursor: pointer;
  min-height: 46px;
}
.btn:hover, .btn:focus-visible { background: var(--field-deep); border-color: var(--field-deep); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--rule-strong); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--heading); color: var(--ground); border-color: var(--heading); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.inline-link {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heading);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  font-weight: 500;
  display: inline-block;
  margin-top: 30px;
}
.inline-link:hover, .inline-link:focus-visible { color: var(--accent); }

/* ============================================================
   BREADCRUMBS. Product pages only, three levels deep.
   ============================================================ */
.crumbs { border-bottom: 1px solid var(--rule); }
.crumbs ol {
  list-style: none;
  margin: 0;
  padding-block: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--rule); }
.crumbs a { color: var(--body); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--heading); }

/* ============================================================
   HERO, home page. Section 07: white space is part of the
   specification, one idea per page.
   ============================================================ */
.hero { background: var(--ground); }
.hero .wrap { padding-block: clamp(60px, 10vw, 128px) 0; }
.hero-grid { align-items: center; }
.hero-copy { grid-column: span 7; }
.hero-shot { grid-column: span 5; }
.hero .eyebrow,
.page-head .eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 28px;
  font-weight: 600;
}
.hero h1 { max-width: 12ch; }
.hero p { font-size: 1.125rem; margin-top: 28px; max-width: 44ch; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* ============================================================
   PAGE HEAD, interior pages.

   Five variants, so no two pages open the same way. The type
   scale, the datum, the Copper eyebrow and the rating plate are
   constant across all of them; what changes is where the
   photograph sits and whether the copy reverses out of it.
   ============================================================ */
.page-head .wrap { padding-block: clamp(48px, 7vw, 88px) 0; }
.page-head-grid { align-items: center; }
.page-head-copy { grid-column: span 7; }
.page-head-shot { grid-column: span 5; }
.page-head h1 { max-width: 16ch; }
.page-head p { font-size: 1.125rem; margin-top: 26px; max-width: 48ch; }
.page-head .plate { margin-top: clamp(40px, 6vw, 72px); }

/* --- A. Flipped split. Photograph left, copy right. --------- */
.page-head-flip .page-head-shot { order: -1; }

/* --- B. Full bleed photograph, copy reversed over it. -------
   Section 11 places photography full bleed or within the grid,
   never cut into a shape, so a full bleed hero is on system.
   The scrim is a legibility device, not decoration: it holds the
   copy against whatever photograph is eventually dropped in,
   rather than hoping the image happens to be dark enough. */
.hero-overlay { position: relative; isolation: isolate; background: var(--field-deep); }
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Two layers. The first darkens the left, where the copy sits. The
     second darkens the foot, where the ratings sit. Together they hold
     reversed type against whatever photograph is dropped in, rather than
     hoping the image happens to be dark in the right places. */
  background:
    linear-gradient(
      to top,
      rgba(16, 31, 53, 0.86) 0%,
      rgba(16, 31, 53, 0.34) 32%,
      rgba(16, 31, 53, 0) 58%
    ),
    linear-gradient(
      102deg,
      rgba(16, 31, 53, 0.92) 0%,
      rgba(16, 31, 53, 0.80) 42%,
      rgba(16, 31, 53, 0.46) 100%
    );
}
/* placeholder label, visible only while there is no photograph */
.hero-media .label {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 1;
  max-width: 44ch;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}
.hero-overlay .wrap { padding-block: clamp(72px, 11vw, 150px) clamp(40px, 6vw, 64px); }
.hero-overlay-tall .wrap { padding-block: clamp(64px, 9vw, 124px) clamp(26px, 3.5vw, 44px); }
.hero-overlay .range-display { margin-top: clamp(36px, 5vw, 60px); }
.hero-overlay .range-display b { font-size: clamp(1.3rem, 2.9vw, 2.5rem); }
.hero-overlay h1 { color: #fff; max-width: 15ch; }
.hero-overlay p { color: #D6DCE9; }
.hero-overlay .eyebrow { color: #C9906B; }        /* Copper lifted for a dark ground */
/* the rating plate sits on the photograph, the one white object on it */
.hero-overlay .plate { border-color: transparent; }
/* On a dark ground the filled button inverts: white panel, Blue type. */
.hero-overlay .hero-actions .btn { background: #fff; color: var(--field); border-color: #fff; }
.hero-overlay .hero-actions .btn:hover,
.hero-overlay .hero-actions .btn:focus-visible { background: var(--mist); border-color: var(--mist); color: var(--field); }
.hero-overlay .hero-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero-overlay .hero-actions .btn-ghost:hover,
.hero-overlay .hero-actions .btn-ghost:focus-visible { background: #fff; color: var(--field); border-color: #fff; }

/* --- The range, reversed across the foot of the overlay hero.
   A rating plate scaled up until it becomes part of the image. Section 05
   reserves Mono for anything a reader compares, checks or quotes, and on a
   range page the ratings are exactly that. --- */
.range-display {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: clamp(38px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.range-display a {
  display: block;
  text-decoration: none;
  padding: clamp(18px, 2.4vw, 30px) 10px clamp(16px, 2vw, 26px) 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color var(--t-hover) var(--ease-out);
}
.range-display a:last-child { border-right: 0; }
.range-display b {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: clamp(1.5rem, 3.6vw, 3.1rem);
  font-weight: 500;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-hover) var(--ease-out);
}
.range-display .unit { font-size: 0.42em; letter-spacing: 0.06em; margin-left: 5px; }
.range-display span.m {
  display: block;
  margin-top: 12px;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--field-muted);
}
@media (hover: hover) and (pointer: fine) {
  .range-display a:hover { background: rgba(255, 255, 255, 0.06); }
  .range-display a:hover b { color: #C9906B; }
}

/* --- G. The clients are the hero.
   Same logic as the Quality page leading with its certifications: a
   visitor here wants proof other people already trust the factory, and
   nine named clients carry that better than a photograph would.

   Logos are third party marks, so they get a quiet, uniform cell and are
   never recoloured, cropped or set on a tint. Equal boxes, equal padding,
   each mark sized to its own optical weight rather than stretched to fill. */
.hero-clients .wrap { padding-block: clamp(52px, 7vw, 92px) 0; }
.hero-clients h1 { max-width: 14ch; }
.hero-clients .lede { margin-top: 22px; max-width: 54ch; }

/* --- H. The lead story is the hero. Used on News, where the page is a
   reading surface rather than an object: the newest headline does more at
   the top than a stock photograph of a power line would. */
.hero-feed .wrap { padding-block: clamp(52px, 7vw, 92px) 0; }
.hero-feed h1 { max-width: 12ch; }
.hero-feed .span-5 p { color: var(--muted); max-width: 46ch; }
.hero-feed .rule-under {
  margin-top: clamp(34px, 5vw, 52px);
  border-top: 1px solid var(--copper);
}

/* The article page. One paragraph of reported text, so the measure stays
   narrow and the page stays short: a wide column and a long scroll would
   dress a single paragraph up as more than it is. */
.hero-article .wrap { padding-block: clamp(44px, 6vw, 76px) 0; }
.hero-article h1 {
  max-width: 20ch;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
}
.hero-article .dateline {
  margin-top: 20px;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.hero-article .rule-under {
  margin-top: clamp(26px, 4vw, 38px);
  border-top: 1px solid var(--copper);
}
.article-body {
  padding-block: clamp(28px, 4vw, 44px);
  max-width: 62ch;
}
.article-body p { font-size: 1.1875rem; line-height: 1.62; }
.hero-article .plate { margin-top: 8px; }
.source-note {
  margin-top: 26px;
  max-width: 62ch;
  font-size: 0.875rem;
  color: var(--muted);
}

.lead-item { padding-block: clamp(30px, 4vw, 44px) 0; }
.lead-item h2 {
  max-width: 22ch;
  margin-top: 14px;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
}
.lead-item p {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* The feed itself. A dated list, not cards: these are headlines to scan,
   and a card grid would give each one a visual weight the content does not
   earn. The date rule is Mono, per section 05, which reserves Mono for
   anything a reader checks or compares, and a dateline is exactly that. */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-date {
  margin-top: clamp(30px, 4vw, 44px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--copper);
}
.feed-date:first-child { margin-top: 0; }
.feed-date span {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
.feed-item {
  display: grid;
  grid-template-columns: 1fr minmax(0, 46ch);
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding-block: clamp(20px, 2.6vw, 28px);
  border-bottom: 1px solid var(--rule);
}
.feed-item h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.32;
  max-width: 32ch;
}
.feed-item p { color: var(--muted); font-size: 0.9375rem; }
.feed-source {
  grid-column: 2;
  margin-top: 10px;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
/* The whole row is a link target in practice, so it needs to say so at
   rest, not only on hover. The headline carries a Copper underline that is
   transparent until pointed at, which keeps the scan clean while leaving
   the affordance where the eye already is. */
.feed-item a, .lead-item a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 160ms var(--ease-out);
}
.feed-item a:hover, .feed-item a:focus-visible,
.lead-item a:hover, .lead-item a:focus-visible {
  text-decoration-color: var(--copper);
}
.feed-item { transition: background-color 160ms var(--ease-out); }
.feed-item:hover { background-color: var(--mist); }
@media (prefers-reduced-motion: reduce) {
  .feed-item a, .lead-item a, .feed-item { transition: none; }
}

@media (max-width: 760px) {
  /* one column: at this width the summary under the headline reads better
     than a squeezed two column split */
  .feed-item { grid-template-columns: 1fr; gap: 10px; }
  .feed-source { grid-column: 1; margin-top: 4px; }
}

.client-grid {
  list-style: none;
  margin: clamp(40px, 6vw, 68px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ground);
  box-shadow: var(--shadow);
}
.client-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.5vw, 30px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 118px;
}
.client-grid li:nth-child(3n) { border-right: 0; }
.client-grid li:nth-last-child(-n + 3) { border-bottom: 0; }
/* Each logo is trimmed to its own ink, so they arrive at different
   ratios. Capping both dimensions sizes them by optical weight: a wide
   wordmark hits the width limit, a tall device hits the height limit, and
   nothing is stretched to fill a box it does not fit. */
.client-grid img {
  width: auto;
  height: auto;
  max-width: 172px;
  max-height: 58px;
  object-fit: contain;
}

/* --- C. Copy on white, photograph in a band underneath. -----
   The band breaks out of the grid to the full viewport width. It is the
   one place photography runs edge to edge without type over it. */
.hero-band .wrap { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero-band h1 { max-width: 18ch; }

.band {
  width: 100%;
  aspect-ratio: 21 / 7;
  min-height: 220px;
  background: var(--panel);
  border-block: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 22px 24px;
}
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a taller band, where the photograph deserves more than a letterbox */
.band-tall { aspect-ratio: 16 / 7; min-height: 240px; }

/* A band that carries copy over the photograph. The scrim is a legibility
   device, not decoration: it guarantees reversed type holds whatever
   photograph is dropped in, instead of hoping the image happens to be dark
   where the words sit. Same two layer logic as the overlay hero. */
.band-copy { align-items: center; padding: 0; }
.band-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(16, 31, 53, 0.88) 0%,
                              rgba(16, 31, 53, 0.62) 46%,
                              rgba(16, 31, 53, 0.12) 78%,
                              rgba(16, 31, 53, 0) 100%),
    linear-gradient(to top, rgba(16, 31, 53, 0.42), rgba(16, 31, 53, 0) 46%);
}
.band-copy .wrap { position: relative; z-index: 1; width: 100%; }
.band-copy .plate-label { color: rgba(255, 255, 255, 0.72); }
.band-copy h2 {
  color: #fff;
  max-width: 18ch;
  margin-top: 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
}
.band-copy p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
  margin-top: 16px;
}
@media (max-width: 760px) {
  /* At phone width there is no room beside the subject, so the scrim goes
     bottom up and the copy sits under it rather than across it.

     Doubled class on purpose. A later media query sets a 3/2 ratio on
     .band, and at equal specificity the later rule wins, which capped this
     band shorter than its own copy and clipped the paragraph against
     overflow: hidden. .band.band-copy outranks it wherever it sits in the
     file. The height comes from the text, not from a ratio, because the
     text is the thing that must not be cut. */
  .band.band-copy {
    aspect-ratio: auto;
    min-height: 380px;
    align-items: flex-end;
  }
  .band.band-copy::after {
    background: linear-gradient(to top, rgba(16, 31, 53, 0.92) 0%,
                                        rgba(16, 31, 53, 0.72) 46%,
                                        rgba(16, 31, 53, 0.1) 86%);
  }
  .band.band-copy .wrap { padding-block: 36px; }
  .band.band-copy h2 { max-width: 100%; }
}
.band span {
  position: relative;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- D. Type led, no photograph in the hero. The plate is the
   picture. Used where the page's subject is verifiable fact rather than
   an object: the certification block does more work at the top of the
   Quality page than a photograph would. */
.hero-plate .wrap { padding-block: clamp(56px, 8vw, 104px) 0; }
.hero-plate h1 { max-width: 14ch; font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
.hero-plate .lede { font-size: 1.25rem; max-width: 52ch; margin-top: 28px; }
/* an empty rule the plate hangs from, so the two read as one object */
.hero-plate .rule-under {
  border-top: 2px solid var(--rule-strong);
  margin-top: clamp(44px, 6vw, 72px);
}

/* --- E. Compact. Product pages and utility pages. ----------- */
.hero-compact .wrap { padding-block: clamp(36px, 5vw, 64px) 0; }
.hero-compact h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 14ch; }
.hero-compact p { font-size: 1.0625rem; margin-top: 20px; }
.hero-compact .plate { margin-top: clamp(32px, 4.5vw, 52px); }

/* ============================================================
   PHOTOGRAPHY. Section 11: photography is placed square, full
   bleed or within the grid, and never cut into a shape.

   Until real photography arrives, .shot holds the space and
   names the shot it needs. To use a real image, put an <img>
   inside the .shot and delete the <span>.
   ============================================================ */
.shot {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
  position: relative;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* An embedded map fills its box the way a photograph does, so it inherits
   the same radius and hairline as every other picture on the site instead
   of arriving as a bare 600x450 rectangle. */
.shot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shot-map { padding: 0; background: var(--mist); }
.shot span {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.55;
  position: relative;
}
/* faint crossed rule so an empty block reads as reserved space */
.shot:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--rule) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom left,  transparent calc(50% - 0.5px), var(--rule) 50%, transparent calc(50% + 0.5px));
  opacity: 0.55;
  pointer-events: none;
}
.shot-square { aspect-ratio: 1 / 1; }
.shot-wide   { aspect-ratio: 16 / 9; }
.shot-tall   { aspect-ratio: 3 / 4; }
/* generic profile icon where no portrait exists; swap for an <img> when one does */
.shot-avatar { align-items: center; justify-content: center; padding: 0; }
.shot.shot-avatar::before { display: none; }
.shot-avatar svg { width: 46%; height: auto; fill: var(--muted); opacity: 0.45; }

/* ============================================================
   RATING PLATE. Section 06, the structural device.
   Bordered block of label and value pairs, set in Mono.
   ============================================================ */
.plate {
  display: grid;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--ground);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plate > div { padding: 20px 22px; border-right: 1px solid var(--rule); }
.plate > div:last-child { border-right: 0; }
.plate dt {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 500;
}
.plate dd {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.plate dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.plate dd a:hover { border-bottom-color: var(--accent); }
.plate .tbc { color: var(--accent); }
.plate-2 { grid-template-columns: repeat(2, 1fr); }
.plate-3 { grid-template-columns: repeat(3, 1fr); }
.plate-4 { grid-template-columns: repeat(4, 1fr); }
.plate-stack { grid-template-columns: 1fr; }
.plate-stack > div { border-right: 0; border-bottom: 1px solid var(--rule); }
.plate-stack > div:last-child { border-bottom: 0; }

/* ============================================================
   SECTIONS. All on white, separated by the datum rule.
   ============================================================ */
section { padding-block: clamp(64px, 10vw, 120px); }
section.tight { padding-block: clamp(48px, 7vw, 80px); }
.sec-head { grid-column: span 12; }
.sec-lede { grid-column: span 7; margin-top: 24px; }

/* ============================================================
   CARDS. One card object for products, substations and people.
   ============================================================ */
.card-grid { grid-column: span 12; display: grid; gap: 28px var(--gutter); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
/* Five across, for the manufacturing sequence. Steps out of order read as
   a gallery rather than a process, so this never wraps to an awkward
   3 + 2: it goes 5, then 3, then 1. */
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.cols-5 .card-body { padding: 20px 20px 22px; gap: 10px; }
.cols-5 h3 { font-size: 1rem; }
.cols-5 p { font-size: 0.85rem; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .22s ease-out;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card .shot { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.card-body { display: flex; flex-direction: column; gap: 18px; padding: 28px 28px 30px; flex: 1; }
.card h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
.card p { font-size: 0.95rem; }
.card .more {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heading);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  align-self: flex-start;
  margin-top: auto;
  font-weight: 500;
  transition: color .18s ease-out;
}
.card .more:hover, .card .more:focus-visible { color: var(--accent); }
.card .ratings {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 11px;
  font-variant-numeric: tabular-nums;
}
.card-spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; }
.card-spec dt {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.card-spec dd {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   DATA TABLES. Section 11: dense tabular content, two columns,
   no decoration. Mono for anything checkable.
   ============================================================ */
.table-card {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--ground);
}
.table-card + .table-card { margin-top: 28px; }
.table-card caption {
  caption-side: top;
  text-align: left;
  padding: 18px 20px;
  background: var(--ground);
  border-bottom: 1px solid var(--rule-strong);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--heading);
  font-weight: 600;
}
.table-card table { width: 100%; border-collapse: collapse; }
.table-card td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: top;
}
.table-card tr:last-child td { border-bottom: 0; }
.table-card tr:nth-child(odd) td { background: var(--panel); }
.table-card td:first-child { color: var(--heading); font-weight: 500; width: 42%; }
.table-card td:last-child { color: var(--body); }
.table-scroll { overflow-x: auto; }

.pair-list {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pair-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
}
.pair-list li:nth-child(odd) { background: var(--panel); }
.pair-list li:last-child { border-bottom: 0; }
.pair-list li b { color: var(--heading); font-weight: 500; flex: 1; }
.pair-list li span { color: var(--muted); text-align: right; }

/* ============================================================
   NUMBERED SETS. Used only where the content is genuinely a
   set, never to decorate.
   ============================================================ */
.set { grid-column: span 12; display: grid; gap: var(--gutter); grid-template-columns: repeat(3, 1fr); }
.set-item { border-top: 2px solid var(--rule-strong); padding-top: 20px; }
.set-item .n {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.set-item h3 { margin-bottom: 12px; font-size: 1.25rem; }
.set-item p { font-size: 0.95rem; max-width: none; }

/* ============================================================
   DRAFT NOTICE. Legal pages that have not been signed off.
   Deliberately loud: this must not ship unnoticed.
   ============================================================ */
.draft {
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: var(--r-md);
  background: var(--panel);
  padding: 22px 26px 24px;
}
.draft h3 {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.draft p { font-size: 0.9rem; max-width: none; }

/* ============================================================
   FORM
   ============================================================ */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px var(--gutter); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heading);
  font-weight: 500;
}
.field label .opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: var(--heading);
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color .18s ease-out, box-shadow .18s ease-out;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--field);
  box-shadow: 0 0 0 3px rgba(34, 50, 102, 0.12);
}
.field .help { font-size: 0.8rem; color: var(--muted); max-width: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 4px; }
.form-actions .note { font-size: 0.8rem; color: var(--muted); max-width: 34ch; }
/* honeypot: off screen for people, still in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* result messages: #sent / #failed show via :target after a no-JS post,
   .form-status is filled by site.js after a fetch post */
.form-msg { display: none; }
.form-msg:target, .form-status:not(:empty) { display: block; }
.form-msg, .form-status { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--panel); color: var(--ink); }
.form-status:empty { display: none; }
.is-ok  { border-left: 3px solid #2E7D4F; }
.is-err { border-left: 3px solid var(--accent); }

/* ============================================================
   CLOSING PANEL. The single reversed block on the page.
   Section 10 precedent: the banking details on the invoice are
   reversed out of Transfix Blue, "the one place on the page
   where reversed type is used, because it is the block the
   client has to find fastest".
   ============================================================ */
.close { padding-block: clamp(60px, 9vw, 104px); }
.close-panel {
  grid-column: span 12;
  background: var(--field);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 5.5vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.close-panel h2 { color: #fff; max-width: 15ch; }
.close-panel p { color: #D3D9E8; margin-top: 18px; font-size: 1.0625rem; max-width: 48ch; }
.close-panel .plate-label {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--field-muted);
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
}
.close-panel .btn { background: #fff; color: var(--field); border-color: #fff; }
.close-panel .btn:hover, .close-panel .btn:focus-visible { background: var(--mist); border-color: var(--mist); color: var(--field); }

/* ============================================================
   FOOTER. Contact block in Mono, large enough to read across
   a desk. Company profile, section 12.
   ============================================================ */
.site-foot { background: var(--ground); border-top: 1px solid var(--rule-strong); padding-block: 52px 36px; }
.foot-grid { align-items: start; }
.foot-mark { grid-column: span 4; }
.foot-nav { grid-column: span 3; }
.foot-contact { grid-column: span 5; }
.foot-nav h4, .foot-contact h4 {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-nav a { color: var(--body); text-decoration: none; font-size: 0.875rem; transition: color .18s ease-out; }
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--heading); }
.foot-contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; }
.foot-contact dt {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.foot-contact dd {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.foot-contact dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot-contact dd a:hover { border-bottom-color: var(--accent); }
.foot-contact dd .tbc { color: var(--accent); }
.statutory {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.statutory a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.statutory a:hover { color: var(--heading); }

/* ============================================================
   RESPONSIVE. Breakpoints 900 and 560.
   ============================================================ */
@media (max-width: 900px) {
  /* Collapse the twelve column grid to one.
     1fr is minmax(auto, 1fr), so every column keeps a min-content floor and
     the eleven 20px gutters alone claim 220px. Below roughly 900px that
     makes the grid wider than the viewport and the whole page scrolls
     sideways. One column removes the floor and the gutters together. */
  .grid { grid-template-columns: 1fr; }

  .hero-copy, .hero-shot,
  .page-head-copy, .page-head-shot,
  .span-12, .span-8, .span-7, .span-6, .span-5,
  .sec-head, .sec-lede, .card-grid, .set, .close-panel,
  .foot-mark, .foot-nav, .foot-contact { grid-column: 1 / -1; }
  .close-panel { grid-template-columns: 1fr; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
  .set { grid-template-columns: 1fr; }
  .plate-4 { grid-template-columns: repeat(2, 1fr); }
  .plate-4 > div:nth-child(2) { border-right: 0; }
  .plate-4 > div:nth-child(1), .plate-4 > div:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .plate-3 { grid-template-columns: 1fr; }
  .plate-3 > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .plate-3 > div:last-child { border-bottom: 0; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }

  /* Seven ratings will not sit across a tablet, so they wrap to four.
     The row keeps its hairline cells either way. */
  .range-display { grid-template-columns: repeat(4, 1fr); }
  .range-display a:nth-child(4n) { border-right: 0; }
  .range-display a:nth-child(n + 5) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
}
@media (max-width: 560px) {
  :root { --datum: 28px; --gutter: 16px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-plate h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .band { aspect-ratio: 3 / 2; min-height: 0; }
  .hero-media .label { display: none; }   /* too little room to be useful */
  .range-display { grid-template-columns: repeat(2, 1fr); }
  .range-display a:nth-child(2n) { border-right: 0; }
  .range-display a:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .plate-2, .plate-3, .plate-4 { grid-template-columns: 1fr; }
  .plate > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .plate > div:last-child { border-bottom: 0; }
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pair-list li { flex-direction: column; gap: 4px; }
  .pair-list li span { text-align: left; }
  .table-card td:first-child { width: 50%; }
  .datum { flex-wrap: wrap; }
  .datum .index { margin-left: 0; text-align: left; width: 100%; }
}

/* ============================================================
   MOTION
   ============================================================ */

/* Hover effects are gated: a touch device fires :hover on tap and leaves
   the element stuck in its hover state until you tap elsewhere. */
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: var(--shadow-lg); }

}

.btn, .site-nav a, .inline-link, .card .more, .foot-nav a {
  transition:
    background-color var(--t-hover) var(--ease-out),
    color var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    transform var(--t-press) var(--ease-out);
}
.card { transition: box-shadow var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out); }

/* Press feedback. The interface confirms it heard you before anything
   else happens. Subtle: 0.97, not a squash. */
.btn:active, button.btn:active { transform: scale(0.97); }

/* ---- scroll reveal ----------------------------------------
   Targets are tagged by site.js, never in the markup, so a page with no
   JavaScript renders complete and visible rather than blank. The hidden
   state is scoped to .js for the same reason: it only exists once the
   script that can undo it is running.

   Nothing above the fold is tagged. The first thing a visitor sees is
   already there. */
/* The transition is declared on the resting state, not on .is-in. A
   transition only runs if the property is already transitionable when the
   value changes; declaring it solely on the end state is the usual reason
   a reveal snaps instead of easing. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 460ms var(--ease-out),
    transform 460ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Reduced motion means gentler, not nothing.
   Movement goes; the fade stays, because it is what tells the reader the
   content has arrived. A blanket `* { transition: none }` is the wrong
   tool: it also kills every hover and focus transition on the site, so
   the whole interface starts snapping between states. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-reveal] {
    transform: none;
    transition: opacity 240ms ease;
    transition-delay: 0ms;
  }
  .js [data-reveal].is-in { transform: none; }

  .site-head,
  .site-head.is-hidden { transform: none; transition: none; }

  .btn:active, button.btn:active { transform: none; }
}

/* ============================================================
   PRINT. Buyers print spec pages.
   ============================================================ */
@media print {
  .site-nav, .close, .skip, .crumbs { display: none; }
  body { font-size: 11pt; }
  .card, .plate, .table-card, .pair-list { box-shadow: none; break-inside: avoid; }
  section { padding-block: 18pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
}
