/* The public website's stylesheet (docs/DESIGN-WEBSITE.md): section 1 is the token file. Fonts are self-hosted, one variable file each, with their licences beside them. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-variable.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
/* 1. Tokens */
:root {
  --paper: #FFFFFF; --band: #F4F5F6; --line: #DFE2E6; --line-strong: #878D96;
  --ink: #17191C; --muted: #5A6068; --steel: #3B4048;
  --maroon: #A3201E; --maroon-deep: #811917; --maroon-tint: #F8ECEB; --ok: #1D6B3A; --warn: #8A5A00; --danger: #A3201E;
  --display: "Archivo", system-ui, sans-serif; --text: "IBM Plex Sans", system-ui, sans-serif;
  --fs-micro: 12px; --fs-small: 14px; --fs-body: 17px; --fs-lead: 21px; --fs-h3: 27px; --fs-h2: 33px; --fs-hero: 52px;
  --track-caps: .08em;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sharp: 2px; --r-pill: 999px;
  --page: 1280px; --gutter: 32px; --control: 44px; --control-lg: 56px;
  --t-fast: 140ms; --t-normal: 280ms; --t-run: 70s; --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 640px) { :root { --gutter: 16px; --fs-hero: 33px; --fs-h2: 27px; } }   /* a step down the same ramp */

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.5 var(--text); font-variant-numeric: tabular-nums; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 112; line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 500 var(--fs-micro)/1.4 var(--text); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--muted); }
.code { font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.nb { white-space: nowrap; }   /* a size and its unit, a range and its dash, never broken across lines */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: var(--ink); }

/* 3. Controls: maroon is the page's one action; everything else is plain */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--control); padding: 0 var(--s5); border: 1px solid transparent; border-radius: var(--r-sharp); font: 500 var(--fs-body)/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--action { background: var(--maroon); color: var(--paper); }
.btn--action:hover { background: var(--maroon-deep); }
.btn--plain { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn--plain:hover { background: var(--band); }
.search { display: flex; width: 100%; }
.search input { flex: 1; min-width: 0; width: 0; height: var(--control); padding: 0 var(--s4); border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r-sharp) 0 0 var(--r-sharp); font: inherit; background: var(--paper); color: var(--ink); }
.search input:focus { outline: 2px solid var(--maroon); outline-offset: -1px; }
.search input::placeholder { color: var(--muted); }
.search .btn { border-radius: 0 var(--r-sharp) var(--r-sharp) 0; }
.search--hero input, .search--hero .btn { height: var(--control-lg); font-size: var(--fs-lead); }
.search--hero input { font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 100; }   /* a code is typed in the face codes are set in */

