/* A device drawn as an anatomy figure on warm paper: the plate, its corners, the grain and the
   light, and the words under it. public/anatomy-reveal.js animates the figure inside. */
.anatomy-reveal { width: 100%; margin: 0 auto; padding: 56px var(--site-gutter, 24px) 48px; box-sizing: border-box; color: var(--site-paper, #fef9ed); scroll-margin-top: 80px; }
.anatomy-reveal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 1320px; margin: 0 auto 22px; }
.anatomy-reveal-head p { margin: 0 0 8px; font: 500 11px/1.5 var(--site-font, system-ui); letter-spacing: -.01em; text-transform: uppercase; color: var(--site-muted, #aaa79f); }
.anatomy-reveal-head p::before { content: '// '; }
.anatomy-reveal-head h2 { margin: 0; font: 600 clamp(22px, 2.6vw, 30px)/1.15 var(--site-display, var(--site-font, system-ui)); letter-spacing: -.01em; text-transform: uppercase; }
.anatomy-reveal-head h2 .gs-dot { color: var(--site-yellow, #fbe154); }
.anatomy-reveal-all { flex: none; margin-bottom: 4px; font: 500 12px/1.4 var(--site-font, system-ui); letter-spacing: .02em; text-transform: uppercase; color: var(--site-muted, #aaa79f); text-decoration: none; }
.anatomy-reveal-all:hover, .anatomy-reveal-all:focus-visible { color: var(--site-yellow, #fbe154); }
.anatomy-reveal-plate { --gx: 50%; --gy: 45%; --gr: 62%; position: relative; width: 100%; max-width: 1320px; margin: 0 auto; aspect-ratio: 16 / 10; overflow: hidden; background: #f1ece2; color: #26262a; border-radius: 2px; }
.anatomy-reveal:not([data-anatomy-eager]) .anatomy-reveal-plate { max-height: max(280px, calc(100svh - 340px)); }
/* Keep commerce reachable in the page without covering the interactive drawing. */
.product-page:has(.anatomy-reveal) .product-dock { position: relative; inset: auto; transform: none; margin: 0 auto 32px; }
.anatomy-reveal-paper { position: absolute; inset: -10%; pointer-events: none;
  background:
    radial-gradient(var(--gr) var(--gr) at var(--gx) var(--gy), rgba(255, 253, 247, .85), rgba(255, 253, 247, 0) 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .1 0'/%3E%3C/filter%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .44 0 0 0 0 .36 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    #f1ece2;
  background-size: auto, 320px 320px, auto; }
.anatomy-reveal-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(125% 95% at 50% 50%, transparent 58%, rgba(110, 90, 60, .14) 100%); }
.anatomy-reveal-stage { position: absolute; inset: 0; cursor: grab; outline: none; touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; }
.anatomy-reveal-stage:active { cursor: grabbing; }
.anatomy-reveal-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--site-yellow, #fbe154); }
.anatomy-reveal-stage .iso-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anatomy-reveal-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.anatomy-reveal-stage .anatomy-halo { fill: #8a8a80; opacity: 0; filter: blur(8px); transition: opacity .4s; }
.anatomy-reveal-stage .iso-face-text[data-tone="lit"] { fill: var(--anatomy-lit); }
.anatomy-reveal-stage .anatomy-ink { font-family: var(--anatomy-mono); letter-spacing: .04em; }
.anatomy-reveal-stage .iso-face-text[data-tone="mid"] { fill: var(--anatomy-mid); }
.anatomy-reveal-frame { position: absolute; inset: 22px; pointer-events: none; border: 1px solid rgba(60, 50, 38, .2); }
.anatomy-reveal-frame i { position: absolute; width: 9px; height: 9px; border: 0 solid rgba(60, 50, 38, .5); }
.anatomy-reveal-frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.anatomy-reveal-frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.anatomy-reveal-frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.anatomy-reveal-frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.anatomy-reveal-corner { position: absolute; pointer-events: none; font: 500 10.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: rgba(60, 52, 42, .62); }
.anatomy-reveal-corner[data-anatomy-corner="fig"] { top: 12px; left: 12px; text-transform: none; letter-spacing: .04em; color: rgba(34, 30, 26, .85); }
.anatomy-reveal-corner[data-anatomy-corner="title"] { top: 12px; right: 12px; }
.anatomy-reveal-corner[data-anatomy-corner="hint"] { bottom: 12px; left: 12px; }
.anatomy-reveal-corner[data-anatomy-corner="readout"] { bottom: 12px; right: 12px; text-transform: none; letter-spacing: .04em; color: rgba(34, 30, 26, .85); font-variant-numeric: tabular-nums; }
.anatomy-reveal-status { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); margin: 0; font: 500 12px/1.4 var(--site-font, system-ui); color: rgba(60, 52, 42, .7); pointer-events: none; }
.anatomy-reveal-status:empty { display: none; }
.anatomy-reveal-foot { max-width: 1320px; margin: 16px auto 0; }
.anatomy-reveal-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.anatomy-reveal-controls button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--site-muted, #aaa79f); border-radius: 3px; background: none; color: var(--site-paper, #fef9ed); font: 500 12px/1.4 var(--site-font, system-ui); cursor: pointer; }
.anatomy-reveal-primary li:first-child button { border-color: var(--site-yellow, #fbe154); background: var(--site-yellow, #fbe154); color: #202020; }
.anatomy-reveal-controls button:hover, .anatomy-reveal-controls button[aria-pressed="true"] { border-color: var(--site-yellow, #fbe154); box-shadow: inset 0 -2px var(--site-yellow, #fbe154); }
.anatomy-reveal-controls button:focus-visible, .anatomy-reveal-details summary:focus-visible { outline: 2px solid var(--site-yellow, #fbe154); outline-offset: 4px; }
.anatomy-reveal-controls[hidden], .anatomy-reveal-controls button[hidden] { display: none; }
.anatomy-reveal-details { margin-top: 8px; }
.anatomy-reveal-details summary { width: fit-content; min-height: 44px; box-sizing: border-box; padding: 13px 0; color: var(--site-muted, #aaa79f); font: 500 12px/1.5 var(--site-font, system-ui); cursor: pointer; }
.anatomy-reveal-details summary:hover { color: var(--site-paper, #fef9ed); }
.anatomy-reveal-details[open] .anatomy-reveal-controls { margin: 4px 0 16px; }
.anatomy-reveal-help { max-width: 64ch; margin: 0 0 12px; color: var(--site-muted, #aaa79f); font-size: 13px; line-height: 1.6; }
.anatomy-reveal-caption { max-width: 64ch; margin: 0; font-size: 13px; line-height: 1.6; color: var(--site-muted, #aaa79f); }
.anatomy-reveal-caption a { color: inherit; text-underline-offset: 3px; }
.anatomy-reveal[data-anatomy-mode="film"] .anatomy-reveal-stage { cursor: default; }
@media (max-width: 760px) {
  .anatomy-reveal { padding: 40px var(--site-gutter, 16px) 36px; }
  .anatomy-reveal-plate { aspect-ratio: 1 / 1; }
  .anatomy-reveal-frame { inset: 14px; }
  .anatomy-reveal-corner { font-size: 9.5px; }
  .anatomy-reveal-corner[data-anatomy-corner="fig"], .anatomy-reveal-corner[data-anatomy-corner="hint"] { left: 8px; }
  .anatomy-reveal-corner[data-anatomy-corner="title"], .anatomy-reveal-corner[data-anatomy-corner="readout"] { right: 8px; }
  /* The labels sit on the frame line (inset 14px), as they do on wide plates, rather than across it. */
  .anatomy-reveal-corner[data-anatomy-corner="fig"], .anatomy-reveal-corner[data-anatomy-corner="title"] { top: 4px; }
  .anatomy-reveal-corner[data-anatomy-corner="hint"], .anatomy-reveal-corner[data-anatomy-corner="readout"] { bottom: 4px; }
  .anatomy-reveal-head { gap: 12px; align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  /* Give the instruction and part count their own lines on narrow plates. */
  .anatomy-reveal-frame { bottom: 28px; }
  .anatomy-reveal-corner[data-anatomy-corner="hint"] { bottom: 18px; }
  .anatomy-reveal-corner[data-anatomy-corner="title"] { max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; }
  .anatomy-reveal-corner[data-anatomy-corner="readout"] { max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .anatomy-reveal-stage .anatomy-halo { transition: none; }
}
