/* source: assets/css/site.css */
:root {
  --paper: #f3f5f7;
  --paper-deep: #dfe5ea;
  --folder-fill: #ffdcd7;
  --folder-stack: #efb3ab;
  --ink: #151918;
  --muted: #596369;
  --shadow: #26333b;
  --red: #f05d4f;
  --blue: #5b7df0;
  --green: #42a875;
  --yellow: #f2c735;
  --display: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4.2vw, 64px);
  --header: 72px;
  --border: 2px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.45; }
a { color: inherit; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--ink); color: white; padding: 12px 18px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { height: var(--header); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); border-bottom: var(--border); background: var(--paper); position: relative; z-index: 20; }
.wordmark { font-family: var(--display); font-weight: 800; text-decoration: none; letter-spacing: -.025em; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.hero { min-height: calc(100svh - var(--header)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); overflow: hidden; border-bottom: var(--border); }
.hero-copy { padding: clamp(64px, 10vh, 120px) var(--pad); align-self: center; }
.hero-strapline { margin: 0 0 18px !important; max-width: none !important; display: flex; font-size: .9rem !important; font-weight: 800; letter-spacing: .08em !important; line-height: 1.2 !important; text-transform: uppercase; }
.hero-strapline__item:not(:last-child)::after { content: " · "; white-space: pre; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(3.4rem, 8vw, 8.4rem); font-weight: 900; line-height: .86; letter-spacing: -.055em; }
.hero-copy > p { margin: clamp(26px, 4vw, 44px) 0 0; max-width: 17ch; font-size: clamp(1.75rem, 3.5vw, 3.8rem); line-height: 1.02; letter-spacing: -.035em; }
.text-link { margin-top: 36px; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-underline-offset: 6px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-actions .text-link { margin-top: 0; }
.hero-primary,
.hero-secondary { width: 190px; min-height: 58px; justify-content: space-between; }
.hero-primary {
  padding: 14px 22px;
  display: inline-flex; align-items: center; gap: 16px;
  border: 2.5px solid var(--ink); border-radius: 8px;
  background: var(--yellow); color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; text-decoration: none;
  transition: transform var(--t-quick) var(--ease-drawer), box-shadow var(--t-quick) var(--ease-drawer);
}
.hero-primary::after {
  content: ""; width: 28px; height: 17px; flex: 0 0 auto;
  background: var(--ink);
  clip-path: polygon(0 40%, 62% 40%, 62% 0, 100% 50%, 62% 100%, 62% 60%, 0 60%);
  transition: translate var(--t-quick) var(--ease-drawer);
}
.hero-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.hero-primary:hover::after { translate: 3px 0; }
.hero-primary:active { transform: translate(5px, 5px); box-shadow: 1px 1px 0 var(--ink); transition-duration: 60ms; }
.hero-secondary {
  padding: 14px 14px 14px 22px;
  display: inline-flex; align-items: center; gap: 16px;
  border: 2.5px solid var(--ink); border-radius: 8px;
  background: var(--paper); color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; text-decoration: none;
  transition: transform var(--t-quick) var(--ease-drawer), box-shadow var(--t-quick) var(--ease-drawer);
}
.hero-secondary__arrow {
  width: 28px; align-self: stretch; display: grid; place-items: center;
  border-left: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 1.12rem; line-height: 1;
  transition: translate var(--t-quick) var(--ease-drawer);
}
.hero-secondary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.hero-secondary:hover .hero-secondary__arrow { translate: 0 3px; }
.hero-secondary:active { transform: translate(5px, 5px); box-shadow: 1px 1px 0 var(--ink); transition-duration: 60ms; }

.cabinet { position: relative; min-height: 100%; background: var(--blue); border-left: var(--border); overflow: hidden; display: grid; place-items: center; padding: 8vw 5vw; }
.cabinet::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: repeating-linear-gradient(90deg, transparent 0 32px, rgba(23,25,22,.5) 33px 34px), repeating-linear-gradient(0deg, transparent 0 32px, rgba(23,25,22,.35) 33px 34px); }
.cabinet-top { position: absolute; top: 11%; left: 9%; width: 82%; height: 13%; border: var(--border); background: #dce2e6; box-shadow: 12px 12px 0 var(--shadow); }
.cabinet-drawer { position: relative; width: min(84%, 620px); aspect-ratio: 1.25; background: #dce2e6; border: 3px solid var(--ink); box-shadow: 20px 24px 0 var(--shadow); transform: rotate(1.7deg); }
.cabinet-label { position: absolute; top: 18%; left: 50%; translate: -50% 0; width: 52%; padding: 14px; border: 3px solid var(--ink); background: var(--paper); text-align: center; font-family: var(--display); font-size: clamp(.8rem, 1.3vw, 1.2rem); line-height: 1.25; }
.cabinet-handle { position: absolute; top: 58%; left: 50%; translate: -50% 0; width: 44%; height: 14%; border: 4px solid var(--ink); border-radius: 99px; background: #b7c0c6; box-shadow: inset 0 -8px 0 rgba(21,25,24,.16); }
.cabinet-tabs { position: absolute; inset: auto 7% 100%; display: flex; align-items: end; justify-content: space-between; }
.cabinet-tabs i { width: 22%; height: 64px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
.cabinet-tabs i:nth-child(1) { background: var(--red); height: 46px; }
.cabinet-tabs i:nth-child(2) { background: var(--blue); height: 74px; }
.cabinet-tabs i:nth-child(3) { background: var(--green); height: 58px; }
.cabinet-tabs i:nth-child(4) { background: var(--yellow); height: 88px; }
.cabinet > p { position: absolute; right: 5%; bottom: 4%; margin: 0; font-family: var(--display); text-align: right; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.15; }

.experience { padding: clamp(64px, 7vw, 104px) var(--pad) clamp(80px, 10vw, 150px); background: var(--paper-deep); }

.drawer { max-width: 1400px; margin: 0 auto; filter: drop-shadow(24px 28px 0 rgba(38,51,59,.18)); }
.capability-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 4%; align-items: end; }
.capability-tab { min-height: 84px; border: var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 16px 18px 30px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; cursor: pointer; transform: translateY(18px); transition: transform 220ms cubic-bezier(.2,.8,.2,1), min-height 220ms cubic-bezier(.2,.8,.2,1); }
.capability-tab span { font-family: var(--display); font-size: clamp(.94rem, 1.45vw, 1.28rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.capability-tab small { margin-top: 7px; font-size: .82rem; line-height: 1.1; opacity: .78; }
.capability-tab:hover { transform: translateY(10px); }
.capability-tab[aria-selected="true"] { padding-bottom: 16px; min-height: 96px; transform: translateY(2px); z-index: 2; }
/* --tab-colour is inert here and used by the mobile tab stack, where a closed
   folder shows only its coloured edge instead of a full block of colour. */
.tab-red { --tab-colour: var(--red); --tab-tint: #ffdcd7; background: var(--red); }
.tab-blue { --tab-colour: var(--blue); --tab-tint: #dfe6ff; background: var(--blue); color: var(--ink); }
.tab-green { --tab-colour: var(--green); --tab-tint: #d9f0e3; background: var(--green); color: var(--ink); }
.tab-yellow { --tab-colour: var(--yellow); --tab-tint: #fff0b8; background: var(--yellow); }

.folder { position: relative; min-height: 680px; border: 3px solid var(--ink); background: var(--folder-fill); padding: clamp(28px, 4vw, 58px); transition: background-color 220ms ease; }
.folder[data-color="red"] { --folder-fill: #ffdcd7; --folder-stack: #efb3ab; }
.folder[data-color="blue"] { --folder-fill: #dfe6ff; --folder-stack: #afc0f5; }
.folder[data-color="green"] { --folder-fill: #d9f0e3; --folder-stack: #a7d4b9; }
.folder[data-color="yellow"] { --folder-fill: #fff0b8; --folder-stack: #e5cb75; }
.folder::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--ink); background: var(--folder-stack); z-index: -1; transition: background-color 220ms ease; }






.project-preview { min-width: 0; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 58px); align-items: center; }
.project-context { margin: 0 0 14px; color: var(--muted); }
.preview-copy h4, .preview-head h4 { margin: 0; font-family: var(--display); font-size: clamp(2.25rem, 3.5vw, 4rem); font-weight: 900; line-height: .92; letter-spacing: -.045em; text-wrap: balance; }
.project-short { margin: 22px 0 0; max-width: 34ch; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.22; }
.project-scope { margin-top: 22px; }
.project-scope > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: .88rem; font-weight: 700; }
/* Two fixed columns. A wrapped flex row leaves a single tag stranded on the
   last line, which reads as unfinished, and it strands a different number on
   every card. A 2-up grid is even at 2 or 4 tags and identical on every card. */
.project-scope ul { margin: 0; padding: 0; display: grid; grid-template-columns: max-content max-content; justify-content: start; gap: 6px; list-style: none; }
.project-scope li { display: inline-flex; align-items: center; padding: 6px 10px 5px; border: 1.5px solid currentColor; border-radius: 2px; background: rgba(255,255,255,.3); font-size: .84rem; font-weight: 500; line-height: 1.12; }
/* An odd count would still strand one, so the last tag spans both columns. */
.project-scope li:nth-child(odd):last-child { grid-column: 1 / -1; }
.project-result { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ink); display: grid; gap: 5px; }
.project-result span { color: var(--muted); }
.project-result strong { font-size: 1.08rem; }
.case-link { margin-top: 26px; min-height: 44px; display: inline-flex; align-items: center; gap: 11px; font-weight: 600; text-underline-offset: 6px; transition: gap 180ms ease; }
.case-link:hover { gap: 18px; }
.preview-media { min-width: 0; }

/* Real product captures, framed as the objects a visitor recognises. */
.device-scene { position: relative; min-height: 420px; display: grid; place-items: center; }
.browser-window, .monitor { margin: 0; overflow: hidden; background: #fff; border: 3px solid var(--ink); box-shadow: 14px 14px 0 var(--shadow); }
.browser-window > img, .monitor > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-bar, .monitor-bar { height: 32px; border-bottom: 2px solid var(--ink); background: #dedbd4; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.browser-bar i, .monitor-bar i { width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 50%; }
.browser-bar span { height: 12px; flex: 1; margin-left: 6px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); }
.browser-scene .browser-window { width: 92%; aspect-ratio: 16 / 10; }
.browser-phone { position: absolute; right: 1%; bottom: 0; width: 25%; height: 65%; transform: rotate(3deg); }
.phone { margin: 0; position: relative; overflow: hidden; border: 7px solid var(--ink); border-radius: 32px; background: var(--ink); box-shadow: 12px 14px 0 rgba(38,51,59,.24); }
.phone::before { content: ""; position: absolute; top: 5px; left: 50%; translate: -50% 0; width: 32%; height: 12px; border-radius: 99px; background: var(--ink); z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }
.phones { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 0; padding: 10px 5%; }
.phones .phone { width: 115%; aspect-ratio: 9 / 18.5; }
.phones .phone-1 { transform: rotate(-6deg) translateX(12%); z-index: 1; }
.phones .phone-2 { transform: translateY(-4%); z-index: 3; }
.phones .phone-3 { transform: rotate(6deg) translateX(-12%); z-index: 2; }
.comparison { grid-template-columns: 1fr 1fr; gap: 7%; padding: 8px 10%; }
.comparison .phone { width: 100%; aspect-ratio: 9 / 18.5; overflow: visible; }
.comparison .phone img { overflow: hidden; }
.comparison figcaption { position: absolute; left: 50%; top: -34px; translate: -50% 0; font-weight: 600; }
.comparison .compare-1 { transform: rotate(-4deg); }
.comparison .compare-2 { transform: rotate(4deg) translateY(3%); }
.monitor-scene { align-content: center; }
.monitor { width: 94%; aspect-ratio: 16 / 10; position: relative; z-index: 2; }
.monitor-neck { width: 11%; height: 48px; background: var(--ink); }
.monitor-foot { width: 40%; height: 12px; border-radius: 50%; background: var(--ink); }
.system-scene .browser-window { position: absolute; width: 78%; aspect-ratio: 16 / 10; }
.system-scene .system-1 { left: 0; top: 12%; transform: rotate(-3deg); }
.system-scene .system-2 { right: 0; bottom: 8%; transform: rotate(4deg); }
.device-scene.compact { min-height: 390px; }

.contact { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 150px) var(--pad); }
.contact > p { margin: 0 0 18px; }
.contact h2 { margin: 0; max-width: 16ch; font-family: var(--display); font-size: clamp(2.6rem, 6.3vw, 7rem); font-weight: 800; line-height: .97; letter-spacing: -.045em; }
.contact-routes { max-width: 980px; margin-top: clamp(36px, 5vw, 68px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-route {
  position: relative; min-width: 0; min-height: 156px; padding: 22px 24px;
  display: grid; grid-template-rows: auto 1fr auto; align-items: start; gap: 12px;
  overflow: hidden; border: 2px solid var(--paper); border-radius: 7px;
  background: var(--paper); color: var(--ink); box-shadow: 7px 7px 0 rgba(244,241,232,.28);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: translate var(--t-quick) var(--ease-drawer), box-shadow var(--t-quick) var(--ease-drawer);
}
.contact-route--email { background: var(--yellow); }
.contact-route--linkedin { background: var(--blue); }
.contact-route__label { font: 700 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.contact-route__value { align-self: center; overflow-wrap: anywhere; font-family: var(--display); font-size: clamp(1.25rem, 2.15vw, 2rem); font-weight: 800; line-height: 1; letter-spacing: -.025em; user-select: text; }
.contact-route__action { align-self: end; font-size: .9rem; font-weight: 700; }
.contact-route__feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-route:hover { translate: -2px -2px; box-shadow: 10px 10px 0 rgba(244,241,232,.34); }
.contact-route:focus-visible { outline: 3px solid var(--paper); outline-offset: 5px; }
.contact-route--email.is-copied::after {
  content: "COPIED ✓"; position: absolute; right: 18px; top: 18px; padding: 7px 9px 6px;
  border: 3px double var(--ink); rotate: -5deg; background: var(--paper); color: var(--ink);
  font: 800 .72rem/1 var(--mono); letter-spacing: .07em;
}
.contact-route--email.is-copy-error { background: var(--paper); }
@media (hover: hover) and (min-width: 721px) {
  .contact-route__value { opacity: 0; translate: 0 8px; transition: opacity 160ms ease, translate 180ms var(--ease-drawer); }
  .contact-route:hover .contact-route__value,
  .contact-route:focus-visible .contact-route__value,
  .contact-route.is-copied .contact-route__value,
  .contact-route.is-copy-error .contact-route__value { opacity: 1; translate: 0 0; }
}
footer { display: flex; justify-content: space-between; padding: 22px var(--pad); background: var(--ink); color: var(--paper); border-top: 1px solid rgba(244,241,232,.25); font-size: .9rem; }

/* Case file */
.case-cover { padding: clamp(36px, 5vw, 72px) var(--pad) clamp(52px, 7vw, 96px); border-bottom: 3px solid var(--ink); }
.cover-red { background: var(--red); }
.cover-blue { background: var(--blue); color: white; }
.cover-green { background: var(--green); color: white; }
.cover-yellow { background: var(--yellow); }
.back-link { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; font-weight: 600; text-underline-offset: 6px; }
.case-title { margin-top: clamp(44px, 6vw, 90px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(44px, 8vw, 130px); align-items: end; }
.case-title > * { min-width: 0; }
.case-title p { margin: 0; }
.case-title h1 { margin: 10px 0 0; font-family: var(--display); font-size: clamp(3rem, 5.3vw, 7rem); font-weight: 900; line-height: .88; letter-spacing: -.045em; text-wrap: balance; }
.case-title .case-short { margin-top: 22px; max-width: 34ch; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; }
.case-title dl { margin: 0; border-top: 2px solid currentColor; }
.case-title dl div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid currentColor; }
.case-title dt { opacity: .72; }
.case-title dd { margin: 0; font-weight: 600; }
.case-scope { margin-top: 24px; }
.case-scope > span { color: currentColor; opacity: .74; }
.cover-blue .case-scope li, .cover-green .case-scope li { background: rgba(255,255,255,.1); }
.case-hero { min-height: 78svh; padding: clamp(56px, 8vw, 120px) var(--pad); background: var(--paper-deep); display: grid; place-items: center; overflow: hidden; }
.case-hero .device-scene { width: min(1180px, 100%); min-height: min(66vw, 760px); }
.case-content { padding: clamp(72px, 10vw, 150px) var(--pad); }
.case-content blockquote { margin: 0; max-width: 23ch; font-family: var(--display); font-size: clamp(2rem, 4.4vw, 4.8rem); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.case-highlights { margin: clamp(72px, 10vw, 140px) 0 0 auto; max-width: 1050px; }
.case-highlights section { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 4vw, 60px); padding: clamp(28px, 4vw, 52px) 0; border-top: 2px solid var(--ink); }
.case-highlights section:last-child { border-bottom: 2px solid var(--ink); }
.case-highlights h2 { margin: 0; font-family: var(--display); font-size: clamp(1.45rem, 2.7vw, 2.7rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.case-highlights p { margin: 14px 0 0; max-width: 55ch; font-size: clamp(1.08rem, 1.5vw, 1.25rem); }
.next-file { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: clamp(50px, 7vw, 100px) var(--pad); border-top: 3px solid var(--ink); text-decoration: none; }
.next-file span { font-size: 1.1rem; }
.next-file strong { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 4.5rem); font-weight: 800; line-height: 1; }

.js .hero-copy > *, .js .cabinet { opacity: 0; animation: arrive 650ms cubic-bezier(.2,.8,.2,1) forwards; }
.js .hero-copy > p { animation-delay: 90ms; }
.js .hero-copy .hero-actions { animation-delay: 160ms; }
.js .cabinet { animation-delay: 120ms; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: calc(70svh - var(--header)); }
  .cabinet { min-height: 68svh; border-left: 0; border-top: var(--border); }
  .project-preview { grid-template-columns: 1fr; }
  .preview-copy, .preview-head, .preview-body, .preview-foot { max-width: 700px; }

  .device-scene.compact { min-height: 500px; }
  .case-title { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header: 64px; }
  body { font-size: 16px; }
  .site-header nav { gap: 14px; }
  .site-header nav { gap: 12px; font-size: .95rem; }
  .hero-copy { min-height: 0; padding: 30px var(--pad) 24px; }
  .hero-strapline {
    width: max-content; margin-bottom: 14px !important;
    display: grid; grid-template-columns: max-content max-content;
    grid-template-areas: "product partnerships" "strategy ai";
    column-gap: .42em; row-gap: .12em;
    font-size: clamp(.72rem, 3.35vw, .82rem) !important;
    line-height: 1.12 !important; letter-spacing: .055em !important;
  }
  .hero-strapline__item::after { content: none !important; }
  .hero-strapline__item:nth-child(1) { grid-area: product; }
  .hero-strapline__item:nth-child(2) { grid-area: strategy; }
  .hero-strapline__item:nth-child(3) { grid-area: partnerships; }
  .hero-strapline__item:nth-child(4) { grid-area: ai; }
  .hero-strapline__item:nth-child(3)::before,
  .hero-strapline__item:nth-child(4)::before { content: "· "; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .hero-copy > p { max-width: none; font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.03; }
  .hero-copy > .hero-lede { max-width: 18ch; margin-top: 20px; }
  .hero-actions { width: 100%; margin-top: 24px; flex-wrap: nowrap; gap: 10px; }
  .hero-actions .hero-primary,
  .hero-actions .hero-secondary {
    width: auto; min-width: 0; min-height: 54px; flex: 1 1 0;
    padding: 11px 13px; gap: 8px;
    box-shadow: 5px 5px 0 var(--ink); font-size: 1rem;
  }
  .hero-primary::after { width: 24px; height: 15px; }
  .hero-secondary__arrow { width: 24px; font-size: 1rem; }
  .cabinet { min-height: 54svh; padding: 20vw 7vw 12vw; }
  .cabinet-top { top: 10%; }
  .cabinet-tabs i { height: 42px; }
  .cabinet-tabs i:nth-child(1) { height: 32px; }
  .cabinet-tabs i:nth-child(2) { height: 48px; }
  .cabinet-tabs i:nth-child(3) { height: 38px; }
  .cabinet-tabs i:nth-child(4) { height: 54px; }
  .cabinet > p { display: none; }
  .experience { padding-inline: 14px; }
  .drawer { filter: drop-shadow(9px 12px 0 rgba(23,25,22,.16)); }
  /* ── Capability tabs on a phone ──────────────────────────────────────
     These are file tabs. A 2 x 2 grid of tall colour blocks is not a set of
     tabs, it is four buttons, and at 72-82px each it pushed the folder most
     of a screen down. So: one full-width tab per row, short enough to be a
     tab, and the drawer's own logic carried by colour — a closed folder
     shows only its coloured edge, the open one is filled. */
  .capability-tabs { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .capability-tab {
    position: relative;
    min-height: 46px; padding: 11px 14px;
    flex-direction: row; align-items: center; justify-content: flex-start;
    transform: none; border: var(--border); border-radius: 8px 8px 0 0;
    background: var(--tab-tint); color: var(--ink);
    box-shadow: inset 8px 0 0 var(--tab-colour);
  }
  .capability-tab + .capability-tab { margin-top: -3px; }
  .capability-tab:nth-child(1) { z-index: 1; }
  .capability-tab:nth-child(2) { z-index: 2; }
  .capability-tab:nth-child(3) { z-index: 3; }
  .capability-tab:nth-child(4) { z-index: 4; }
  .capability-tab[aria-selected="true"] {
    min-height: 54px; transform: none; border-bottom: 0; border-radius: 8px 8px 0 0;
    background: var(--tab-colour); box-shadow: none;
  }
  .capability-tab:hover { transform: none; }
  .capability-tab span { font-size: .95rem; }
  .capability-tab small { font-size: .75rem; }
  .folder { min-height: 0; padding: 22px 18px 30px; }
  .folder::before { inset: 8px -8px -8px 8px; }



  .project-index { display: grid; gap: 8px; padding: 4px 0 12px; }
          .project-preview { gap: 34px; }
  .preview-copy h4, .preview-head h4 {
    font-size: clamp(2.4rem, 13vw, 4rem);
    overflow-wrap: anywhere;
  }
  .preview-media { order: 0; }
  .device-scene.compact { min-height: 330px; }
  .browser-scene .browser-window { width: 100%; }
  .phones { padding-inline: 2%; }
  .phone { border-width: 5px; border-radius: 22px; }
  .phone img { border-radius: 15px; }
  .comparison { padding-inline: 4%; }
  .contact h2 { font-size: clamp(2.5rem, 13vw, 4.1rem); }
  .contact-routes { grid-template-columns: 1fr; }
  .contact-route { min-height: 138px; }
  footer { display: grid; gap: 6px; }
  .case-title h1 { font-size: clamp(2.5rem, 10vw, 4rem); overflow-wrap: anywhere; }
  .case-title dl div { grid-template-columns: 90px 1fr; }
  .case-hero { min-height: 60svh; padding-inline: 12px; }
  .case-hero .device-scene { min-height: 390px; }
  .case-highlights section { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .next-file { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-copy > *, .js .cabinet { opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════════════════
   Static-site additions. The prototype rendered everything from JS; this
   build ships real HTML, so picks are links and panels are hidden sections.
   ═══════════════════════════════════════════════════════════════════════ */

/* Project picks: links now, not buttons. Same visual contract. */

/* The .md nav link stays quiet until you look for it. */
.nav-md {
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: .82rem; letter-spacing: .02em; opacity: .62;
  text-decoration: none; border: 1.5px solid currentColor;
  border-radius: 4px; padding: 2px 6px; min-height: 0 !important;
}
.nav-md:hover, .nav-md:focus-visible { opacity: 1; }

/* About: the career shape the prototype was missing. */
.about {
  padding: clamp(64px, 9vw, 130px) clamp(20px, 5vw, 80px);
  display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); border-bottom: var(--border);
}
.about h2 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.03em; align-self: start;
}
.about-copy { max-width: 62ch; display: grid; gap: 1.1em; }
.about-copy p { margin: 0; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.55; }
.about-tools { grid-column: 1 / -1; margin-top: 0; padding-top: clamp(24px, 3vw, 34px); border-top: 1px solid color-mix(in srgb, var(--ink) 46%, transparent); }
.about-tools__intro {
  display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); margin-bottom: clamp(18px, 2.4vw, 28px);
}
.about-tools__intro h3 {
  margin: 0; max-width: 21ch; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; letter-spacing: -.03em;
}
.about-tools__intro p {
  margin: 0; max-width: 62ch; color: var(--ink);
  font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.55;
}
.about-tools__tray {
  position: relative; isolation: isolate; padding: clamp(42px, 5vw, 58px) clamp(14px, 2.2vw, 28px) clamp(18px, 2.7vw, 32px);
  overflow: hidden; border: 3px solid var(--ink); border-radius: 12px;
  background-color: #202827;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  box-shadow: 9px 10px 0 var(--shadow);
}
.about-tools__tray::before,
.about-tools__tray::after {
  content: ""; position: absolute; z-index: 2; width: 8px; height: 8px;
  border: 1px solid rgba(21,25,24,.75); border-radius: 50%;
  background: #c7cdd0; box-shadow: inset 0 -2px 0 rgba(21,25,24,.28);
}
.about-tools__tray::before { top: 13px; right: 14px; }
.about-tools__tray::after { right: 14px; bottom: 13px; }
.about-tools__tray-label {
  position: absolute; z-index: 2; top: 13px; left: -7px; padding: 5px 14px 4px 18px;
  border: 2px solid var(--ink); background: var(--yellow); color: var(--ink);
  box-shadow: 3px 3px 0 rgba(0,0,0,.28); transform: rotate(-1.5deg);
  font-family: var(--mono); font-size: clamp(.59rem, 1vw, .7rem); font-weight: 800; letter-spacing: .1em;
}
.about-tools ul { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 15px); margin: 0; padding: 0; list-style: none; }
.about-tools li {
  min-width: 0; min-height: clamp(72px, 9vw, 92px); padding: 6px 2px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px;
  border-radius: 8px; transform-origin: 50% 100%;
  transition: transform 180ms cubic-bezier(.16,1,.3,1);
}
.about-tools__mark {
  width: clamp(34px, 4.2vw, 48px); height: clamp(34px, 4.2vw, 48px); display: grid; place-items: center;
  color: var(--tool-colour, #f3f5f7); filter: drop-shadow(0 4px 0 rgba(0,0,0,.2));
  transition: transform 180ms cubic-bezier(.16,1,.3,1), filter 180ms ease;
}
.about-tools svg, .about-tools img { display: block; width: 100%; height: 100%; object-fit: contain; }
.about-tools svg { fill: currentColor; }
.about-tools__name {
  min-height: 1.1em; color: #f3f5f7; opacity: 0; transform: translateY(5px);
  font-family: var(--mono); font-size: clamp(.5rem, .72vw, .62rem); font-weight: 700;
  line-height: 1.1; letter-spacing: .055em; text-align: center; text-transform: uppercase;
  transition: opacity 150ms ease, transform 180ms cubic-bezier(.16,1,.3,1);
}
.about-tools li:hover { z-index: 3; transform: translateY(-4px) scale(1.12); }
.about-tools li:hover .about-tools__mark { filter: drop-shadow(0 7px 0 rgba(0,0,0,.28)); }
.about-tools li:hover .about-tools__name { opacity: 1; transform: translateY(0); }
.about-tools__item--figma .figma-red { fill: #f24e1e; }
.about-tools__item--figma .figma-orange { fill: #ff7262; }
.about-tools__item--figma .figma-purple { fill: #a259ff; }
.about-tools__item--figma .figma-blue { fill: #1abcfe; }
.about-tools__item--figma .figma-green { fill: #0acf83; }
.about-tools__item--claude { --tool-colour: #d97757; }
.about-tools__item--meta { --tool-colour: #0467df; }
.about-tools__item--webflow { --tool-colour: #146ef5; }
.about-tools__item--vercel { --tool-colour: #f3f5f7; }
.about-tools__item--react { --tool-colour: #61dafb; }
.about-tools__item--posthog { --tool-colour: #f54e00; }
.about-tools__item--ga4 .ga4-orange { fill: #e37400; }
.about-tools__item--ga4 .ga4-yellow { fill: #f9ab00; }
.about-tools__item--google-ads .gads-blue { fill: #4285f4; }
.about-tools__item--google-ads .gads-green { fill: #34a853; }
.about-tools__item--google-ads .gads-yellow { fill: #fbbc04; }
.about-tools__item--supabase { --tool-colour: #3fcf8e; }
.about-tools__item--dynamodb { --tool-colour: #8795ff; }
.about-tools__item--github { --tool-colour: #f3f5f7; }
@media (min-width: 721px) { .about-tools ul { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .about-tools__tray { padding-inline: clamp(18px, 2.4vw, 34px); }
  .about-tools ul { grid-template-columns: repeat(16, minmax(0, 1fr)); gap: clamp(3px, .55vw, 8px); }
  .about-tools li { min-height: 90px; }
}
@media (hover: none), (max-width: 720px) {
  .about-tools__name { opacity: .88; transform: none; }
  .about-tools li { min-height: 76px; }
}
@media (max-width: 720px) {
  .about,
  .about-tools__intro { grid-template-columns: 1fr; }
  .about-tools { grid-column: 1; }
}
/* Two-word names always stack, one word per line. Tile height then varies with the name, so
   marks pin to the top and names hang below: bottom-aligned tiles assumed one-line names and
   lifted a two-line tool's mark above its neighbours. */
.about-tools__name span { display: block; }
.about-tools li { justify-content: flex-start; }
/* Top-aligned marks now start at the tray's top padding, which on 8- and 4-across grids is
   where the tray label sits; clear it. The single desktop row starts right of the label. */
@media (max-width: 1099px) { .about-tools ul { margin-top: clamp(12px, 2vw, 16px); } }
@media (prefers-reduced-motion: no-preference) {
  .js .about-tools.is-motion-ready .about-tools__item {
    opacity: 0;
    transition: opacity 340ms cubic-bezier(.16,1,.3,1), transform 180ms cubic-bezier(.16,1,.3,1), background-color 180ms ease;
    transition-delay: calc(var(--tool-order) * 32ms);
  }
  .js .about-tools.is-motion-ready.is-visible .about-tools__item { opacity: 1; }
}
/* Work with me: one door, stated plainly, before the contact block. */
.work-with-me {
  padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 80px);
  display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
}
.work-with-me h2 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.03em;
}
.work-with-me p { margin: 0; max-width: 60ch; font-size: clamp(1.08rem, 1.5vw, 1.36rem); line-height: 1.5; }

/* Ongoing-work signal. Absent entirely for one-off and parked projects. */
.shipped-signal {
  display: flex; align-items: center; gap: 9px; margin: 14px 0 0;
  font-size: .88rem; color: var(--muted);
}
.shipped-signal .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #1f9d55;
  box-shadow: 0 0 0 3px rgba(31,157,85,.18); flex: 0 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .shipped-signal .dot { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(31,157,85,.18); }
    50%      { box-shadow: 0 0 0 6px rgba(31,157,85,.07); }
  }
}

.case-caps { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.case-caps a { color: inherit; }

.footer-mid { opacity: .7; }
.footer-mid a { color: inherit; }

.page-404 { display: grid; place-items: center; min-height: 80vh; text-align: center; padding: 30px; }
.page-404 h1 { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 900; letter-spacing: -.04em; margin: .2em 0; }
.page-404 .drawer-label { font-size: .78rem; letter-spacing: .14em; color: var(--muted); }

@media (max-width: 860px) {
  .about, .work-with-me { grid-template-columns: 1fr; }
}

/* [hidden] is a UA display:none, and any author display rule beats it.
   .folder and .project-preview both set display, so without this the drawer
   renders every panel at once. */
[hidden] { display: none !important; }

/* Board treatment. Most captures are designed explainer sheets that already
   carry their own headline and layout, so they get a clean edge and room to
   breathe rather than a device bezel around a thing that is not a device. */
.device-scene.boards { display: grid; gap: clamp(20px, 3vw, 40px); width: 100%; }
.board { margin: 0; }
.board img {
  display: block; width: 100%; height: auto;
  border: 2px solid var(--ink); border-radius: 4px; background: #fff;
  box-shadow: 10px 12px 0 rgba(23,25,22,.14);
}
.board figcaption {
  margin-top: 10px; font-size: .84rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.case-hero .device-scene.boards { gap: clamp(34px, 5vw, 72px); }

.evidence-pending {
  display: grid; place-items: center; min-height: 240px; padding: 30px;
  border: 2px dashed rgba(23,25,22,.3); border-radius: 4px; color: var(--muted);
}
.evidence-pending p { margin: 0; }

/* Capability links sat dark-on-dark over the coloured cover. */
.case-caps { margin: 18px 0 0; font-size: .86rem; opacity: .85; }
.case-caps a { color: inherit; text-underline-offset: 3px; }
.cover-red .case-caps, .cover-blue .case-caps, .cover-green .case-caps { color: #fff; }
.cover-yellow .case-caps { color: var(--ink); }

/* Single-column highlights: the old gap value was a column gap and became a
   row gap when the 01/02/03 column came out. */
.case-highlights section { row-gap: 10px; }
.case-highlights section h2 { margin-bottom: 0; }

/* Photographer credit, shown wherever a supplied image carries one. */
.board figcaption .credit { display:block; margin-top:3px; text-transform:none; letter-spacing:0; font-weight:400; opacity:.75; }

/* A project may carry a case study, a live link, both or neither. */
.preview-actions { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.preview-actions .text-link { margin-top: 0; }
.preview-actions .out { font-weight: 500; }

/* A parent project can carry one extra line of context under its description. */
.preview-note { margin: 10px 0 0; font-size: .92rem; color: var(--muted); max-width: 46ch; }

/* Two boards side by side where a card is making a two-sided claim. */
.preview-media .device-scene.boards:has(.board + .board) { grid-template-columns: 1fr 1fr; gap: 14px; }
.preview-media .device-scene.boards:has(.board + .board) figcaption { font-size: .7rem; }
@media (max-width: 860px) {
  .preview-media .device-scene.boards:has(.board + .board) { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════════
   Folder layout, 2026-09-21. The project list moved above the rule so the
   preview gets the full width, and the capability descriptions came out.
   ═══════════════════════════════════════════════════════════════════════ */
.folder-body { padding-top: clamp(28px, 3.5vw, 48px); }

/* Picks read as a row of file tabs rather than a sidebar. */

/* Full width for the evidence, now the sidebar has gone. */
.project-preview {
  display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 4.5vw, 70px); align-items: start; min-width: 0;
}
@media (max-width: 860px) {
  .project-preview { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   One frame per image, 2026-09-21. A device mockup inside a white box
   inside a coloured folder is three frames for one piece of content.
   ═══════════════════════════════════════════════════════════════════════ */

/* plain — the image brings its own device or canvas. Nothing added. */
.device-scene.plainset { display: grid; gap: clamp(14px, 2vw, 26px); width: 100%; }
.device-scene.plainset:has(.plain + .plain) { grid-template-columns: 1fr 1fr; }
.plain { margin: 0; }
.plain img { width: 100%; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; }
.plain figcaption { margin-top: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* photo — a real photograph. A soft edge, no chrome pretending it is a screen. */
.device-scene.photoset { display: grid; gap: clamp(14px, 2vw, 26px); width: 100%; }
.device-scene.photoset:has(.photo + .photo) { grid-template-columns: 1fr 1fr; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: 6px; box-shadow: 8px 10px 0 rgba(23,25,22,.13); }
.photo figcaption { margin-top: 8px; font-size: .78rem; color: var(--muted); }

@media (max-width: 860px) {
  .device-scene.plainset:has(.plain + .plain),
  .device-scene.photoset:has(.photo + .photo) { grid-template-columns: 1fr; }
}


@media (max-width: 860px) {
}


.folder[data-color="red"]    { --deep: #a8291c; }
.folder[data-color="blue"]   { --deep: #24378f; }
.folder[data-color="green"]  { --deep: #1a6444; }
.folder[data-color="yellow"] { --deep: #6b4e05; }

/* The row is the line. Tabs meet it; the selected one breaks through. */

@media (max-width: 860px) {
}


/* ═══════════════════════════════════════════════════════════════════════
   FOLDER TOPLINE — single definition. Replaced three competing blocks that
   were overriding each other, which is why the tabs would not sit down.

   The tabs are file tabs on the folder's own rule: they meet it, the
   selected one breaks it in the folder's colour, and the row casts a
   shadow so it reads as sitting in front.
   ═══════════════════════════════════════════════════════════════════════ */
.folder-topline {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(20px, 4vw, 56px); flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
}
.folder-topline h3 {
  flex: 0 1 auto; min-width: 0;
  margin: 0 0 18px; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 2.9vw, 2.9rem); letter-spacing: -.035em; line-height: 1;
}

.folder-topline .project-index {
  /* Never wrap the tab row itself: an orphaned tab on a second line is the
     same defect as an orphaned chip. If it will not fit beside the title,
     the whole row drops to its own full-width line instead. */
  display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 4px;
  list-style: none; margin: 0 0 -2px; padding: 0;      /* -2px seats them on the rule */
  filter: drop-shadow(4px -3px 0 rgba(38,51,59,.16));   /* depth behind the row */
}
.folder-topline .project-index li { margin: 0; display: flex; }
.project-scroll-cue { display: none; }

.folder-topline .project-pick {
  display: flex; flex-direction: column; gap: 1px; justify-content: center;
  padding: 9px 15px 10px; min-height: 58px;
  border: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  border-radius: 9px 9px 0 0;
  background: var(--folder-fill); color: inherit; text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, padding 150ms ease;
}
/* A wrapping name made one tab taller than its neighbours. */
.folder-topline .project-pick span,
.folder-topline .project-pick small { white-space: nowrap; }
.folder-topline .project-pick span { font-weight: 700; font-size: .93rem; line-height: 1.15; }
.folder-topline .project-pick small { font-size: .78rem; color: var(--muted); line-height: 1.15; }
.folder-topline .project-pick:hover { background: rgba(255,255,255,.62); }

/* Selected: the folder's OWN colour, matching its capability tab exactly,
   and its bottom edge matches so it breaks through the rule. */
.folder-topline .project-pick[aria-current="true"] { position: relative; z-index: 1; }
.folder[data-color="red"]    .project-pick[aria-current="true"] { background: var(--red);    color: var(--ink); border-bottom-color: var(--red); }
.folder[data-color="blue"]   .project-pick[aria-current="true"] { background: var(--blue);   color: var(--ink); border-bottom-color: var(--blue); }
.folder[data-color="green"]  .project-pick[aria-current="true"] { background: var(--green);  color: var(--ink); border-bottom-color: var(--green); }
.folder[data-color="yellow"] .project-pick[aria-current="true"] { background: var(--yellow); color: var(--ink); border-bottom-color: var(--yellow); }
.folder[data-color="red"]    .project-pick[aria-current="true"] small,
.folder[data-color="yellow"] .project-pick[aria-current="true"] small { color: rgba(21,25,24,.72); }
.folder[data-color="blue"]   .project-pick[aria-current="true"] small,
.folder[data-color="green"]  .project-pick[aria-current="true"] small { color: rgba(21,25,24,.72); }

@media (max-width: 860px) {
  /* Project tabs are one physical row peeking over the open folder. Every tab
     remains visible; equal heights stop the active one looking heavier. */
  .folder-topline { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 0; }
  .folder-topline h3 { margin-bottom: 0; }
  .folder-topline .project-index {
    display: flex; flex-wrap: nowrap; align-items: stretch; gap: 3px;
    min-width: 0; max-width: 100%; overflow: visible;
    margin: 0 0 -2px; padding: 0 0 2px; filter: none;
    -webkit-mask-image: none !important; mask-image: none !important;
  }
  .folder-topline .project-index li { flex: 1 1 0; min-width: 0; }
  .folder-topline .project-pick {
    width: 100%; height: 58px; min-height: 58px; padding: 7px 4px 9px;
    border-radius: 7px 7px 0 0; border-bottom-width: 2px;
  }
  .folder-topline .project-pick span {
    display: -webkit-box; overflow: hidden; white-space: normal;
    -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    font-size: clamp(.64rem, 2.9vw, .78rem); line-height: 1.06;
    overflow-wrap: anywhere;
  }
  .folder-topline .project-pick small { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════════
   OPEN DRAWER PROJECT SNAPSHOTS

   The filing system is shared; the editorial hierarchy belongs to the work.
   Presentation classes change the whole reading path, not just the crop.
   Projects without a headline keep the original preview above.
   ═══════════════════════════════════════════════════════════════════════ */

/* Wide snapshots use named regions so the same semantic order can take on
   different silhouettes without duplicating copy or evidence. */
@media (min-width: 981px) {
  .project-preview.is-snapshot {
    grid-template-columns: minmax(270px, .78fr) minmax(0, 1.22fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "head media" "body media" "foot media";
    column-gap: clamp(30px, 4.5vw, 70px);
    row-gap: 0;
    align-items: start;
  }
  .is-snapshot .preview-head > :last-child { margin-bottom: 0; }
  .is-snapshot .preview-head  { grid-area: head; min-width: 0; }
  .is-snapshot .preview-media { grid-area: media; min-width: 0; }
  .is-snapshot .preview-body  { grid-area: body; min-width: 0; }
  .is-snapshot .preview-foot  { grid-area: foot; min-width: 0; }

  /* A rights-held proof is absent from the public build, not replaced by a
     blank media column or a review-state placeholder. */
  .project-preview.is-snapshot.has-no-media {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "head" "body" "foot";
    row-gap: clamp(24px, 3vw, 40px);
  }
  .is-snapshot.has-no-media .preview-head { max-width: 1100px; }
  .is-snapshot.has-no-media .preview-short { max-width: 65ch; }
  .is-snapshot.has-no-media .preview-body { max-width: 900px; }

  /* Product and physical stories let the artefact enter first. */
  .is-snapshot.layout-image,
  .is-snapshot.layout-photo,
  .is-snapshot.layout-moment {
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
    grid-template-areas: "media head" "media body" "media foot";
  }

  /* A measured change reads headline → numbers → proof. */
  .is-snapshot.layout-numbers {
    grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "head head" "body media" "foot media";
    row-gap: clamp(26px, 3.2vw, 42px);
  }
  .layout-numbers .preview-head { max-width: 1040px; }

  /* Comparisons and motion need room to be read, not squeezed into a sidecar. */
  .is-snapshot.layout-comparison,
  .is-snapshot.layout-motion {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "head" "media" "body" "foot";
    row-gap: clamp(26px, 3.3vw, 46px);
  }
  .layout-comparison .preview-head,
  .layout-motion .preview-head { max-width: 1040px; }
  .layout-comparison .preview-body,
  .layout-motion .preview-body { max-width: 1180px; }

  /* Method stories give the argument more room than the diagram. */
  .is-snapshot.layout-copy {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    grid-template-areas: "head media" "body media" "foot media";
  }
}

.is-snapshot .preview-head h4 { font-size: clamp(2rem, 3vw, 3.35rem); }
.layout-comparison .preview-head h4,
.layout-motion .preview-head h4,
.layout-copy .preview-head h4 { font-size: clamp(2.35rem, 4.2vw, 4.75rem); max-width: 18ch; }
.is-snapshot .preview-short {
  margin: 26px 0 0; max-width: 61ch;
  font-size: clamp(1.06rem, 1.5vw, 1.28rem); line-height: 1.38;
}
.is-snapshot .preview-short + .preview-short { margin-top: 14px; }
/* Body bullets: same size as the paragraph above them, an ink square for the
   marker (the drawer's filing language), the lead in bold. */
.preview-bullets { margin: 14px 0 0; padding: 0; list-style: none; max-width: 61ch; display: grid; gap: 9px;
  font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.38; }
.preview-bullets li { position: relative; padding-left: 22px; }
.preview-bullets li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; background: var(--ink); }
.preview-bullets strong { font-weight: 800; }
/* Snapshot highlights: the ownership block's label grammar, one column. A
   two-up ledger was tried and dropped: in the snapshot's copy column it cut
   lines to ~25 characters and left the columns ragged. */
.snapshot-highlights { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink); }
.snapshot-highlights > span { display: block; margin-bottom: 12px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.snapshot-highlights ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; max-width: 61ch; }
.snapshot-highlights strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.08rem; line-height: 1.15; letter-spacing: -.01em; }
.snapshot-highlights p { margin: 5px 0 0; font-size: .95rem; line-height: 1.42; }
.layout-image .preview-short,
.layout-photo .preview-short,
.layout-moment .preview-short { max-width: 40ch; }
.snapshot-quote {
  margin: clamp(28px, 4vw, 52px) 0 0; max-width: 18ch;
  padding-top: clamp(18px, 2vw, 26px); border-top: 2px solid var(--ink);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.45rem, 2.7vw, 2.5rem); line-height: 1.02; letter-spacing: -.025em;
}

/* Ownership. Same label grammar as "What I worked on", one rung up the page,
   because who owned what is the question the rest of the card cannot answer. */
.project-ownership { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink); }
.project-ownership > span {
  display: block; margin-bottom: 9px;
  color: var(--muted); font-size: .88rem; font-weight: 700;
}
.project-ownership p { margin: 0; max-width: 48ch; font-size: .98rem; line-height: 1.45; }

/* A recruiter's quick-scan layer, but not a strip of generic skill pills.
   Each contribution is a small ledger row in the same filing-system language
   as the rest of the drawer. */
.is-snapshot .project-scope ul {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 18px;
  counter-reset: contribution;
}
.is-snapshot .project-scope li {
  counter-increment: contribution;
  display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: 7px;
  align-items: baseline; padding: 8px 0 7px;
  border: 0; border-top: 1px solid rgba(21, 25, 24, .28);
  border-radius: 0; background: transparent;
  font-weight: 600; line-height: 1.18;
}
.is-snapshot .project-scope li::before {
  content: counter(contribution, decimal-leading-zero);
  font-size: .65rem; font-weight: 700; letter-spacing: .06em; color: var(--muted);
}
.is-snapshot .project-scope li:nth-child(odd):last-child { grid-column: auto; }
.is-snapshot .project-scope--lead { margin-top: clamp(26px, 3vw, 42px); }
.is-snapshot .project-scope--lead ul { gap: 0 clamp(18px, 3vw, 42px); }
.is-snapshot .project-scope--lead li {
  min-height: 70px; align-items: center; padding: 16px 0 14px;
  font-family: var(--display); font-size: clamp(1.08rem, 1.8vw, 1.45rem); font-weight: 800;
}

/* Result. The introduction sits on the same rule the old result block used,
   so the card's vertical rhythm is unchanged. */
.result-intro { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ink); }
.result-kicker { margin: 0 0 5px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.result-line {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.1rem, 1.55vw, 1.32rem); line-height: 1.14; letter-spacing: -.025em;
  max-width: 30ch;
}

/* Callouts are five-second evidence grabs: one value plus one short label.
   Any qualification stays in the project prose or evidence description. */
.metric-group { margin-top: 22px; display: grid; }
.metric { padding: 13px 0; border-top: 1px solid rgba(21, 25, 24, .22); }
.metric:first-child { border-top: 0; padding-top: 6px; }
.metric:last-child { padding-bottom: 0; }
.metric-value {
  margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem); line-height: 1; letter-spacing: -.035em;
}
/* A supporting calculation, not a second number. */
.metric-aside { font-size: .56em; font-weight: 700; letter-spacing: -.015em; color: var(--muted); }
.metric-label { margin: 7px 0 0; font-size: .95rem; font-weight: 700; line-height: 1.2; }
.metric-group.is-inline {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 1px solid rgba(21, 25, 24, .28);
}
.metric-group.is-inline .metric { border: 0; padding: 14px 16px 16px 0; }
.metric-group.is-inline .metric + .metric { padding-left: 16px; border-left: 1px solid rgba(21, 25, 24, .28); }
.metric-group.is-inline .metric-value { font-size: clamp(1.45rem, 2.2vw, 2.1rem); }

/* The old hero treatment made a single number louder than the project title.
   Keep the legacy class as a safe alias, but use the same restrained scale and
   ruled band as every other numerical proof. */
.metric-group.is-hero {
  margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 1px solid rgba(21, 25, 24, .28);
}
.metric-group.is-hero .metric { border: 0; padding: 14px 16px 16px 0; }
.metric-group.is-hero .metric + .metric { padding-left: 16px; border-left: 1px solid rgba(21, 25, 24, .28); }
.metric-group.is-hero .metric-value { font-size: clamp(1.45rem, 2.2vw, 2.1rem); font-variant-numeric: tabular-nums; }
.metric-group.is-hero .metric-label { margin-top: 7px; font-size: .95rem; }

/* ── EVIDENCE COMPOSITIONS ─────────────────────────────────────────────
   Three arrangements, shared by every snapshot. A per-asset `aspect` and
   `focal` arrive as custom properties, so a crop is data, not a new rule.
   Nothing here is offset, rotated or overlapped in a way that carries
   meaning: the labels carry it, and they are real text. */
.evidence { position: relative; width: 100%; min-width: 0; }

/* project-desktop — the Eulogize overview is a contents page for the breadth
   of the role. One desktop plane replaces the old expansion infographic; the
   folders themselves are the navigation and take their colour from the same
   capability tabs they open. It is deliberately a little loose rather than a
   row of equal cards, but the labels remain ordinary text and real links. */
.evidence-project-desktop {
  min-height: clamp(320px, 31vw, 430px);
  overflow: hidden;
  border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 78% 24%, rgba(255,255,255,.56), transparent 31%),
    linear-gradient(145deg, #e7ecec 0%, #d7dedf 100%);
  box-shadow: 14px 16px 0 rgba(38, 51, 59, .18);
}
.project-desktop-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 12px 7px;
  border-bottom: 2px solid var(--ink);
  background: rgba(255,255,255,.72);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
}
.project-desktop-bar span:last-child { color: var(--muted); }
.project-desktop-files {
  min-height: clamp(280px, 28vw, 390px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  align-items: start;
  gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 30px);
  padding: clamp(28px, 3.5vw, 50px) clamp(22px, 3.3vw, 48px);
}
.project-desktop-file {
  --file-accent: var(--red);
  --file-fill: #ffdcd7;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.project-desktop-file.file-blue { --file-accent: var(--blue); --file-fill: #dfe6ff; }
.project-desktop-file.file-green { --file-accent: var(--green); --file-fill: #d9f0e3; }
.project-desktop-file.file-yellow { --file-accent: var(--yellow); --file-fill: #fff0b8; }
.project-desktop-file:nth-child(n) { margin: 0; }
.project-file-folder {
  position: relative;
  width: clamp(80px, 8vw, 108px);
  aspect-ratio: 1.42;
  margin: 12px 0 15px;
  border: 2px solid var(--ink);
  border-radius: 3px 3px 6px 6px;
  background: var(--file-fill);
  box-shadow: 7px 8px 0 rgba(38,51,59,.18);
  transform-origin: 50% 100%;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.project-file-folder::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -14px;
  width: 47%;
  height: 15px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: var(--file-accent);
}
.project-file-folder span {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 28%;
  height: 2px;
  background: rgba(21,25,24,.3);
  box-shadow: 0 10px 0 rgba(21,25,24,.2);
}
.project-file-name {
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(.96rem, 1.2vw, 1.1rem);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}
.project-desktop-file small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.15;
}
.project-desktop-file:hover .project-file-folder,
.project-desktop-file:focus-visible .project-file-folder {
  transform: translateY(-5px) rotate(-1.5deg);
  box-shadow: 10px 12px 0 rgba(38,51,59,.2);
}
.project-desktop-file:hover .project-file-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.project-desktop-file:focus-visible { outline: 3px solid var(--ink); outline-offset: 8px; }

/* A lead/support group is a REAL box, which is what lets the mobile rule move
   it. The two compositions that overlap their frames dissolve theirs on
   desktop, so every absolute-positioning rule below still addresses .ev-frame
   as a direct child of .evidence and none of them had to change. */
.ev-group { display: grid; gap: clamp(12px, 1.6vw, 18px); min-width: 0; }
.evidence-progression .ev-group,
.evidence-hero-inset .ev-group { display: contents; }
/* evidence-set — the lead sits OUTSIDE the support's frame. The authored lead
   is already a designed sheet with its own edge, and a white box around a
   board inside a coloured folder is three frames for one piece of content. */
.evidence-set { display: grid; gap: clamp(16px, 2.2vw, 26px); }

/* comparison-proof — a current/proposed pair where neither state is allowed
   to dominate or masquerade as a shipped before/after. The third frame is the
   diagnosis beneath them, so the composition reads product → decision → proof. */
.evidence-comparison .ev-compare-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.evidence-comparison .ev-group-support {
  padding: clamp(12px, 1.6vw, 18px);
  border: 3px solid var(--ink); background: rgba(255, 255, 255, .45);
  box-shadow: 14px 16px 0 rgba(38, 51, 59, .18);
}
.evidence-comparison figcaption { bottom: 0; }

/* search-share — the landscape result and portrait artefact are one cause and
   effect unit. The search owns the width it needs for its map; the card stays
   recognisably 4:5 instead of being stretched into an equal screenshot tile. */
.evidence-search-share .ev-search-share-pair {
  grid-template-columns: minmax(0, 1.55fr) minmax(190px, .72fr);
  align-items: start;
}
.evidence-search-share .ev-group-support {
  padding: clamp(12px, 1.6vw, 18px);
  border: 3px solid var(--ink); background: rgba(255, 255, 255, .45);
  box-shadow: 14px 16px 0 rgba(38, 51, 59, .18);
}
.evidence-search-share figcaption { bottom: 0; }

.ev-frame { margin: 0; position: relative; }
.ev-frame img,
.ev-frame video {
  display: block; width: 100%; height: auto;
  aspect-ratio: var(--ar, auto); object-fit: cover;
  border: 2px solid var(--ink); background: #fff;
}
/* An evidence label belongs to its frame, so it sits on the frame's edge and
   is ordinary text for every reader. */
.ev-frame figcaption {
  position: absolute; left: 0; z-index: 3;
  padding: 5px 10px 4px;
  background: var(--ink); color: var(--paper);
  font-size: .68rem; font-weight: 700; letter-spacing: .055em; line-height: 1.1;
  white-space: nowrap;
}

/* desktop-pair — the onboarding story only needs one moment before and after
   the first details are entered. Two equal desktop monitors keep the product
   context legible without turning the evidence area into another card grid. */
.evidence-desktop-pair { padding: 8px 0 42px; }
.evidence-desktop-pair .ev-group-lead {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.1vw, 28px);
  align-items: start;
}
.ev-desktop-monitor { min-width: 0; margin: 0; }
.desktop-monitor-shell {
  position: relative;
  padding: clamp(7px, .8vw, 10px) clamp(7px, .8vw, 10px) clamp(20px, 2vw, 27px);
  border: 2px solid var(--ink);
  border-radius: 11px 11px 7px 7px;
  background: linear-gradient(180deg, #f7f8f7 0%, #d7dcdb 100%);
  box-shadow: 0 18px 30px rgba(38, 51, 59, .18);
}
.desktop-monitor-screen {
  overflow: hidden;
  border: 1px solid rgba(21,25,24,.7);
  border-radius: 5px 5px 2px 2px;
  background: #fff;
}
.desktop-monitor-screen img,
.desktop-monitor-screen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 0;
}
.desktop-monitor-stand {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  width: 25%;
  height: 24px;
  translate: -50% 0;
  border: 2px solid var(--ink);
  border-top: 0;
  background: linear-gradient(90deg, #cbd0cf, #f4f5f4 48%, #c4cac9);
}
.desktop-monitor-stand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 150%;
  height: 7px;
  translate: -50% 0;
  border: 2px solid var(--ink);
  border-radius: 7px 7px 3px 3px;
  background: #d7dcdb;
}
.ev-desktop-monitor figcaption {
  margin-top: 39px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

/* desktop-phone — one compact product proof for the shared left/right snapshot
   chassis. The desktop comparison owns the width; the phone makes the live
   directory recognisable without sending either screen below the copy. */
.evidence-desktop-phone {
  min-height: clamp(430px, 39vw, 540px);
}
.evidence-desktop-phone .ev-group-lead,
.evidence-desktop-phone .ev-group-support {
  position: absolute;
  display: block;
}
.evidence-desktop-phone .ev-group-lead {
  top: 7%; right: 0; width: 82%; z-index: 1;
}
.evidence-desktop-phone .ev-group-support {
  left: 0; bottom: -3%; width: 29%; z-index: 3;
}
.evidence-desktop-phone .ev-product-monitor { width: 100%; }
.evidence-desktop-phone .desktop-monitor-shell {
  padding: clamp(7px, .8vw, 10px) clamp(7px, .8vw, 10px) clamp(17px, 1.5vw, 22px);
  border: 1.5px solid #101313;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #303636 0%, #151918 100%);
  box-shadow: 0 22px 34px rgba(38, 51, 59, .2);
}
.evidence-desktop-phone .desktop-monitor-screen {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px 5px 3px 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.32);
}
.evidence-desktop-phone .desktop-monitor-stand {
  top: 100%; width: 23%; height: 31px; border: 0;
  background: linear-gradient(90deg, #747c7b, #d6d9d8 50%, #68706f);
  clip-path: polygon(34% 0, 66% 0, 80% 100%, 20% 100%);
}
.evidence-desktop-phone .desktop-monitor-stand::after {
  bottom: -6px; width: 145%; height: 7px;
  border: 1.5px solid #101313; border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, #e4e6e5, #858d8b);
  box-shadow: 0 5px 9px rgba(38,51,59,.16);
}
.evidence-desktop-phone .desktop-monitor-screen img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center top;
}
.evidence-desktop-phone .ev-product-phone {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  rotate: -2deg;
}
.evidence-desktop-phone .ev-product-phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

/* mobile-share — the search is a phone product and the share card is its
   social payoff. They stay one composition: product on the left, something
   worth dropping into the group chat on the right. */
.evidence-mobile-share {
  min-height: clamp(430px, 42vw, 570px);
}
.evidence-mobile-share .ev-group-lead,
.evidence-mobile-share .ev-group-support {
  position: absolute;
  display: block;
}
.evidence-mobile-share .ev-group-lead {
  left: 1%; bottom: 0; width: 36%; z-index: 2;
}
.evidence-mobile-share .ev-group-support {
  right: 0; top: 4%; width: 62%; z-index: 1;
}
.evidence-mobile-share .ev-golf-search-phone {
  width: 100%; aspect-ratio: 9 / 18.5; rotate: -2deg;
}
.evidence-mobile-share .ev-golf-search-phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.evidence-mobile-share .ev-golf-share-card {
  margin: 0; rotate: 2deg;
  filter: drop-shadow(13px 15px 0 rgba(38,51,59,.20));
}
.evidence-mobile-share .ev-golf-share-card img {
  display: block; width: 100%; height: auto;
  border: 2px solid var(--ink); background: #fff;
}
/* progression — two filled states, read 01 then 02, with 02 dominant.
   The vertical offset is what keeps step 1's own step marker and question
   visible above step 2's top edge; without it the front frame buries them. */
/* The two widths and the container ratio are one calculation, not three taste
   choices. At 3:2 sources, 72% and 90% put step 2's top edge at 28% of the
   container, which clears step 1's step marker (31% of its own height) and its
   question (38%). Change any one of them and re-check those two rows: that is
   the whole point of the composition. */
.evidence-progression { aspect-ratio: 25 / 22; margin: 14px 0 16px; }
.evidence-progression .ev-frame { position: absolute; }
.evidence-progression .ev-behind { top: 0; left: 0; width: 72%; z-index: 1; rotate: -1.1deg; }
.evidence-progression .ev-front {
  right: 0; bottom: 0; width: 90%; z-index: 2; rotate: .9deg;
  box-shadow: 14px 16px 0 rgba(38, 51, 59, .20);
}
.evidence-progression .ev-behind figcaption { top: 0; translate: 0 -50%; }
.evidence-progression .ev-front figcaption { bottom: 0; translate: 0 50%; }

/* evidence-stack — one outer frame, three images that keep their own edges.
   The lead reads as a deliberate state system; the pair beneath is the
   design-to-production claim, so neither half may be dropped. */
.evidence-stack {
  display: grid; gap: clamp(12px, 1.6vw, 18px);
  padding: clamp(12px, 1.6vw, 18px);
  border: 3px solid var(--ink); background: rgba(255, 255, 255, .45);
  box-shadow: 14px 16px 0 rgba(38, 51, 59, .18);
}
.evidence-stack .ev-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 18px); }
.evidence-stack .ev-pair:has(> :only-child) { grid-template-columns: 1fr; }
.evidence-stack figcaption { bottom: 0; }

/* system-collage — the same outer frame, with a mosaic where the single lead
   image was. Multi-column rather than justified rows: these captures range
   from 0.37 to 4.16 in aspect, and in a justified row one tall tile squashes
   everything beside it. Columns let a tall tile simply own more of its
   column, which is also what makes the mosaic read as a collage rather than
   a grid. */
.evidence-system .ev-mosaic { columns: 3; column-gap: clamp(8px, 1.1vw, 12px); }
.evidence-system .ev-tile { break-inside: avoid; margin: 0 0 clamp(8px, 1.1vw, 12px); }
/* Tiles carry the crop's own measured ratio, from 0.65 to 8.67, and a
   lighter edge than the pair below: at this size a 2px border competes with
   the control inside it. */
.evidence-system .ev-tile img,
.evidence-system .ev-tile video { border-width: 1px; aspect-ratio: var(--ar); }
/* The first tile leads full width. It is the one capture that shows the
   system inside a real product surface, and at column width its status and
   controls collapse to about 50px and stop being readable. */
.evidence-system .ev-tile:first-child { column-span: all; margin-bottom: clamp(8px, 1.1vw, 12px); }
/* One label for the whole mosaic, sat in its last column so it reads as
   belonging to the group rather than to whichever tile it lands beside. */
.evidence-system .ev-mosaic-label {
  break-inside: avoid; margin: 0;
  padding: 5px 10px 4px; background: var(--ink); color: var(--paper);
  font-size: .68rem; font-weight: 700; letter-spacing: .055em; line-height: 1.1;
  width: max-content; max-width: 100%;
  column-span: all;   /* the label belongs to the mosaic, not to one column */
}

/* hero-inset — one dominant proof, one supporting detail over its lower
   right. The inset hangs below the lead, never past its right edge, so it
   cannot introduce horizontal overflow.

   The hang is 15%, not a token amount, because the lead here is a designed
   board whose lower right carries readable sentences. At 6% the inset landed
   across the middle of them and read as a rendering fault rather than a
   deliberate overlap. If a future lead is a photograph, a smaller hang is
   fine; check what the corner actually contains before reducing it. */
.evidence-hero-inset { padding-bottom: 15%; }
.evidence-hero-inset .ev-lead { width: 100%; }
.evidence-hero-inset .ev-lead figcaption { bottom: 0; }
.evidence-hero-inset .ev-inset {
  position: absolute; right: 0; bottom: 0; width: 38%; z-index: 2;
  box-shadow: 12px 14px 0 rgba(38, 51, 59, .22);
}
.evidence-hero-inset .ev-inset figcaption { bottom: 0; font-size: .62rem; }

/* browser-sections — two real slices of one live website. The wide hero
   establishes the page; the animated workflow section overlaps it like a
   second browser window, without interrupting the copy column. */
.evidence-browser-sections {
  position: relative;
  min-height: clamp(430px, 40vw, 565px);
}
.evidence-browser-sections .ev-group { display: contents; }
.ev-browser-section {
  overflow: hidden;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 12px 14px 0 rgba(38, 51, 59, .18);
}
.ev-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(21, 25, 24, .55);
  background: #e7e5df;
}
.ev-browser-bar i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.ev-browser-bar span {
  min-width: 0;
  margin-left: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-browser-screen img,
.ev-browser-screen video {
  display: block;
  width: 100%;
  height: auto;
}
.ev-browser-hero { width: 100%; }
.ev-browser-motion {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 68%;
  rotate: 1deg;
}

/* browser-motion-sequence — the website is the proof; its motion language is
   a compact supporting detail. The source clips are square, so the viewer
   preserves their real frame instead of cropping them into a landscape box. */
.evidence-browser-motion { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.evidence-browser-motion .ev-group-support { display: block; }
.ev-motion-detail {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(280px, 360px);
  overflow: hidden; border: 2px solid var(--ink); background: var(--ink);
  box-shadow: 10px 12px 0 rgba(38,51,59,.16);
}
.ev-motion-controls { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--ink); }
.ev-motion-heading {
  margin: 0; padding: 13px 14px 11px; color: var(--paper);
  font: 800 .66rem/1 var(--mono); letter-spacing: .055em; text-transform: uppercase;
}
.ev-motion-tabs { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(243,245,247,.24); }
.ev-motion-tab {
  min-width: 0; min-height: 52px; padding: 10px 14px; border: 0; border-top: 1px solid rgba(243,245,247,.24);
  background: transparent; color: var(--paper); cursor: pointer; text-align: left;
  font: 800 clamp(.66rem, .82vw, .78rem)/1.12 var(--body); text-transform: uppercase;
}
.ev-motion-tab:first-child { border-top: 0; }
.ev-motion-tab[aria-selected="true"] { background: var(--yellow); color: var(--ink); }
.ev-motion-tab:focus-visible { position: relative; z-index: 3; outline: 3px solid var(--yellow); outline-offset: -5px; }
.ev-motion-tab[aria-selected="true"]:focus-visible { outline-color: var(--paper); }
.ev-motion-stage { position: relative; border-left: 2px solid var(--ink); background: var(--paper-deep); }
.ev-motion-step { position: relative; min-width: 0; margin: 0; }
.ev-motion-step[hidden] { display: none; }
.ev-motion-screen { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--paper-deep); }
.ev-motion-screen video, .ev-motion-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ev-motion-page figcaption { position: static; display: block; padding: 7px 9px 6px; background: var(--ink); color: var(--paper); font-size: .6rem; white-space: normal; }
.ev-motion-page { overflow: hidden; margin: 0; border: 2px solid var(--ink); border-radius: 8px; background: #fff; box-shadow: 10px 12px 0 rgba(38,51,59,.16); }
.ev-motion-page img { display: block; width: 100%; }
.evidence-browser-motion-single { display: grid; gap: clamp(22px, 3vw, 38px); }
.evidence-browser-motion-single .ev-group-support { display: block; }
.ev-motion-single {
  margin: 0; display: grid; grid-template-columns: minmax(200px, .8fr) minmax(260px, 380px);
  align-items: center; gap: clamp(20px, 3vw, 42px); padding: clamp(18px, 2.4vw, 30px);
  border: 2px solid var(--ink); border-radius: 8px; background: #fff;
  box-shadow: 10px 12px 0 rgba(38,51,59,.16);
}
.ev-motion-single > figcaption { position: static; display: grid; gap: 9px; padding: 0; background: none; color: var(--ink); }
.ev-motion-single > figcaption strong { font-family: var(--display); font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1; letter-spacing: -.025em; }
.ev-motion-single > figcaption span { max-width: 28ch; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.ev-motion-single-screen { position: relative; overflow: hidden; aspect-ratio: 1; border: 2px solid var(--ink); background: var(--paper-deep); }
.ev-motion-single-screen video,
.ev-motion-single-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ev-tool-strip { display: grid; border: 2px solid var(--ink); background: #fff; }
.ev-tool-strip span { padding: 7px 9px 6px; border-top: var(--hairline); font: 700 .55rem var(--mono); letter-spacing: .04em; }
.ev-tool-strip span:first-child { border-top: 0; }

/* phone-fan — the mobile product views are the lead artefact;
   the system diagrams sit behind them as supporting evidence. */
.evidence-phone-fan { display: grid; gap: clamp(20px, 2.8vw, 34px); }
.evidence-phone-fan .phones { min-height: clamp(430px, 47vw, 680px); }
.evidence-phone-fan .phone { margin: 0; }
.evidence-phone-fan .phone img { aspect-ratio: auto; height: 100%; object-fit: cover; object-position: top; }
.evidence-phone-fan .ev-group-support { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* photo-story — one lived moment, then the designed artefacts that made the
   moment possible. The support pair hangs off the lower edge like ephemera. */
.evidence-photo-story { display: grid; padding-bottom: 8%; }
.evidence-photo-story .ev-photo-lead img { width: 100%; aspect-ratio: var(--ar, 16 / 10); }
.evidence-photo-story .ev-group-support {
  position: relative; z-index: 2; width: 48%; margin: -16% 2% 0 auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(110px, .75fr); align-items: end;
  padding: clamp(10px, 1.3vw, 16px); border: 3px solid var(--ink);
  background: rgba(255,255,255,.88); box-shadow: 14px 16px 0 rgba(38, 51, 59, .2);
}
.evidence-photo-story .ev-group-support:has(> :only-child) {
  width: 34%; grid-template-columns: 1fr;
}
.evidence-photo-story .ev-photo-support img { width: 100%; aspect-ratio: var(--ar, auto); }
.evidence-photo-story figcaption { bottom: 0; max-width: 100%; white-space: normal; }
.ev-frame figcaption .credit { display: block; margin-top: 3px; color: rgba(243,245,247,.72); font-size: .88em; font-weight: 500; letter-spacing: .02em; text-transform: none; }

/* instant-prints — four small convention snapshots. They form an overview,
   not an overlapping hero where one photograph has to carry the project. */
.evidence-instant-prints { display: grid; min-height: 0; padding: 10px 0 16px; }
.evidence-instant-prints .ev-group-lead {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end; gap: clamp(18px, 2.2vw, 28px); width: 100%; min-height: 0;
}
.evidence-instant-prints .ev-instant {
  position: relative; width: auto; margin: 0; padding: 8px 8px 0;
  border: 2px solid var(--ink); background: #fff;
  box-shadow: 7px 8px 0 rgba(38,51,59,.16);
}
.evidence-instant-prints .ev-instant img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.evidence-instant-prints .ev-instant figcaption {
  position: static; max-width: none; min-height: 34px; padding: 8px 2px 7px;
  background: transparent; color: var(--ink); font-family: var(--mono);
  font-size: .58rem; letter-spacing: .035em; line-height: 1.1; white-space: normal;
}
.evidence-instant-prints .ev-instant-1 { rotate: -1.4deg; }
.evidence-instant-prints .ev-instant-2 { rotate: .8deg; }
.evidence-instant-prints .ev-instant-3 { rotate: -1deg; }
.evidence-instant-prints .ev-instant-4 { rotate: 1.3deg; }

@media (max-width: 980px) {
  /* The DOM already follows the narrow-screen reading order: introduction,
     evidence, optional context, actions. No CSS reordering is needed. */
  .project-preview.is-snapshot {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "head" "media" "body" "foot";
    row-gap: clamp(22px, 5.5vw, 34px);
    align-items: start;
  }
  .is-snapshot .preview-head { grid-area: head; }
  .is-snapshot .preview-media { grid-area: media; }
  .is-snapshot .preview-body { grid-area: body; }
  .is-snapshot .preview-foot { grid-area: foot; }
  .is-snapshot .ev-group { display: grid; gap: clamp(12px, 3.2vw, 18px); min-width: 0; }

  .evidence-desktop-pair { padding-bottom: 38px; }
  .evidence-desktop-pair .ev-group-lead {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .ev-desktop-monitor { width: min(100%, 620px); justify-self: center; }

  .evidence-desktop-phone { min-height: clamp(270px, 86vw, 340px); }
  .is-snapshot .evidence-desktop-phone .ev-group-lead,
  .is-snapshot .evidence-desktop-phone .ev-group-support {
    position: absolute; display: block;
  }
  .evidence-desktop-phone .ev-group-lead { top: 2%; width: 84%; }
  .evidence-desktop-phone .ev-group-support { bottom: -3%; width: 31%; }
  .evidence-desktop-phone .desktop-monitor-shell {
    padding: 5px 5px 14px;
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 10px 18px rgba(38, 51, 59, .16);
  }
  .evidence-desktop-phone .desktop-monitor-stand { height: 18px; }
  .evidence-desktop-phone .ev-product-phone {
    border-width: 4px; border-radius: 18px;
    box-shadow: 6px 8px 0 rgba(38,51,59,.2);
  }
  .evidence-desktop-phone .ev-product-phone img { border-radius: 13px; }

  .evidence-mobile-share { min-height: clamp(350px, 108vw, 430px); }
  .is-snapshot .evidence-mobile-share .ev-group-lead,
  .is-snapshot .evidence-mobile-share .ev-group-support {
    position: absolute; display: block;
  }
  .evidence-mobile-share .ev-group-lead { left: 1%; bottom: 0; width: 42%; }
  .evidence-mobile-share .ev-group-support { right: 0; top: 4%; width: 62%; }
  .evidence-mobile-share .ev-golf-search-phone {
    border-width: 4px; border-radius: 18px;
    box-shadow: 6px 8px 0 rgba(38,51,59,.2);
  }
  .evidence-mobile-share .ev-golf-search-phone img { border-radius: 13px; }
  .evidence-mobile-share .ev-golf-share-card {
    filter: drop-shadow(7px 9px 0 rgba(38,51,59,.18));
  }
  .evidence-project-desktop { min-height: 0; }
  .project-desktop-files {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 18px;
    padding: 46px 18px 48px;
  }
  .project-desktop-file:nth-child(n) { margin: 0; }
  .project-desktop-file:nth-child(even) { margin-top: 0; }
  .project-file-folder { width: clamp(84px, 28vw, 112px); }

  /* Overlapping evidence becomes an ordinary stack. Nothing is hidden. */
  /* relative, not static: the frame is still the containing block for its own
     caption and for the progression marker. Taking it out of the positioned
     flow entirely sent both to the folder's bottom-left corner. */
  .is-snapshot .evidence-progression .ev-frame,
  .is-snapshot .evidence-hero-inset .ev-frame {
    position: relative; inset: auto; width: 100%; rotate: none;
  }
  .is-snapshot .evidence-hero-inset .ev-inset { box-shadow: 10px 12px 0 rgba(38, 51, 59, .18); }
  .evidence-browser-sections {
    display: grid;
    gap: 18px;
    min-height: 0;
  }
  .ev-motion-detail { grid-template-columns: 1fr; }
  .ev-motion-controls { grid-template-rows: auto auto; }
  .ev-motion-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .ev-motion-tab { border-top: 1px solid rgba(243,245,247,.24); }
  .ev-motion-tab:nth-child(even) { border-left: 1px solid rgba(243,245,247,.24); }
  .ev-motion-stage { border-top: 2px solid var(--ink); border-left: 0; }
  .ev-motion-single { grid-template-columns: 1fr; }
  .ev-motion-single > figcaption span { max-width: none; }
  .ev-motion-single-screen { width: min(100%, 420px); margin-inline: auto; }
  .ev-tool-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ev-tool-strip span { display: grid; place-items: center; min-height: 38px; padding: 5px; border-top: 0; border-left: var(--hairline); text-align: center; }
  .ev-tool-strip span:first-child { border-left: 0; }
  .is-snapshot .evidence-browser-sections .ev-group { display: block; }
  .ev-browser-hero,
  .ev-browser-motion {
    position: relative;
    inset: auto;
    width: 100%;
    rotate: none;
  }
  /* On the image, not the figure: the progression's caption is inside the
     figure at this width, so a shadow on the figure draws a grey band beside
     and under the label rather than behind the capture. */
  .is-snapshot .evidence-progression .ev-front { box-shadow: none; }
  .is-snapshot .evidence-progression .ev-front img { box-shadow: 10px 12px 0 rgba(38, 51, 59, .18); }
  /* The progression's labels come OUT of the frame on a phone. Overlaid, they
     land on the bottom-left of a 3:2 capture, which is where the tribute card's
     dates sit in step 1 and its new service block sits in step 2 — the two rows
     the composition exists to show changing. Desktop keeps them overlaid: there
     the frames overlap, and a label off the edge is what joins them. */
  .is-snapshot .evidence-progression .ev-frame figcaption {
    position: static; inset: auto; translate: 0 0;
    width: max-content; max-width: 100%; margin-top: 6px;
    font-size: .72rem; white-space: normal;
  }
  .is-snapshot .evidence-search-share .ev-frame figcaption {
    position: static; inset: auto;
    width: 100%; max-width: 100%; box-sizing: border-box;
    white-space: normal; overflow-wrap: anywhere;
  }
  .is-snapshot .evidence-search-share .ev-frame { min-width: 0; }
  .is-snapshot .evidence-hero-inset .ev-inset figcaption { font-size: .68rem; }
  /* The progression reads downwards, so it gets a real progression marker
     between the two states rather than relying on the reader inferring it. */
  .is-snapshot .evidence-progression .ev-group-lead { row-gap: clamp(20px, 5vw, 28px); }
  .is-snapshot .evidence-progression .ev-behind::after {
    content: ""; position: absolute; left: 50%; bottom: calc(-1 * clamp(20px, 5vw, 28px));
    translate: -50% 0; margin-bottom: 6px;
    border-left: 7px solid transparent; border-right: 7px solid transparent;
    border-top: 9px solid var(--ink);
  }

  .evidence-stack .ev-pair { grid-template-columns: 1fr; }
  .evidence-search-share .ev-search-share-pair { grid-template-columns: 1fr; }
  .evidence-comparison .ev-compare-pair { grid-template-columns: 1fr; }
  .evidence-phone-fan .phones { min-height: clamp(360px, 112vw, 500px); padding-inline: 0; }
  .evidence-phone-fan .phone { border-width: 4px; border-radius: 22px; box-shadow: 7px 9px 0 rgba(38,51,59,.2); }
  .evidence-phone-fan .phone img { border-radius: 16px; }
  .evidence-phone-fan .ev-group-support { grid-template-columns: 1fr; }
  .evidence-photo-story { padding-bottom: 0; gap: 14px; }
  .evidence-photo-story .ev-group-support {
    position: static; width: 92%; margin: -13% 0 0 auto;
    grid-template-columns: minmax(0, 1.2fr) minmax(90px, .8fr);
    box-shadow: 9px 11px 0 rgba(38,51,59,.18);
  }
  .evidence-photo-story .ev-group-support:has(> :only-child) {
    width: 66%; grid-template-columns: 1fr;
  }
  .evidence-instant-prints { min-height: 0; padding: 4px 2px 10px; }
  .evidence-instant-prints .ev-group-lead {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 10px; width: 100%; min-height: 0;
  }
  .evidence-instant-prints .ev-instant { width: auto; padding: 6px 6px 0; box-shadow: 5px 6px 0 rgba(38,51,59,.15); }
  .evidence-instant-prints .ev-instant figcaption { min-height: 30px; padding: 7px 1px 6px; font-size: .53rem; }
  /* Three columns of component captures are unreadable on a phone; two keep
     each tile wide enough to still read as a set of controls. */
  .evidence-system .ev-mosaic { columns: 2; }

  /* A purpose-made narrow capture has its own shape; the desktop width and
     height attributes would otherwise reserve the wrong box and shift. */
  .ev-frame img,
  .ev-frame video { aspect-ratio: var(--m-ar, var(--ar, auto)); }

  /* The shared contribution grid is two max-content columns, which was decided
     when every label was one or two short words. These labels are longer, and
     two max-content columns of "Trade-show activation design" and "Brand
     positioning & messaging" set a min-content width of ~399px inside a 305px
     column, which blew the whole page out horizontally. Snapshots only: two
     equal columns that are allowed to shrink, so the 2 by 2 grid survives and
     the text wraps instead of the page. Every other project keeps the original
     rule at every width. */
  .is-snapshot .project-scope ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .is-snapshot .project-scope li { align-items: flex-start; }

  .metric-group.is-inline { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
  .metric-group.is-inline .metric + .metric { padding-left: 12px; border-left: 1px solid rgba(21,25,24,.28); border-top: 0; }
  .metric-group.is-hero .metric-value { font-size: clamp(1.45rem, 7vw, 2.1rem); }
}

.contact-body { max-width: 46ch; margin: 24px 0 0 !important; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.4vw, 1.25rem); }

@media (prefers-reduced-motion: reduce) {
  .project-file-folder { transition: none; }
}

/* Deathcare is a three-part research proof, not three dashboard cards. Keep
   each number and its short label together in one compact, aligned band. */
#preview-deathcaresoftware .metric-group.is-inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#preview-deathcaresoftware .metric-group.is-inline .metric {
  min-width: 0; padding: 13px 8px 14px;
  display: flex; align-items: baseline; justify-content: flex-start; gap: 6px;
  white-space: nowrap;
}
#preview-deathcaresoftware .metric-group.is-inline .metric:first-child { padding-left: 0; }
#preview-deathcaresoftware .metric-group.is-inline .metric-value {
  flex: none; font-size: clamp(1.35rem, 5.8vw, 1.9rem); font-variant-numeric: tabular-nums;
}
#preview-deathcaresoftware .metric-group.is-inline .metric-label {
  min-width: 0; margin: 0; font-size: clamp(.7rem, 2.9vw, .88rem); line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   EXPANDED OPEN DRAWER PROTOTYPE — 2026-09-26

   One generous desktop scene, not a complete case study squeezed into a
   small card. The filing system stays intact; the browser width now belongs
   to the work. Snapshot height remains content-led: one viewport is the
   editorial preference, never a clipping or fixed-height rule.
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 981px) {
  .experience {
    padding: clamp(28px, 4vh, 52px) clamp(16px, 1.6vw, 32px)
      clamp(72px, 8vw, 128px);
  }

  .drawer {
    width: min(100%, 1840px);
    max-width: none;
  }

  .capability-tabs {
    padding-inline: clamp(16px, 2.2vw, 40px);
  }

  .capability-tab {
    min-height: 72px;
    padding: 13px 18px 24px;
  }

  .capability-tab[aria-selected="true"] {
    min-height: 84px;
    padding-bottom: 14px;
  }

  .folder {
    min-height: clamp(620px, calc(100svh - 170px), 760px);
    padding: clamp(24px, 2.35vw, 44px);
  }

  .folder-body {
    padding-top: clamp(22px, 2vw, 36px);
  }

  .project-preview.is-snapshot {
    grid-template-columns: minmax(300px, .62fr) minmax(0, 1.38fr);
    column-gap: clamp(32px, 3.6vw, 68px);
  }

  .is-snapshot.layout-image,
  .is-snapshot.layout-photo,
  .is-snapshot.layout-moment {
    grid-template-columns: minmax(0, 1.32fr) minmax(300px, .68fr);
  }

  .is-snapshot.layout-copy {
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  }

  .is-snapshot .preview-head h4 {
    font-size: clamp(2rem, 2.45vw, 3.2rem);
  }

  .layout-comparison .preview-head h4,
  .layout-motion .preview-head h4,
  .layout-copy .preview-head h4 {
    max-width: 20ch;
    font-size: clamp(2.25rem, 3.2vw, 4.1rem);
  }

  .is-snapshot .preview-short {
    margin-top: clamp(18px, 1.5vw, 24px);
    font-size: clamp(1.04rem, 1.15vw, 1.25rem);
  }

  .evidence-desktop-phone {
    height: clamp(480px, 29vw, 570px);
    min-height: 0;
  }

  /* These compositions were originally percentage-sized inside a 1400px
     drawer. Once the drawer can use a wide monitor, their portrait artefacts
     become taller than the folder. Cap the physical artefacts, not the new
     evidence column, so the scene keeps its breathing room and hierarchy. */
  .evidence-desktop-phone .ev-group-lead {
    top: 2%;
    width: min(76%, 780px);
  }

  .evidence-desktop-phone .ev-group-support {
    width: min(27%, 250px);
  }

  .evidence-mobile-share {
    height: clamp(470px, 27vw, 540px);
    min-height: 0;
  }

  .evidence-mobile-share .ev-group-lead {
    left: 4%;
    width: clamp(210px, 20vw, 260px);
  }

  .evidence-mobile-share .ev-group-support {
    top: 12px;
    right: 4%;
    width: min(64%, 660px);
    height: calc(100% - 24px);
  }

  .evidence-mobile-share .ev-golf-share-card {
    height: 100%;
    overflow: hidden;
  }

  .evidence-mobile-share .ev-golf-share-card img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* The live before/after wipe keeps its native 3:2 screen, so cap that
     screen rather than flattening or cropping it on an ultra-wide canvas. */
  .evidence-live-only:has(.ev-live-wipe) {
    width: min(100%, 940px);
    margin-inline: auto 0;
  }

  /* The two onboarding states should read as a transition, not turn into an
     extra-tall poster as the media column widens. Both source frames remain
     visible and the full images are still available through the loupe. */
  .evidence-progression {
    height: clamp(480px, 32vw, 680px);
    aspect-ratio: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   PROJECT CONTENTS (findability prototype, 2026-10-27)

   The drawer opens on "All projects": every project as one contents list,
   grouped by drawer. Each drawer opens on its own list; a project opens at
   full folder width with "back" and "previous / next" in one row below it.
   The All projects tab is ink, the site's own colour, not a fifth drawer colour.
   The old project tabs (.folder-topline) are no longer rendered.
   ═══════════════════════════════════════════════════════════════════════ */
/* minmax(0, …): five tabs with a count line otherwise refuse to shrink below
   their content and push the last tab past the folder at tablet widths. */
.capability-tabs { grid-template-columns: minmax(0, .82fr) repeat(4, minmax(0, 1fr)); }
/* The selected tab stands 28px proud of the rest, as on the live site.
   Labels wrap differently from tab to tab here (five tabs, plus a count
   line), so heights cannot come from min-height alone: every tab stretches
   to the row, and the selected one reaches 12px above it. Its top padding
   makes up its smaller bottom padding, so its label sits like the others.
   The phone stack (max-width: 720px) has its own selected-tab rule. */
@media (min-width: 721px) {
  .capability-tabs { align-items: stretch; }
  .capability-tab[aria-selected="true"] { margin-top: -12px; }
}
@media (min-width: 721px) and (max-width: 980px) {
  .capability-tab[aria-selected="true"] { padding-top: calc(16px + 14px); }
}
@media (min-width: 981px) {
  /* The count line would otherwise sit on the folder's top edge: the same
     30px bottom padding as tablet clears it by 12px (18px is tucked behind
     the folder). The icon (capability-icons.css) is placed for 30px. */
  .capability-tab { padding-bottom: 30px; }
  .capability-tab[aria-selected="true"] { padding-top: calc(13px + 16px); }
}
/* --icon-bg fills the All projects icon's files, so it must match the tab. */
.tab-ink { --tab-colour: var(--ink); --tab-tint: var(--paper-deep); --icon-bg: var(--ink); background: var(--ink); color: var(--paper); }
.folder[data-color="ink"] { --folder-fill: #fff; --folder-stack: var(--paper-deep); }
/* .folder's 680px floor exists for the project layout. A contents list is as
   tall as its rows, so a two-project drawer does not trail empty folder. */
.folder-all, .folder:has(> .folder-contents:not([hidden])) { min-height: 0; }

.contents-head { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 34px); }
.contents-head h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -.045em; line-height: .95; }
.contents-head p { margin: 0 0 .3em; max-width: 46ch; font-size: 1.05rem; line-height: 1.45; }

.contents { background: #fff; border: 3px solid var(--ink); box-shadow: 10px 10px 0 rgba(21,25,24,.18); }
.contents-label { margin: 0; padding: 16px 22px 14px; display: flex; justify-content: space-between; border-bottom: 2px solid var(--red); font: 400 .74rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.contents-label span + span { color: var(--muted); }
.contents-list { list-style: none; margin: 0; padding: 0; }
.contents-list li + li { border-top: 1.5px solid #c9d4dc; }
.contents-row { display: grid; grid-template-columns: 34px 132px minmax(0, 1fr) 30px; gap: 20px; align-items: center; padding: 14px 22px; text-decoration: none; color: inherit; transition: background-color 160ms ease; }
.contents-row:focus-visible { outline-offset: -6px; }
.contents-no { font: 400 .8rem/1 var(--mono); }
.contents-thumb { display: block; border: 2px solid var(--ink); background: var(--paper); aspect-ratio: 16 / 10; overflow: hidden; }
.contents-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.contents-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contents-main strong { font-family: var(--display); font-weight: 900; font-size: 1.32rem; letter-spacing: -.03em; line-height: 1.05; }
.contents-main span { font-size: .98rem; line-height: 1.35; color: #3a4443; }
.contents-go { font-size: 1.4rem; font-weight: 800; transition: transform 160ms ease; }
.contents-row:hover .contents-go { transform: translateX(5px); }

/* All projects: one list grouped by drawer, so its rows sit a little shorter. */
.contents-group[data-color="red"]    { --g: var(--red);    --g-tint: #ffdcd7; }
.contents-group[data-color="blue"]   { --g: var(--blue);   --g-tint: #dfe6ff; }
.contents-group[data-color="green"]  { --g: var(--green);  --g-tint: #d9f0e3; }
.contents-group[data-color="yellow"] { --g: var(--yellow); --g-tint: #fff0b8; }
.contents-group-head { margin: 0; display: flex; align-items: center; gap: 10px; padding: 11px 22px; background: var(--g); border-top: 2px solid var(--ink); border-bottom: 1.5px solid #c9d4dc; }
.contents-group:first-of-type .contents-group-head { border-top: 0; }
.contents-group-head span { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.015em; }
.contents-group-head small { margin-left: auto; font: 400 .74rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }

/* Rows sit in their drawer's pastel, so the list reads as colour rather than
   white paper; the row under the pointer turns white. In a drawer's own list
   that pastel is the folder's fill (white for the ink All projects folder,
   whose rows take their group's tint below instead). */
.folder .contents-row { background: var(--folder-fill); }
.contents-group .contents-row { background: var(--g-tint); }
.folder .contents-row:hover, .contents-group .contents-row:hover { background: #fff; }
.is-grouped .contents-row { grid-template-columns: 34px 104px minmax(0, 1fr) 30px; padding: 10px 22px; }
.is-grouped .contents-main strong { font-size: 1.18rem; }
.is-grouped .contents-main span { font-size: .94rem; }

/* An open project: one row below it holds the way back and the way on, so
   nothing above the project pushes it down the page. */
.folder-body { padding-top: 0; }
.folder-back-link { display: inline-flex; gap: .4em; font-weight: 800; text-decoration: none; border: var(--border); background: #fff; padding: 9px 14px; box-shadow: 4px 4px 0 var(--ink); }
.folder-back-link:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.file-pager { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px 22px; align-items: center; margin-top: clamp(32px, 4vw, 48px); padding-top: 18px; border-top: 2px solid var(--ink); }
/* .file-pager prefix: outranks `.file-pager a`, which stacks label over name. */
.file-pager .folder-back-link { flex-direction: row; align-items: center; font-size: 1rem; }
a.file-pager-prev { text-align: right; align-items: flex-end; }
.file-pager a { display: flex; flex-direction: column; gap: 3px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.file-pager small { font: 400 .68rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
a.file-pager-next { justify-self: end; text-align: right; align-items: flex-end; border: var(--border); background: #fff; padding: 12px 16px; box-shadow: 5px 5px 0 var(--ink); }
a.file-pager-next span::after { content: "\00a0→"; }
a.file-pager-prev span::before { content: "←\00a0"; }
.file-pager-count { font: 400 .8rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.file-pager .folder-back-link { white-space: nowrap; }

/* Tablet: five tabs share the row, so they lose some padding, and contents
   rows use the narrower thumbnail so the project summary keeps a readable measure. */
@media (min-width: 721px) and (max-width: 980px) {
  .capability-tabs { padding-inline: 2%; gap: 4px; }
  /* The icon's reserved right-hand column (capability-icons.css) would take
     about 40% of a tab this narrow and split words, so it sits above the label. */
  .capability-tabs .capability-tab, .capability-tabs .capability-tab:has(> .cap-icon) { padding-inline: 12px; }
  .capability-tabs .capability-tab > .cap-icon { position: static; width: 1.6em; height: 1.6em; margin-bottom: 8px; }
  .contents-row, .is-grouped .contents-row { grid-template-columns: 34px 104px minmax(0, 1fr) 30px; }
  /* Four pager items do not fit this width: the count goes, and Previous
     takes the slack beside the way back. */
  .file-pager { grid-template-columns: auto 1fr auto; }
  .file-pager-count { display: none; }
}

@media (max-width: 720px) {
  .capability-tabs { grid-template-columns: 1fr; }
  .capability-tab:nth-child(5) { z-index: 5; }
  .capability-tab .tab-count { margin: 0 0 0 auto; }
  .capability-tab.tab-ink[aria-selected="true"] { color: var(--paper); }
  /* Closed, it follows the phone stack's rule: tint plus a coloured edge. */
  .capability-tab.tab-ink[aria-selected="false"] { --icon-bg: var(--tab-tint); background: var(--tab-tint); color: var(--ink); box-shadow: inset 8px 0 0 var(--tab-colour); }
  .contents-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .contents-head h3 { font-size: 2rem; }
  .contents-head p { font-size: 1rem; }
  .contents-label { padding: 14px 14px 12px; }
  .contents-row, .is-grouped .contents-row { grid-template-columns: 76px minmax(0, 1fr) 18px; gap: 12px; padding: 10px 14px; }
  .contents-no { display: none; }
  .contents-main strong, .is-grouped .contents-main strong { font-size: 1.05rem; }
  .contents-main span, .is-grouped .contents-main span { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .contents-group-head { padding: 10px 14px; }
  /* Phone: Next first and full width, the way back under it. The pager
     wraps, so there is always a Next; Previous and the count drop out. */
  .file-pager { grid-template-columns: 1fr; gap: 14px; }
  .file-pager-count, .file-pager .file-pager-prev { display: none; }
  a.file-pager-next { order: -1; justify-self: stretch; text-align: left; align-items: flex-start; padding: 16px 18px; }
  .file-pager .folder-back-link { justify-self: stretch; justify-content: center; padding: 15px 18px; white-space: normal; text-align: center; }
}

/* source: assets/css/00-foundation.css */
/* ── FOUNDATION ADDITIONS (wow pass) ───────────────────────────────────────
   Loaded after site.css. Three voices, one world:
     --display  Cabinet Grotesk. The site. (site.css)
     --mono     iA Writer Mono. Utility copy: index cards, labels,
                file numbers, anything a machine or a typewriter would print.
                Chosen 2026-09-25 from the personal type shortlist against
                Commit Mono and Monaspace Argon; it is the markdown editor's
                own face, so it reads as an intentional part of the system.
     --hand     Personality. Nick's pen. Rare: margin notes and one-off
                annotations only. Licence allows it as an annotation device,
                never body or interface text (graphics/fonts/README.md).
   All three faces are self-hosted from the original provider files. Motion
   tokens are shared so every flourish moves like the same object. */
@font-face { font-family: "Cabinet Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/CabinetGrotesk-Regular.woff2") format("woff2"); }
@font-face { font-family: "Cabinet Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/CabinetGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family: "Cabinet Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/CabinetGrotesk-Bold.woff2") format("woff2"); }
@font-face { font-family: "Cabinet Grotesk"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/assets/fonts/CabinetGrotesk-Extrabold.woff2") format("woff2"); }
@font-face { font-family: "Cabinet Grotesk"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("/assets/fonts/CabinetGrotesk-Black.woff2") format("woff2"); }
@font-face { font-family: "iA Writer Mono"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/iAWriterMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "iA Writer Mono"; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/iAWriterMono-Bold.woff2") format("woff2"); }
@font-face { font-family: "Personality"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Personality-Regular.woff2") format("woff2"); }

:root {
  --mono: "iA Writer Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Personality", "Bradley Hand", cursive;
  --steel: #dce2e6;        /* cabinet metal, already used by the hero */
  --steel-dark: #b7c0c6;
  --manila: #f4dc9c;       /* folder card stock; a warm accent, never a background wash */
  --stamp-red: #d8412f;    /* rubber-stamp ink, slightly deeper than --red */
  --ease-drawer: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-quick: 160ms;
  --t-move: 320ms;
  --t-scene: 700ms;
}

/* source: assets/css/features/capability-icons.css */
/* Public capability-tab icons. The wider experimental interaction styles stay review-only. */
.cap-icon { display: inline-block; flex: 0 0 auto; width: 1.5em; height: 1.5em; line-height: 0; }
.cap-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }

@media (min-width: 721px) {
  .capability-tab:has(> .cap-icon) { position: relative; padding-right: calc(18px + 2.2em); }
  .capability-tab > .cap-icon {
    position: absolute; right: 14px; bottom: calc(30px - .42em);
    width: 2.1em; height: 2.1em;
  }
  .capability-tab[aria-selected="true"] > .cap-icon { bottom: calc(16px - .42em); }
}

@media (max-width: 720px) {
  .capability-tab:has(> .cap-icon) { gap: .5em; }
  .capability-tab > .cap-icon { width: 1.4em; height: 1.4em; margin: -.1em 0; }
}

/* source: assets/css/features/captures.css */
/* ── REAL CAPTURES: phone video + panned page (wow pass, ev-captures) ──────
   Two things, both inside the evidence area and both real product pixels.

   1. A loop video inside a phone frame. `.phone img` already has its rules in
      site.css; a <video> in the same slot needs the same box, or it renders at
      its intrinsic size and breaks the frame. The loop is authored in the
      frame's own 9:18.5 shape, so `cover` crops nothing.

   2. A page capture taller than its screen (`data-pan`, set per asset in the
      content). With JS off, or under reduced motion, it is a still of the top
      of the page, in exactly the box a normal capture gets. capture-pan.js adds
      `.is-touring` when the screen is actually on screen: one slow walk down
      the real page and back, then it rests. Hovering the screen holds it.
      object-position, not a transform: the image keeps its layout box, so the
      tour cannot shift anything around it. */

.phone > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  background: var(--paper-deep);
}
@media (max-width: 980px) {
  .evidence-mobile-share .ev-golf-search-phone > video,
  .evidence-desktop-phone .ev-product-phone > video { border-radius: 13px; }
}
@media (max-width: 720px) {
  .phone > video { border-radius: 15px; }
  .evidence-mobile-share .ev-golf-search-phone > video,
  .evidence-desktop-phone .ev-product-phone > video { border-radius: 13px; }
}

img[data-pan="vertical"] { object-position: 50% 0%; }
img[data-pan="vertical"].is-touring {
  /* Down slowly, a beat at the bottom, back up briskly: the way a person
     reads a long comparison, not the way a marquee scrolls. */
  animation: capture-tour 22s cubic-bezier(.45, .05, .35, 1) 1 both;
}
:hover > img[data-pan="vertical"].is-touring,
img[data-pan="vertical"].is-touring.is-held { animation-play-state: paused; }

@keyframes capture-tour {
  0%, 6%    { object-position: 50% 0%; }
  72%, 80%  { object-position: 50% 100%; }
  100%      { object-position: 50% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  img[data-pan="vertical"].is-touring { animation: none; }
}

/* source: assets/css/features/content-machine.css */
/* ── THE CONTENT MACHINE ─────────────────────────────────────────────────
   Review-only. Scoped to .cm; uses the site's own tokens (00-foundation.css,
   site.css) and sits inside the live-evidence frame (.ev-live).

   Layout: one coordinate system per width. Every piece is placed with
   unitless --l/--t/--w/--h, multiplied by --u.
     wide   (container 700px and up): a horizontal line, 1u = 1/826 of the
            width, so the whole drawing scales with the frame.
     narrow (under 700px): the line turns vertical, runs down the RIGHT edge
            and 1u = 1px. The belt is on the right so the picture lane can
            read left to right and still end at the belt.
   The 700px floor exists because the wide line's labels sit in ~110u
   columns: below it their copy would wrap past the scene's height.

   State lives in data attributes on .cm (see content-machine.mjs). This
   file draws each state; content-machine.js only changes attributes. */

.cm { container-type: inline-size; position: relative; overflow: clip; background: var(--paper); }
/* The tall variant: a narrower frame, so the container query turns it
   vertical, and the vertical layout scales up to 1.3x to fill it. */
.ev-live-content-machine.ev-live-frame-tall { max-width: 600px; margin-inline: auto; }
/* Resets between runs happen without transitions. */
.cm-instant *, .cm-instant *::before, .cm-instant *::after { transition: none !important; }
.cm-scene { --u: calc(100cqw / 826); position: relative; height: calc(436 * var(--u)); }
.cm-drawing, .cm-labels { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }

.cm-p {
  position: absolute; display: block;
  left: calc(var(--l, 0) * var(--u)); top: calc(var(--t, 0) * var(--u));
  width: calc(var(--w, 0) * var(--u)); height: calc(var(--h, 0) * var(--u));
}

/* ── Ink and fills, as the machine room draws them ─────────────────────── */
.cm-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cm-svg path, .cm-svg rect, .cm-svg circle { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cm-svg g { transform-box: view-box; }
.cm .f-paper { fill: var(--paper); }
.cm .f-steel { fill: var(--steel); }
.cm .f-steel-dark { fill: var(--steel-dark); }
.cm .f-ink { fill: var(--ink); }
.cm .f-red { fill: var(--red); }
.cm .f-stamp { fill: var(--stamp-red); }
.cm .f-yellow { fill: var(--yellow); }
.cm .f-green { fill: var(--green); }
.cm .f-blue { fill: var(--blue); }
.cm .f-folder { fill: var(--folder-fill); }
.cm .f-manila, .cm .f-mint { fill: var(--manila); }
.cm .f-sky { fill: var(--paper-deep); }
.cm-svg .cm-ln { fill: none; stroke-width: 2; }
.cm-svg .cm-rail { fill: none; stroke-width: 4.5; }
.cm-glyph { font-family: var(--display); font-weight: 900; font-size: 15px; text-anchor: middle; fill: var(--ink); stroke: none; }
.cm-svg .cm-handle { fill: none; stroke-width: 7; }
.cm-svg .cm-glass { fill: rgba(80, 116, 233, .12); stroke-width: 3.5; transition: fill var(--t-move) ease; }
.cm-svg .cm-shine { fill: none; stroke: var(--paper); stroke-width: 3; }
.cm-svg .cm-mesh { fill: none; stroke-width: 1.4; }
.cm-photo-img svg path, .cm-photo-img svg rect, .cm-photo-img svg circle { stroke: var(--ink); stroke-width: 1.4; }
.cm-photo-img svg .cm-ln-thin { fill: none; stroke-width: 1.3; }

/* ── Belts ─────────────────────────────────────────────────────────────── */
.cm-belt, .cm-lane {
  z-index: 1; box-sizing: border-box; border: 3px solid var(--ink); border-radius: calc(8 * var(--u));
  background-color: var(--steel); background-repeat: repeat-x; background-position: 8px center; background-size: 30px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='12'%3E%3Ccircle cx='15' cy='6' r='3.6' fill='%23b7c0c6' stroke='%23151918' stroke-width='1.5'/%3E%3Cpath d='M15 3v6' stroke='%23151918' stroke-width='1.3'/%3E%3C/svg%3E");
  box-shadow: 0 5px 0 rgba(21, 25, 24, .14);
}
.cm-lane { border-width: 2.5px; background-size: 22px 9px; }
.cm[data-belt="fwd"] .cm-belt { animation: cm-belt-x .45s linear infinite; }
.cm[data-belt="back"] .cm-belt { animation: cm-belt-x .45s linear infinite reverse; }
.cm[data-lane="fwd"] .cm-lane { animation: cm-lane-x .4s linear infinite; }
@keyframes cm-belt-x { from { background-position: 8px center; } to { background-position: 38px center; } }
@keyframes cm-lane-x { from { background-position: 8px center; } to { background-position: 30px center; } }
.cm-belt { --l: 10; --t: 272; --w: 694; --h: 16; }
.cm-lane { --l: 156; --t: 110; --w: 344; --h: 12; }
/* The trapdoor the cliché falls through: two cuts in the lane until it opens. */
.cm-trap {
  position: absolute; left: calc(301 * var(--u)); top: -2.5px; width: calc(38 * var(--u)); height: calc(100% + 5px);
  box-sizing: border-box; background: transparent; border-inline: 2.5px solid var(--ink);
  transform-origin: left center; transition: transform var(--t-move) var(--ease-drawer);
}
.cm[data-trap="open"] .cm-trap { background: var(--steel-dark); border: 2.5px solid var(--ink); transform: rotate(72deg); }

/* ── Where each object stands (wide) ───────────────────────────────────── */
.cm-obj { z-index: 1; }
.cm-o-hopper { --l: 16; --t: 172; --w: 100; --h: 100; }
.cm-o-cabinet { --l: 128; --t: 176; --w: 96; --h: 96; }
.cm-o-press { --l: 238; --t: 166; --w: 98; --h: 106; }
.cm-o-typewriter { --l: 350; --t: 198; --w: 100; --h: 74; }
.cm-o-brief { --l: 162; --t: 62; --w: 36; --h: 48; }
.cm-o-folder { --l: 208; --t: 64; --w: 52; --h: 46; }
.cm-o-stack { --l: 270; --t: 58; --w: 48; --h: 52; }
.cm-o-generator { --l: 326; --t: 56; --w: 54; --h: 54; }
.cm-o-lens { --l: 380; --t: 30; --w: 80; --h: 80; z-index: 4; }
.cm-o-basket { --l: 450; --t: 122; --w: 52; --h: 46; z-index: 3; }
.cm-o-chute { --l: 492; --t: 116; --w: 40; --h: 100; }
.cm-o-checks { --l: 526; --t: 118; --w: 124; --h: 154; }
.cm-o-gate { --l: 646; --t: 212; --w: 64; --h: 76; z-index: 6; }
.cm-o-trays { --l: 708; --t: 112; --w: 108; --h: 160; }

.cm-a-press, .cm-a-keys, .cm-a-drawer { transition: transform var(--t-move) var(--ease-drawer); }
.cm-a-boom { transform-origin: 57.5px 29.5px; transition: transform var(--t-scene) var(--ease-drawer); }
.cm[data-drawer="open"] .cm-a-drawer { transform: translateY(-6px); }
.cm[data-press="down"] .cm-a-press { transform: translateY(14px); }
.cm[data-keys="typing"] .cm-a-keys { transform: translateX(-5px); }
.cm[data-gate="up"] .cm-a-boom { transform: rotate(84deg); }
.cm[data-lens="reject"] .cm-glass { fill: rgba(216, 65, 47, .2); }
.cm[data-lens="pass"] .cm-glass { fill: rgba(66, 168, 117, .22); }

/* Topic slips: floating above the hopper, then sitting in it. */
.cm-slip { transition: transform var(--t-scene) var(--ease-drawer), opacity var(--t-move) ease; }
.cm[data-slips="above"] .cm-slip { transform: translateY(-80px); opacity: 0; }
.cm[data-slips="falling"] .cm-slip-1 { transform: translateY(-22px) rotate(-10deg); }
.cm[data-slips="falling"] .cm-slip-2 { transform: translateY(-10px) rotate(8deg); }
.cm[data-slips="falling"] .cm-slip-3 { transform: translateY(-28px) rotate(-6deg); }
.cm[data-slips="falling"] .cm-slip-4 { transform: translateY(-14px) rotate(12deg); }

/* ── Picture lane tags: the search, step by step ───────────────────────── */
.cm-mini {
  --t: 127; --w: 58; height: auto; z-index: 1; text-align: center; text-wrap: balance;
  font: 700 max(8.5px, calc(9.5 * var(--u)))/1.15 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.cm-mini-brief { --l: 151; }
.cm-mini-assets { --l: 205; }
.cm-mini-stock { --l: 265; }
.cm-mini-generate { --l: 324; }
.cm-mini-check { --l: 399; --w: 50; }

/* ── The checklist on the Checks gantry ────────────────────────────────── */
.cm-checklist {
  --l: 544; --t: 150; --w: 90; --h: 58; z-index: 2; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-rows: repeat(4, 1fr); align-items: center;
  font: 700 max(9.5px, calc(10.5 * var(--u)))/1 var(--body); color: var(--ink); white-space: nowrap;
}
.cm-checklist li { display: flex; align-items: center; gap: calc(5 * var(--u)); transition: color var(--t-quick) ease; }
.cm-checklist i {
  position: relative; flex: 0 0 auto; width: max(8px, calc(9 * var(--u))); height: max(8px, calc(9 * var(--u)));
  box-sizing: border-box; border: 1.5px solid var(--ink); background: var(--paper);
}
.cm-checklist i::before, .cm-checklist i::after { content: ""; position: absolute; opacity: 0; transition: opacity var(--t-quick) ease; }
.cm-checklist li:nth-child(2) i::before, .cm-checklist li:nth-child(2) i::after { transition-delay: 130ms; }
.cm-checklist li:nth-child(3) i::after { transition-delay: 260ms; }
.cm-checklist li:nth-child(4) i::after { transition-delay: 390ms; }
/* A tick. */
.cm-checklist i::after { left: 26%; top: -8%; width: 32%; height: 70%; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
/* A cross: two red strokes. */
.cm-checklist i::before {
  inset: -2px; background:
    linear-gradient(45deg, transparent 43%, var(--stamp-red) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--stamp-red) 43% 57%, transparent 57%);
}
.cm[data-checks="pass"] .cm-checklist i::after,
.cm[data-checks="fail"] .cm-checklist li:not(.cm-ck-1) i::after,
.cm[data-checks="fail"] .cm-ck-1 i::before { opacity: 1; }
.cm[data-checks="fail"] .cm-ck-1 { color: var(--stamp-red); }
.cm[data-checks="fail"] .cm-ck-1 i { border-color: var(--stamp-red); }

/* ── Trays: three lips carry the three choices ─────────────────────────── */
.cm-lip {
  z-index: 6; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: .35em;
  --l: 713; --w: 98; --h: 14;
  background: var(--paper); border: 2px solid var(--ink);
  font: 700 max(8.5px, calc(9 * var(--u)))/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  transition: background-color var(--t-move) ease;
}
/* Top to bottom: Approve, Revise, For review. For review sits at belt height,
   so the sheet arrives there; the human step lifts it into Approve. */
.cm-lip-approve { --t: 150; }
.cm-lip-revise { --t: 201; }
.cm-lip-review { --t: 251; }
.cm[data-tray="review"] .cm-lip-review,
.cm[data-tray="approve"] .cm-lip-approve { background: var(--yellow); }
.cm[data-tray="approve"] .cm-lip-approve::before { content: "✓"; }

/* ── The one loop ─────────────────────────────────────────────────────── */
.cm-return { --l: 390; --t: 284; --w: 210; --h: 44; z-index: 1; overflow: visible; }
.cm-return-v { display: none; }
.cm-return path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cm-return-path { stroke-dasharray: 6 6; }
.cm-return-tag {
  --l: 436; --t: 305; --w: 116; --h: 18; z-index: 2; box-sizing: border-box;
  display: grid; place-items: center; background: var(--paper);
  font: 700 max(9.5px, calc(10 * var(--u)))/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap;
}
.cm-return, .cm-return-tag { transition: opacity var(--t-move) ease; }
.cm[data-ret="off"] :is(.cm-return, .cm-return-tag) { opacity: 0; }
.cm[data-ret="on"] .cm-return path { stroke: var(--stamp-red); }
.cm[data-ret="on"] .cm-return-tag { color: var(--stamp-red); }

/* ── Photos in the picture lane ───────────────────────────────────────── */
.cm-photo {
  --w: 44; --h: 50; --py: 85; left: 0; top: 0; z-index: 2; box-sizing: border-box;
  padding: calc(4 * var(--u)) calc(4 * var(--u)) calc(12 * var(--u));
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 2px 2px 0 rgba(21, 25, 24, .25);
  transform: translate(calc(var(--pxl, calc(var(--px) * var(--u))) - 50%), calc(var(--py) * var(--u) - 50%)) rotate(var(--pr, 0deg)) scale(calc(var(--ps, 1) * var(--pb, 1)));
  transition: transform var(--t-scene) var(--ease-drawer), opacity var(--t-move) ease;
}
.cm-p1 { --px: 294; }
.cm-p2 { --px: 353; }
.cm-photo-img { display: block; height: 100%; border: 1.5px solid var(--ink); overflow: hidden; }
.cm-photo-img svg { display: block; width: 100%; height: 100%; }
.cm-cliche, .cm-ok { position: absolute; opacity: 0; transition: opacity var(--t-quick) ease, transform var(--t-move) var(--ease-spring); }
.cm-cliche {
  left: 50%; top: 42%; padding: 1px 4px; transform: translate(-50%, -50%) rotate(-14deg) scale(1.6);
  border: 2px solid var(--stamp-red); background: rgba(243, 245, 247, .88); color: var(--stamp-red);
  font: 700 max(8px, calc(8.5 * var(--u)))/1.1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.cm-ok { right: -7px; top: -7px; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 50%; background: var(--green); }
.cm-ok::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.cm[data-p1="off"] .cm-p1, .cm[data-p2="off"] .cm-p2, .cm[data-p2="docked"] .cm-p2 { opacity: 0; }
.cm[data-p1="lens"] .cm-p1, .cm[data-p2="lens"] .cm-p2 { --px: 424; }
.cm[data-p1="basket"] .cm-p1 { --px: 476; --py: 128; --pr: 20deg; --ps: .7; }
.cm[data-p2="docked"] .cm-p2 { --px: 526; --py: 210; --ps: .35; }
.cm:is([data-lens="reject"], [data-p1="basket"]) .cm-p1 .cm-cliche { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
.cm[data-lens="pass"] .cm-p2 .cm-ok { opacity: 1; }

/* ── The sheet ─────────────────────────────────────────────────────────── */
.cm-sheet {
  --w: 46; --h: 58; --sx: 66; --sy: 243; left: 0; top: 0; z-index: 5; box-sizing: border-box;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 1px; box-shadow: 2px 3px 0 rgba(21, 25, 24, .28);
  transform: translate(calc(var(--sxl, calc(var(--sx) * var(--u))) - 50%), calc(var(--sy) * var(--u) - 50%)) rotate(var(--sr, 0deg)) scale(var(--ss, 1));
  transition: transform 750ms var(--ease-drawer), opacity var(--t-move) ease;
}
.cm[data-sheet="off"] .cm-sheet { opacity: 0; --ss: .6; }
.cm[data-sheet="research"] .cm-sheet { --sx: 176; }
.cm[data-sheet="structure"] .cm-sheet { --sx: 287; }
.cm[data-sheet="draft"] .cm-sheet { --sx: 400; }
.cm[data-sheet="merge"] .cm-sheet { --sx: 514; }
.cm[data-sheet="returning"] .cm-sheet { --sx: 456; --sr: -2deg; }
.cm[data-sheet="checks"] .cm-sheet { --sx: 588; }
.cm[data-sheet="review"] .cm-sheet { --sx: 762; --sy: 235; --ss: .66; --sr: -3deg; }
.cm[data-sheet="approve"] .cm-sheet { --sx: 762; --sy: 134; --ss: .66; --sr: -2deg; }

.cm-mk { position: absolute; display: block; font-style: normal; opacity: 0; transition: opacity var(--t-move) ease; }
.cm[data-marks~="tabs"] .cm-mk-tabs,
.cm[data-marks~="heads"] .cm-mk-heads,
.cm[data-marks~="lines"] .cm-mk-lines,
.cm[data-marks~="strike"] .cm-mk-strike,
.cm[data-marks~="photo"] .cm-mk-photo,
.cm[data-marks~="tick"] .cm-mk-tick,
.cm[data-marks~="sig"] .cm-mk-sig { opacity: 1; }
.cm-mk-tabs { transform: translateX(calc(6 * var(--u))); transition: opacity var(--t-quick) ease, transform var(--t-move) var(--ease-drawer); }
.cm[data-marks~="tabs"] .cm-mk-tabs { transform: none; }
.cm-mk-lines { clip-path: inset(0 0 100% 0); transition: opacity 0s, clip-path 520ms linear; }
.cm[data-marks~="lines"] .cm-mk-lines { clip-path: inset(0); }
.cm-mk-photo { transition: opacity var(--t-quick) ease, transform var(--t-move) var(--ease-spring); }
.cm-mk-sig path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 650ms ease-in-out; }
.cm[data-marks~="sig"] .cm-mk-sig path { stroke-dashoffset: 0; }
.cm-mk-tick { transition: opacity var(--t-quick) ease, transform var(--t-move) var(--ease-spring); }
/* Three index tabs: the research that travels with it. */
.cm-mk-tabs, .cm-mk-tabs::before, .cm-mk-tabs::after {
  width: calc(6 * var(--u)); height: calc(6 * var(--u)); box-sizing: border-box; border: 1.5px solid var(--ink);
}
.cm-mk-tabs { left: calc(-7 * var(--u)); top: calc(24 * var(--u)); background: var(--blue); }
.cm-mk-tabs::before, .cm-mk-tabs::after { content: ""; position: absolute; left: -1.5px; }
.cm-mk-tabs::before { top: calc(8 * var(--u)); background: var(--yellow); }
.cm-mk-tabs::after { top: calc(16 * var(--u)); background: var(--green); }
/* Two headings, set by the press. */
.cm-mk-heads { inset: 0; }
.cm-mk-heads::before, .cm-mk-heads::after { content: ""; position: absolute; left: calc(5 * var(--u)); background: var(--ink); }
.cm-mk-heads::before { top: calc(5 * var(--u)); width: calc(22 * var(--u)); height: calc(4.5 * var(--u)); }
.cm-mk-heads::after { top: calc(21.5 * var(--u)); width: calc(17 * var(--u)); height: calc(3.5 * var(--u)); }
/* Body lines, typed under each heading. */
.cm-mk-lines { inset: 0; }
.cm-mk-lines::before, .cm-mk-lines::after {
  content: ""; position: absolute; left: calc(5 * var(--u)); right: calc(5 * var(--u));
  background: repeating-linear-gradient(to bottom, rgba(21, 25, 24, .6) 0 calc(1.6 * var(--u)), transparent calc(1.6 * var(--u)) calc(4 * var(--u)));
}
.cm-mk-lines::before { top: calc(12 * var(--u)); height: calc(5.6 * var(--u)); right: calc(9 * var(--u)); }
.cm-mk-lines::after { top: calc(28 * var(--u)); height: calc(9.6 * var(--u)); }
.cm-mk-strike { left: calc(3 * var(--u)); right: calc(4 * var(--u)); top: calc(31.6 * var(--u)); height: calc(2.6 * var(--u)); background: var(--stamp-red); transform-origin: left center; transform: rotate(-4deg) scaleX(0); transition: opacity 0s, transform 300ms var(--ease-drawer); }
.cm[data-marks~="strike"] .cm-mk-strike { transform: rotate(-4deg) scaleX(1); }
/* The picture, clipped on at the corner. */
.cm-mk-photo {
  right: calc(-9 * var(--u)); top: calc(-6 * var(--u)); width: calc(20 * var(--u)); height: calc(20 * var(--u));
  box-sizing: border-box; padding: calc(2 * var(--u)) calc(2 * var(--u)) calc(5 * var(--u));
  background: var(--paper); border: 1.5px solid var(--ink); transform: translate(calc(-4 * var(--u)), calc(8 * var(--u))) rotate(20deg) scale(.4);
}
.cm[data-marks~="photo"] .cm-mk-photo { transform: rotate(8deg); }
.cm-mk-photo .cm-photo-img { border-width: 1px; }
.cm-clip { position: absolute; left: calc(4 * var(--u)); top: calc(-5 * var(--u)); width: calc(5 * var(--u)); height: calc(13 * var(--u)); border: 1.5px solid var(--ink); border-radius: 3px; background: transparent; }
.cm-mk-tick {
  left: calc(4 * var(--u)); bottom: calc(8 * var(--u)); width: calc(13 * var(--u)); height: calc(10 * var(--u));
  box-sizing: border-box; border: 2px solid var(--green); transform: rotate(-10deg) scale(1.9);
}
.cm[data-marks~="tick"] .cm-mk-tick { transform: rotate(-10deg); }
.cm-mk-tick::after { content: ""; position: absolute; left: 34%; top: 4%; width: 26%; height: 58%; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cm-mk-sig { right: calc(3 * var(--u)); bottom: calc(8 * var(--u)); width: calc(20 * var(--u)); height: calc(8 * var(--u)); transform: rotate(-6deg); transition: opacity 0s; }
.cm-mk-sig svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cm-mk-sig path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Labels ───────────────────────────────────────────────────────────── */
.cm-lab { --t: 332; --w: 110; height: auto; text-align: center; }
.cm-lab b {
  display: inline; font-family: var(--display); font-weight: 800; font-size: max(13px, calc(17 * var(--u)));
  line-height: 1.1; letter-spacing: -.015em; padding: 0 .12em;
  transition: background-size var(--t-move) var(--ease-drawer);
  background: linear-gradient(transparent 52%, var(--yellow) 52% 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
}
.cm-lab span { display: block; margin-top: calc(6 * var(--u)); font-size: max(11px, calc(12.5 * var(--u))); line-height: 1.3; text-wrap: balance; }
.cm-lab-topic { --l: 11; }
.cm-lab-research { --l: 121; }
.cm-lab-structure { --l: 232; }
.cm-lab-draft { --l: 345; }
.cm-lab-images { --l: 6; --t: 60; --w: 146; text-align: right; }
.cm-lab-checks { --l: 526; --w: 124; }
.cm-lab-signoff { --l: 694; --w: 132; }
.cm[data-active="topic"] .cm-lab-topic b,
.cm[data-active="research"] .cm-lab-research b,
.cm[data-active="structure"] .cm-lab-structure b,
.cm[data-active="draft"] .cm-lab-draft b,
.cm[data-active="images"] .cm-lab-images b,
.cm[data-active="checks"] .cm-lab-checks b,
.cm[data-active="signoff"] .cm-lab-signoff b { background-size: 100% 100%; }

/* ── Narrow: vertical, belt on the right ───────────────────────────────── */
@container (max-width: 699px) {
  /* The layout is drawn for a 320px frame (1u = 1px) and scales with it, from .85px on the smallest phones to 1.3px in the tall variant's 600px frame.
     Rows: topic 0, research 112, structure 224, draft 336, images 448 (164
     tall, it carries the lane), checks 612, sign-off 752; 900u in all.
     Right-anchored pieces use left: calc(100cqw - N * u). */
  .cm-scene { --u: clamp(.85px, calc(100cqw / 320), 1.3px); height: calc(900 * var(--u)); }
  .cm-belt {
    --t: 0; --w: 18; --h: 900; left: calc(100cqw - 52 * var(--u));
    background-repeat: repeat-y; background-position: center 8px; background-size: 12px 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='30'%3E%3Ccircle cx='6' cy='15' r='3.6' fill='%23b7c0c6' stroke='%23151918' stroke-width='1.5'/%3E%3Cpath d='M3 15h6' stroke='%23151918' stroke-width='1.3'/%3E%3C/svg%3E");
    box-shadow: -5px 0 0 rgba(21, 25, 24, .14);
  }
  .cm[data-belt="fwd"] .cm-belt { animation-name: cm-belt-y; }
  .cm[data-belt="back"] .cm-belt { animation-name: cm-belt-y; }
  .cm-o-hopper { --t: 12; --w: 88; --h: 88; left: calc(100cqw - 160 * var(--u)); }
  .cm-o-cabinet { --t: 126; --w: 84; --h: 84; left: calc(100cqw - 158 * var(--u)); }
  .cm-o-press { --t: 232; --w: 86; --h: 94; left: calc(100cqw - 159 * var(--u)); }
  .cm-o-typewriter { --t: 358; --w: 92; --h: 68; left: calc(100cqw - 162 * var(--u)); }
  .cm-o-checks { --t: 616; --w: 104; --h: 129; left: calc(100cqw - 174 * var(--u)); }
  .cm-checklist { --t: 642; --w: 76; --h: 50; left: calc(100cqw - 159 * var(--u)); font-size: calc(9.5 * var(--u)); }
  .cm-checklist li { gap: calc(4 * var(--u)); }
  .cm-o-gate { --t: 722; left: calc(100cqw - 70 * var(--u)); }
  .cm-o-gate .cm-svg { transform: scaleX(-1); }
  .cm-o-trays { --t: 760; --w: 88; --h: 136; left: calc(100cqw - 160 * var(--u)); }
  .cm-lip { --w: 78; left: calc(100cqw - 155 * var(--u)); font-size: calc(8.5 * var(--u)); }
  .cm-lip-approve { --t: 794; }
  .cm-lip-revise { --t: 836; }
  .cm-lip-review { --t: 877; }

  /* The picture lane runs left to right under the Images label. */
  .cm-lane { --l: 8; --t: 560; --h: 10; width: calc(100cqw - 60 * var(--u)); }
  .cm-trap { left: calc(214 * var(--u)); width: calc(36 * var(--u)); }
  .cm-o-brief { --l: 10; --t: 516; --w: 30; --h: 40; }
  .cm-o-folder { --l: 44; --t: 520; --w: 42; --h: 38; }
  .cm-o-stack { --l: 92; --t: 516; --w: 36; --h: 42; }
  .cm-o-generator { --l: 132; --t: 516; --w: 42; --h: 42; }
  .cm-o-lens { --l: 174; --t: 508; --w: 52; --h: 52; }
  .cm-o-basket { --l: 222; --t: 572; --w: 38; --h: 34; }
  .cm-o-chute { display: none; }
  .cm-mini { --t: 574; --w: 46; font-size: calc(8.5 * var(--u)); letter-spacing: .05em; }
  .cm-mini-brief { --l: 2; }
  .cm-mini-assets { --l: 42; }
  .cm-mini-stock { --l: 87; }
  .cm-mini-generate { --l: 130; }
  .cm-mini-check { --l: 177; --w: 46; }

  .cm-return-h { display: none; }
  .cm-return-v { display: block; --t: 386; --w: 32; --h: 302; left: calc(100cqw - 34 * var(--u)); }
  .cm-return-tag { --t: 528; --w: 108; left: calc(100cqw - 66 * var(--u)); transform: rotate(90deg); font-size: calc(9.5 * var(--u)); }

  .cm-photo { --pb: .72; --py: 541; }
  .cm-p1 { --px: 110; }
  .cm-p2 { --px: 153; }
  .cm[data-p1="lens"] .cm-p1, .cm[data-p2="lens"] .cm-p2 { --px: 202; }
  .cm[data-p1="basket"] .cm-p1 { --px: 241; --py: 578; --ps: .66; }
  .cm[data-p2="docked"] .cm-p2 { --pxl: calc(100cqw - 25 * var(--u)); --py: 508; --ps: .3; }

  .cm-sheet { --sxl: calc(100cqw - 43 * var(--u)); --sy: 56; }
  .cm[data-sheet="research"] .cm-sheet { --sy: 168; }
  .cm[data-sheet="structure"] .cm-sheet { --sy: 280; }
  .cm[data-sheet="draft"] .cm-sheet { --sy: 392; }
  .cm[data-sheet="merge"] .cm-sheet { --sy: 530; }
  .cm[data-sheet="returning"] .cm-sheet { --sy: 461; }
  .cm[data-sheet="checks"] .cm-sheet { --sy: 682; }
  .cm[data-sheet="review"] .cm-sheet { --sxl: calc(100cqw - 116 * var(--u)); --sy: 866; --ss: .46; }
  .cm[data-sheet="approve"] .cm-sheet { --sxl: calc(100cqw - 116 * var(--u)); --sy: 783; --ss: .46; }

  .cm-lab { --l: 8; --w: 0; width: calc(100cqw - 176 * var(--u)); text-align: left; }
  .cm-lab b { font-size: calc(16 * var(--u)); padding: 0; }
  .cm-lab span { margin-top: calc(4 * var(--u)); font-size: calc(13 * var(--u)); }
  .cm-lab-topic { --t: 20; }
  .cm-lab-research { --t: 134; }
  .cm-lab-structure { --t: 246; }
  .cm-lab-draft { --t: 362; }
  .cm-lab-images { --l: 8; --t: 458; width: calc(100cqw - 68 * var(--u)); text-align: left; }
  .cm-lab-checks { --t: 648; }
  .cm-lab-signoff { --t: 792; }
}
@keyframes cm-belt-y { from { background-position: center 8px; } to { background-position: center 38px; } }

/* Reduced motion: every change is instant; the script also skips to the end. */
@media (prefers-reduced-motion: reduce) {
  .cm *, .cm *::before, .cm *::after { transition: none !important; animation: none !important; }
}

/* source: assets/css/features/ev-desk.css */
/* ═══════════════════════════════════════════════════════════════════════
   THE DESK — Eulogize Memorials' evidence (mediaComposition "project-desktop")

   A cutting mat with five folders on it. Each folder holds a sheet printed
   with a sliver of that project's real capture; the sheet slides out when
   the folder is pointed at, focused or picked up. The folders are ordinary
   links: this file gives them their static scatter, so with JavaScript off
   the desk is already composed and every folder already works.
   ev-desk.js adds the physics (drag, keyboard nudge, remembered layout,
   double-click to open) and the tidy-desk note.

   Sizes are container-relative (cqw), so the composition scales as one
   object instead of reflowing. Two compositions: wide (the desktop column)
   and narrow (a phone), switched on the desk's OWN width, not the viewport.
   ev-desk.js reads the same 560px threshold.
   ═══════════════════════════════════════════════════════════════════════ */

.evidence-desk {
  container: desk / inline-size;
  /* This is a contents page, not a pile of evidence: the authored folders
     begin tidy and stay inside the mat. They can still be moved as a small
     Easter egg, but the first read is deliberately calm. */
  margin-bottom: clamp(18px, 3cqw, 32px);
  --desk-shadow: rgba(8, 11, 10, .5);
  --mat: #27302d;
  --mat-line: rgba(233, 240, 236, .07);
  --mat-line-major: rgba(233, 240, 236, .15);
  --mat-unit: calc(100cqw / 30);
  --fw: 28cqw;
}

.desk-mat {
  position: relative;
  aspect-ratio: 1.45;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background-color: var(--mat);
  /* Self-healing mat: a fine grid, a heavier line every five squares, and
     the 45° guide every mat carries. The grid is drawn in container units,
     so it scales with the folders and a squared folder sits square on it. */
  background-image:
    linear-gradient(135deg, transparent calc(50% - .75px), var(--mat-line-major) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)),
    linear-gradient(to right, var(--mat-line-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--mat-line-major) 1px, transparent 1px),
    linear-gradient(to right, var(--mat-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--mat-line) 1px, transparent 1px);
  background-size:
    78cqw 78cqw,
    calc(var(--mat-unit) * 5) calc(var(--mat-unit) * 5),
    calc(var(--mat-unit) * 5) calc(var(--mat-unit) * 5),
    var(--mat-unit) var(--mat-unit),
    var(--mat-unit) var(--mat-unit);
  background-position: 100% 100%, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat;
  box-shadow: 14px 16px 0 rgba(38, 51, 59, .18);
}

/* Label-maker tape, stuck across the mat's top edge. */
.desk-tape {
  position: absolute;
  left: 4.5%;
  top: -13px;
  z-index: 0;
  padding: 7px 13px 6px;
  background: var(--ink);
  color: #f5f7f6;
  font: 700 clamp(.62rem, 1.55cqw, .74rem) / 1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 3px 4px 0 rgba(38, 51, 59, .22);
  rotate: -1.8deg;
  clip-path: polygon(0 4%, 100% 0, 99% 100%, 1% 96%);
  pointer-events: none;
  white-space: nowrap;
}

.desk-files { position: absolute; inset: 0; isolation: isolate; }

/* ── The folder ─────────────────────────────────────────────────────── */
.desk-file {
  --front: #ffdcd7; --back: #efb3ab; --tab: var(--red);
  --x: 0; --y: 0; --r: 0;
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: var(--fw);
  aspect-ratio: 1 / .68;
  rotate: calc(var(--r) * 1deg);
  container-type: inline-size;
  display: block;
  color: var(--ink);
  text-decoration: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  /* Vertical swipes still scroll the page on a phone. A folder is picked up
     only by a long press (ev-desk.js), so the desk is never a scroll trap. */
  touch-action: pan-y;
  filter: drop-shadow(4px 5px 0 var(--desk-shadow));
  transition:
    scale 420ms var(--ease-spring),
    filter 240ms var(--ease-drawer),
    rotate 560ms var(--ease-spring);
}
.desk-file.file-blue   { --front: #dfe6ff; --back: #afc0f5; --tab: var(--blue); }
.desk-file.file-green  { --front: #d9f0e3; --back: #a7d4b9; --tab: var(--green); }
.desk-file.file-yellow { --front: #fff0b8; --back: #e5cb75; --tab: var(--yellow); }

/* A quiet 3 + 2 contents layout. The tiny rotations keep the physical-folder
   character without making five separate projects compete as a collage. */
.desk-file:nth-child(1) { --x: 4;  --y: 19; --r: -1; }
.desk-file:nth-child(2) { --x: 36; --y: 13; --r: .7; }
.desk-file:nth-child(3) { --x: 68; --y: 19; --r: -.5; }
.desk-file:nth-child(4) { --x: 20; --y: 58; --r: .8; }
.desk-file:nth-child(5) { --x: 52; --y: 58; --r: -.7; }

.desk-back {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  border-radius: 3px 5px 5px 5px;
  background: var(--back);
}
/* Third-cut tabs, staggered left, middle, right like a real box of folders. */
.desk-back::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 4%;
  width: 36%;
  height: 10cqw;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--tab);
}
.desk-file.tab-mid .desk-back::before { left: 31%; }
.desk-file.tab-right .desk-back::before { left: 58%; }

.desk-sheet {
  position: absolute;
  left: 8%;
  width: 84%;
  top: 5%;
  height: 90%;
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
  padding: 3.6cqw;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
  rotate: -1.2deg;
  transition: translate 380ms var(--ease-spring);
}
.desk-file:nth-child(even) .desk-sheet { rotate: 1.4deg; left: 7%; }

.desk-print {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: var(--ar);
  overflow: hidden;
  background: #f4f5f6;
}
.desk-print img {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% / var(--cw));
  max-width: none;
  height: auto;
  translate: calc(var(--cx) * -100%) calc(var(--cy) * -100%);
  pointer-events: none;
}
/* The component sheet prints real components on white, not screens. */
.desk-sheet:has(.desk-print + .desk-print) .desk-print { background: #fff; }

.desk-front {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 66%;
  overflow: visible;
}
.desk-front path {
  fill: var(--front);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* The label is a real sticker on the front: the link's visible name. */
.desk-label {
  position: absolute;
  left: 9%;
  right: 16%;
  bottom: 10%;
  display: block;
  padding: 2.4cqw 3.2cqw 2.8cqw;
  background: #fff;
  border: 1.5px solid var(--ink);
  rotate: -.8deg;
  text-align: left;
}
.desk-file:nth-child(even) .desk-label { rotate: .9deg; left: 15%; right: 10%; }
.desk-label-name {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(10.5px, 6.5cqw, 15px);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.desk-label small {
  display: block;
  margin-top: 1.6cqw;
  color: var(--muted);
  font: 700 clamp(7.5px, 3.6cqw, 9.5px) / 1.1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── The loose printout ─────────────────────────────────────────────── */
/* The product itself, printed and clipped to a second page, lying under the
   folders. Not a link and not draggable: it is what the folders came from. */
.desk-loose {
  position: absolute;
  z-index: 0;
  left: 59%;
  top: 5%;
  width: 37%;
  margin: 0;
  padding: 2.2cqw;
  background: #fff;
  border: 1.5px solid var(--ink);
  rotate: 4deg;
  box-shadow: 5px 6px 0 var(--desk-shadow);
}
.desk-loose::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f1f3f4;
  border: 1.5px solid var(--ink);
  rotate: -5deg;
  translate: -3% 4%;
  box-shadow: 4px 5px 0 var(--desk-shadow);
}
.desk-loose .desk-print { background: #fff; }
.desk-clip {
  position: absolute;
  z-index: 2;
  left: 9%;
  top: -3.6cqw;
  width: 3.4cqw;
  min-width: 14px;
  rotate: -8deg;
  overflow: visible;
}
.desk-clip path {
  fill: none;
  stroke: var(--steel-dark);
  stroke-width: 2.4;
  stroke-linecap: round;
  paint-order: stroke;
  filter: drop-shadow(0 0 .6px var(--ink)) drop-shadow(0 0 .4px var(--ink));
}

/* ── States ─────────────────────────────────────────────────────────── */
/* Pointing at a folder slides its sheet a third of the way out. Pointer
   hover only on devices that really hover, so a tap never leaves it stuck. */
@media (hover: hover) {
  .desk-file:hover .desk-sheet { translate: 0 -38%; }
}
.desk-file.is-peek .desk-sheet { translate: 0 -24%; }
.desk-file:focus-visible .desk-sheet,
.desk-file.is-selected .desk-sheet,
.desk-file.is-lifted .desk-sheet { translate: 0 -38%; }

/* White on the mat, with an ink edge for the stretch of the ring that sits
   over the drawer when a folder hangs off the mat. */
.desk-file:focus-visible {
  outline: 3px solid #f5f7f6;
  outline-offset: 6px;
  border-radius: 4px;
  box-shadow: 0 0 0 11px var(--ink);
}
.desk-file.is-selected .desk-label { background: var(--ink); color: #fff; }
.desk-file.is-selected .desk-label small { color: rgba(255, 255, 255, .72); }

/* Picked up: it comes off the mat toward you. */
.desk-file.is-lifted {
  scale: 1.045;
  cursor: grabbing;
  filter: drop-shadow(15px 19px 0 var(--desk-shadow));
}
/* While a hand is on it, rotation follows the hand, not a transition. */
.desk-file.is-dragging { transition: scale 160ms var(--ease-drawer), filter 160ms var(--ease-drawer); }

/* Opening: the sheet is pulled all the way out before the folder changes. */
.desk-file.is-opening .desk-sheet {
  translate: 0 -82%;
  transition: translate 200ms var(--ease-drawer);
}

/* ── The tidy-desk note ─────────────────────────────────────────────── */
.desk-note {
  position: absolute;
  z-index: 0;
  width: 23cqw;
  min-height: 21cqw;
  padding: 2.4cqw 2.6cqw 3cqw;
  background: #fff1a0;
  border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 var(--desk-shadow);
  rotate: -3deg;
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(15px, 2.9cqw, 22px);
  line-height: 1.02;
  pointer-events: none;
}
.desk-note p { margin: 0; }
.desk-note p + p { margin-top: .35em; }
.desk-note.is-new { animation: desk-note-stick 620ms var(--ease-spring) both; }
@keyframes desk-note-stick {
  from { scale: 1.3; rotate: -11deg; translate: 0 -10px; }
  to   { scale: 1;   rotate: -3deg;  translate: 0 0; }
}

/* ── Narrow: a phone's column ───────────────────────────────────────── */
@container desk (max-width: 559.98px) {
  .desk-mat { aspect-ratio: .9; border-radius: 12px; }
  .evidence-desk, .desk-mat { --fw: 44cqw; --mat-unit: calc(100cqw / 16); }
  .desk-file:nth-child(1) { --x: 4;  --y: 11; --r: -.8; }
  .desk-file:nth-child(2) { --x: 52; --y: 11; --r: .7; }
  .desk-file:nth-child(3) { --x: 4;  --y: 40; --r: .5; }
  .desk-file:nth-child(4) { --x: 52; --y: 40; --r: -.6; }
  .desk-file:nth-child(5) { --x: 28; --y: 69; --r: .4; }
  .desk-loose { left: 5%; top: 66%; width: 56%; rotate: -3deg; }
  .desk-note { width: 38cqw; min-height: 34cqw; font-size: 15px; }
  .desk-label, .desk-file:nth-child(even) .desk-label { left: 7%; right: 7%; bottom: 9%; }
  .desk-tape { top: -11px; }
}

@media (prefers-reduced-motion: reduce) {
  .desk-file, .desk-sheet, .desk-file.is-opening .desk-sheet { transition: none; }
  .desk-note.is-new { animation: none; }
}

/* source: assets/css/features/evidence-flow.css */
/* ── EVIDENCE FLOW (Business intelligence) ────────────────────────────────
   Review-only. Scoped to .ef; uses the site's own tokens (00-foundation.css,
   site.css) and sits inside the live-evidence frame (.ev-live, its strip and
   Replay come from live-evidence.css).

   Two layouts, switched by the component's own width:
     wide   (560px and up): inputs stacked left, outputs stacked right, four
            wires crossing between them in an SVG column.
     narrow (under 560px): one column, read top to bottom. The wires become
            two rails in a left gutter — data (A) and context (B) — and each
            output taps both. The live slot is 320px wide on a 390px phone.
   The 560px floor exists because the wide layout's input column is ~35% of
   the width: below ~200px its tags and folder labels wrap past the row.

   Colour carries the story, in both layouts:
     yellow = data (the reporting stack, bars, the line's fill, a data chip)
     green  = context (company knowledge, the release marker, a context chip)
   Green, not the site's blue: ink on --blue is 4.2:1, under AA for the
   small mono header; ink on --green is 5.9:1. Everything else is ink.
   State lives in data attributes on .ef (see evidence-flow.mjs); this file
   draws each state; evidence-flow.js only changes attributes and moves the
   signals. Every state is drawn in place, so nothing moves the layout. */

.ev-live-evidence-flow .ev-live-stage { background: var(--paper); }
.ef {
  --data: var(--yellow);
  --ctx: var(--green);
  --ctx-tint: color-mix(in srgb, var(--green) 24%, #fff);
  --hair: 1px solid rgba(21, 25, 24, .2);
  container-type: inline-size; position: relative; overflow: clip;
  color: var(--ink); font-family: var(--body);
  /* Graph paper, faint: the portfolio's paper-and-grid ground. */
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(21, 25, 24, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 25, 24, .055) 1px, transparent 1px);
  background-size: 24px 24px;
}
/* Zero-specificity resets, so every class below can set its own spacing. */
:where(.ef) ul { list-style: none; margin: 0; padding: 0; }
:where(.ef) p { margin: 0; }
/* The strip label is the site's; balanced so a narrow frame never leaves
   one word on its second line. */
.ev-live-evidence-flow .ev-live-label > span { text-wrap: balance; }
/* Resets between runs happen without transitions. */
.ef-instant *, .ef-instant *::before, .ef-instant *::after { transition: none !important; }

/* ── Layout: wide ──────────────────────────────────────────────────────── */
.ef-flow {
  --g: clamp(12px, 2.2cqw, 20px);   /* the gap between rows */
  --pad: clamp(14px, 2.8cqw, 26px);
  --ta: .5; --tb: .5;                /* where each output is entered (fraction of its height) */
  --fs-label: clamp(10px, 1.3cqw, 11.5px);
  --fs-tool: clamp(11.5px, 1.55cqw, 13.5px);
  --fs-folder: clamp(11px, 1.5cqw, 13px);
  --fs-title: clamp(12px, 1.6cqw, 14px);
  --fs-small: clamp(11px, 1.45cqw, 12.5px);
  --fs-msg: clamp(12px, 1.7cqw, 14.5px);
  --fs-micro: clamp(10px, 1.25cqw, 11px);
  position: relative; display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(44px, 10fr) minmax(0, 55fr);
  /* Equal rows, and no row gap (the gap is each card's margin), so each
     card's centre sits at exactly 25% or 75% of the wires column. The wire
     endpoints in evidence-flow.mjs depend on this: change it and they drift. */
  grid-template-rows: 1fr 1fr;
  grid-template-areas: "stack wires dash" "know wires slack";
  padding: calc(var(--pad) - var(--g) / 2) var(--pad);
}
.ef-stack { grid-area: stack; }
.ef-know { grid-area: know; }
.ef-dash { grid-area: dash; }
.ef-slack { grid-area: slack; }
.ef-card {
  position: relative; z-index: 1; min-width: 0; margin-block: calc(var(--g) / 2);
  display: flex; flex-direction: column;
  border: 3px solid var(--ink); background: #fff;
  box-shadow: 6px 7px 0 rgba(38, 51, 59, .16);
}

/* ── The wires ─────────────────────────────────────────────────────────── */
.ef-wires { grid-area: wires; position: relative; z-index: 2; display: block; width: 100%; height: 100%; overflow: visible; }
.ef-wire {
  fill: none; stroke: var(--ink); stroke-width: 2.5px; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.ef[data-wd="off"] .ef-wire.to-dash, .ef[data-ws="off"] .ef-wire.to-slack { opacity: .2; }
/* Where the wires leave each input: a small socket on the right edge. */
.ef-in::after {
  content: ""; position: absolute; z-index: 3; right: -8px; top: 50%;
  width: 9px; height: 9px; translate: 0 -50%; background: var(--ink);
}
/* Where they enter each output: one arrowhead (two in the narrow layout). */
.ef-port { position: absolute; z-index: 3; top: -3px; bottom: -3px; left: -12px; width: 9px; }
.ef-port::before, .ef-port::after {
  content: ""; position: absolute; right: 0; width: 9px; height: 12px; translate: 0 -50%;
  background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ef-port::before { top: calc(var(--ta) * 100%); }
.ef-port::after { top: calc(var(--tb) * 100%); }
.ef-rail { display: none; }

/* ── Inputs ────────────────────────────────────────────────────────────── */
.ef-head {
  padding: 6px 10px 5px; border-bottom: 2px solid var(--ink);
  font: 700 var(--fs-label)/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase;
}
.ef-stack .ef-head { background: var(--data); }
.ef-know .ef-head { background: var(--ctx); }

/* Seven tools in an even grid: every tag the same width and, because rows
   share one height (1fr), the same height too. A long name wraps inside its
   tag instead of making its row taller than the others. */
.ef-tools {
  flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr;
  align-content: center; gap: 5px; padding: 10px;
}
.ef-tool {
  display: flex; align-items: center; gap: 7px; min-height: 30px; min-width: 0;
  padding: 3px 7px 3px 6px; border: 2px solid var(--ink); background: #fff;
  font-size: var(--fs-tool); font-weight: 700; line-height: 1.05;
}
.ef-logo { flex: none; width: 16px; height: 16px; display: grid; place-items: center; }
/* All seven marks in ink (Clarity's is traced in evidence-flow.mjs). */
.ef-logo svg, .ef-logo img { display: block; width: 15px; height: 15px; fill: var(--ink); object-fit: contain; }
/* Too narrow for two tags side by side (the 1024 and 768 slots, where a
   tag would be ~40px inside and "DynamoDB" cannot wrap): a compact list on
   hairlines instead, the same grammar as the knowledge list below it. */
@container (min-width: 560px) and (max-width: 759px) {
  .ef-tools { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 0; padding: 6px 10px 8px; }
  .ef-tool { min-height: 0; padding: 5px 0; border: 0; border-top: var(--hair); background: none; }
  .ef-tool:first-child { border-top: 0; }
}
.ef[data-stack="off"] .ef-tool { opacity: .3; transform: scale(.88); }

/* Folders, each with a sheet peeking out when the knowledge side is live. */
/* One folder per row, like a file list: a drawn folder (back and tab, a
   sheet standing in it, the front) beside its label. */
.ef-folders { flex: 1; display: grid; align-content: center; padding: 6px 10px 8px; }
.ef-folder {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 7px 0; border-top: var(--hair);
  font-size: var(--fs-folder); font-weight: 700; line-height: 1.15;
}
.ef-folder:first-child { border-top: 0; }
.ef-folder > span { text-wrap: balance; }
.ef-fi { display: block; width: 30px; height: 24px; overflow: visible; }
.ef-fi path { stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.ef-fi-back { fill: var(--ctx); }
.ef-fi-sheet path { fill: #fff; stroke-width: 1.5; }
.ef-fi-sheet .ef-fi-rule { fill: none; stroke: var(--steel-dark); stroke-width: 1.6; }
.ef-fi-front { fill: var(--ctx-tint); }
.ef-fi-sheet { transform-box: fill-box; }
.ef[data-know="off"] .ef-folder { opacity: .3; }
.ef[data-know="off"] .ef-fi-sheet { transform: translateY(6px); }

/* ── Outputs: two app windows with the same ink bar ────────────────────── */
.ef-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 34px; padding: 6px 10px; background: var(--ink); color: var(--paper);
}
.ef-bar-title { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: var(--fs-title); line-height: 1; }
/* The mark sits on the text's optical centre, which is a touch above the
   centre of its line box (Cabinet Grotesk has deep descenders). */
.ef-bar-title svg { flex: none; width: 16px; height: 16px; fill: currentColor; translate: 0 -1px; }
.ef-bar-title b { font-weight: 800; }
.ef-bar-meta {
  flex: none; font: 700 var(--fs-micro)/1.1 var(--mono); letter-spacing: .07em;
  text-transform: uppercase; color: var(--paper-deep);
}

/* The dashboard: role tabs, a line with a release marker, a bar chart. */
.ef-dash-body { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 8px 10px 10px; }
.ef-tabs { display: flex; gap: clamp(10px, 1.9cqw, 18px); border-bottom: var(--hair); font-size: var(--fs-small); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.ef-tabs span { padding: 2px 0 5px; color: var(--muted); }
.ef-tabs .is-on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--data); }
.ef-widgets { flex: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 8px; }
.ef-widget { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 6px 8px 8px; border: 2px solid var(--ink); background: #fff; }
.ef-w-name { font: 700 var(--fs-micro)/1.1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ef-plot {
  position: relative; flex: 1; min-height: 58px;
  border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(to top, transparent 0 calc(33.3% - 1px), rgba(21, 25, 24, .12) calc(33.3% - 1px) 33.3%);
}
.ef-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(0 0 0 0); }
.ef-line { fill: none; stroke: var(--ink); stroke-width: 2px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ef-area { fill: var(--data); opacity: .38; }
.ef[data-line="off"] .ef-chart { clip-path: inset(0 100% 0 0); }
/* Context from company knowledge, attached to the chart. */
.ef-marker { position: absolute; left: 44%; top: 0; bottom: 0; border-left: 2px dashed var(--ctx); }
.ef-marker > span {
  position: absolute; left: -2px; top: 0; padding: 1px 4px 1px 3px;
  border: 2px solid var(--ctx); background: var(--ctx-tint);
  font: 700 var(--fs-micro)/1.25 var(--mono); letter-spacing: .03em; white-space: nowrap;
}
.ef[data-marker="off"] .ef-marker { opacity: 0; transform: translateY(-10px); }
.ef-bars i {
  position: absolute; bottom: 0; left: calc(var(--i) * 100% / 6 + 2px); width: calc(100% / 6 - 4px);
  height: calc(var(--h) * 100%); box-sizing: border-box;
  border: 2px solid var(--ink); border-bottom: 0; background: var(--data); transform-origin: bottom;
}
.ef[data-bars="off"] .ef-bars i { transform: scaleY(.05); }

/* Slack: the question, and an answer with one source from each side. */
.ef-msgs { flex: 1; display: grid; align-content: center; gap: 11px; padding: 11px 12px 12px; }
.ef-msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: start; }
.ef-av { position: relative; width: 26px; height: 26px; overflow: hidden; border: 2px solid var(--ink); background: color-mix(in srgb, var(--red) 24%, #fff); }
.ef-av::before, .ef-av::after { content: ""; position: absolute; left: 50%; translate: -50% 0; border: 2px solid var(--ink); background: #fff; }
.ef-av::before { top: 3px; width: 9px; height: 9px; border-radius: 50%; }
.ef-av::after { top: 14px; width: 16px; height: 12px; border-radius: 8px 8px 0 0; }
/* The bot: an ink square with two eyes and a mouth. */
.ef-av.is-a { background: var(--ink); }
.ef-av.is-a::before { top: 7px; left: 5px; translate: none; width: 4px; height: 4px; border: 0; border-radius: 0; background: var(--paper); box-shadow: 8px 0 0 var(--paper); }
.ef-av.is-a::after { top: 15px; left: 5px; translate: none; width: 12px; height: 2px; border: 0; border-radius: 0; background: var(--paper); }
/* Slack marks an app's messages with a small tag after the name. */
.ef-badge {
  display: inline-block; margin-left: 3px; padding: 1px 4px; vertical-align: 1px;
  background: var(--paper-deep); color: var(--muted);
  font: 700 var(--fs-micro)/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.ef-who { display: block; font-size: var(--fs-small); font-weight: 800; line-height: 1.2; }
.ef-msg p { margin-top: 1px; font-size: var(--fs-msg); line-height: 1.28; text-wrap: pretty; }
.ef-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ef-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 7px 2px 5px;
  border: 2px solid var(--ink); background: #fff;
  font: 700 var(--fs-micro)/1.3 var(--mono); letter-spacing: .02em; white-space: nowrap;
}
.ef-chip::before { content: ""; flex: none; box-sizing: border-box; width: 10px; height: 10px; border: 1.5px solid var(--ink); background: var(--data); }
.ef-chip.is-ctx::before { background: var(--ctx); }

/* The composer the question is typed into. One line that never wraps: the
   typed text scrolls like a real input (evidence-flow.js), so typing never
   changes the card's height. */
.ef-compose {
  display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 6px 6px 6px 10px;
  border: 2px solid var(--ink); background: #fff; font-size: var(--fs-small); line-height: 1.3;
}
.ef-compose-ph, .ef-compose-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.ef-compose-ph { color: var(--muted); text-overflow: ellipsis; }
.ef-compose-text { display: none; }
.ef-send { flex: none; width: 22px; height: 18px; background: var(--paper-deep); clip-path: polygon(0 0, 100% 50%, 0 100%, 18% 50%); }
.ef[data-compose="typing"] .ef-compose-ph { display: none; }
.ef[data-compose="typing"] .ef-compose-text { display: block; }
.ef[data-compose="typing"] .ef-compose-text::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink);
}
.ef[data-compose="typing"] .ef-send { background: var(--green); }
.ef[data-q="off"] .ef-q { opacity: 0; transform: translateY(8px); }
.ef[data-a="off"] .ef-a { opacity: 0; transform: translateY(8px); }
.ef[data-chips="0"] .ef-chip, .ef[data-chips="1"] .ef-chip.is-ctx { opacity: 0; transform: scale(.6); }

/* ── Signals (evidence-flow.js adds and removes them) ──────────────────── */
.ef-sigs { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ef-sig { position: absolute; left: 0; top: 0; box-sizing: border-box; border: 2px solid var(--ink); }
.ef-sig.is-data { width: 12px; height: 12px; background: var(--data); }
/* Context travels as a tiny folder. */
.ef-sig.is-ctx { width: 15px; height: 11px; background: var(--ctx); }
.ef-sig.is-ctx::before {
  content: ""; position: absolute; left: -2px; top: -5px; width: 7px; height: 5px; box-sizing: border-box;
  border: 2px solid var(--ink); border-bottom: 0; background: var(--ctx);
}

/* ── Motion, only when it is welcome ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .ef-tool { transition: opacity 240ms ease-out, transform 420ms var(--ease-spring); transition-delay: calc(var(--i) * 55ms); }
  .ef-folder { transition: opacity 260ms ease-out; transition-delay: calc(var(--i) * 80ms); }
  .ef-fi-sheet { transition: transform 380ms var(--ease-spring); transition-delay: calc(var(--i) * 80ms + 120ms); }
  .ef-wire { transition: opacity 280ms ease-out; }
  .ef-bars i { transition: transform 460ms var(--ease-spring); transition-delay: calc(var(--i) * 55ms); }
  .ef-chart { transition: clip-path 720ms cubic-bezier(.3, 0, .2, 1); }
  .ef-marker { transition: opacity 180ms ease-out, transform 420ms var(--ease-spring); }
  .ef-q { transition: opacity 220ms ease-out, transform 340ms var(--ease-drawer); }
  .ef-a { transition: opacity 260ms ease-out, transform 360ms var(--ease-drawer); }
  .ef-chip { transition: opacity 180ms ease-out, transform 380ms var(--ease-spring); }
}

/* ── Layout: narrow (the phone slot) ───────────────────────────────────── */
@container (max-width: 559px) {
  .ef-flow {
    --gut: 26px; --ra: 5px; --rb: 14px;   /* the two rails, measured from the gutter's left */
    --g: 16px; --pad: 12px;
    --fs-label: 10.5px; --fs-tool: 12.5px; --fs-folder: 12.5px; --fs-title: 13px;
    --fs-small: 12px; --fs-msg: 14px; --fs-micro: 10px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "stack" "know" "dash" "slack";
    padding-left: calc(var(--pad) + var(--gut));
  }
  .ef-out { --ta: .36; --tb: .64; }
  .ef-wires, .ef-in::after { display: none; }
  .ef-card { box-shadow: 5px 6px 0 rgba(38, 51, 59, .16); }
  .ef-plot { min-height: 64px; }
  .ef-widgets { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

  /* The rails: each card draws its own stretch of gutter, from its outer top
     edge (or its tap) down through the gap below it, so the pieces join. */
  .ef-rail { display: block; position: absolute; z-index: 2; top: -3px; bottom: -3px; left: calc(-3px - var(--gut)); width: var(--gut); }
  .ef-rail::before, .ef-rail::after { content: ""; position: absolute; right: 0; top: 0; bottom: calc(-1 * var(--g)); border-left: 2px solid var(--ink); }
  .ef-rail::before { left: var(--ra); }
  .ef-rail::after { left: var(--rb); }
  /* Stack: rail A starts at its tap. No rail B yet. */
  .ef-stack .ef-rail::before { top: 50%; border-top: 2px solid var(--ink); }
  .ef-stack .ef-rail::after { display: none; }
  /* Knowledge: rail A passes; rail B starts at its tap. */
  .ef-know .ef-rail::after { top: 50%; border-top: 2px solid var(--ink); }
  /* Slack: both rails end at their taps. */
  .ef-slack .ef-rail::before { bottom: auto; height: calc(var(--ta) * 100%); }
  .ef-slack .ef-rail::after { bottom: auto; height: calc(var(--tb) * 100%); }
  /* Output taps: a line from the rail to the card, ending in an arrowhead. */
  .ef-port { left: calc(-3px - var(--gut)); width: var(--gut); }
  .ef-port::before, .ef-port::after {
    width: auto; clip-path: polygon(0 5px, calc(100% - 9px) 5px, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, calc(100% - 9px) 7px, 0 7px);
  }
  .ef-port::before { left: var(--ra); }
  .ef-port::after { left: var(--rb); }
}

/* The smallest phone slot (a 290px frame at 360): four role tabs only fit
   a touch smaller, and thin bars need thinner ink to stay yellow. */
@container (max-width: 300px) {
  .ef-tabs { gap: 8px; font-size: 10.5px; }
  .ef-bars i { border-width: 1.5px; }
}

/* source: assets/css/features/evidence-materials.css */
/* ═══════════════════════════════════════════════════════════════════════
   EVIDENCE MATERIALS — what each piece of evidence is made of.

   The drawer used to hold everything in the same black frame with the same
   black tab, so a diagram, a festival photo and a GitHub page all read as
   one kind of thing. Now each frame carries data-material (build/materials.mjs):

     screen  a real product capture. Unchanged: device, browser or ink frame.
     paper   a diagram or document. A white sheet clipped into the folder,
             its label typed along the bottom margin.
     print   a photograph. White border, taped in at the corners.
     live    a running component. A plain ink frame and a mono label.

   Every rule is scoped to .is-snapshot .evidence, so nothing outside the
   evidence area moves. The clips and tape are drawn here, not images.
   ═══════════════════════════════════════════════════════════════════════ */

/* The steel for clips and wire, drawn once. Inline SVG keeps them crisp at
   any size and costs no request. Colours are the foundation tokens' values:
   ink #151918, steel #dce2e6, steel-dark #b7c0c6. */
.is-snapshot .evidence {
  --binder-clip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cpath d='M19 25 13 5.5Q12.6 3 15 3h34q2.4 0 2 2.5L45 25' fill='none' stroke='%23151918' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M19 25 13 5.5Q12.6 3 15 3h34q2.4 0 2 2.5L45 25' fill='none' stroke='%23dce2e6' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M5 22.5h54l-4.5 20.5H9.5z' fill='%23151918'/%3E%3Cpath d='M10 26.5h44' stroke='%23596369' stroke-width='1.6'/%3E%3Cellipse cx='12' cy='24' rx='3.2' ry='2.4' fill='%23b7c0c6' stroke='%23151918' stroke-width='1.2'/%3E%3Cellipse cx='52' cy='24' rx='3.2' ry='2.4' fill='%23b7c0c6' stroke='%23151918' stroke-width='1.2'/%3E%3C/svg%3E");
  --paperclip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 64'%3E%3Cpath d='M7.5 20v29a3.5 3.5 0 0 0 7 0V9a5.5 5.5 0 0 0-11 0v43a7.5 7.5 0 0 0 15 0V17' fill='none' stroke='%23151918' stroke-width='4.2' stroke-linecap='round'/%3E%3Cpath d='M7.5 20v29a3.5 3.5 0 0 0 7 0V9a5.5 5.5 0 0 0-11 0v43a7.5 7.5 0 0 0 15 0V17' fill='none' stroke='%23dce2e6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── PAPER ──────────────────────────────────────────────────────────────
   A sheet: white stock, the site's ink outline and hard shadow, a stable
   tilt from the file name. Leads tilt least, because a rotated raster
   softens its own text. */
.is-snapshot .evidence .ev-frame[data-material="paper"] {
  padding: clamp(7px, .85vw, 12px) clamp(7px, .85vw, 12px) 0;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 9px 11px 0 rgba(38, 51, 59, .17);
  rotate: var(--tilt, 0deg);
}
.is-snapshot .evidence .ev-frame[data-material="paper"] :is(img, video) {
  border: 1px solid rgba(21, 25, 24, .14);
}
/* The label is typed on the sheet's own bottom margin, never over the
   drawing: on the AI OS chart the old tab sat on its closing sentence. */
.is-snapshot .evidence .ev-frame[data-material="paper"] figcaption,
.is-snapshot .evidence .ev-frame[data-material="print"] figcaption {
  position: static; inset: auto; translate: none;
  display: block; width: auto; max-width: none; margin: 0;
  padding: 8px 1px 9px;
  background: none; color: var(--ink);
  font-family: var(--mono); font-size: .64rem; font-weight: 400;
  letter-spacing: .045em; line-height: 1.3; white-space: normal;
}
.is-snapshot .evidence .ev-frame[data-material="print"] figcaption .credit {
  color: var(--muted);
}
.is-snapshot .evidence .ev-frame[data-material="paper"]:not(:has(figcaption)) {
  padding-bottom: clamp(7px, .85vw, 12px);
}

/* The lead sheet is held by a binder clip; supporting sheets by a paperclip.
   Both sit over the top edge, so they read as holding the sheet in. */
.is-snapshot .evidence .ev-frame[data-material="paper"]::before {
  content: ""; position: absolute; z-index: 4; pointer-events: none;
  top: -13px; left: 16px; width: 15px; height: 44px;
  background: var(--paperclip) center / contain no-repeat;
  rotate: -4deg;
}
.is-snapshot .evidence .ev-group-lead .ev-frame[data-material="paper"]::before {
  top: -24px; left: 22%; width: 60px; height: 43px;
  background-image: var(--binder-clip);
  rotate: calc(var(--tilt, 0deg) * -1);
}

/* ── PRINT ──────────────────────────────────────────────────────────────
   A photograph: a white border, two strips of tape across the top corners. */
.is-snapshot .evidence .ev-frame[data-material="print"] {
  padding: clamp(6px, .75vw, 11px) clamp(6px, .75vw, 11px) 0;
  border: 1.5px solid var(--ink);
  background: #fff;
  box-shadow: 8px 10px 0 rgba(38, 51, 59, .16);
  rotate: var(--tilt, 0deg);
}
.is-snapshot .evidence .ev-frame[data-material="print"]:not(:has(figcaption)) {
  padding-bottom: clamp(6px, .75vw, 11px);
}
.is-snapshot .evidence .ev-frame[data-material="print"] :is(img, video) { border: 0; }
.is-snapshot .evidence .ev-frame[data-material="print"]::before,
.is-snapshot .evidence .ev-frame[data-material="print"]::after {
  content: ""; position: absolute; z-index: 4; pointer-events: none;
  top: -7px; width: clamp(38px, 4.4vw, 62px); height: clamp(14px, 1.4vw, 19px);
  background: rgba(226, 232, 235, .72);
  border: 1px solid rgba(21, 25, 24, .14);
  /* Torn ends: tape is cut with teeth, not scissors. */
  clip-path: polygon(2% 0, 98% 0, 100% 18%, 97% 36%, 100% 54%, 97% 72%, 100% 90%, 98% 100%, 2% 100%, 0 82%, 3% 64%, 0 46%, 3% 28%, 0 10%);
}
.is-snapshot .evidence .ev-frame[data-material="print"]::before { left: -13px; rotate: -38deg; }
.is-snapshot .evidence .ev-frame[data-material="print"]::after { right: -13px; rotate: 38deg; }

/* ── LIVE ───────────────────────────────────────────────────────────────
   Reserved for running components. A plain ink frame and a mono label on
   its top edge, so a working thing never looks like a picture of one. */
.is-snapshot .evidence .ev-frame[data-material="live"]:not(.ev-live) {
  border: 2px solid var(--ink); background: #fff;
  box-shadow: 9px 11px 0 rgba(38, 51, 59, .17);
}
.is-snapshot .evidence .ev-frame[data-material="live"] :is(img, video, iframe) { border: 0; }
/* Live evidence (live-evidence.css) owns its own frame and label. */
.is-snapshot .evidence .ev-frame[data-material="live"]:not(.ev-live) figcaption {
  top: 0; bottom: auto; left: -2px; translate: 0 -100%;
  font-family: var(--mono); font-weight: 400; letter-spacing: .04em;
}

/* A group of sheets and prints drops the white box around it: paper does not
   need a frame to read as an object. The support still sits where it sat. */
.is-snapshot .evidence .is-loose {
  padding: 0; border: 0; background: none; box-shadow: none;
}
.is-snapshot .evidence-phone-fan .ev-group-support.is-loose {
  gap: clamp(18px, 2.4vw, 30px); padding: 12px 6px 0;
}
.is-snapshot .evidence-photo-story .ev-group-support.is-loose {
  gap: clamp(12px, 1.6vw, 20px); align-items: start;
}
@media (max-width: 980px) {
  /* Stacked on a phone, the prints used to tuck 13% up over the lead. A print
     carries its label on its own bottom border, so they now only overlap that
     border by a tape's width and the label stays readable. */
  .is-snapshot .evidence-photo-story .ev-group-support.is-loose { margin-top: -6px; }
}

/* ── THE LOUPE TRIGGER ──────────────────────────────────────────────────
   A real link laid over each capture (templates.mjs, zoomLink). With
   JavaScript off it opens the whole source file; with it on, the loupe. */
.is-snapshot .evidence .ev-zoom {
  position: absolute; inset: 0; z-index: 2;
  cursor: zoom-in; border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
}
/* The site's own focus ring, drawn clear of the sheet's ink edge so it can
   never be mistaken for the border. Inside a device the screen clips, so
   there it is drawn inward, with a white band that reads on dark captures. */
.is-snapshot .evidence .ev-zoom:focus-visible {
  outline: 4px solid var(--ink); outline-offset: 7px;
}
.is-snapshot .evidence :is(.phone, .desktop-monitor-screen, .ev-browser-screen) > .ev-zoom:focus-visible {
  outline-offset: -4px; box-shadow: inset 0 0 0 8px #fff;
}
.is-snapshot .evidence :is(.desktop-monitor-screen, .ev-browser-screen, .ev-golf-share-card) { position: relative; }
/* Labels are text for every reader, but a click on one still means the frame. */
.is-snapshot .evidence .ev-frame figcaption:not(.ev-live-label) { pointer-events: none; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .is-snapshot .evidence .ev-frame:is([data-material="paper"], [data-material="print"]) {
    transition: translate var(--t-quick) var(--ease-drawer), box-shadow var(--t-quick) var(--ease-drawer);
  }
  .is-snapshot .evidence .ev-frame:is([data-material="paper"], [data-material="print"]):hover {
    translate: 0 -4px;
    box-shadow: 12px 15px 0 rgba(38, 51, 59, .2);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   ARRIVAL — a project opens: the lead lands, the support slides out from
   behind the folder edge. Both finish inside 400ms.

   CSS only, on purpose. A preview goes from display:none to shown whenever
   drawer.js picks it (drawer:changed), and that restarts its animations, so
   nothing has to be listened for. Only translate, scale and clip-path move;
   nothing starts invisible, and fill-mode is backwards, so a finished or
   stalled animation leaves the evidence exactly where the layout put it.
   Off entirely without JavaScript and under reduced motion.
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes ev-land {
  0%   { translate: 0 -16px; scale: 1.018; }
  72%  { translate: 0 1.5px; scale: 1; }
  100% { translate: 0 0;     scale: 1; }
}
/* The clip travels with the sheet, so the part still "behind the folder"
   is hidden and the sheet appears to come out from a line at its own edge. */
@keyframes ev-slide {
  from {
    translate: var(--ev-from-x) var(--ev-from-y);
    clip-path: inset(var(--ev-clip-t) var(--ev-clip-r) var(--ev-clip-b) var(--ev-clip-l));
  }
  to {
    translate: 0 0;
    clip-path: inset(-80px -80px -80px -80px);
  }
}
.is-snapshot .evidence {
  /* Default: out from behind the folder's right edge. */
  --ev-from-x: 44px; --ev-from-y: 8px;
  --ev-clip-t: -80px; --ev-clip-r: 44px; --ev-clip-b: -80px; --ev-clip-l: -80px;
}
/* DeathcareSoftware's phone sits against the left edge, so it comes from there. */
.is-snapshot .evidence-desktop-phone {
  --ev-from-x: -44px; --ev-clip-r: -80px; --ev-clip-l: 44px;
}
@media (max-width: 980px) {
  /* On a phone the support is stacked below the lead; sliding it in from the
     screen edge would widen the page mid-animation. It drops from under the
     lead instead. */
  .is-snapshot .evidence {
    --ev-from-x: 0px; --ev-from-y: -22px;
    --ev-clip-t: 22px; --ev-clip-r: -80px; --ev-clip-l: -80px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-js] .is-snapshot .evidence .ev-group-lead > * {
    animation: ev-land 330ms var(--ease-drawer) backwards;
  }
  html[data-js] .is-snapshot .evidence .ev-group-support > * {
    animation: ev-slide 290ms var(--ease-drawer) 100ms backwards;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   NOTCH ROOM. The phone frame reserves its status-bar band, so a capture
   starts below the notch instead of under it (DeathcareSoftware's wordmark,
   caniplay's first course). The band is bezel, not an invented status bar.
   ═══════════════════════════════════════════════════════════════════════ */
.is-snapshot .phone {
  --notch-room: clamp(15px, 1.65vw, 22px);
  padding-top: var(--notch-room);
}
.is-snapshot .phone::before {
  top: calc(var(--notch-room) / 2 - 4px);
  width: 30%; height: 9px;
  background: #2b3230;
  box-shadow: inset -9px 0 0 -6px #3f4a55;
}
.is-snapshot .phone img { border-radius: 7px 7px 20px 20px; }
@media (max-width: 980px) {
  .is-snapshot .phone { --notch-room: 12px; }
  .is-snapshot .phone::before { height: 7px; top: calc(var(--notch-room) / 2 - 3px); }
  .is-snapshot .phone img { border-radius: 5px 5px 13px 13px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   QUICK CRAFT FIXES from the evidence audit.
   ═══════════════════════════════════════════════════════════════════════ */

/* caniplay.golf: the 390 x 844 capture ends halfway through the "Other public
   courses" heading. The phone screen stops at the end of the results card
   instead (y = 784 of 844). This is a crop, which belongs in site.json as the
   asset's aspect; it lives here only because this pass may not edit that file. */
#preview-caniplay-golf .ev-golf-search-phone { aspect-ratio: auto; }
#preview-caniplay-golf .ev-golf-search-phone img { height: auto; aspect-ratio: 390 / 784; }

/* Website refresh: the motion window covered the end of the hero's CTA line
   ("…before you pay anything."), which ends at 38% of the capture's width
   (x = 425 of 1120, measured). At 58% the second window starts at 42%, clear
   of it at every width, because both windows scale with the column. */
@media (min-width: 981px) {
  .is-snapshot .evidence-browser-sections .ev-browser-motion { width: 58%; }
}

/* source: assets/css/features/evidence-single-proof.css */
/* A calm overview proof: one edited capture on one sheet. The richer Eulogize
   project desk remains parked in content for a later exploration. */
.evidence-single-proof {
  position: relative;
  min-height: 0;
  padding: clamp(34px, 5.5cqw, 64px) clamp(24px, 4cqw, 48px) clamp(28px, 4.5cqw, 52px);
  border: 3px solid var(--ink);
  border-radius: 14px;
  background-color: #27302d;
  background-image:
    linear-gradient(135deg, transparent calc(50% - .75px), rgba(233,240,236,.12) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)),
    linear-gradient(to right, rgba(233,240,236,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(233,240,236,.07) 1px, transparent 1px);
  background-size: 100% 100%, 34px 34px, 34px 34px;
  box-shadow: 14px 16px 0 rgba(38,51,59,.18);
}

.single-proof-tape {
  position: absolute;
  z-index: 2;
  top: -13px;
  left: 5%;
  padding: 7px 13px 6px;
  background: var(--ink);
  color: #f5f7f6;
  font: 700 clamp(.62rem, 1.2cqw, .74rem) / 1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  rotate: -1.6deg;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 3px 4px 0 rgba(38,51,59,.22);
}

.single-proof-sheet {
  position: relative;
  margin: 0;
  padding: clamp(8px, 1.1cqw, 14px);
  background: #fff;
  border: 2px solid var(--ink);
  rotate: -.55deg;
  box-shadow: 10px 12px 0 rgba(8,11,10,.48);
}

.single-proof-sheet .desk-print { background: #fff; }

.single-proof-sheet figcaption {
  margin-top: clamp(8px, 1cqw, 12px);
  color: var(--ink);
  font: 700 clamp(.66rem, 1.1cqw, .8rem) / 1.2 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .evidence-single-proof {
    padding: 34px 16px 22px;
    border-radius: 10px;
    box-shadow: 9px 11px 0 rgba(38,51,59,.18);
  }
  .single-proof-sheet { padding: 7px; box-shadow: 7px 8px 0 rgba(8,11,10,.45); }
  .single-proof-sheet figcaption { font-size: .62rem; }
}

/* source: assets/css/features/golf-map.css */
/* ported from the golf project explorer (component CSS, every selector under #course-explorer) */
/* ---- Course explorer: every selector is under #course-explorer so none of it can restyle the page it sits in.
   It takes the width of whatever holds it and answers to that width (container queries), not to the window. ---- */
#course-explorer{
  container:ce / inline-size;position:relative;width:100%;min-width:0;
  font-family:"Public Sans","Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.45;color:var(--ink);
  --page:var(--tu-page,#f1eee0); --panel:var(--tu-panel,#fbf9f0); --ink:var(--tu-ink,#15251a); --ink-soft:var(--tu-ink-soft,#2c3a2e);
  --muted:var(--tu-muted,#555c4e); --hair:var(--tu-hairline,rgba(21,37,26,.2)); --couch:var(--tu-couch,#33702f);
  --couch-deep:var(--tu-couch-deep,#21481e); --cut:var(--tu-cut-light,#e4ecd2); --r:var(--tu-radius,3px);
  --land:#ede3ce; --land-out:#f5f0e2; --edge:rgba(21,37,26,.42); --sea:var(--panel);
  --display:"Gabarito","Helvetica Neue",Arial,sans-serif; --body:"Public Sans","Helvetica Neue",Arial,sans-serif}
/* the map's own surfaces in dark. Every colour on the map arrives as four values set on the mark itself (--fl light fill, --fd dark fill,
   --rl / --rd the ring when the fill alone cannot reach 3:1 against the land); these two blocks pick the dark pair. */
:root[data-theme="dark"] #course-explorer{--land:#2a382b; --land-out:#212c22; --edge:rgba(236,239,226,.34)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #course-explorer{--land:#2a382b; --land-out:#212c22; --edge:rgba(236,239,226,.34)}}

#course-explorer *,#course-explorer *::before,#course-explorer *::after{box-sizing:border-box}
#course-explorer .ce-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;padding:0}
#course-explorer button{font:inherit;color:inherit;cursor:pointer;margin:0;text-transform:none;letter-spacing:normal}
#course-explorer button:focus-visible,#course-explorer a:focus-visible{outline:2px solid var(--couch-deep);outline-offset:2px}

#course-explorer .ce-body{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
#course-explorer .ce-card{background:var(--panel);border:1px solid var(--hair);border-radius:var(--r);min-width:0;overflow:hidden}

/* toolbar: where you are, on the left; the three map controls on the right */
#course-explorer .ce-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px;border-bottom:1px solid var(--hair)}
#course-explorer .ce-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;flex:1 1 180px;min-width:0;font-weight:600;font-size:.9rem}
#course-explorer .ce-crumbs button{background:none;border:0;padding:0 2px;min-height:40px;color:var(--couch-deep);text-decoration:underline;text-underline-offset:3px;font-weight:600}
#course-explorer .ce-crumbs .sep{color:var(--muted)}
#course-explorer .ce-crumbs .cur{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#course-explorer .ce-tools{display:flex;align-items:center;gap:6px;margin-left:auto}
#course-explorer .ce-btn{min-width:40px;height:40px;border:1px solid var(--hair);background:var(--panel);border-radius:var(--r);display:grid;place-items:center;font-weight:700;font-size:1.15rem;line-height:1;padding:0}
#course-explorer .ce-btn:hover{border-color:var(--ink)}
#course-explorer .ce-tog{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:1px solid var(--hair);background:var(--panel);border-radius:var(--r);font-weight:600;font-size:.88rem}
#course-explorer .ce-tog[hidden]{display:none}
#course-explorer .ce-tog svg{width:18px;height:18px;flex:none}
#course-explorer .ce-tog[aria-pressed="true"],#course-explorer .ce-row[aria-pressed="true"]{background:var(--couch-deep);border-color:var(--couch-deep);color:var(--page)}

/* the map */
#course-explorer .ce-stage{position:relative;cursor:grab;touch-action:none;height:max(360px,112cqw);background:var(--sea);user-select:none;-webkit-user-select:none}
#course-explorer .ce-stage.drag{cursor:grabbing}
#course-explorer #ce-map{display:block;width:100%;height:100%}
#course-explorer .st{fill:var(--land);stroke:var(--edge);stroke-width:1px;vector-effect:non-scaling-stroke;stroke-linejoin:round;transition:fill .2s}
#course-explorer .st.out{fill:var(--land-out)}
/* a state pointed at (map or legend) takes a wash of its own colour; its pins keep their size, so a dense state still reads as dots */
#course-explorer .natl .st:hover,#course-explorer .st.hl{fill:color-mix(in srgb,var(--land) 74%,var(--fl))}
:root[data-theme="dark"] #course-explorer .natl .st:hover,:root[data-theme="dark"] #course-explorer .st.hl{fill:color-mix(in srgb,var(--land) 74%,var(--fd))}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #course-explorer .natl .st:hover,:root:not([data-theme="light"]) #course-explorer .st.hl{fill:color-mix(in srgb,var(--land) 74%,var(--fd))}}
#course-explorer .st.hl{stroke:var(--ink);stroke-width:1.5px}
#course-explorer .natl .st{cursor:pointer}
/* a region's AREA (state view): transparent so the land shows through, but it takes the pointer, so a region can be hovered or tapped on the map as well as
   in the legend. Lit (hover, focus, first tap, or picked) it takes the same wash of its own colour a state does, inside one closed ink outline (.rb).
   Both are drawn through the state's outline (clip-path, set in the script) so nothing of the fill spills into the sea. */
#course-explorer .ra{fill:transparent;stroke:none;cursor:pointer;transition:fill .2s}
#course-explorer .ra.out{pointer-events:none;cursor:auto}
#course-explorer .ra.hl{fill:color-mix(in srgb,var(--land) 74%,var(--fl))}
:root[data-theme="dark"] #course-explorer .ra.hl{fill:color-mix(in srgb,var(--land) 74%,var(--fd))}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #course-explorer .ra.hl{fill:color-mix(in srgb,var(--land) 74%,var(--fd))}}
#course-explorer .rb{display:none;fill:none;stroke:var(--ink);stroke-width:2px;vector-effect:non-scaling-stroke;stroke-linejoin:round;pointer-events:none}
#course-explorer .rb.hl{display:inline}
#course-explorer .rl{fill:none;stroke:var(--ink);stroke-width:1px;vector-effect:non-scaling-stroke;stroke-linejoin:round;opacity:.6;pointer-events:none}
#course-explorer .rl.sel{opacity:.85;stroke-width:1.5px}
#course-explorer .rl.out{opacity:.16}
#course-explorer .rl.faint{opacity:.1}
#course-explorer .rl.hl{opacity:1;stroke-width:2.2px}
/* state names sit on top of the pins, on a halo of the land colour; their anchors are placed where pins are sparse */
#course-explorer .stlab{font-family:var(--display);font-weight:700;letter-spacing:.14em;fill:var(--ink-soft);text-anchor:middle;dominant-baseline:central;pointer-events:none;paint-order:stroke;stroke:var(--land);stroke-linejoin:round;opacity:0;transition:opacity .18s}
#course-explorer .natl .stlab{opacity:.92}
#course-explorer .town{font-family:var(--body);font-weight:600;fill:var(--ink-soft);paint-order:stroke;stroke:var(--land);stroke-linejoin:round;pointer-events:none}
#course-explorer .towndot{fill:var(--ink-soft);pointer-events:none}
#course-explorer .pin{fill:var(--fl);stroke:var(--rl,var(--panel));stroke-width:.8px;vector-effect:non-scaling-stroke;pointer-events:none;transition:opacity .15s}
#course-explorer .pin.out{opacity:.38}
#course-explorer .pin.dim{opacity:.1}
/* a region (or state) pointed at in the legend: its pins come to full strength at their usual size, the rest dim; the map does not move */
#course-explorer .pin.hi{opacity:1}
#course-explorer .selring{fill:none;stroke:var(--ink);stroke-width:2px;vector-effect:non-scaling-stroke;pointer-events:none}
#course-explorer[data-state-first] .st.out{cursor:pointer}
#course-explorer .selpin{fill:var(--fl);stroke:var(--rl,var(--panel));stroke-width:1.5px;vector-effect:non-scaling-stroke;pointer-events:none}
:root[data-theme="dark"] #course-explorer .pin,:root[data-theme="dark"] #course-explorer .selpin{fill:var(--fd);stroke:var(--rd,var(--panel))}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #course-explorer .pin,:root:not([data-theme="light"]) #course-explorer .selpin{fill:var(--fd);stroke:var(--rd,var(--panel))}}

#course-explorer .ce-dot{flex:none;width:12px;height:12px;border-radius:50%;background:var(--fl);box-shadow:0 0 0 1.5px var(--rl,var(--panel))}
:root[data-theme="dark"] #course-explorer .ce-dot{background:var(--fd);box-shadow:0 0 0 1.5px var(--rd,var(--panel))}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #course-explorer .ce-dot{background:var(--fd);box-shadow:0 0 0 1.5px var(--rd,var(--panel))}}

/* readout */
#course-explorer .ce-readout{padding:10px 12px;border-top:1px solid var(--hair);min-height:62px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
#course-explorer .ce-readout[hidden]{display:none}
#course-explorer .ce-pick{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:12px;min-height:44px;color:inherit;text-decoration:none}
#course-explorer .ce-pt{flex:1;min-width:0}
#course-explorer .ce-pick b{display:block;font-family:var(--display);font-weight:600;font-size:1.1875rem;line-height:1.25;letter-spacing:-.005em;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:text-decoration-color .15s}
#course-explorer .ce-pick:hover b,#course-explorer .ce-pick:focus-visible b{text-decoration-color:currentColor}
#course-explorer .ce-pick .ce-pt span{display:block;color:var(--muted);font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#course-explorer .ce-pick .ce-caret{color:var(--ink)}
#course-explorer .ce-go{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--couch-deep);text-decoration:underline;text-underline-offset:3px}

/* legend */
#course-explorer .ce-legend{min-width:0}
#course-explorer .ce-lhead{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;margin:0 0 8px}
#course-explorer .ce-lh{margin:0;font-family:var(--body);font-weight:400;font-size:.75rem;line-height:1.45;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
#course-explorer .ce-lk{display:inline-flex;align-items:center;min-height:32px;font-size:.85rem;font-weight:600;color:var(--couch-deep);text-decoration:underline;text-underline-offset:3px}
#course-explorer .ce-lk[hidden]{display:none}
#course-explorer .ce-list{display:grid;gap:6px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
/* a row is a grid with fixed outer columns: dot | name | count | chevron. The count is right-aligned in its own cell and the chevron sits in a 16px cell
   at the row's right padding, so every count's right edge and every chevron's centre line up row to row, whatever the name or the count's width. */
#course-explorer .ce-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto 16px;align-items:center;column-gap:10px;min-height:44px;padding:0 12px;border:1px solid var(--hair);background:var(--panel);border-radius:var(--r);text-align:left;font-weight:600;font-size:.9rem;width:100%}
#course-explorer .ce-row:hover{border-color:var(--ink)}
#course-explorer .ce-row .nm{min-width:0;overflow-wrap:anywhere;line-height:1.25}
#course-explorer .ce-row .n{justify-self:end;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums;font-weight:400}
#course-explorer .ce-row[aria-pressed="true"] .n{color:inherit;opacity:.8}
/* the site's one chevron: `.where-caret` in the site's globals.css (frontend/app/globals.css, ~line 3803), two rounded 9x2px arms drawn with ::before/::after in a 16x12 box.
   Copied verbatim, scoped here under .ce-caret so the component also works on a page that does not load the site's CSS. As in the site (comment block near line 4385):
   DOWN means "expands here", RIGHT (rotate -90deg) means "opens a layer"; LEFT (rotate 90deg) is the same glyph turned the other way, for a way back. */
#course-explorer .ce-caret{position:relative;width:16px;height:12px;color:var(--muted);flex:none;display:block}
#course-explorer .ce-caret::before,#course-explorer .ce-caret::after{content:"";position:absolute;top:5px;width:9px;height:2px;border-radius:999px;background:currentColor;transition:transform 150ms var(--tu-ease-out,cubic-bezier(.22,1,.36,1))}
#course-explorer .ce-caret::before{left:0;transform-origin:right center;transform:translateY(3.2px) rotate(45deg)}
#course-explorer .ce-caret::after{right:0;transform-origin:left center;transform:translateY(3.2px) rotate(-45deg)}
#course-explorer .ce-caret.r{transform:rotate(-90deg)}
#course-explorer .ce-caret.l{transform:rotate(90deg)}
#course-explorer .ce-row[aria-pressed="true"] .ce-caret{color:inherit}
#course-explorer .ce-static{cursor:default}
#course-explorer .ce-static:hover{border-color:var(--hair)}
/* a club on an island too far offshore to belong to the region's fit box (Norfolk, Lord Howe, Christmas Island): its own row box under its region's row, same
   style, no count. It has its own dot on the map, out at sea; picking the row selects the club and moves the camera to it, never the selected state. */
#course-explorer .ce-grp{display:grid;gap:6px;min-width:0}
#course-explorer .ce-row.ce-isl .nm{grid-column:2/4}
/* a state row that also carries its own "All clubs" link (the page sets data-clubs-href) */
#course-explorer .ce-srow{display:flex;gap:6px;min-width:0}
#course-explorer .ce-srow .ce-row{flex:1;width:auto;min-width:0}
#course-explorer .ce-all{display:inline-flex;align-items:center;flex:none;min-height:44px;padding:0 12px;border:1px solid var(--hair);background:var(--panel);border-radius:var(--r);font-weight:600;font-size:.85rem;color:var(--couch-deep);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
#course-explorer .ce-all:hover{border-color:var(--ink)}

@container ce (min-width:760px){
  #course-explorer .ce-body{grid-template-columns:minmax(0,1fr) var(--ce-legend,280px)}
  #course-explorer .ce-stage{height:clamp(420px,56cqw,700px)}
  #course-explorer .ce-legend{position:relative}
  #course-explorer .ce-legend-in{position:absolute;inset:0;overflow:auto}
  #course-explorer .ce-list{grid-template-columns:minmax(0,1fr)}
}
@container ce (min-width:480px) and (max-width:759px){#course-explorer .ce-stage{height:max(380px,76cqw)}}
@media (prefers-reduced-motion:reduce){#course-explorer *{transition:none!important;animation:none!important}}

/* source: assets/css/features/golf-showcase.css */
/* caniplay.golf project panel: phone and share card, the clubs map section, the desktop page.
   Composition "golf-showcase" (build/templates.mjs). Design: docs/design/2026-11-01-panel-layout-mock/.
   Wide (1240px and up): copy left, assets right. Sizes come from the width of the asset column (container units), so the same
   picture holds at any desktop width. Below 1240px the copy column of this panel (eight paragraphs) is far taller than the assets
   in two columns, so it stacks instead: the assets are interleaved with the copy, each one after the paragraph that talks about it,
   by flattening the panel's wrappers (display: contents) and ordering the children.
   Loaded after golf-map.css (file name order) so the #course-explorer overrides below win. */

@media (min-width: 1240px) {
  .project-preview.is-snapshot[data-composition="golf-showcase"] {
    grid-template-columns: minmax(0, .54fr) minmax(0, 1fr);
    column-gap: clamp(30px, 4.2vw, 64px);
    max-width: 1480px; margin-inline: auto;
  }
}

.evidence-golf-showcase { container-type: inline-size; width: 100%; }
.evidence-golf-showcase > .gs-top ~ .gs-item { margin-top: 3.9cqw; }
/* .ev-group-lead is the panel's lead group (the other panels animate it in); its generic .ev-group display rules must not win */
.evidence-golf-showcase > .gs-top { display: flex; justify-content: space-between; align-items: flex-start; height: 52.2cqw; }

/* the share card and the desktop page: flat screenshots, the site's border and hard shadow */
.gs-flat { position: relative; margin: 0; border: var(--border); background: #fff; box-shadow: 6px 8px 0 rgba(38, 51, 59, .24); line-height: 0; }
.gs-flat picture, .gs-flat img { display: block; width: 100%; }
.gs-card { height: 100%; aspect-ratio: 4 / 5; }
.gs-card picture, .gs-card img { height: 100%; object-fit: cover; }
.gs-desktop img { height: auto; }

/* the phone: a handset, sized by its container so the corners, bezel and island scale together */
.gs-phone { position: relative; flex: none; height: 100%; aspect-ratio: .4923; margin: 0; container-type: inline-size; filter: drop-shadow(6px 8px 0 rgba(38, 51, 59, .24)); }
.gs-body { position: absolute; inset: 0; border-radius: 15.7cqi; padding: 1cqi; box-sizing: border-box; background: linear-gradient(135deg, #9aa0a6 0%, #41464b 16%, #1b1e21 48%, #3d4247 80%, #a3a9ae 100%); }
.gs-bezel { width: 100%; height: 100%; box-sizing: border-box; padding: 4.4cqi; border-radius: 14.7cqi; background: #050607; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.gs-screen { position: relative; width: 100%; height: 100%; border-radius: 11.5cqi; overflow: hidden; background: #000; line-height: 0; }
.gs-screen picture, .gs-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gs-island { position: absolute; top: 2.7cqi; left: 50%; transform: translateX(-50%); width: 27.5cqi; height: 7.8cqi; border-radius: 999px; background: #000; }
.gs-btn { position: absolute; width: 1.4cqi; background: linear-gradient(90deg, #6b7076, #2b2f33); }
.gs-btn-1 { left: -1.4cqi; top: 16%; height: 3.5%; border-radius: 2px 0 0 2px; }
.gs-btn-2 { left: -1.4cqi; top: 23%; height: 6.5%; border-radius: 2px 0 0 2px; }
.gs-btn-3 { left: -1.4cqi; top: 32%; height: 6.5%; border-radius: 2px 0 0 2px; }
.gs-btn-p { right: -1.4cqi; top: 27%; height: 10%; border-radius: 0 2px 2px 0; }

/* the clubs map section: the product's home-page block (heading, a tile per state, the map) with the explorer inside */
.gs-map { box-sizing: border-box; border: var(--border); background: #f1eee0; box-shadow: 6px 8px 0 rgba(38, 51, 59, .24); padding: 2.7cqw 2.4cqw; }
.gm-title { margin: 0 0 2.2cqw; font-family: var(--display); font-size: clamp(20px, 3.66cqw, 32px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.gm-title span { display: block; }
.gm-row { display: grid; grid-template-columns: 16.6cqw minmax(0, 1fr); column-gap: 2.9cqw; align-items: stretch; }
.gm-tiles { display: grid; grid-auto-rows: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gm-tiles li { display: flex; }
.gm-tile { flex: 1; display: flex; align-items: center; gap: .7em; padding: 0 .8em; border: 1px solid rgba(21, 37, 26, .2); border-radius: 3px; background: #fbf9f0; color: #15251a; font: 700 clamp(11px, 1.8cqw, 15px)/1 var(--display); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.gm-tile b { flex: 1; text-align: left; font-weight: 700; }
.gm-n { color: #555c4e; font-weight: 500; font-size: .93em; font-variant-numeric: tabular-nums; }
.gm-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.gm-tile:is(:hover, :focus-visible, .is-hot, .is-on) { border-color: var(--c); box-shadow: 0 6px 18px rgba(21, 37, 26, .12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .gm-tile { transition: none; } }

/* the explorer inside the block: one size in every state; the toolbar only exists once a state is picked.
   The ported stylesheet sets everything under #course-explorer, so each override here carries the id too, or it loses. */
.gm-stage #course-explorer { --display: "Cabinet Grotesk", Arial, sans-serif; --body: "Cabinet Grotesk", Arial, sans-serif; font-family: "Cabinet Grotesk", Arial, sans-serif; font-size: 16px; width: 100%; margin: 0; }
.gm-stage #course-explorer:has(svg.natl) { --land: #d2dfb6; --edge: #f1eee0; }
.gm-stage #course-explorer .ce-body { display: block; }
.gm-stage #course-explorer .ce-legend { display: none; }
.gm-stage #course-explorer .ce-card { position: relative; aspect-ratio: 4122 / 3961; transition: background-color .2s, border-color .2s; }
.gm-stage #course-explorer:has(svg.natl) .ce-card { background: transparent; border-color: transparent; }
/* a vertical swipe or a plain wheel turn over the map scrolls the page; the wheel zooms the map only with ctrl/cmd (a trackpad pinch) */
.gm-stage #course-explorer .ce-stage { position: absolute; inset: 0; height: auto; background: transparent; touch-action: pan-y pinch-zoom; }
.gm-stage #course-explorer:not(:has(svg.natl)) .ce-stage { top: 58px; }
/* the toolbar is one 58px row in every state and at every width (the stage sits under it), so it can never cover the map */
.gm-stage #course-explorer .ce-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; box-sizing: border-box; height: 58px; flex-wrap: nowrap; gap: 8px; background: var(--panel); }
/* overflow clips the trail to its row, so the box carries 5px of padding (and the same negative margin) to keep the 4px focus ring inside it */
.gm-stage #course-explorer .ce-crumbs { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; overflow: hidden; padding: 5px; margin: -5px; }
.gm-stage #course-explorer .ce-crumbs > * { flex: none; white-space: nowrap; }
.gm-stage #course-explorer .ce-crumbs > .cur { flex: 0 1 auto; min-width: 0; }
.gm-stage #course-explorer .ce-tools { flex: none; }
.gm-stage #course-explorer .ce-tog { white-space: nowrap; }
.gm-stage #course-explorer:has(svg.natl) .ce-bar { display: none; }
.gm-stage #course-explorer svg.natl .st { stroke-width: 2px; }
.gm-stage #course-explorer svg.natl :is(.town, .towndot, .stlab) { display: none; }
.gm-stage #course-explorer .ce-readout { position: absolute; left: 14px; bottom: 14px; z-index: 3; max-width: 62%; border: 1px solid var(--hair); border-radius: var(--r); background: var(--panel); box-shadow: 0 6px 18px rgba(21, 37, 26, .12); }
.gm-stage #course-explorer .ce-readout[hidden], .gm-stage #course-explorer .ce-readout:empty { display: none; }
.gm-stage #course-explorer .ce-pick { pointer-events: none; padding: 10px 14px; min-height: 0; }
.gm-stage #course-explorer .ce-pick .ce-caret { display: none; }
/* before the map has loaded there is nothing to operate: no toolbar, no chip */
.gs-map:not(.is-ready) #course-explorer :is(.ce-bar, .ce-readout) { visibility: hidden; }
/* a narrow map (under 600px: a full trail beside the labelled toggle no longer fits): the lines toggle becomes an icon, and the trail a back chevron plus where you are */
@container ce (max-width: 600px) {
  .gm-stage #course-explorer .ce-bar { padding: 0 6px; gap: 4px; }
  .gm-stage #course-explorer .ce-tools { gap: 4px; }
  .gm-stage #course-explorer :is(.ce-btn, .ce-tog) { min-width: 34px; width: 34px; }
  .gm-stage #course-explorer .ce-tog { font-size: 0; gap: 0; padding: 0; justify-content: center; }
  .gm-stage #course-explorer .ce-crumbs > .sep { display: none; }
  .gm-stage #course-explorer .ce-crumbs > button:not(:last-of-type) { display: none; }
  .gm-stage #course-explorer .ce-crumbs > button { font-size: 0; text-decoration: none; width: 32px; padding: 0; }
  .gm-stage #course-explorer .ce-crumbs > button::before { content: "\2039"; content: "\2039" / ""; font-size: 28px; line-height: 1; }
  .gm-stage #course-explorer .ce-readout { max-width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) { .gm-stage #course-explorer .ce-card { transition: none; } }
/* if the map cannot load, or scripts are off, the state tiles stay as a plain summary and the empty map card goes */
.gs-map.is-failed .gm-stage, html:not([data-js]) .gs-map .gm-stage { display: none; }
.gs-map.is-failed .gm-row, html:not([data-js]) .gs-map .gm-row { grid-template-columns: minmax(0, 1fr); }
.gs-map.is-failed .gm-tiles, html:not([data-js]) .gs-map .gm-tiles { grid-template-columns: repeat(auto-fit, minmax(max(118px, 22%), 1fr)); grid-auto-rows: 44px; }
.gs-map.is-failed .gm-tile, html:not([data-js]) .gs-map .gm-tile { pointer-events: none; }

/* below 1240px: interleave the assets with the copy */
@media (max-width: 1239px) {
  .project-preview.is-snapshot[data-composition="golf-showcase"] { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 780px; margin-inline: auto; box-sizing: border-box; }
  [data-composition="golf-showcase"] :is(.preview-head, .preview-media, .preview-foot, .evidence-golf-showcase, .gs-top) { display: contents; }
  .evidence-golf-showcase > .gs-top.ev-group { display: contents; }
  [data-composition="golf-showcase"] .preview-head > h4 { order: 1; }
  [data-composition="golf-showcase"] .preview-head > .project-record { order: 2; }
  [data-composition="golf-showcase"] .preview-head > p:nth-of-type(1) { order: 10; }
  [data-composition="golf-showcase"] .preview-head > p:nth-of-type(2) { order: 20; }
  [data-composition="golf-showcase"] .preview-head > p:nth-of-type(3) { order: 30; }
  [data-composition="golf-showcase"] .preview-head > p:nth-of-type(4) { order: 40; }
  [data-composition="golf-showcase"] .preview-head > p:nth-of-type(5) { order: 50; }
  [data-composition="golf-showcase"] .preview-head > p:nth-of-type(6) { order: 60; }
  [data-composition="golf-showcase"] .preview-head > p:nth-of-type(7) { order: 70; }
  [data-composition="golf-showcase"] .preview-head > p:nth-of-type(8) { order: 80; }
  [data-composition="golf-showcase"] .gs-item-phone { order: 25; }
  [data-composition="golf-showcase"] .gs-item-card { order: 45; }
  [data-composition="golf-showcase"] .gs-item-map { order: 55; }
  [data-composition="golf-showcase"] .gs-item-desktop { order: 85; }
  /* the panel gap is 22px: 6px of margin makes 28px above an asset and before the Visit link, at every width */
  [data-composition="golf-showcase"] .preview-actions { order: 90; margin-top: 6px; }
  .evidence-golf-showcase > .gs-top ~ .gs-item, .gs-item { margin: 6px 0 0; }
  .gs-phone { height: auto; width: min(64%, 270px); align-self: center; }
  .gs-card { height: auto; width: 100%; max-width: 440px; align-self: center; }
  /* the map block and the desktop page take the whole column, and the page keeps its height before it loads */
  .gs-map, .gs-desktop { align-self: stretch; width: 100%; }
  .gs-map { padding: 16px 14px 18px; display: flex; flex-direction: column; }
  .gm-title { font-size: 22px; margin: 16px 0 14px; order: 2; }
  .gm-row { display: contents; }
  .gm-stage { order: 1; }
  .gm-tiles { order: 3; grid-template-columns: 1fr 1fr; gap: 6px; }
  .gm-tile { min-height: 40px; font-size: 14px; }
}

/* source: assets/css/features/hero-cabinet.css */
/* ── HERO · CABINET ("Pull the drawer") ─────────────────────────────────────
   A steel filing cabinet built from flat CSS planes in one 3D rendering
   context. Every face is an ink-outlined rectangle; nothing is an image.

   Units: the whole model is drawn in --u, a length derived from the stage's
   own size (container query units), so it scales as one object instead of
   reflowing. Numbers below are "u" in the model: the cabinet is 440u wide,
   410u tall and 280u deep.

   State lives in three custom properties, all set on .hcab-scene:
     --pull-base    0 closed / 1 open. 1 without JS and for reduced motion.
     --pull-js      the physics (hero-cabinet.js) when it has taken over.
     --pull-junk    the stuck bottom drawer.
   With JavaScript, the top drawer starts shut and opens once on entrance. */

.hero--cabinet { --pull-base: 1; }
[data-js] .hero--cabinet { --pull-base: 0; }
@media (prefers-reduced-motion: reduce) {
  [data-js] .hero--cabinet { --pull-base: 1; }
}

/* ── the stage: the blue blueprint panel the object sits on ── */
/* overflow: clip, not hidden: hidden would make the hero a scroll container
   and the stage's view timeline would bind to it and never move. */
.hero.hero--cabinet { overflow: clip; }
.hero--cabinet .hcab-stage {
  position: relative; overflow: clip; container-type: size;
  background: var(--blue); border-left: var(--border);
  /* One model unit. The model is designed on a 690 x 740 board. */
  --u: min(calc(100cqw / 690), calc(100cqh / 740));
  --b: max(2px, calc(3 * var(--u)));
  --lit: color-mix(in srgb, var(--steel) 45%, #fff);
  --shade: #9ba6ad;
  --deep: #7e8a92;
}
.hero--cabinet .hcab-stage::before {
  content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(23,25,22,.5) 33px 34px),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(23,25,22,.35) 33px 34px);
}

.hero--cabinet .hcab-scene {
  --p1: var(--pull-js, var(--pull-base));
  --p2: var(--pull-junk, 0);
  position: absolute; inset: 0;
  perspective: calc(1900 * var(--u));
  perspective-origin: 48% 38%;
  /* The house shadow, cast by the whole silhouette as it moves. */
  filter: drop-shadow(calc(16 * var(--u)) calc(20 * var(--u)) 0 var(--shadow));
}

/* Camera: a little above, a little to the right. The tip wrapper rocks the
   carcass forward on its front-bottom edge when a drawer is yanked too hard. */
.hero--cabinet .hcab-cab {
  position: absolute; width: calc(440 * var(--u)); height: calc(410 * var(--u));
  left: calc(50% - 232 * var(--u)); top: calc(50% - 200 * var(--u));
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(-25deg);
}
.hero--cabinet .hcab-body {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform-origin: 50% 100% 0;
  transform: rotateX(calc(var(--tip, 0) * -1deg));
}

.hero--cabinet .hcab-f {
  position: absolute; display: block; box-sizing: border-box;
  border: var(--b) solid var(--ink);
  /* These are painted faces, not controls. In the shared 3D scene a rear
     plane can project over a front handle even when it looks visually behind
     it; keeping decorative geometry out of hit-testing makes the physical
     interaction model match the picture. */
  pointer-events: none;
}

/* ── carcass ── */
.hero--cabinet .hcab-front { left: 0; top: 0; width: calc(440 * var(--u)); height: calc(410 * var(--u)); background: var(--steel); }
.hero--cabinet .hcab-plinth {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(24 * var(--u));
  background: var(--shade); border-top: var(--b) solid var(--ink);
}
.hero--cabinet .hcab-top {
  left: 0; top: calc(-280 * var(--u)); width: calc(440 * var(--u)); height: calc(280 * var(--u));
  transform-origin: bottom; transform: rotateX(90deg); background: var(--lit);
}
.hero--cabinet .hcab-side {
  left: calc(440 * var(--u)); top: 0; width: calc(280 * var(--u)); height: calc(410 * var(--u));
  transform-origin: left; transform: rotateY(90deg); background: var(--steel-dark);
}
.hero--cabinet .hcab-hole { border: 0; background: var(--ink); transform: translateZ(calc(.6 * var(--u))); }
.hero--cabinet .hcab-hole--top { left: calc(16 * var(--u)); top: calc(18 * var(--u)); width: calc(408 * var(--u)); height: calc(260 * var(--u)); }
.hero--cabinet .hcab-hole--junk { left: calc(16 * var(--u)); top: calc(292 * var(--u)); width: calc(408 * var(--u)); height: calc(92 * var(--u)); }

/* ── drawers: a front 8u proud of the carcass, and an open box behind it ── */
.hero--cabinet .hcab-drawer {
  position: absolute; transform-style: preserve-3d;
  /* The transformed box itself has no action. At some desktop camera angles
     its rectangular hit area projects over the other drawer even though its
     painted faces do not. Real controls opt back in below. */
  pointer-events: none;
}
.hero--cabinet .hcab-drawer--top {
  left: calc(12 * var(--u)); top: calc(14 * var(--u)); width: calc(416 * var(--u)); height: calc(268 * var(--u));
  transform: translateZ(calc(var(--p1) * 210 * var(--u)));
}
.hero--cabinet .hcab-drawer--junk {
  left: calc(12 * var(--u)); top: calc(288 * var(--u)); width: calc(416 * var(--u)); height: calc(100 * var(--u));
  transform: translateZ(calc(var(--p2) * 180 * var(--u)));
}
.hero--cabinet .hcab-d-front {
  left: 0; top: 0; width: 100%; height: 100%;
  background: var(--steel);
  transform: translateZ(calc(18 * var(--u)));
  backface-visibility: hidden;
}
/* The front's thickness, seen from above and from the right. Both stop a
   hair short of the carcass face so they never z-fight with it, and the lip
   carries no border: edge-on, a border aliases into a dotted line. */
.hero--cabinet .hcab-d-lip {
  left: 0; top: calc(-13 * var(--u)); width: 100%; height: calc(13 * var(--u));
  transform-origin: bottom; transform: translateZ(calc(18 * var(--u))) rotateX(90deg);
  background: var(--lit); border: 0;
}
.hero--cabinet .hcab-d-edge {
  left: 100%; top: 0; width: calc(13 * var(--u)); height: 100%;
  transform-origin: left; transform: translateZ(calc(18 * var(--u))) rotateY(90deg);
  background: var(--steel-dark); border-width: var(--b) 0 var(--b) 0;
}
/* Box walls. Both side walls show the face that points right, which is the
   outside of the right wall and the inside of the left one: that is what a
   camera above and to the right actually sees. */
.hero--cabinet .hcab-d-side { transform-origin: left; transform: rotateY(90deg); background: var(--steel-dark); }
.hero--cabinet .hcab-d-side--l { background: var(--deep); }
.hero--cabinet .hcab-d-floor { transform-origin: bottom; transform: rotateX(90deg); background: var(--deep); }
.hero--cabinet .hcab-d-back { background: var(--shade); }

.hero--cabinet .hcab-drawer--top .hcab-d-side { left: calc(12 * var(--u)); top: calc(36 * var(--u)); width: calc(262 * var(--u)); height: calc(226 * var(--u)); }
.hero--cabinet .hcab-drawer--top .hcab-d-side--r { left: calc(404 * var(--u)); }
.hero--cabinet .hcab-drawer--top .hcab-d-floor { left: calc(12 * var(--u)); top: 0; width: calc(392 * var(--u)); height: calc(262 * var(--u)); }
.hero--cabinet .hcab-drawer--top .hcab-d-back { left: calc(12 * var(--u)); top: calc(36 * var(--u)); width: calc(392 * var(--u)); height: calc(226 * var(--u)); transform: translateZ(calc(-262 * var(--u))); }

.hero--cabinet .hcab-drawer--junk .hcab-d-side { left: calc(12 * var(--u)); top: calc(22 * var(--u)); width: calc(220 * var(--u)); height: calc(70 * var(--u)); }
.hero--cabinet .hcab-drawer--junk .hcab-d-side--r { left: calc(404 * var(--u)); }
.hero--cabinet .hcab-drawer--junk .hcab-d-floor { left: calc(12 * var(--u)); top: calc(-128 * var(--u)); width: calc(392 * var(--u)); height: calc(220 * var(--u)); }
.hero--cabinet .hcab-drawer--junk .hcab-d-back { left: calc(12 * var(--u)); top: calc(22 * var(--u)); width: calc(392 * var(--u)); height: calc(70 * var(--u)); transform: translateZ(calc(-220 * var(--u))); }

/* ── the label: two strips of embossed label-maker tape ── */
/* The drawer front is deliberately FLAT (no preserve-3d). Anything tilted
   inside the shared 3D context becomes an infinite splitting plane for the
   browser's depth sort, and at 2x device scale Chrome then paints the dark
   drawer openings over the fronts. So the tape curl is drawn with its own
   local perspective and flattened onto the front. */
.hero--cabinet .hcab-tapes {
  position: absolute; left: 50%; top: calc(38 * var(--u)); translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: calc(9 * var(--u));
}
.hero--cabinet .hcab-tape { display: flex; height: calc(36 * var(--u)); perspective: calc(90 * var(--u)); }
.hero--cabinet .hcab-tape--1 { rotate: -1.4deg; translate: calc(-14 * var(--u)) 0; }
.hero--cabinet .hcab-tape--2 { rotate: .7deg; translate: calc(10 * var(--u)) 0; }
.hero--cabinet .hcab-tape-body, .hero--cabinet .hcab-tape-end { background: #20262a; }
.hero--cabinet .hcab-tape-body {
  display: flex; align-items: center; padding: 0 calc(8 * var(--u));
  font-family: var(--mono); font-weight: 700; font-size: max(9px, calc(19 * var(--u)));
  letter-spacing: .16em; line-height: 1; color: #edf1f3;
  box-shadow: inset 0 calc(2 * var(--u)) 0 rgba(255,255,255,.1);
}
/* The ends lift off the steel a few degrees. */
.hero--cabinet .hcab-tape-end { width: calc(10 * var(--u)); box-shadow: inset 0 calc(2 * var(--u)) 0 rgba(255,255,255,.1); }
.hero--cabinet .hcab-tape-end--l { transform-origin: right; transform: rotateY(-28deg); }
.hero--cabinet .hcab-tape-end--r { transform-origin: left; transform: rotateY(28deg); }
/* Embossed: the raised letter catches light above and throws a hard edge below. */
.hero--cabinet .hcab-ch {
  display: inline-block;
  text-shadow: 0 calc(1.6 * var(--u)) 0 #05080a, 0 calc(-1 * var(--u)) 0 rgba(255,255,255,.35);
}
.hero--cabinet .hcab-ch:nth-child(3n+1) { translate: 0 calc(-.8 * var(--u)); }
.hero--cabinet .hcab-ch:nth-child(4n+2) { translate: 0 calc(.9 * var(--u)); }

/* ── handles ── */
.hero--cabinet .hcab-handle, .hero--cabinet .hcab-junk-handle {
  position: absolute; left: 50%; padding: 0; margin: 0; cursor: grab;
  border: var(--b) solid var(--ink); background: var(--steel-dark); color: inherit;
  transform: translateX(-50%);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-quick) ease, box-shadow var(--t-quick) ease;
  pointer-events: auto;
}
/* A bar pull: grip recess on top, hard shadow cast back onto the drawer. */
.hero--cabinet .hcab-handle {
  top: calc(170 * var(--u)); width: calc(168 * var(--u)); height: calc(34 * var(--u));
  border-radius: calc(17 * var(--u)); touch-action: none;
  box-shadow: inset 0 calc(-7 * var(--u)) 0 rgba(21,25,24,.18), calc(7 * var(--u)) calc(8 * var(--u)) 0 rgba(21,25,24,.28);
}
.hero--cabinet .hcab-handle:hover { background: color-mix(in srgb, var(--steel-dark) 80%, #fff); }
.hero--cabinet .hcab-handle:active, .hero--cabinet .hcab-handle.is-gripped {
  cursor: grabbing; background: var(--shade);
  box-shadow: inset 0 calc(-3 * var(--u)) 0 rgba(21,25,24,.28), calc(4 * var(--u)) calc(5 * var(--u)) 0 rgba(21,25,24,.28);
}
/* A cup pull on the little drawer. */
.hero--cabinet .hcab-junk-handle {
  top: calc(34 * var(--u)); width: calc(116 * var(--u)); height: calc(34 * var(--u)); cursor: pointer;
  touch-action: manipulation;
  border-radius: 0 0 calc(58 * var(--u)) calc(58 * var(--u));
  box-shadow: inset 0 calc(9 * var(--u)) 0 rgba(21,25,24,.3), calc(6 * var(--u)) calc(7 * var(--u)) 0 rgba(21,25,24,.28);
}
.hero--cabinet .hcab-junk-handle:hover { background: color-mix(in srgb, var(--steel-dark) 80%, #fff); }
.hero--cabinet .hcab-junk-handle:active { box-shadow: inset 0 calc(12 * var(--u)) 0 rgba(21,25,24,.36), calc(3 * var(--u)) calc(4 * var(--u)) 0 rgba(21,25,24,.28); }
.hero--cabinet .hcab-handle:disabled, .hero--cabinet .hcab-junk-handle:disabled { cursor: default; }
.hero--cabinet .hcab-handle:focus-visible, .hero--cabinet .hcab-junk-handle:focus-visible {
  outline: max(3px, calc(4 * var(--u))) solid var(--yellow); outline-offset: max(3px, calc(4 * var(--u)));
}
/* The card holder on the junk drawer: one word in Nick's pen. */
.hero--cabinet .hcab-card {
  position: absolute; left: calc(28 * var(--u)); top: calc(30 * var(--u));
  width: calc(88 * var(--u)); height: calc(40 * var(--u));
  display: grid; place-items: center;
  background: var(--paper); border: max(1.5px, calc(2.5 * var(--u))) solid var(--ink);
  outline: calc(5 * var(--u)) solid var(--steel-dark); outline-offset: 0;
  font-family: var(--hand); font-size: max(12px, calc(24 * var(--u))); line-height: 1; color: var(--ink);
  rotate: -2deg;
}
@media (prefers-reduced-motion: no-preference) {
  .hero--cabinet .hcab-drawer--junk.is-rattling { animation: hcab-rattle 300ms linear; }
}
@keyframes hcab-rattle {
  15% { translate: calc(-3 * var(--u)) 0; rotate: -.5deg; }
  35% { translate: calc(3 * var(--u)) calc(-1 * var(--u)); rotate: .6deg; }
  55% { translate: calc(-2 * var(--u)) 0; rotate: -.35deg; }
  75% { translate: calc(1.5 * var(--u)) 0; rotate: .2deg; }
}

/* ── the folders: four hanging files, quarter-cut tabs, one per capability ──
   Down: fully inside the drawer. Risen: the tabs stand above the drawer
   front. Each folder hangs from its rail and sways with the drawer's
   acceleration (--sway, degrees, from the physics). */
.hero--cabinet .hcab-files {
  position: absolute; inset: 0; margin: 0; padding: 0; list-style: none;
  transform-style: preserve-3d;
  /* The list is a 3D positioning plane that spans the whole drawer. Only its
     actual folder tabs are interactive; otherwise the invisible part of the
     plane sits over the physical handle. */
  pointer-events: none;
}
.hero--cabinet .hcab-folder {
  /* Sit the files in the drawer rather than displaying them on a separate
     rack above it. At full lift each tab and only a short shoulder of its
     folder clears the fascia. */
  --rise: calc(128 * var(--u));
  position: absolute; left: calc(20 * var(--u));
  /* Each complete file sits a fraction lower than the one in front. That
     exposes a narrow run of every file's top edge and keeps its tab visibly
     joined to its own body, instead of leaving four labels hovering over one
     unrelated sheet. */
  /* Seven units of clear space sit above the tab. Hover/focus can lift the
     tab into that space instead of being cut by this folder's clip-path. */
  top: calc((37 - var(--i) * 6) * var(--u));
  /* Only 50u of sheet hangs below the rail. Longer sheets can swing into the
     drawer front, or reach below the top of the box wall once lifted, and in
     both cases the browser's depth sort paints the folder through the steel.
     The rest of a real folder is out of sight below the front anyway. */
  /* Rear files need a longer body because the fascia's top edge recedes in
     perspective. Their progressively longer tails continue down behind that
     edge, where the moving drawer front—not an arbitrary short crop—hides
     them. The tab tops stay in the same aligned row. */
  width: calc(376 * var(--u));
  height: calc((132 + var(--i) * 12) * var(--u));
  transform-origin: 50% calc(74 * var(--u));
  /* The first file sits immediately behind the 18u-proud drawer fascia;
     each following file steps back into the box. Keeping the front file only
     12u behind the fascia makes the stack read as contents of this drawer,
     while retaining one stable plane per file avoids Chrome's 3D split bug. */
  transform: translateZ(calc(6 * var(--u) - var(--i) * 12 * var(--u)));
  backface-visibility: hidden;
  /* Clip the complete folder at the drawer rim. The tab and its sheet now
     emerge as one object; a half-raised file can no longer leave its tab
     floating above a separately clipped body. */
  clip-path: inset(0 0 var(--folder-clip, 16.13%) 0);
  /* --lift: 1 risen (the default: no JS, reduced motion), 0 down in the
     drawer. hero-cabinet.js drives it on a spring per folder. */
  translate: 0 calc(-1 * var(--rise) * var(--lift, 1));
}
.hero--cabinet .hcab-folder[data-color="red"] { --c: var(--red); --tint: #ffdcd7; }
.hero--cabinet .hcab-folder[data-color="blue"] { --c: var(--blue); --tint: #dfe6ff; }
.hero--cabinet .hcab-folder[data-color="green"] { --c: var(--green); --tint: #d9f0e3; }
.hero--cabinet .hcab-folder[data-color="yellow"] { --c: var(--yellow); --tint: #fff0b8; }
/* Down, a folder is out of sight inside the drawer, so it is not drawn at
   all: that keeps it out of the browser's depth sort while the drawer is
   moving, which is exactly when a mis-sort would paint it through the steel.
   It becomes visible the moment it starts to rise. */
[data-js] .hero--cabinet:not(.hcab-ready) .hcab-folder { --lift: 0; visibility: hidden; }
.hero--cabinet.hcab-ready .hcab-folder.is-down { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  [data-js] .hero--cabinet:not(.hcab-ready) .hcab-folder { --lift: 1; visibility: visible; }
}
.hero--cabinet .hcab-sheet {
  position: absolute; left: 0; top: calc(79 * var(--u));
  width: 100%; height: calc((60 + var(--i) * 12) * var(--u));
  display: block; box-sizing: border-box;
  background: var(--tint); border: var(--b) solid var(--ink);
  transition: translate var(--t-quick) var(--ease-drawer);
  pointer-events: none;
}
.hero--cabinet .hcab-tab {
  position: absolute; top: calc(7 * var(--u)); left: calc(2 * var(--u) + var(--i) * 94 * var(--u));
  width: calc(90 * var(--u)); height: calc(74 * var(--u) + var(--b));
  display: flex; flex-direction: column; justify-content: space-between; gap: calc(4 * var(--u));
  padding: calc(6 * var(--u)) calc(6 * var(--u)) calc(7 * var(--u));
  background: var(--c); color: var(--ink); text-decoration: none;
  border: var(--b) solid var(--ink); border-bottom: 0;
  border-radius: calc(11 * var(--u)) calc(11 * var(--u)) 0 0;
  transition: translate var(--t-quick) var(--ease-drawer);
  pointer-events: auto;
}
/* The coloured plastic tab holds a paper insert: the label reads ink on
   paper at every size, whatever the tab colour. */
.hero--cabinet .hcab-tab-label {
  display: block; padding: calc(4 * var(--u)) calc(3 * var(--u));
  background: var(--paper); border: max(1.5px, calc(2 * var(--u))) solid var(--ink);
  font-family: var(--display); font-weight: 800; font-size: max(11px, calc(12.5 * var(--u)));
  line-height: 1; letter-spacing: -.015em;
}
.hero--cabinet .hcab-tab-label > span { display: block; white-space: nowrap; }
.hero--cabinet .hcab-tab-icon { display: block; width: calc(22 * var(--u)); height: calc(22 * var(--u)); flex: none; }
/* The tab and coloured sheet are one physical file. Any interaction moves
   both together so the label cannot hover above a detached folder edge. */
.hero--cabinet .hcab-folder:has(.hcab-tab:hover) .hcab-tab,
.hero--cabinet .hcab-folder:has(.hcab-tab:hover) .hcab-sheet,
.hero--cabinet .hcab-folder:has(.hcab-tab:focus-visible) .hcab-tab,
.hero--cabinet .hcab-folder:has(.hcab-tab:focus-visible) .hcab-sheet { translate: 0 calc(-7 * var(--u)); }
.hero--cabinet .hcab-folder:has(.hcab-tab:active) .hcab-tab,
.hero--cabinet .hcab-folder:has(.hcab-tab:active) .hcab-sheet { translate: 0 calc(-2 * var(--u)); }
.hero--cabinet .hcab-tab:focus-visible { outline: max(3px, calc(4 * var(--u))) solid var(--ink); outline-offset: max(2px, calc(3 * var(--u))); }

/* ── the junk drawer's contents, once it gives: flat objects on the floor ── */
.hero--cabinet .hcab-junk { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; z-index: 2; }
.hero--cabinet .hcab-junk-item {
  position: absolute; left: var(--x, 0); top: var(--y, 0);
  width: calc(96 * var(--u)); rotate: var(--r, 0deg);
  filter: drop-shadow(calc(5 * var(--u)) calc(6 * var(--u)) 0 var(--shadow));
}
.hero--cabinet .hcab-junk-item svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero--cabinet .hcab-junk-item--ring { width: calc(84 * var(--u)); }
.hero--cabinet .hcab-junk-item--cork { width: calc(76 * var(--u)); }
/* A manila tag on a string. */
.hero--cabinet .hcab-tag {
  position: absolute; left: 6%; top: 94%; rotate: calc(var(--r, 0deg) * -1 + 3deg);
  padding: calc(4 * var(--u)) calc(9 * var(--u)) calc(4 * var(--u)) calc(16 * var(--u));
  background: var(--manila); border: max(1.5px, calc(2 * var(--u))) solid var(--ink);
  clip-path: polygon(calc(9 * var(--u)) 0, 100% 0, 100% 100%, calc(9 * var(--u)) 100%, 0 50%);
  font-family: var(--hand); font-size: max(12px, calc(17 * var(--u))); line-height: 1.05; color: var(--ink);
  white-space: nowrap;
}
.hero--cabinet .hcab-tag::before {
  content: ""; position: absolute; left: calc(7 * var(--u)); top: 50%;
  width: calc(5 * var(--u)); height: calc(5 * var(--u)); translate: 0 -50%;
  border-radius: 50%; background: var(--blue); border: max(1px, calc(1.5 * var(--u))) solid var(--ink);
}

/* ── narrower screens: the cabinet sits below the copy ── */
@media (max-width: 980px) {
  .hero--cabinet .hcab-stage { height: clamp(460px, 78vw, 700px); border-left: 0; border-top: var(--border); }
  .hero--cabinet .hcab-stage { --u: min(calc(100cqw / 560), calc(100cqh / 640)); }
  .hero--cabinet .hcab-cab { left: calc(58% - 220 * var(--u)); top: calc(52% - 170 * var(--u)); }
}
@media (max-width: 720px) {
  /* A phone crops the cabinet's side, never its drawer: the open drawer and
     its tabs are the part that matters, so they get the width. The camera
     pulls back (longer perspective) so the drawer grows less as it opens,
     and the stage keeps a strip of floor for anything that falls out. */
  .hero--cabinet .hcab-stage { height: 660px; --u: min(calc(100cqw / 500), calc(100cqh / 760)); }
  .hero--cabinet .hcab-cab { left: calc(58% - 220 * var(--u)); top: calc(38% - 170 * var(--u)); transform: rotateX(-14deg) rotateY(-18deg); }
  .hero--cabinet .hcab-scene { perspective: calc(2800 * var(--u)); perspective-origin: 50% 30%; }
  .hero--cabinet .hcab-tab { padding: calc(5 * var(--u)) calc(4 * var(--u)) calc(6 * var(--u)); }
  .hero--cabinet .hcab-tab-label { padding: calc(4 * var(--u)) calc(3 * var(--u)); letter-spacing: -.025em; }
}

/* source: assets/css/features/journey.css */
/* journey — one monitor, several screens, annotated off the edge of the glass.
   Markup: templates.mjs renderJourney. Behaviour: js/features/journey.js.

   TWO LAYOUTS, one markup. Both are flat: the screen sits square on the page and does not move.
   • Base (no JavaScript, or a stage narrower than 760px): the monitor, then the notes as a numbered
     list. Numbered pins sit on the screen so a number means a place.
   • .is-wide (set by the script once the stage is wide enough): the notes sit in the gutters on either
     side of the screen, each with a doodled arrow to its place on the glass (no dots).

   MOTION. A stage may hold a recording of its own screen (.jr-clip) laid over the still. While it plays
   the pins and lit areas are hidden; the arrows stay, and the recording's last frame stays at the end.
   Hovering or clicking a note lights the place it points at.

   LOOKS. data-look on .evidence-journey: blue (default), marker, chalk. A look only sets the custom
   properties below, so choosing one is a one-word change in site.json (presentation.journeyLook).
   DEFER: the two looks that are not chosen can be deleted once Nick picks; they are here so he can
   compare them on the real page (review build: add ?look=marker or ?look=chalk to the address). */

.evidence-journey {
  --jr-ink: #1f35b8;            /* note text */
  --jr-line: #3a56e8;           /* pin, lit outline */
  --jr-pin: #3a56e8;
  --jr-note-bg: transparent;
  --jr-note-pad: 0;
  --jr-stage-bg: transparent;
  --jr-glow: rgba(58, 86, 232, .18);
  --jr-halo: rgba(255, 255, 255, .94);   /* the edge of a line and a pin, so they read over the pink, the white screen and the dark bezel alike */
}
.evidence-journey[data-look="marker"] {
  --jr-ink: #151918; --jr-line: #151918; --jr-pin: #f2c230;
  --jr-note-bg: linear-gradient(transparent 14%, #ffe066 14%, #ffe066 90%, transparent 90%);
  --jr-note-pad: 0 .35em; --jr-glow: rgba(242, 194, 48, .3);
}
.evidence-journey[data-look="chalk"] {
  --jr-ink: #ffe27a; --jr-line: #ffe27a; --jr-pin: #ffe27a;
  --jr-stage-bg: radial-gradient(120% 90% at 50% 38%, #2c3532 0%, #171c1b 70%);
  --jr-glow: rgba(255, 226, 122, .25);
  --jr-halo: rgba(21, 25, 24, .9);
}

/* ── tabs: the site's square tab idiom ──────────────────────────────── */
.jr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.jr-tabs { display: flex; gap: 3px; flex-wrap: wrap; }
.jr-tab {
  font: inherit; font-weight: 700; font-size: .93rem; line-height: 1.15; padding: 10px 22px;
  border: 2px solid var(--ink); border-radius: 0; background: var(--folder-fill, transparent); color: inherit;
  cursor: pointer; transition: background-color 150ms ease;
}
.jr-tab:hover { background: rgba(255, 255, 255, .62); }
.jr-tab[aria-selected="true"] { background: var(--jr-tab, var(--red)); color: var(--ink); }   /* the drawer's own colour: red on a red drawer, green on a green one */
.jr-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.jr-replay {
  font: inherit; font-weight: 700; font-size: .88rem; line-height: 1.15; padding: 8px 4px; border: 0; background: none; color: inherit;
  text-decoration: underline; text-underline-offset: .22em; cursor: pointer;
}
.jr-replay[hidden] { display: none; }
.jr-replay:hover { text-decoration-thickness: 2px; }
.jr-replay:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── the stage ──────────────────────────────────────────────────────── */
.evidence-journey .ev-group { display: block; }
.jr-stage { margin: 0 0 24px; }
.jr-stage[hidden] { display: none; }
.evidence-journey:not(.jr-js) .jr-bar { display: none; }
.evidence-journey:not(.jr-js) .jr-stage[hidden] { display: block; }
.jr-canvas { position: relative; container-type: inline-size; border-radius: 14px; background: var(--jr-stage-bg); }

/* the monitor: the site's own desktop frame, in its dark finish (see .evidence-desktop-phone). It stands
   on the page: a thin contact line under the foot, no drop shadow, so it does not read as floating. */
.jr-monitor { position: relative; margin: 0 0 38px; }
.evidence-journey .desktop-monitor-shell {
  padding: clamp(6px, 1.2cqw, 12px) clamp(6px, 1.2cqw, 12px) clamp(14px, 2.6cqw, 26px);
  border: 1.5px solid #101313; border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #303636 0%, #151918 100%);
  box-shadow: none;
}
.evidence-journey .desktop-monitor-screen {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 5px 5px 3px 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .32);
}
.evidence-journey .desktop-monitor-screen img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.evidence-journey .desktop-monitor-stand {
  top: 100%; width: 23%; height: 31px; border: 0;
  background: linear-gradient(90deg, #747c7b, #d6d9d8 50%, #68706f);
  clip-path: polygon(34% 0, 66% 0, 80% 100%, 20% 100%);
}
.evidence-journey .desktop-monitor-stand::after {
  bottom: -6px; width: 145%; height: 7px; border: 1.5px solid #101313; border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, #e4e6e5, #858d8b); box-shadow: none;
}
.evidence-journey[data-look="chalk"] .desktop-monitor-shell {
  border-color: #c9d0ce; background: linear-gradient(180deg, #fbfcfb 0%, #d9dedc 100%);
}
.evidence-journey[data-look="chalk"] .desktop-monitor-screen { border-color: rgba(21, 25, 24, .55); box-shadow: none; }

/* the recording of this screen, over the still (the loupe link, z-index 2, stays above it) */
.evidence-journey .jr-clip {
  position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; aspect-ratio: auto;
  object-fit: cover; object-position: center top; background: #fff;
  opacity: 0; pointer-events: none; transition: opacity 240ms ease;
}
.evidence-journey .jr-clip.is-on { opacity: 1; }

/* Flat: no monitor. For a capture that is itself a whole page, often a tall one: it sits square on the folder in a plain
   inked frame, and the notes run down the gutters beside it as usual. The canvas takes the capture's own height. */
.jr-flat .jr-monitor { margin: 0 0 22px; }
.jr-flat .desktop-monitor-shell { padding: 0; border: 2px solid var(--ink); border-radius: 8px; background: #fff; overflow: hidden; }
.jr-flat .desktop-monitor-screen { border: 0; border-radius: 0; box-shadow: none; }
.evidence-journey .jr-flat .desktop-monitor-screen img { aspect-ratio: auto; object-fit: fill; height: auto; }
.jr-flat .desktop-monitor-stand { display: none; }

/* ── places on the glass: lit area and pin ──────────────────────────── */
.jr-hit {
  position: absolute; z-index: 3; box-sizing: border-box; opacity: 0; pointer-events: none;
  border: 2px solid var(--jr-line); border-radius: 4px;
  background: color-mix(in srgb, var(--jr-line) 12%, transparent);
  box-shadow: 0 0 0 4px var(--jr-glow); transition: opacity 140ms ease;
}
.jr-pin {
  position: absolute; z-index: 5; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--jr-pin); box-shadow: 0 0 0 3px var(--jr-halo), 0 1px 5px rgba(0, 0, 0, .4);
  pointer-events: none; display: grid; place-items: center; transition: opacity 320ms ease, scale 140ms ease;
}
.jr-pin b { display: none; font: 800 .58rem/1 var(--display, inherit); color: #fff; }
.jr-hit.is-lit { opacity: 1; }
.jr-pin.is-lit { scale: 1.5; }
.jr-stage.is-playing .jr-hit { opacity: 0 !important; }
.jr-stage.is-playing .jr-pin { opacity: 0; }

/* ── the notes ──────────────────────────────────────────────────────── */
.jr-notes { list-style: none; margin: 0; padding: 0; }
.jr-note {
  font-family: var(--hand, "Personality", "Bradley Hand", cursive); font-size: 1.55rem; line-height: 1.12; color: var(--jr-ink);
  text-wrap: balance; cursor: default;
}
.jr-note .jr-num { display: none; }

/* Base layout: a numbered list under the monitor. */
.jr-notes { display: grid; gap: 8px 22px; padding: 4px 4px 14px; counter-reset: n; }
@container (min-width: 380px) { .jr-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jr-note { display: flex; gap: 10px; align-items: baseline; }
.jr-note .jr-num { display: inline-grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--jr-pin); color: #fff; font: 800 .8rem/1 var(--display, inherit); translate: 0 -.12rem; }
.evidence-journey[data-look="chalk"] .jr-num { color: #151918; }
.jr-pin b { display: block; }
.jr-pin { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 2px var(--jr-halo), 0 1px 4px rgba(0, 0, 0, .4); }
.evidence-journey[data-look="marker"] .jr-pin b { color: #151918; }
.evidence-journey[data-look="chalk"] .jr-pin b { color: #151918; }
.jr-note.is-lit { text-decoration: underline wavy var(--jr-line) 1px; text-underline-offset: .18em; }

/* Wide layout: set by journey.js when the stage is at least 760px wide. */
.jr-stage.is-wide .jr-canvas { aspect-ratio: 1000 / 572; }
.jr-stage.is-wide .jr-monitor { position: absolute; left: 14cqw; width: 72cqw; top: 2.4cqw; margin: 0; }   /* the screen is the evidence, so it gets the width; the gutters hold at most three short notes a side */
.jr-stage.is-wide .jr-pin { display: none; }   /* the arrows do the pointing here; pins number the screen only in the list layout */
.jr-flat.is-wide .jr-canvas { aspect-ratio: auto; }
.jr-flat.is-wide .jr-monitor { position: relative; left: auto; top: auto; width: auto; margin: 0 14cqw; }
.jr-stage.is-wide .jr-notes { display: block; padding: 0; position: static; }
.jr-stage.is-wide .jr-note {
  position: absolute; display: block; font-size: clamp(1.05rem, 1.95cqw, 1.6rem); margin: 0;
  padding: var(--jr-note-pad); background: var(--jr-note-bg); box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transform: rotate(var(--rot, 0deg));
  transition: transform 200ms var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1));
}
.jr-stage.is-wide .jr-note .jr-num { display: none; }
.jr-stage.is-wide .jr-note.is-lit { transform: rotate(var(--rot, 0deg)) scale(1.04); text-decoration: none; }
/* Doodled arrows: one svg over the canvas, drawn by journey.js. Ink matches the note; the pale edge keeps it legible over
   the pink, the white screen and the dark bezel alike. They stay while a recording plays. */
.jr-arrows { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; overflow: visible; pointer-events: none; }
.jr-arrow path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.jr-arrow .jr-ink { stroke: var(--jr-ink); stroke-width: 2.2; }
.jr-arrow .jr-halo { stroke: var(--jr-halo); stroke-width: 4.4; opacity: .75; }
.jr-arrow.is-lit .jr-ink { stroke-width: 3.2; }
.jr-arrow.is-lit .jr-halo { stroke-width: 5.6; }
.jr-arrow .jr-ink, .jr-arrow .jr-halo { transition: stroke-width 140ms ease; }

@media (prefers-reduced-motion: no-preference) {
  .jr-stage:not([hidden]) .jr-note { animation: jr-in 420ms var(--ease-drawer, ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes jr-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .jr-stage.is-wide .jr-note, .jr-arrow path, .jr-hit, .jr-pin, .jr-clip { transition: none; }
}

/* ── bare stage: the whole page capture, no monitor, the tools named down its left side ─────────────────
   One layout at every width: tools left, capture right; under 560px the tools become a three-up row above it. */
.jr-bare-grid { display: grid; grid-template-columns: minmax(150px, 19%) minmax(0, 1fr); gap: clamp(14px, 3cqw, 30px); align-items: start; }
.jr-board { position: relative; border: 2px solid var(--ink); border-radius: 8px; background: #fff; overflow: hidden; }
.jr-board img { display: block; width: 100%; height: auto; }
.jr-tools { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: clamp(12px, 2.4cqw, 22px); }
.jr-tool { display: flex; align-items: center; gap: 14px; font-family: var(--hand, "Personality", "Bradley Hand", cursive); font-size: clamp(1.15rem, 2.1cqw, 1.6rem); line-height: 1.1; color: var(--jr-ink); }
.jr-tool img { flex: none; width: 46px; height: 46px; padding: 7px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.jr-caption { margin: 14px 2px 4px; font-family: var(--hand, "Personality", "Bradley Hand", cursive); font-size: 1.4rem; line-height: 1.15; color: var(--jr-ink); text-wrap: balance; }
/* Tools beside the working asset: the capture's asset sits low in the board (the storyboard strip is above it), so the
   tools stand level with it, where they are used, not floating at the top. --tools-top / --tools-h are the asset's
   position in the capture as fractions of its height (assetBox in site.json); the board is the grid's only in-flow
   item, so they resolve against its height. */
/* Fit one screen: the board is never taller than the window less the header, tabs and caption, so the whole screen reads
   at once. ~0.78 is the board's share of the grid width (the tools take the rest); the floor keeps it legible on a short window. */
.jr-tools-beside .jr-bare-grid { position: relative; max-width: max(560px, calc((100svh - 215px) * var(--board-ratio, 1.2) / .78)); }
.jr-tools-beside .jr-board { grid-column: 2; }
.jr-tools-beside .jr-tools { position: absolute; left: 0; top: var(--tools-top); height: var(--tools-h); width: 19%; min-width: 150px; padding: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 0; }
.jr-tools-beside .jr-tool img { width: clamp(32px, 4.4cqw, 46px); height: clamp(32px, 4.4cqw, 46px); padding: clamp(5px, .8cqw, 7px); transition: background-color 180ms ease, transform 180ms ease; }
.jr-tools-beside .jr-tool.is-on img { background: #c4ff57; transform: scale(1.08); }   /* Creative Studio's own highlight, as on its tool icons */
.jr-tools-beside .jr-tool span { transition: transform 180ms ease; }
.jr-tools-beside .jr-tool.is-on span { transform: translateX(3px); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* The hand note beside the capture: sits in the empty corner above the tools, its arrow reaching into the board. */
.jr-callout { position: absolute; left: 0; top: var(--co-top, 15%); width: 100%; max-width: 19%; min-width: 150px; translate: 0 -50%; z-index: 3; }
.jr-callout p { margin: 0; font-family: var(--hand, "Personality", "Bradley Hand", cursive); font-size: clamp(1.1rem, 2cqw, 1.5rem); line-height: 1.12; color: var(--jr-ink); text-wrap: balance; }
.jr-callout-arrow { position: absolute; left: 100%; top: 50%; width: 62px; height: 26px; margin: -13px 0 0 2px; overflow: visible; }
.jr-callout-arrow path { fill: none; stroke: var(--jr-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@container (max-width: 560px) {
  .jr-bare-grid { grid-template-columns: 1fr; }
  .jr-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .jr-tool { flex-direction: column; align-items: flex-start; gap: 6px; }
  .jr-tools-beside .jr-tools { position: static; height: auto; width: auto; min-width: 0; display: grid; gap: 16px 10px; margin-bottom: 14px; }
  .jr-tools-beside .jr-board { grid-column: 1; }
  .jr-callout { position: static; translate: none; max-width: none; margin: 0 0 12px; }
  .jr-callout-arrow { display: none; }
  .jr-tools-beside .jr-bare-grid { max-width: none; }
}

/* ── playing stage: a phone-width recording in a window, its notes beside it ────────────────────────────────────
   Desktop: the window (its own pixels, 1:1, so the text is readable) with the notes listed beside it, the one the
   recording is on lit in Creative Studio's lime. Phone: the window full width and only the current note under it, with
   dots. With no script, reduced motion or a failed video the whole list stays. */
.jr-play-grid { display: grid; grid-template-columns: minmax(260px, 390px) minmax(0, 1fr); gap: clamp(22px, 4cqw, 44px); align-items: center; }
.jr-play-win { aspect-ratio: var(--board-ratio, .7); }
.jr-play-win img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.jr-play-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.8cqw, 18px); counter-reset: none; }
.jr-play-item { display: flex; gap: 12px; align-items: flex-start; font-family: var(--hand, "Personality", "Bradley Hand", cursive); font-size: clamp(1.15rem, 2.1cqw, 1.5rem); line-height: 1.1; color: var(--jr-ink); transition: opacity 180ms ease; }
.jr-play-item b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -2px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: 800 .82rem/1 var(--mono, ui-monospace, monospace); color: var(--ink); transition: background-color 180ms ease, transform 180ms ease; }
.jr-js .jr-play-stage.is-playing .jr-play-item:not(.is-on) { opacity: .5; }
.jr-play-item.is-on b { background: #c4ff57; transform: scale(1.08); }
.jr-play-item.is-on span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* the phone caption and dots: off until the script is running */
.jr-now, .jr-dots { display: none; }
.jr-now { align-items: center; gap: 12px; font-family: var(--hand, "Personality", "Bradley Hand", cursive); font-size: 1.45rem; line-height: 1.1; color: var(--jr-ink); }
.jr-now b, .jr-now img { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 10px; background: #c4ff57; font: 800 .9rem/1 var(--mono, ui-monospace, monospace); color: var(--ink); }
.jr-now img { padding: 7px; box-sizing: border-box; }
.jr-now small { margin-left: auto; flex: none; font: 700 .8rem/1 var(--mono, ui-monospace, monospace); letter-spacing: .06em; color: var(--ink); }
.jr-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(21, 25, 24, .22); transition: background-color 150ms ease; }
.jr-dots i.is-on { background: var(--ink); }
/* The Brief's caption holds its place: the longest note runs to six lines on a 360px phone, so the dots and everything under them never move as the note changes. */
.jr-play-stage .jr-now { align-items: flex-start; min-height: 9.7rem; }
.jr-play-stage .jr-now small { margin-top: 12px; }
@container (max-width: 620px) {
  .jr-play-grid { grid-template-columns: 1fr; gap: 14px; }
  .jr-js .jr-play-stage.is-playing .jr-play-list { display: none; }
  .jr-js .jr-play-stage.is-playing .jr-now,
  .jr-js .jr-bare-stage[data-loop].is-playing .jr-now { display: flex; }
  .jr-js .jr-play-stage.is-playing .jr-dots,
  .jr-js .jr-bare-stage[data-loop].is-playing .jr-dots { display: flex; gap: 6px; }
  .jr-play-item:not(.is-on) { opacity: 1; }
  /* Mark up on a phone: the icon grid gives way to the one-line caption while it plays */
  .jr-js .jr-bare-stage[data-loop].is-playing .jr-tools { display: none; }
}
/* the tabs: one even row, whatever the count, so none is left alone on a second line */
@media (max-width: 720px) {
  .jr-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; width: 100%; }
  .jr-tab { padding: 12px 2px; text-align: center; font-size: .86rem; }
  .jr-bar { display: block; }
}

/* source: assets/css/features/live-evidence.css */
/* ═══════════════════════════════════════════════════════════════════════
   LIVE EVIDENCE
   A live piece is one frame inside a project's evidence: an ink box, a hard
   shadow, and a machine-voice strip that carries its label and its one
   control. The strip is the only chrome, so a running tool, a race and a
   routing slip all read as the same kind of object.

   Every piece ships with a still (see build/live-evidence.mjs), so each rule
   below styles something that is readable before any script runs. Motion
   lives only inside prefers-reduced-motion: no-preference.
   ═══════════════════════════════════════════════════════════════════════ */

.ev-live {
  margin: 0; min-width: 0; position: relative;
  border: 3px solid var(--ink); background: #fff;
  box-shadow: 14px 16px 0 rgba(38, 51, 59, .18);
}
/* The strip. Beats the shared .ev-frame figcaption, which pins a caption
   tab to a frame's corner. */
.ev-frame.ev-live > figcaption.ev-live-label {
  position: static; inset: auto; translate: none;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 14px; min-height: 36px; padding: 5px 8px 5px 12px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .66rem; font-weight: 700;
  letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; white-space: normal;
}
.ev-live-label > span { min-width: 0; }
/* A running tool is on air: a steady red pip, never a blink. */
.ev-live.is-ready .ev-live-label > span::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px;
  vertical-align: 0; background: var(--stamp-red);
}
.ev-live-stage { position: relative; min-width: 0; }
.evidence-set > .ev-group-live { margin-top: clamp(8px, 1.2vw, 14px); }

/* The still, when the still is a capture. */
.ev-live-stills { display: grid; gap: clamp(10px, 1.4vw, 16px); padding: clamp(10px, 1.4vw, 16px); }
.ev-live-still { margin: 0; position: relative; }
.ev-live-still img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); background: #fff; }
.ev-live-still figcaption {
  position: absolute; left: 0; bottom: 0; padding: 5px 10px 4px;
  background: var(--ink); color: var(--paper);
  font-size: .68rem; font-weight: 700; letter-spacing: .055em; line-height: 1.1;
}

/* Strip controls: the switch and Replay share one small, squared grammar. */
.lv-switch, .lv-replay {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 30px; margin: 0; padding: 3px 8px; border: 0; border-radius: 0;
  background: transparent; color: var(--paper); cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.lv-switch:hover .lv-switch-text,
.lv-replay:hover { text-decoration: underline; text-underline-offset: 3px; }
.lv-switch:focus-visible, .lv-replay:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.lv-switch-track {
  position: relative; flex: 0 0 auto; width: 34px; height: 18px;
  border: 2px solid var(--paper); background: transparent;
}
.lv-switch-knob { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; background: var(--paper); }
.lv-switch[aria-checked="true"] .lv-switch-track { background: var(--stamp-red); border-color: var(--paper); }
.lv-switch[aria-checked="true"] .lv-switch-knob { transform: translateX(16px); }
.lv-replay[hidden] { display: none; }
.lv-icon { flex: 0 0 auto; display: block; }
.lv-replay { gap: 6px; }
@media (pointer: coarse) { .lv-switch, .lv-replay { min-height: 44px; } }

/* ── feature-readout: the readout running in a frame ─────────────────── */
/* Without scripts both captures show, one above the other. With them the
   iframe is drawn at its design width and scaled to the frame; the still holds
   the space until the readout reports its height. */
.ev-live-feature-readout .ev-live-stills { grid-template-columns: minmax(0, 1fr); }
.lv-readout { position: relative; overflow: hidden; background: #f3f5f7; }
.lv-readout-still { display: block; width: 100%; height: auto; }
.lv-readout-frame { position: absolute; top: 0; left: 0; display: block; border: 0; transform-origin: 0 0; opacity: 0; }
.lv-readout.is-ready .lv-readout-still { display: none; }
.lv-readout.is-ready .lv-readout-frame { opacity: 1; }

/* ── sheet-helper: the real tool in a window ─────────────────────────── */
.lv-sheet-frame {
  display: block; width: 100%; height: clamp(440px, 38vw, 540px);
  border: 0; background: #f5f7f8;
}
/* With scripts on, the still waits in the tool's own box, so swapping it
   for the tool moves nothing. Without scripts it is shown in full. */
html[data-js] .ev-live-sheet-helper .ev-live-stage { height: clamp(440px, 38vw, 540px); overflow: auto; }
.ev-live-sheet-helper.is-refusing { box-shadow: 14px 16px 0 rgba(216, 65, 47, .28); }

/* ── load-race: the two measurements, drawn at real speed ────────────── */
.lv-race { padding: 12px 14px 12px; font-family: var(--mono); color: var(--ink); }
.lv-race-clock {
  margin: 0 0 12px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.lv-race-clock span { display: inline-block; min-width: 3.1ch; text-align: right; }
.lv-race-runs { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.lv-run {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  gap: 5px 10px; font-size: .7rem; line-height: 1.2;
}
.lv-run-name { font-weight: 700; }
.lv-run-value { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-run.is-done .lv-run-value { color: var(--ink); font-weight: 700; }
.lv-run-track { grid-column: 1 / -1; position: relative; height: 16px; border: 2px solid var(--ink); background: #fff; }
.lv-run-fill, .lv-run-band { position: absolute; top: 0; bottom: 0; }
.lv-run-fill { left: 0; width: var(--min); background: var(--steel-dark); }
/* The band is the spread between the fastest and slowest test. */
.lv-run-band {
  left: var(--min); width: calc(var(--max) - var(--min));
  background: repeating-linear-gradient(-45deg, var(--steel-dark) 0 2px, transparent 2px 5px);
}
.lv-run:last-child .lv-run-fill { background: var(--green); }
.lv-run:last-child .lv-run-band { background: repeating-linear-gradient(-45deg, var(--green) 0 2px, transparent 2px 5px); }
.lv-race-axis { position: relative; height: 16px; margin: 6px 0 0; font-size: .6rem; color: var(--muted); }
.lv-race-axis span { position: absolute; left: var(--at); top: 0; translate: -50% 0; }
.lv-race-axis span:first-child { translate: 0 0; }
.lv-race-axis span:last-child { translate: -100% 0; }

/* In the website's two-window composition the race is a timing slip laid on
   the free corner under the page hero, beside the second window. */
@media (min-width: 981px) {
  .evidence-browser-sections { min-height: clamp(470px, 44vw, 600px); }
  .evidence-browser-sections .ev-live-load-race {
    position: absolute; left: 0; bottom: 0; z-index: 3;
    width: 34%; rotate: -1.4deg;
    box-shadow: 10px 12px 0 rgba(38, 51, 59, .2);
  }
  .evidence-browser-sections .ev-live-load-race .ev-live-label { font-size: .58rem; }
  .evidence-browser-sections .lv-race { padding: 10px 11px 10px; }
  .evidence-browser-sections .lv-run { font-size: .64rem; }
  .evidence-browser-sections .ev-browser-motion { width: 64%; }
}

/* ── route-slip: an article's route through the chain ────────────────── */
.ev-live-route-slip { background: #fff; }
.lv-slip { position: relative; padding: 8px 14px 14px 46px; }
.lv-slip-route { list-style: none; margin: 0; padding: 0; }
.lv-stage {
  display: grid; grid-template-columns: 2.1em minmax(0, 1fr) 20px; align-items: center; gap: 10px;
  padding: 6px 6px 6px 4px; border-bottom: 1px solid rgba(21, 25, 24, .16);
  font-size: clamp(.84rem, 1.05vw, .95rem); font-weight: 700; line-height: 1.15;
}
.lv-stage-n { font-family: var(--mono); font-size: .66rem; font-weight: 700; color: var(--muted); }
.lv-tick { position: relative; width: 18px; height: 18px; border: 2px solid var(--ink); background: #fff; }
.lv-stage.is-done .lv-tick::after {
  content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); rotate: 40deg;
}
.lv-stage.is-here, .lv-gate.is-here { background: var(--manila); }
.lv-stage.is-returned { background: rgba(216, 65, 47, .14); box-shadow: inset 3px 0 0 var(--stamp-red); }

.lv-gate {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin: 7px 0; padding: 8px 8px 8px 10px; border: 2px dashed var(--ink);
  font-family: var(--mono); font-size: .64rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.lv-gate-name { flex: 1 1 12em; }
.lv-verdict {
  min-width: 3ch; padding: 2px 6px 1px; border: 2px solid currentColor;
  color: var(--green); rotate: -3deg; font-size: .7rem; letter-spacing: .06em;
}
.lv-verdict:empty { visibility: hidden; }
.lv-gate.is-rejected .lv-verdict { color: var(--stamp-red); }
.lv-gate-note { flex-basis: 100%; color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .7rem; }

.lv-human {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 14px 6px 4px 4px; border-top: 3px double var(--ink);
  font-weight: 800; font-size: clamp(.92rem, 1.15vw, 1.02rem);
}
.lv-stamp {
  display: grid; justify-items: center; padding: 5px 10px 4px;
  border: 3px solid var(--stamp-red); outline: 1px solid var(--stamp-red); outline-offset: 2px;
  color: var(--stamp-red); rotate: -7deg;
  font-family: var(--mono); font-size: .72rem; font-weight: 700; line-height: 1.1;
  letter-spacing: .09em; text-transform: uppercase;
}

/* The lane is a belt; the article is a sheet of paper riding it. */
.lv-belt {
  position: absolute; left: 10px; top: 8px; bottom: 14px; width: 28px;
  border-inline: 2px solid var(--ink);
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(21, 25, 24, .22) 9px 11px) 0 0 / 100% 11px;
}
.lv-article {
  position: absolute; left: 13px; top: 0; z-index: 2;
  display: grid; align-content: start; gap: 3px;
  width: 22px; height: 28px; padding: 5px 4px;
  border: 2px solid var(--ink); background: #fff; box-shadow: 3px 3px 0 rgba(38, 51, 59, .28);
}
.lv-article i { display: block; height: 2px; background: var(--ink); }
.lv-article i:first-child { width: 70%; }

/* In the hero-inset composition the slip is the lead. A supporting inset
   hangs under it rather than over its last row, which is the stamp. */
.evidence-hero-inset:has(.ev-live) { padding-bottom: 0; }
.evidence-hero-inset:has(.ev-live) .ev-inset {
  position: relative; right: auto; bottom: auto; width: 48%;
  margin: clamp(22px, 3vw, 34px) 0 0 auto; rotate: 1deg;
}

/* ── content-line: business inputs, two production lanes, one human gate ── */
.ev-live-content-line { background: #fff; }
.ev-live-content-line .ev-live-stage { container-type: inline-size; }
.lv-content-line { display: grid; grid-template-columns: .78fr 26px 1.55fr 26px .9fr; align-items: center; gap: 0; padding: clamp(12px, 1.6vw, 18px); background: var(--paper); }
.lv-content-line ul, .lv-content-line ol { margin: 0; padding: 0; list-style: none; }
.lv-content-inputs, .lv-content-package, .lv-content-lane { border: 2px solid var(--ink); background: #fff; }
.lv-content-inputs > p, .lv-content-lane > p { margin: 0; padding: 7px 9px 6px; border-bottom: var(--hairline); font-family: var(--mono); font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.lv-content-inputs > p { background: var(--green); color: #fff; }
.lv-content-inputs ul { padding: 7px; display: grid; gap: 6px; }
.lv-content-inputs li { min-height: 38px; display: flex; align-items: center; padding: 6px 8px; border: var(--hairline); background: var(--paper); font-size: .68rem; font-weight: 700; line-height: 1.12; }
.lv-content-arrow { position: relative; height: 24px; }
.lv-content-arrow::before { content: ""; position: absolute; left: 4px; right: 7px; top: 11px; border-top: 2px solid var(--ink); }
.lv-content-arrow::after { content: ""; position: absolute; right: 2px; top: 6px; border-block: 6px solid transparent; border-left: 8px solid var(--ink); }
.lv-content-lanes { display: grid; gap: 13px; }
.lv-content-lane ol { display: grid; grid-template-columns: repeat(3, 1fr); }
.lv-content-lane li { min-height: 62px; display: grid; align-content: center; gap: 4px; padding: 8px; border-left: var(--hairline); }
.lv-content-lane li:first-child { border-left: 0; }
.lv-content-lane li span { font: 700 .52rem var(--mono); color: var(--muted); }
.lv-content-lane li b { font-size: .68rem; line-height: 1.12; }
.lv-content-lane.is-writing > p { background: var(--ink); color: var(--paper); }
.lv-content-lane.is-images > p { background: var(--paper-deep); }
.lv-image-brief { justify-self: center; margin: -7px 0; padding: 4px 8px; z-index: 2; background: var(--green); color: #fff; font: 700 .52rem var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.lv-content-package { padding: 12px; border-width: 3px; box-shadow: 8px 9px 0 rgba(38,51,59,.16); }
.lv-content-package > div { margin-top: 10px; border: var(--rule); }
.lv-content-package > div b { display: block; padding: 8px; font-size: .72rem; }
.lv-content-package > div b + b { border-top: var(--hairline); }
.lv-content-package > p { margin: 12px 0 6px; font: 700 .58rem var(--mono); text-transform: uppercase; }
.lv-content-package ul { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--rule); }
.lv-content-package li { padding: 7px 3px; border-left: var(--hairline); font-size: .62rem; font-weight: 700; text-align: center; }
.lv-content-package li:first-child { border-left: 0; }
.lv-content-package li.is-primary { background: var(--green); color: #fff; }
.lv-content-package small { display: block; margin-top: 9px; color: var(--muted); font-size: .58rem; }

@container (max-width: 560px) {
  .lv-content-line { grid-template-columns: 1fr; }
  .lv-content-arrow { width: 24px; height: 34px; justify-self: center; }
  .lv-content-arrow::before { left: 11px; right: auto; top: 2px; bottom: 9px; border-top: 0; border-left: 2px solid var(--ink); }
  .lv-content-arrow::after { right: auto; left: 6px; top: auto; bottom: 1px; border-inline: 6px solid transparent; border-block: 0; border-top: 8px solid var(--ink); }
  .lv-content-inputs ul { grid-template-columns: repeat(2, 1fr); }
  .lv-content-lane ol { grid-template-columns: 1fr; }
  .lv-content-lane li { min-height: 48px; border-left: 0; border-top: var(--hairline); }
  .lv-content-lane li:first-child { border-top: 0; }
  .lv-content-inputs li, .lv-content-lane li b, .lv-content-package > div b { font-size: .78rem; }
  .lv-content-package li { font-size: .7rem; }
}

/* ── wipe: one screen, two real captures, a seam you can move ────────── */
.ev-live-wipe .ev-live-stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev-live-wipe { background: #fff; }
.lv-wipe { --pos: 50%; padding: clamp(10px, 1.4vw, 16px); }
.lv-wipe-screen {
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  border: 2px solid var(--ink); background: #fff;
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.lv-wipe-after, .lv-wipe-before { position: absolute; inset: 0; }
.lv-wipe-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.lv-wipe-screen img, .lv-wipe-screen picture {
  display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top center;
  border: 0; pointer-events: none;
}
.lv-wipe-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2;
  width: 44px; margin-left: -22px; cursor: ew-resize; outline: none;
}
.lv-wipe-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px;
  background: var(--ink); box-shadow: 0 0 0 1px #fff;
}
.lv-wipe-grip {
  position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; translate: -50% -50%;
  border: 3px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 rgba(38, 51, 59, .3);
}
/* Two arrowheads, drawn, pointing away from the seam. */
.lv-wipe-grip::before, .lv-wipe-grip::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px;
  border-block: 5px solid transparent;
}
.lv-wipe-grip::before { left: 5px; border-right: 7px solid var(--ink); }
.lv-wipe-grip::after { right: 5px; border-left: 7px solid var(--ink); }
.lv-wipe-handle:focus-visible .lv-wipe-grip { outline: 3px solid var(--ink); outline-offset: 3px; background: var(--red); }
.lv-wipe.is-dragging .lv-wipe-grip { background: var(--red); }
.lv-wipe-tag[hidden] { display: none; }
.lv-wipe-tag {
  position: absolute; top: 10px; z-index: 1; padding: 4px 8px 3px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  pointer-events: none;
}
.lv-wipe-tag.is-before { left: 10px; }
.lv-wipe-tag.is-after { right: 10px; }
.lv-wipe.shows-after .lv-wipe-tag.is-before,
.lv-wipe.shows-before .lv-wipe-tag.is-after { opacity: .35; }

/* Inside a monitor the screen is the monitor's glass. */

.lv-wipe-monitor .desktop-monitor-screen { border: 1px solid rgba(21, 25, 24, .7); }
.lv-wipe-monitor .lv-wipe-screen { border: 0; }
.ev-live-frame-monitor.is-live { background: transparent; border: 0; box-shadow: none; }
.ev-live-frame-monitor .lv-wipe-monitor { padding: 4px 0 30px; }

/* ── shared-layer: the reporting layer, redrawn live ─────────────────── */
.ev-live-shared-layer { background: #fff; }
.lv-layer { container-type: inline-size; padding: clamp(12px, 1.6vw, 18px); background: var(--paper); }
.lv-layer-flow {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1.02fr) 26px minmax(0, 1.08fr);
}
.lv-layer ul { list-style: none; margin: 0; padding: 0; }
.lv-inputs { display: grid; gap: 10px; }
.lv-source { border: 2px solid var(--ink); background: #fff; }
.lv-source > p {
  margin: 0; padding: 6px 8px 5px; border-bottom: 1px solid rgba(21, 25, 24, .22);
  font-family: var(--mono); font-size: .54rem; font-weight: 700; letter-spacing: .07em;
  line-height: 1.2; text-transform: uppercase; color: var(--muted);
}
.lv-source.is-direct > p { background: var(--yellow); color: var(--ink); }
.lv-source.is-direct ul { display: grid; grid-template-columns: 1fr 1fr; }
.lv-source.is-checks ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.lv-tool {
  position: relative; min-width: 0; display: flex; align-items: center; gap: 6px;
  padding: 7px 6px; border-top: 1px solid rgba(21, 25, 24, .22);
}
.is-direct .lv-tool:nth-child(-n + 2) { border-top: 0; }
.is-direct .lv-tool:nth-child(even) { border-left: 1px solid rgba(21, 25, 24, .22); }
.is-checks .lv-tool { display: block; padding: 7px 4px 8px; text-align: center; border-top: 0; }
.is-checks .lv-tool + .lv-tool { border-left: 1px solid rgba(21, 25, 24, .22); }
.lv-logo { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; }
.is-checks .lv-logo { margin: 0 auto 4px; }
.lv-logo svg, .lv-logo img { display: block; width: 18px; height: 18px; fill: var(--ink); object-fit: contain; }
.lv-tool > span:not(.lv-logo) { min-width: 0; }
.lv-tool strong { display: block; font-size: .7rem; line-height: 1.05; }
.lv-tool small { display: block; margin-top: 2px; color: var(--muted); font-size: .56rem; line-height: 1.15; }
.lv-tool.is-on { background: var(--manila); }
/* A cross-check's tick: a small inked box in the corner. */
.lv-check {
  position: absolute; top: 4px; right: 4px; width: 12px; height: 12px;
  border: 1.5px solid var(--ink); background: #fff;
}
.lv-check::after {
  content: ""; position: absolute; left: 2.5px; top: -1px; width: 3.5px; height: 7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); rotate: 40deg;
}
.lv-layer.is-running .lv-tool:not(.is-checked) .lv-check::after { visibility: hidden; }

.lv-arrow { position: relative; align-self: center; height: 24px; }
.lv-arrow::before { content: ""; position: absolute; left: 4px; right: 7px; top: 11px; border-top: 2px solid var(--ink); }
.lv-arrow::after {
  content: ""; position: absolute; right: 2px; top: 6px;
  border-block: 6px solid transparent; border-left: 8px solid var(--ink);
}
.lv-pulse {
  position: absolute; left: 2px; top: 7px; width: 10px; height: 10px; z-index: 1;
  background: var(--yellow); border: 2px solid var(--ink); opacity: 0;
}

.lv-hub { padding: 12px; border: 3px solid var(--ink); background: #fff; box-shadow: 8px 9px 0 rgba(38, 51, 59, .16); }
.lv-hub-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: .54rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.lv-chip { padding: 3px 5px 2px; border: 1.5px solid var(--ink); background: var(--yellow); color: var(--ink); }
.lv-hub-title { margin: 8px 0 9px; font-family: var(--display); font-weight: 800; font-size: clamp(.95rem, 1.35vw, 1.2rem); line-height: .98; letter-spacing: -.02em; }
.lv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-bottom: 0; }
.lv-tabs span { padding: 4px 2px; font-size: .54rem; font-weight: 700; text-align: center; }
.lv-tabs span + span { border-left: 1px solid rgba(21, 25, 24, .22); }
.lv-rows { border: 2px solid var(--ink); }
.lv-rows li {
  display: grid; grid-template-columns: 7px minmax(0, 1fr); column-gap: 8px; align-items: center;
  padding: 6px 7px; border-top: 1px solid rgba(21, 25, 24, .22);
}
.lv-rows li:first-child { border-top: 0; }
.lv-rows b { font-size: .68rem; line-height: 1.1; }
.lv-rows small { grid-column: 2; color: var(--muted); font-size: .56rem; line-height: 1.15; }
.lv-signal { grid-row: span 2; width: 7px; height: 22px; background: var(--yellow); transform-origin: bottom; }
.lv-signal.is-blue { background: var(--blue); }
.lv-signal.is-red { background: var(--red); }
.lv-signal.is-green { background: var(--green); }
.lv-layer.is-running .lv-rows li:not(.is-filled) .lv-signal { transform: scaleY(.22); opacity: .45; }
.lv-rows li.is-on { background: var(--manila); }
.lv-weekly { margin-top: 9px; padding: 7px 8px; background: var(--ink); color: var(--paper); }
.lv-weekly b { display: block; font-size: .66rem; }
.lv-weekly span { display: block; margin-top: 2px; color: var(--paper-deep); font-size: .56rem; }

.lv-slack { overflow: hidden; border: 3px solid var(--ink); background: #fff; box-shadow: 8px 9px 0 rgba(38, 51, 59, .16); }
.lv-slack-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 9px; background: var(--ink); color: var(--paper);
}
.lv-slack-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lv-slack-title svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.lv-slack-title strong { font-size: .76rem; white-space: nowrap; }
.lv-slack-head > span:last-child { font-family: var(--mono); font-size: .5rem; letter-spacing: .07em; text-transform: uppercase; color: var(--paper-deep); text-align: right; }
.lv-messages { display: grid; gap: 10px; padding: 11px 9px 8px; }
.lv-msg { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 7px; align-items: start; }
.lv-avatar { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--ink); background: var(--paper-deep); font-size: .62rem; font-weight: 800; }
.lv-avatar.is-bot { background: var(--yellow); }
.lv-msg small { display: block; margin-bottom: 2px; font-size: .54rem; color: var(--muted); }
.lv-msg b { display: block; font-size: .74rem; line-height: 1.2; }
.lv-msg.is-answer > div { padding: 7px 8px; border: 1px solid rgba(21, 25, 24, .22); background: var(--paper); }
.lv-msg.is-answer.is-on > div { outline: 3px solid var(--yellow); outline-offset: 0; }
.lv-route { display: inline-block; margin-top: 5px; font-family: var(--mono); font-size: .52rem; color: var(--muted); }
.lv-slack-note { margin: 0 9px 10px 38px; padding-top: 7px; border-top: 1px solid rgba(21, 25, 24, .22); font-size: .6rem; line-height: 1.3; color: var(--muted); }

/* Business intelligence: two visibly different source families converge
   before the shared layer branches to dashboards and public questions. */
.lv-layer-flow { grid-template-columns: minmax(0, 1.32fr) 24px minmax(0, .72fr) 24px minmax(0, 1.24fr); }
.lv-inputs { grid-template-columns: 1.08fr .92fr; align-items: stretch; }
.lv-source.is-data > p { background: var(--yellow); color: var(--ink); }
.lv-source.is-data ul { display: grid; grid-template-columns: repeat(2, 1fr); }
.lv-source.is-data .lv-tool { min-height: 43px; }
.lv-source.is-data .lv-tool:nth-child(-n + 2) { border-top: 0; }
.lv-source.is-data .lv-tool:nth-child(even) { border-left: var(--hairline); }
.lv-source.is-data .lv-tool:nth-child(7) { grid-column: 1 / -1; border-right: var(--hairline); }
.lv-source.is-data .lv-tool small { display: none; }
.lv-source.is-knowledge > p { background: var(--paper-deep); color: var(--ink); }
.lv-source.is-knowledge ul { padding: 7px; display: grid; gap: 6px; }
.lv-source.is-knowledge li { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 7px; min-height: 38px; padding: 5px 7px; border: var(--hairline); background: var(--paper); }
.lv-source.is-knowledge b { font-size: .62rem; line-height: 1.1; }
.lv-folder { position: relative; display: block; width: 23px; height: 16px; margin-top: 4px; border: 1.5px solid var(--ink); background: #fff0b8; }
.lv-folder::before { content: ""; position: absolute; left: -1.5px; top: -6px; width: 13px; height: 6px; border: 1.5px solid var(--ink); border-bottom: 0; background: #fff0b8; }
.lv-hub { align-self: center; text-align: center; background: var(--yellow); }
.lv-hub-title { font-size: clamp(1.08rem, 1.5vw, 1.32rem); }
.lv-context-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; margin-top: 14px; }
.lv-context-pair span { padding: 8px 5px; border: var(--rule); background: #fff; font-size: .62rem; font-weight: 800; }
.lv-context-pair b { font-family: var(--mono); }
.lv-outputs { display: grid; gap: 10px; }
.lv-dashboard { padding: 9px; border: 3px solid var(--ink); background: #fff; box-shadow: 8px 9px 0 rgba(38, 51, 59, .16); }
.lv-output .lv-tabs, .lv-dashboard .lv-tabs { border-bottom: 0; }
.lv-dashboard .lv-weekly { margin-top: 7px; }
.lv-outputs .lv-slack { box-shadow: none; border-width: 2px; }
.lv-outputs .lv-messages { grid-template-columns: 1fr; gap: 7px; padding: 8px; }
.lv-outputs .lv-msg { grid-template-columns: 20px 1fr; }
.lv-outputs .lv-msg:first-child { display: none; }
.lv-outputs .lv-slack-note { margin: 0 8px 8px; padding-top: 6px; }

/* Narrow container: the same drawing, read top to bottom. */
@container (max-width: 560px) {
  .lv-layer-flow { grid-template-columns: minmax(0, 1fr); }
  .lv-inputs { grid-template-columns: 1fr; }
  .lv-source.is-data .lv-tool small { display: block; }
  .lv-source.is-knowledge b { font-size: .75rem; }
  .lv-outputs { gap: 12px; }
  .lv-arrow { height: 34px; width: 24px; justify-self: center; }
  .lv-arrow::before { left: 11px; right: auto; top: 2px; bottom: 9px; border-top: 0; border-left: 2px solid var(--ink); }
  .lv-arrow::after { right: auto; left: 6px; top: auto; bottom: 1px; border-inline: 6px solid transparent; border-block: 0; border-top: 8px solid var(--ink); }
  .lv-pulse { left: 7px; top: 1px; }
  .lv-tool strong { font-size: .8rem; }
  .lv-tool small, .lv-rows small, .lv-weekly span, .lv-msg small { font-size: .66rem; }
  .lv-source > p, .lv-hub-head, .lv-tabs span { font-size: .62rem; }
  .lv-rows b, .lv-weekly b { font-size: .8rem; }
  .lv-hub-title { font-size: 1.35rem; }
  .lv-msg b { font-size: .86rem; }
  .lv-route, .lv-slack-head > span:last-child { font-size: .6rem; }
  .lv-slack-note { font-size: .72rem; }
  .lv-logo, .lv-logo svg, .lv-logo img { width: 22px; height: 22px; flex-basis: 22px; }
}

/* ── motion: only when it is welcome ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .lv-switch-knob { transition: transform var(--t-quick) var(--ease-drawer); }
  .lv-switch-track { transition: background-color var(--t-quick) linear; }
  .lv-article { transition: transform 380ms var(--ease-drawer); }
  .lv-slip.is-running .lv-belt { animation: lv-belt .5s linear infinite; }
  .lv-slip.is-reversing .lv-belt { animation-direction: reverse; animation-duration: .25s; }
  @keyframes lv-belt { to { background-position: 0 11px; } }
  .lv-stage, .lv-gate { transition: background-color 200ms linear; }
  .lv-signal { transition: transform 320ms var(--ease-spring), opacity 200ms linear; }
  .lv-tool, .lv-rows li { transition: background-color 240ms linear; }
}

/* ── narrow screens: every piece becomes an ordinary block in the stack ── */
@media (max-width: 980px) {
  .ev-live { box-shadow: 8px 10px 0 rgba(38, 51, 59, .18); }
  .is-snapshot .ev-group-live { display: grid; }
  .lv-sheet-frame, html[data-js] .ev-live-sheet-helper .ev-live-stage { height: 460px; }
  .lv-slip { padding-left: 42px; padding-right: 10px; }
  .lv-belt { left: 8px; }
  .lv-article { left: 11px; }
  .evidence-set > .ev-group-live { margin-top: 18px; }
  .ev-live-frame-monitor .lv-wipe-monitor { padding-bottom: 22px; }
  .evidence-hero-inset:has(.ev-live) .ev-inset { width: 100%; margin-top: 0; rotate: none; }
}

/* The editorial machine is the hero explanation; the real article comparison
   is supporting evidence underneath it, not a small overlapping inset. */
#preview-editorial-pipeline .evidence-hero-inset:has(.ev-live) {
  display: grid;
  gap: clamp(20px, 2.8vw, 34px);
  padding-bottom: 0;
}
#preview-editorial-pipeline .evidence-hero-inset:has(.ev-live) .ev-group {
  display: grid;
}
#preview-editorial-pipeline .evidence-hero-inset:has(.ev-live) .ev-inset {
  position: relative;
  inset: auto;
  width: 100%;
  margin: 0;
  rotate: none;
  box-shadow: 10px 12px 0 rgba(38, 51, 59, .18);
}

/* source: assets/css/features/project-record.css */
/* Compact summary for the repeated project snapshot. The record sits
   inside the established text-and-proof snapshot rather than replacing it.
   Its job is a quick ownership scan; it must never push the proof below the
   first desktop viewport. */

.project-record {
  margin: clamp(18px, 2vw, 24px) 0 0;
  border-block: 2px solid var(--ink);
  background: rgba(255, 255, 255, .18);
}

.record-rail {
  min-width: 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 44%, transparent);
}

.record-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 9px 5px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .66rem;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.record-stack {
  min-width: 0;
  padding: 8px 0 9px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 34%, transparent);
  font-family: var(--mono);
  line-height: 1.22;
  text-align: left;
}

.record-stack span {
  color: var(--muted);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.record-stack p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(.7rem, .78vw, .8rem);
  font-weight: 700;
}

.record-credits {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.record-credits li {
  min-width: 0;
  min-height: 52px;
  padding: 10px 12px 10px 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 5px;
}

.record-credits li:nth-child(even) {
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--ink) 34%, transparent);
}

.record-credits li:nth-child(n + 3) {
  border-top: 1px solid color-mix(in srgb, var(--ink) 34%, transparent);
}

.record-credits li > span {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .59rem;
  line-height: 1;
}

.record-credits strong {
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(.82rem, 1vw, .94rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.has-project-record .preview-short {
  margin-top: clamp(16px, 1.8vw, 22px);
}

@media (max-width: 760px) {
  .record-credits li {
    min-height: 58px;
    padding-block: 11px;
  }
}

@media (max-width: 390px) {
  .record-credits li {
    grid-template-columns: 20px minmax(0, 1fr);
    padding-right: 8px;
  }

  .record-credits li:nth-child(even) { padding-left: 8px; }
  .record-credits strong { font-size: .8rem; overflow-wrap: anywhere; }
}

/* source: assets/css/features/working-on.css */
/* ── WORK IN PROGRESS · WHITEBOARD ───────────────────────────────────────
   A whiteboard of what Nick is working on. Next is handwritten points, Doing and Done are sticky notes, a tray of real
   markers sits underneath. Markup: build/sections/working-on.mjs. Behaviour: build/assets/js/features/working-on.js.
   Every class is prefixed wob- so nothing here can collide with the rest of the site.

   Two decisions that look arbitrary and are not:
   - The layout switches on the CONTAINER (the board's own width), not the viewport: the board is a component, and its
     phone layout is for any narrow place. 47.5rem of board is the switch (760px at the default size). rem, not px, so a
     visitor who has raised their text size gets the stacked layout while the board is still wide.
   - Content never depends on an animation running. Without scroll-driven animation (or with reduced motion) the board
     is simply the final state. The animation only ever moves ONE note, from where it was to where it already is. */

.working-on {
  padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 80px);
  border-bottom: var(--border);
  background: var(--paper);
}
.wob-frame { container-type: inline-size; max-width: 1180px; margin-inline: auto; }

.wob {
  --mk-red: #d8412f; --mk-blue: #4766e0; --mk-green: #2f8a5c;
  position: relative;
  font-family: var(--hand);
  color: var(--ink);
  line-height: 1.3;
}
.wob svg { overflow: visible; }

/* Frame, board, tray ----------------------------------------------------- */
.wob-board-frame {
  position: relative; background: var(--steel); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow);
  padding: clamp(10px, 1.6cqi, 16px);
}
.wob-screw { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--steel-dark); border: 2px solid var(--ink); z-index: 2; }
.wob-s1 { left: 3px; top: 3px; }
.wob-s2 { right: 3px; top: 3px; }
.wob-board {
  position: relative; isolation: isolate; overflow: hidden; background: #fff; border: 2px solid var(--ink);
  padding: clamp(12px, 1.8cqi, 20px) clamp(14px, 2.6cqi, 34px) clamp(14px, 1.8cqi, 20px);
}

/* Title ------------------------------------------------------------------ */
.wob-head { margin: 0 0 clamp(2px, .8cqi, 8px); }
.wob-wip { position: relative; display: inline-block; font-size: clamp(2rem, 3.8cqi, 2.6rem); line-height: 1; padding: .08em .45em 0; letter-spacing: .02em; }
.wob-ring { position: absolute; left: -4px; top: 2px; width: calc(100% + 8px); height: calc(100% - 4px); color: var(--stamp-red); }

/* Three zones ------------------------------------------------------------ */
.wob-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.wob-zone { position: relative; padding: 0 clamp(12px, 2.2cqi, 26px); }
.wob-zone:first-child { padding-left: 0; }
.wob-zone:last-child { padding-right: 0; }
.wob-vl { position: absolute; left: 0; top: 0; width: 10px; height: 100%; color: var(--ink); }
.wob-hl { display: none; width: 100%; height: 10px; margin: 0 0 14px; color: var(--ink); }
.wob .wob-zone h3 {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 clamp(12px, 1.8cqi, 18px);
  font-family: var(--hand); font-weight: 400; font-size: clamp(1.9rem, 3.6cqi, 2.5rem); line-height: 1; letter-spacing: 0;
}
.wob-zone h3 > span { display: inline-block; position: relative; }
.wob-z-next h3 { color: var(--mk-blue); }
.wob-z-doing h3 { color: var(--mk-red); }
.wob-z-done h3 { color: var(--mk-green); }
.wob-ul { display: block; width: 100%; height: 9px; color: var(--ink); }
.wob-harrow { width: clamp(44px, 6.5cqi, 72px); height: auto; margin-top: .1em; color: var(--ink); }

/* Next: handwritten points ----------------------------------------------- */
.wob-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.6cqi, 18px); }
.wob-pts li { position: relative; padding-left: 32px; }
.wob-pts li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 15px; height: 15px;
  background: var(--c); border: 2px solid var(--ink); border-radius: 52% 48% 55% 45%;
}
.wob-pts small { display: block; font-size: 1.05rem; color: var(--muted); line-height: 1.1; }
.wob-pts b { display: block; font-weight: 400; font-size: clamp(1.7rem, 3.4cqi, 2.1rem); line-height: 1.05; }

/* Doing and Done: sticky notes ------------------------------------------- */
.wob-notes { display: grid; gap: clamp(14px, 2cqi, 22px); }
.wob-note, .wob-pts li { overflow-wrap: anywhere; }
.wob-note {
  position: relative; display: block; min-height: 86px; padding: 15px 14px 13px;
  background: var(--c); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow);
  color: inherit; text-decoration: none; transform: rotate(var(--r, 0deg)); z-index: 3;
  transition: transform 160ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 160ms;
}
.wob-z-doing .wob-note { min-height: 112px; padding-top: 22px; z-index: 4; }
.wob-note small { display: block; margin-bottom: 3px; font-size: 1.05rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wob-note b { display: block; font-weight: 400; font-size: clamp(1.5rem, 3cqi, 1.85rem); line-height: 1.02; }
.wob-z-doing .wob-note b { font-size: clamp(1.8rem, 3.6cqi, 2.3rem); }
.wob-mag { position: absolute; top: -10px; left: 50%; margin-left: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); box-shadow: 2px 2px 0 var(--shadow); }
.wob-doodle { position: absolute; right: 12px; top: 10px; width: 22px; color: var(--ink); }
.wob-tick { position: absolute; right: 10px; top: 9px; width: 30px; color: var(--ink); }
.wob-open { display: inline-flex; align-items: center; margin-top: 6px; font-size: 1.15rem; border-bottom: 2px solid var(--ink); }
.wob-arr { vertical-align: -2px; margin-left: 4px; }
a.wob-note:hover { transform: rotate(0) translate(-3px, -5px); box-shadow: 7px 9px 0 var(--shadow); }
a.wob-note:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }

/* Chalkboard line, in the empty corner. Board handwriting: the eraser rubs it out like the rest. -------- */
.wob-bart {
  position: absolute; left: clamp(16px, 2.4cqi, 30px); bottom: clamp(14px, 2cqi, 22px); max-width: 310px;
  font-size: clamp(.78rem, 1.5cqi, 1rem); line-height: 1.3; transform: rotate(-1.5deg); pointer-events: none;
}
.wob-bart span { display: block; }
.wob-bart span:nth-child(2) { transform: translateX(7px) rotate(.8deg); }
.wob-bart span:nth-child(3) { transform: translateX(-2px) rotate(-.7deg); }

/* Pens ------------------------------------------------------------------- */
.wob-wipe, .wob-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wob-wipe { z-index: 2; }
.wob-ink { z-index: 5; touch-action: none; }
.wob.is-drawing .wob-ink { pointer-events: auto; }
.wob.is-drawing { user-select: none; -webkit-user-select: none; }
.wob-tray {
  position: relative; height: 38px; margin: -2px -10px 0; background: var(--steel);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow);
}
.wob-rack { position: absolute; right: 18px; bottom: -6px; display: flex; align-items: flex-end; gap: 8px; }
.wob-tool {
  appearance: none; background: none; border: 0; padding: 10px 0; margin: 0; cursor: pointer; width: clamp(66px, 8.6cqi, 96px);
  transition: transform 160ms cubic-bezier(.34, 1.56, .64, 1);
}
.wob-tool svg { display: block; width: 100%; height: auto; }
.wob-eraser { width: clamp(44px, 5.6cqi, 62px); margin-left: 8px; }
.wob-tool:hover { transform: translateY(-4px); }
.wob-tool[aria-pressed="true"] { transform: translateY(-14px); }
.wob-tool:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Phone layout: the board's own width is 760px or less ------------------- */
@container (max-width: 47.5rem) {
  .wob-grid { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .wob-z-doing { order: 1; }
  .wob-z-next { order: 2; }
  .wob-z-done { order: 3; }
  .wob-zone, .wob-zone:first-child, .wob-zone:last-child { padding: 0; }
  .wob-zone + .wob-zone { margin-top: 14px; }
  .wob-vl, .wob-harrow, .wob-z-doing .wob-hl { display: none; }
  .wob-hl { display: block; }
  /* Two across where two fit; one across when the board is narrow or the text is large, so a note is never cut off. */
  .wob-z-doing .wob-notes, .wob-z-done .wob-notes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 14px 12px; padding: 0 4px; }
  .wob-z-doing .wob-note b { font-size: 1.5rem; }
  /* Done shows only the latest two (the list is oldest first). The older ones are projects that also live in the work below. */
  .wob-z-done .wob-notes .wob-note:not(:nth-last-child(-n+2)) { display: none; }
  .wob-doodle, .wob-tick { top: auto; bottom: 8px; right: 8px; }
  .wob-tick { width: 26px; }
  .wob-doodle.wob-scissors { top: 8px; bottom: auto; }
  .wob-bart { position: static; max-width: none; margin: 12px 0 0 6px; font-size: clamp(.74rem, 4.1cqi, .92rem); }
  .wob-bart span:first-child { display: none; }
  .wob-tray { margin: -2px -6px 0; }
  .wob-rack { right: 6px; gap: 0; bottom: -8px; }
  .wob-tool { width: 54px; padding: 12px 0; }
  .wob-eraser { width: 44px; margin-left: 2px; }
}

/* Scroll-driven move: the newest Done note starts in Doing and slides across ----------------------------------
   Armed only when JS has measured the start point and the browser supports scroll timelines (.is-scroll-move). */
.wob-mover { z-index: 3; transform-origin: 0 0; }
.wob-mover .wob-mag { opacity: 0; }
.wob-mover .wob-tick path { stroke-dasharray: 60; }
@keyframes wob-travel { from { translate: var(--dx) var(--dy); scale: var(--sc); rotate: -3deg; } to { translate: 0 0; scale: 1; rotate: 0deg; } }
@keyframes wob-mag-off { from { opacity: 1; } to { opacity: 0; } }
@keyframes wob-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wob-tick-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@supports (animation-timeline: view()) {
  .wob.is-scroll-move .wob-board { view-timeline: --wob-view block; }
  .wob.is-scroll-move .wob-mover,
  .wob.is-scroll-move .wob-mover .wob-mag,
  .wob.is-scroll-move .wob-mover .wob-open,
  .wob.is-scroll-move .wob-mover .wob-tick path { animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --wob-view; }
  .wob.is-scroll-move .wob-mover { animation-name: wob-travel; animation-timing-function: cubic-bezier(.5, 0, .3, 1); animation-range: cover 40% cover 58%; }
  .wob.is-scroll-move .wob-mover .wob-mag { animation-name: wob-mag-off; animation-range: cover 40% cover 45%; }
  .wob.is-scroll-move .wob-mover .wob-open { animation-name: wob-fade-in; animation-range: cover 56% cover 61%; }
  .wob.is-scroll-move .wob-mover .wob-tick path { animation-name: wob-tick-draw; animation-range: cover 56% cover 61%; }
  /* The phone timing felt right a little earlier; the wide board runs a little later so it does not start early. */
  @container (max-width: 47.5rem) {
    .wob.is-scroll-move .wob-mover { animation-range: cover 36% cover 54%; }
    .wob.is-scroll-move .wob-mover .wob-mag { animation-range: cover 36% cover 41%; }
    .wob.is-scroll-move .wob-mover .wob-open,
    .wob.is-scroll-move .wob-mover .wob-tick path { animation-range: cover 52% cover 57%; }
  }
}

/* The pens are a toy: nothing to show until the script has run. */
.wob:not(.is-ready) .wob-rack { display: none; }

/* Reduced motion: the hover lift and the pens' bounce stay still. */
@media (prefers-reduced-motion: reduce) {
  .wob-note, .wob-tool { transition: none; }
  a.wob-note:hover { transform: rotate(var(--r, 0deg)); }
  .wob-tool:hover, .wob-tool[aria-pressed="true"] { transform: none; }
}

/* Print: the finished board, nothing mid-flight, and no toy. */
@media print {
  .wob-mover { translate: none !important; scale: none !important; rotate: none !important; animation: none !important; }
  .wob-mover .wob-mag { display: none; }
  .wob-mover .wob-tick path, .wob-mover .wob-open { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .wob-ink, .wob-wipe, .wob-rack { display: none; }
  .wob-board-frame, .wob-board, .wob-tray { break-inside: avoid; box-shadow: none; }
}

/* Forced colours (Windows High Contrast): the board is its own fixed-colour object, and the toy has no meaning without it. */
@media (forced-colors: active) {
  .wob { forced-color-adjust: none; }
  .wob-ink, .wob-wipe, .wob-rack { display: none; }
}
