/* Industrial Metal Cleaning Corporation - the intake ledger. Order: layout, type, colour, motion. */

:root {
  --tone-plum: #997897;
  --tone-aubergine: #170C1D;
  --tone-paper: #FFF8F4;
  --tone-cyan: #4AF0DD;
  --tone-plate: #4AF0DD;
  --face-slab: 'Roboto Slab', Rockwell, 'Courier New', serif;
  --face-outfit: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --step-small: 0.9375rem;
  --step-body: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  --step-entry: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --step-number: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-title: clamp(1.3125rem, 1.15rem + 0.5vw, 1.5625rem);
  --step-shelf: clamp(1.75rem, 1rem + 2.6vw, 3rem);
  --step-beat: 45ms;
  --measure-rail: 18%;
  --measure-rule: 0.125rem;
  --measure-bite-photo: 0.875rem;
  --measure-bite-control: 0.4375rem;
  --measure-bite-marker: 0.1875rem;
  --measure-bite: var(--measure-bite-control);
  --measure-space: clamp(0.875rem, 2.2vw, 2rem);
  --measure-band: clamp(2.5rem, 9vh, 6.5rem);
  --measure-entry: clamp(1.25rem, 4vh, 2.5rem);
  --measure-bookmark: 5.75rem;
  --measure-edge: clamp(0.75rem, 2vw, 1.5rem);
}

/* ============ LAYOUT ============ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; container: page_column / inline-size; }
img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
p, ul, dl, dd, figure, address { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }

/* Skip link: .access_jump, first thing in body. */
.access_jump { position: fixed; left: 1rem; top: -5rem; z-index: 70; padding: 0.75rem 1rem; }
.access_jump:focus { top: 1rem; }

/* Opening ledger entry of every page: .chrome_head > .chrome_seal (logo tag) + .chrome_name. */
.chrome_head { display: grid; grid-template-columns: var(--measure-rail) 1fr; border-bottom: var(--measure-rule) solid; }
.chrome_seal { display: flex; align-items: center; padding: 0.75rem var(--measure-space); }
.chrome_name { display: flex; align-items: center; min-height: 4.25rem; border-left: var(--measure-rule) solid;
  padding: 0.75rem calc(var(--measure-bookmark) + var(--measure-edge) + 1rem) 0.75rem var(--measure-space); }
.chrome_name a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.seal_tag { width: 2.25rem; height: 2.25rem; }

/* Punched scallops: photo mounts mask themselves; controls and plates mask a ::before ground (keeps focus rings whole). */
.specimen_mount, .tick_marker,
.action_plate::before, .action_ink::before, .notice_plate::before, .bookmark_strip::before,
.call_tag::before, #storage::before, #invite::before {
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--measure-bite) + 0.0625rem) no-repeat,
    radial-gradient(40% 100% at 50% 100%, #0000 94%, #000 100%) bottom / calc(var(--measure-bite) * 3) var(--measure-bite) round no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--measure-bite) + 0.0625rem) no-repeat,
    radial-gradient(40% 100% at 50% 100%, #0000 94%, #000 100%) bottom / calc(var(--measure-bite) * 3) var(--measure-bite) round no-repeat;
}
.action_plate, .action_ink, .notice_plate { position: relative; }
.action_plate, .action_ink, .notice_plate, .bookmark_strip, .call_tag, #storage, #invite { isolation: isolate; }
.action_plate::before, .action_ink::before, .notice_plate::before, .bookmark_strip::before,
.call_tag::before, #storage::before, #invite::before { content: ""; position: absolute; inset: 0; z-index: -1; }

/* Menu bookmark hanging from the top-right edge: nav.bookmark_strip > button.bookmark_pull + ul.bookmark_links.
   Folded, it ends inside the header band, above the header rule: its 7 px scallops always bite into the
   plum header and never into a tag hung under the rule. */
.bookmark_strip { --measure-bite: var(--measure-bite-control); position: fixed; top: 0; right: var(--measure-edge); z-index: 50; width: var(--measure-bookmark);
  padding-bottom: calc(var(--measure-bite) + 0.25rem); }
.bookmark_strip[data-state="extended"] { width: 15rem; }
.bookmark_pull { display: flex; align-items: flex-end; width: 100%; min-height: 2.75rem; padding: 0.625rem 0.875rem 0.375rem;
  border: 0; background: none; cursor: pointer; text-align: left; }
.bookmark_links { list-style: none; padding: 0; }
.bookmark_strip[data-state="extended"] .bookmark_links { padding: 0.25rem 0 0.25rem; }
.bookmark_links a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.25rem 0.875rem; }
.js .bookmark_links li:not([data-state="shown"]) { display: none; }
html:not(.js) .bookmark_links li { display: none; }
html:not(.js) .bookmark_strip:focus-within .bookmark_links li { display: block; }
/* The bookmark's foot is punched at 7 px (0.4375rem) on EVERY page, folded or extended. The values are
   written out and locked here so that no page stylesheet can leave it with a flat foot. */
