/* ==========================================================================
   Stone Tech styles.css
   Concept site by Zachary's Web Design. Direction "Quarried silicon" (DESIGN.md).
   Markup contract: .design/stone-tech/COMPONENTS.md

   Contents
    0  Fonts
    1  Tokens (Basalt default, Granite light)
    2  Reset and base
    3  Type scale
    4  Layout: wrap, grid, sections
    5  Ground and texture: grain, saw-face arcs, strata, arris
    6  Icons, visually hidden, skip link, live region
    7  Buttons: kerf, block, text link, icon, link button, segmented tabs
    8  Concept bar
    9  Header, nav disclosure panels, theme menu, Order button
   10  Menu sheet and order drawer (dialogs)
   11  Set bar
   12  Depth marks
   13  Page head and breadcrumb
   14  Home hero (specimen cut)
   15  Image bands, feature band, line slabs, built-for tiles
   16  Etched marks, Sample tag
   17  Product tile
   18  Strata lineup ladder
   19  Spec tiles and full specification disclosure
   20  Disclosure, FAQ accordion
   21  Quotes, rating, award plaques, certificates, compliance marks
   22  Counters band
   23  Partner marquee and partner records
   24  Core sample, timeline
   25  Hex map, office records, factory regions, map embed
   26  Driver finder, result slab, driver cuts
   27  News: lead, records, filters
   28  Forms: fields, checks, error summary, kerf progress, confirmation
   29  Quantity stepper, cart lines, order summary, order toast
   30  Shop: filter rail, sort
   31  Legal document column
   32  404 empty core
   33  Next layer row
   34  Footer
   35  Skeletons
   36  Keyframes
   37  Reduced motion
   38  Print
   ========================================================================== */


/* 0  Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* Arial tuned to Geologica's width and vertical metrics (measured with fontTools), so the swap does not shift layout */
@font-face {
  font-family: "Geologica Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 106.12%;
  ascent-override: 91.88%;
  descent-override: 25.91%;
  line-gap-override: 0%;
}


/* 1  Tokens --------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Basalt (dark, default) */
  --ground: #151917;
  --slab: #1F2421;
  --kerf: #6B7470;
  --quartz: #E5E8E3;
  --flint: #A2AAA5;
  --kyanite: #7EABD8;
  --kyanite-hover: #9DC0E4;
  --on-kyanite: #151917;
  --jasper: #EE8B7C;
  --photo-black: #101412;

  /* Derived surfaces and edges */
  --arris: inset 0 1px 0 color-mix(in oklab, var(--quartz) 9%, transparent);
  --hairline: color-mix(in oklab, var(--kerf) 45%, transparent);   /* decorative group divider */
  --etch-hi: color-mix(in oklab, var(--quartz) 8%, transparent);    /* etched mark lower lip */
  --engrave: 0 1px 0 color-mix(in oklab, var(--quartz) 10%, transparent), 0 -1px 0 var(--ground);
  --scrim: color-mix(in oklab, var(--ground) 72%, transparent);
  --skel: color-mix(in oklab, var(--kerf) 30%, transparent);
  --grain-opacity: .06;
  --grain-blend: soft-light;

  /* Type */
  --font-sans: "Geologica", "Geologica Fallback", Arial, sans-serif;
  --font-mono: "Martian Mono", "Courier New", monospace;
  --t-display: clamp(2.5rem, 1.6rem + 2.8vw, 4rem);
  --t-heading: clamp(1.875rem, 1.5rem + 1.25vw, 2.75rem);
  --t-title: 1.5rem;
  --t-lead: clamp(1.125rem, 1.05rem + .35vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;

  /* Spacing (4px base) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Layout */
  --max: 1320px;
  --measure: 66ch;
  --gutter: 16px;
  --gap: 16px;
  --section: var(--s8);
  --chapter: 80px;
  --concept-h: 32px;
  --header-h: 56px;
  --setbar-h: 52px;
  --sticky-h: var(--header-h);

  /* Motion (GSAP power curves as cubic-beziers) */
  --ease-out: cubic-bezier(.33, 1, .68, 1);        /* power2.out */
  --ease-out-3: cubic-bezier(.25, 1, .5, 1);       /* power3.out */
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);     /* power3.inOut */
  --t-hover: 160ms;
  --t-press: 90ms;
  --t-menu: 280ms;

  /* Layers */
  --z-setbar: 9;
  --z-header: 10;
  --z-depth: 8;
  --z-menu: 30;
  --z-dialog: 40;
  --z-grain: 60;
  --z-skip: 70;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --gap: 20px; --header-h: 64px; --section: var(--s9); }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --gap: 24px; --chapter: var(--s10); }
}

/* Set pages: the sticky set bar adds to the scroll offset */
:root:has(.setbar) { --sticky-h: calc(var(--header-h) + var(--setbar-h)); }

/* Granite (light): follows the device unless Basalt is chosen, or is chosen outright */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="basalt"]) {
    color-scheme: light;
    --ground: #E1E2DD;
    --slab: #EDEEE9;
    --kerf: #717875;
    --quartz: #191C1B;
    --flint: #4A514F;
    --kyanite: #2A5C8B;
    --kyanite-hover: #204A72;
    --on-kyanite: #EDEEE9;
    --jasper: #A3392A;
    --arris: inset 0 -1px 0 color-mix(in oklab, var(--kerf) 35%, transparent);
    --etch-hi: rgb(248 249 246 / .75);
    --grain-opacity: .10;
    --grain-blend: multiply;
  }
}
:root[data-theme="granite"] {
  color-scheme: light;
  --ground: #E1E2DD;
  --slab: #EDEEE9;
  --kerf: #717875;
  --quartz: #191C1B;
  --flint: #4A514F;
  --kyanite: #2A5C8B;
  --kyanite-hover: #204A72;
  --on-kyanite: #EDEEE9;
  --jasper: #A3392A;
  --arris: inset 0 -1px 0 color-mix(in oklab, var(--kerf) 35%, transparent);
  --etch-hi: rgb(248 249 246 / .75);
  --grain-opacity: .10;
  --grain-blend: multiply;
}


/* 2  Reset and base ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--sticky-h);   /* motion.css zeroes this while Lenis runs (html.lenis) */
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--quartz);
  font: 400 var(--t-body)/1.62 var(--font-sans);
  font-variation-settings: "SHRP" 0;
  font-synthesis: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

[hidden] { display: none !important; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; }
ul[class], ol[class] { list-style: none; }

img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
img, video { background: var(--photo-black); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--s6) 0; }

::selection { background: var(--kyanite); color: var(--on-kyanite); }

:focus-visible { outline: 2px solid var(--kyanite); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

/* Tabular numbers on every figure a reader compares */
.price, .spec, .count, .qty, .total, time, .tel, .tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Text links */
a {
  color: var(--kyanite);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-hover) var(--ease-out);
}
a:hover { color: var(--kyanite-hover); text-decoration-thickness: 2px; }
a:active { color: var(--quartz); }

.link-ext .icon { display: inline-block; width: 16px; height: 16px; margin-left: 4px; vertical-align: -2px; }


/* 3  Type scale (6 steps, nothing else) ---------------------------------- */

h1, .t-display {
  font-size: var(--t-display);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-variation-settings: "SHRP" 100;
  text-wrap: balance;
}
h2, .t-heading {
  font-size: var(--t-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variation-settings: "SHRP" 100;
  text-wrap: balance;
}
h3, .t-title {
  font-size: var(--t-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  font-variation-settings: "SHRP" 60;
  text-wrap: balance;
}
h4 { font-size: var(--t-body); font-weight: 600; line-height: 1.4; }
.t-lead {
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.005em;
}
.t-body { font-size: var(--t-body); line-height: 1.62; letter-spacing: 0; }
.t-small {
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .01em;
}
p { text-wrap: pretty; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  font-weight: 400;
  letter-spacing: .04em;
}
.unit {                       /* "24 GB": unit after a thin space, step 6 Flint */
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--flint);
}
.muted { color: var(--flint); }
.nowrap { white-space: nowrap; }   /* keeps codes like IPC-A-610 from breaking at a hyphen */
.eyebrow {                    /* the one home eyebrow: sentence case, never uppercase */
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--kyanite);
}
.footnote {
  font-size: var(--t-small);
  line-height: 1.45;
  color: var(--flint);
  max-width: var(--measure);
}
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose > h2, .prose > h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }

.price {
  font-weight: 600;
  font-variation-settings: "SHRP" 60;
  white-space: nowrap;
}


/* 4  Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 12 / 8 / 4 column grid. Children span the full row unless given spans.
   .span-N and .start-N apply from 1024px (12 columns), .span-md-N from 768 to 1023px (8 columns).
   Below 768px every child is one full-width column. */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 768px) and (max-width: 1023.98px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .grid > .span-md-2 { grid-column: auto / span 2; }
  .grid > .span-md-3 { grid-column: auto / span 3; }
  .grid > .span-md-4 { grid-column: auto / span 4; }
  .grid > .span-md-5 { grid-column: auto / span 5; }
  .grid > .span-md-6 { grid-column: auto / span 6; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid > .span-2 { grid-column: auto / span 2; }
  .grid > .span-3 { grid-column: auto / span 3; }
  .grid > .span-4 { grid-column: auto / span 4; }
  .grid > .span-5 { grid-column: auto / span 5; }
  .grid > .span-6 { grid-column: auto / span 6; }
  .grid > .span-7 { grid-column: auto / span 7; }
  .grid > .span-8 { grid-column: auto / span 8; }
  .grid > .span-9 { grid-column: auto / span 9; }
  .grid > .span-10 { grid-column: auto / span 10; }
  .grid > .start-2 { grid-column-start: 2; }
  .grid > .start-3 { grid-column-start: 3; }
  .grid > .start-4 { grid-column-start: 4; }
  .grid > .start-5 { grid-column-start: 5; }
  .grid > .start-6 { grid-column-start: 6; }
  .grid > .start-7 { grid-column-start: 7; }
  .grid > .start-8 { grid-column-start: 8; }
  .grid > .start-9 { grid-column-start: 9; }
  .grid--end { align-items: end; }
}

.section { padding-block: var(--section); }
.section--slab { background: var(--slab); box-shadow: var(--arris); }
.section--tight { padding-block: var(--s8); }
.chapter { padding-block: var(--chapter); }
.section > .strata:first-child,
.chapter > .strata:first-child { margin-top: calc(-1 * var(--section)); margin-bottom: var(--section); }

.section__head { display: grid; gap: var(--s5); margin-bottom: var(--s7); max-width: var(--measure); }
.section__head > p { font-size: var(--t-lead); line-height: 1.5; }
.section__head--wide { max-width: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s6); }
.stack { display: grid; gap: var(--s4); align-content: start; }
.kerf-stack { display: grid; gap: 2px; }   /* slabs stacked with 2px kerf cuts showing the ground */

main { display: block; }
main:focus { outline: none; }


/* 5  Ground and texture --------------------------------------------------- */

/* Stone grain: one fixed layer, never on scrolling containers */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  background: url("images/grain.webp") repeat 0 0 / 192px 192px;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
}

/* Saw-face arcs: hero plate, page heads, the order confirmation and the 404 only */
.saw {
  background-color: var(--ground);
  background-image: repeating-radial-gradient(circle at 118% 160%,
    transparent 0 13px,
    color-mix(in oklab, var(--quartz) 3.5%, transparent) 13px 14px);
}
.slab.saw, .confirm.saw { background-color: var(--slab); }

/* Strata band: five 1px lines, uneven gaps, falling opacity. 3 per page at most. */
.strata {
  display: block;
  width: 100%;
  height: 35px;
  pointer-events: none;
}
.strata > i {
  display: block;
  height: 1px;
  background: var(--kerf);
  transform-origin: 0 50%;
}
.strata > i:nth-child(1) { margin-top: 3px;  opacity: .9; }
.strata > i:nth-child(2) { margin-top: 7px;  opacity: .6; }
.strata > i:nth-child(3) { margin-top: 4px;  opacity: .45; }
.strata > i:nth-child(4) { margin-top: 11px; opacity: .3; }
.strata > i:nth-child(5) { margin-top: 5px;  opacity: .2; }

/* Arris: the one shadow in the system, on every Slab block */
.slab, .panel { background: var(--slab); box-shadow: var(--arris); }
.panel { padding: var(--s6); }
@media (max-width: 767.98px) { .panel { padding: var(--s5); } }


/* 6  Icons, helpers, skip link, live region ------------------------------ */

.icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
  vertical-align: middle;
}
.icon--24 { width: 24px; height: 24px; }
.icon--16 { width: 16px; height: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: var(--s2);
  left: var(--gutter);
  z-index: var(--z-skip);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s4);
  background: var(--slab);
  color: var(--quartz);
  border: 2px solid var(--kyanite);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; outline: none; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


/* 7  Buttons -------------------------------------------------------------- */