/* 4. Header: the mark and the firm, the number to call, the list */
.top { border-bottom: 1px solid var(--line); }
.top__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--s5); min-height: 80px; }
.top__bar--home { grid-template-columns: minmax(0, 1fr) auto auto; }
.top__bar .search { max-width: 560px; justify-self: center; }
.firm { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.firm svg { width: 40px; height: 40px; flex: none; }
.firm__name { font: 600 var(--fs-body)/1.2 var(--display); font-variation-settings: "wdth" 112; display: block; }
.firm__line { font-size: var(--fs-small); color: var(--muted); display: block; }
.call { display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--control); padding: 0 var(--s2); text-decoration: none; color: var(--steel); }
.call__label { font-weight: 500; color: var(--ink); }
.call:hover { color: var(--ink); }
.list-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--control); padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-sharp); text-decoration: none; font-weight: 500; }
.list-btn__count { min-width: 24px; height: 24px; padding: 0 var(--s2); border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font: 600 var(--fs-small)/24px var(--display); text-align: center; }
.nav { display: flex; gap: var(--s6); min-height: 48px; align-items: center; font-weight: 500; }
.nav a { text-decoration: none; padding: var(--s3) 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* 5. Home: the hero, with its one moment */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; padding-block: var(--s8) var(--s7); }
.hero__words { grid-column: 1 / span 6; display: grid; gap: var(--s5); }
.hero h1 { font-size: var(--fs-hero); }
.hero__lead { font-size: var(--fs-lead); color: var(--steel); max-width: 38ch; }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s5); font-size: var(--fs-small); color: var(--steel); }   /* spaced, not dotted: a wrapped line never starts with a separator */
.proof a { color: var(--ink); font-weight: 500; display: inline-block; padding-block: var(--s1); }
.hero__drawing { grid-column: 7 / span 6; margin: 0; }
.hero__drawing svg { width: 100%; height: auto; display: block; }
.hero__drawing figcaption { font-size: var(--fs-small); color: var(--muted); text-align: right; }
.part { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-linejoin: round; }
.dim { fill: none; stroke: var(--maroon); stroke-width: 1; }
.dim-head { fill: var(--maroon); }
.dim-text { font: 600 var(--fs-small) var(--display); fill: var(--ink); }
.dim-ext { fill: none; stroke: var(--line-strong); stroke-width: .75; stroke-dasharray: 4 3; }
@media (prefers-reduced-motion: no-preference) {
  /* the brief's one exception to "only transform and opacity": the signature's lines are drawn, once */
  .draw .dim { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dim-in 600ms var(--ease) 200ms forwards; }
  .draw .dim-head, .draw .dim-text { opacity: 0; animation: fade-in var(--t-normal) var(--ease) 760ms forwards; }
}
@keyframes dim-in { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* 6. Sections */
.section { padding-top: var(--s9); }
.hero + .section { padding-top: var(--s8); }   /* the hero already ends in space: one gap, not two */
.section--tight { padding-top: var(--s7); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--ink); margin-bottom: var(--s6); }
.section__head h2 { font-size: var(--fs-h3); }
.section__head a { font-weight: 500; white-space: nowrap; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.section__head a:hover { text-decoration-color: var(--ink); }

/* The category index: a catalogue's contents page, four across */
.index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gutter); list-style: none; margin: 0; padding: 0; }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; align-content: start; gap: var(--s1); padding: var(--s4) 0 var(--s5); text-decoration: none; height: 100%; }
.index strong { font: 600 var(--fs-body)/1.3 var(--display); font-variation-settings: "wdth" 106; }
.index span { font-size: var(--fs-small); color: var(--muted); }
.index a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* Products: four across, the code as prominent as the name, the photograph's frame 4:3 */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s7) var(--gutter); list-style: none; margin: 0; padding: 0; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: grid; align-content: start; gap: var(--s1); text-decoration: none; }
.card__frame { aspect-ratio: 4 / 3; border: 1px solid var(--line); display: grid; place-items: center; background: var(--paper); margin-bottom: var(--s3); }
.card__frame svg { width: 80%; height: auto; color: var(--steel); }
.card__maker { font: 500 var(--fs-micro)/1.4 var(--text); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--muted); }
.card__code { font-size: var(--fs-body); line-height: 1.3; }
.card__name { line-height: 1.4; color: var(--steel); }
.card:hover .card__name { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Makers: logos in one ink at rest, the maker's own colours under the pointer (the page keeps one hue) */
.makers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.makers a { display: grid; gap: var(--s2); padding: var(--s4); border: 1px solid var(--line); text-decoration: none; background: var(--paper); }
.makers img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; filter: grayscale(1) contrast(1.4) brightness(.85); }
.makers a:hover img, .makers a:focus-visible img { filter: none; }
.makers span { font-size: var(--fs-small); color: var(--muted); }
.makers a:hover { border-color: var(--line-strong); }

/* How buying works: one band, one sentence, one link */
.buying { margin-top: var(--s9); background: var(--band); }
.buying .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); padding-top: var(--s7); padding-bottom: var(--s7); }
.buying p { font-size: var(--fs-lead); max-width: 52ch; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: var(--s9); padding: var(--s7) 0; font-size: var(--fs-small); color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.foot strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: var(--s2); }
.foot a { text-decoration: none; display: block; padding: var(--s1) 0; }
.foot a:hover { color: var(--ink); }