nav.bookmark_strip { --measure-bite: 0.4375rem !important; background: none !important;
  padding-bottom: 0.6875rem !important; clip-path: none !important; }
nav.bookmark_strip .bookmark_pull { background: none !important; }
nav.bookmark_strip::before { content: "" !important; display: block !important; position: absolute !important;
  inset: 0 !important; background: var(--tone-cyan) !important; border-radius: 0 !important;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 0.375rem) no-repeat,
    radial-gradient(40% 100% at 50% 100%, #0000 94%, #000 100%) bottom / 1.3125rem 0.4375rem round no-repeat !important;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 0.375rem) no-repeat,
    radial-gradient(40% 100% at 50% 100%, #0000 94%, #000 100%) bottom / 1.3125rem 0.4375rem round no-repeat !important; }

/* The recurring device - one ledger entry: section.intake_row > .intake_number + .intake_label + .intake_body. */
.intake_row { display: grid; grid-template-columns: var(--measure-rail) minmax(0, 1fr);
  grid-template-areas: "number body" "label body"; grid-template-rows: auto 1fr; border-bottom: var(--measure-rule) solid; }
.intake_number { grid-area: number; padding: var(--measure-entry) var(--measure-space) 0.375rem; }
.intake_label { grid-area: label; padding: 0 var(--measure-space) var(--measure-entry); }
.intake_body { grid-area: body; min-width: 0; border-left: var(--measure-rule) solid;
  padding: var(--measure-entry) calc(var(--measure-space) * 1.25); container: entry_column / inline-size; }
@container page_column (max-width: 40rem) {
  .intake_row { grid-template-columns: 3.25rem minmax(0, 1fr); grid-template-areas: "number label" "number body"; grid-template-rows: auto 1fr; }
  .intake_number { padding: 1rem 0.5rem; }
  .intake_label { border-left: var(--measure-rule) solid; padding: 1rem var(--measure-space) 0.25rem; }
  .intake_body { padding: 0.75rem var(--measure-space) 1.5rem; }
}

/* A shelf of rows with room above and below: wrap rows in .intake_shelf. */
.intake_shelf { padding-block: 0; }
.intake_shelf + .intake_shelf { border-top: var(--measure-rule) solid; }

/* Three answers of an entry - comes off / stays / next: dl.answer_set > div.answer_cell > dt.answer_term + dd.answer_text. */
.answer_set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--measure-rule) solid; margin-top: 1rem; }
.answer_cell { padding: 0.875rem 1rem 0.875rem 0; }
.answer_cell + .answer_cell { border-left: var(--measure-rule) solid; padding-left: 1rem; }
@container entry_column (max-width: 34rem) {
  .answer_set { grid-template-columns: 1fr; }
  .answer_cell + .answer_cell { border-left: 0; border-top: var(--measure-rule) solid; padding-left: 0; }
}

/* An entry's head and running text: .entry_head (service name), .entry_kind, .entry_text (paragraphs). */
.entry_text { max-width: 64ch; }
.entry_text + .entry_text { margin-top: 0.875rem; }
.entry_kind { margin-top: 0.25rem; }

/* Specimen photo with punched foot: figure > .specimen_mount > img, then figcaption.specimen_caption. */
.specimen_mount { --measure-bite: var(--measure-bite-photo); overflow: hidden; }
.specimen_mount img { width: 100%; height: 100%; object-fit: cover; }
.specimen_caption { margin-top: 0.625rem; }

/* Opening of a page: h1.opening_title sits in the rail of the first row, p.opening_line under the picture. */
.opening_line { margin-top: 1rem; max-width: 52ch; }

