/* Leszner: one system for the family page and the four brands.
   Paper white and ink black, as the logos are drawn; photographs carry the colour. Each brand has one ink of its own.
   One typeface, Archivo: wide for names and headings (the logos' wide lettering), normal width for reading. */
@font-face { font-family: Archivo; src: url(../fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Archivo; src: url(../fonts/archivo-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --paper: #fff; --ink: #000; --mute: #5c5c5c; --wash: #ededed; --accent: #000; --rule: 6px; --thin: 3px; --pad: clamp(1rem, 4vw, 3rem); }
.site-1900 { --accent: #8a4b1f; }        /* vegetable-tanned leather */
.site-x { --accent: #c43c00; }           /* signal orange */
.site-automotive { --accent: #0e3b2e; }  /* racing green */
.site-holdings { --accent: #1d2b4f; }    /* ink blue */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 Archivo, "Helvetica Neue", Arial, sans-serif; font-stretch: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: var(--thin) solid var(--accent); outline-offset: 3px; }
h1, h2, h3, .wide { font-stretch: 125%; line-height: 1.05; margin: 0; }
h1 { font-weight: 700; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem); letter-spacing: -.015em; }
h2 { font-weight: 650; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-weight: 650; font-size: 1.0625rem; margin-top: 1.75rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 9; }
.skip:focus { left: 0; }
.lang { font-stretch: 110%; font-weight: 500; }

/* buttons: the logo tiles' black frame */
.btn { display: inline-block; padding: .8rem 1.35rem; background: var(--ink); color: var(--paper); border: var(--thin) solid var(--ink); font-stretch: 125%; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* ---- the family page: four panels, each a dotted photograph with the brand's seal ---- */
.hub { min-height: 100svh; display: flex; flex-direction: column; }
.hub-head { display: flex; align-items: baseline; gap: 1.5rem; padding: 1.1rem var(--pad); border-bottom: var(--rule) solid var(--ink); }
.wordmark { font-size: 1.5rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hub-lead { margin: 0; color: var(--mute); flex: 1; }
.panels { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.panel { position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--paper) center / cover no-repeat; image-rendering: pixelated; border-left: var(--rule) solid var(--ink); min-height: 30rem; }
.panel:first-child { border-left: 0; }
.tile { display: grid; place-items: center; width: min(64%, 15rem); aspect-ratio: 1; padding: 9%; background: var(--paper); border: var(--rule) solid var(--ink); image-rendering: auto; }
.tile img { width: 100%; }
.tile-word { font-stretch: 125%; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-align: center; line-height: 1.5; font-size: clamp(.8rem, 1.15vw, 1.05rem); }
.panel-text { justify-self: stretch; background: var(--paper); border-top: var(--rule) solid var(--ink); padding: 1.1rem 1.25rem 1.4rem; min-height: 9.5rem; image-rendering: auto; }
.panel-text strong { display: block; font-stretch: 125%; font-weight: 700; font-size: 1.2rem; margin-bottom: .35rem; }
.panel-text span { color: var(--mute); font-size: .975rem; line-height: 1.45; display: block; }
.panel:hover, .panel:focus-visible { color: var(--ink); }
.panel:hover .tile img, .panel:focus-visible .tile img { filter: invert(1); }
.panel:hover .tile-word, .panel:focus-visible .tile-word { color: var(--paper); }
.panel:hover .panel-text strong, .panel:hover .panel-text span, .panel:focus-visible .panel-text strong, .panel:focus-visible .panel-text span { color: var(--paper); }
.panel:focus-visible { outline-offset: calc(var(--rule) * -1); outline-width: var(--rule); outline-color: var(--ink); }
.panel-holdings { background-color: var(--ink); }
@media (max-width: 60rem) {
  .hub-head { flex-wrap: wrap; gap: .25rem 1rem; }
  .hub-lead { order: 3; flex-basis: 100%; }
  .wordmark { flex: 1; }
  .panels { grid-template-columns: 1fr; }
  .panel { grid-template-rows: none; grid-template-columns: 8.5rem 1fr; min-height: 9rem; border-left: 0; border-top: var(--rule) solid var(--ink); justify-items: stretch; align-items: stretch; }
  .panel:first-child { border-top: 0; }
  .tile { width: 6.5rem; align-self: center; justify-self: center; border-width: 4px; }
  .panel-text { border-top: 0; border-left: var(--rule) solid var(--ink); min-height: 0; display: flex; flex-direction: column; justify-content: center; }
  .tile { padding: .5rem; }
  .tile-word { font-size: .6rem; letter-spacing: .06em; }
}

/* ---- the brands' pages ---- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--pad); border-bottom: var(--thin) solid var(--ink); }
.bar-family { font-stretch: 125%; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; }
.bar-logo img { width: 4.25rem; }
.bar-nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); align-items: baseline; }
.bar-nav a { font-stretch: 125%; font-weight: 600; text-decoration: none; padding: .35rem 0; border-bottom: var(--thin) solid transparent; }
.bar-nav a:hover, .bar-nav a[aria-current] { border-bottom-color: currentColor; }
.bar-nav .lang { font-stretch: 110%; font-weight: 500; color: var(--mute); }
.wrap { max-width: 82rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--pad); }
.wrap > h1 { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.more { margin: 2.5rem 0 0; }

.hero { position: relative; }
.hero-img { width: 100%; height: min(74svh, 44rem); object-fit: cover; object-position: 60% 55%; }
.hero-box { position: relative; background: var(--paper); border: var(--rule) solid var(--ink); max-width: 37rem; padding: clamp(1.25rem, 3vw, 2.25rem); margin: -9rem var(--pad) 0; }
.hero-box p { margin: 1rem 0 1.5rem; max-width: 46ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 2.25rem 1.5rem; margin-top: 1.75rem; }
.card { text-decoration: none; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-content: start; }
.card img { grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--wash); margin-bottom: .6rem; }
.card-name { font-stretch: 125%; font-weight: 600; line-height: 1.25; }
.card-price { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card:hover .card-name { text-decoration: underline; text-decoration-thickness: var(--thin); text-underline-offset: .25em; }
@media (min-width: 62rem) { .grid-lead { grid-template-columns: repeat(4, 1fr); } .grid-lead .card:first-child { grid-column: span 2; grid-row: span 2; } .grid-lead .card:first-child .card-name { font-size: 1.35rem; } }
@media (max-width: 34rem) { .grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; } .card { grid-template-columns: 1fr; } .card-name { font-size: .95rem; } }
.group { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: var(--thin) solid var(--ink); padding-top: 1.25rem; }
.wrap > h1 + .group { margin-top: 0; }

.band { display: grid; grid-template-columns: 3fr 2fr; align-items: center; border-top: var(--rule) solid var(--ink); }
.band img { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; }
.band p { margin: 0; padding: var(--pad); font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); line-height: 1.35; font-stretch: 112%; max-width: 30ch; }
@media (max-width: 48rem) { .band { grid-template-columns: 1fr; } .hero-box { margin-top: -3rem; } .hero-img { height: min(52svh, 26rem); } }

.crumb { color: var(--mute); margin-bottom: 1.25rem; }
.product-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gallery-main img { width: 100%; max-height: 80svh; object-fit: contain; background: var(--wash); }
.thumbs { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.thumbs img { width: 4.5rem; height: 4.5rem; object-fit: cover; }
.thumbs a { display: block; outline: var(--thin) solid transparent; outline-offset: 2px; }
.thumbs a[aria-current] { outline-color: var(--ink); }
.buy h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.buy-price { font-stretch: 125%; font-weight: 600; font-size: 1.6rem; margin: 1rem 0 .25rem; font-variant-numeric: tabular-nums; }
.buy-price small { font-stretch: 100%; font-weight: 400; font-size: .9rem; color: var(--mute); }
.buy-stock { color: var(--mute); max-width: 40ch; }
.buy-note { color: var(--mute); font-size: .9rem; margin: .6rem 0 2rem; }
.buy > p { max-width: 62ch; }
.facts { border-collapse: collapse; width: 100%; margin-top: 2rem; }
.facts caption { text-align: left; font-stretch: 125%; font-weight: 650; padding-bottom: .5rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: .55rem 0; border-top: 1px solid var(--ink); font-weight: 400; }
.facts th { color: var(--mute); width: 40%; padding-right: 1rem; }
.product-text { max-width: 44rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.product-text section { border-top: var(--thin) solid var(--ink); padding: 1.25rem 0 1.5rem; }
.product-text h2 { margin-bottom: 1rem; }
.product-text ul { padding-left: 1.2rem; }
@media (max-width: 52rem) { .product-top { grid-template-columns: 1fr; } }

.contact p { max-width: 50ch; }
.contact-mail a { font-stretch: 125%; font-weight: 650; font-size: clamp(1.4rem, 1rem + 2.4vw, 2.5rem); }
.contact img { margin-top: 2.5rem; width: 100%; max-height: 30rem; object-fit: cover; }

/* ---- 3D wireframe models (static/js/wire.js): ink lines on paper, seams and rivets in the brand's ink ---- */
canvas.wire { display: block; width: 100%; color: var(--ink); touch-action: pan-y; cursor: grab; }
canvas.wire:active { cursor: grabbing; }
.models-lead { max-width: 52ch; margin: -1.5rem 0 2rem; color: var(--mute); }
.models-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: end; }
.stage { border: var(--rule) solid var(--ink); position: relative; }
.stage canvas { aspect-ratio: 4 / 3; max-height: 70svh; }
.stage-hint { position: absolute; left: .9rem; max-width: calc(100% - 11rem); bottom: .6rem; margin: 0; color: var(--mute); font-size: .875rem; pointer-events: none; }
.wire-move { font: inherit; font-weight: 600; padding: .5rem 1rem; background: var(--paper); color: var(--ink); border: var(--thin) solid var(--ink); cursor: pointer; }
.wire-move:hover { color: var(--paper); }
.model .wire-move { margin-top: .75rem; }
.stage .wire-move { position: absolute; right: .9rem; bottom: .9rem; }
@media (max-width: 44rem) {
  .stage { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-bottom: .9rem; }
  .stage canvas { flex: 0 0 100%; }
  .stage-hint, .stage .wire-move { position: static; }
  .stage-hint { order: 1; flex: 1 1 0; max-width: none; padding-left: .9rem; }
  .stage .wire-move { order: 2; margin-right: .9rem; }
}
.stage-info h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); margin-bottom: 1rem; }
.stage-info .crumb { margin-bottom: .5rem; }
.stage-size { font-variant-numeric: tabular-nums; margin-bottom: 1.5rem; }
.stage-size span:first-child { color: var(--mute); }
.models-list { list-style: none; margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: .75rem; }
.models-list a { display: grid; gap: .4rem; padding: .5rem .6rem .7rem; border: var(--thin) solid transparent; text-decoration: none; height: 100%; align-content: start; }
.models-list a:hover { border-color: var(--wash); color: var(--ink); }
.models-list a[aria-current] { border-color: var(--ink); }
.models-list canvas { aspect-ratio: 4 / 3; pointer-events: none; }
.models-list span { font-stretch: 112%; font-weight: 600; font-size: .9rem; line-height: 1.25; }
.model { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: var(--thin) solid var(--ink); padding-top: 1.25rem; max-width: 44rem; }
.model canvas { aspect-ratio: 4 / 3; border: var(--thin) solid var(--ink); margin-top: 1rem; }
.model + .product-text { margin-top: 2.5rem; }
@media (max-width: 56rem) { .models-top { grid-template-columns: 1fr; align-items: start; } .models-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5rem), 1fr)); } }
@media (max-width: 34rem) { .bar-shop .bar-nav { gap: .8rem; font-size: .9rem; } }

/* ---- Leszner Holdings: black first screen with drawn range rings in the house dot screen; the rest is ruled lists ---- */
.dark { background: var(--ink); color: var(--paper); border-bottom: var(--rule) solid var(--ink); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.dark-in { padding: clamp(3rem, 8vw, 6.5rem) var(--pad); padding-left: max(var(--pad), calc((100vw - 82rem) / 2 + var(--pad))); }
.dark-art { background: var(--ink) left center / cover no-repeat; image-rendering: pixelated; min-height: 9rem; }
.dark h1 { max-width: 21ch; text-wrap: balance; }
.dark p { max-width: 52ch; margin: 1.5rem 0 2rem; font-size: 1.15rem; }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { color: var(--paper); border-color: var(--paper); }
.index { list-style: none; margin: 1.5rem 0 0; padding: 0; border-bottom: var(--thin) solid var(--ink); }
.index a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: .35rem 2rem; align-items: baseline; padding: 1.15rem .75rem 1.25rem 0; border-top: var(--thin) solid var(--ink); text-decoration: none; }
.index strong { font-stretch: 125%; font-weight: 650; font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem); line-height: 1.15; }
.index span { color: var(--mute); }
.index a:hover, .index a:focus-visible { color: var(--paper); }
.index a:hover span, .index a:focus-visible span { color: var(--paper); }
.how-lead { color: var(--mute); margin: .5rem 0 0; }
.steps { list-style: none; counter-reset: step; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: var(--rule) solid var(--ink); padding-top: .75rem; display: grid; gap: .35rem; align-content: start; }
.steps li::before { content: counter(step); font-stretch: 125%; font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--accent); }
.steps strong { font-stretch: 125%; font-weight: 650; }
.steps span { color: var(--mute); font-size: .975rem; line-height: 1.45; }
.framed { border: var(--rule) solid var(--ink); padding: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2rem, 5vw, 3.5rem); max-width: 46rem; }
.framed h2, .framed h3 { margin: 0 0 .75rem; }
.framed p:last-child { margin-bottom: 0; }
.wrap + .wrap { padding-top: 0; }
.brands p { max-width: 60ch; margin-top: .75rem; }
.brands .brand-links { display: flex; flex-wrap: wrap; gap: .75rem; max-width: none; margin-top: 1.25rem; }
.field h1 { max-width: 20ch; text-wrap: balance; margin-bottom: 1.5rem; }
.field-lead { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); line-height: 1.4; font-stretch: 108%; max-width: 46ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.what { margin: 1.25rem 0 0; border-bottom: var(--thin) solid var(--ink); max-width: 62rem; }
.what div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .35rem 2rem; padding: 1.1rem 0 1.2rem; border-top: var(--thin) solid var(--ink); }
.what dt { font-stretch: 125%; font-weight: 650; font-size: 1.15rem; line-height: 1.25; }
.what dd { margin: 0; max-width: 56ch; }
.ask-mail { color: var(--mute); margin-left: .75rem; white-space: nowrap; }
.others { margin-top: clamp(3rem, 7vw, 5rem); }
.include { margin: 1rem 0 0; padding-left: 1.2rem; max-width: 60ch; }
.include li { margin-bottom: .4rem; }
.contact section { margin-top: 2.5rem; }
.warn { border-color: var(--accent); }
.bar-holdings .bar-family { letter-spacing: .14em; }
@media (max-width: 56rem) { .steps { grid-template-columns: 1fr 1fr; } .dark { grid-template-columns: 1fr; } .dark-art { background-position: 70% center; } }
@media (max-width: 44rem) {
  .index a, .what div { grid-template-columns: 1fr; }
  .bar-holdings { flex-direction: column; align-items: flex-start; gap: .35rem; position: relative; }
  .bar-holdings .lang { position: absolute; top: .75rem; right: var(--pad); }
  .bar-holdings .bar-nav { flex-wrap: wrap; gap: .1rem 1rem; font-size: .95rem; }
  .ask-mail { display: block; margin: .75rem 0 0; }
}
@media (max-width: 26rem) { .steps { grid-template-columns: 1fr; } }

