/* ==========================================================================
   Plimpton Innovations: site design (home, products index, product pages)
   The owner's merge of direction C (cinematic scroll) and direction A (stark
   gallery), on the black default theme from base.css.
     body.page-home      cinematic chapters, product LINES (not products)
     body.page-products  products index, grouped by product line
     body.page-product   A's gallery-wall product page + C's exploded view
   Colours: base.css variables only. No gradients, glows, shadows or radii.
   Motion: transform and opacity only. Everything is on the page at rest,
   without JS and under prefers-reduced-motion.
   ========================================================================== */

.page-home, .page-products, .page-product, .page-engineering, .page-company, .page-quality {
  --sp: clamp(4.5rem, 2.5rem + 7vw, 10rem);       /* between chapters and parts */
  --sp-sm: clamp(2rem, 1.5rem + 2vw, 3.5rem);     /* inside a chapter or part */
  --track: 0.14em;                                /* caption letter spacing */
  --t-hero: clamp(2.75rem, 0.9rem + 7.4vw, 8rem);
  --t-display: clamp(2.25rem, 1.2rem + 4.4vw, 5.5rem);
  --t-statement: clamp(1.375rem, 1rem + 1.6vw, 2.375rem);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --index-h: 0rem;                                /* product page: height of the sticky index */
}
.page-product { --index-h: 3.125rem; }

/* ---------- Shared chrome on these pages (tap targets >= 44 px) ---------- */
:is(.page-home, .page-products, .page-product) .breadcrumb { padding-top: var(--s1); }
:is(.page-home, .page-products, .page-product) .breadcrumb li { display: inline-flex; align-items: center; }
:is(.page-home, .page-products, .page-product) .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
:is(.page-home, .page-products, .page-product) .site-footer li { margin-bottom: 0; }
:is(.page-home, .page-products, .page-product) .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
:is(.page-home, .page-products, .page-product) .footer-base button { min-height: 44px; }
:is(.page-home, .page-products, .page-product) .text-link {
  display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px;
  border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em;
}
:is(.page-home, .page-products, .page-product) .text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Caption system (A) ---------- */
.kicker {
  display: flex; align-items: baseline; gap: var(--s3);
  border-top: 1px solid var(--rule); padding-top: 0.875rem; margin-bottom: var(--sp-sm);
}
.kicker__num, .kicker h2, .kicker .label, .cap {
  font-size: 0.75rem; font-weight: 700; line-height: 1.4; letter-spacing: var(--track);
  text-transform: uppercase; margin: 0; color: var(--muted);
}
.kicker__num { min-width: 2.5ch; }
.kicker h2 { color: var(--fg); }

/* ---------- Type (C) ---------- */
.t-display { font-size: var(--t-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; max-width: 22ch; margin: 0 0 var(--sp-sm); }
.t-display > span { display: block; }
.t-display__second { color: var(--muted); margin-top: 0.3em; }
.t-statement { font-size: var(--t-statement); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; max-width: 26ch; margin: 0 0 var(--s3); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0; }

/* ==========================================================================
   HOME: cinematic chapters
   ========================================================================== */
.chapter { padding-block: var(--sp); }
.chapter + .chapter { padding-top: 0; }

/* Hero: the first screen is type */
.hero { display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--s6) var(--sp-sm); }
@media (min-width: 48rem) { .hero { min-height: calc(100svh - var(--header-h) - 2.5rem); padding-block: var(--s7) var(--s6); } }
.hero .label { margin-bottom: var(--s4); letter-spacing: var(--track); }
.hero h1 { font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.035em; max-width: 11ch; margin: 0 0 var(--s5); }
.hero__foot { display: grid; gap: var(--s3); border-top: 1px solid var(--rule); padding-top: var(--s3); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 30rem; margin: 0; }
@media (min-width: 64rem) {
  .hero__foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .hero__lead { grid-column: 1 / span 5; }
  .hero__foot .actions { grid-column: 8 / span 5; justify-content: flex-end; }
}

.plate { margin: 0; }
.hero-plate { padding-bottom: var(--sp); }
.hero-plate .slot, .wide-plate .slot { --ratio: 4 / 3; }
@media (min-width: 48rem) { .hero-plate .slot { --ratio: 21 / 9; } .wide-plate .slot { --ratio: 16 / 9; } }
.plate .cap { display: flex; justify-content: space-between; gap: var(--s2); margin-top: 0.75rem; }