/* Buttons and calls: a.action_plate (cyan) and a.action_ink (dark); both punched at 7 px. */
.action_plate, .action_ink { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; border: 0;
  padding: 0.625rem 1.125rem calc(0.625rem + var(--measure-bite)); cursor: pointer; text-decoration: none; }
.action_row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.25rem; }

/* Notice plate for a working note set apart: .notice_plate (dark, punched foot). */
.notice_plate { display: block; padding: 1rem 1.25rem calc(1rem + var(--measure-bite)); max-width: 48rem; }

/* Tiny cyan marker (rail tick, scale notch): span.tick_marker, punched at 3 px. */
.tick_marker { --measure-bite: var(--measure-bite-marker); display: inline-block; width: 0.875rem; height: 0.875rem; }

/* Ruled-in sheet: put .ruling_set on a list; its children get a top rule ruled in one at a time when it enters. */
.ruling_set > * { padding-top: 0.875rem; }

/* Hand-off at the foot of a page: .handover_row inside the last intake_row body. */
.handover_row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }

/* Footer - one ruled ledger row: footer.colophon_row > .colophon_cell (.colophon_head, .colophon_links).
   The address cell is wider than the rest so street and town each hold one line: address > span.colophon_line. */
.colophon_row { display: grid; grid-template-columns: var(--measure-rail) minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); border-top: var(--measure-rule) solid; }
.colophon_cell { min-width: 0; padding: 1.25rem var(--measure-space) 1.75rem; border-left: var(--measure-rule) solid; }
.colophon_cell:first-child { border-left: 0; }
.colophon_name { display: flex; flex-direction: column; gap: 0.625rem; }
.colophon_head { margin-bottom: 0.375rem; }
.colophon_line { display: block; }
.colophon_links { list-style: none; }
.colophon_links a, .colophon_cell p a, .colophon_cookie { display: inline-flex; align-items: center; min-height: 2.25rem; }
.colophon_cookie { padding: 0; border: 0; background: none; cursor: pointer; }
.colophon_mail { overflow-wrap: anywhere; }

/* Pinned call on phones: a.call_tag, bottom-left, cyan, punched. It is exactly as wide as the phone's
   number rail and stays inside it, so it never lies on a label, a caption or a heading. */
.call_tag { display: none; }

/* Consent: aside#storage > p.consent_text + .consent_choices (two .action_ink of equal weight).
   Desk: a band in the flow, directly under the navigation, on its own opaque plate.
   Phone: a plum bottom sheet pinned beside the number rail, its top edge scalloped and outlined.
   Two lines on the phone: span.consent_brief (the short wording, phone only) with the details link,
   then the two buttons; span.consent_more (the full sentences) shows on the desk only. */
#storage { position: relative; z-index: 40; display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem 1.5rem; border-bottom: var(--measure-rule) solid;
  --measure-bite: var(--measure-bite-photo);
  padding: 0.875rem calc(var(--measure-edge) * 2) calc(0.875rem + var(--measure-bite-photo)); }
.consent_text { flex: 1 1 22rem; min-width: 0; max-width: 62ch; }
.consent_more { display: inline; }
.consent_brief { display: none; }
/* The details link stays in one piece (never split over two lines around the sentence before it)
   and lies above the running text, so its whole area takes the press. */
.consent_text a { display: inline-block; position: relative; z-index: 1; white-space: nowrap; }
.consent_choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0; }
.consent_choices .action_ink { flex: 0 0 auto; justify-content: center; padding-inline: 0.875rem; }

/* Offer tag (only when site.promo): aside#invite hangs from the top edge left of the bookmark. */
#invite { position: fixed; top: 0; z-index: 48; right: calc(var(--measure-edge) + var(--measure-bookmark) + 0.75rem);
  max-width: 20rem; display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.875rem 0.875rem calc(0.75rem + var(--measure-bite)); }
.promo_shut { min-width: 2.75rem; min-height: 2.75rem; border: 0; background: none; cursor: pointer; }

