/* Chapter 09 Imagery + chapter 11 Icons (prefix im-). Uses kit tokens only. */

/* ─── shared photo helpers ──────────────────────────────────────────────── */
.im-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.im-fill { position: absolute; inset: 0; }
.im-tag { position: absolute; z-index: 3; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--bp-line-strong); font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bp-white); pointer-events: none; }
.im-tag.is-l { left: 12px; } .im-tag.is-r { right: 12px; }
.bb-plate.is-do .im-tag.is-l, .bb-plate.is-dont .im-tag.is-l { left: 40px; }
.im-grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.im-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgb(0 0 0 / .86) 100%); }
/* edge light: one directional light from the top edge, violet-led, plus a 1 px horizon at the bottom. No blobs. */
.im-wash { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
  background: linear-gradient(180deg, rgb(139 123 255 / .24) 0%, rgb(118 140 255 / .08) 22%, transparent 42%); }
.im-wash::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bp-edge); opacity: .8; }
.im-cropbox { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); aspect-ratio: var(--ar); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent); mask-composite: intersect; }
.im-cropbox img { position: absolute; max-width: none; display: block; }
.im-head { position: absolute; z-index: 2; left: 7%; right: 7%; bottom: 8%; display: grid; gap: 8px; }
.im-head small { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bp-grey); }
.im-head b { font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; color: var(--bp-white); }