/* Primary: the kerf button. One element, two flush Kyanite blocks, a 2px cut between them. */
.btn-kerf {
  --btn-bg: var(--kyanite);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: stretch;
  flex: none;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-kyanite);
  font: 500 var(--t-body)/1 var(--font-sans);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-press) var(--ease-out);
}
.btn-kerf__label {
  display: flex;
  flex: 1 0 auto;               /* fills a width locked by script.js while "Adding" / "Sending" */
  align-items: center;
  padding: 0 20px;
  background: var(--btn-bg);
  transition: background-color var(--t-hover) var(--ease-out);
}
.btn-kerf__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  margin-left: 2px;
  background: var(--btn-bg);
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out);
}
.btn-kerf:hover { color: var(--on-kyanite); text-decoration: none; }
@media (hover: hover) {
  .btn-kerf:hover { --btn-bg: var(--kyanite-hover); }
  .btn-kerf:hover .btn-kerf__icon { transform: translateX(3px); }            /* kerf widens 2 to 5px */
}
.btn-kerf:active { transform: translateY(1px); color: var(--on-kyanite); }
.btn-kerf:active .btn-kerf__icon { transform: translateX(-2px); transition-duration: var(--t-press); } /* the blade closes */
.btn-kerf:focus-visible { outline-offset: 3px; }

/* Disabled: stays focusable (aria-disabled), reason line below */
.btn-kerf[aria-disabled="true"], .btn-kerf:disabled {
  --btn-bg: var(--slab);
  color: var(--flint);
  cursor: not-allowed;
}
.btn-kerf[aria-disabled="true"] .btn-kerf__label,
.btn-kerf[aria-disabled="true"] .btn-kerf__icon,
.btn-kerf:disabled .btn-kerf__label,
.btn-kerf:disabled .btn-kerf__icon { border: 1px dashed var(--kerf); }
.btn-kerf[aria-disabled="true"]:hover .btn-kerf__icon,
.btn-kerf[aria-disabled="true"]:active .btn-kerf__icon,
.btn-kerf:disabled:hover .btn-kerf__icon { transform: none; }
.btn-kerf[aria-disabled="true"]:active, .btn-kerf:disabled:active { transform: none; }

/* Loading: verb in progress, a 2px saw line runs across the icon block */
.btn-kerf[aria-busy="true"] { cursor: progress; }
.btn-kerf[aria-busy="true"] .btn-kerf__icon { background: var(--slab); box-shadow: inset 0 0 0 1px var(--kyanite); transform: none; }
.btn-kerf[aria-busy="true"] .btn-kerf__icon .icon { opacity: 0; }
.btn-kerf[aria-busy="true"] .btn-kerf__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  background: var(--kyanite);
  animation: saw .6s var(--ease-in-out) infinite alternate;
}

/* Hero hand-off: the kerf gap flashes once (script adds .is-flash) */
.btn-kerf::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 48px;
  width: 2px;
  background: var(--kyanite-hover);
  opacity: 0;
  pointer-events: none;
}
.btn-kerf.is-flash::before { animation: kerf-flash .4s var(--ease-out) 1; }

/* Full-width on phones (hero, forms) */
@media (max-width: 767.98px) {
  .btn-kerf--full-phone { display: flex; width: 100%; }
  .btn-kerf--full-phone .btn-kerf__label { flex: 1; }
}
.btn-kerf--full { display: flex; width: 100%; }
.btn-kerf--full .btn-kerf__label { flex: 1; }

.btn-reason {                 /* reason line under a disabled button */
  margin-top: var(--s2);
  font-size: var(--t-small);
  line-height: 1.45;
  color: var(--flint);
}

/* Secondary: the block */
.btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  flex: none;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--quartz);
  background: transparent;
  color: var(--quartz);
  font: 500 var(--t-body)/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.btn-block:hover { background: var(--slab); color: var(--quartz); text-decoration: none; }
.btn-block:active { transform: translateY(1px); color: var(--quartz); }
.btn-block:focus-visible { outline-offset: 3px; }
.btn-block[aria-disabled="true"], .btn-block:disabled {
  border-style: dashed;
  border-color: var(--kerf);
  color: var(--flint);
  background: transparent;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 767.98px) {
  .btn-block--full-phone { display: flex; width: 100%; }
}

/* Icon button: 44 x 44, 1px Kerf border, Quartz icon. --text adds a label (Order, Pause / Play). */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  flex: none;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--kerf);
  background: transparent;
  color: var(--quartz);
  font: 500 var(--t-small)/1 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.btn-icon--text { padding: 0 12px; }
.btn-icon:hover { background: var(--slab); border-color: var(--quartz); color: var(--quartz); text-decoration: none; }
.btn-icon:active { transform: translateY(1px); color: var(--quartz); }
.btn-icon:focus-visible { outline-offset: 3px; }
.btn-icon[aria-disabled="true"], .btn-icon:disabled {
  border-style: dashed;
  border-color: var(--kerf);
  color: var(--flint);
  background: transparent;
  cursor: not-allowed;
  transform: none;
}

/* A button that reads as a text link (Remove, Undo, Read the story) */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--kyanite);
  font: 500 var(--t-small)/1.45 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: underline 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--kyanite-hover); text-decoration-thickness: 2px; }
.link-btn:active { color: var(--quartz); }

/* Square segmented tabs (ladder GPU / CPU, news filters) */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  border: 1px solid var(--kerf);
}
.seg__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s4);
  border: 0;
  background: transparent;
  color: var(--quartz);
  font: 500 var(--t-small)/1.2 var(--font-sans);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.seg__btn + .seg__btn { box-shadow: -1px 0 0 var(--kerf); }
.seg__btn:hover { background: var(--slab); }
.seg__btn:active { transform: translateY(1px); }
.seg__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background-color var(--t-hover) var(--ease-out);
}
.seg__btn[aria-selected="true"], .seg__btn[aria-pressed="true"] { background: var(--slab); }
.seg__btn[aria-selected="true"]::after, .seg__btn[aria-pressed="true"]::after { background: var(--kyanite); }
.seg__btn:focus-visible { outline-offset: -2px; z-index: 1; }


/* 8  Concept bar ---------------------------------------------------------- */

.concept-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--concept-h);
  padding: 6px var(--gutter);
  background: var(--slab);
  color: var(--quartz);
  box-shadow: inset 0 -1px 0 var(--hairline);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .01em;
  text-align: center;
}
.concept-bar p { text-wrap: balance; }


/* 9  Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: var(--slab);
  box-shadow: var(--arris), inset 0 -1px 0 var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  color: var(--quartz);
  text-decoration: none;
  flex: none;
}
.brand:hover, .brand:active { color: var(--quartz); }
.brand__lockup { width: auto; height: 22px; aspect-ratio: 225.07 / 32; }
.brand__die { fill: var(--kyanite); }
@media (min-width: 768px) { .brand__lockup { height: 28px; } }
@media (max-width: 359.98px) { .brand__lockup { height: 18px; } }  /* 320px reflow: header tools stay inside the viewport */

/* Primary nav: one line from 1100px */
.nav { display: none; }
@media (min-width: 1100px) {
  .site-header__inner { gap: var(--s4); }
  .brand { margin-right: var(--s3); }
  .nav { display: block; margin-right: auto; }
}
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__trigger, .nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--quartz);
  font: 500 var(--t-small)/1 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out);
}
.nav__trigger:hover, .nav__link:hover { color: var(--quartz); text-decoration: none; }
.nav__trigger::after, .nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: transparent;
  transition: background-color var(--t-hover) var(--ease-out);
}
.nav__trigger:hover::after, .nav__link:hover::after { background: var(--kerf); }
.nav__trigger.is-current::after, .nav__link[aria-current]::after,
.nav__trigger[aria-expanded="true"]::after { background: var(--kyanite); }
.nav__trigger .icon { width: 16px; height: 16px; transition: transform var(--t-menu) var(--ease-out); }
.nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Disclosure panels: full-width Slab under the header */
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: var(--z-menu);
  background: var(--slab);
  box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline);
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}
.nav-panel:not([hidden]) { animation: wipe-down var(--t-menu) var(--ease-out); }
.nav-panel__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s5);
  padding-block: var(--s6) var(--s7);
}
.nav-panel__links {
  grid-column: 1 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2) var(--s5);
  align-content: start;
}
.nav-panel__link {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: var(--s3) var(--s4);
  border-left: 2px solid transparent;
  color: var(--quartz);
  text-decoration: none;
  transition: border-color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.nav-panel__link:hover { color: var(--quartz); border-left-color: var(--kerf); background: var(--ground); }
.nav-panel__link[aria-current="page"] { border-left-color: var(--kyanite); }
.nav-panel__name { font-weight: 500; line-height: 1.3; }
.nav-panel__desc { font-size: var(--t-small); line-height: 1.45; color: var(--flint); }
.nav-panel__aside { grid-column: 9 / -1; display: grid; gap: var(--s4); align-content: start; }
.nav-panel__lines { display: grid; gap: var(--s2); font-size: var(--t-small); }
.nav-panel__lines a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; }

/* One 4:5 product tile in the GPU and CPU panels */
.nav-tile {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  padding: var(--s3);
  background: var(--ground);
  box-shadow: inset 0 0 0 1px var(--kerf);
  color: var(--quartz);
  text-decoration: none;
  transition: box-shadow var(--t-hover) var(--ease-out);
}
.nav-tile:hover { color: var(--quartz); box-shadow: inset 0 0 0 1px var(--flint), inset 2px 0 0 var(--kyanite); }
.nav-tile img { width: 112px; height: 140px; object-fit: cover; }
.nav-tile__body { display: grid; gap: var(--s2); padding-top: var(--s1); }
.nav-tile__name { font-weight: 600; line-height: 1.3; font-variation-settings: "SHRP" 60; }
.nav-tile__more { font-size: var(--t-small); color: var(--kyanite); text-decoration: underline 1px; text-underline-offset: 3px; }

/* Right-hand tools */
.site-header__tools { display: flex; align-items: center; gap: var(--s2); flex: none; }

/* Theme menu: swatch button + 3 radio items */
.theme { position: relative; display: none; }
@media (min-width: 1100px) { html.js .theme { display: block; } }
.swatch {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--kerf);
}
.swatch--basalt { background: #151917; box-shadow: inset 0 -6px 0 #1F2421; }
.swatch--granite { background: #E1E2DD; box-shadow: inset 0 -6px 0 #EDEEE9; }
.swatch--current { background: var(--ground); box-shadow: inset 0 -6px 0 var(--slab); border-color: var(--quartz); }
.theme__menu {
  position: absolute;
  top: calc(100% + var(--s2));
  right: 0;
  z-index: var(--z-menu);
  min-width: 232px;
  padding: var(--s2) 0;
  background: var(--slab);
  border: 1px solid var(--kerf);
  box-shadow: var(--arris);
}
.theme__menu:not([hidden]) { animation: wipe-down var(--t-menu) var(--ease-out); }
.theme__item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: 44px;
  padding: 0 var(--s4);
  border: 0;
  background: none;
  color: var(--quartz);
  font: 500 var(--t-small)/1.2 var(--font-sans);
  letter-spacing: .01em;
  text-align: left;
  transition: background-color var(--t-hover) var(--ease-out);
}
.theme__item:hover { background: var(--ground); }
.theme__item[aria-checked="true"] { box-shadow: inset 2px 0 0 var(--kyanite); }
.theme__item:focus-visible { outline-offset: -2px; }

/* Order button: tray, the word, the count */
.order-btn__count {
  display: inline-block;
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums lining-nums;
}
html.js .order-btn__count.is-loading { color: transparent; background: var(--skel); }
.order-btn__count.is-bump { animation: rise .3s var(--ease-out-3); }
@media (max-width: 479.98px) { .order-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* Menu button: below 1100px only */
@media (min-width: 1100px) { .menu-btn { display: none; } }


/* 10  Dialogs: menu sheet and order drawer -------------------------------- */

.sheet, .drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--slab);
  color: var(--quartz);
  box-shadow: inset 1px 0 0 var(--hairline);
  overflow: hidden;
}
.sheet[open], .drawer[open] {
  display: flex;
  flex-direction: column;
  animation: slide-in .42s var(--ease-out-3);
}
.sheet.is-closing, .drawer.is-closing { animation: slide-out .28s var(--ease-in-out) forwards; }
.sheet::backdrop, .drawer::backdrop {
  background: rgb(21 25 23 / .72);
  background: var(--scrim);
}
.sheet[open]::backdrop, .drawer[open]::backdrop { animation: fade-in var(--t-menu) var(--ease-out); }

.dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 64px;
  padding: var(--s2) var(--s5);
  box-shadow: var(--arris), inset 0 -1px 0 var(--hairline);
  flex: none;
}
.dialog__title { font-size: var(--t-title); }
.dialog__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s4) var(--s5) var(--s6);
}
.dialog__foot {
  flex: none;
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
  box-shadow: inset 0 1px 0 var(--hairline);
}

/* Menu sheet content */
.sheet__group { box-shadow: inset 0 -1px 0 var(--hairline); }
.sheet__group > summary, .sheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-weight: 500;
  color: var(--quartz);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.sheet__group > summary::-webkit-details-marker { display: none; }
.sheet__group > summary .icon { transition: transform var(--t-menu) var(--ease-out); }
.sheet__group[open] > summary .icon { transform: rotate(180deg); }
.sheet__link { box-shadow: inset 0 -1px 0 var(--hairline); }
.sheet__link:hover { color: var(--quartz); }
.sheet__link[aria-current="page"] { color: var(--kyanite); }
.sheet__sub { display: grid; padding: 0 0 var(--s3) var(--s4); }
.sheet__sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: var(--s3);
  border-left: 2px solid transparent;
  color: var(--quartz);
  text-decoration: none;
}
.sheet__sub a:hover { border-left-color: var(--kerf); color: var(--quartz); }
.sheet__sub a[aria-current="page"] { border-left-color: var(--kyanite); color: var(--kyanite); }
.sheet__section { margin-top: var(--s6); display: grid; gap: var(--s3); }
.sheet__label { font-size: var(--t-small); font-weight: 500; color: var(--flint); }
.sheet__themes { display: grid; gap: 2px; }
.sheet__themes .theme__item { background: var(--ground); }
.sheet__lines { display: grid; gap: var(--s2); }
.sheet__lines a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; }


