/* CosmoPetra | Safe Lifting Solutions — site styles, version 2
   Palette: steel blue ink, aluminium plate, signal yellow (the hoist-body yellow), paper white.
   Type:    Big Shoulders Display for headlines (works-signage capitals),
            Big Shoulders Stencil Display for numerals (the stencil used for load markings),
            Big Shoulders Text for interface labels, Barlow for reading text,
            Source Serif 4 Italic for the founder's voice. */

:root {
  --steel-950: #0a141b;
  --steel-900: #0f1c26;
  --steel-800: #162a38;
  --steel-600: #33495a;
  --steel-500: #586a78;
  --steel-200: #c9d1d7;
  --plate: #e4e8eb;
  --mist: #f1f3f4;
  --paper: #ffffff;
  --signal: #f7b500;
  --signal-deep: #d99a00;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-ui: "Big Shoulders Text", "Arial Narrow", Arial, sans-serif;
  --font-text: Barlow, "Helvetica Neue", Arial, sans-serif;
  --font-voice: "Source Serif 4", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.75rem;
  --section-pad: clamp(4rem, 9vw, 7.5rem);

  --hazard: repeating-linear-gradient(-45deg, var(--signal) 0 9px, var(--steel-900) 9px 18px);
  --hazard-on-dark: repeating-linear-gradient(-45deg, var(--signal) 0 9px, transparent 9px 18px);
  --blueprint:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--steel-900);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); text-transform: uppercase; }
h1 { font-size: clamp(3.1rem, 8.4vw, 7.25rem); font-weight: 900; line-height: 0.9; letter-spacing: 0.004em; }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; line-height: 0.95; letter-spacing: 0.008em; }
h3 { font-family: var(--font-ui); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }
h4 { font-family: var(--font-ui); font-size: 1.2rem; font-weight: 700; line-height: 1.15; }

p { margin: 0 0 1rem; max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.cp-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.cp-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--signal); color: var(--steel-900); font-weight: 600; }
.cp-skip:focus { top: 1rem; }
.cp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Engineering line drawings, laid faintly behind sections. */
.cp-draw { position: absolute; z-index: 0; pointer-events: none; color: rgba(255, 255, 255, 0.12); overflow: visible; }
.cp-draw--ink { color: rgba(15, 28, 38, 0.1); }

/* ---------- Buttons ---------- */
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0.7rem 1.6rem;
  border: 2px solid transparent;
  font-family: var(--font-ui); font-size: 1.05rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.cp-btn--primary {
  background: var(--signal); color: var(--steel-900);
  clip-path: polygon(0 0, calc(100% - 0.7rem) 0, 100% 0.7rem, 100% 100%, 0.7rem 100%, 0 calc(100% - 0.7rem));
}
.cp-btn--primary:hover { background: var(--steel-900); color: var(--signal); }
.cp-on-dark .cp-btn--primary:hover { background: var(--paper); color: var(--steel-900); }
.cp-btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.cp-btn--ghost:hover { background: var(--steel-900); border-color: var(--steel-900); color: var(--paper); }
.cp-on-dark .cp-btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--steel-900); }

/* ---------- Header and navigation ---------- */
.cp-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--steel-200); }
.cp-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; min-height: var(--header-h);
}
.cp-header__inner > * { flex-shrink: 0; white-space: nowrap; }
.cp-header.is-measuring * { transition: none !important; }

.cp-logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.cp-logo img { width: 2.9rem; height: 2.9rem; }
.cp-logo__name { display: block; font-family: var(--font-display); font-size: 1.85rem; font-weight: 900; line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; }
.cp-logo__line { display: block; margin-top: 0.22rem; font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; line-height: 1; text-transform: uppercase; color: var(--steel-500); }