/* ─── hero mosaic ───────────────────────────────────────────────────────── */
.im-hero { position: relative; border-radius: 16px; overflow: hidden; background: var(--bp-glow-soft); box-shadow: inset 0 0 0 1px var(--bp-line); }
.im-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(28px, 5.4vw, 64px); gap: clamp(6px, 1vw, 10px); padding: clamp(10px, 2vw, 22px); }
.im-hero-grid > div { position: relative; overflow: hidden; border-radius: 8px; background: var(--bp-raise-2); box-shadow: 0 24px 40px -24px rgb(0 0 0 / .9); }
.im-hero-grid > div::after { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); pointer-events: none; }
.im-hero-grid .a { grid-column: 1 / 8; grid-row: 1 / 6; }
.im-hero-grid .b { grid-column: 8 / 13; grid-row: 1 / 4; }
.im-hero-grid .c { grid-column: 8 / 13; grid-row: 4 / 6; }
.im-hero-grid .d { grid-column: 1 / 5; grid-row: 6 / 8; }
.im-hero-grid .e { grid-column: 5 / 9; grid-row: 6 / 8; }
.im-hero-grid .f { grid-column: 9 / 13; grid-row: 6 / 8; }
.im-hero-cap { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; padding: 4px clamp(14px, 2.4vw, 26px) clamp(16px, 2.4vw, 24px); }
.im-hero-cap p { margin: 0; font-size: clamp(22px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.im-hero-cap p span { color: var(--bp-grey); font-weight: 650; }
.im-mono { font: 11.5px var(--mono); color: var(--bp-grey-quiet); }

/* ─── pillars ───────────────────────────────────────────────────────────── */
.im-pillar .bb-stage { --ar: 4 / 5; }
.im-pillar h4 { margin: 14px 0 4px; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.im-pillar p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bp-grey); }
.im-pillar .im-n { display: block; margin-top: 14px; font: 11px var(--mono); color: var(--bp-grey-quiet); }

/* mac window chrome used by screenshot plates */
.im-win { position: relative; width: 86%; border-radius: 10px; overflow: hidden; background: #1c1c1f;
  box-shadow: 0 0 0 .5px rgb(255 255 255 / .22), 0 30px 60px -18px rgb(0 0 0 / .95), 0 12px 24px -12px rgb(0 0 0 / .7); }
.im-win-bar { position: relative; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: linear-gradient(180deg, #2a2a2d, #232326); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .6); }
.im-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .25); }
.im-win-bar i:nth-child(2) { background: #febc2e; } .im-win-bar i:nth-child(3) { background: #28c840; }
.im-win-bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 10.5px; font-weight: 600; color: #bdbdc2; pointer-events: none; }
.im-win-body { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.im-win.is-sm { width: 78%; border-radius: 8px; }
.im-win.is-sm .im-win-bar { height: 18px; gap: 4px; padding: 0 7px; } .im-win.is-sm .im-win-bar i { width: 6px; height: 6px; }
.im-win.is-sm .im-win-bar span { font-size: 8px; }

/* SVG desk scenes */
.im-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ─── contact sheet ─────────────────────────────────────────────────────── */
.im-sheet { padding: clamp(14px, 2.4vw, 26px); border-radius: 16px; background: var(--bp-raise); box-shadow: inset 0 0 0 1px var(--bp-line); }
.im-sheet-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.im-sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.im-frame { margin: 0; min-width: 0; }
.im-frame > div { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--bp-raise-3); }
.im-frame > div::after { content: ""; position: absolute; inset: 0; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); pointer-events: none; }
.im-frame figcaption { display: grid; gap: 1px; margin-top: 7px; font: 10.5px/1.35 var(--mono); color: var(--bp-grey-quiet); }
.im-frame figcaption b { font-weight: 500; color: var(--bp-white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-frame.is-add > div { display: grid; place-items: center; padding: 10px; background: none; border: 1px dashed var(--bp-line-strong); text-align: center; font-size: 12px; line-height: 1.4; color: var(--bp-grey-quiet); }
.im-frame.is-add > div::after { display: none; }

/* ─── screenshot anatomy ────────────────────────────────────────────────── */
.im-anat-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.im-anat { position: relative; width: 72%; }
.im-pin { position: absolute; z-index: 4; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--bp-white); color: #000;
  font: 600 10.5px var(--mono); box-shadow: 0 0 0 3px rgb(0 0 0 / .55); }
.im-pin.is-l { left: -38px; } .im-pin.is-r { right: -38px; }
.im-pin.is-l::after, .im-pin.is-r::after { content: ""; position: absolute; top: 50%; width: 15px; height: 1px; background: rgb(255 255 255 / .55); }
.im-pin.is-l::after { left: 100%; } .im-pin.is-r::after { right: 100%; }
.im-pin.is-in { position: static; width: 16px; height: 16px; font-size: 9px; box-shadow: none; }
.im-legend { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: im; }
.im-legend li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--bp-line); font-size: 14px; line-height: 1.5; color: var(--bp-grey); }
.im-legend li:first-child { border-top: 0; padding-top: 2px; }
.im-legend li::before { counter-increment: im; content: counter(im); position: absolute; left: 0; top: 12px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bp-white); color: #000; font: 600 10.5px var(--mono); }
.im-legend li:first-child::before { top: 2px; }
.im-legend b { color: var(--bp-white); font-weight: 600; }
.im-capbar { position: relative; z-index: 3; display: flex; gap: 8px; align-items: center; white-space: nowrap; padding: 6px 12px; border-radius: 999px;
  background: rgb(20 20 22 / .9); box-shadow: inset 0 0 0 1px var(--bp-line-strong); font: 10.5px var(--mono); color: var(--bp-grey); }
.im-capbar b { color: var(--bp-white); font-weight: 500; }