/* 11  Set bar -------------------------------------------------------------- */

.setbar {
  position: sticky;
  top: var(--header-h);
  z-index: var(--z-setbar);
  height: var(--setbar-h);
  background: var(--slab);
  box-shadow: var(--arris), inset 0 -1px 0 var(--hairline);
}
.setbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  height: 100%;
}
.setbar__name {
  flex: none;
  font-weight: 600;
  font-variation-settings: "SHRP" 60;
  color: var(--quartz);
  text-decoration: none;
  white-space: nowrap;
}
.setbar__name:hover { color: var(--quartz); }
.setbar__tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 100%;
  min-width: 0;
  margin-right: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.setbar__tabs::-webkit-scrollbar { display: none; }
.setbar__tabs > li { display: flex; scroll-snap-align: start; }
.setbar__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  min-height: 44px;
  padding: 0 var(--s3);
  color: var(--quartz);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.setbar__tab:hover { color: var(--quartz); }
.setbar__tab::after {
  content: "";
  position: absolute;
  left: var(--s3);
  right: var(--s3);
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background-color var(--t-hover) var(--ease-out);
}
.setbar__tab:hover::after { background: var(--kerf); }
.setbar__tab[aria-current="page"] { color: var(--kyanite); }
.setbar__tab[aria-current="page"]::after { background: var(--kyanite); }
.setbar__tab:focus-visible { outline-offset: -2px; }
.setbar__indicator {           /* optional: script.js may slide one indicator between tabs (0.26s) */
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--kyanite);
  pointer-events: none;
}
.setbar__action { flex: none; }
@media (max-width: 767.98px) {
  .setbar__tab { padding: 0 var(--s2); }
  .setbar__name { display: none; }   /* phones: the nav's aria-label names the set and Overview links the hub; no invisible focus stop */
  .setbar__inner { padding-right: var(--s2); }
  .setbar__action .btn-kerf__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .setbar__action .btn-kerf__icon { margin-left: 0; }
  .setbar__action::before { display: none; }
}


/* 12  Depth marks ---------------------------------------------------------- */

.depth { display: none; }
@media (min-width: 1360px) {
  .depth {
    display: block;
    position: fixed;
    z-index: var(--z-depth);
    top: 50%;
    right: max(4px, calc((100vw - var(--max) - 2 * var(--gutter)) / 2 - 44px));
    transform: translateY(-50%);
  }
}
.depth__list {
  position: relative;
  display: grid;
  padding: var(--s3) 0;
}
.depth__list::before {           /* the core: a vertical kerf with minor ticks */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 6px;
  background: repeating-linear-gradient(to bottom, var(--hairline) 0 1px, transparent 1px 11px);
  box-shadow: inset -1px 0 0 var(--kerf);
}
.depth__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 44px;
  height: 44px;
  color: var(--quartz);
  text-decoration: none;
}
.depth__mark::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--kerf);
  transition: width var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.depth__name {
  position: absolute;
  right: calc(100% + var(--s2));
  top: 50%;
  padding: var(--s1) var(--s2);
  background: var(--slab);
  box-shadow: var(--arris), inset 0 0 0 1px var(--hairline);
  color: var(--quartz);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out);
}
.depth__mark:hover::before, .depth__mark:focus-visible::before { width: 20px; }
.depth__mark:hover .depth__name, .depth__mark:focus-visible .depth__name { opacity: 1; transform: translate(0, -50%); }
.depth__mark:focus-visible { outline-offset: -2px; }
.depth__mark[aria-current="true"]::before, .depth__mark.is-current::before { width: 26px; background: var(--kyanite); }
.depth__mark:active { color: var(--quartz); }


/* 13  Page head and breadcrumb ------------------------------------------- */

.page-head { padding-block: var(--s6) var(--s8); }
.page-head__inner { display: grid; gap: var(--s5); }
.page-head__title { max-width: 22ch; }
.page-head__lead { max-width: 52ch; font-size: var(--t-lead); line-height: 1.5; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s2); }
@media (min-width: 768px) { .page-head { padding-block: var(--s7) var(--s8); } }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; }
.crumbs li + li::before { content: "/"; margin: 0 var(--s2); color: var(--kerf); }
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--flint);
  text-decoration: none;
}
.crumbs a:hover { color: var(--quartz); text-decoration: underline 1px; text-underline-offset: 3px; }
.crumbs a[aria-current="page"] { color: var(--quartz); }


/* 14  Home hero: the kerf and the headline plate (the processor itself is section 41) ------------------ */

.hero__kerf { position: relative; height: 2px; background: var(--ground); overflow: hidden; }
.hero__kerf-line { position: absolute; inset: 0; background: var(--kyanite); transform-origin: 0 50%; }
.hero__plate { padding-block: var(--s6) var(--s7); }
@media (min-width: 768px) { .hero__plate { padding-block: var(--s7) var(--s8); } }
.hero__title { max-width: none; }
@media (min-width: 768px) { .hero__title > span { display: block; } }
.hero__row {
  display: grid;
  gap: var(--s5);
  margin-top: var(--s5);
}
.hero__sub { font-size: var(--t-lead); line-height: 1.5; max-width: 46ch; }
.hero__actions { display: grid; gap: var(--s3); }
@media (min-width: 768px) {
  .hero__row { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; margin-top: var(--s6); }
  .hero__sub { grid-column: 1 / span 7; }
  .hero__actions { grid-column: 8 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s4); }
}
@media (min-width: 1024px) {
  .hero__sub { grid-column: 1 / span 6; }
  .hero__actions { grid-column: 7 / -1; }
}
.hero__actions .magnet { vertical-align: middle; }
@media (max-width: 767.98px) {
  .hero__actions [data-motion="magnet"], .hero__actions .magnet { display: block; }
  .hero__actions .btn-kerf { display: flex; width: 100%; }
  .hero__actions .btn-kerf__label { flex: 1; }
  .hero__actions .btn-block { width: 100%; }
}
/* The considered moment: hidden only while motion runs; script.js reveals them in the hero timeline */
html.motion-on [data-hero-part] { visibility: hidden; animation: failsafe-show 0s linear 3s forwards; }   /* failsafe: shows after 3s even if script.js never runs */


/* 15  Image bands, feature band, line slabs, built-for -------------------- */

.band {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--photo-black);
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band--parallax img { top: -8%; height: 116%; }
/* Hub band: script.js inlines images/die-map.svg as .band__trace and draws it once (DrawSVG).
   The photo is dark in both themes, so the trace uses Basalt Kyanite, as the hero light does. */
.band__trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: #7EABD8; stroke-width: 1.5; opacity: .7; }
.band__trace * { fill: none; stroke: inherit; vector-effect: non-scaling-stroke; }
.band__caption {                    /* text with a photo band always sits on an opaque Slab strip */
  padding: var(--s3) 0;
  background: var(--slab);
  box-shadow: var(--arris);
  color: var(--flint);
  font-size: var(--t-small);
}

.media { position: relative; overflow: hidden; background: var(--photo-black); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--parallax img { position: absolute; left: 0; top: -8%; height: 116%; }

/* Home "For business": full-bleed 21:9 band with an opaque Slab panel at cols 7-12 */
.feature-band { position: relative; }
.feature-band__media { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--photo-black); }
.feature-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-band__media.media--parallax img { top: -8%; height: 116%; }
.feature-band__panel { display: grid; gap: var(--s4); padding: var(--s6) var(--s5); background: var(--slab); box-shadow: var(--arris); }
.feature-band__panel > .actions { margin-top: var(--s3); }
@media (min-width: 1024px) {
  .feature-band__media { min-height: 560px; aspect-ratio: auto; height: min(42vw, 680px); }
  .feature-band__wrap {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    align-items: end;
    padding-bottom: var(--s7);
    pointer-events: none;
  }
  .feature-band__panel { grid-column: 7 / -1; padding: var(--s6); pointer-events: auto; }
}
@media (max-width: 1023.98px) {
  .feature-band__wrap { padding-inline: 0; }
}

/* Home "Choose your line": two unequal slabs (7 + 5) */
.line-split { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .line-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.line-slab { display: flex; flex-direction: column; background: var(--slab); box-shadow: var(--arris); }
.line-slab__body { display: grid; gap: var(--s4); padding: var(--s5); }
.line-slab__from { font-size: var(--t-title); line-height: 1.25; }
.line-slab__body .btn-kerf { justify-self: start; margin-top: var(--s2); }
@media (min-width: 1024px) { .line-slab__body { padding: var(--s6); } }

/* Hub "Built for": 2 + 1 (a 4:5 photo tile spanning two rows + two text tiles) */
.uses { display: grid; gap: var(--gap); }
.use-tile { display: grid; gap: var(--s3); align-content: start; padding: var(--s5); background: var(--slab); box-shadow: var(--arris); }
.use-tile--photo { padding: 0; }
.use-tile--photo .use-tile__text { display: grid; gap: var(--s3); padding: var(--s5); }
@media (min-width: 768px) {
  .uses { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto auto; }
  .use-tile--photo { grid-row: 1 / span 2; }
  .use-tile:not(.use-tile--photo) { align-content: center; padding: var(--s6); }
}


/* 16  Etched marks, Sample tag -------------------------------------------- */

/* A laser etch on a heat spreader: three uppercase lines, Martian Mono, Flint, cut into the Slab */
.etch {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--flint);
  text-shadow: 0 1px 0 var(--etch-hi);
}
.etch__lines > span, .etch__line { display: block; }
.etch__status, .etch__order { display: block; }
.etch__order { color: var(--kyanite); }
.etch--inline .etch__lines > span { display: inline; }
.etch--inline .etch__lines > span + span::before { content: " "; }

/* Field-sample tag: 1px Kerf, punched circle, "Sample" in Martian Mono */
.sample-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  width: fit-content;
  height: 26px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--kerf);
  color: var(--flint);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  vertical-align: middle;
}
.sample-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--kerf);
  border-radius: 50%;            /* the punched hole: the one circle in the system */
  flex: none;
}


/* 17  Product tile -------------------------------------------------------- */

.tiles { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--slab);
  box-shadow: var(--arris), inset 0 0 0 1px var(--kerf);
  transition: box-shadow var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.tile__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin: 1px 1px 0; background: var(--photo-black); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s var(--ease-out), filter .24s var(--ease-out); }
.tile__media::after {               /* a Kyanite kerf draws under the photo on hover */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--kyanite);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .24s var(--ease-out);
}
@media (hover: hover) {
  .tile:hover { box-shadow: var(--arris), inset 0 0 0 1px var(--flint); }
  .tile:hover .tile__media img { transform: scale(1.03); }
  .tile:hover .tile__media::after { transform: scaleX(1); }
}
.tile__body { display: flex; flex-direction: column; gap: var(--s3); flex: 1; padding: var(--s5) var(--s4) var(--s4); }
@media (min-width: 1024px) { .tile__body { padding: var(--s5); } }
.tile__title { font-size: var(--t-title); }
.tile__link { color: var(--quartz); text-decoration: none; }
.tile__link:hover { color: var(--quartz); }
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__link:focus-visible { outline: none; }
.tile:has(.tile__link:focus-visible) { outline: 2px solid var(--kyanite); outline-offset: 3px; }
.tile:has(.tile__link:active) { transform: translateY(1px); }
/* While the shop grid reflows (filter or sort), GSAP Flip drives transform every frame: no CSS transition on top */
.tiles.is-reflowing > .tile { transition: none; }
.tile__use { color: var(--flint); }
.tile__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
  margin-top: auto;
  padding-top: var(--s3);
}
.tile__price { font-size: var(--t-title); line-height: 1.25; text-shadow: var(--engrave); }
.tile__foot .btn-kerf, .tile__foot .btn-reason, .tile .etch { position: relative; z-index: 2; }
.tile__foot .btn-reason { flex-basis: 100%; margin-top: 0; }
/* Back-ordered */
.tile.is-backordered .tile__media img { filter: grayscale(1); }


/* 18  Strata lineup ladder ------------------------------------------------ */

.ladder__tabs { margin-bottom: var(--s5); }
html:not(.js) .ladder__tabs { display: none; }
html.js [data-ladder-tabs] .ladder__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ladder__panel + .ladder__panel { margin-top: var(--s7); }
.ladder__title { margin-bottom: var(--s4); font-size: var(--t-title); }
.ladder__list { box-shadow: inset 0 1px 0 var(--hairline); }

.layer { position: relative; box-shadow: inset 0 -1px 0 var(--hairline); }
.layer__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name name" "use price";   /* phones: the name gets the full row, the price sits by the use line */
  align-items: end;
  gap: var(--s1) var(--s4);
  min-height: var(--h, 56px);
  padding: var(--s3) var(--s4);
  list-style: none;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.layer__summary::-webkit-details-marker { display: none; }