.cp-nav { display: flex; align-items: center; }
.cp-menu-button {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.4rem 0.9rem;
  border: 2px solid var(--steel-900); background: none; color: inherit;
  font: 800 1rem var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.cp-menu-button svg { width: 1.2rem; height: 1.2rem; }
.cp-menu { list-style: none; margin: 0; padding: 0; }
.cp-menu a:not(.cp-btn) {
  display: block; padding: 0.55rem 0.1rem;
  font-family: var(--font-ui); font-size: 1.02rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.cp-menu a:not(.cp-btn):hover { border-bottom-color: var(--steel-200); }
.cp-menu a[aria-current="page"] { border-bottom-color: var(--signal); }

.cp-header:not(.is-wide) .cp-menu {
  position: fixed; inset: auto; top: calc(var(--header-h) + 0.5rem); right: 1rem;
  width: min(85dvw, 22rem); max-height: calc(100dvh - var(--header-h) - 2rem); overflow: auto;
  margin: 0; padding: 0.75rem 1.25rem 1.25rem;
  border: 1px solid var(--steel-200); background: var(--paper); color: var(--steel-900);
  box-shadow: 0 18px 40px rgba(15, 28, 38, 0.25);
}
.cp-header:not(.is-wide) .cp-menu a:not(.cp-btn) { padding: 0.8rem 0; border-bottom: 1px solid var(--mist); }
.cp-header:not(.is-wide) .cp-menu a[aria-current="page"] { border-bottom-color: var(--signal); }
.cp-header:not(.is-wide) .cp-menu__cta { margin-top: 1rem; }
.cp-header:not(.is-wide) .cp-menu__cta .cp-btn { width: 100%; }
.cp-menu::backdrop { background: rgba(15, 28, 38, 0.4); }
@supports not selector(:popover-open) {
  .cp-header:not(.is-wide) .cp-menu:not(.is-open) { display: none; }
}
.cp-header.is-wide .cp-menu-button { display: none; }
.cp-header.is-wide .cp-menu {
  position: static; display: flex; align-items: center; gap: 1.55rem;
  width: auto; max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
}
.cp-header.is-wide .cp-menu__phone a { font-family: var(--font-stencil); font-size: 1.25rem; font-weight: 900; letter-spacing: 0.05em; }
.cp-header.is-wide .cp-menu__cta .cp-btn { min-height: 2.7rem; padding: 0.45rem 1.25rem; font-size: 0.98rem; }

/* ---------- Hero ---------- */
.cp-hero { position: relative; isolation: isolate; overflow: clip; background: var(--steel-900); color: var(--paper); }
.cp-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; transform: scaleX(-1); }
.cp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 20, 27, 0.94) 0%, rgba(10, 20, 27, 0.8) 46%, rgba(10, 20, 27, 0.12) 100%);
}
.cp-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: end;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem);
}
.cp-since {
  display: inline-flex; align-items: center; gap: 0.8rem; margin: 0 0 1.4rem;
  font-family: var(--font-stencil); font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal);
}
.cp-since::before { content: ""; width: 3.25rem; height: 0.6rem; background: var(--hazard-on-dark); }
.cp-hero h1 span { display: block; }
.cp-hero__lead { margin-top: 1.6rem; max-width: 50ch; font-size: 1.22rem; line-height: 1.55; color: #e6ecf0; }
.cp-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

/* The rating plate: modelled on the data plate riveted to a hoist body. */
.cp-plate {
  position: relative; padding: 1.5rem 1.6rem 1.3rem;
  background: linear-gradient(160deg, #f6f8f9 0%, var(--plate) 55%, #cdd4d9 100%);
  border: 1px solid #8f9ba4; border-radius: 5px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.55), 0 16px 34px rgba(0, 0, 0, 0.4);
  color: var(--steel-900);
}
.cp-plate::before, .cp-plate::after {
  content: ""; position: absolute; top: 0.6rem; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fafbfb, #8d99a2 70%);
}
.cp-plate::before { left: 0.6rem; }
.cp-plate::after { right: 0.6rem; }
.cp-plate__head { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.9rem; border-bottom: 3px solid var(--steel-900); }
.cp-plate__head img { width: 2.6rem; height: 2.6rem; }
.cp-plate__name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; line-height: 0.9; letter-spacing: 0.04em; text-transform: uppercase; }
.cp-plate__sub { display: block; margin-top: 0.3rem; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.cp-plate dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.cp-plate__field { padding: 0.7rem 0.8rem 0.6rem 0; border-bottom: 1px solid #9aa6ae; }
.cp-plate__field:nth-child(even) { padding-left: 0.9rem; border-left: 1px solid #9aa6ae; }
.cp-plate__field--wide { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; border-bottom: 0; }
.cp-plate dt { font-family: var(--font-ui); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-600); }
.cp-plate dd { margin: 0.05rem 0 0; font-family: var(--font-stencil); font-size: 2.1rem; font-weight: 900; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.cp-plate__field--wide dd { font-family: var(--font-ui); font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.03em; text-transform: none; }

/* ---------- Sections ---------- */
.cp-section { position: relative; padding-block: var(--section-pad); overflow: clip; }
.cp-section > .cp-wrap { position: relative; z-index: 1; }
.cp-section--mist { background: var(--mist); }
.cp-section--dark {
  background-color: var(--steel-900); color: var(--paper);
  background-image: var(--blueprint);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: center top;
}
.cp-section__head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.cp-section__head h2::before { content: ""; display: block; width: 4rem; height: 0.55rem; margin-bottom: 1.1rem; background: var(--hazard); }
.cp-section--dark .cp-section__head h2::before { background: var(--hazard-on-dark); }
.cp-section__head p { font-size: 1.18rem; color: var(--steel-600); }
.cp-section--dark .cp-section__head p { color: #c5d0d8; }
@media (min-width: 60rem) {
  .cp-section__head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: 3.5rem; }
}
.cp-more { margin-top: 2rem; font-family: var(--font-ui); font-size: 1.08rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Distributor wall ---------- */
.cp-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 72rem) { .cp-wall { grid-template-columns: repeat(6, 1fr); gap: 1.1rem; } }
.cp-plaque { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--steel-200); box-shadow: 0 10px 22px -14px rgba(15, 28, 38, 0.35); transition: transform 0.2s, box-shadow 0.2s; }
.cp-plaque::before, .cp-plaque::after { content: ""; position: absolute; top: 0.5rem; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #a9b3ba 75%); }
.cp-plaque::before { left: 0.5rem; }
.cp-plaque::after { right: 0.5rem; }
.cp-plaque img { width: 100%; aspect-ratio: 400 / 220; object-fit: contain; }
.cp-plaque__cap { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0.9rem 0.85rem; background: var(--steel-900); color: var(--paper); border-top: 4px solid var(--signal); flex: 1; }
.cp-plaque h3 { font-size: 1.18rem; font-weight: 800; line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase; }
.cp-plaque h3 a { text-decoration: none; }
.cp-plaque h3 a::after { content: ""; position: absolute; inset: 0; }
.cp-plaque__range { margin: 0; font-size: 0.86rem; line-height: 1.35; color: #c5d0d8; }
.cp-plaque__year { margin: auto 0 0; padding-top: 0.45rem; font-family: var(--font-stencil); font-size: 1.05rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); }
.cp-plaque:hover { transform: translateY(-3px); box-shadow: 0 22px 30px -16px rgba(15, 28, 38, 0.5); }
.cp-wall__note { margin-top: 1.9rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; }
.cp-wall__note p { margin: 0; color: var(--steel-600); max-width: none; }
.cp-wall__note .cp-more { margin: 0; }

/* ---------- Product mosaic ---------- */
.cp-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(12rem, 17vw, 16rem); gap: 0.8rem; list-style: none; margin: 0; padding: 0; }
.cp-tile { position: relative; overflow: hidden; background: var(--steel-800); isolation: isolate; }
.cp-tile--feature { grid-column: span 2; grid-row: span 2; }
.cp-tile--wide { grid-column: span 2; }
.cp-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cp-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 27, 0.05) 0%, rgba(10, 20, 27, 0.4) 45%, rgba(10, 20, 27, 0.95) 100%); transition: background-color 0.3s; }
/* corner brackets, as on a drawing viewport */
.cp-tile::after {
  content: ""; position: absolute; inset: 0.7rem; pointer-events: none; opacity: 0.9;
  background:
    linear-gradient(var(--signal), var(--signal)) left top / 1.1rem 2px no-repeat, linear-gradient(var(--signal), var(--signal)) left top / 2px 1.1rem no-repeat,
    linear-gradient(var(--signal), var(--signal)) right bottom / 1.1rem 2px no-repeat, linear-gradient(var(--signal), var(--signal)) right bottom / 2px 1.1rem no-repeat;
  transition: inset 0.3s;
}
.cp-tile__body { position: absolute; inset: auto 0 0 0; padding: 1.25rem 1.4rem 1.3rem; }
.cp-tile h3 { font-family: var(--font-display); font-size: clamp(1.45rem, 2.2vw, 1.95rem); font-weight: 800; line-height: 0.98; letter-spacing: 0.02em; text-transform: uppercase; }
.cp-tile--feature h3 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); font-weight: 900; }
.cp-tile h3 a { text-decoration: none; }
.cp-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.cp-tile__meta { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; font-size: 0.92rem; color: #d5dde3; }
.cp-tile__count { font-family: var(--font-stencil); font-size: 1.15rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.cp-tile__list { margin: 0; padding: 0; list-style: none; max-height: 0; overflow: hidden; opacity: 0; font-size: 0.95rem; line-height: 1.55; color: #e6ecf0; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease; }
.cp-tile__list li::before { content: ""; display: inline-block; width: 0.5rem; height: 2px; margin-right: 0.5rem; vertical-align: middle; background: var(--signal); }
@media (hover: hover) {
  .cp-tile:hover img, .cp-tile:focus-within img { transform: scale(1.06); }
  .cp-tile:hover::before, .cp-tile:focus-within::before { background-color: rgba(10, 20, 27, 0.55); }
  .cp-tile:hover::after, .cp-tile:focus-within::after { inset: 0.45rem; }
  .cp-tile:hover .cp-tile__list, .cp-tile:focus-within .cp-tile__list { max-height: 14rem; opacity: 1; margin-top: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) { .cp-tile img, .cp-tile__list, .cp-plaque { transition: none; } }

/* ---------- Services ---------- */
.cp-services { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60rem) { .cp-services { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }
.cp-services__media { margin: 0; }
.cp-services__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cp-services__media figcaption { margin-top: 0.85rem; padding-left: 0.9rem; border-left: 4px solid var(--signal); font-size: 0.98rem; color: var(--steel-600); }
.cp-service { padding-block: 1.6rem; border-top: 1px solid var(--steel-200); }
.cp-service:first-child { padding-top: 0; border-top: 0; }
.cp-service h3 { margin-bottom: 0.55rem; font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: 0.015em; text-transform: uppercase; }
.cp-service__get { margin-top: 0.8rem; padding: 0.7rem 0.95rem; background: var(--paper); border-left: 4px solid var(--signal); font-size: 0.98rem; }
.cp-section:not(.cp-section--mist) .cp-service__get { background: var(--mist); }
.cp-service__get strong { font-family: var(--font-ui); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.cp-expert { margin-top: 1.75rem; padding: 1.25rem 1.4rem; background: var(--steel-900); color: var(--paper); border-left: 6px solid var(--signal); }
.cp-expert h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.cp-expert p { margin-top: 0.4rem; font-size: 0.98rem; color: #c5d0d8; }
.cp-expert a { font-family: var(--font-ui); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em; color: var(--signal); overflow-wrap: anywhere; }

/* ---------- Protocol (a real sequence, so it is numbered) ---------- */
.cp-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 1.75rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.cp-step { position: relative; counter-increment: step; padding-top: 1.2rem; border-top: 3px solid var(--signal); }
.cp-step::before { content: "0" counter(step); display: block; margin-bottom: 0.6rem; font-family: var(--font-stencil); font-size: clamp(3.6rem, 6vw, 5.2rem); font-weight: 900; line-height: 0.85; color: var(--signal); }
.cp-step::after { content: ""; position: absolute; top: -0.55rem; left: 0; width: 0.85rem; height: 0.85rem; background: var(--steel-900); border: 3px solid var(--signal); border-radius: 50%; }
.cp-step h3 { margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.cp-step p { font-size: 1rem; color: #c5d0d8; }

/* ---------- Sectors and client logos ---------- */
.cp-sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 2.25rem; }
.cp-sector h3 { margin-bottom: 0.7rem; padding-bottom: 0.7rem; border-bottom: 3px solid var(--steel-900); font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: 0.015em; text-transform: uppercase; }
.cp-sector p { font-size: 1rem; color: var(--steel-600); }
.cp-sector ul { margin: 0.8rem 0 0; padding: 0; list-style: none; font-size: 1rem; font-weight: 500; line-height: 1.8; }
.cp-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.75rem; list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; }
.cp-logos li { background: var(--paper); border: 1px solid var(--steel-200); }
.cp-logos img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 0.6rem; filter: grayscale(1); opacity: 0.9; }

/* ---------- Heritage ---------- */
.cp-heritage { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 60rem) { .cp-heritage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.cp-heritage h2 { margin-bottom: 1.4rem; }
.cp-heritage h2::before { content: ""; display: block; width: 4rem; height: 0.55rem; margin-bottom: 1.1rem; background: var(--hazard); }
.cp-ghost {
  position: absolute; z-index: 0; right: -0.04em; bottom: -0.2em; margin: 0; pointer-events: none; user-select: none;
  font-family: var(--font-stencil); font-size: clamp(11rem, 30vw, 26rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(15, 28, 38, 0.34); text-rendering: geometricPrecision;
}
.cp-quote { position: relative; margin: 2rem 0 0; padding: 0 0 0 3.4rem; }
.cp-quote::before { content: "\201C"; position: absolute; left: -0.1rem; top: -0.9rem; font-family: var(--font-voice); font-style: italic; font-size: 6rem; line-height: 1; color: var(--signal); }
.cp-quote p { font-family: var(--font-voice); font-style: italic; font-size: clamp(0.95rem, 4.3vw, 2.15rem); font-weight: 400; line-height: 1.24; letter-spacing: -0.005em; max-width: none; }
.cp-quote p span { display: block; white-space: nowrap; }
.cp-quote p span:last-child::after { content: "\201D"; margin-left: 0.06em; font-size: 2.75em; line-height: 0; vertical-align: -0.46em; color: var(--signal); }
.cp-quote footer { margin-top: 0.9rem; font-family: var(--font-ui); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-600); }
.cp-timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 1.75rem; border-left: 3px solid var(--steel-900); }
.cp-timeline li { position: relative; display: grid; grid-template-columns: 6.25rem 1fr; gap: 1.1rem; align-items: baseline; padding-block: 0.85rem; border-bottom: 1px solid var(--steel-200); }
.cp-timeline li:last-child { border-bottom: 0; }
.cp-timeline li::before { content: ""; position: absolute; left: calc(-1.75rem - 3px); top: 1.55rem; width: 1.1rem; height: 3px; background: var(--steel-900); }
.cp-timeline time { font-family: var(--font-stencil); font-size: 2.5rem; font-weight: 900; line-height: 0.9; }
.cp-timeline li:first-child time, .cp-timeline li:last-child time { color: #8f6400; }   /* amber dark enough to read on a light ground */
.cp-timeline span { font-size: 1rem; line-height: 1.5; }

/* ---------- Certificates ---------- */
.cp-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.75rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.cp-cert a { display: block; text-decoration: none; }
.cp-cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--steel-200); background: var(--paper); box-shadow: 0 12px 22px -16px rgba(15, 28, 38, 0.5); }
.cp-cert h3 { margin-top: 0.9rem; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.cp-cert p { margin-top: 0.3rem; font-size: 0.95rem; line-height: 1.45; color: var(--steel-600); }

/* ---------- Quote request ---------- */
.cp-rfq { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60rem) { .cp-rfq { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.cp-rfq h2 { margin-bottom: 1.1rem; }
.cp-rfq h2::before { content: ""; display: block; width: 4rem; height: 0.55rem; margin-bottom: 1.1rem; background: var(--hazard-on-dark); }
.cp-rfq__lead { color: #c5d0d8; font-size: 1.12rem; }
.cp-contact { margin: 2rem 0 0; padding: 0; list-style: none; }
.cp-contact li { padding-block: 0.95rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.cp-contact__label { display: block; font-family: var(--font-ui); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #aebbc5; }
.cp-contact a { font-family: var(--font-ui); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; overflow-wrap: anywhere; }
.cp-contact a.cp-contact__phone { font-family: var(--font-stencil); font-size: 2.2rem; font-weight: 900; letter-spacing: 0.04em; color: var(--signal); }
.cp-contact a:hover { text-decoration: underline; }
.cp-contact address { font-style: normal; font-size: 1.02rem; line-height: 1.5; }
.cp-contact small { display: block; margin-top: 0.15rem; font-size: 0.92rem; color: #aebbc5; }

.cp-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; padding: clamp(1.25rem, 3vw, 2.1rem); padding-top: calc(clamp(1.25rem, 3vw, 2.1rem) + 0.6rem); background: var(--paper); color: var(--steel-900); }
.cp-form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 0.6rem; background: var(--hazard); }
.cp-field { display: grid; gap: 0.35rem; }
.cp-field--full { grid-column: 1 / -1; }
.cp-field label { font-family: var(--font-ui); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cp-field small { font-family: var(--font-text); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--steel-500); }
.cp-field input, .cp-field select, .cp-field textarea { width: 100%; min-height: 3rem; padding: 0.65rem 0.8rem; border: 1px solid var(--steel-500); border-radius: 0; background: var(--paper); font: inherit; color: inherit; }
.cp-field textarea { min-height: 8rem; resize: vertical; }
.cp-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cp-form__note { margin: 0; font-size: 0.92rem; color: var(--steel-500); }
@media (max-width: 34rem) { .cp-form { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.cp-pagehead {
  position: relative; overflow: clip; color: var(--paper); padding-block: clamp(3rem, 7vw, 5.5rem);
  background-color: var(--steel-900); background-image: var(--blueprint); background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
}
.cp-pagehead .cp-wrap { position: relative; z-index: 1; }
.cp-pagehead h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 16ch; }
.cp-pagehead p { margin-top: 1.3rem; max-width: 58ch; font-size: 1.2rem; color: #dbe3e9; }
.cp-crumbs { margin: 0 0 1.2rem; padding: 0; list-style: none; display: flex; gap: 0.5rem; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.cp-crumbs a { color: #c5d0d8; }
.cp-crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: #7e8e9a; }

.cp-jump { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--steel-200); }
.cp-jump ul { display: flex; gap: 1.6rem; overflow-x: auto; margin: 0; padding: 0.85rem 0; list-style: none; white-space: nowrap; scrollbar-width: thin; }
.cp-jump a { font-family: var(--font-ui); font-size: 0.98rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.cp-jump a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--signal); }

/* A product line: banner, then its categories as a catalogue index. */
.cp-line { padding-block: clamp(2.75rem, 6vw, 4.5rem); border-bottom: 1px solid var(--steel-200); }
.cp-line:last-of-type { border-bottom: 0; }
.cp-line__banner { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(13rem, 24vw, 19rem); padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--steel-800); color: var(--paper); }
.cp-line__banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cp-line__banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 20, 27, 0.94) 0%, rgba(10, 20, 27, 0.74) 42%, rgba(10, 20, 27, 0.08) 100%); }
.cp-line__banner h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 14ch; }
.cp-line__banner p { margin-top: 0.9rem; max-width: 46ch; color: #dbe3e9; }
.cp-line__count { margin: 0 0 0.7rem !important; font-family: var(--font-stencil); font-size: 1.2rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal) !important; }
.cp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0; list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 3px solid var(--steel-900); border-left: 1px solid var(--steel-200); }
.cp-cat { display: flex; flex-direction: column; padding: 1.15rem 1.25rem 1.25rem; border-right: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200); background: var(--paper); }
.cp-cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: 0.9rem; background: var(--paper); }
.cp-cat__plate { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 0.9rem; background: linear-gradient(160deg, #f7f9fa 0%, var(--plate) 100%); color: rgba(15, 28, 38, 0.3); }
.cp-cat__plate svg { width: 52%; height: 74%; }
.cp-cat h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.cp-cat p { margin-top: 0.4rem; font-size: 0.97rem; line-height: 1.5; color: var(--steel-600); }
.cp-cat .cp-cat__brands { margin-top: auto; padding-top: 0.75rem; font-family: var(--font-ui); font-size: 0.98rem; font-weight: 700; letter-spacing: 0.06em; color: var(--steel-900); }
.cp-line__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.5rem; }
.cp-line__foot p { margin: 0; font-size: 0.98rem; color: var(--steel-600); }

.cp-twocol { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60rem) { .cp-twocol { grid-template-columns: 1fr 1fr; align-items: start; } }
.cp-list { margin: 1rem 0 0; padding-left: 0; list-style: none; }
.cp-list li { position: relative; margin-bottom: 0.55rem; padding-left: 1.5rem; }
.cp-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.85rem; height: 3px; background: var(--signal); }
.cp-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.25rem; }
.cp-value { padding-top: 1.1rem; border-top: 3px solid var(--steel-900); }
.cp-value h3 { margin-bottom: 0.55rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: 0.015em; text-transform: uppercase; }
.cp-value p { font-size: 1rem; color: var(--steel-600); }
.cp-note { padding: 1rem 1.25rem; background: var(--paper); border-left: 4px solid var(--signal); font-size: 1rem; }
.cp-desk { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.cp-desk__card { padding: 1.4rem 1.5rem 1.5rem; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); border-top: 4px solid var(--signal); }
.cp-desk__card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.cp-desk__card p { margin-top: 0.5rem; font-size: 0.98rem; color: #c5d0d8; }
.cp-desk__card a { display: inline-block; margin-top: 0.8rem; font-family: var(--font-ui); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; color: var(--signal); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.cp-footer { position: relative; background: var(--steel-950); color: #c5d0d8; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; font-size: 0.98rem; }
.cp-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 0.6rem; background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, var(--steel-950) 12px 24px); }
.cp-footer a { text-decoration: none; }
.cp-footer a:hover { text-decoration: underline; color: var(--paper); }
.cp-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 2.5rem; }
.cp-footer__brand { display: flex; align-items: center; gap: 0.7rem; color: var(--paper); }
.cp-footer__brand img { width: 2.8rem; height: 2.8rem; }
.cp-footer__brand strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 900; line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; }
.cp-footer__tag { margin-top: 1rem; max-width: 24ch; font-family: var(--font-voice); font-style: italic; font-size: 1.08rem; line-height: 1.35; color: #dbe3e9; }
.cp-footer h2 { margin-bottom: 0.9rem; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 800; letter-spacing: 0.16em; color: var(--signal); }
.cp-footer ul { margin: 0; padding: 0; list-style: none; line-height: 1.95; }
.cp-footer address { margin-top: 0.6rem; font-style: normal; line-height: 1.6; }
.cp-footer small { display: block; font-size: 0.85rem; color: #8d9daa; line-height: 1.3; margin-top: 0.5rem; }
.cp-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9rem; }
.cp-footer__base p { margin: 0; max-width: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 71.99rem) {
  .cp-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(10.5rem, 30vw, 15rem); }
}
@media (max-width: 59.99rem) {
  .cp-hero__inner { grid-template-columns: 1fr; align-items: start; }
  .cp-hero::after { background: linear-gradient(180deg, rgba(10, 20, 27, 0.86) 0%, rgba(10, 20, 27, 0.76) 60%, rgba(10, 20, 27, 0.9) 100%); }
  .cp-draw { opacity: 0.6; }
}
@media (max-width: 34rem) {
  .cp-mosaic { grid-auto-rows: 9.75rem; gap: 0.55rem; }
  .cp-tile--feature { grid-row: span 1; }
  .cp-tile__body { padding: 0.8rem 0.85rem 0.85rem; }
  .cp-tile h3 { font-size: 1.3rem; }
  .cp-tile--feature h3, .cp-tile--wide h3 { font-size: 1.65rem; }
  .cp-tile__meta span:not(.cp-tile__count) { display: none; }
  .cp-tile::after { inset: 0.45rem; }
  .cp-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .cp-plaque__cap { padding: 0.65rem 0.7rem 0.7rem; }
  .cp-plaque h3 { font-size: 1.05rem; }
  .cp-plaque__range { display: none; }
  .cp-timeline li { grid-template-columns: 4.6rem 1fr; }
  .cp-timeline time { font-size: 2rem; }
  .cp-plate dd { font-size: 1.7rem; }
  .cp-quote { padding-left: 2.3rem; }
  .cp-quote::before { font-size: 4rem; top: -0.6rem; }
  .cp-contact a.cp-contact__phone { font-size: 1.85rem; }
  .cp-cats { grid-template-columns: 1fr 1fr; }
  .cp-cat { padding: 0.85rem 0.8rem 0.95rem; }
  .cp-cat h3 { font-size: 1.08rem; }
  .cp-cat p:not(.cp-cat__brands) { display: none; }
  .cp-cat .cp-cat__brands { font-size: 0.88rem; font-weight: 600; }
}
@media (max-width: 26rem) {
  .cp-logo__line { display: none; }
  .cp-hero__actions .cp-btn { width: 100%; }
}

/* =====================================================================================================
   Motion layer (version 3). Everything here is decorative: the page reads the same without it.
   The hook's travel is plain position: sticky. Its shrink, the drawn diagram and the timeline lighting
   are CSS scroll-driven animations where the browser supports them; the sheave spins on a timer while
   its section is on screen. All of it is off under prefers-reduced-motion.
   ===================================================================================================== */
@property --lit { syntax: "<number>"; inherits: true; initial-value: 1; }

/* ---------- The rig: hero + brand section share one hoistway ---------- */
.cp-rig { position: relative; isolation: isolate; }
.cp-hero { isolation: auto; }
.cp-hero__img { z-index: 0; }
.cp-hero::after { z-index: 0; }
.cp-hero__inner { position: relative; z-index: 2; }
.cp-rig .cp-section > .cp-wrap { z-index: 2; }

.cp-plate {
  background: linear-gradient(160deg, rgba(246, 248, 249, 0.8) 0%, rgba(228, 232, 235, 0.72) 55%, rgba(205, 212, 217, 0.78) 100%);
  -webkit-backdrop-filter: blur(3px) saturate(1.15); backdrop-filter: blur(3px) saturate(1.15);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.4), 0 16px 34px rgba(0, 0, 0, 0.4);
}

.cp-rig__track { display: none; }
@media (min-width: 60rem) {
  .cp-rig__track {
    display: block; position: absolute; z-index: 1; pointer-events: none;
    top: 0; bottom: calc(var(--section-pad) + var(--tag-h));
    right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); width: var(--shaft-w);
    overflow: clip; view-timeline: --rig block;
  }
  .cp-rig__hook { position: sticky; top: calc(var(--header-h) - 0.75rem); width: 13.25rem; margin-inline: auto; transform: rotate(var(--sway, 0deg)); transform-origin: 50% -80vh; will-change: transform; }
  .cp-rig__load { position: relative; transform-origin: 46% 100%; will-change: transform; }
  .cp-rig__load img { width: 100%; height: auto; filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.38)); }
  /* the wire rope and the two guide wires continue upward from where they leave the photo */
  .cp-rig__rope {
    position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 300vh;
    /* tiles cut from the photograph itself, mirrored so they repeat without a seam and meet the photo's first row */
    background:
      url("img/wire-tile.png") 28.9% bottom / 3.53% auto repeat-y,
      url("img/rope-tile.png") 54.17% bottom / 15.3% auto repeat-y,
      url("img/wire-tile.png") 78.6% bottom / 3.53% auto repeat-y;
  }

}
:root { --shaft-w: 19rem; --tag-h: 6.4rem; }