/* crop steps */
.im-crop { position: absolute; inset: 0; display: grid; place-items: center; }
.im-crop-guides { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgb(255 255 255 / .28) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgb(255 255 255 / .28) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
              linear-gradient(180deg, transparent calc(33.33% - .5px), rgb(255 255 255 / .28) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgb(255 255 255 / .28) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.im-safe { position: absolute; z-index: 2; inset: 8%; border: 1px dashed var(--bp-blue); border-radius: 4px; pointer-events: none; }
.im-crop1 { position: relative; width: 62%; margin-top: -14px; }
.im-safe.is-out { inset: -14px -5%; }
.im-safe.is-out span { left: -1px; top: calc(100% + 6px); background: none; padding: 0; }
.im-safe span.is-bl { top: auto; bottom: 5px; }
.im-safe span { position: absolute; left: 6px; top: 5px; font: 9.5px var(--mono); letter-spacing: .04em; color: var(--bp-blue); background: rgb(0 0 0 / .7); padding: 1px 5px; border-radius: 3px; }
.im-guides-off .im-crop-guides, .im-guides-off .im-safe { display: none; }

/* ─── treatments ────────────────────────────────────────────────────────── */
.im-focus-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(12px) brightness(.45) saturate(.75); }
.im-focus-win { position: absolute; inset: 10% 12%; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 .5px rgb(255 255 255 / .3), 0 30px 60px -20px #000; }
.im-ladder { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.im-ladder > div { position: relative; overflow: hidden; }
.im-ladder > div > span { position: absolute; z-index: 1; left: 8px; right: 6px; bottom: 12px; display: grid; gap: 4px; font-size: 10px; line-height: 1.3; color: var(--bp-white); }
.im-ladder > div > span b { font-size: 14px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.im-ladder > div > em { z-index: 1; }
.im-ladder > div > em { position: absolute; left: 6px; bottom: 74px; padding: 1px 5px; border-radius: 4px; background: rgb(0 0 0 / .7); font: normal 10px var(--mono); color: var(--bp-white); }
.im-ladder > div > i { position: absolute; inset: 0; background: #000; }
.im-ladder > div + div { box-shadow: inset 1px 0 0 rgb(255 255 255 / .12); }

/* compare slider */
.im-cmp { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--bp-line); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.im-cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--v, 52%)); }
.im-cmp-line { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--v, 52%); width: 1px; background: var(--bp-white); box-shadow: 0 0 18px rgb(0 0 0 / .7); pointer-events: none; }
.im-knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bp-white);
  box-shadow: 0 6px 20px rgb(0 0 0 / .5); cursor: ew-resize; pointer-events: auto; touch-action: none; }
.im-knob svg { width: 18px; height: 10px; fill: none; stroke: #000; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.im-knob:focus-visible { outline: 2px solid var(--bp-blue); outline-offset: 3px; }

/* ─── don't plates ──────────────────────────────────────────────────────── */
.im-busytxt { position: absolute; z-index: 2; left: 8%; right: 8%; top: 38%; font-size: clamp(16px, 2vw, 22px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--bp-white); }
.im-fake { position: absolute; z-index: 3; padding: 5px 10px; border-radius: 6px; font: 700 12px var(--sans); letter-spacing: .02em; color: #fff; background: linear-gradient(90deg, #ff2d55, #ff9f0a); box-shadow: 0 0 24px rgb(255 45 85 / .7); }
.im-keyart { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.im-keyart b { position: relative; z-index: 2; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -0.04em; text-shadow: 0 4px 24px #000; }

/* ─── desk checklist ────────────────────────────────────────────────────── */
.im-check { margin: 0; padding: 0; list-style: none; border-radius: 12px; background: var(--bp-raise); box-shadow: inset 0 0 0 1px var(--bp-line); }
.im-check li + li { border-top: 1px solid var(--bp-line); }
.im-check label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 16px; cursor: pointer; }
.im-check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--bp-line-strong); background: none; cursor: pointer; }
.im-check input:checked { background: var(--bp-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: none; }
.im-check input:focus-visible { outline: 2px solid var(--bp-blue); outline-offset: 2px; }
.im-check span { font-size: 14px; line-height: 1.5; color: var(--bp-grey); }
.im-check span b { display: block; color: var(--bp-white); font-weight: 600; }
.im-check input:checked + span b { text-decoration: line-through; text-decoration-color: var(--bp-grey-quiet); }
.im-check-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--bp-line); font: 11px var(--mono); color: var(--bp-grey-quiet); }

/* ratio diagram */
.im-ratios { position: absolute; inset: 7%; }
.im-ratios > i { position: absolute; left: 0; bottom: 0; border: 1px solid rgb(255 255 255 / .5); border-radius: 3px; }
.im-ratios > i span { position: absolute; right: 5px; top: 4px; font: normal 9.5px var(--mono); color: var(--bp-white); white-space: nowrap; }