/* What we do */
.pair { display: grid; gap: var(--s6) var(--col-gap); }
.pair__item h3 { font-size: 0.75rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
@media (min-width: 48rem) {
  .pair { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pair__item:nth-child(1) { grid-column: 1 / span 5; }
  .pair__item:nth-child(2) { grid-column: 7 / span 5; }
}

/* ---------- Product lines ----------
   One <article class="pline"> per line, one <li> per product inside it.
   The line name is the panel's link (stretched over the panel); the product
   names sit above that layer as their own links. */
.plines { counter-reset: none; }
.pline { position: relative; padding-bottom: var(--sp); }
.pline__grid { display: grid; gap: var(--s3) var(--col-gap); border-top: 1px solid var(--rule); padding-top: 0.875rem; }
.pline__num { margin: 0; }
.pline__name { font-size: var(--t-display); line-height: 1; letter-spacing: -0.03em; margin: var(--s2) 0 0; }
.pline__link { text-decoration: none; }
.pline__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pline__arrow { display: inline-block; font-weight: 400; font-size: 0.6em; vertical-align: 0.2em; transition: transform 0.5s var(--ease); }
.pline:hover .pline__arrow, .pline__link:focus-visible .pline__arrow { transform: translate3d(0.25em, 0, 0); }
.pline__link:focus-visible { outline: none; }
.pline__link:focus-visible::after { outline: 2px solid var(--fg); outline-offset: 4px; }
.pline__products { list-style: none; padding: 0; margin: 0; position: relative; z-index: 2; }
.pline__products li { border-top: 1px solid var(--rule); padding-block: 0.75rem var(--s2); }
.pline__products li:last-child { border-bottom: 1px solid var(--rule); }
.pline__products a { display: inline-block; padding-block: 0.65rem; font-weight: 700; text-decoration: none; }
.pline__products a::after { content: "\2192"; font-weight: 400; margin-left: 0.5em; }
.pline__products a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.pline__products p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; max-width: 34rem; margin: 0; }
.pline__slot { --ratio: 4 / 3; margin-top: var(--s2); }
@media (min-width: 48rem) { .pline__slot { --ratio: 21 / 9; } }
@media (min-width: 64rem) {
  .pline__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: var(--s4); }
  .pline__num { grid-column: 1 / -1; }
  .pline__head { grid-column: 1 / span 7; align-self: end; }
  .pline__products { grid-column: 8 / span 5; align-self: end; }
  .pline__slot { grid-column: 1 / -1; margin-top: var(--s3); }
  .pline__products li:first-child { border-top: 0; padding-top: 0; }
}

/* Engineering you can build on */
.split { display: grid; gap: var(--s4) var(--col-gap); }
.split h2.t-statement { font-weight: 700; margin-bottom: 0; }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { border-top: 1px solid var(--rule); padding-block: var(--s2); font-size: 1.125rem; line-height: 1.5; }
.lines li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 64rem) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 7 / span 6; }
}

/* Motorsports */
.ground .t-display { max-width: 24ch; }
.ground__foot { margin-top: var(--s3); }

/* Knowledge library */
.paper { display: grid; gap: var(--s1); }
.paper > * { margin: 0; }
.paper h3 { font-size: var(--t-statement); line-height: 1.2; max-width: 30ch; margin-block: var(--s1); }
.paper h3 a { text-decoration: none; }
.paper h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.paper__text { color: var(--muted); max-width: 40rem; }

/* Contact */
.contact h2 { font-size: var(--t-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; max-width: 22ch; margin: 0 0 var(--sp-sm); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); border-top: 1px solid var(--rule); padding-top: var(--s3); }
.contact__row > p { margin: 0; max-width: 30rem; }
.mail { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; overflow-wrap: anywhere; }

/* ==========================================================================
   PRODUCTS INDEX: grouped by product line
   ========================================================================== */