.layer__summary::marker { content: ""; }
.layer__summary:hover, .layer__details[open] > .layer__summary { background: var(--slab); box-shadow: inset 2px 0 0 var(--kyanite); }
.layer__summary:focus-visible { outline-offset: -2px; }
.layer__summary:active { transform: translateY(1px); }
.layer__id { grid-area: name; display: grid; gap: 2px; min-width: 0; }
.layer__name { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-title); line-height: 1.25; }
.layer__name .icon { width: 16px; height: 16px; color: var(--flint); transition: transform var(--t-menu) var(--ease-out); }
.layer__details[open] .layer__name .icon { transform: rotate(180deg); }
.layer__id .etch { line-height: 1.3; }
.layer__use { grid-area: use; color: var(--flint); }
.layer__price { grid-area: price; font-size: var(--t-title); line-height: 1.25; text-align: right; min-width: 6ch; text-shadow: var(--engrave); }
.layer__add { display: none; }
.layer__specs {
  display: grid;
  gap: var(--s5);
  padding: var(--s2) var(--s4) var(--s5);
  background: var(--slab);
  box-shadow: inset 2px 0 0 var(--kyanite);
}
.layer__specs .btn-kerf { justify-self: start; }
@media (min-width: 768px) {
  .layer__summary {
    grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2fr);
    grid-template-areas: "name use price";
    align-items: center;
    gap: var(--s5);
    padding: var(--s2) 252px var(--s2) var(--s5);   /* room for the absolute Add button (about 196px + 24px inset) + a 32px gap */
  }
  .layer__add {
    display: block;
    position: absolute;
    right: var(--s5);
    top: calc(var(--h, 56px) / 2 - 24px);
    z-index: 1;
  }
  .layer__specs { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; padding: var(--s2) var(--s5) var(--s5); }
  .layer__specs .btn-kerf { display: none; }
  .layer__specs .etch { justify-self: end; text-align: right; }
}

/* Inline spec values (ladder layer, cart): grouped, no row hairlines */
.spec-inline { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.spec-inline > div { display: grid; gap: 2px; }
.spec-inline dt { font-size: var(--t-small); font-weight: 500; color: var(--flint); }
.spec-inline dd { font-size: var(--t-title); font-weight: 600; line-height: 1.25; font-variation-settings: "SHRP" 60; }


/* 19  Spec tiles and the full specification disclosure ------------------- */

.spec-tiles { display: grid; gap: var(--gap); }
@media (min-width: 768px) {
  .spec-tiles { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; }
  .spec-tile--lead { grid-row: 1 / span 2; }
}
.spec-tile {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris), inset 0 0 0 1px var(--hairline);
}
@media (min-width: 1024px) { .spec-tile { padding: var(--s6); } }
.spec-tile__label { font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; color: var(--flint); }
.spec-tile__value { font-size: var(--t-title); font-weight: 600; line-height: 1.25; font-variation-settings: "SHRP" 60; }
.spec-tile--lead { gap: var(--s4); }
.spec-tile--lead .spec-tile__name { font-size: var(--t-title); margin-bottom: var(--s2); }
.spec-tile__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s4); }
.spec-tile__foot .price { font-size: var(--t-title); text-shadow: var(--engrave); }

.spec-full { margin-top: var(--s6); }
.spec-full + .footnote { margin-top: var(--s5); }
.spec-groups { display: grid; gap: var(--s6); padding-top: var(--s4); }
@media (min-width: 1024px) { .spec-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }
.spec-group { padding-top: var(--s4); box-shadow: inset 0 1px 0 var(--kerf); }   /* one hairline per group */
.spec-group__title { margin-bottom: var(--s4); font-size: var(--t-title); }
.spec-list { display: grid; gap: var(--s3); }
.spec-list > div { display: grid; gap: 2px; }
.spec-list dt { font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; color: var(--flint); }
.spec-list dd { font-variant-numeric: tabular-nums lining-nums; }


/* 20  Disclosure, FAQ accordion ------------------------------------------- */

.disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 56px;
  padding: var(--s3) 0;
  box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline);
  font-weight: 600;
  font-variation-settings: "SHRP" 60;
  list-style: none;
  cursor: pointer;
  transition: color var(--t-hover) var(--ease-out);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::marker { content: ""; }
.disclosure > summary .icon { transition: transform var(--t-menu) var(--ease-out); }
.disclosure[open] > summary .icon { transform: rotate(180deg); }
.disclosure > summary:hover { color: var(--kyanite); }
.disclosure > summary:focus-visible { outline-offset: 2px; }
.disclosure--title > summary { font-size: var(--t-title); line-height: 1.25; }

.faq { display: grid; gap: 2px; }
.faq__item { background: var(--slab); box-shadow: var(--arris); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 64px;
  padding: var(--s4) var(--s5);
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: box-shadow var(--t-hover) var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { box-shadow: inset 2px 0 0 var(--kerf); }
.faq__item[open] > .faq__q { box-shadow: inset 2px 0 0 var(--kyanite); }
.faq__q:focus-visible { outline-offset: -2px; }
.faq__q .icon { transition: transform var(--t-menu) var(--ease-out); }
.faq__item[open] > .faq__q .icon { transform: rotate(180deg); }
.faq__a { padding: 0 var(--s5) var(--s5); max-width: calc(var(--measure) + 48px); }
.faq__a p + p { margin-top: .8em; }
.faq-group + .faq-group { margin-top: var(--s7); }
.faq-group__title { margin-bottom: var(--s4); font-size: var(--t-title); }


/* 21  Quotes, rating, award plaques, certificates, compliance marks ------ */

.quotes { display: grid; gap: var(--s6); }
@media (min-width: 1024px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
  .quotes--stagger > :nth-child(2) { margin-top: var(--s8); }      /* staggered offsets */
  .quotes--stagger > :nth-child(3) { margin-top: var(--s10); }
}
.quote {
  display: grid;
  gap: var(--s4);
  align-content: start;
  padding-left: var(--s5);
  box-shadow: inset 1px 0 0 var(--kerf);
}
.quote__text { font-size: var(--t-lead); line-height: 1.5; max-width: 40ch; }
.quote__by { display: grid; gap: 2px; font-size: var(--t-small); line-height: 1.45; }
.quote__name { font-weight: 500; color: var(--quartz); }
.quote__role { color: var(--flint); }

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.rating__value {
  font-size: var(--t-heading);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -.02em;
  font-variation-settings: "SHRP" 100;
}
.rating__text { color: var(--flint); }

.plaques { display: grid; gap: var(--gap); }
@media (min-width: 600px) { .plaques { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .plaques--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .plaques--10 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.plaque {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris);
}
.plaque .icon { color: var(--flint); }
.plaque__year { font-size: var(--t-title); font-weight: 600; line-height: 1.25; font-variation-settings: "SHRP" 60; }
.plaque__title { font-weight: 500; line-height: 1.4; }
.plaque__body, .plaque__for { font-size: var(--t-small); line-height: 1.45; color: var(--flint); }
.plaque .sample-tag { margin-top: auto; }

.certs { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .certs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cert {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris), inset 0 0 0 1px var(--hairline);
}
.cert__head { display: flex; align-items: center; gap: var(--s3); }
.cert__head .icon { color: var(--flint); }
.cert__name { font-size: var(--t-title); }
.cert__scope { color: var(--flint); }
.cert__meta { display: grid; gap: var(--s3); margin-top: var(--s2); }
.cert__meta > div { display: grid; gap: 2px; }
.cert__meta dt { font-size: var(--t-small); font-weight: 500; color: var(--flint); }
.cert__meta dd.mono { overflow-wrap: anywhere; }
.cert .sample-tag { margin-top: auto; }

.compliance { display: flex; flex-wrap: wrap; gap: var(--s2); }
.compliance__mark {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 32px;
  padding: 0 var(--s2);
  border: 1px solid var(--kerf);
  color: var(--quartz);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: .02em;
}


/* 22  Counters band ------------------------------------------------------- */

.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
@media (min-width: 768px) { .counters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.counter {
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding: var(--s6) var(--s5);
  background: var(--slab);
  box-shadow: var(--arris);
}
.counter__value {
  display: block;
  min-width: 4ch;
  font-size: var(--t-display);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-variation-settings: "SHRP" 100;
  font-variant-numeric: tabular-nums lining-nums;
}
.counter__label { font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; color: var(--flint); }


/* 23  Partner marquee and partner records -------------------------------- */

.marquee { display: flex; align-items: center; gap: var(--s4); }
.marquee__viewport { flex: 1; min-width: 0; overflow: hidden; }
.marquee__inner { display: flex; width: max-content; }
.marquee__track { display: flex; align-items: center; gap: var(--s8); padding-right: var(--s8); }
html:not(.js) .marquee__track[aria-hidden="true"] { display: none; }
html:not(.js) .marquee__inner { width: auto; }
html:not(.js) .marquee__track { flex-wrap: wrap; gap: var(--s6); padding-right: 0; }
html:not(.js) .marquee__toggle { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .marquee__inner { animation: marquee 40s linear infinite; }
  html.js .marquee__viewport:hover .marquee__inner,
  html.js .marquee__viewport:focus-within .marquee__inner,
  html.js .marquee.is-paused .marquee__inner { animation-play-state: paused; }
}
.partner-mark { display: block; height: 40px; width: auto; color: var(--flint); transition: color var(--t-hover) var(--ease-out); }
.marquee__item:hover .partner-mark { color: var(--quartz); }
.marquee__toggle { flex: none; }

.partners { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .partners { grid-template-columns: repeat(6, minmax(0, 1fr)); } .partners > * { grid-column: span 2; } .partners > :nth-child(4) { grid-column: 2 / span 2; } }
.partner {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris);
}
.partner .partner-mark { height: 44px; color: var(--quartz); margin-bottom: var(--s2); }
.partner__name { font-size: var(--t-title); }
.partner__kind { font-size: var(--t-small); font-weight: 500; color: var(--flint); }


/* 24  Core sample, timeline ----------------------------------------------- */

.core { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .core { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; } }
.core__column { display: grid; gap: 2px; width: 120px; }
@media (min-width: 1024px) { .core__column { width: 160px; justify-self: center; } }
.core__seg {
  height: 72px;
  background: var(--slab);
  box-shadow: var(--arris), inset 0 0 0 1px var(--hairline);
  transition: box-shadow .3s var(--ease-out), background-color .3s var(--ease-out);
}
.core__seg:nth-child(2) { height: 96px; }
.core__seg:nth-child(3) { height: 64px; }
.core__seg:nth-child(4) { height: 112px; }
@media (min-width: 1024px) {
  .core__seg { height: 96px; }
  .core__seg:nth-child(2) { height: 128px; }
  .core__seg:nth-child(3) { height: 88px; }
  .core__seg:nth-child(4) { height: 144px; }
}
.core__seg.is-lit { box-shadow: var(--arris), inset 0 0 0 1px var(--hairline), inset 3px 0 0 var(--kyanite); }
.core__layers { display: grid; gap: 2px; }
.core__layer {
  display: grid;
  gap: var(--s2);
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris), inset 2px 0 0 var(--kyanite);
  transition: box-shadow .3s var(--ease-out), opacity .3s var(--ease-out);
}
/* While script.js scrubs the pinned scene, unlit layers rest; everything is lit by default */
.core.is-scrubbing .core__layer:not(.is-lit) { box-shadow: var(--arris); opacity: .7; }
.core.is-scrubbing .core__seg:not(.is-lit) { box-shadow: var(--arris), inset 0 0 0 1px var(--hairline); }
.core__layer h3 { font-size: var(--t-title); }

.timeline { display: grid; gap: 2px; }
.timeline__item {
  display: grid;
  grid-template-columns: 5ch minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris);
}
@media (min-width: 768px) { .timeline__item { grid-template-columns: 7ch minmax(0, 1fr); gap: var(--s5); } }
.timeline__year { font-size: var(--t-title); font-weight: 600; line-height: 1.25; font-variation-settings: "SHRP" 60; }
.timeline__body { display: grid; gap: var(--s2); }
.timeline__title { font-size: var(--t-title); }
.timeline__item:first-child { box-shadow: var(--arris), inset 2px 0 0 var(--kyanite); }   /* today, on top */


/* 25  Hex map, office records, factory regions, map embed ---------------- */

.hexmap { position: relative; width: 100%; aspect-ratio: var(--ratio, 1.86); margin-block: var(--s4); }
.hexmap__grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hexmap__grid {                          /* basalt column tops: an SVG mask (written by assemble.py) filled with Kerf */
  background: color-mix(in oklab, var(--kerf) 42%, transparent);
  -webkit-mask: url("images/hexmap-us.svg") 0 0 / 100% 100% no-repeat;
  mask: url("images/hexmap-us.svg") 0 0 / 100% 100% no-repeat;
}
.hexmap--world .hexmap__grid {
  -webkit-mask-image: url("images/hexmap-world.svg");
  mask-image: url("images/hexmap-world.svg");
}
.hexmap__marker {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  color: var(--kyanite);
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out);
}
.hexmap__marker svg { width: 28px; height: 28px; overflow: visible; }
.hexmap__marker polygon { fill: var(--ground); stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill var(--t-hover) var(--ease-out); }
.hexmap__marker:hover { color: var(--kyanite-hover); }
.hexmap__marker:hover polygon { fill: var(--slab); }
.hexmap__marker:active { transform: translateY(1px); }
.hexmap__marker:focus-visible { outline-offset: 0; }
.hexmap__label {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px var(--s2);
  background: var(--slab);
  box-shadow: var(--arris);
  color: var(--quartz);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.hexmap__marker[data-side="left"] .hexmap__label { left: auto; right: 100%; }
@media (max-width: 767.98px) { .hexmap__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); } }
.hexmap__dot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  color: var(--quartz);
}
.hexmap__dot--hub { width: 18px; height: 18px; margin: -9px 0 0 -9px; color: var(--kyanite); }
.hexmap__dot svg { width: 100%; height: 100%; overflow: visible; }
.hexmap__dot polygon { fill: currentColor; }
.hexmap__dot--hub polygon { fill: var(--ground); stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.hexmap__legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--t-small); color: var(--flint); }
.hexmap__legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.hexmap__legend svg { width: 14px; height: 14px; }
.hexmap__legend .is-region polygon { fill: var(--quartz); }
.hexmap__legend .is-hub polygon { fill: none; stroke: var(--kyanite); stroke-width: 2; vector-effect: non-scaling-stroke; }

