/* Shared reading surfaces under cool sunlight or warm lamplight. */
:root {
  --paper: #e7f0f2;
  --white: #f8fbfa;
  --ink: #153348;
  --muted: #47616d;
  --blue: #175b78;
  --blue-hover: #103f57;
  --blue-soft: #d9ebef;
  --line: #a9c6d0;
  --green: #3c614d;
  --red: #963d32;
  --paper-shadow: 0 18px 50px rgb(69 44 28 / 9%), 0 2px 8px rgb(69 44 28 / 5%);
  --body-glow: rgb(155 199 219 / 26%);
}

:root[data-light-mode="lamp"] {
  --paper: #272320;
  --white: #342e29;
  --ink: #fff0db;
  --muted: #d1c1ab;
  --blue: #f1bd80;
  --blue-hover: #ffd3a0;
  --blue-soft: #4a3a2e;
  --line: #74685a;
  --green: #a6d3b2;
  --red: #f1a997;
  --paper-shadow: 0 22px 56px rgb(0 0 0 / 25%), 0 2px 10px rgb(0 0 0 / 12%);
  --body-glow: rgb(194 112 52 / 15%);
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at 80% 135px, var(--body-glow), transparent 32rem), var(--paper);
  color: var(--ink);
}
.shell { max-width: 1180px; }
.header { min-height: 90px; }
.wordmark { font-style: italic; letter-spacing: -.045em; }
nav { gap: 22px; }
nav a { color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
.nav-contact { color: var(--ink); }
.light-switch {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  gap: 11px;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 12px 8px 16px;
  white-space: nowrap;
  font-size: .875rem;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.light-switch:hover { background: var(--blue-soft); border-color: var(--blue); }
.light-switch:disabled { cursor: default; opacity: .6; }
.light-switch:active { transform: translateY(1px); }
.light-switch-lamp, :root[data-light-mode="lamp"] .light-switch-day { display: none; }
:root[data-light-mode="lamp"] .light-switch-lamp { display: inline; }
.light-switch-dot {
  background: var(--paper);
  border: 1px solid var(--blue);
  border-radius: 50%;
  box-shadow: inset -5px -3px 0 var(--blue);
  display: block;
  height: 16px;
  width: 16px;
  transition: background-color 190ms ease, box-shadow 190ms ease;
}
:root[data-light-mode="lamp"] .light-switch-dot { background: var(--blue); box-shadow: 0 0 12px rgb(240 186 141 / 55%); }
.primary { background: var(--blue); color: var(--white); }
.primary:hover { background: var(--blue-hover); color: var(--white); }
.button:active, .text-link:active { transform: translateY(1px); }
.button { transition: background-color 160ms ease, color 160ms ease, transform 110ms ease; }
.text-link { color: var(--blue); }
a:hover { color: var(--blue-hover); }

/* A smaller welcome, with an actual choice on the desk. */
.hero { align-items: center; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); margin-block: 44px 48px; padding: var(--panel-padding); }
.hero-copy { min-width: 0; }
.footer [data-local-time] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero h1 {
  font-size: clamp(4.4rem, 7.8vw, 7.2rem);
  letter-spacing: -.045em;
  line-height: .94;
  margin: 0 0 22px;
}
.hero-lead { color: var(--ink); max-width: 31rem; font-size: 1.08rem; line-height: 1.72; }
.hero-actions { gap: 23px; }
.hero-aside { border: 0; color: var(--ink); margin: 0; max-width: none; min-width: 0; padding: 0; }
.practice { margin: 0; }
.practice li { border: 0; display: block; padding: 0; }
.practice a {
  align-items: center;
  background: color-mix(in srgb, var(--white) 86%, transparent);
  border: 1px solid var(--line);
  box-shadow: inset 1px 1px color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 26px minmax(0, 1fr) 20px;
  min-height: 82px;
  padding: 12px 14px;
  text-align: left;
  text-decoration: none;
  width: 100%;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 240ms cubic-bezier(.2,.7,.2,1), transform 240ms cubic-bezier(.2,.7,.2,1);
}
.practice li + li { margin-top: 10px; }
.practice a:hover, .practice a:focus-visible {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: 0 11px 25px color-mix(in srgb, var(--ink) 13%, transparent);
  color: var(--ink);
  transform: translateY(-2px);
}
.practice a:active { transform: translateY(0); }
.practice-point { transition: transform 180ms ease; }
.practice a:hover .practice-point, .practice a:focus-visible .practice-point { transform: translate(3px, -3px); }
.practice strong, .practice small { display: block; }
.practice strong { font-size: 1rem; line-height: 1.35; }
.practice small { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.practice-n { color: var(--blue); }
.practice-point { border: 0; border-radius: 0; color: var(--blue); font-size: 1.1rem; height: auto; width: auto; }
.practice li:nth-child(2) .practice-point { background: transparent; }
.facts { border-block-color: var(--line); }
.facts strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.facts span { font-size: .85rem; }

/* The homepage is a frosted glass-block lantern; its project links are the clear foreground. */
body.home {
  --panel-padding: clamp(22px, 3vw, 40px);
  --lantern-ground: #3d84ad;
  --lantern-wash: rgb(242 250 251 / 34%);
  background-color: var(--lantern-ground);
  isolation: isolate;
  position: relative;
}
/* One continuous facade. Native page scrolling moves it without a scroll handler. */
.home .lantern-wall {
  --pane: 30px;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: -2;
  background: linear-gradient(110deg, rgb(21 66 96 / 17%), transparent 48%, rgb(238 248 251 / 12%));
}
.home .lantern-wall::before {
  background:
    radial-gradient(ellipse 34rem 13rem at 82% 240px, #ffdd94 0%, rgb(255 173 66 / 85%) 26%, rgb(237 128 33 / 36%) 56%, transparent 83%),
    radial-gradient(ellipse 40rem 16rem at 18% 940px, #ffd48a 0%, rgb(255 176 78 / 79%) 28%, rgb(227 124 40 / 30%) 59%, transparent 85%),
    radial-gradient(ellipse 33rem 15rem at 83% 1580px, #ffdfa2 0%, rgb(255 165 52 / 81%) 25%, rgb(225 121 34 / 30%) 61%, transparent 86%),
    radial-gradient(ellipse 38rem 18rem at 30% 2380px, #ffda97 0%, rgb(255 176 66 / 77%) 30%, rgb(219 113 32 / 28%) 62%, transparent 87%),
    radial-gradient(ellipse 32rem 17rem at 76% 3250px, #ffd891 0%, rgb(255 171 65 / 74%) 30%, transparent 85%);
  content: '';
  filter: blur(12px);
  inset: -16px;
  opacity: .065;
  position: absolute;
}
:root[data-light-mode="lamp"] .home .lantern-wall { background: rgb(26 24 22 / 27%); }
:root[data-light-mode="lamp"] .home .lantern-wall::before { opacity: .94; }
.home .lantern-wall::after {
  background-image:
    linear-gradient(90deg, rgb(13 34 45 / 49%) 0 1px, rgb(233 244 247 / 49%) 1px 2px, transparent 3px 27px, rgb(13 34 45 / 25%) 29px 30px),
    linear-gradient(0deg, rgb(13 34 45 / 49%) 0 1px, rgb(233 244 247 / 39%) 1px 2px, transparent 3px 27px, rgb(13 34 45 / 24%) 29px 30px),
    linear-gradient(140deg, rgb(247 251 250 / 19%), transparent 42%, rgb(23 29 30 / 10%));
  background-size: var(--pane) var(--pane), var(--pane) var(--pane), var(--pane) var(--pane);
  content: '';
  inset: 0;
  position: absolute;
}
body.home::before {
  background: var(--lantern-wash);
  content: '';
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}
:root[data-light-mode="lamp"] body.home {
  --lantern-ground: #96532c;
  --lantern-wash: rgb(19 17 16 / 24%);
}
.home .hero { background: var(--white); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--paper-shadow); }
.home .facts { backdrop-filter: blur(10px); background: color-mix(in srgb, var(--white) 62%, transparent); border: 1px solid var(--line); padding-inline: var(--panel-padding); }
.home .header { backdrop-filter: blur(10px); background: color-mix(in srgb, var(--white) 72%, transparent); border: 1px solid var(--line); padding-inline: var(--panel-padding); }
.home .section-top, .home .contact, .home .footer {
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--white) 74%, transparent);
  border: 1px solid var(--line);
  padding-inline: var(--panel-padding);
}
.home .contact, .home .footer { margin-top: 35px; }

/* One open page at a time. The other stories remain available without JavaScript. */
.work { padding-top: 86px; }
.section-top { display: block; margin-bottom: 0; padding-block: 22px; border-radius: 4px 4px 0 0; }
.section-top h2 { font-size: clamp(3rem, 5vw, 5rem); }
.bench-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-block: 0;
  box-shadow: var(--paper-shadow);
  display: grid;
  grid-template-columns: minmax(235px, 29%) minmax(0, 1fr);
  min-height: 420px;
  overflow: hidden;
}
.bench-choices {
  background: color-mix(in srgb, var(--paper) 70%, var(--white));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 14px 0;
}
.bench-choices button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 124px;
  padding: 21px 26px;
  text-align: left;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.bench-choices button:last-child { border-bottom: 0; }
.bench-choices button:disabled { opacity: 1; cursor: default; }
.bench-choices button:hover:not(:disabled) { background: var(--blue-soft); }
.bench-choices button > * { transition: transform 160ms ease; }
.bench-choices button:hover:not(:disabled) > * { transform: translateX(4px); }
.bench-choices button:active:not(:disabled) { background: var(--line); }
.bench-choices button[aria-pressed="true"] { background: var(--white); box-shadow: inset 4px 0 var(--blue); }
.bench-choices button > span { color: var(--blue); font-size: .8rem; }
.bench-choices button strong { font-size: .98rem; line-height: 1.35; font-weight: 600; }
.bench-choices button small { color: var(--muted); font-size: .8rem; }
.bench-pages { align-content: center; display: grid; min-width: 0; padding: 33px 46px; }
.bench-pages .work-entry {
  align-items: center;
  border: 0;
  display: grid;
  gap: 0 25px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 25%);
  padding: 0;
}
.bench-pages .work-meta { align-items: baseline; flex-direction: row; gap: 14px; grid-column: 1 / -1; }
.bench-pages .work-meta .index { font-size: 2.2rem; }
.bench-pages .work-meta > span:last-child { display: inline; font-size: .85rem; }
.bench-pages .work-copy { min-width: 0; }
.bench-pages .work-copy h3 { font-size: clamp(2.4rem, 4vw, 4.4rem); letter-spacing: -.022em; line-height: 1.04; margin: 18px 0; }
.bench-pages .work-copy h3 em { color: var(--blue); font-weight: 400; }
.bench-pages .work-copy > p:not(.tag) { color: var(--muted); max-width: 31rem; }
.bench-pages .work-proof { border-left: 1px solid var(--line); grid-column: 2; padding-left: 22px; }
.bench-pages .proof-number { color: var(--blue); font-size: clamp(2.2rem, 3.3vw, 3.5rem); }
.bench-pages .proof-note { max-width: 180px; }
.bench-pages .text-link { margin-top: 17px; }
.bench-pages .work-entry[hidden] { display: none !important; }
.work-download { background: var(--white); border: 1px solid var(--line); border-radius: 0 0 4px 4px; padding: 20px 26px; }
.work-download .text-link { margin-top: 0; }

/* A short personal note, with the rest available on request. */
.about { border-top: 0; display: block; margin-block: 70px; padding: 0; }
.about > .about-letter { background: var(--white); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--paper-shadow); display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; padding: var(--panel-padding); }
.about-copy { min-width: 0; }
.about .about-copy > p { margin-top: 0; }
.about h2 { font-size: clamp(3rem, 5vw, 5rem); margin-bottom: 25px; }
.about p:not(.eyebrow) { color: var(--ink); max-width: 36rem; }
.postcard { border-block: 1px solid var(--line); margin-top: 27px; }
.postcard summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; min-height: 58px; font-weight: 600; list-style: none; }
.postcard summary::-webkit-details-marker { display: none; }
.postcard summary:hover, .postcard summary:focus-visible { color: var(--blue); }
.postcard summary > span { color: var(--blue); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform 180ms ease; }
.postcard[open] summary > span { transform: rotate(45deg); }
.postcard p { margin: 0 0 23px !important; color: var(--muted) !important; font-size: .95rem !important; }
.contact { border-top-color: var(--line); padding-block: 62px 85px; }
.contact h2 { font-size: clamp(3.4rem, 6vw, 6.5rem); margin: 14px 0 17px; }
.contact > p:not(.eyebrow) { color: var(--muted); font-size: 1rem; margin-bottom: 27px; }
.footer p { color: var(--muted); }
.home .footer p { width: auto; }