/* The brand section: plaques on the left, the hoistway on the right */
.cp-hoist { display: grid; gap: 2.5rem; }
.cp-hoist__shaft { display: grid; gap: 1.5rem; }
.cp-hoist__scale { display: none; }
.cp-wall__also { margin: 1.75rem 0 0; color: var(--steel-600); }
@media (min-width: 60rem) {
  .cp-hoist { grid-template-columns: minmax(0, 1fr) var(--shaft-w); gap: clamp(2rem, 4vw, 3.5rem); }
  .cp-hoist__shaft { position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
  .cp-hoist .cp-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* elevation scale down the shaft */
  .cp-hoist__scale {
    display: block; position: absolute; inset: 0 0 var(--tag-h) 0; margin: 0; padding: 0; list-style: none;
    border-left: 2px solid rgba(15, 28, 38, 0.28);
    background: repeating-linear-gradient(180deg, rgba(15, 28, 38, 0.35) 0 2px, transparent 2px 1.5rem) left top / 0.7rem 100% no-repeat,
                repeating-linear-gradient(180deg, rgba(15, 28, 38, 0.35) 0 2px, transparent 2px 7.5rem) left top / 1.5rem 100% no-repeat;
  }
  .cp-hoist__scale li { position: absolute; left: 2rem; transform: translateY(-50%); font-family: var(--font-stencil); font-size: 1.05rem; font-weight: 900; letter-spacing: 0.1em; color: rgba(15, 28, 38, 0.38); }
}
@media (min-width: 60rem) and (max-width: 71.99rem) { .cp-hoist .cp-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The certificate tag the hook comes down to */
.cp-tag {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.9rem;
  min-height: var(--tag-h); padding: 1.35rem 1.2rem 1rem 1.1rem;
  background: var(--steel-900); color: var(--paper); text-decoration: none;
  border: 2px solid var(--steel-900); border-top: 6px solid var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.9rem), calc(100% - 0.9rem) 100%, 0 100%);
  box-shadow: 0 18px 30px -18px rgba(15, 28, 38, 0.7);
  transition: background-color 0.2s, color 0.2s;
}
.cp-tag::before { /* the eyelet the hook reaches for */
  content: ""; position: absolute; left: 50%; top: -0.2rem; width: 1.5rem; height: 1.5rem; translate: -50% -50%;
  border: 4px solid var(--signal); border-radius: 50%; background: var(--steel-900);
}
.cp-tag svg { width: 2.6rem; height: 2.6rem; color: var(--signal); }
.cp-tag__label { display: block; font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #aebbc5; }
.cp-tag__title { display: block; margin-top: 0.15rem; font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; }
.cp-tag:hover { background: var(--signal); color: var(--steel-900); }
.cp-tag:hover svg, .cp-tag:hover .cp-tag__label { color: var(--steel-900); }
@media (min-width: 60rem) { .cp-tag { clip-path: none; } }

/* ---------- Sheave gauge with readouts ---------- */
.cp-gauge { position: absolute; z-index: 0; right: -7rem; top: -6rem; width: 30rem; height: 30rem; pointer-events: none; color: rgba(255, 255, 255, 0.15); }
.cp-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cp-gauge__n { position: absolute; font-family: var(--font-stencil); font-size: 1.15rem; font-weight: 900; letter-spacing: 0.1em; white-space: nowrap; color: rgba(247, 181, 0, 0.75); opacity: 0; }

/* ---------- Sling-geometry diagram ---------- */
.cp-geo { position: absolute; z-index: 0; left: -2.5rem; bottom: -1.5rem; width: min(30rem, 62vw); pointer-events: none; color: rgba(255, 255, 255, 0.2); overflow: visible; }
.cp-geo text { fill: rgba(247, 181, 0, 0.7); stroke: none; font-family: "Big Shoulders Stencil Display", Barlow, sans-serif; font-weight: 900; font-size: 19px; letter-spacing: 1.5px; }
.cp-geo .cp-geo__needle { stroke: rgba(247, 181, 0, 0.75); transform-box: view-box; transform-origin: 260px 56px; }
.cp-mosaic__foot { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; min-height: clamp(9rem, 16vw, 13rem); margin-top: 1rem; }

/* ---------- Timeline console: a wall of forty-year-old caged lamps on a conduit ---------- */
@property --f { syntax: "<number>"; inherits: true; initial-value: 1; }
.cp-console {
  position: relative; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 1.8rem);
  color: var(--paper); background-color: #0b1218;
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .8  0 0 0 0 .55  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(175deg, #141e27 0%, #0b1218 60%, #0e1310 100%);
  border: 1px solid #33414d; box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.7), 0 24px 40px -24px rgba(15, 28, 38, 0.8);
  clip-path: polygon(0 0, calc(100% - 1.4rem) 0, 100% 1.4rem, 100% 100%, 1.4rem 100%, 0 calc(100% - 1.4rem));
}
.cp-console__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; padding-bottom: 0.8rem; border-bottom: 1px solid #33414d; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #8b9aa6; }
.cp-console__bar b { font-family: var(--font-stencil); font-size: 1rem; font-weight: 900; letter-spacing: 0.12em; color: #c9a25e; }

.cp-console .cp-timeline { padding-left: 3.1rem; border-left: 0; }
/* the conduit feeding the lamps, with its clamps */
.cp-console .cp-timeline::before {
  content: ""; position: absolute; left: calc(0.8rem - 4px); top: -0.4rem; bottom: -0.4rem; width: 8px;
  background:
    repeating-linear-gradient(180deg, transparent 0 3.9rem, #6a7781 3.9rem 4.05rem, #232d35 4.05rem 4.3rem, #0a0f13 4.3rem 4.38rem),
    linear-gradient(90deg, #080c10, #46525c 42%, #1c252d 68%, #080c10);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.6);
}
.cp-console .cp-timeline li {
  --g: calc(var(--lit) * var(--f));
  border-bottom-color: rgba(255, 255, 255, 0.07);
  /* the pool of light each lamp throws along its row */
  background: radial-gradient(ellipse 62% 150% at -6% 50%, rgba(255, 150, 45, calc(var(--g) * 0.26)) 0%, rgba(255, 110, 20, calc(var(--g) * 0.08)) 45%, transparent 72%);
}
/* lamp housing and cold glass */
.cp-console .cp-timeline li::before {
  left: -3.1rem; top: 50%; width: 1.6rem; height: 1.6rem; translate: 0 -50%; border-radius: 50%;
  background:
    linear-gradient(#11171c, #11171c) center / 2px 100% no-repeat, linear-gradient(#11171c, #11171c) center / 100% 2px no-repeat,
    radial-gradient(circle at 38% 32%, #6b5330 0%, #33240f 48%, #0f0a04 100%);
  border: 3px solid #48545e; box-shadow: 0 0 0 2px #0a0f13, 0 2px 4px rgba(0, 0, 0, 0.8), inset 0 0 6px #000;
}
/* the filament: burns sodium-amber, never quite steady */
.cp-console .cp-timeline li::after {
  content: ""; position: absolute; left: -3.1rem; top: 50%; width: 1.6rem; height: 1.6rem; translate: 0 -50%; border-radius: 50%;
  background:
    linear-gradient(rgba(17, 23, 28, 0.85), rgba(17, 23, 28, 0.85)) center / 2px 100% no-repeat, linear-gradient(rgba(17, 23, 28, 0.85), rgba(17, 23, 28, 0.85)) center / 100% 2px no-repeat,
    radial-gradient(circle at 44% 40%, #fff1c9 0%, #ffc55c 24%, #ff8e1a 58%, #a94400 100%);
  border: 3px solid transparent;
  box-shadow: 0 0 9px 2px rgba(255, 176, 74, 0.95), 0 0 30px 11px rgba(255, 128, 26, 0.5), 0 0 80px 34px rgba(255, 96, 8, 0.2);
  opacity: var(--g);
}
/* the years are stencilled paint on the wall: they only show as far as the lamp lights them */
.cp-console .cp-timeline time, .cp-console .cp-timeline li:first-child time, .cp-console .cp-timeline li:last-child time {
  color: color-mix(in srgb, #ffd596 calc(var(--g) * 100%), #3f4d59);
  text-shadow: 0 0 calc(var(--g) * 14px) rgba(255, 140, 40, calc(var(--g) * 0.5));
}
.cp-console .cp-timeline span { color: color-mix(in srgb, #e9e2d6 calc(var(--g) * 100%), #55636f); }

@keyframes cp-spin { to { transform: rotate(360deg); } }
@keyframes cp-readout { 0%, 100% { opacity: 0; } 12%, 30% { opacity: 1; } 42% { opacity: 0; } }
/* three tired lamps: none of them flickers in step with another */
@keyframes cp-lamp-a { 0%, 100% { --f: 1; } 3% { --f: 0.35; } 4% { --f: 1; } 5% { --f: 0.6; } 6.5% { --f: 1; } 41% { --f: 0.96; } 42% { --f: 0.15; } 43% { --f: 0.9; } 44% { --f: 0.3; } 46% { --f: 1; } 73% { --f: 0.93; } 74% { --f: 0.5; } 75.5% { --f: 1; } }
@keyframes cp-lamp-b { 0%, 100% { --f: 0.97; } 18% { --f: 1; } 19% { --f: 0.4; } 20% { --f: 1; } 21% { --f: 0.2; } 23% { --f: 0.85; } 24% { --f: 0.45; } 26% { --f: 1; } 60% { --f: 0.9; } 62% { --f: 1; } 88% { --f: 1; } 89% { --f: 0.1; } 90% { --f: 0.7; } 91% { --f: 0.25; } 93.5% { --f: 1; } }
@keyframes cp-lamp-c { 0%, 100% { --f: 0.9; } 7% { --f: 0.25; } 9% { --f: 0.85; } 11% { --f: 0.12; } 12% { --f: 0.05; } 16% { --f: 0.95; } 30% { --f: 0.75; } 31% { --f: 0.08; } 34% { --f: 0.9; } 50% { --f: 1; } 51% { --f: 0.35; } 52.5% { --f: 0.95; } 68% { --f: 0.6; } 69% { --f: 0.1; } 70% { --f: 0.02; } 76% { --f: 0.1; } 77% { --f: 0.92; } 90% { --f: 0.8; } 92% { --f: 0.3; } 94% { --f: 1; } }
@keyframes cp-buzz { 0% { filter: brightness(1); } 50% { filter: brightness(0.9); } 100% { filter: brightness(1.05); } }
@keyframes cp-lower { to { transform: scale(0.6); } }
/* a lamp striking: a few false starts as its row reaches the switch line, then it holds */
@keyframes cp-light { 0% { --lit: 0; } 3% { --lit: 0.9; } 5% { --lit: 0.05; } 8% { --lit: 0.7; } 10% { --lit: 0.1; } 13%, 100% { --lit: 1; } }
@keyframes cp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cp-needle { from { transform: rotate(-34deg); } to { transform: rotate(34deg); } }

@media (prefers-reduced-motion: no-preference) {
  /* time-based: only while the section is on screen (script adds .is-inview) */
  .cp-gauge__wheel { animation: cp-spin 70s linear infinite; animation-play-state: paused; transform-box: fill-box; transform-origin: center; }
  .cp-gauge__n { animation: cp-readout 9s ease-in-out infinite; animation-delay: calc(var(--i) * -1.5s); animation-play-state: paused; }
  .is-inview .cp-gauge__wheel, .is-inview .cp-gauge__n { animation-play-state: running; }
  .cp-console .cp-timeline li { animation: cp-lamp-a 4.7s linear infinite; animation-delay: calc(var(--k, 0) * -1.9s); }
  .cp-console .cp-timeline li:nth-child(3n + 2) { animation-name: cp-lamp-b; animation-duration: 6.3s; }
  .cp-console .cp-timeline li:nth-child(4) { animation-name: cp-lamp-c; animation-duration: 3.1s; }   /* the one with the dying ballast */
  .cp-console .cp-timeline li::after { animation: cp-buzz 0.12s steps(2, end) infinite; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* the hook pays out rope as the page starts to move, then travels at its lowered size */
    .cp-rig__load { animation: cp-lower linear both; animation-timeline: --rig; animation-range: contain 0% contain 55%; }
    /* the diagram draws itself while its section crosses the screen */
    .cp-geo [pathLength] { stroke-dasharray: 1; animation: cp-draw linear both; animation-timeline: view(); animation-range: cover 22% cover 58%; }
    .cp-geo text { animation: cp-fade linear both; animation-timeline: view(); animation-range: cover 46% cover 62%; }
    .cp-geo .cp-geo__needle { animation: cp-needle linear both; animation-timeline: view(); animation-range: cover 20% cover 80%; }
    /* the light runs down the rail; each year energises as the light reaches it */
    /* each lamp strikes as its row crosses the switch line; the time-based flicker keeps running alongside */
    .cp-console .cp-timeline li { animation-name: cp-light, cp-lamp-a; animation-duration: auto, 4.7s; animation-timing-function: linear, linear; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; animation-delay: 0s, calc(var(--k, 0) * -1.9s); animation-timeline: view(block 60% 40%), auto; }
    .cp-console .cp-timeline li:nth-child(3n + 2) { animation-name: cp-light, cp-lamp-b; animation-duration: auto, 6.3s; }
    .cp-console .cp-timeline li:nth-child(4) { animation-name: cp-light, cp-lamp-c; animation-duration: auto, 3.1s; }
  }
}
@media (prefers-reduced-motion: reduce) { .cp-gauge__n { opacity: 0.8; } }
@media (max-width: 59.99rem) { .cp-gauge { width: 20rem; height: 20rem; right: -6rem; top: -5rem; } .cp-geo { opacity: 0.7; } }

/* very small phones: keep the header inside the screen */
@media (max-width: 22.5rem) {
  .cp-header__inner { gap: 0.6rem; }
  .cp-logo { gap: 0.5rem; }
  .cp-logo img { width: 2.3rem; height: 2.3rem; }
  .cp-logo__name { font-size: 1.45rem; }
  .cp-menu-button { padding: 0.35rem 0.65rem; font-size: 0.92rem; }
}

/* headings kept for screen readers and document outline only */
.cp-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* a field people never see; only scripts fill it in */
.cp-hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