.stub { min-height: 72svh; display: grid; place-items: center; padding: var(--pad); background: var(--paper) center / cover no-repeat; image-rendering: pixelated; }
.site-holdings .stub { background: var(--ink); }
.stub-card { image-rendering: auto; background: var(--paper); border: var(--rule) solid var(--ink); padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 34rem; }
.stub-card .tile { width: 8.5rem; padding: .9rem; margin-bottom: 1.5rem; border-width: 4px; }
.stub-card .tile-word { font-size: .72rem; letter-spacing: .08em; }
.stub-card h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.stub-line { font-size: 1.15rem; margin: .75rem 0 1.5rem; }
.stub-card p:last-child { margin: 0; color: var(--mute); }
.stub-card p:last-child a { color: var(--ink); font-weight: 600; }

.foot { border-top: var(--rule) solid var(--ink); margin-top: clamp(2rem, 6vw, 5rem); }
.band + .foot, .stub + .foot, main:has(> .band:last-child) + .foot { margin-top: 0; }
.foot-in { max-width: 82rem; margin: 0 auto; padding: 2rem var(--pad) 2.5rem; display: grid; gap: .5rem; }
.foot p { margin: 0; }
.foot-made { font-stretch: 125%; font-weight: 650; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: .75rem; }
.foot-small { color: var(--mute); font-size: .875rem; margin-top: .75rem !important; max-width: 70ch; }