/* 7. Product page */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s5) 0; font-size: var(--fs-small); color: var(--muted); list-style: none; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--line-strong); }
.crumbs a { text-decoration: none; display: inline-block; padding-block: var(--s1); }   /* a 24px target, not just the 18px line */
.crumbs a:hover { color: var(--ink); }
/* The signature's second use: the dimension leader marks the category you are in */
.crumbs .here a { color: var(--ink); font-weight: 500; position: relative; padding-left: 28px; }
.crumbs .here a::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; border-top: 1px solid var(--maroon); }
.crumbs .here a::after { content: ""; position: absolute; left: 16px; top: calc(50% - 3.5px); border: 3.5px solid transparent; border-left: 6px solid var(--maroon); border-right: 0; }
.product { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding-bottom: var(--s8); }
.product__photo { grid-column: 1 / span 6; margin: 0; }
.product__photo .card__frame { margin: 0; }
.product__photo figcaption { font-size: var(--fs-small); color: var(--muted); padding-top: var(--s2); }
.product__facts { grid-column: 8 / span 5; display: grid; gap: var(--s5); align-content: start; }
.product__code { font: 600 var(--fs-h3)/1 var(--display); }
.product h1 { font-size: var(--fs-h2); }
.product__maker { display: flex; align-items: center; gap: var(--s3); color: var(--muted); }
.product__maker img { width: 96px; aspect-ratio: 2 / 1; object-fit: contain; border: 1px solid var(--line); }
.ask { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); padding: var(--s5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ask label { grid-column: 1 / -1; font-weight: 500; }
.ask input { height: var(--control); border: 1px solid var(--line-strong); border-radius: var(--r-sharp); padding: 0 var(--s3); font: inherit; width: 100%; }
.ask .proof { grid-column: 1 / -1; }
.sheet { width: 100%; border-collapse: collapse; }
.sheet caption { text-align: left; padding-bottom: var(--s3); }
.sheet th, .sheet td { text-align: left; padding: var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet th { width: 40%; font: 500 var(--fs-micro)/1.6 var(--text); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--muted); padding-right: var(--s4); }
.sheet td { font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 100; }
.about-maker { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding: var(--s7) 0; border-top: 1px solid var(--line); }
.about-maker h2 { grid-column: 1 / span 4; font-size: var(--fs-h3); }
.about-maker div { grid-column: 6 / span 7; display: grid; gap: var(--s4); }
.about-maker .link { display: inline-block; padding-block: var(--s1); }

/* 8. Narrower screens: four across, then two (8 and 16 divide by both: no card is left alone) */
@media (max-width: 1100px) {
  .makers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }   /* stacked below 1100px: beside the words the drawing would shrink its callouts under 12px */
  .hero__words, .hero__drawing { grid-column: 1; }
  .hero__drawing { max-width: 760px; }
}
@media (max-width: 760px) {
  .top__bar, .top__bar--home { grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s3); padding-block: var(--s3); }
  .crumbs li:not(.here) { display: none; }   /* on a phone the breadcrumb is the way back: the category, with its leader */
  .crumbs li + li::before { content: none; }
  .top__bar .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .call .code { display: none; }
  .nav { gap: var(--s5); overflow-x: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: var(--s6) var(--s5); }
  .hero__words, .hero__drawing { grid-column: 1; }
  .grid, .index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
  .index { gap: 0 var(--s4); }
  .index span { display: none; }   /* on a phone the contents page is the names alone: products come sooner */
  .grid--3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid--3 .card { grid-template-columns: minmax(0, 1fr); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
  .grid--3 .card__frame { display: none; }   /* related tools become a list of codes and names */
  .makers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buying .wrap { flex-direction: column; align-items: flex-start; }
  .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: minmax(0, 1fr); }
  .product__photo, .product__facts { grid-column: 1; }
  .product__facts { order: -1; }   /* on a phone: the code, the name and the action before the photograph */
  .ask { grid-template-columns: 96px minmax(0, 1fr); }
  .ask .btn--plain { grid-column: 1 / -1; }
  .about-maker { grid-template-columns: minmax(0, 1fr); }
  .about-maker h2, .about-maker div { grid-column: 1; }
  .list-btn__label { display: none; }
  .dim-text { font-size: var(--fs-h3); }   /* the drawing is scaled to half on a phone: its callouts are set twice as large to stay readable */
}