.page-products .page-head::after { content: none; }
.page-products .page-head { padding-block: var(--s4) var(--sp-sm); }
.page-products .page-head h1 { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; margin-bottom: var(--s3); }
.page-products .page-head .label { letter-spacing: var(--track); margin-bottom: var(--s3); }
.line-index { list-style: none; padding: 0; margin: var(--s4) 0 0; display: flex; flex-wrap: wrap; gap: 0 var(--s4); border-top: 1px solid var(--rule); }
.line-index a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; text-decoration: none;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.line-index a span { color: var(--muted); font-weight: 400; }
.line-index a:hover { text-decoration: underline; text-underline-offset: 0.35em; }

.pl { padding-bottom: var(--sp); scroll-margin-top: calc(var(--header-h) + 1rem); }
.pl__grid, .block__grid { display: grid; gap: var(--s4) var(--col-gap); border-top: 1px solid var(--fg); padding-top: var(--s2); }
.pl__head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin: var(--s2) 0 0; }
.pl__cards { display: grid; gap: var(--sp-sm) var(--col-gap); }
@media (min-width: 48rem) { .pl__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .pl__grid, .block__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pl__head, .block__head { grid-column: 1 / span 4; }
  .pl__cards, .block__body { grid-column: 5 / span 8; }
}
.pcard { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.pcard > * { margin: 0; }
.pcard__link { display: block; text-decoration: none; }
.pcard .slot { --ratio: 4 / 5; margin-bottom: var(--s2); }
.pcard h3 { font-size: 1.25rem; line-height: 1.25; margin: 0; }
.pcard__link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.pcard__text { color: var(--muted); }
.pcard__price { border-top: 1px solid var(--rule); padding-top: var(--s1); }
.pcard__price .price { font-size: 1.125rem; }
.block { padding-bottom: var(--sp); }
.block__head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); margin: 0; }
.block__body { min-width: 0; }

/* ==========================================================================
   PRODUCT PAGE: gallery-wall head (A), black
   ========================================================================== */
.pdp { padding-block: var(--s2) var(--sp-sm); }
.pdp__grid { display: grid; gap: var(--s4) var(--col-gap); }
.pdp__media { min-width: 0; }
.pdp__hero { --ratio: 4 / 3; }
@media (max-width: 47.99rem) {
  /* phone: Hero, then the wall label (name, price, Add to cart), then the thumbnails */
  .pdp__media { display: contents; }
  .pdp__thumbs { order: 2; margin-top: 0; }
}
.pdp__thumbs { list-style: none; padding: 0; margin: var(--col-gap) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.pdp__thumbs .slot { --ratio: 1 / 1; }
.pdp__thumbs .slot::before { width: 52%; }
.pdp__thumbs .slot__label { font-size: 0.625rem; padding: 0.25rem; }
.pdp__thumbs .slot__label strong { font-size: 0.6875rem; }
@media (min-width: 48rem) {
  .pdp__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pdp__media { grid-column: 1 / span 7; }
  .pdp__hero { --ratio: 4 / 5; }
  .pdp__label { grid-column: 8 / span 5; }
}
@media (min-width: 64rem) {
  .pdp__media { grid-column: 1 / span 8; }
  .pdp__hero { --ratio: 4 / 3; }
  .pdp__label { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + var(--s3)); align-self: start; }
}