/* ---------- the enquiry form ---------- */
[hidden] { display: none !important; }
.enquiry { display: grid; gap: 1.1rem; max-width: 38rem; margin-top: 1.5rem; }
.enquiry p { margin: 0; max-width: none; }
.enquiry label { display: block; font-weight: 600; margin-bottom: .35rem; }
.enquiry label small { font-weight: 400; color: var(--mute); }
.enquiry input, .enquiry select, .enquiry textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: var(--thin) solid var(--ink); border-radius: 0; padding: .7rem .8rem; }
.enquiry textarea { min-height: 9rem; resize: vertical; }
.enquiry button { font: inherit; font-stretch: 125%; font-weight: 600; cursor: pointer; }
.enquiry button:disabled { opacity: .5; cursor: progress; }
.enquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-msg { border-left: var(--rule) solid var(--ink); padding: .4rem 0 .4rem .9rem; font-weight: 600; }
.enquiry-note { color: var(--mute); font-size: .9rem; }
.framed > .enquiry-note { margin-top: 1.1rem; }
.enquiry-done { margin-top: 1.5rem; border-left: var(--rule) solid var(--accent); padding: .4rem 0 .4rem .9rem; }
.enquiry-done p { margin: 0; }
.enquiry-done-h { font-stretch: 125%; font-weight: 650; font-size: 1.3rem; }
.ask-form > summary { list-style: none; cursor: pointer; }
.ask-form > summary::-webkit-details-marker { display: none; }
.ask-form[open] > summary { background: var(--paper); color: var(--ink); }
.ask-form .enquiry { margin-bottom: 1.5rem; }