@media (max-width: 40rem) {
  body { padding-bottom: 3.5rem; }
  .chrome_head { grid-template-columns: 3.25rem 1fr; }
  .chrome_seal { padding: 0.5rem; justify-content: center; }
  .seal_tag { width: 1.75rem; height: 1.75rem; }
  .chrome_name { min-height: 3.75rem; padding-right: calc(var(--measure-bookmark) + var(--measure-edge) + 0.5rem); }
  .bookmark_strip[data-state="extended"] { width: min(17rem, calc(100vw - 2 * var(--measure-edge))); }
  .colophon_row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .colophon_cell { border-left: 0; border-top: var(--measure-rule) solid; padding: 0.875rem var(--measure-space) 1rem; }
  .colophon_cell:nth-child(-n+2) { border-top: 0; }
  .colophon_cell:nth-child(even) { border-left: var(--measure-rule) solid; }
  .call_tag { display: flex; align-items: center; justify-content: center; position: fixed; left: 0; bottom: 0; z-index: 46;
    width: 3.25rem; min-height: 3.25rem; padding-bottom: var(--measure-bite); text-decoration: none; }
  #storage { position: fixed; left: 3.25rem; right: 0; bottom: 0; z-index: 44; gap: 0.25rem 0.5rem;
    border-bottom: 0; border-left: var(--measure-rule) solid;
    --measure-bite: var(--measure-bite-control);
    padding: calc(0.375rem + var(--measure-bite-control) + var(--measure-rule)) var(--measure-space) 0.375rem; }
  #storage::after { content: ""; position: absolute; inset: var(--measure-rule) 0 0 0; z-index: -1; }
  #storage::before, #storage::after {
    -webkit-mask: linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--measure-bite) + 0.0625rem) no-repeat,
      radial-gradient(40% 100% at 50% 0, #0000 94%, #000 100%) top / calc(var(--measure-bite) * 3) var(--measure-bite) round no-repeat;
    mask: linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--measure-bite) + 0.0625rem) no-repeat,
      radial-gradient(40% 100% at 50% 0, #0000 94%, #000 100%) top / calc(var(--measure-bite) * 3) var(--measure-bite) round no-repeat;
  }
  /* Line one: the short wording and the details link. Line two: the two buttons, side by side. */
  .consent_text { flex: 1 1 100%; max-width: none; }
  .consent_more { display: none; }
  .consent_brief { display: inline; }
  .consent_choices { width: 100%; flex-wrap: nowrap; gap: 0.5rem; }
  .consent_choices .action_ink { flex: 1 1 0; min-width: 0; min-height: 2.75rem; padding-inline: 0.5rem;
    padding-block: 0.5rem calc(0.5rem + var(--measure-bite-control)); }
  #invite { right: calc(var(--measure-edge) + var(--measure-bookmark) + 0.5rem); left: 0; max-width: none; padding: 0.5rem 0.5rem calc(0.5rem + var(--measure-bite)); }
}
@media (min-width: 40.01rem) and (max-width: 64rem) {
  .colophon_row { grid-template-columns: var(--measure-rail) repeat(2, minmax(0, 1fr)); }
  .colophon_cell:nth-child(n+4) { border-top: var(--measure-rule) solid; }
  .colophon_cell:nth-child(4) { border-left: 0; }
}

/* ============ TYPE ============ */