/* ─── icons ─────────────────────────────────────────────────────────────── */
.im-ictools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; }
.im-ictools .im-mono { margin-right: -6px; }
.im-icgroup { margin: 26px 0 10px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bp-grey-quiet); }
.im-icgrid { --im-sz: 24px; --im-sw: 1.6; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
@media (max-width: 1180px) { .im-icgrid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } }
.im-icgrid .bb-stage { --ar: 1 / 1; border-radius: 10px; color: var(--bp-white); transition: background .2s; }
.im-icgrid.is-light .bb-stage { --stage: var(--bp-white); color: var(--bp-light-ink); box-shadow: inset 0 0 0 1px var(--bp-light-line); }
.im-icgrid .bb-stage svg { width: var(--im-sz); height: var(--im-sz); stroke-width: var(--im-sw); overflow: visible; }
.im-icgrid .bb-plate:hover .bb-stage { background: var(--bp-glow-soft); }
.im-icgrid.is-light .bb-plate:hover .bb-stage { background: #fff; }
.im-icgrid .bb-cap { padding-top: 7px; }
.im-icgrid .bb-cap b { font-size: 12.5px; }
.im-icgrid .bb-cap b { line-height: 1.3; }
.im-icgrid .bb-cap span { flex-basis: 100%; min-width: 0; font-size: 10px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-icgrid .bb-exp { top: 6px; right: 6px; width: 28px; height: 28px; }
.im-icgrid .bb-exp-menu { top: 40px; right: 6px; }

.im-key { width: min(92%, 460px); height: auto; display: block; }
.im-sizes { display: flex; flex-wrap: wrap; justify-content: center; align-items: end; gap: clamp(18px, 4vw, 44px); padding: 20px; }
.im-sizes figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.im-sizes svg { display: block; color: var(--bp-white); overflow: visible; }
.im-sizes figcaption { font: 10.5px var(--mono); color: var(--bp-grey-quiet); text-align: center; line-height: 1.4; }
.im-sizes figcaption b { display: block; color: var(--bp-white); font-weight: 500; }
.im-tile { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--bp-line-strong); color: var(--bp-white); }
.im-tile svg { width: 22px; height: 22px; }
.im-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; padding: 16px; }
.im-row svg { display: block; }
.im-row svg:not([width]) { width: 26px; height: 26px; }
.im-px { display: flex; flex-wrap: wrap; justify-content: center; align-items: end; gap: clamp(20px, 5vw, 56px); padding: 28px 20px; }
.im-px figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.im-px canvas { display: block; width: calc(var(--n) * 8px); height: calc(var(--n) * 8px); image-rendering: pixelated; box-shadow: 0 0 0 1px var(--bp-line-strong);
  background: linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px) 0 0 / 8px 8px, linear-gradient(180deg, rgb(255 255 255 / .07) 1px, transparent 1px) 0 0 / 8px 8px, #0b0b0d; }
.im-px figcaption { font: 10.5px var(--mono); color: var(--bp-grey-quiet); text-align: center; line-height: 1.4; }
.im-px figcaption b { display: block; color: var(--bp-white); font-weight: 500; }
.im-pillbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--bp-white); color: #000; font: 600 14px var(--sans); }
.im-pillbtn svg { width: 17px; height: 17px; }
.im-navrow { display: flex; gap: 4px; padding: 6px; border-radius: 12px; background: rgb(20 20 22 / .9); box-shadow: inset 0 0 0 1px var(--bp-line-strong); }
.im-navrow span { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; color: var(--bp-grey); }
.im-navrow span.on { background: rgb(255 255 255 / .1); color: var(--bp-white); }
.im-navrow svg { width: 16px; height: 16px; }

@media (max-width: 600px) {
  .im-anat-wrap { gap: 10px; }
  .im-anat { width: 66%; }
  .im-pin.is-l { left: -30px; } .im-pin.is-r { right: -30px; }
  .im-pin.is-l::after, .im-pin.is-r::after { width: 8px; }
  .im-capbar { gap: 6px; padding: 4px 9px; font-size: 9px; }
  .im-hero-grid { grid-auto-rows: 30px; }
  .im-win { width: 92%; }
  .im-icgrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .im-px canvas { width: calc(var(--n) * 5px); height: calc(var(--n) * 5px); background-size: 5px 5px; }
  .im-ladder > div > span b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .im-icgrid .bb-stage { transition: none; } }
