/* ============================================================================
   EMS-Trade Cooling · assets/pages-worker-1.css
   Page-local classes for package worker-1 (route /). Loaded after site.css.

   Rules this file obeys:
     · every class here is new — nothing in this file redefines a class that
       already exists in design-tokens.css or assets/site.css
     · no style attribute and no <style> element anywhere: CSP is style-src
       'self', which blocks an inline block as well as an inline attribute, so
       every variation below is a class, never an injected custom property
     · no aspect-ratio declaration: the ratio door is the three-slot whitelist
       in site.css (.ar-3-2 / .ar-2-3 / .ar-1-1) and images are placed, not
       cropped
     · colour, type, space, rule and motion values come from design-tokens.css
       only; nothing here invents a hue
   ========================================================================= */

/* ------------------------------------------------------- 0 · HERO PLATE ----
   The asset is 3072 x 2048, so the declared ratio is 3/2 — one of the three
   slots the ratio whitelist allows. The frame itself stays height-driven
   (--hero-h, 76vh), so this declaration never overrides the layout height; it
   states the asset's own ratio, which is what the ratio and grid gates are
   read against.

   object-position is set explicitly and is not decoration. The frame runs
   2.10:1 to 2.34:1 against a 3:2 asset, so 29-36% of the picture height is
   dropped. At the default centre the top ring of the cartridge falls outside
   the frame by roughly 1.4% of the picture height; at 38% it is kept, and the
   band below it still lands on the clean floor plane the asset was shot for. */
.hm-hero__img {
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: center 38%;
}

/* ---------------------------------------------- 1 · HERO POSITIONING LINE ---
   The band carries the claim (h1) and, under it, the one line that says what
   the company actually sells. It is the second heading of the hero block, so
   it is an <h2> — read at lede size and in the band's second colour, which is
   the worst case the scrim is measured against. */
.hm-hero__sub {
  margin-top: var(--sp-3);
  max-width: 60ch;
  font-family: var(--f-display);
  font-size: var(--fs-lede);
  font-weight: var(--w-body);
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

/* ------------------------------------------------ 2 · STATEMENT COLUMNS ----
   What is supplied against what is not. Two equal columns with the sheet's
   own centre rule between them; both columns start on a heavier rule so the
   pair reads as one statement, not as two lists. */
.hm-stmt {
  border-top: var(--hair-strong);
  padding-top: var(--sp-3);
}

.hm-stmt--not {
  border-left: var(--hair);
}

/* Column heading of a statement column. The site's .lbl is not reused here
   because a page stylesheet may not name a class that site.css already owns
   (hard constraint 54, one authoritative source per class): the values are
   restated instead, and the class is this page's own. */
.hm-key {
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: var(--w-medium);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
}

/* The "not supplied" mark: the same square as .list-spec, drawn hollow in the
   amber brand value. Two marks must be told apart at a glance. */
.hm-not li::before {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  background: none;
  border: var(--bw-2) solid var(--stamp-brand);
}

@media (max-width: 900px) {
  .hm-stmt--not {
    border-left: 0;
    padding-left: 0;
  }
}

/* --------------------------------------------------- 3 · PLATE INDEX -------
   The six product lines: one cell each, a 3:2 mount on a white ground, the
   line's own name, and the single figure that decides it. Drawn on the ruled
   sheet — the 1px gap over the rule colour makes the hairlines. */
.plate-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: var(--hair);
  background: var(--rule);
}

.pi-card {
  display: block;
  padding: var(--sp-3);
  background: var(--raise);
  color: var(--ink);
  transition: background var(--dur-2) var(--ease);
}

.pi-card:hover {
  background: var(--link-wash);
  text-decoration: none;
}

.pi-shot {
  display: block;
  overflow: hidden;
  border: var(--hair-soft);
  background: var(--paper-2);
}

.pi-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out);
}

.pi-card:hover .pi-shot img {
  transform: scale(1.02);
}

.pi-no {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  color: var(--stamp);
}