/* The landing page's scene, on the owner's idea (2026-11-01): a worker sets a toolbox on a table beside a house going up, opens it, and the tools become the categories.
   Uses a.css's tokens; adds only the stage. The scene's own colours are in its drawing. */
.top { position: sticky; top: 0; z-index: 4; background: var(--paper); }
.top__bar--scene { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.top__search { max-width: 480px; justify-self: center; opacity: 0; visibility: hidden; }
.is-past .top__search { opacity: 1; visibility: visible; }
.skip { position: fixed; left: var(--gutter); top: var(--s2); z-index: 5; transform: translateY(-100vh); padding: var(--s3) var(--s4); background: var(--paper); border: 1px solid var(--ink); border-radius: var(--r-sharp); font-weight: 500; }
.skip:focus { transform: none; }

/* The stage: a tall section whose frame stays pinned while the page scrolls past it. The browser scrolls; nothing is hijacked. Heights use the small viewport, so a phone's collapsing toolbar cannot move the scene. */
.stage { height: 480vh; position: relative; background: var(--band); }
.stage__pin { position: sticky; top: var(--head, 81px); height: calc(100vh - var(--head, 81px)); height: calc(100svh - var(--head, 81px)); overflow: hidden; }   /* --head is the header's measured height */
.cam { position: absolute; inset: 0; will-change: transform; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
#layer-sky, #layer-city { will-change: transform; }
/* The finale's golden hour: the sky itself crossfades to a peach and rose evening (painting cream over blue only goes grey), and a warm grade falls on the plot */
.warm { position: absolute; inset: -40% -10% 26%; background: linear-gradient(to bottom, #F1A97E, #F7BE8C 34%, #FBD6A4 62%, rgba(252, 226, 184, 0)); opacity: 0; pointer-events: none; will-change: opacity; }
.grade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(255, 176, 100, .05), rgba(255, 150, 90, .16)); opacity: 0; pointer-events: none; will-change: opacity; }
.stage__words { position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))); width: min(560px, calc(100% - 2 * var(--gutter))); display: grid; align-content: start; gap: var(--s4); padding-top: var(--s7); z-index: 2; }
.stage__words::before { content: ""; position: absolute; inset: -80px -220px 6% -160px; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--paper) 72%, transparent), transparent); pointer-events: none; }   /* a soft wash, so the words read over the skyline */
.stage__words h1 { font-size: var(--fs-hero); }
.stage__words.is-gone > :not(h1), .stage__words.is-gone .search { visibility: hidden; }
.stage__words .search input { background: var(--paper); }
.stage__words .hero__lead { color: var(--ink); max-width: 44ch; font-size: var(--fs-body); }
.cue { position: absolute; left: 50%; bottom: var(--s5); transform: translateX(-50%); margin: 0; padding: var(--s2) var(--s4); background: var(--paper); border-radius: var(--r-pill); font: 500 var(--fs-small)/1.2 var(--text); color: var(--ink); white-space: nowrap; z-index: 2; }