.offices { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.office {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris);
  scroll-margin-top: calc(var(--sticky-h) + var(--s5));
  transition: box-shadow var(--t-hover) var(--ease-out);
}
.office:target, .office.is-target { box-shadow: var(--arris), inset 2px 0 0 var(--kyanite); }   /* .is-target: set by script.js after a hex-marker jump */
.office--hq { padding: 0; }
.office--hq .office__body { display: grid; gap: var(--s3); align-content: start; padding: var(--s5); }
@media (min-width: 768px) {
  .office--hq { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .office--hq .media { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .office--hq .office__body { padding: var(--s6); }
}
.office__role { font-size: var(--t-small); font-weight: 500; color: var(--flint); }
.office__hours { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.office__hours .icon { color: var(--flint); }
.office__status { font-size: var(--t-small); color: var(--flint); }
.office__links { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.office__links a, .call-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
}
.call-link .tel { color: var(--quartz); text-decoration: none; }

.support-lines { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }   /* two side by side only when each gets 320px */
.support-lines > .footnote { grid-column: 1 / -1; }
.call-link { flex-wrap: wrap; column-gap: var(--s2); }
.call-link .tel { white-space: nowrap; }
.support-line a[href^="mailto:"] { overflow-wrap: anywhere; }
.support-line { display: grid; gap: var(--s2); align-content: start; padding: var(--s5); background: var(--slab); box-shadow: var(--arris); }
.support-line h3 { margin-bottom: var(--s1); }
.support-line .call-link { justify-self: start; }
.support-line__hours { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-small); color: var(--flint); }

.regions { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .regions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.region { display: grid; gap: var(--s2); align-content: start; padding: var(--s5); background: var(--slab); box-shadow: var(--arris); }
.region__count { font-size: var(--t-title); font-weight: 600; line-height: 1.25; font-variation-settings: "SHRP" 60; }
.region__place, .region__since { font-size: var(--t-small); color: var(--flint); }
.hubs { display: grid; gap: var(--gap); margin-top: var(--s6); }
@media (min-width: 768px) { .hubs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub { display: grid; gap: var(--s2); padding: var(--s5); background: var(--slab); box-shadow: var(--arris), inset 2px 0 0 var(--kerf); }

.map-embed {
  position: relative;
  display: grid;
  place-items: center;
  gap: var(--s4);
  align-content: center;
  min-height: 320px;
  padding: var(--s6);
  background: var(--slab);
  box-shadow: var(--arris), inset 0 0 0 1px var(--hairline);
  text-align: center;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__note { max-width: 44ch; font-size: var(--t-small); color: var(--flint); }


/* 26  Driver finder, result slab, driver cuts ---------------------------- */

.finder { padding: var(--s5); background: var(--slab); box-shadow: var(--arris); container-type: inline-size; }
@media (min-width: 1024px) { .finder { padding: var(--s6); } }
.finder__fields { display: grid; gap: var(--s5); }
/* sized by the finder's own width, so it works full width (drivers pages) and in cols 1-7 (home, hubs) */
@container (min-width: 420px) {
  .finder__fields { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; }
  .finder__fields > .btn-block { justify-self: start; }
}
@container (min-width: 760px) {
  .finder__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}
.finder__note { margin-top: var(--s4); }
.driver-result { margin-top: var(--s5); }
.driver-result__error { display: flex; gap: var(--s2); align-items: flex-start; color: var(--jasper); font-weight: 500; }
.driver-result .cuts { margin-top: 0; }

.cuts__caption { margin-bottom: var(--s4); font-size: var(--t-small); font-weight: 500; color: var(--flint); }
.cuts { display: grid; gap: 2px; }
.cut {
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris);
}
.cut--current { box-shadow: var(--arris), inset 2px 0 0 var(--kyanite); }
.cut__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); }
.cut__title { font-size: var(--t-title); }
.cut__version { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); }
.cut__kind { font-size: var(--t-small); font-weight: 500; color: var(--flint); }
.cut__meta { display: grid; gap: var(--s3) var(--s5); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cut__meta > div { display: grid; gap: 2px; min-width: 0; }
.cut__meta dt { font-size: var(--t-small); font-weight: 500; color: var(--flint); }
.cut__meta dd.mono { overflow-wrap: anywhere; }
.cut__notes ul { display: grid; gap: var(--s2); padding: var(--s3) 0 0 1.1em; list-style: square; max-width: var(--measure); }
.cut__notes ul li::marker { color: var(--kerf); }
.cut__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.cut__download { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); font-weight: 500; }
.cut .disclosure > summary { min-height: 44px; box-shadow: none; padding: 0; font-weight: 500; font-variation-settings: "SHRP" 0; font-size: var(--t-small); color: var(--kyanite); justify-content: flex-start; gap: var(--s2); }


/* 27  News: lead, records, filters ---------------------------------------- */

.news-top { display: grid; gap: var(--s6) var(--gap); }
@media (min-width: 1024px) {
  .news-top { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: stretch; }
  .news-top__side { display: grid; gap: var(--s6); align-content: start; }
  /* The lead photo grows to the side column's height, so no empty block sits under the lead story */
  .news-top > .record--lead .record__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 22rem; }
  .news-top > .record--lead .record__media img { position: absolute; inset: 0; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .news-top__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
}
.news-top__side { display: grid; gap: var(--s6); }
.news-filter { margin-block: var(--s8) var(--s6); }
html:not(.js) .news-filter { display: none; }
.news-list { display: grid; gap: var(--s7) var(--gap); }
@media (min-width: 768px) { .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-more { margin-top: var(--s7); }
.news-more:has(> [hidden]:only-child) { display: none; }
.news-empty { margin-top: var(--s5); color: var(--flint); }

.record { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; scroll-margin-top: calc(var(--sticky-h) + var(--s5)); }
.record__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--photo-black); margin-bottom: var(--s2); }
.record__media img { width: 100%; height: 100%; object-fit: cover; }
.record__meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; color: var(--flint); }
.record__meta > * + *::before { content: "/"; margin-right: var(--s3); color: var(--kerf); }
.record__title { font-size: var(--t-title); }
.record__title a { color: var(--quartz); text-decoration: none; }
.record__title a:hover { color: var(--kyanite-hover); text-decoration: underline 2px; text-underline-offset: 4px; }
.record--lead .record__title { font-size: var(--t-heading); line-height: 1.1; letter-spacing: -.02em; font-variation-settings: "SHRP" 100; }
.record--lead .record__excerpt { font-size: var(--t-lead); line-height: 1.5; }
.record__excerpt { max-width: var(--measure); }
.record__more > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  color: var(--kyanite);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: underline 1px;
  text-underline-offset: 3px;
  list-style: none;
  cursor: pointer;
}
.record__more > summary::-webkit-details-marker { display: none; }
.record__more > summary::marker { content: ""; }
.record__more > summary:hover { color: var(--kyanite-hover); text-decoration-thickness: 2px; }
.record__more > summary .icon { width: 16px; height: 16px; transition: transform var(--t-menu) var(--ease-out); }
.record__more[open] > summary .icon { transform: rotate(180deg); }
.record__body { display: grid; gap: .8em; padding: var(--s2) 0 var(--s3) var(--s4); box-shadow: inset 1px 0 0 var(--kerf); max-width: var(--measure); }


/* 28  Forms ---------------------------------------------------------------- */

.form { display: grid; gap: var(--s5); }
.form__row { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form__actions { display: grid; gap: var(--s2); justify-items: start; margin-top: var(--s2); }
.form__note { font-size: var(--t-small); color: var(--flint); }
.form__error { display: flex; gap: var(--s2); align-items: flex-start; color: var(--jasper); font-weight: 500; max-width: var(--measure); }
.form__error .icon, .field__error .icon { margin-top: 1px; }
.field-honey { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: var(--s2); min-width: 0; align-content: start; }
.field__label { font-size: var(--t-small); font-weight: 500; line-height: 1.45; letter-spacing: .01em; color: var(--quartz); }
.field__control { position: relative; }
.field__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--kerf);
  border-radius: 0;
  background: var(--slab);
  color: var(--quartz);
  font: 400 var(--t-body)/1.2 var(--font-sans);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
textarea.field__input { height: auto; min-height: 104px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.field__input { cursor: pointer; }
.field__input::placeholder { color: var(--flint); opacity: 1; }
.field__input:hover { border-color: var(--flint); }
.field__input:focus, .field__input:focus-visible { outline: none; border-color: var(--kyanite); box-shadow: inset 0 0 0 1px var(--kyanite); }  /* 2px, drawn inset, no shift */
.field__input[aria-invalid="true"] { border-color: var(--jasper); box-shadow: inset 0 0 0 1px var(--jasper); }
.field__input[aria-invalid="true"]:focus { border-color: var(--kyanite); box-shadow: inset 0 0 0 1px var(--kyanite); }
.field__input:disabled { border-style: dashed; border-color: var(--kerf); color: var(--flint); cursor: not-allowed; box-shadow: none; }
.field__input[readonly] { border-style: dashed; border-color: var(--kerf); box-shadow: none; }
.field__input[readonly]:focus, .field__input[readonly]:focus-visible { border-color: var(--kyanite); box-shadow: inset 0 0 0 1px var(--kyanite); }
.field__input::-webkit-outer-spin-button, .field__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field__input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field__input:-webkit-autofill { -webkit-text-fill-color: var(--quartz); caret-color: var(--quartz); transition: background-color 9999s; }
.field__caret, .field__ok {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -10px;
  pointer-events: none;
}
.field__caret { color: var(--flint); }
.field__ok { color: var(--kyanite); opacity: 0; transition: opacity var(--t-hover) var(--ease-out); }
.field.is-valid .field__ok { opacity: 1; }
.field.is-valid .field__caret { display: none; }
textarea.field__input ~ .field__ok { top: 14px; margin-top: 0; }
.field__help { font-size: var(--t-small); line-height: 1.45; color: var(--flint); }
.field__error { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--t-small); font-weight: 500; line-height: 1.45; color: var(--jasper); }
/* fields inside Slab panels sit on the Ground so the boundary keeps 3:1 */
.panel .field__input, .finder .field__input, .slab .field__input, .order-panel .field__input { background: var(--ground); }
.field.is-loading .field__input { color: transparent; }
.field.is-loading .field__control::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 40%;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  background: var(--skel);
}

/* Checks and radios: square, Kyanite when chosen */
.checks { display: grid; gap: 0; border: 0; margin: 0; padding: 0; min-width: 0; }
.checks legend { float: left; width: 100%; margin-bottom: var(--s2); padding: 0; font-size: var(--t-small); font-weight: 500; color: var(--quartz); }   /* float: a normal row, not drawn into the top edge */
.check { display: flex; align-items: center; gap: var(--s3); min-height: 44px; cursor: pointer; }
.check input {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--kerf);
  border-radius: 0;
  background: var(--ground);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.check input:hover { border-color: var(--flint); }
.check input:checked { background: var(--kyanite); border-color: var(--kyanite); }
.check input[type="checkbox"]:checked::after {
  content: "";
  width: 11px;
  height: 6px;
  margin-top: -3px;
  border-left: 2px solid var(--on-kyanite);
  border-bottom: 2px solid var(--on-kyanite);
  transform: rotate(-45deg);
}
.check input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; background: var(--on-kyanite); }
.check input:focus-visible { outline: 2px solid var(--kyanite); outline-offset: 2px; }
.check__count { margin-left: auto; font-size: var(--t-small); color: var(--flint); }

/* Error summary: top of the form, role="alert", links to each field */
.error-summary {
  display: grid;
  gap: var(--s3);
  padding: var(--s5);
  border: 2px solid var(--jasper);
  background: var(--ground);
}
.error-summary__title { display: flex; align-items: center; gap: var(--s2); color: var(--jasper); font-size: var(--t-body); font-weight: 600; }
.error-summary ul { display: grid; gap: var(--s1); list-style: none; }
.error-summary a { display: inline-flex; align-items: center; min-height: 44px; color: var(--jasper); font-weight: 500; }
.error-summary a:hover { color: var(--jasper); }

/* Kerf progress line: 6 segments, one per required field */
.kerf-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; height: 2px; transition: gap .24s var(--ease-out); }
.kerf-progress > span { position: relative; overflow: hidden; background: color-mix(in oklab, var(--kerf) 40%, transparent); }
.kerf-progress > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--kyanite);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .24s var(--ease-out);
}
.kerf-progress > span.is-on::after { transform: scaleX(1); }
.kerf-progress.is-complete { gap: 0; }
.kerf-progress__text { font-size: var(--t-small); color: var(--flint); }

