/* MODU product page (geometry.html): layout, type and gallery styles.
   The viewer rulers live in visor-rulers.css. Measured font facts behind the type formulas are
   in docs/typography-reference.txt. Behaviour notes and measurements: docs/CLAUDE_MOBILE_CHANGES.md
   and the later reports listed in docs/CLAUDE_FINAL_AUDIT.md. */

/* ---------------------------------------------------------------- Fonts */

@font-face{font-family:Maxi;src:url('assets/ABCMaxiSharpMonoEdu-Light.woff2') format('woff2');font-display:swap}
@font-face{font-family:MatrixRaster;src:url('assets/MatrixMonoRaster-Regular.ttf') format('truetype');font-weight:400;font-display:swap}

/* ---------------------------------------------------------------- Tokens */

:root{
  color-scheme:dark;
  /* Palette. */
  --background:#000;
  --panel:#1a1a1a;
  --edge:#333333;
  --text:#fff;
  --label:#ccc;
  --marquee:#432622;
  /* Editorial copy before the scroll reveal; text-scroll-reveal.js fades letters from this
     value (51) to white. */
  --copy-hidden:#333333;
  --radius:24px;
  --gutter:36px;
  /* H, the band height shared by the header and the marquee: 72px on desktop, scaling down on
     narrow screens so the whole header shrinks together instead of overlapping. */
  --header:calc((min(88px,calc((100vw - 48px) / 6.6)) + 56px) / 2);
  --ticker:var(--header);
  --header-inset:24px;
  /* Shared type scale: font-size = H × visible fraction / measured MODU ink height
     (Maxi .72em, Matrix .68em) × --type-scale. At H = 72px and scale 1 these are exactly the
     accepted desktop sizes: 100 / 50 / 37.5 / 25 / 26.4706px. Phones use a smaller scale
     (Responsive section); spacing (H, G) does not change with it. */
  --type-scale:1;
  --type-editorial:calc(var(--header) / .72 * var(--type-scale));
  --type-title:calc(var(--header) * .5 / .72 * var(--type-scale));
  --type-caption:calc(var(--header) * .375 / .72 * var(--type-scale));
  --type-value:calc(var(--header) * .25 / .72 * var(--type-scale));
  --type-label:calc(var(--header) * .25 / .68 * var(--type-scale));
  /* Finite phone/tablet intro: scroll distance over which the animation plays, in screen heights.
     The rest of the intro geometry is derived from it. Fast-swipe options for this value are
     four-screen trial approved for comparison on 2026-11-21; previously two. */
  --intro-scrub-screens:4;
}