/* The kit: real links, one per category. Each flies out of the box and lands here, the tool on the sky and its name on a small plate. */
.kit-title { position: absolute; left: 0; right: 0; top: var(--s4); margin: 0; text-align: center; font-size: var(--fs-h3); opacity: 0; z-index: 3; padding: 0 var(--gutter); }
.kit { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); width: min(1280px, calc(100% - 2 * var(--gutter))); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s4) var(--s3); list-style: none; margin: 0; padding: 0; z-index: 3; }
.tool { --land: 0; display: grid; justify-items: center; align-content: start; gap: var(--s2); text-decoration: none; text-align: center; opacity: 0; will-change: transform, opacity; }
.tool > span:last-child { font: 600 var(--fs-body)/1.25 var(--display); font-variation-settings: "wdth" 100; color: var(--ink); opacity: var(--land); white-space: nowrap; text-underline-offset: 4px; text-decoration-color: var(--maroon); }
.tool:hover > span:last-child, .tool:focus-visible > span:last-child { text-decoration-line: underline; }
.kit .art { width: 80px; height: 80px; }
.tool:hover > span:last-child, .tool:focus-visible > span:last-child { background: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* A tool's two pictures: its colour at rest; under the pointer or focus the colour fades and its line drawing draws itself in. A landed tool breathes a little, so the sky stays alive. */
.art { position: relative; display: block; width: 64px; height: 64px; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art__colour { filter: drop-shadow(0 4px 5px rgba(90, 60, 30, .22)); transition: opacity var(--t-normal) var(--ease); }
.art__line { color: var(--maroon); opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; transition: opacity var(--t-fast) var(--ease), stroke-dashoffset 0s linear var(--t-fast); }
.tool:active .art__colour { opacity: 0; }
.tool:active .art__line { opacity: 1; stroke-dashoffset: 0; }
@media (hover: hover) {
  .tool:hover .art__colour, .tool:focus-visible .art__colour { opacity: 0; }
  .tool:hover .art__line, .tool:focus-visible .art__line { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 520ms var(--ease); }
}
@media (prefers-reduced-motion: no-preference) {
  .art { animation: float 5s var(--ease) infinite alternate; }
  .kit li:nth-child(3n) .art { animation-delay: -1.6s; } .kit li:nth-child(3n + 1) .art { animation-delay: -3.2s; }
  @keyframes float { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
}
@media (prefers-reduced-motion: reduce) {
  .art__colour { transition: none; }
  .art__line { stroke-dashoffset: 0; transition: none; }
  .tool:hover .art__line, .tool:focus-visible .art__line { transition: none; }
}

/* Reduced motion, or no script: nothing is pinned or flown; the words, the kit as a plain grid, and the finished scene */
.is-still .stage { height: auto; }
.is-still .stage__pin { position: static; height: auto; overflow: visible; display: grid; gap: var(--s5); padding-block: var(--s6) 0; }
.is-still .stage__words { position: static; width: 100%; max-width: var(--page); margin-inline: auto; padding: 0 var(--gutter); }
.is-still .stage__words::before { content: none; }
.is-still .cam { display: none; }   /* the normal home page has no scene: it is words, categories, brands and tools */
.is-still .kit-title { position: static; opacity: 1; }
.is-still .kit { position: static; transform: none; margin-inline: auto; }
.is-still .tool { --land: 1; opacity: 1; }
.is-still .cue, .is-still .skip { display: none; }
.is-still .top__search { opacity: 1; visibility: visible; }

@media (max-width: 1100px) {
  .kit { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); top: 60px; }
  .tool { grid-auto-flow: column; justify-items: start; align-items: center; justify-content: start; text-align: left; }
  .kit .art { width: 40px; height: 40px; flex: none; }
  .tool > span:last-child { font-size: var(--fs-small); }
  .top__bar--scene .call .code { display: none; }   /* the number gives its room to the search: "Call" still dials it */
}
@media (max-width: 900px) {
  .top__bar--scene { grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s3); padding-block: var(--s3); }
  .top__search { grid-column: 1 / -1; grid-row: 2; max-width: none; opacity: 1; visibility: visible; }   /* narrow: the search has its own row in the header from the start, so the header never changes height */
  .stage__words .search { display: none; }
}
@media (max-width: 760px) {
  .stage__words::before { content: none; }
  .stage { height: 520vh; }
  .stage__words { padding-top: var(--s5); gap: var(--s3); }
  .stage__words .hero__lead { display: none; }
  .kit { gap: var(--s2) var(--s1); top: 52px; }
  .kit-title { font-size: var(--fs-body); top: var(--s3); }
  .tool { grid-auto-flow: row; justify-items: center; text-align: center; align-content: start; gap: var(--s1); }
  .kit .art { width: 44px; height: 44px; }
  .tool > span:last-child { font-size: var(--fs-micro); }
}

/* The site's own small pieces */
.defs { position: absolute; width: 0; height: 0; }
.top__search--always { opacity: 1; visibility: visible; }
.notice-page { display: grid; gap: var(--s5); justify-items: start; padding-block: var(--s9); max-width: 720px; }
.notice-page h1 { font-size: var(--fs-h2); }
.notice-page .search { max-width: 560px; }

/* A short desktop screen: the kit gives up height so the scene keeps its ground; scene.js clears the rods with whatever is left */
@media (min-width: 1101px) and (max-height: 820px) {
  .kit { row-gap: var(--s3); }
  .kit .art { width: 56px; height: 56px; }
}

/* The catalogue's pages */
.page-head { display: grid; gap: var(--s3); max-width: 780px; padding-bottom: var(--s6); }
.page-head h1 { font-size: var(--fs-h2); }
.page-head--maker { grid-template-columns: 200px minmax(0, 1fr); align-items: start; gap: var(--s6); max-width: none; }
.page-head--maker img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; border: 1px solid var(--line); background: var(--paper); }
.page-head--maker div { display: grid; gap: var(--s3); max-width: 780px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.tile { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: var(--s4); padding: var(--s3) var(--s4); height: 100%; border: 1px solid var(--line); background: var(--paper); text-decoration: none; transition: border-color var(--t-fast) var(--ease); }
.tile strong { font: 600 var(--fs-small)/1.3 var(--display); font-variation-settings: "wdth" 100; }
.tile:hover { border-color: var(--line-strong); }
.tile:active .art__colour { opacity: 0; }
.tile:active .art__line { opacity: 1; stroke-dashoffset: 0; }

/* A photograph that blends through its category's line drawing: the same two moves as the kit's tools */
.blend { position: relative; overflow: hidden; }
.blend img { position: absolute; inset: 0; width: 100%; height: 100%; padding: var(--s4); object-fit: contain; transition: opacity var(--t-normal) var(--ease); }
.blend .art__line { position: absolute; inset: 0; margin: auto; width: 56%; height: 72%; color: var(--maroon); }
.card:focus-visible .blend img { opacity: 0; }
.card:focus-visible .blend .art__line { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 520ms var(--ease); }
@media (hover: hover) {
  .tile:hover .art__colour, .tile:focus-visible .art__colour, .card:hover .blend img { opacity: 0; }
  .tile:hover .art__line, .tile:focus-visible .art__line, .card:hover .blend .art__line { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 520ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .blend img, .tile .art__colour, .tile .art__line, .card .art__line { transition: none !important; }
}
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); list-style: none; margin: var(--s3) 0 0; padding: 0; }
.thumbs a { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--paper); }
.thumbs a[aria-current] { border-color: var(--maroon); }
.thumbs img { width: 100%; height: 100%; padding: var(--s1); object-fit: contain; }
.prose { display: grid; gap: var(--s3); }
.prose p { margin: 0; max-width: 65ch; text-wrap: pretty; }
.steps { display: grid; gap: var(--s3); margin: 0; padding-left: var(--s5); font-size: var(--fs-lead); }
.list-page { display: grid; gap: var(--s5); padding-block: var(--s7) var(--s9); max-width: 880px; }
.list-page h1 { font-size: var(--fs-h2); }
.list-page [hidden] { display: none; }
.list-rows { display: grid; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list-rows:empty { display: none; }
.list-rows li { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; align-items: center; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.list-rows span { display: grid; gap: var(--s1); min-width: 0; }
.list-rows span a { font-weight: 500; }
.list-rows small { font-size: var(--fs-small); color: var(--muted); }
.list-rows input { height: var(--control); border: 1px solid var(--line-strong); border-radius: var(--r-sharp); padding: 0 var(--s3); font: inherit; width: 100%; }
.list-send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.list-send .proof { flex-basis: 100%; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .page-head--maker { grid-template-columns: minmax(0, 1fr); }
  .page-head--maker img { width: 160px; }
  .list-rows li { grid-template-columns: minmax(0, 1fr) 72px; }
  .list-rows .btn { grid-column: 1 / -1; }
}

/* The menu bar: in the header's own row, so the scene keeps its height. Categories opens the sixteen, with the same draw-in as the kit. */
.top__bar--scene { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
.menu { display: flex; align-items: center; gap: var(--s5); font-weight: 500; white-space: nowrap; }
.menu > a, .menu summary { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; text-decoration: none; cursor: pointer; text-underline-offset: 6px; text-decoration-color: var(--maroon); }
.menu > a:hover, .menu summary:hover { text-decoration-line: underline; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon); transform: rotate(45deg); transition: transform var(--t-fast) var(--ease); }
.menu__cats[open] summary::after { transform: translateY(3px) rotate(225deg); }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; padding-block: var(--s4); background: var(--paper); border-bottom: 1px solid var(--line); white-space: normal; }
.menu__panel .tiles { gap: var(--s2); }
.menu__panel .tile { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s3); padding: var(--s2) var(--s3); }
.menu__panel .art { width: 44px; height: 44px; }
.top__search .btn { padding-inline: var(--s3); }