/* ---- what moves ----
   Two materials, both alive: the dot screen (static/js/screen.js) and the line drawing (static/js/wire.js). Surfaces that answer the pointer fill with the same dots.
   html.still (the visitor's switch, or the system's reduced-motion setting) stops all of it. */
@property --dot { syntax: "<length>"; inherits: false; initial-value: -1px; }
.btn, .wire-move, .index a, .panel-text, .tile { --fill: var(--accent); background-image: radial-gradient(circle, var(--fill) var(--dot), transparent calc(var(--dot) + .7px)); background-size: 7px 7px; background-position: center; transition: --dot .32s cubic-bezier(.4, 0, .2, 1), color .2s .06s, border-color .2s; }
.btn:hover, .btn:focus-visible, .wire-move:hover, .index a:hover, .index a:focus-visible, .panel:hover .tile, .panel:focus-visible .tile, .panel:hover .panel-text, .panel:focus-visible .panel-text { --dot: 5.1px; }
.btn-line, .btn-paper, .wire-move, .index a, .tile, .panel-text { --fill: var(--ink); }
.tile img { transition: filter .25s; }

.screen { background: center / cover no-repeat; image-rendering: pixelated; overflow: hidden; }
.screen canvas { display: block; width: 100%; height: 100%; }
.screen.on { background-image: none !important; }
.panel { overflow: hidden; min-width: 0; }
.panel > .screen { grid-area: 1 / 1; align-self: stretch; justify-self: stretch; position: relative; min-height: 0; }
.panel > .screen canvas { position: absolute; inset: 0; }
.panel > .tile { grid-area: 1 / 1; position: relative; }
.panel > .panel-text { position: relative; }
.motion { font: inherit; font-size: .875rem; color: var(--mute); background: none; border: 0; padding: .35rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; justify-self: start; text-align: left; }
.motion:hover { color: var(--ink); }
@media (min-width: 60.01rem) {
  .panels { transition: grid-template-columns .5s cubic-bezier(.3, 0, .1, 1); }
  .panels:has(.panel:nth-child(1):hover) { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .panels:has(.panel:nth-child(2):hover) { grid-template-columns: 1fr 1.3fr 1fr 1fr; }
  .panels:has(.panel:nth-child(3):hover) { grid-template-columns: 1fr 1fr 1.3fr 1fr; }
  .panels:has(.panel:nth-child(4):hover) { grid-template-columns: 1fr 1fr 1fr 1.3fr; }
  .panel .tile { width: 15rem; max-width: 72%; padding: 1.4rem; }
  .opening .panel:not(.chosen) { border-color: transparent; }
  .opening .panel:not(.chosen) > * { opacity: 0; transition: opacity .12s; }
}
@media (max-width: 60rem) { .panel > .panel-text { grid-column: 2; } .hub-head .motion { order: 4; } }

.js .hero-img[data-develop] { opacity: 0; animation: appear 0s 2.5s forwards; }
.js .hero-img.developed { opacity: 1; animation: none; }
@keyframes appear { to { opacity: 1; } }
.hero { --h: min(74svh, 44rem); }
canvas.develop { position: absolute; left: 0; top: 0; width: 100%; height: var(--h); pointer-events: none; }
@media (max-width: 48rem) { .hero { --h: min(52svh, 26rem); } }

/* goods: pointing at a photograph shows its drawing */
.card-pic { grid-column: 1 / -1; position: relative; display: block; overflow: hidden; margin-bottom: .6rem; }
.card-pic img { margin: 0; }
.card-pic canvas.wire { position: absolute; inset: 0; height: 100%; background: var(--ink); color: var(--paper); --accent: #d99a63; opacity: 0; transition: opacity .2s; pointer-events: none; }
.card:hover canvas.wire, .card:focus-visible canvas.wire { opacity: 1; }

/* the tool case opens as its section is scrolled through */
.scrolly { height: 320vh; background: var(--ink); color: var(--paper); --accent: #d99a63; }
.scrolly-in { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 2rem; max-width: 96rem; margin: 0 auto; padding: var(--pad); }
.scrolly canvas.wire { height: 100%; color: var(--paper); cursor: default; min-height: 0; }
.scrolly h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); text-wrap: balance; }
.scrolly-steps { list-style: none; margin: 2.25rem 0; padding: 0; display: grid; gap: 1.5rem; }
.scrolly-steps li { color: #8d8d8d; border-left: var(--rule) solid #3a3a3a; padding-left: 1.1rem; transition: color .3s, border-color .3s; }
.scrolly-steps li.now { color: var(--paper); border-color: var(--accent); }
.scrolly-steps strong { display: block; font-stretch: 125%; font-weight: 650; font-size: 1.15rem; }
.still .scrolly { height: auto; }
.still .scrolly-in { position: static; }
@media (max-width: 52rem) {
  .scrolly { height: 260vh; }
  .scrolly-in { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; }
  .scrolly-text { grid-row: 2; } .scrolly canvas.wire { grid-row: 1; }
  .scrolly-steps { margin: 1rem 0; gap: .6rem; }
  .scrolly-steps strong { font-size: 1rem; } .scrolly-steps span { font-size: .925rem; }
}

/* Leszner Holdings: each field has its drawing, white on black */
.index a { grid-template-columns: 10rem minmax(0, 5fr) minmax(0, 6fr); align-items: center; padding: 0 1rem 0 0; transition: --dot .32s, color .2s .06s; }
.index canvas.wire { aspect-ratio: 4 / 3; background: var(--ink); color: var(--paper); --accent: #9fb4e8; pointer-events: none; }
.dark-field { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.dark-field .dark-in { padding-block: clamp(2.5rem, 6vw, 5rem); padding-right: 0; }
.dark-field .crumb, .dark-field .crumb a { color: #b5b5b5; }
.dark-field h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); }
.dark-field .field-lead { margin-bottom: 0; }
.dark-model, .stub-model { position: relative; }
.dark-model canvas.wire { aspect-ratio: 1; max-height: 36rem; color: var(--paper); --accent: #9fb4e8; }
.dark-model .wire-move, .stub-model .wire-move { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 56rem) { .dark-field { grid-template-columns: 1fr; } .dark-field .dark-in { padding-right: var(--pad); padding-bottom: 0; } .dark-art.screen { min-height: 20rem; } }
@media (max-width: 44rem) { .index a { grid-template-columns: 6.5rem minmax(0, 1fr); row-gap: 0; } .index canvas.wire { grid-row: 1 / 3; } .index strong { align-self: end; padding-top: .7rem; font-size: 1.05rem; } .index span { align-self: start; padding-bottom: .7rem; font-size: .925rem; } }

/* one page each for X (the film in dots) and Automotive (white lines on racing green) */
.stub { position: relative; min-height: 84svh; }
.stub > .screen { position: absolute; inset: 0; }
.stub-card { position: relative; } .stub-card .tile { justify-self: start; }
.stub-x { place-items: end start; }
.stub-automotive { background: var(--accent); grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: var(--pad); }
.stub-model { grid-area: 1 / 2; width: 100%; }
.stub-automotive .stub-card { grid-area: 1 / 1; }
.stub-model canvas.wire { height: min(78svh, 44rem); color: var(--paper); --accent: #a9d3c2; }
@media (max-width: 60rem) { .stub-automotive { grid-template-columns: minmax(0, 1fr); place-items: start; } .stub-model { grid-area: 1 / 1; } .stub-model canvas.wire { height: 22rem; } .stub-automotive .stub-card { grid-area: 2 / 1; } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }                                  /* a photograph in the catalogue grows into the one on its page */
  ::view-transition-group(*) { animation-duration: .38s; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
  .wordmark { animation: widen .9s cubic-bezier(.2, .7, .1, 1) backwards; }  /* the typeface's own width, from narrow to the logo's wide */
  @keyframes widen { from { font-stretch: 62%; letter-spacing: 0; } }
  @supports (animation-timeline: view()) {                                /* the rule over the five steps is drawn as they scroll in */
    .steps li { border-top-color: transparent; position: relative; }
    .steps li::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--rule) * -1); height: var(--rule); background: var(--ink); transform-origin: left; animation: rule linear both; animation-timeline: view(); animation-range: entry 20% cover 38%; }
    @keyframes rule { from { transform: scaleX(0); } }
  }
}
.still *, .still *::before, .still *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