/* Wall label: line, name, lead, price, Add to cart */
.pdp__label > * { margin: 0; }
.pdp__line { display: inline-flex; align-items: center; min-height: 44px; margin-top: -0.6rem !important; text-decoration: none; font-size: 0.75rem; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.pdp__line:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 0.35em; }
.pdp__label h1 { margin: var(--s1) 0 var(--s3); letter-spacing: -0.01em; }
.pdp__name { display: block; font-size: clamp(2.75rem, 2rem + 2.6vw, 4.25rem); line-height: 0.95; letter-spacing: -0.035em; }
.pdp__type { display: block; font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: 0; margin-top: var(--s2); }
.pdp__lead { font-size: 1.0625rem; line-height: 1.5; margin-bottom: var(--s3) !important; }
.pdp__form { border-top: 1px solid var(--fg); padding-top: var(--s2); margin-bottom: var(--s3) !important; }
.pdp__form > * { margin: 0; }
.pdp__price { margin-bottom: var(--s2) !important; }
.pdp__form .price { font-size: 1.75rem; }
.pdp__form fieldset { border: 0; padding: 0; margin: 0 0 var(--s2); display: grid; gap: var(--s1); min-width: 0; }
.pdp__form legend { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); padding: 0; }
.variant {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  min-height: 52px; padding: 0.6rem 0.9rem; border: 1px solid var(--rule); cursor: pointer;
}
.variant > span { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.variant input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--fg); }
.variant .price { font-size: 1.125rem; }
.variant:has(input:checked) { border-color: var(--fg); outline: 1px solid var(--fg); outline-offset: -2px; }
.variant:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.pdp__form .store-note { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--s2); }
.pdp__row { display: flex; align-items: flex-end; gap: var(--s2); }
.pdp__qty { display: grid; gap: 0.35rem; }
.pdp__qty label { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.pdp__qty input { width: 5.5rem; border-color: var(--grey-65); }
.pdp__add { flex: 1 1 auto; }
.pdp__status { font-size: 0.9375rem; color: var(--muted); margin-top: var(--s1) !important; }
.pdp__status:empty { display: none; }
.pdp__note { color: var(--muted); border-top: 1px solid var(--rule); padding-top: var(--s2); }
.pdp__docs { margin-top: var(--s1) !important; }

/* ---------- Sticky index (A) with Buy always at hand ---------- */
.pdp-index { position: sticky; top: var(--header-h); z-index: 40; background: var(--bg); border-block: 1px solid var(--rule); }
.pdp-index__in { display: flex; align-items: stretch; gap: var(--s2); }
.pdp-index ol {
  flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--s3); overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.pdp-index ol::-webkit-scrollbar { display: none; }
.pdp-index ol a {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 3rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent;
}
.pdp-index ol a span { font-weight: 400; }
.pdp-index ol a:hover, .pdp-index ol a[aria-current="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.pdp-index ol a:focus-visible { outline-offset: -2px; }
.pdp-index__buy {
  flex: none; display: inline-flex; align-items: center; gap: 0.75rem; align-self: center;
  min-height: 2.25rem; padding: 0 var(--s2);
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
@media (min-width: 48rem) { .pdp-index__buy { min-height: 2.5rem; } }
.pdp-index__buy:hover { background: var(--bg); color: var(--fg); }
@media (max-width: 47.99rem) { .pdp-index__buy { min-height: 2.75rem; } }
html:has(.pdp-index) { scroll-padding-top: calc(var(--header-h) + var(--index-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html:has(.pdp-index) { scroll-behavior: smooth; } }

/* ---------- Parts: lead line + detail (A) ---------- */
.pdp-part { padding-top: var(--sp); }
.pdp-part:last-child { padding-bottom: var(--sp); }
.pdp-part__grid { position: relative; display: grid; gap: var(--s3) var(--col-gap); padding-top: var(--s2); }
/* a rule across the grid's content box (the grid is also the .wrap, so a border would run into the gutters) */
.pdp-part__grid::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--fg); }
.pdp-part__num { display: block; margin: 0 0 0.75rem; }
.pdp-part__head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); margin: 0; }
.pdp-part__head .caption { font-size: 0.875rem; margin: var(--s1) 0 0; max-width: 22rem; }
.pdp-part__body { max-width: 42rem; min-width: 0; }
.pdp-part__body > :last-child { margin-bottom: 0; }
.pdp-part__body .lead { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.4; margin-bottom: var(--s3); }
.pdp-part__body h3 {
  font-size: 0.75rem; letter-spacing: var(--track); text-transform: uppercase; line-height: 1.4;
  margin: var(--s5) 0 var(--s2);
}
@media (min-width: 64rem) {
  .pdp-part__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pdp-part__head { grid-column: 1 / span 4; }
  .pdp-part__body { grid-column: 6 / span 7; }
  .pdp-part__wide { grid-column: 1 / -1; }
}
.pdp-part .list-rule > li { padding-block: 0.875rem; }
.pdp-part .ecu-list { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; column-gap: var(--col-gap); }
@media (min-width: 30rem) { .pdp-part .ecu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pdp-part .ecu-list--short { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* Compatibility lists: short ECU names, two columns at every width */
.pdp-part .ecu-list__label { margin: var(--s2) 0 var(--s1); font-size: 0.75rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.pdp-part .ecu-list li { border-top: 1px solid var(--rule); padding-block: 0.75rem; font-weight: 700; }
.pdp-still { margin-top: var(--sp-sm); }
.pdp-still .slot { --ratio: 4 / 3; }
@media (min-width: 48rem) { .pdp-still .slot { --ratio: 16 / 9; } }
.pdp-part figure.slot.slot--wide { margin-top: var(--s4); }

/* Held feature (inserted only when its switch is on) */
.feature-held { border: 1px solid var(--fg); padding: var(--s3); margin-top: var(--s4); }
.feature-held h3 { margin-top: 0 !important; }
.feature-held p { margin: 0; }
.feature-held p + p { margin-top: var(--s2); }

/* Status LED legend */
.block__body > .list-rule:first-child > li:first-child { border-top: 0; padding-top: 0.5rem; }
:is(.pdp-part, .block) table.data { font-size: 1rem; }
:is(.pdp-part, .block) table.data thead th { background: transparent; padding-left: 0; font-size: 0.75rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); border-bottom-color: var(--fg); }
:is(.pdp-part, .block) table.data :is(td, tbody th) { padding-block: 0.8rem; }
.pdp-part .led-table td:first-child { font-weight: 700; width: 48%; }

/* Proof: an empty frame until permission is given */
.pdp-part .notice {
  border: 1px solid var(--rule); aspect-ratio: 4 / 3; display: grid; place-items: center;
  padding: var(--s3); text-align: center; color: var(--muted); font-size: 1rem;
}
@media (min-width: 48rem) { .pdp-part .notice { aspect-ratio: 16 / 9; } }

/* Specifications */
.pdp-part dl.specs > div { padding-block: 0.875rem; gap: 0.25rem var(--col-gap); grid-template-columns: minmax(0, 1fr); }
.pdp-part dl.specs > div:first-child { border-top-color: var(--fg); }
@media (min-width: 48rem) { .pdp-part dl.specs > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.pdp-part dl.specs dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 0.2rem; }

/* Documentation (rendered by site.js from documents.json) */
.pdp-part [data-doc-list] > li { padding-block: var(--s2); }
.pdp-part [data-doc-list] > li:first-child { border-top-color: var(--fg); }
.pdp-part [data-doc-list] .label { display: block; margin-bottom: 0.25rem; letter-spacing: var(--track); }
.pdp-part [data-doc-list] a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }

/* ==========================================================================
   EXPLODED VIEW: reusable component (markup + /assets/js/exploded.js)
     <div class="xv" data-exploded> .xv__stage > .xv__head, .xv__note[data-at=start],
     .xv__layer (one per layer: figure.slot.xv__fig[data-layer] + .xv__label),
     .xv__note[data-at=end], .xv__progress
   Default = static stack (phone, reduced motion, no JS): each layer then its label.
   Desktop with motion: exploded.js adds .is-live, a pinned stage whose layers
   separate with native scroll.
   ========================================================================== */
.xv { --lh: clamp(4.5rem, 12svh, 7.5rem); --gap: clamp(5rem, 16svh, 9.5rem); margin-top: var(--sp-sm); }
.xv__head { margin-bottom: var(--s3) !important; }
.xv__note { max-width: 40rem; margin-bottom: var(--s5); }
.xv__note p { margin-bottom: var(--s1); }
.xv__note p:first-child { font-size: var(--fs-lead); line-height: 1.45; }
.xv__layer { margin-bottom: var(--s5); }
.xv__fig.slot { aspect-ratio: auto; height: var(--lh); width: 100%; border: 1px solid var(--rule); }
.xv__fig.slot::before { content: none; }
.xv__fig .slot__label { padding: 0.25rem var(--s1); font-size: 0.6875rem; }
.xv__fig .slot__label strong { font-size: 0.75rem; }
/* the top layer stays in front when the stack closes up (exploded.js sets --z for any layer count) */
.xv__fig { z-index: var(--z, auto); }
.xv__label { padding-top: var(--s2); max-width: 30rem; }
.xv__label h3 { font-size: var(--fs-h3); margin: 0 0 var(--s1); }
.xv__label p { margin: 0 0 0.35rem; color: var(--muted); }
.xv__num { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--track); color: var(--muted); }
.xv__progress { display: none; }

@media (min-width: 48rem) {
  /* static exploded stack, each layer beside its label */
  .xv__layer, .xv__note { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s6); align-items: center; }
  .xv__note { max-width: none; }
  .xv__note > * { grid-column: 2; }
  .xv__layer { margin-bottom: var(--s3); }
  .xv__fig.slot { justify-self: end; width: min(100%, 32rem); }
  .xv__label { position: relative; padding-top: 0; }
  .xv__label::before { /* leader line from the layer to its label */
    content: ""; position: absolute; top: 50%; right: calc(100% + 0.75rem); width: calc(var(--s6) - 1.5rem); border-top: 1px solid var(--rule);
  }

  /* Live: pinned stage */
  .xv.is-live { height: 440svh; }
  .xv.is-live .xv__stage {
    position: sticky; top: calc(var(--header-h) + var(--index-h));
    height: calc(100svh - var(--header-h) - var(--index-h));
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto minmax(0, 1fr);
    column-gap: var(--s6); padding-block: var(--s3);
  }
  .xv.is-live .xv__head { grid-column: 1 / -1; grid-row: 1; margin: 0 !important; }
  .xv.is-live .xv__layer { display: contents; --y: calc(var(--k, 0) * (0.5rem + var(--e, 0) * var(--gap))); }
  .xv.is-live .xv__fig {
    grid-column: 1; grid-row: 2; align-self: center; justify-self: center; margin: 0;
    transform: translate3d(0, var(--y), 0); will-change: transform;
    transition: opacity 0.6s var(--ease);
  }
  .xv.is-live.has-now .xv__layer:not(.is-now) .xv__fig { opacity: 0.4; }
  .xv.is-live .xv__label {
    grid-column: 2; grid-row: 2; align-self: center;
    transform: translate3d(0, var(--y), 0); opacity: 0;
    transition: opacity 0.7s var(--ease);
  }
  .xv.is-live .xv__label::before { content: none; }
  .xv.is-live .xv__layer.is-on .xv__label { opacity: 0.45; }
  .xv.is-live .xv__layer.is-now .xv__label { opacity: 1; }
  .xv.is-live .xv__label p { transition: opacity 0.7s var(--ease); }
  .xv.is-live .xv__layer:not(.is-now) .xv__label p:not(.xv__num) { opacity: 0; } /* earlier layers keep the name; the detail steps back */
  .xv.is-live .xv__note {
    display: block; grid-column: 2; grid-row: 2; align-self: center; margin: 0;
    opacity: 0; transform: translate3d(0, 1rem, 0);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .xv.is-live .xv__note.is-on { opacity: 1; transform: none; }
  .xv.is-live .xv__progress {
    display: block; grid-column: 1; grid-row: 2; justify-self: start; align-self: stretch;
    width: 1px; background: var(--grey-90); margin-block: var(--s4); position: relative;
  }
  .xv.is-live .xv__progress span {
    display: block; height: 100%; background: var(--fg);
    transform: scaleY(var(--p, 0)); transform-origin: 50% 0;
  }
}

/* ==========================================================================
   Reveals (home). CSS scroll-driven where supported; /assets/js/home.js adds
   .rv--wait as a fallback for below-the-fold elements, removed in view.
   ========================================================================== */
@keyframes pi-rise { from { opacity: 0; transform: translate3d(0, 1.5rem, 0); } to { opacity: 1; transform: none; } }
@keyframes pi-settle { from { opacity: 0.2; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes pi-exit { to { opacity: 0; transform: translate3d(0, -2.5rem, 0); } }

@media (prefers-reduced-motion: no-preference) {
  .rv, .reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .rv--wait { opacity: 0; transform: translate3d(0, 1.5rem, 0); }
  .reveal.rv--wait { opacity: 0.2; transform: scale(0.96); }

  @supports (animation-timeline: view()) {
    .rv { animation: pi-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .reveal { animation: pi-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .hero__in { animation: pi-exit linear both; animation-timeline: view(); animation-range: exit 15% exit 95%; }
    @media (max-width: 47.99rem) {
      .xv__layer > *, .xv__note { animation: pi-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    }
  }
}

/* ---------- Print ---------- */
@media print {
  .pdp-index, .xv__progress { display: none !important; }
  .xv.is-live { height: auto; }
  .pdp__label { position: static; }
}
:is(.page-home, .page-products, .page-product) .brand { min-height: 44px; }
:is(.page-home, .page-products, .page-product) .site-footer { border-top: 1px solid var(--rule); }

/* Render gallery: eight views as buttons; the chosen one shows in the large plate. */
.pdp__thumbs--renders { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pdp__thumb { display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--rule); background: var(--white); cursor: pointer; min-height: 44px; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp__thumb[aria-pressed="true"] { outline: 2px solid var(--fg); outline-offset: 2px; }
.pdp__thumb:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* In the Box: list, then the to-scale size outline (stand-in for the size render). */
.in-box li { padding-block: var(--s1); }
.scale-fig { margin: var(--s4) 0 0; max-width: 34rem; }
.scale-fig__svg { width: 100%; height: auto; display: block; color: var(--fg); }
.scale-fig__card { fill: none; stroke: var(--grey-65); stroke-width: 0.5; stroke-dasharray: 2 1.5; }
.scale-fig__enc { fill: none; stroke: currentColor; stroke-width: 0.7; }
.scale-fig__txt { font: 3.6px var(--font); fill: var(--muted); }

/* ---------- Design pass (2026-11-07): key figures, one-claim chapter, quieter parts ---------- */
.key-strip { border-top: 1px solid var(--rule); }
.key-strip__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--col-gap); margin-block: 0; padding-block: var(--s3) var(--s4); }
@media (min-width: 48rem) { .key-strip__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.key-strip__grid > div { border-top: 1px solid var(--fg); padding-top: var(--s2); margin-top: var(--s3); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.35rem; }
.key-strip__grid dt { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.key-strip__grid dd { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

.feature-chapter { background: #000000; color: #ffffff; border-block: 1px solid var(--rule); margin-top: var(--sp); }
.feature-chapter__in { min-height: min(92vh, 56rem); display: flex; flex-direction: column; justify-content: center; padding-block: var(--sp); }
.feature-chapter__mark { color: var(--muted); margin: 0 0 var(--s3); }
.feature-chapter__title { font-size: var(--t-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch; margin: 0 0 var(--s4); }
.feature-chapter__claim { font-size: var(--t-statement); line-height: 1.25; letter-spacing: -0.01em; max-width: 30ch; margin: 0 0 var(--s4); }
.feature-chapter__line { color: var(--muted); max-width: 46ch; margin: 0 0 var(--s2); }
.feature-chapter__ecus { font-weight: 700; max-width: 46ch; margin: 0; padding-top: var(--s2); border-top: 1px solid var(--rule); }

.pdp-part--statement .t-statement { max-width: 32ch; }
/* Overview: no visible heading (the h2 is for screen readers and search), so the statement takes the full width. */
.pdp-part--statement .pdp-part__head { position: absolute; }
.pdp-part--statement .pdp-part__body { grid-column: 1 / -1; max-width: none; }
.pdp-part--statement .pdp-part__body > .lead { max-width: 42rem; }
.pdp-part__aside { margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--rule); color: var(--muted); }
.pdp-part__aside .text-link { color: var(--fg); margin-left: 0.25em; }

/* Cells (vision board: Teenage Engineering): equal cells with a 1px top rule, no cards or shadows. */
.page-head--display h1 { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; }
.page-company .page-head--display h1, .page-quality .page-head--display h1 { max-width: 22ch; }  /* sentence headlines */
.section-title { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s4); }
.cells { display: grid; gap: var(--s4) var(--col-gap); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.cells--2 { margin-top: 0; }
@media (min-width: 48rem) { .cells--2, .cells--3 { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } .cells--2 { --n: 2; } .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cells--steps { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); } }
@media (min-width: 64rem) { .cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cell { border-top: 1px solid var(--fg); padding-top: var(--s2); }
.cell h3, .cell .h3 { font-size: 1.125rem; margin: 0 0 var(--s1); }
.cell p { margin: 0; color: var(--muted); }
.cell--lead p { color: var(--fg); font-size: 1.0625rem; }
.cell__num { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: var(--track); color: var(--muted); margin-bottom: var(--s1); }