/* Order panel (cart and bulk): Slab block that holds the form */
.order-panel { display: grid; gap: var(--s5); padding: var(--s5); background: var(--slab); box-shadow: var(--arris); }
@media (min-width: 1024px) { .order-panel { padding: var(--s6); } }

/* Confirmation slab on saw-face arcs */
.confirm {
  display: grid;
  align-content: start;
  gap: var(--s4);
  padding: var(--s6) var(--s5);
  box-shadow: var(--arris), inset 2px 0 0 var(--kyanite);
}
@media (min-width: 1024px) { .confirm { padding: var(--s7) var(--s6); } }
.confirm__title { display: flex; align-items: center; gap: var(--s3); font-size: var(--t-heading); }
.confirm__title .icon { width: 32px; height: 32px; color: var(--kyanite); }
.block-mark {                 /* Martian Mono 500, step 3: the one large mono line */
  font-family: var(--font-mono);
  font-size: var(--t-title);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--quartz);
  overflow-wrap: anywhere;
}
.confirm__lines { display: grid; gap: var(--s3); }
.confirm__body { max-width: var(--measure); }


/* 29  Quantity stepper, cart lines, order summary, toast ----------------- */

.qty-stepper { display: inline-grid; grid-template-columns: 44px 56px 44px; height: 44px; }
.qty-stepper__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--kerf);
  background: transparent;
  color: var(--quartz);
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.qty-stepper__btn:hover { background: var(--slab); }
.qty-stepper__btn:active { transform: translateY(1px); }
.qty-stepper__btn:focus-visible { outline-offset: -2px; position: relative; z-index: 1; }
.qty-stepper__btn[aria-disabled="true"], .qty-stepper__btn:disabled { border-style: dashed; color: var(--flint); background: transparent; cursor: not-allowed; transform: none; }
.qty-stepper__input {
  width: 56px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--kerf);
  border-inline: 0;
  border-radius: 0;
  background: transparent;
  color: var(--quartz);
  font: 500 var(--t-body)/1 var(--font-sans);
  font-variant-numeric: tabular-nums lining-nums;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button, .qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper__input:hover { background: var(--slab); }
.qty-stepper__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--kyanite); }
.qty-stepper__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--jasper); }
.cart-line__qty .qty-error { flex-basis: 100%; margin-top: 0; }
.qty-error { display: flex; gap: var(--s2); align-items: flex-start; margin-top: var(--s2); font-size: var(--t-small); font-weight: 500; color: var(--jasper); }

.cart-lines { display: grid; gap: 2px; }
.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas:
    "media main"
    "media qty"
    "total total";
  gap: var(--s3) var(--s4);
  padding: var(--s4);
  background: var(--slab);
  box-shadow: var(--arris);
  overflow: hidden;
}
.dialog .cart-line, .drawer .cart-line { background: var(--ground); }
.cart-line__media { grid-area: media; width: 72px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo-black); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__main { grid-area: main; display: grid; gap: var(--s1); min-width: 0; }
.cart-line__name { font-size: var(--t-body); font-weight: 600; line-height: 1.3; font-variation-settings: "SHRP" 60; }
.cart-line__unit { font-size: var(--t-small); color: var(--flint); }
.cart-line__qty { grid-area: qty; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.cart-line__total {
  grid-area: total;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: var(--s3);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.cart-line__total .total { font-weight: 600; text-align: right; }
.cart-line__total .total.is-step { animation: rise .3s var(--ease-out-3); }
.cart-line .etch { font-size: 12px; line-height: 1.5; }   /* compact mark; still Martian Mono */
@media (min-width: 768px) {
  .cart-lines--page .cart-line {          /* name and line total on top, stepper (and its error) below */
    grid-template-columns: 96px minmax(0, 1fr) auto;
    grid-template-areas: "media main total" "media qty qty";
    align-items: start;
    gap: var(--s4) var(--s5);
    padding: var(--s5);
  }
  .cart-lines--page .cart-line__media { width: 96px; }
  .cart-lines--page .cart-line__total { display: grid; justify-items: end; gap: 0; padding-top: 0; box-shadow: none; min-width: 9ch; }
}
.cart-line--removed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 56px;
  padding: var(--s2) var(--s4);
  color: var(--flint);
}
.cart-line.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .24s var(--ease-out), transform .24s var(--ease-out); }

.order-empty { display: grid; gap: var(--s4); justify-items: start; padding: var(--s5) 0; }
html:not(.js) [data-order-skeleton] { display: none; }
.bulk-hint { display: grid; gap: var(--s3); justify-items: start; padding: var(--s4); box-shadow: inset 2px 0 0 var(--kerf); font-size: var(--t-small); }

.order-summary { display: grid; gap: var(--s3); }
.order-summary__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.order-summary__row dt { color: var(--flint); font-size: var(--t-small); font-weight: 500; }
.order-summary__row dd { font-weight: 500; text-align: right; }
.order-summary__row--total { padding-top: var(--s3); box-shadow: inset 0 1px 0 var(--hairline); }
.order-summary__row--total dt { color: var(--quartz); font-size: var(--t-body); }
.order-summary__row--total dd { font-size: var(--t-title); font-weight: 600; font-variation-settings: "SHRP" 60; text-shadow: var(--engrave); }
.order-collapse > summary {              /* phones: "3 items, $2,550" */
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--s4);
  background: var(--slab);
  box-shadow: var(--arris);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.order-collapse > summary::-webkit-details-marker { display: none; }
.order-collapse > summary .icon { transition: transform var(--t-menu) var(--ease-out); }
.order-collapse[open] > summary .icon { transform: rotate(180deg); }
@media (min-width: 1024px) {
  .order-collapse > summary { display: none; }
  .order-sticky { position: sticky; top: calc(var(--sticky-h) + var(--s5)); }
}

.order-toast {
  position: fixed;
  left: var(--gutter);
  bottom: var(--s4);
  z-index: var(--z-menu);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s4);
  max-width: min(520px, calc(100% - 2 * var(--gutter)));
  padding: var(--s2) var(--s4);
  background: var(--slab);
  box-shadow: var(--arris), inset 0 0 0 1px var(--kerf), inset 2px 0 0 var(--kyanite);
  color: var(--quartz);
  font-size: var(--t-small);
  font-weight: 500;
  transform: translateY(calc(100% + var(--s5)));
  visibility: hidden;
  transition: transform .3s var(--ease-out-3), visibility 0s linear .3s;
}
.order-toast.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease-out-3), visibility 0s; }
.order-toast a { display: inline-flex; align-items: center; min-height: 44px; }


/* 30  Shop: filter rail, sort --------------------------------------------- */

.shop { display: grid; gap: var(--s6) var(--gap); }
@media (min-width: 1024px) { .shop { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: start; } }
.shop__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.shop__count { font-size: var(--t-small); font-weight: 500; color: var(--flint); }
.shop__sort { min-width: 220px; }
.filters { display: grid; gap: var(--s5); }
html:not(.js) .filters, html:not(.js) .filter-toggle, html:not(.js) .shop__sort { display: none; }
@media (min-width: 1024px) {
  .filters { position: sticky; top: calc(var(--sticky-h) + var(--s5)); }
  .filter-toggle, .filters__head { display: none; }
}
@media (max-width: 1023.98px) {
  html.js .filters { display: none; }
  html.js .filters.is-open {          /* the Filter sheet (script.js manages focus, Esc and lenis) */
    display: grid;
    align-content: start;
    position: fixed;
    inset: 0;
    z-index: var(--z-dialog);
    padding: 0 var(--gutter) var(--s6);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--slab);
    animation: fade-in var(--t-menu) var(--ease-out);
  }
  .filters__head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; box-shadow: inset 0 -1px 0 var(--hairline); }
}
.filters .checks + .checks { padding-top: var(--s4); box-shadow: inset 0 1px 0 var(--hairline); }
.filters__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
@media (min-width: 1024px) { .filters__foot .btn-block { display: none; } }
@media (max-width: 1023.98px) { html.js .filters.is-open .filters__foot { position: sticky; bottom: 0; padding-block: var(--s4); background: var(--slab); box-shadow: inset 0 1px 0 var(--hairline); } }
.shop__main { min-width: 0; }
.shop__tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
.shop__tools .filter-toggle { height: 48px; }   /* matches the sort select beside it */
.shop__empty { display: grid; justify-items: start; gap: var(--s2); padding: var(--s6) 0; color: var(--flint); }
.shop__note { margin-top: var(--s5); }
@media (max-width: 479.98px) { .shop__tools, .shop__sort { width: 100%; } .shop__sort { min-width: 0; flex: 1; } }

/* Cart & Order Review: lines (cols 1-7) + summary and form (cols 8-12). Phones: summary, lines, form. */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5) var(--gap); align-items: start; }
.order-layout__lines { display: grid; gap: var(--s4); min-width: 0; }
@media (min-width: 1024px) {
  .order-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .order-layout > .order-collapse { grid-column: 2; grid-row: 1; }
  .order-layout > .order-layout__lines { grid-column: 1; grid-row: 1 / span 2; }
  .order-layout > .order-panel { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--sticky-h) + var(--s5)); }
}
.order-collapse .order-summary { padding: var(--s5); background: var(--slab); box-shadow: var(--arris); }


/* Engineering steps: numbered because it is a true process */
.steps { display: grid; gap: var(--s7) var(--gap); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
.step__body { display: grid; gap: var(--s2); }
.step__num {
  font-size: var(--t-title);
  font-weight: 600;
  line-height: 1;
  color: var(--flint);
  font-variation-settings: "SHRP" 100;
  font-variant-numeric: tabular-nums lining-nums;
}
.step__title { font-size: var(--t-title); }
.step__where { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-small); font-weight: 500; color: var(--flint); }


/* 31  Legal document column (66ch, numbered clauses) --------------------- */

.doc { max-width: var(--measure); }
.doc > * + * { margin-top: 1em; }
.doc h2, .doc h3 { font-size: var(--t-title); line-height: 1.25; letter-spacing: -.01em; font-variation-settings: "SHRP" 60; }
.doc ul, .doc ol:not(.doc__clauses) { padding-left: 1.25em; }
.doc li + li { margin-top: .4em; }
.doc__clauses { counter-reset: clause; display: grid; gap: var(--s7); padding: 0; list-style: none; }
.doc__clause { counter-increment: clause; display: grid; gap: .9em; scroll-margin-top: calc(var(--sticky-h) + var(--s5)); }
.doc__clause > h2::before, .doc__clause > h3::before {
  content: counter(clause) ".";
  display: inline-block;
  min-width: 2.4ch;
  margin-right: var(--s2);
  color: var(--flint);
  font-variant-numeric: tabular-nums lining-nums;
}
.doc__updated { font-size: var(--t-small); color: var(--flint); }
.doc-toc { display: grid; gap: 0; align-content: start; align-self: start; padding: var(--s5); background: var(--slab); box-shadow: var(--arris); }
@media (min-width: 1024px) { .doc-toc { position: sticky; top: calc(var(--sticky-h) + var(--s5)); } }
.doc-toc a { display: flex; align-items: center; min-height: 44px; }


/* 32  404: the empty core --------------------------------------------------- */

.empty-core { padding-block: var(--s7) var(--s9); }
.empty-core__inner { display: grid; gap: var(--s7); }
@media (min-width: 768px) { .empty-core__inner { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: center; } }
.core-art { display: grid; gap: 2px; width: 112px; }
.core-art > span { display: block; height: 56px; background: var(--slab); box-shadow: var(--arris), inset 0 0 0 1px var(--hairline); }
.core-art > span:nth-child(2) { height: 80px; }
.core-art > span:nth-child(4) { height: 72px; }
.core-art > span:nth-child(5) { height: 96px; }
.core-art > .is-missing { background: transparent; box-shadow: none; border: 1px dashed var(--kerf); }
.empty-core__links { display: flex; flex-wrap: wrap; gap: 0 var(--s5); margin-top: var(--s4); }
.empty-core__links a { display: inline-flex; align-items: center; min-height: 44px; }


/* 33  Next layer row -------------------------------------------------------- */