/* ---------------------------------------------------------------- Base */

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--header)}
body{margin:0;background:var(--background);color:var(--text);font-family:Maxi,monospace}
a,button{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
a:focus-visible,button:focus-visible{outline:2px solid #fff;outline-offset:5px}

/* ---------------------------------------------------------------- Header */

.header{position:fixed;inset:0 0 auto;z-index:100;height:var(--header);background:var(--panel);display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:0 var(--header-inset)}
/* Reserve the original header height inside the intro; the one live header is fixed
   outside its sticky/clipped container so it remains visible through the gallery. */
.header-space{height:var(--header);flex:none}
/* The DOM order (cat, logo, cart) is also the visual and Tab order, so the three columns
   fill by auto-placement. Each target fills the band height and is at least 44px wide. The cat and cart artwork keep
   their edge position; the target grows toward the centre. */
.header > *{display:grid;place-items:center;min-width:44px;min-height:0;height:100%;background:none;border:0;padding:0}
.header-gallery{justify-self:start;justify-items:start}
.header-home{justify-self:center}
.header-cart{justify-self:end;justify-items:end}
/* Count-to-icon gap equals the icon's outer header inset. Keep the icon and logo fixed.
   Maxi count is 50% of its original artwork-matching size; narrow headers cap it to
   the available space beside the centred logo. The cart dialog is a demonstration checkout. */
.header > .header-cart{display:flex;align-items:center;justify-content:flex-end;gap:var(--header-inset)}
.cart-count{font-family:Maxi,monospace;font-size:min(calc(var(--header) * .25 / .72),calc((100vw - var(--header) * 2.103515625 - var(--header-inset) * 4 - var(--header) * 1.25) / 4 / 1.24));line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.cart-count[hidden]{display:none}
.header-cart .cart{flex:none}
/* Visible artwork uses half the band height, without asset padding.
   Logo: viewBox 3231 × 768, so width = H × .5 × 3231 / 768. Cat: cropped artwork ratio. */
.logo{display:block;height:calc(var(--header) * .5);width:calc(var(--header) * 2.103515625)}
.cat{display:block;height:calc(var(--header) * .5);width:calc(var(--header) * .433673546)}
.cat img{display:block;width:100%;height:100%}
.cart{height:calc(var(--header) * .5);width:calc(var(--header) * .5)}

/* ---------------------------------------------------------------- Viewer */

/* Exact 16:9 stage, limited by both viewport dimensions; no cropping.
   The 1px transparent border is kept on purpose: removing it would change the canvas size
   (finding E10, cleanup plan step 2.7). */
/* Desktop loop on a touch screen: one-finger drags go to geometry-loop.js, which scrubs on
   vertical drags; two-finger pinch-zoom stays with the browser. Mouse input is not affected.
   The finite phone/tablet journey overrides touch-action below (native vertical pan). */
.viewer{position:relative;width:min(100%,calc((100svh - var(--header) - var(--ticker)) * 16 / 9));aspect-ratio:16/9;margin:0 auto;background:#000;border:1px solid transparent;overflow:hidden;touch-action:pinch-zoom}
.viewer canvas{display:block;width:100%;height:100%;position:absolute;inset:0}
.viewer:focus-visible{outline:1px solid #aaa;outline-offset:-2px}
#status{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:14px}

/* ---------------------------------------------------------------- Intro (header, viewer, marquee) */

/* Desktop wrappers generate no boxes. The finite phone/tablet journey below uses a sticky stage. */
.intro,.intro-stage{display:contents}

/* ---------------------------------------------------------------- Marquee */

.marquee{height:var(--ticker);background:var(--marquee);border-block:1px solid transparent;overflow:hidden;display:flex;align-items:center}
.marquee-track{display:flex;width:max-content;visibility:hidden;will-change:transform}
/* Matrix MODU outlines span 680/1000em, so visible letters fill half the band height.
   The separator gap subtracts the font's 35/1000em side bearing (also used in marquee.js). */
.marquee-run{--separator-gap:calc(20px - .035em);display:flex;gap:var(--separator-gap);padding-right:var(--separator-gap);flex-shrink:0;font-family:MatrixRaster,monospace;font-weight:400;font-size:calc(var(--ticker) * .5 / .68);line-height:1;white-space:nowrap;color:var(--text)}
.marquee-run span{display:inline-flex;align-items:center;gap:var(--separator-gap)}
.marquee-run span::after{content:'';display:block;flex:none;width:20px;height:1px;background:currentColor}
.marquee-run:last-child span:last-child::after{visibility:hidden}

/* ---------------------------------------------------------------- Gallery */

/* G (--gap) is the gallery spacing unit: 36px on desktop, H/2 on phones. */
main{--gap:36px;padding:var(--gap) var(--gutter) 0;container-type:inline-size}
/* main receives focus (tabindex=-1) when the viewer is left with Escape, so the next Tab starts
   in the gallery. It is a landing point, not a control, so it shows no focus ring. */
main:focus,#in-the-box:focus{outline:none}
/* Cover the previous panel's fractional-pixel edge after native anchor rounding. */
#in-the-box{scroll-margin-top:-1px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)}
/* Rounded panels with a 2px inset outline, which keeps dimensions and corner radius.
   Corner motif geometry is shared with the keycap captions, which must end above it. */
.panel{position:relative;background:var(--panel);border-radius:var(--radius);box-shadow:inset 0 0 0 2px var(--edge);overflow:hidden;--motif-inset:24px;--motif-size:28px}
/* Nine 4px circles, centres 12px apart: a 28px square motif. */
.panel::after{content:'';position:absolute;right:var(--motif-inset);bottom:var(--motif-inset);width:var(--motif-size);height:var(--motif-size);pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='%23777777'%3E%3Ccircle cx='2' cy='2' r='2'/%3E%3Ccircle cx='14' cy='2' r='2'/%3E%3Ccircle cx='26' cy='2' r='2'/%3E%3Ccircle cx='2' cy='14' r='2'/%3E%3Ccircle cx='14' cy='14' r='2'/%3E%3Ccircle cx='26' cy='14' r='2'/%3E%3Ccircle cx='2' cy='26' r='2'/%3E%3Ccircle cx='14' cy='26' r='2'/%3E%3Ccircle cx='26' cy='26' r='2'/%3E%3C/g%3E%3C/svg%3E")}

/* Product images. The outline is redrawn above the opaque renders. */
.product-image::before{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit;box-shadow:inset 0 0 0 2px var(--edge);pointer-events:none}
/* height:auto overrides the img height attribute, so the artwork keeps its own ratio. */
.product-image img{display:block;width:100%;height:auto}
/* Overview: fill the 21:9 panel; the centred crop removes only the render's black margins. */
.wide{aspect-ratio:21/9}
.wide img{height:100%;object-fit:cover}
/* Exploded view and box contents: transparent artwork kept at its 2560 × 900 proportions. */
.exploded-image,.box{aspect-ratio:128/45}
/* Product prices occupy the footer of this panel; keep its corner clear for Included. */
#box-contents::after{content:none}

/* Keycap cards. */
.keycap-image{display:flex;flex-direction:column}
.keycap-image img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;object-position:center}
.keycap-stage{position:relative;aspect-ratio:4/3;flex:none}
.keycap-stage img{pointer-events:none;transform:scale(1);transition:transform 180ms ease-out}
/* The square render fills the stage height; its visible keycap fills 50% of that square. */
.keycap-hitbox{position:absolute;z-index:1;left:31.25%;top:25%;width:37.5%;aspect-ratio:1;border:0;padding:0;background:transparent;touch-action:manipulation}
:root[data-input="cursor"] .keycap-hitbox:hover + img{transform:scale(1.1)}
:root[data-input="cursor"] .keycap-hitbox:focus-visible + img{transform:scale(1.1)}
/* Keep one semantic button; on touch it covers its whole card, including the caption. */
:root[data-input="touch"] .keycap-stage{position:static}
:root[data-input="touch"] .keycap-hitbox{inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:inherit}

/* Keycap captions. Wide cards: the text column ends at 50% of the card, inset G, and the type
   scales with the card so lines keep the desktop length (about 11 characters): 5.7cqi = 37.5px at
   the 1440 reference card (658px), never below the 25% step.
   Narrow cards (≤ 420px): a 50% column can no longer hold "navigation," (11 characters) at the
   25% step (11 × .62em × 25px + G = 207px, × 2 ≈ 420px), so the caption uses the full card width
   with a G/2 side inset at the 25% step. Phones (≤ 600px) always fall in this case. Full-width
   text would run into the corner motif, so its last line ends G/4 above the motif instead of
   G/2 above the card edge.
   Hyphenation: hyphens are used only when the longest caption word, "navigation," (11 characters),
   no longer fits one line. In caption ems that is 11 × .62em + two G/2 insets, where
   G/2 = H/4 = .72em / --type-scale at the 25% step. With the phone scale of .5 that is
   6.82em + 2.88em = 9.7em of card width, i.e. phones narrower than about 188px, so in practice
   never (scale .8: 8.62em, about 293px; scale 1: 8.26em, about 390px). The rule sits in the phone block because G = H/2 only there. The
   container's font-size is set to the caption step so the query can be written in those ems. The three words
   longer than a 320px line (functions, shortcuts, navigation) carry soft hyphens (&shy;); with
   hyphens:manual the result is the same on every browser and never depends on a hyphenation
   dictionary (hyphens:auto). Everywhere else hyphens:none ignores them, so wider cards and desktop
   break exactly as before. overflow-wrap stays as the last-resort fallback below 320px. */
.keycap-image{container:keycap / inline-size;font-size:var(--type-value)}
.keycap-caption{width:50%;margin:auto 0 0;padding:0 0 var(--gap) var(--gap);font-size:clamp(var(--type-value),calc(5.7cqi * var(--type-scale)),var(--type-caption));line-height:1.6;overflow-wrap:break-word;hyphens:none}
.keycap-caption strong{font-weight:400}
/* Half-width spaces/punctuation only in product copy and specification values.
   Headings, editorial text, cart and Matrix typography keep their default width. */
.keycap-caption,.box-name,.spec-row dd{font-feature-settings:"ss08" 1}
.keycap-caption .caption-ending{white-space:nowrap}
@container keycap (max-width:420px){.keycap-caption{width:auto;padding:0 calc(var(--gap) / 2) calc(var(--motif-inset) + var(--motif-size) + var(--gap) / 4);font-size:var(--type-value)}}

/* Editorial copy scales with the gallery width so it keeps the desktop line structure
   (about 5 lines of 18–19 characters): 7.4cqi = 100px at the 1440 reference content width
   (1352.67px with a classic scrollbar), so every viewport ≥ 1440px keeps 100px. It never drops
   below the title step. The fluid term is multiplied by --type-scale too, so the phone scale
   reduces every phone width by the same factor (50%).
   ink-spacing (spec-spacing.js) adjusts the block padding so the visible ink sits G from the
   panels above and below. */
.text-space{padding:var(--gap) 0}
.feature-copy{margin:0;font-size:clamp(var(--type-title),calc(7.4cqi * var(--type-scale)),var(--type-editorial));line-height:1.3;color:var(--copy-hidden);overflow-wrap:break-word}
/* Visually hidden text for assistive technology (used by the reveal and keycap scripts). */
.reveal-accessible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Section titles share the gallery spacing: their padding states G above and below the visible
   ink, and spec-spacing.js corrects it for the font's invisible ascender and descender space, as
   it does for the editorial blocks. (Until 2026-11-20 this used hand-tuned line-heights and
   offsets, which were only exact at some sizes: ±0.5-0.6px.) */
.section{display:flow-root}
.section > h2{margin:0;padding:var(--gap) 0;text-align:center}
/* line-height .94 only matters when "Technical specifications" wraps (601-1000px): it keeps the
   approved line pitch of the two-line title. */
main h2{font-size:var(--type-title);font-weight:400;line-height:.94;overflow-wrap:anywhere}

/* Specifications. spec-spacing.js sets --spec-column-gap to one row interval and adjusts the
   row padding to visible ink; the 55px fallback applies only without JavaScript. */
.spec-list{margin:0;border-top:1px solid var(--edge);display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:var(--spec-column-gap,55px)}
.spec-row{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:baseline;padding:calc(var(--gap) / 2) 0;border-bottom:1px solid var(--edge)}
.spec-row dt{font-family:MatrixRaster,monospace;font-size:var(--type-label);line-height:1.4;color:var(--label)}
.spec-row dd{margin:0;font-size:var(--type-value);line-height:1.6;overflow-wrap:anywhere}
.spec-row dd a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}

/* ---------------------------------------------------------------- Footer and dialog */

/* G above and below the visible footer logo. */
footer{display:grid;place-content:center;justify-items:center;padding:var(--gutter) 24px}
/* Checkout preview uses the existing title/value type steps and H/2, H/4 spacing.
   The 12.5px floor is the existing half-value size, keeping small-screen amounts readable. */
#cart-dialog{--cart-gap:calc(var(--header) * .5);background:rgb(10% 10% 10%);color:var(--text);border:1px solid var(--edge);border-radius:var(--radius);padding:var(--cart-gap);width:560px;max-width:calc(100% - var(--gutter) * 2);max-height:calc(100dvh - var(--header-inset) * 2);overflow:auto;font-family:Maxi,monospace;font-size:max(12.5px,var(--type-value));line-height:1.4}
#cart-dialog::backdrop{background:rgb(0 0 0 / 60%)}
#cart-dialog h2{font-size:var(--type-title);line-height:1.2;font-weight:400;margin:0 0 calc(var(--cart-gap) / 2)}
#cart-dialog p{margin:0 0 calc(var(--cart-gap) / 2)}
.cart-items{list-style:none;padding:0;margin:calc(var(--cart-gap) / 2) 0}
.cart-items:empty{display:none}
.cart-row{display:flex;justify-content:space-between;align-items:baseline;gap:calc(var(--cart-gap) / 2);padding:calc(var(--cart-gap) / 8) 0}
.cart-row > :first-child{min-width:0}
.cart-row dd{margin:0}
.cart-amount{font-family:MatrixRaster,monospace;font-size:max(calc(12.5px * .72 / .68),var(--type-label));white-space:nowrap;flex:none;font-variant-numeric:tabular-nums}
.cart-summary{margin:calc(var(--cart-gap) / 2) 0;border-top:1px solid var(--edge);padding-top:calc(var(--cart-gap) / 2)}
.cart-total{border-top:1px solid var(--edge);margin-top:calc(var(--cart-gap) / 2);padding-top:calc(var(--cart-gap) / 2)}
#cart-dialog .cart-actions{display:flex;justify-content:space-between;align-items:center;gap:calc(var(--cart-gap) / 2);margin-top:calc(var(--cart-gap) / 2)}
#cart-dialog button{background:none;border:1px solid var(--label);padding:calc(var(--cart-gap) / 4) calc(var(--cart-gap) / 2);min-height:44px}


/* ---------------------------------------------------------------- Responsive */

/* Phones use the shared band height as their spacing reference: G = H/2. Type sizes come from
   the shared scale above, so no per-element size overrides are needed here. */
@media(max-width:600px){
  /* Phone type at 50% of the original (desktop-formula) sizes, approved on 2026-11-20. It
     changes only type sizes, not spacing, icons, header or marquee. Set on :root because the
     type tokens are computed there. */
  :root{--type-scale:.5;--gutter:calc(var(--header) * .5);--radius:12px}
  main{--gap:calc(var(--header) * .5)}
  #spec-title{font-size:min(var(--type-title),calc(100cqi / 8.7));overflow-wrap:normal}
  /* Keep the corner motif proportional to the smaller panels. */
  .panel{--motif-inset:12px;--motif-size:14px}
  .panel::after{background-size:100% 100%}
  @container keycap (max-width:9.7em){.keycap-caption{hyphens:manual}}
}
/* Finite phone/tablet intro (data-journey="finite", set by interaction-mode.js from the device
   type, not the width): the header space, the viewer and the marquee fill one screen and stay
   fixed (sticky) while the page scrolls through --intro-scrub-screens extra screen heights;
   geometry-loop.js maps that scroll to the animation frames, from the first to the last. Then
   the gallery scrolls in, in the same gesture. Nothing intercepts touch: it is the page's own
   scroll. Screen height: the dynamic viewport (dvh) so the marquee stays at the visible bottom
   while the browser bars show and hide; the scroll distance uses the stable small viewport (svh),
   so frames stay at the same scroll positions. vh is the fallback for older browsers. */
:root{--intro-screen:100vh;--intro-unit:100vh}
@supports (height:100dvh){:root{--intro-screen:100dvh;--intro-unit:100svh}}
:root[data-journey="finite"] .intro{display:block;position:relative;height:calc(var(--intro-screen) + var(--intro-scrub-screens) * var(--intro-unit))}
:root[data-journey="finite"] .intro-stage{display:flex;flex-direction:column;position:sticky;top:0;height:var(--intro-screen);overflow:hidden;background:#000}
:root[data-journey="finite"] .intro-stage > .header-space,:root[data-journey="finite"] .intro-stage > .marquee{flex:none}
/* The video is centred in the space left between header and marquee, never cropped or
   distorted; the remaining space is black. Orientation selects 9:16 (portrait) or 16:9
   (landscape), independently of the active pointer. */
:root[data-journey="finite"] .viewer-stage{flex:1 1 0;min-height:0;container-type:size;display:flex;align-items:center;justify-content:center}
:root[data-journey="finite"] .viewer{width:min(100cqw,100cqh * var(--viewer-width-ratio));aspect-ratio:var(--viewer-aspect);margin:0;touch-action:pan-y pinch-zoom}

:root[data-journey="finite"]{--viewer-width-ratio:calc(16 / 9);--viewer-aspect:16/9}
:root[data-journey="finite"][data-sequence-aspect="portrait"]{--viewer-width-ratio:calc(9 / 16);--viewer-aspect:9/16}

/* Stack each specification label above its details when the details column would hold fewer
   than about 30 characters: label column (MODULE CONTROL SURFACE, 22 × .6em of 26.47px ≈ 349px)
   + column gap (one row interval ≈ 56px) + 30 × .62em of 25px (465px) ≈ 870px of gallery width.
   row-gap states the intended visible label-to-details distance (G/4); spec-spacing.js turns it
   into an ink-to-ink distance, as it already does for the row padding. */
@container (max-width:880px){
  .spec-list{grid-template-columns:minmax(0,1fr)}
  .spec-row{grid-template-columns:minmax(0,1fr);row-gap:calc(var(--gap) / 4)}
  .spec-row dt{overflow-wrap:anywhere}
}
/* Reduced motion: the finite intro is one still screen (first frame) with no scroll distance;
   no smooth scrolling and no keycap zoom transition. */
@media(prefers-reduced-motion:reduce){
  :root[data-journey="finite"]{--intro-scrub-screens:0}
  html{scroll-behavior:auto}
  .keycap-stage img{transition:none}
}

/* Same full-page band as the intro: cancel the gallery gutters, keep G above.
   Both marquees share their styling and controller; data-direction reverses the lower one. */
.marquee-bottom{margin-top:var(--gap);margin-inline:calc(-1 * var(--gutter))}

/* Each drawing is a separate, tightly bounded SVG. Desktop percentages reproduce the
   original 2560x900 composition, including its stroke; no paths have been rescaled in files. */
.box-layout,.box-item{display:contents}
.box-item{margin:0}
.box .box-drawing{position:absolute;left:var(--art-x);top:var(--art-y);width:var(--art-width);height:auto}
.box-label{position:absolute;top:9.2%;transform:translateX(-50%);white-space:nowrap;font-family:Maxi,monospace;font-weight:400;color:var(--text);font-size:var(--type-title);line-height:1;text-align:center}
.box-name{display:block}
.box-detail{position:absolute;top:0;transform:translateX(-50%);font-family:MatrixRaster,monospace;font-size:calc(var(--ticker) * .5 / .68);line-height:1;white-space:nowrap;text-align:center}
.box-detail-text{display:inline-block}

/* Phone/tablet classification is shared with the intro, including landscape and mouse use.
   G is the symmetric frame-to-art inset and row gap. The keyboard spans the full first row;
   the three accessories share the second row. Their SVG aspect ratios remain intact. */
:root[data-journey="finite"] .box{aspect-ratio:auto;padding:var(--gap)}
:root[data-journey="finite"] .box-layout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap);container-type:inline-size}
:root[data-journey="finite"] .box-item{display:flex;flex-direction:column;align-items:center;min-width:0}
:root[data-journey="finite"] .box-keyboard{grid-column:1 / -1}
:root[data-journey="finite"] .box-label{position:relative;left:auto!important;top:auto!important;transform:none;width:100%;height:calc(1em + var(--gap));flex:none}
:root[data-journey="finite"] .box .box-drawing{position:static;width:auto;max-width:100%;height:60cqi;object-fit:contain}
:root[data-journey="finite"] .box-keyboard .box-drawing{width:100%;height:auto}
/* Same drawing scale as the modules, preserving the cable's slightly shorter length. */
:root[data-journey="finite"] .box-usb-c .box-drawing{height:calc(60cqi * 564.4466 / 571.1246)}

/* Visual-only SVG selection: the white silhouette follows the existing outer contour. */
.box .box-choice{display:block;padding:0;border:0;background:transparent;line-height:0;touch-action:manipulation}
.box .box-choice img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}

/* Prices now live below each independent SVG; the lettering matches MODU in the marquee. */
:root[data-journey="finite"] .box-detail{position:relative;left:auto!important;transform:none;top:auto;width:100%;height:calc(1em + var(--gap));flex:none}

/* Portable box typography: names start at 75% of the heading size. Details use the
   specification-label Matrix scale (same visible height as specification values).
   Fit both to one accessory column minus G/2 breathing room. The longest words are
   8 glyphs: Maxi MODULE 1 = 4.96em, Matrix Included = 4.8em. All four share each scale. */
:root[data-journey="finite"] .box-label{font-size:min(calc(var(--type-title) * .75),calc(((100cqi - 2 * var(--gap)) / 3 - var(--gap) / 2) / 4.96))}
:root[data-journey="finite"] .box-detail{font-size:min(var(--type-label),calc(((100cqi - 2 * var(--gap)) / 3 - var(--gap) / 2) / 4.8))}

/* Pointer-opened dialogs keep focus without the keyboard-only outer ring. */
#cart-dialog[data-pointer-focus] button:focus-visible{outline:none}