/* The detail pages keep their working exhibits and offer shorter paths to them. */
.case-hero { padding-block: 26px 42px; }
.back-link { margin-bottom: 21px; }
.case-hero h1 { font-size: clamp(3.6rem, 6vw, 6rem); letter-spacing: -.028em; }
.case-deck { color: var(--ink); line-height: 1.65; margin-top: 18px; max-width: 43rem; }
.case-action { background: var(--blue-soft); border-color: var(--line); color: var(--ink); margin-top: 23px; }
.case-action:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.case-facts { margin-top: 31px; padding-top: 19px; }
.case-facts strong { color: var(--blue); }
.lab { background: var(--white); border-color: var(--line); box-shadow: var(--paper-shadow); scroll-margin-top: 20px; }
.lab-heading { margin-bottom: 24px; }
.lab-heading h2 { font-size: clamp(2.7rem, 4vw, 4.1rem); }
.lab-toolbar { padding-bottom: 18px; }
.segmented label:hover span, .workflow-picker label:hover span { background: var(--blue-soft); }
.segmented input:disabled + span, .workflow-picker input:disabled + span { opacity: .6; }
.segmented label:has(input:disabled), .workflow-picker label:has(input:disabled) { cursor: default; }
.segmented label:hover input:disabled + span, .workflow-picker label:hover input:disabled + span { background: transparent; }
.segmented input:checked + span, .workflow-picker input:checked + span { background: var(--ink); color: var(--white); }
.trace-steps { position: relative; }
.trace-steps::before { background: var(--line); content: ''; left: 25px; position: absolute; top: 31px; bottom: 31px; width: 1px; }
.trace-steps::after { background: var(--blue); content: ''; left: 25px; position: absolute; top: 31px; bottom: 31px; width: 2px; transform: scaleY(0); transform-origin: top; transition: transform 280ms cubic-bezier(.2,.7,.2,1); }
.trace-steps[data-step="1"]::after { transform: scaleY(.24); }
.trace-steps[data-step="2"]::after { transform: scaleY(.5); }
.trace-steps[data-step="3"]::after { transform: scaleY(.75); }
.trace-steps[data-step="4"]::after { transform: scaleY(1); }
.trace-steps li { transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.trace-steps li[aria-current="step"] { transform: translateX(4px); }
.trace-inspector { background: var(--paper); border-color: var(--line); transition: background-color 220ms ease, box-shadow 220ms ease; }
.lab[data-outcome="fixed"] .trace-inspector { box-shadow: inset 0 0 0 1px var(--green); }
.lab[data-outcome="broken"] .trace-inspector { box-shadow: inset 0 0 0 1px var(--red); }
.component-button { color: var(--ink); transition: background-color 170ms ease, border-color 170ms ease, transform 170ms ease; }
.component-button:hover { background: var(--blue-soft); transform: translateY(-2px); }
.component-button:active { transform: translateY(0); }
.component-detail, .trace-inspector { background: var(--paper); }
.component-detail { view-transition-name: component-note; }
.workflow-content { view-transition-name: workflow-note; }
.plain-fallback { color: var(--muted); font-size: .92rem; margin-top: 16px; }
.workflow-picker span { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.workflow-stage { min-width: 0; }
.case-body { padding-block: 65px 78px; }
.case-body .prose { min-width: 0; }
.field-note { border-bottom: 1px solid var(--line); }
.field-note:first-of-type { border-top: 1px solid var(--line); }
.field-note summary { align-items: center; cursor: pointer; display: flex; gap: 20px; justify-content: space-between; list-style: none; min-height: 76px; }
.field-note summary::-webkit-details-marker { display: none; }
.field-note summary::after { color: var(--blue); content: '+'; font-family: var(--serif); font-size: 2rem; flex: none; font-weight: 400; line-height: 1; transition: transform 180ms ease; }
.field-note[open] summary::after { transform: rotate(45deg); }
.field-note summary:hover h2, .field-note summary:focus-visible h2 { color: var(--blue); }
.field-note summary h2, .prose .field-note h2:not(:first-child) { font-size: 1.125rem; margin: 0; }
.field-note > :not(summary) { margin-top: 0; }
.field-note > :last-child { margin-bottom: 25px; }
.field-note .result-callout { margin-top: 16px; }
.field-note .evidence-links { margin-top: 12px; }

.bench-pages .work-entry:not([hidden]) { view-transition-name: bench-page; }
::view-transition-old(bench-page), ::view-transition-old(component-note), ::view-transition-old(workflow-note) { animation: note-leave 160ms ease-out both; }
::view-transition-new(bench-page), ::view-transition-new(component-note), ::view-transition-new(workflow-note) { animation: note-arrive 270ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes note-arrive { from { opacity: .45; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes note-leave { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-5px); } }
.hero-copy { animation: note-arrive 420ms cubic-bezier(.2,.7,.2,1) both; }
.hero-aside { animation: note-arrive 530ms cubic-bezier(.2,.7,.2,1) both; }

@media (max-width: 1000px) {
  .header nav > a:first-child { display: none; }
  .hero { gap: 36px; }
  .hero h1 { font-size: clamp(4.1rem, 8vw, 7rem); }
  .bench-body { grid-template-columns: minmax(195px, 31%) minmax(0, 1fr); }
  .bench-pages { padding: 27px; }
  .bench-pages .work-entry { grid-template-columns: minmax(0, 1fr); }
  .bench-pages .work-proof { border-left: 0; border-top: 1px solid var(--line); grid-column: 1; margin-top: 23px; padding: 17px 0 0; }
  .bench-pages .work-copy h3 { font-size: clamp(2.4rem, 4vw, 3.8rem); }
}

@media (max-width: 760px) {
  .header { min-height: 76px; }
  .header nav { gap: 11px; }
  .header nav > a:first-child { display: none; }
  .light-switch { font-size: .82rem; gap: 7px; padding: 6px 9px 6px 12px; }
  .wordmark { font-size: 2rem; }
  .hero { grid-template-columns: 1fr; gap: 30px; margin-block: 28px 32px; }
  .hero h1 { font-size: clamp(4rem, 11.7vw, 6.1rem); margin: 0 0 21px; }
  .hero-lead { font-size: 1rem; line-height: 1.65; }
  .practice a { min-height: 72px; }
  .facts { padding-block: 20px; }
  .facts strong { font-size: 1.3rem; }
  .work { padding-top: 63px; }
  .bench-body { display: block; }
  .bench-choices { border-bottom: 1px solid var(--line); border-right: 0; display: flex; flex-direction: row; gap: 0; overflow-x: auto; padding: 0; scrollbar-width: thin; }
  .bench-choices button { border-bottom: 0; border-right: 1px solid var(--line); flex: 0 0 min(73vw, 240px); min-height: 112px; padding: 15px 17px; }
  .bench-choices button[aria-pressed="true"] { box-shadow: inset 0 -4px var(--blue); }
  .bench-pages { padding: 31px 23px; }
  .bench-pages .work-entry { display: block; }
  .bench-pages .work-meta { align-items: center; }
  .bench-pages .work-copy h3 { font-size: clamp(2.6rem, 8vw, 3.6rem); }
  .bench-pages .proof-number { font-size: 2.6rem; }
  .about { margin-block: 48px; }
  .about > .about-letter { grid-template-columns: 1fr; gap: 0; }
  .about h2 { font-size: clamp(3.4rem, 9vw, 5rem); }
  .contact { padding-block: 46px 67px; }
  .contact h2 { font-size: clamp(3.5rem, 10vw, 5.4rem); }
  .case-hero { padding-block: 22px 36px; }
  .case-hero h1 { font-size: clamp(3.3rem, 10vw, 4.6rem); }
  .case-deck { font-size: 1rem; }
  .case-facts { gap: 14px; margin-top: 29px; }
  .lab { padding: 24px 18px; }
  .field-note summary { min-height: 68px; }
  .case-body { padding-block: 45px 55px; }
}

@media (max-width: 390px) {
  .header .nav-contact { display: none; }
  .light-switch { padding: 8px 10px; }
  .hero h1 { font-size: 3.85rem; }
  .bench-pages { padding-inline: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .home { transition: none; }
  .home .lantern-wall { position: fixed; }
  html { scroll-behavior: auto; }
  .hero-copy, .hero-aside { animation: none; }
  ::view-transition-old(bench-page), ::view-transition-new(bench-page),
  ::view-transition-old(component-note), ::view-transition-new(component-note),
  ::view-transition-old(workflow-note), ::view-transition-new(workflow-note) { animation-duration: .01ms; }
}

@media print {
  body { background: white; color: #392e29; }
  .light-switch, .hero-aside, .bench-choices, .case-action { display: none; }
  .bench-body { box-shadow: none; }
  .about-letter, .lab { box-shadow: none; }
}

/* Capture each lighting state once; blend the two rendered pages. */
:root[data-light-changing] * { transition: none !important; view-transition-name: none !important; }
:root[data-light-changing]::view-transition,
:root[data-light-changing]::view-transition-group(root),
:root[data-light-changing]::view-transition-image-pair(root) { pointer-events: none; }
:root[data-light-changing]::view-transition-old(root) { animation: light-out 420ms ease both; mix-blend-mode: normal; pointer-events: none; }
:root[data-light-changing]::view-transition-new(root) { animation: light-in 420ms ease both; mix-blend-mode: normal; pointer-events: none; }
@keyframes light-out { to { opacity: 0; } }
@keyframes light-in { from { opacity: 0; } to { opacity: 1; } }

/* A quiet directory stays within reach as the visitor moves down the facade. */
body.home { padding-bottom: 92px; }
html { scroll-padding-bottom: 100px; }
.floor-guide {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  bottom: max(16px, env(safe-area-inset-bottom));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--ink) 16%, transparent);
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  left: 50%;
  padding: 5px;
  position: fixed;
  transform: translateX(-50%);
  width: min(500px, calc(100% - 24px));
  z-index: 5;
}
.floor-guide a {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: .8rem;
  gap: 7px;
  justify-content: center;
  min-height: 44px;
  padding: 8px 6px;
  position: relative;
  text-decoration: none;
}
.floor-guide a > span { color: var(--muted); font-size: .66rem; font-variant-numeric: tabular-nums; }
.floor-guide a::after { background: var(--blue); bottom: 1px; content: ''; height: 2px; left: 8px; opacity: 0; position: absolute; right: 8px; }
.floor-guide a:hover, .floor-guide a[aria-current="location"] { color: var(--ink); }
.floor-guide a[aria-current="location"]::after { opacity: 1; }
.floor-guide a[aria-current="location"] > span { color: var(--blue); }
.practice a[aria-current="true"] { box-shadow: inset 3px 0 var(--blue); }
.practice a[aria-current="true"]:hover { box-shadow: inset 3px 0 var(--blue), 0 11px 25px color-mix(in srgb, var(--ink) 13%, transparent); }
.practice a:focus-visible, .practice a:focus-visible .practice-point { transform: none; transition: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { transition: none; }
summary:focus-visible > span, .field-note summary:focus-visible::after { transition: none; }
h1[tabindex="-1"]:focus-visible, h2[tabindex="-1"]:focus-visible, h3[tabindex="-1"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 7px; }

/* The preview holds the short story; these native drawers expose the substance. */
.work-evidence { border-block: 1px solid var(--line); margin-top: 22px; }
.work-evidence summary { align-items: center; cursor: pointer; display: flex; font-size: .84rem; gap: 16px; justify-content: space-between; list-style: none; min-height: 48px; padding-block: 8px; }
.work-evidence summary::-webkit-details-marker { display: none; }
.work-evidence summary > span { color: var(--blue); font-size: 1.3rem; line-height: 1; transition: transform 160ms ease; }
.work-evidence[open] summary > span { transform: rotate(45deg); }
.work-evidence summary:hover { color: var(--blue); }
.work-evidence .reveal-content { padding-bottom: 17px; }
.boundary-note { display: grid; gap: 12px; margin: 5px 0 0; }
.boundary-note dt { color: var(--blue); font-size: .75rem; font-weight: 600; }
.boundary-note dd { color: var(--muted); font-size: .87rem; line-height: 1.65; margin: 3px 0 0; }
.evidence-list { list-style: none; margin: 0; padding: 0; }
.evidence-list li + li { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 5px; }
.evidence-list a { align-items: center; color: var(--blue); display: inline-flex; font-size: .86rem; line-height: 1.5; min-height: 44px; }
.evidence-list span { color: var(--muted); display: block; font-size: .81rem; line-height: 1.6; }
.case-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 23px; }
.case-actions .case-action { margin-top: 0; }
.case-actions .quiet-link { color: var(--muted); }
.reveal-content { min-width: 0; }

@media (max-width: 480px) {
  .floor-guide a { font-size: .74rem; padding-inline: 3px; }
  .floor-guide a > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .floor-guide a::after, .work-evidence summary > span { transition: none; }
}
@media print {
  .floor-guide { display: none; }
  body.home { padding-bottom: 0; }
}