.next-layer { display: grid; gap: 2px; }
@media (min-width: 768px) { .next-layer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .next-layer { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.next-layer__link {
  display: grid;
  gap: var(--s1);
  align-content: start;
  min-height: 112px;
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris);
  color: var(--quartz);
  text-decoration: none;
  transition: box-shadow var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.next-layer__link:hover { color: var(--quartz); box-shadow: var(--arris), inset 2px 0 0 var(--kyanite); }
.next-layer__link:active { transform: translateY(1px); }
.next-layer__name { font-weight: 600; font-variation-settings: "SHRP" 60; }
.next-layer__desc { font-size: var(--t-small); color: var(--flint); }


/* 34  Footer ---------------------------------------------------------------- */

.site-footer {
  padding-block: var(--s8) var(--s6);
  background: var(--ground);
  box-shadow: inset 0 1px 0 var(--hairline);
  color: var(--flint);
  font-size: var(--t-small);
  line-height: 1.5;
}
.footer__top { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); } }
.footer__brand { display: grid; gap: var(--s4); align-content: start; justify-items: start; }
.footer__brand .brand__lockup { height: 28px; color: var(--quartz); }
.footer__brand p { max-width: 36ch; }
.footer__lines { display: grid; gap: 0; }
.footer__lines a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--gap); }
@media (min-width: 768px) { .footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer__heading { margin-bottom: var(--s2); color: var(--quartz); font-size: var(--t-small); font-weight: 500; line-height: 1.45; letter-spacing: .01em; font-variation-settings: "SHRP" 0; }
.footer__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--flint);
  text-decoration: none;
}
.footer__links a:hover { color: var(--quartz); text-decoration: underline 1px; text-underline-offset: 3px; }
.footer__links a[aria-current="page"] { color: var(--quartz); }
.footer__legal { display: grid; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s6); box-shadow: inset 0 1px 0 var(--hairline); }
.footer__legal p { max-width: 96ch; }
.footer__marks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.footer__social { display: flex; flex-wrap: wrap; gap: var(--s2); }
.footer__social .btn-icon { color: var(--flint); }
.footer__social .btn-icon:hover { color: var(--quartz); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  margin-top: var(--s6);
  padding-top: var(--s5);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0 var(--s5); list-style: none; }
.footer__bottom li { display: flex; align-items: center; min-height: 44px; }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__credits > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  color: var(--kyanite);
  text-decoration: underline 1px;
  text-underline-offset: 3px;
  list-style: none;
  cursor: pointer;
}
.footer__credits > summary::-webkit-details-marker { display: none; }
.footer__credits > summary::marker { content: ""; }
.footer__credits > summary:hover { color: var(--kyanite-hover); text-decoration-thickness: 2px; }
.footer__credits > summary .icon { width: 16px; height: 16px; transition: transform var(--t-menu) var(--ease-out); }
.footer__credits[open] > summary .icon { transform: rotate(180deg); }
.credits { display: grid; gap: var(--s1) var(--s5); padding: var(--s3) 0; }
@media (min-width: 768px) { .credits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .credits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.credits li { min-width: 0; overflow-wrap: anywhere; }
.credits a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__credit-line a { color: var(--quartz); }


/* 35  Skeletons ------------------------------------------------------------- */

.skel { display: block; background: var(--skel); }
.skel--line { height: 12px; margin-block: 6px; }
.skel--title { height: 22px; width: 60%; }
.skel--price { height: 22px; width: 5ch; }
.skel--btn { height: 48px; width: 180px; }
.skel--media { aspect-ratio: 4 / 5; }
.skel--layer { min-height: var(--h, 56px); box-shadow: inset 0 -1px 0 var(--hairline); background: transparent; position: relative; }
.skel--layer::before { content: ""; position: absolute; left: var(--s5); top: 50%; width: 40%; height: 14px; margin-top: -7px; background: var(--skel); }
.tile.is-skeleton { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .skel, .skel--layer::before, html.js .order-btn__count.is-loading { animation: breathe 1.6s ease-in-out infinite alternate; }
}


/* 36  Keyframes ------------------------------------------------------------- */

@keyframes wipe-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes rise { from { transform: translateY(6px); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes saw { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
@keyframes kerf-flash { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes breathe { from { opacity: .55; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes failsafe-show { to { visibility: visible; } }


/* 37  Reduced motion: color and opacity only ------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .btn-kerf, .btn-kerf__icon, .btn-block, .btn-icon, .seg__btn, .nav__trigger, .nav__link,
  .tile, .tile__media img, .layer__summary, .qty-stepper__btn, .hexmap__marker, .next-layer__link,
  .depth__name, .order-toast, .cart-line.is-leaving {
    transform: none !important;
  }
  .btn-kerf:hover .btn-kerf__icon, .btn-kerf:active, .btn-kerf:active .btn-kerf__icon,
  .btn-block:active, .btn-icon:active, .tile:hover .tile__media img, .tile:has(.tile__link:active),
  .layer__summary:active, .qty-stepper__btn:active, .next-layer__link:active { transform: none !important; }

  /* the hover kerf under a tile photo fades instead of drawing */
  .tile__media::after { transform: none; opacity: 0; transition: opacity var(--t-hover) linear; }
  .tile:hover .tile__media::after { opacity: 1; }

  /* drawers, menus and dropdowns: a 150ms fade */
  .nav-panel:not([hidden]), .theme__menu:not([hidden]),
  .sheet[open], .drawer[open], html.js .filters.is-open { animation: fade-in 150ms linear; }
  .sheet.is-closing, .drawer.is-closing { animation: fade-out 150ms linear forwards; }
  .nav__trigger .icon, .disclosure > summary .icon, .faq__q .icon, .layer__name .icon,
  .record__more > summary .icon, .sheet__group > summary .icon { transition: none; }

  /* no breathing skeletons, a static saw bar, no count bump */
  .skel, .skel--layer::before, .order-btn__count.is-loading { animation: none !important; }
  .btn-kerf[aria-busy="true"] .btn-kerf__icon::after { animation: none; width: 24px; margin-left: -12px; transform: none; }
  .order-btn__count.is-bump, .cart-line__total .total.is-step { animation: none; }
  .btn-kerf.is-flash::before { animation: none; }

  /* the kerf line is simply present, the core is fully lit */
  .hero__kerf-line { transform: none !important; }
  .core.is-scrubbing .core__layer:not(.is-lit) { box-shadow: var(--arris), inset 2px 0 0 var(--kyanite); opacity: 1; }

  /* the marquee becomes a static wrapped row */
  .marquee__inner { animation: none !important; width: auto; }
  .marquee__track { flex-wrap: wrap; gap: var(--s6); padding-right: 0; }   /* two marks per row on a phone */
  .marquee__track[aria-hidden="true"], .marquee__toggle { display: none; }

  .kerf-progress, .kerf-progress > span::after { transition: opacity 150ms linear; }
  .kerf-progress > span::after { transform: scaleX(1); opacity: 0; }
  .kerf-progress > span.is-on::after { opacity: 1; }
}


/* 38  Print ------------------------------------------------------------------ */

@media print {
  :root {
    color-scheme: light;
    --ground: #FBFBF9; --slab: #FBFBF9; --kerf: #717875; --quartz: #191C1B;
    --flint: #4A514F; --kyanite: #2A5C8B; --kyanite-hover: #204A72; --on-kyanite: #FBFBF9; --jasper: #A3392A;
    --arris: none;
  }
  body::after, .skip-link, .site-header__tools, .nav, .nav-panel, .setbar, .depth, .sheet, .drawer,
  .order-toast, .marquee__toggle, .filter-toggle, .filters, .footer__social, .btn-kerf__icon { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  .saw { background-image: none; }
  .band, .feature-band__media { break-inside: avoid; }
  .tile, .layer, .cut, .faq__item, .office, .doc__clause { break-inside: avoid; }
  .faq__a, .layer__specs { display: block !important; }
  .doc a[href^="http"]::after, .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: var(--flint); }
  h1, h2, h3 { break-after: avoid; }
}


/* 39  Page additions ---------------------------------------------------------
   Merged from the page and JS agents' requests (.design/stone-tech/css-requests). */

/* -- from index.css -- */
/* CSS request from the index.html page agent (Home). Tokens only; both themes follow the tokens. */

/* index.html sections 3, 4, 5, 8 and 10: the footnote and text-link block that closes a section
   (price note, spec footnote, "See all awards", links to Support & FAQ and Locations & Contact).
   Sits one step below the generated component; the 66ch measure keeps footnotes readable. */
.section__foot {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s6);
  max-width: var(--measure);
}
.section__foot p { text-wrap: pretty; }

/* index.html section 8 (Sample proof): the four award plaques sit one clear step below the staggered quotes,
   so the third quote's 128px offset never touches the plaque row. */
.proof__awards { margin-top: var(--s8); }
@media (min-width: 1024px) { .proof__awards { margin-top: var(--s9); } }

/* index.html section 8 (Sample proof), phones only: the four plaques sit two by two instead of one tall
   column (about 600px shorter on a 375px screen). Slightly tighter padding keeps the longest award title
   ("Semiconductor manufacturer of the year") inside a 163px column. */
@media (max-width: 599.98px) {
  .proof__awards .plaques { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .proof__awards .plaque { padding: var(--s4); }
}

/* index.html section 3 (Choose your line), from 768px: the 7 + 5 slabs share their bottom edge, so
   "Shop GPUs" and "Shop CPUs" line up and the taller GPU photo steps up like an offset stratum
   (top-aligned left a 130px void under the StonePower slab). */
@media (min-width: 768px) { #lines .line-split { align-items: end; } }

/* index.html section 7 (Our story), from 1024px: the heading and intro hold under the header while the taller
   timeline column scrolls past, instead of leaving a 450px empty column under them. */
@media (min-width: 1024px) {
  #story .grid > .span-5 { position: sticky; top: calc(var(--sticky-h) + var(--s5)); align-self: start; }
}

/* index.html section 5 (What the price buys), below 1024px: the drill core lies on its side as one 24px strip
   above the four layers (segment widths keep the desktop thickness ratio 96 : 128 : 88 : 144), instead of
   a 120px column of empty boxes with dead space beside it. The lit Kyanite edge stays on each segment's left. */
@media (max-width: 1023.98px) {
  #value .core__column { width: 100%; height: 24px; grid-template-columns: 96fr 128fr 88fr 144fr; }
  #value .core__seg, #value .core__seg:nth-child(n) { height: auto; }
}

/* -- from gpu-pages.css -- */
/* CSS request from the GPU set page agent (gpus.html, gpu-shop.html, gpu-drivers.html, gpu-news.html).
   Tokens only, so Basalt and Granite both follow; no new colors, radius 0, the arris is the only shadow. */

/* gpus.html section 6 (Latest StoneCold news, gen:news-latest gpu inside .hub-news): instead of three equal
   3:2 records in a row, the newest story sits large (cols 1-7) and the next two sit beside it as compact
   rows (photo left, text right), echoing the lead + side layout of GPU News. 768 to 1023px: the newest
   spans both columns and the other two share the row below, so no cell is left empty. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hub-news .news-list > .record:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .hub-news .news-list { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .hub-news .news-list > .record:first-child { grid-row: 1 / span 2; }
  .hub-news .news-list > .record:not(:first-child) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-content: start;
    gap: var(--s2) var(--s5);
  }
  .hub-news .news-list > .record:not(:first-child) > * { grid-column: 2; }
  .hub-news .news-list > .record:not(:first-child) > .record__media { grid-column: 1; grid-row: 1 / span 3; margin-bottom: 0; }
}

/* gpus.html section 7 (the EAR notice beside "Buying StoneCold for a business") and gpu-drivers.html section 1
   ("Check your download" beside the finder): a side note set off by one Kerf hairline, the inside-a-section
   group divider from DESIGN.md section 5. Left hairline from 1024px, top hairline below it. */
.side-note { align-self: start; padding-top: var(--s5); margin-top: var(--s5); box-shadow: inset 0 1px 0 var(--hairline); }
.side-note > p { max-width: var(--measure); }
@media (min-width: 1024px) {
  .side-note { padding-top: 0; margin-top: 0; padding-left: var(--s6); box-shadow: inset 1px 0 0 var(--hairline); }
}

/* gpu-shop.html section 2 (How an order request works): four steps of a true sequence, numbered, stacked as
   Slab blocks with 2px kerf gaps. The number uses the engineering-step figure style (.step__num). */
.order-steps { counter-reset: order-step; display: grid; gap: 2px; align-content: start; }
.order-steps__step {
  counter-increment: order-step;
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  gap: var(--s2) var(--s4);
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris);
}
.order-steps__step::before {
  content: counter(order-step);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: var(--t-title);
  font-weight: 600;
  line-height: 1.25;
  color: var(--flint);
  font-variation-settings: "SHRP" 100;
  font-variant-numeric: tabular-nums lining-nums;
}
.order-steps__step > * { grid-column: 2; }
.order-steps__step > p { max-width: var(--measure); }
.order-steps__title { font-size: var(--t-title); }
@media (min-width: 1024px) { .order-steps__step { padding: var(--s6); } }
@media (max-width: 1023.98px) { .order-steps { margin-top: var(--s5); } }   /* one column: clear the "Plan a bulk order" button above */

/* gpu-shop.html section 1: the spec footnote and the links under the shop line up with the tile grid
   (cols 4-12 of .shop, 3fr / 9fr) instead of starting under the filter rail. */
@media (min-width: 1024px) {
  .shop-section__foot { margin-left: calc((100% - var(--gap)) * .25 + var(--gap)); }
}

/* gpus.html section 3 (the price note under gen:spec sc5000), gpu-shop.html section 1 (the spec footnote under
   gen:shop gpu) and gpu-news.html section 1 (the spec footnote under gen:news gpu): a footnote that continues the generator's own footnote sits 8px below it, so the two read as one
   note instead of two blocks 32px apart. Needs .section__foot from css-requests/index.css. */
.section__foot.section__foot--snug { margin-top: var(--s2); }

/* gpu-news.html section 1 (the square filter tabs from gen:news gpu; cpu-news.html uses the same markup): below
   600px the four tabs wrap and leave "Manufacturing" alone on a second row inside the border. Set them as an even
   2 x 2 block instead, with 1px Kerf lines between the cells; selected and hover keep the Slab fill. */
@media (max-width: 599.98px) {
  .news-filter.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; width: 100%; background: var(--kerf); }
  .news-filter .seg__btn { justify-content: center; background: var(--ground); box-shadow: none; }
  .news-filter .seg__btn:hover,
  .news-filter .seg__btn[aria-pressed="true"] { background: var(--slab); }
}

/* -- from order-pages.css -- */
/* CSS request from the order pages agent (products.html, cart.html, bulk-orders.html).
   Tokens only, so Basalt and Granite both follow; no new colors, radius 0, no shadows beyond the hairline.
   Also uses .section__foot (css-requests/index.css), .section__foot--snug, .side-note and .order-steps
   (css-requests/gpu-pages.css): please keep those when merging. */

/* bulk-orders.html section 1 (What changes at 50 units): the volume notes as a plain term list.
   One Kerf hairline above the group, rows separated by padding only; the term sits in a narrow Flint column from 768px,
   and stacks above its text on phones. Not cards: a reading list inside the 66ch measure. */
.volume-notes { display: grid; margin-top: var(--s2); max-width: var(--measure); box-shadow: inset 0 1px 0 var(--hairline); }
.volume-notes > div {
  display: grid;
  gap: var(--s1) var(--s5);
  padding: var(--s4) 0;
}
.volume-notes dt { font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; color: var(--flint); }
.volume-notes dd { text-wrap: pretty; font-variant-numeric: tabular-nums lining-nums; }
@media (min-width: 768px) {
  .volume-notes > div { grid-template-columns: 14ch minmax(0, 1fr); align-items: baseline; }
}

/* -- from company-pages.css -- */
/* CSS request from the company-pages agent: engineering.html, distribution.html, networking.html, story.html, awards.html.
   Tokens only, no colors of its own, so Basalt (dark) and Granite (light) both follow the tokens.
   These pages also use .section__foot from css-requests/index.css (closing footnote and link block). */

/* Ledger: one record per row, each row a Slab block, rows split by 2px kerf gaps (like .timeline).
   engineering.html (#longevity: five longevity tests), distribution.html (#lead-times: shipping regions and lead times),
   networking.html (#program: the three partner program tiers). */
.ledger { display: grid; gap: 2px; padding: 0; list-style: none; }
.ledger__row {
  display: grid;
  gap: var(--s3) var(--gap);
  align-content: start;
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris);
}
.ledger__title { font-size: var(--t-title); }
.ledger__body { display: grid; gap: var(--s2); min-width: 0; }
.ledger__body > p { max-width: var(--measure); text-wrap: pretty; }
.ledger__for { font-size: var(--t-small); font-weight: 500; color: var(--flint); }      /* networking.html: who a tier is for */
.ledger__meta { display: grid; gap: var(--s3); }                                        /* distribution.html: ships from + lead time */
.ledger__meta > div { display: grid; gap: 2px; align-content: start; }
.ledger__meta dt { font-size: var(--t-small); font-weight: 500; color: var(--flint); }
.ledger__meta dd { font-variant-numeric: tabular-nums lining-nums; }
@media (min-width: 600px) { .ledger__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* --wide (distribution.html, networking.html): title in the left third, body on the right, from 1024px */
@media (min-width: 1024px) {
  .ledger--wide .ledger__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
}

/* distribution.html (#regions): air between the world hex map legend and the eight region records below it */
.after-map { margin-top: var(--s7); }

/* distribution.html (#hubs): the three hubs sit in a 5-column text column beside the warehouse photo,
   so they stack as one column of slabs with kerf gaps instead of three cards across */
.ship-hubs .hubs { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: var(--s2); }

/* awards.html (#marks): the compliance marks as the subject of the section, one step larger than the footer row */
.compliance--lg { gap: var(--s3); }
.compliance--lg .compliance__mark {
  min-width: 88px;
  height: 56px;
  padding: 0 var(--s4);
  font-size: var(--t-title);
}

/* awards.html (#awards), phones only: the ten plaques sit two by two instead of one tall column (about
   1,300px shorter at 375px). Same treatment as .proof__awards on Home; tighter padding keeps the longest
   title ("Semiconductor manufacturer of the year") inside a 163px column. */
@media (max-width: 599.98px) {
  .awards-all .plaques { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .awards-all .plaque { padding: var(--s4); }
}

/* -- from support-legal-pages.css -- */
/* CSS request from the support-and-legal page agent: support.html, locations.html, warranty.html, privacy.html, terms.html, 404.html.
   Tokens only, no colors of its own, so Basalt (dark) and Granite (light) both follow the tokens. */

/* support.html (#lines): the "five office locations" link line under the two support lines needs air above it */
.support-more { margin-top: var(--s5); }

/* support.html (#drivers): the two driver-page shortcuts (a.next-layer__link in a ul.kerf-stack) sit a little below the lead */
.support-shortcuts { margin-top: var(--s3); }

/* support.html (#faq): spec footnote under the FAQ groups */
.support-footnote { margin-top: var(--s6); }

/* support.html (#faq): the FAQ heading column stays in view beside the long FAQ list on desktop */
@media (min-width: 1024px) {
  .support-faq__head { position: sticky; top: calc(var(--sticky-h) + var(--s6)); align-self: start; }
}

/* warranty.html (#after-order): the two sub-blocks (Cancellation, Returns) get section-level air between them,
   and scroll clear of the sticky header when reached from the depth marks */
.warranty-after { gap: var(--s6); }
.warranty-after > [id] { scroll-margin-top: calc(var(--sticky-h) + var(--s5)); }

/* locations.html (gen:offices): on phones the clock icon sat alone on its own line because the hours text wrapped as a
   whole flex item. Let the hours text shrink and wrap beside the icon; the open status follows (or wraps below). */
@media (max-width: 767.98px) {
  .office__hours > span:not(.office__status) { flex: 1 1 0; min-width: 0; }
}

/* -- from js-agent.css -- */
/* CSS request from the JS agent (script.js testing, 2026-10-16). Tokens only.

   Filter sheet (shop pages, below 1024px): html.js .filters.is-open has padding-bottom var(--s6) (32px), and a
   sticky child stops at the padding edge, so .filters__foot ("Show models" / "Clear filters") sticks 32px above
   the bottom of the sheet and the checkbox rows scroll visibly underneath it (seen at 375x812 on cpu-shop.html).
   A negative sticky offset makes it flush with the sheet's bottom edge while scrolling; at the end of the list it
   rests in its normal place. Tested in the browser with an injected style. Put this after styles.css line 2404. */
@media (max-width: 1023.98px) {
  html.js .filters.is-open .filters__foot { bottom: calc(-1 * var(--s6)); }
}


/* 40  Product pages (one per model: stonecold-sc1000.html ... stonepower-7.html, gen:product) ------------ */

.pdp { padding-block: var(--s6) 0; }
.pdp > .strata { margin-top: var(--s8); }
.pdp__grid { margin-top: var(--s5); row-gap: var(--s6); }
.pdp__media {
  position: relative;
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--photo-black);
  box-shadow: inset 0 0 0 1px var(--kerf);
}
.pdp__media::after {                 /* the cut that exposes the silicon: one Kyanite kerf under the photo */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--kyanite);
}
.pdp__img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) { .pdp__media { aspect-ratio: 4 / 3; } }   /* name and price reach the first phone screen */
.pdp__info { display: grid; gap: var(--s5); align-content: start; }
.pdp__kicker { font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; color: var(--flint); }
.pdp__title { margin-top: calc(-1 * var(--s3)); }
.pdp__use { margin-top: calc(-1 * var(--s3)); font-size: var(--t-lead); line-height: 1.5; }
.pdp__blurb { max-width: 52ch; }
.pdp__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s4) var(--s5);
  padding: var(--s5);
  background: var(--slab);
  box-shadow: var(--arris), inset 2px 0 0 var(--kyanite);
}
.pdp__price { flex: 1 0 100%; font-size: var(--t-heading); line-height: 1.1; letter-spacing: -.02em; text-shadow: var(--engrave); }
.pdp__each { font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; color: var(--flint); text-shadow: none; }
.pdp__qty { display: grid; gap: var(--s2); }
.pdp__qty-label { font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; color: var(--flint); }
.pdp__note { margin-top: calc(-1 * var(--s3)); }
.pdp__facts { display: grid; gap: var(--s3); font-size: var(--t-small); line-height: 1.45; }
.pdp__facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.pdp__facts .icon { width: 20px; height: 20px; color: var(--kyanite); }
.pdp__facts a { display: inline-block; padding-block: 2px; }   /* 24px target height */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .pdp__media { grid-column: 1 / span 4; }
  .pdp__info { grid-column: 5 / span 4; }
}
@media (min-width: 1024px) {
  .pdp__grid { row-gap: 0; }
  .pdp__media { grid-column: 1 / span 6; position: sticky; top: calc(var(--sticky-h) + var(--s5)); }
  .pdp__info { grid-column: 8 / span 5; }
}