.pi-name {
  display: block;
  margin-top: 2px;
  font-family: var(--f-display);
  font-size: var(--fs-h4);
  font-weight: var(--w-display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.pi-num {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--f-util);
  font-size: 19px;
  font-weight: var(--w-medium);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.pi-line {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--body);
}

.pi-card:hover .pi-line {
  color: var(--body);
}

@media (max-width: 900px) {
  .plate-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .plate-index {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------- 4 · INDUSTRY COVER -----
   A wide photograph with the copy held in its left third, under the frozen
   scrim, and a clean dark left band left in the asset for exactly this.

   The band is the in-flow content and the photograph is placed behind it, so
   the frame is as tall as the taller of the two: the picture holds a floor of
   54vh, and if the six anchors ever need more room than that the frame grows
   instead of quietly cutting the sixth industry off. (A grid cell shared by
   both would not do: a replaced element contributes its own intrinsic height
   to an auto row, so the 3:2 asset would set the height and never crop.) */
.hm-band-shot {
  position: relative;
  display: flex;
  min-height: clamp(400px, 54vh, 620px);
  background: var(--paper-2);
}

.hm-band-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hm-band-left {
  position: relative;
  width: min(37%, 470px);
  padding: var(--band-y) var(--band-x);
  z-index: 2;
  background-color: var(--scrim-strong);
  background-image: linear-gradient(90deg, var(--scrim-deep) 0 58%, var(--scrim-strong) 100%);
  color: var(--on-scrim);
}

.hm-band-left p {
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

/* The band's own label sits on the same scrim, so the micro label takes the
   band's reading colour rather than --muted: 11px in --muted on this ground
   would be the one unreadable string on the sheet. */
.hm-band-left .hm-key {
  margin-top: 0;
  margin-bottom: var(--sp-2);
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

.hm-band-left b {
  color: var(--on-scrim);
  font-weight: var(--w-display);
  text-shadow: var(--shadow-text);
}

/* Under 1100px the left third is no longer wide enough to hold a sentence, so
   the band stops being an overlay and becomes a block under the picture: the
   copy is never written over a narrow slice of a photograph. */
@media (max-width: 1100px) {
  .hm-band-shot {
    display: block;
    min-height: 0;
    padding-top: 320px;
  }

  .hm-band-shot img {
    inset: 0 0 auto 0;
    height: 320px;
  }

  .hm-band-left {
    width: auto;
    background-image: none;
    padding: var(--sp-6) var(--sp-5);
  }
}

/* ============================================================================
   PAGES 2-6 · /about/ · /factory/ · /quality/ · /capabilities/ · /faq/
   Every class in this half carries the w1- prefix, so no selector here can
   collide with a class that design-tokens.css or site.css already owns
   (hard constraint 54). Nothing below sets a colour, a size or a step that is
   not already in the token table.
   ========================================================================= */

/* --------------------------------------------------- 5 · DOCUMENT HEAD ----
   The H4 hero: a sheet head, not a picture band. Number, title, summary, the
   one control, and a small plate in the right four columns. The grid is
   declared minmax(0, 1fr) on both tracks: a 4-column cell that holds a
   photograph must not be allowed to grow to the picture's intrinsic width. */
.w1-doc {
  padding: var(--sp-7) 0 var(--sp-7);
}

.w1-doc__cols {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--sp-7);
  align-items: start;
}

.w1-doc__act {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-5);
}

.w1-doc__note {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
}

.w1-doc__plate {
  margin-top: var(--sp-2);
}

@media (max-width: 1000px) {
  .w1-doc__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }
}

/* ------------------------------------------------------- 6 · WIDE BAND ----
   H6 band-over-wide: one wide photograph with the copy held in its left third
   over the frozen scrim. The frame is height-driven by the spacer beside the
   band, so the picture is cropped by the frame rather than the frame being
   stretched by the picture.

   The band carries an explicit z-index. Both children are positioned, and the
   photograph is written first in the markup, so without a stacking value the
   band would be painted under a later sibling (measured on the v1 build). */
.w1-wide {
  position: relative;
  display: flex;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: var(--hair-strong);
}

.w1-wide__shot {
  position: absolute;
  inset: 0;
}

.w1-wide__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w1-wide__band {
  position: relative;
  z-index: 2;
  width: min(40%, 520px);
  padding: var(--band-y) var(--band-x);
  background-color: var(--scrim);
  background-image: linear-gradient(120deg, var(--scrim-deep) 0 60%, var(--scrim-strong) 100%);
  color: var(--on-scrim);
}

.w1-wide__rest {
  flex: 1 1 auto;
  min-width: 0;
  min-height: clamp(420px, 56vh, 660px);
}

.w1-wide__band h1 {
  color: var(--on-scrim);
  font-size: var(--fs-h1);
  letter-spacing: var(--tr-display);
  max-width: 22ch;
  text-shadow: var(--shadow-text);
}

.w1-wide__band h2 {
  color: var(--on-scrim);
  font-size: var(--fs-h2);
  max-width: 24ch;
  text-shadow: var(--shadow-text);
}

.w1-wide__band p {
  margin-top: var(--sp-3);
  max-width: 46ch;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

.w1-wide__key {
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

.w1-wide__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-5);
}

/* The control that sits on the scrim. It is this page's own class rather than
   a rule written against the shared .ctl: a page stylesheet may not name a
   class site.css already owns (hard constraint 54). */
.w1-wide__ictl {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.w1-wide__ictl:hover {
  background: var(--raise);
  color: var(--ink);
  border-color: var(--raise);
}

.w1-wide__ictl:focus-visible {
  outline: var(--focus-w) solid var(--focus-on-plate);
  outline-offset: var(--focus-off);
}

/* Under 1100px the left third stops holding a sentence, so the band leaves
   the picture and sits under it as a block. Copy is never written over a
   narrow slice of a photograph. */
@media (max-width: 1100px) {
  .w1-wide {
    display: block;
  }

  .w1-wide__shot {
    position: relative;
    inset: auto;
    height: 300px;
  }

  .w1-wide__band {
    width: auto;
    background-image: none;
    padding: var(--sp-6) var(--sp-5);
  }

  .w1-wide__rest {
    min-height: 0;
  }
}

/* ------------------------------------------------------ 7 · SUB-BANDS -----
   A sub-band is a band of the sheet that already reads differently from its
   neighbours: a plate row, a schedule, a note, a step row. Each one carries
   its own rule so the page is decomposed into bands rather than poured into
   one column of prose. */
.w1-band + .w1-band {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: var(--hair-soft);
}

.w1-band--flush {
  border-top: 0;
}

.w1-key {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: var(--w-medium);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
}

.w1-key--stamp {
  color: var(--stamp);
}

.w1-lead {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink);
  max-width: 58ch;
}

.w1-aside {
  margin-top: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 88ch;
}

/* ------------------------------------------------------ 8 · LINE STRIP ----
   Six cells, one per product line: a 3:2 mount, the line, and the one figure
   that decides it. Two tracks are written as minmax(0, 1fr) so the mounts
   never push the row wider than the sheet. */
.w1-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: var(--hair);
  background: var(--rule);
}

.w1-strip--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.w1-strip--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.w1-strip__cell {
  background: var(--raise);
  padding: var(--sp-3);
}

.w1-strip__no {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  color: var(--stamp);
}

.w1-strip__name {
  display: block;
  margin-top: 2px;
  font-family: var(--f-display);
  font-size: var(--fs-data);
  font-weight: var(--w-display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.w1-strip__spec {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .w1-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .w1-strip,
  .w1-strip--3,
  .w1-strip--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------ 9 · MATERIAL MOUNT -----
   A supplier photograph or drawing placed on the sheet. The mount is a 3:2
   box and the image is contained, not cropped: a part photographed on a white
   ground is not a scene, and cutting it to a ratio would cut the part. The
   mount keeps every cell of a row the same height whatever the source file's
   own shape is, so a row of drawings and a row of parts line up. */
.w1-mat {
  margin: 0;
}

.w1-mat__box {
  overflow: hidden;
  border: var(--hair-soft);
  background: var(--raise);
}

.w1-mat__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.w1-mat__cap {
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: var(--hair-soft);
}

.w1-mat__no {
  flex: none;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  color: var(--stamp);
}

.w1-mat__cap p {
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--body);
  max-width: 78ch;
}

/* ------------------------------------------------- 10 · CERTIFICATE SET ---
   The certificate wall states the scheme and one line about it. No scan, no
   number, no issuing body: the holder is the supply side, not this sheet. */
.w1-certs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: var(--hair);
  background: var(--rule);
}

.w1-certs__cell {
  padding: var(--sp-4);
  background: var(--raise);
}

.w1-certs__ic {
  color: var(--link-brand);
}

.w1-certs__name {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-display);
  font-size: var(--fs-data);
  font-weight: var(--w-display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.w1-certs__note {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--body);
}

@media (max-width: 900px) {
  .w1-certs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------- 11 · Q AND A ----- */
.w1-qa {
  border-top: var(--hair-strong);
}

.w1-qa__item {
  padding: var(--sp-4) 0;
  border-bottom: var(--hair-soft);
}

.w1-qa__q {
  font-family: var(--f-display);
  font-size: var(--fs-h4);
  font-weight: var(--w-display);
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
}

.w1-qa__a {
  margin-top: var(--sp-2);
  max-width: 74ch;
  font-size: var(--fs-data);
  line-height: var(--lh-prose);
  color: var(--body);
}

.w1-qa__a b {
  font-family: var(--f-util);
  font-weight: 500;
}

/* --------------------------------------------------- 12 · GATE COLUMNS ---- */
.w1-gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: var(--hair);
  background: var(--rule);
}

.w1-gates__cell {
  padding: var(--sp-4);
  background: var(--raise);
}

.w1-gates__no {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  color: var(--link);
}

.w1-gates__name {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--f-display);
  font-size: var(--fs-h4);
  font-weight: var(--w-display);
  color: var(--ink);
}

.w1-gates__spec {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.w1-gates__note {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--body);
}

@media (max-width: 900px) {
  .w1-gates {
    grid-template-columns: minmax(0, 1fr);
  }
}