/* The running banner of brands: the scene's last line. It stops under the pointer or the keyboard, and stands still for anyone who asks for less motion. */
.run { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s5); background: var(--paper); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; }
.run__label { margin: 0; padding-left: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter))); white-space: nowrap; }
.run__window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black var(--s7), black calc(100% - var(--s7)), transparent); }
.run__track { display: flex; width: max-content; }
.run ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.run a, .run li > span { display: block; padding: var(--s2) var(--s5); }
.run img { display: block; width: 104px; height: 52px; object-fit: contain; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .run__track { animation: run var(--t-run) linear infinite; }
  .run:hover .run__track, .run:focus-within .run__track, .run.is-paused .run__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .run ul[aria-hidden] { display: none; }
  .run__window { overflow-x: auto; }
}
.is-still .run { position: static; opacity: 1; visibility: visible; }
.run__pause { width: 32px; height: 32px; margin-right: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter))); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.run__pause[hidden] { display: none; }
.run__pause::before { content: ""; width: 8px; height: 10px; border-inline: 3px solid var(--ink); box-sizing: border-box; }   /* pause: two bars */
.run__pause[aria-pressed="true"]::before { width: 0; height: 0; border-block: 6px solid transparent; border-inline: 9px solid transparent; border-inline-start-color: var(--ink); border-inline-end-width: 0; }   /* play */
.run__pause:hover { border-color: var(--ink); }
.stage .skip { position: absolute; right: var(--gutter); bottom: var(--s5); left: auto; top: auto; z-index: 3; padding: var(--s2) var(--s4); background: var(--paper); border-radius: var(--r-pill); font: 500 var(--fs-small)/1.2 var(--text); color: var(--ink); text-decoration: none; transform: none; }
.skip:hover { text-decoration: underline; text-underline-offset: 3px; }
.kit { scroll-margin-top: calc(var(--head, 81px) + var(--s9)); }

@media (max-width: 1240px) {
  .top__bar--scene .call .code { display: none; }
  .menu { gap: var(--s4); }
}
@media (max-width: 900px) {
  .top__bar--scene { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .firm { grid-column: 1 / 3; }
  .menu { grid-column: 1; grid-row: 2; }
  .menu > a { display: none; }   /* a phone's menu is the categories and the search; the rest is in the footer */
  .top__bar .top__search { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .run { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); }
  .run__pause { margin-right: var(--s3); }
  .run__label { display: none; }
  .run img { width: 80px; height: 40px; }
  .run a, .run li > span { padding: var(--s2) var(--s3); }
  .menu__panel { max-height: calc(100svh - 150px); overflow-y: auto; }
}