.pdp__specs { margin-top: var(--s6); }
.pdp__specs + .footnote { margin-top: var(--s5); }

.pdp-uses { display: grid; }
.pdp-uses__item { display: grid; gap: var(--s2); padding-block: var(--s5); box-shadow: inset 0 1px 0 var(--kerf); }
.pdp-uses__item:last-child { padding-bottom: 0; }
.pdp-uses__item p { max-width: 52ch; color: var(--flint); }
@media (min-width: 1024px) { .pdp-uses { grid-column: 7 / span 6; } }

#drivers .cuts { margin: 0; }

.pdp-line { display: grid; margin-top: var(--s6); }
.pdp-line__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "use use";
  gap: 2px var(--s4);
  padding: var(--s4);
  box-shadow: inset 0 -1px 0 var(--hairline);
  transition: background-color var(--t-hover) var(--ease-out);
}
.pdp-line__row:first-child { box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline); }
.pdp-line__name { grid-area: name; font-weight: 600; font-variation-settings: "SHRP" 60; color: var(--quartz); text-decoration: none; }
a.pdp-line__name::after { content: ""; position: absolute; inset: 0; }   /* the whole row opens the model */
a.pdp-line__name:hover { color: var(--quartz); }
a.pdp-line__name:focus-visible { outline: none; }
.pdp-line__row:has(a.pdp-line__name:hover) { background: var(--slab); }
.pdp-line__row:has(a.pdp-line__name:focus-visible) { outline: 2px solid var(--kyanite); outline-offset: -2px; }
.pdp-line__use { grid-area: use; font-size: var(--t-small); color: var(--flint); }
.pdp-line__price { grid-area: price; }
.pdp-line__row.is-current { background: var(--slab); box-shadow: inset 2px 0 0 var(--kyanite), inset 0 -1px 0 var(--hairline); }
.pdp-line__here {
  margin-left: var(--s3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--kyanite);
}
.pdp-line__more { margin-top: var(--s5); }
.pdp-line__more a { display: inline-block; padding-block: 2px; }
@media (min-width: 768px) {
  .pdp-line__row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
    grid-template-areas: "name use price";
    align-items: center;
    gap: var(--s5);
    min-height: 56px;
    padding-block: var(--s3);
  }
  .pdp-line__price { justify-self: end; }
}

/* Order lines (drawer, cart): the model name opens its page */
.cart-line__link { display: inline-block; padding-block: 2px; color: var(--quartz); text-decoration: none; }
.cart-line__link:hover { color: var(--quartz); text-decoration: underline 1px; text-underline-offset: 3px; }

/* Ladder layer: a link to the model's page under its specs */
.layer__page { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); font-weight: 500; letter-spacing: .01em; }


/* 41  Home hero: the processor in three.js (js/hero3d.js) ----------------------------------------------- */

.hero3d {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 460px;
  background: #767c77;                 /* the studio surface; the canvas paints the lit centre over it */
  overflow: hidden;
  isolation: isolate;
}
.hero3d__canvas, .hero3d__still, .hero3d__scrim, .hero3d__mark { position: absolute; inset: 0; }
.hero3d__canvas { display: block; width: 100%; height: 100%; }
.hero3d__still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
html.hero3d-on .hero3d__still { display: none; }
html.js:not(.hero3d-off) .hero3d__still { visibility: hidden; }   /* scripts on: the still waits until WebGL is known to be missing */
.hero3d__scrim {
  background: radial-gradient(ellipse 62% 58% at 50% 52%, rgb(21 25 23 / .62), transparent 72%);
  opacity: 0;
  pointer-events: none;
}
.hero3d__mark {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--s4);
  padding: 0 var(--gutter);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.hero3d__mark svg { width: min(78vw, 920px); height: auto; fill: #fff; filter: drop-shadow(0 2px 28px rgb(0 0 0 / .38)); }
/* No scripts, or no WebGL (hero3d-off, set by js/hero3d.js or the 5s failsafe in the head): the still carries the finished state */
html:not(.js) .hero3d__mark, html.hero3d-off .hero3d__mark, html:not(.js) .hero3d__scrim, html.hero3d-off .hero3d__scrim { opacity: 1; }
html:not(.js) .hero3d__mark, html.hero3d-off .hero3d__mark { transform: translateY(14%); }   /* and the wordmark clears the etched name on it */
.hero--3d .hero__kerf { position: relative; z-index: 1; }


/* Portfolio sample copy (tools/export-samples.py): the link back to the studio in the sample bar */
.concept-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.concept-bar a:hover { color: inherit; text-decoration-thickness: 2px; }
.sample-note { margin-top: 12px; max-width: 60ch; }