body { font-family: var(--face-outfit); font-size: var(--step-body); line-height: 1.55; font-weight: 400; }
button { font: inherit; }
a { text-decoration-thickness: 0.125rem; text-underline-offset: 0.2em; }
.chrome_name a { font-size: 1.0625rem; font-weight: 600; line-height: 1.2; text-decoration: none; }
.bookmark_pull { font-weight: 600; font-size: 1rem; }
.bookmark_links a { font-size: 1rem; font-weight: 500; text-decoration: none; line-height: 1.2; }
.bookmark_links a[aria-current="page"] { text-decoration: underline; }
/* Shelf headings: Roboto Slab 900, sentence case, one or two words a line - h2.shelf_title. */
.shelf_title { font-family: var(--face-slab); font-weight: 900; font-size: var(--step-shelf); line-height: 1.04; letter-spacing: -0.01em; }
.opening_title { font-family: var(--face-slab); font-weight: 900; font-size: var(--step-title); line-height: 1.15; }
.intake_number { font-family: var(--face-slab); font-weight: 900; font-size: var(--step-number); line-height: 1; font-variant-numeric: tabular-nums; }
.intake_label { font-size: var(--step-small); font-weight: 600; line-height: 1.3; }
.entry_head { font-family: var(--face-outfit); font-weight: 600; font-size: var(--step-entry); line-height: 1.25; }
.entry_kind, .specimen_caption, .answer_term { font-size: var(--step-small); font-weight: 600; line-height: 1.35; }
.answer_text { font-size: 1rem; line-height: 1.45; }
.opening_line { font-size: var(--step-entry); line-height: 1.4; }
.action_plate, .action_ink { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.colophon_row { font-size: var(--step-small); line-height: 1.45; }
.colophon_head, .colophon_name p { font-weight: 600; }
address { font-style: normal; }
.colophon_cell address { font-family: var(--face-outfit); font-weight: 400; text-transform: none; letter-spacing: 0; }
.consent_text { font-size: 0.9375rem; line-height: 1.45; }
.consent_choices .action_ink { font-size: 0.9375rem; }
@media (max-width: 40rem) {
  .consent_text { line-height: 1.35; }
  .consent_choices .action_ink { white-space: nowrap; }
}
.call_tag { font-weight: 600; font-size: 1rem; }
.promo_text { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; }

/* ============ COLOUR ============ */

html { background: var(--tone-plum); color: var(--tone-aubergine); }
::selection { background: var(--tone-aubergine); color: var(--tone-paper); }
a { color: inherit; }
.access_jump { background: var(--tone-aubergine); color: var(--tone-paper); }
.shelf_title { color: var(--tone-paper); }
.action_plate, .bookmark_strip, .call_tag, #invite { --tone-plate: var(--tone-cyan); color: var(--tone-aubergine); }
.action_ink, .notice_plate { --tone-plate: var(--tone-aubergine); color: var(--tone-paper); }
#storage { --tone-plate: var(--tone-paper); color: var(--tone-aubergine); }
.action_plate::before, .action_ink::before, .notice_plate::before, .bookmark_strip::before,
.call_tag::before, #storage::before, #invite::before { background: var(--tone-plate); }
/* The notice's text and its row of choices carry no ground of their own on any page:
   the sheet behind them is the only ground, so the notice looks the same everywhere. */
#storage, #storage .consent_text, #storage .consent_text span, #storage .consent_text a, #storage .consent_choices {
  background: none !important; box-shadow: none !important; }
#storage .consent_text { color: var(--tone-aubergine) !important; }
/* Phone sheet: an aubergine scalloped outline under a plum ground. */
@media (max-width: 40rem) {
  #storage { --tone-plate: var(--tone-aubergine); color: var(--tone-aubergine); }
  #storage::before { background: var(--tone-aubergine) !important; }
  #storage::after { background: var(--tone-plum) !important; }
}
.bookmark_pull { color: var(--tone-aubergine); }
.tick_marker { background: var(--tone-cyan); }
.specimen_mount { background: var(--tone-plum); }
.ruling_set > * { background: linear-gradient(var(--tone-aubergine), var(--tone-aubergine)) top left / 100% var(--measure-rule) no-repeat; }
.js .ruling_set > [data-state="blank"] { background-size: 0 var(--measure-rule); }
.action_plate:hover, .bookmark_links a:hover { text-decoration: underline; }
.action_ink:hover { text-decoration: underline; }
:focus-visible { outline: 0.1875rem solid var(--tone-cyan); outline-offset: 0.125rem; box-shadow: 0 0 0 0.125rem var(--tone-aubergine); }
.bookmark_strip :focus-visible, .call_tag:focus-visible { outline-color: var(--tone-aubergine); box-shadow: 0 0 0 0.125rem var(--tone-cyan); }

/* ============ MOTION ============ */

/* Mechanical steps only. The bookmark rows step in from site.js at --step-beat intervals. */
/* Quote tag drop - three equal jumps, stops dead: add .tag_drop to the tag on the home page. */
@keyframes tag_drop { from { transform: translateY(-100%); } to { transform: none; } }
.tag_drop { animation: tag_drop 270ms steps(3, end) both; }
#invite { transform: translateY(-110%); opacity: 0; transition: transform 270ms steps(3, end), opacity 0s 0s; }
#invite.is-in { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ruling_set > [data-state="blank"] { background-size: 100% var(--measure-rule); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::after,
  *::before {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media screen and (min-width: 1921px) {
  html { font-size: calc(100vw / 120); }
}
header a,header button,nav a,nav button{position:relative;z-index:2}
body, html {
  overflow-x: clip;
}
