

.tri-room-document {
  color-scheme: light;
  --page: #f7f8f7;
  --surface: #fff;
  --ink: #252930;
  --muted: #56606a;
  --line: #dce2df;
  --accent: #427214;
  --brand: #77c72a;
  --glow: #dcebd3;
  --header: 4.125rem;
  --chapter-bar: 3.5rem;
  --gutter: clamp(1.125rem, 5.4vw, 5rem);
  --wrap: 79rem;
}

.tri-room-document[data-theme="dark"] {
  color-scheme: dark;
  --page: #181a20;
  --surface: #22252a;
  --ink: #f4f5f6;
  --muted: #c8ced4;
  --line: #3c4247;
  --accent: #a9d974;
  --brand: #82d243;
  --glow: #293a29;
}

*, *::before, *::after { box-sizing: border-box; }
room-html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
room-body { margin: 0; background: var(--page); color: var(--ink); font: 400 1rem/1.62 "Open Sans", system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip:not(:focus), .sticky-scenes .scene-slot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .625rem 1rem; background: var(--surface); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: calc(var(--header) - 1px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; width: fit-content; gap: .55rem; white-space: nowrap; font-size: 1.35rem; font-weight: 750; letter-spacing: -.06em; }
.brand img { flex: none; }
.brand b { margin-left: .65rem; padding-left: .65rem; border-left: 1px solid var(--line); color: var(--accent); vertical-align: .13em; font-size: .83rem; font-weight: 700; letter-spacing: 0; }
.header-inner nav { display: flex; flex-wrap: wrap; gap: .3rem clamp(1rem, 3vw, 2.75rem); color: var(--muted); font-size: .875rem; font-weight: 650; }
.header-inner nav a:hover { color: var(--accent); }
.theme-switch { display: grid; place-items: center; justify-self: end; padding: 0; width: 2.5rem; height: 2.5rem; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.12rem; }
.theme-switch:hover { border-color: var(--accent); }

.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--accent); font-size: .82rem; font-weight: 750; letter-spacing: .11em; line-height: 1.45; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 1.25rem; height: 1px; background: currentColor; }
.display { font-weight: 750; text-transform: uppercase; line-height: 1.09; letter-spacing: -.044em; text-wrap: balance; }
.display em { color: var(--accent); font-style: normal; font-weight: 300; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .7rem 1.2rem; border-radius: 99px; background: var(--button, var(--accent)); color: var(--button-ink, #fff); font-size: .875rem; font-weight: 750; transition: background 180ms ease, transform 180ms ease; }
.button:hover { background: color-mix(in srgb, var(--button, var(--accent)) 86%, white); transform: translateY(-2px); }
.text-link { display: inline-block; width: fit-content; color: var(--accent); font-size: .875rem; font-weight: 750; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); text-underline-offset: .3em; }
.text-link:hover { text-decoration-color: currentColor; }

.hero {
  --button: #477811;
  --button-ink: #fff;
  --hero-height: clamp(34rem, calc(var(--tri-room-viewport-height, 100vh) * 0.73), 47rem);
  --hero-glow: #f1f3f5;
  --hero-glass: rgb(237 242 245 / .82);
  --hero-glass-edge: rgb(162 183 193 / .42);
  --hero-glass-rim: rgb(255 255 255 / .91);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse at 77% 52%, var(--hero-glow), transparent 66%), var(--surface);
}
[data-theme="dark"] .hero {
  --button: #a9d974;
  --button-ink: #1e3014;
  --hero-glow: #29343b;
  --hero-glass: rgb(43 49 57 / .84);
  --hero-glass-edge: rgb(130 146 161 / .4);
  --hero-glass-rim: rgb(208 224 238 / .22);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.14fr); min-height: var(--hero-height); align-items: center; }
.hero-copy { position: relative; z-index: 2; padding-block: clamp(2.6rem, 7vw, 5.5rem); }
.hero h1 { margin: .85rem 0 1.25rem; font-size: clamp(3.05rem, 5.15vw, 5.85rem); text-wrap: initial; }
.hero h1 em { display: block; margin: .06em 0 0 .55em; }
.hero-copy > p:not(.eyebrow) { max-width: 43ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); text-wrap: pretty; }
.hero .button { margin-top: 1.55rem; }
.hero-visual { position: relative; isolation: isolate; margin: 0 -4% 0 -4%; }
.room-image { width: 100%; height: auto; filter: drop-shadow(0 1.3rem 1.45rem #1b2e392e); animation: room-arrives 800ms cubic-bezier(.18,.62,.22,1) both; }
.surface-grid {
  position: absolute; z-index: -1; inset: 34% -12% -18%;
  background: repeating-linear-gradient(90deg, #b9d3d13b 0 1px, transparent 1px 41px), repeating-linear-gradient(0deg, #b9d3d13b 0 1px, transparent 1px 41px);
  transform: perspective(300px) rotateX(54deg);
  mask-image: radial-gradient(ellipse, #000 2%, transparent 67%);
}
.hero-agent {
  position: absolute;
  left: 69%;
  bottom: 9%;
  width: 45%;
  margin: 0;
  translate: -50% 0;
  animation: room-arrives 800ms 110ms cubic-bezier(.18,.62,.22,1) both;
}
.hero-agent::before {
  position: absolute;
  inset: auto 22% 2% 23%;
  height: 5%;
  border-radius: 50%;
  background: #29364240;
  filter: blur(8px);
  content: "";
}
.agent-portrait { position: relative; width: 100%; height: auto; filter: drop-shadow(.45rem .6rem .65rem #19293932); }
.agent-credit {
  position: absolute;
  right: -16%;
  bottom: -6%;
  translate: 0 50%;
  display: flex;
  align-items: center;
  gap: .65rem;
  width: max-content;
  padding: .55rem .78rem .55rem .55rem;
  border: 1px solid var(--hero-glass-edge);
  border-radius: 1rem;
  background: var(--hero-glass);
  box-shadow: inset 0 1px var(--hero-glass-rim), 0 .55rem 1.5rem #1932481a;
  backdrop-filter: blur(16px) saturate(1.16);
}
.agent-medallion { display: grid; place-items: center; flex: none; width: 2.35rem; aspect-ratio: 1; border: 1px solid var(--hero-glass-edge); border-radius: 50%; background: #fff; }
.agent-medallion img { width: 68%; height: auto; }
.agent-credit strong, .agent-credit small { display: block; }
.agent-credit strong { font-size: clamp(1.15rem, 2vw, 1.7rem); line-height: 1; letter-spacing: -.04em; }
.agent-credit small { margin-top: .2rem; color: var(--muted); font-size: .76rem; font-weight: 650; line-height: 1.25; }

.case-bridge { padding: clamp(2.8rem, 5.5vw, 5rem) 0 clamp(1.7rem, 3.7vw, 3.4rem); border-block: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--glow) 66%, var(--surface)), transparent 72%), var(--page); }
.case-wrap { max-width: 67rem; }
.section-intro { margin-bottom: clamp(1.25rem, 2.75vw, 2.25rem); text-align: center; }
.section-intro h2 { margin-bottom: .5rem; font-size: clamp(1.95rem, 4vw, 3.6rem); }
.section-intro p { color: var(--muted); text-wrap: balance; }
.case-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--line); box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.case-picker button { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.6rem, 1.45vw, 1.35rem); min-height: 6rem; padding: clamp(.85rem, 1.85vw, 1.5rem); border: 0; background: var(--surface); color: var(--ink); text-align: left; }
.case-picker button:hover { background: color-mix(in srgb, var(--surface) 91%, var(--glow)); }
.case-picker button:focus-visible { z-index: 1; outline-offset: -5px; border-radius: .55rem; }
.case-picker button[aria-pressed="true"] { background: linear-gradient(140deg, color-mix(in srgb, var(--surface) 44%, var(--glow)), var(--surface)); }
.case-picker button[aria-pressed="true"]::after { content: ""; position: absolute; inset: auto 1rem 0; height: 3px; border-radius: 4px 4px 0 0; background: var(--brand); }
.case-option-icon { display: grid; place-items: center; width: clamp(2.45rem, 4.2vw, 3.65rem); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.case-option-icon img { width: 58%; height: auto; }
.case-option-copy { display: grid; gap: .25rem; line-height: 1.28; }
.case-option-copy strong { font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 750; letter-spacing: -.035em; }
.case-option-copy small { color: var(--muted); font-size: .9rem; text-wrap: pretty; }
.case-option-mark { width: .95rem; aspect-ratio: 1; border: 1px solid var(--muted); border-radius: 50%; }
[aria-pressed="true"] > .case-option-mark { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 42%, transparent 46%); }
.case-bridge-next { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.25rem; padding: .9rem .1rem 0; }
.case-bridge-next p { font-weight: 650; }

.stories { background: radial-gradient(ellipse at 74% 42%, color-mix(in srgb, var(--glow) 41%, transparent), transparent 73%); }
.case-story { max-width: 72rem; padding-block: 0 clamp(2.2rem, 4vw, 4rem); }
.chapters {
  position: sticky; z-index: 4; top: var(--header);
  display: flex; align-items: center; gap: clamp(.6rem, 3vw, 2.2rem); min-height: var(--chapter-bar);
  padding: .3rem 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 93%, transparent);
  backdrop-filter: blur(16px);
}
.chapters a { position: relative; padding: .55rem 0; color: var(--muted); font-size: .87rem; font-weight: 650; line-height: 1.24; text-wrap: balance; }
.chapters a:hover, .chapters [aria-current="step"] { color: var(--accent); }
.chapters [aria-current="step"]::after { content: ""; position: absolute; inset: auto 0 .15rem; height: 2px; border-radius: 2px; background: var(--brand); }
.story-layout { display: grid; align-items: start; gap: 0 clamp(1.5rem, 5.5vw, 5.2rem); }
.sticky-scenes .story-layout { grid-template-columns: minmax(0, .92fr) minmax(0, 1.2fr); }
.scene { scroll-margin-top: calc(var(--chapter-bar) + .25rem); display: grid; align-content: center; gap: 1.45rem; padding-block: clamp(1.9rem, 6vw, 3.5rem); }
.scene + .scene { border-top: 1px solid var(--line); }
.sticky-scenes .scene { min-height: clamp(28rem, calc(var(--tri-room-viewport-height, 100vh) * 0.68), 40rem); }
.scene h2 { font-size: clamp(1.8rem, 3.35vw, 3.35rem); margin: .68rem 0 .85rem; }
.scene h2 em { display: block; }
.scene-copy > p:not(.eyebrow) { max-width: 46ch; color: var(--muted); text-wrap: pretty; }
.story-stage { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header) + var(--chapter-bar) + clamp(1.1rem, calc(var(--tri-room-viewport-height, 100vh) * 0.04), 3rem)); padding-top: .25rem; }
.story-outro { display: flex; justify-content: flex-end; padding-top: .75rem; border-top: 1px solid var(--line); }

.tricoma-frame {
  --room-pane: #22252a;
  --room-pane-ink: #f4f5f6;
  --room-pane-muted: #c4cbd2;
  --room-pane-soft: #30363e;
  --room-frame: #38424d;
}
.tricoma-frame.tri-reference .invisible-window {
  position: relative; width: 100%; height: auto; max-width: none; margin: 0;
  --window-frame-content-background: var(--room-pane);
  --color-surface-default: var(--room-pane);
  --color-text-default: var(--room-pane-ink);
}
.tricoma-frame .invisible-window.invisible-window--rail > .invisible-window__body { display: block; flex: 1 1 auto; min-width: 0; min-height: 22rem; background: var(--room-pane); color: var(--room-pane-ink); }
.tricoma-frame .invisible-window.invisible-window--rail > .invisible-window__glass-edge { background: linear-gradient(135deg, var(--room-frame), var(--room-pane-soft)); }
.tricoma-frame .invisible-window__titlebar .invisible-window__control { color: var(--room-pane-muted); }
.tricoma-frame .invisible-window__identity { display: grid; place-items: center; }
.tricoma-frame .invisible-window__identity img { width: 67%; height: auto; }
.rail-icons { display: grid; gap: .65rem; justify-items: center; margin-top: .8rem; }
.rail-icons span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid transparent; border-radius: .6rem; }
.rail-icons .selected { border-color: #a9d97460; background: #a9d97422; }
.chapter-progress { height: 3px; border-radius: 99px; background: var(--line); margin: 1rem .15rem 0; overflow: hidden; }
.chapter-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }

.scene-visual {
  --demo-line: #ffffff29;
  --demo-ink: #f4f5f6;
  --demo-muted: #c4cbd2;
  --demo-accent: #bcec88;
  --demo-panel: #22252a;
  display: grid; align-content: start; gap: 1rem; width: 100%; min-width: 0; padding: clamp(.95rem, 2.15vw, 1.65rem);
  background: radial-gradient(ellipse at 38% 0%, #ffffff0c, transparent 68%), var(--demo-panel);
  color: var(--demo-ink);
}
.scene-slot .scene-visual { border: 1px solid #3c4247; border-radius: 1rem; box-shadow: 0 12px 24px #10181e15; }
.app-head { display: flex; align-items: center; gap: .6rem .8rem; min-width: 0; padding-bottom: .8rem; border-bottom: 1px solid var(--demo-line); }
.app-head > img { flex: none; width: 2.55rem; height: auto; }
.app-head h3 { font-size: clamp(1rem, 1.7vw, 1.3rem); font-weight: 750; line-height: 1.22; letter-spacing: -.025em; }
.app-head p { margin-top: .16rem; color: var(--demo-muted); font-size: .825rem; line-height: 1.36; }
.contact-avatar { position: relative; flex: none; width: 2.65rem; height: 2.65rem; overflow: hidden; border: 1px solid #ffffff36; border-radius: 50%; background: #3e5665; }
.contact-avatar img { position: absolute; left: 60%; top: -10%; width: 420%; max-width: none; height: auto; translate: -50% 0; }
.demo-tag { align-self: flex-start; margin: .15rem 0 0 auto; padding: .2rem .5rem; border: 1px solid var(--demo-line); border-radius: 99px; color: var(--demo-muted); font-size: .75rem; font-weight: 650; white-space: nowrap; }
.thread { display: grid; gap: .7rem; }
.message { max-width: 89%; min-width: 0; padding: .65rem .9rem .75rem; border: 1px solid #ffffff21; border-radius: .9rem; color: var(--demo-ink); line-height: 1.5; }
.message small { display: block; margin-bottom: .12rem; color: #e4d5fa; font-size: .825rem; font-weight: 750; }
.message p { font-size: .92rem; }
.message-user { justify-self: end; background: #374047; border-end-end-radius: .25rem; }
.message-user small { color: #d8e0e4; }
.message-agent { justify-self: start; background: #372e47; border-end-start-radius: .25rem; }

.source-list, .action-list { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.source-list li, .action-list li { position: relative; min-width: 0; padding: .55rem .68rem; border: 1px solid var(--demo-line); border-radius: .6rem; background: #ffffff07; }
.source-list li { display: flex; align-items: center; gap: .65rem; isolation: isolate; overflow: hidden; }
.source-list li img { flex: 0 0 1.9rem; }
.source-list strong, .action-list strong { display: block; font-size: .94rem; line-height: 1.3; }
.source-list small, .action-list p { display: block; margin-top: .15rem; color: var(--demo-muted); font-size: .85rem; line-height: 1.4; }
.source-list li::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(100deg, #a9d9740d, #a9d97430, transparent); transform: scaleX(var(--source-reveal, 1)); transform-origin: left; }
.source-list li:nth-child(1) { --source-reveal: clamp(.12, var(--scene-reveal, 1) * 3, 1); }
.source-list li:nth-child(2) { --source-reveal: clamp(.09, (var(--scene-reveal, 1) - .25) * 3, 1); }
.source-list li:nth-child(3) { --source-reveal: clamp(.06, (var(--scene-reveal, 1) - .5) * 3, 1); }
.action-list { counter-reset: actions; }
.action-list li { counter-increment: actions; padding: .65rem .7rem .65rem 2.8rem; }
.action-list li::before { content: counter(actions); position: absolute; left: .68rem; top: .68rem; display: grid; place-items: center; width: 1.6rem; aspect-ratio: 1; border: 1px solid #a9d97460; border-radius: 50%; color: var(--demo-accent); background: #a9d97419; font-size: .75rem; font-weight: 750; }
.source-foot { display: flex; align-items: center; gap: .5rem; color: var(--demo-accent); font-size: .83rem; font-weight: 650; line-height: 1.35; }
.source-foot img { flex: none; }
.revenue-impact {
  display: grid;
  gap: .35rem;
  padding: .85rem 1rem 1rem;
  border: 1px solid #a9d97455;
  border-radius: .7rem;
  background: radial-gradient(ellipse at 10% 100%, #a9d97423, transparent 85%), #a9d9740c;
}
.revenue-impact strong { color: var(--demo-accent); font-size: clamp(2.55rem, 6vw, 4.35rem); line-height: 1; letter-spacing: -.045em; }
.revenue-impact span { color: var(--demo-ink); font-size: .9rem; font-weight: 650; }
.is-active .revenue-impact { animation: scene-arrives 520ms cubic-bezier(.2,.65,.25,1) 85ms both; }
.is-active .app-head, .is-active .message, .is-active li, .is-active .source-foot { animation: scene-arrives 420ms cubic-bezier(.2,.65,.25,1) both; }
.is-active :is(.message, li):nth-child(1) { animation-delay: 65ms; }
.is-active :is(.message, li):nth-child(2) { animation-delay: 175ms; }
.is-active li:nth-child(3) { animation-delay: 280ms; }
.is-active .source-foot { animation-delay: 330ms; }

.agents { overflow: clip; padding-block: clamp(2.6rem, 7vw, 6rem); border-block: 1px solid var(--line); background: radial-gradient(ellipse at 27% 52%, var(--glow), transparent 65%), var(--surface); }
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); gap: clamp(1rem, 5vw, 5rem); align-items: center; max-width: 72rem; }
.agents-portrait { position: relative; isolation: isolate; min-height: clamp(26rem, 38vw, 33rem); }
.agents-mark { position: absolute; top: 8%; left: 22%; width: 56%; opacity: .15; }
.agents-portrait .surface-grid { inset: 38% -10% -10%; background: repeating-linear-gradient(90deg, #657c7444 0 1px, transparent 1px 35px), repeating-linear-gradient(0deg, #657c7444 0 1px, transparent 1px 35px); }
.baseplate { position: absolute; inset: auto 11% 9%; height: 15%; border: 1px solid var(--surface); border-radius: 50%; background: linear-gradient(var(--surface), color-mix(in srgb, var(--glow) 48%, var(--line))); box-shadow: 0 6px 0 var(--line), 0 16px 28px #223c3326; }
.agents-person { position: absolute; bottom: 8%; left: 50%; height: 92%; width: auto; max-width: 100%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(.5rem .7rem .8rem #221e3433); }
.agents-copy h2 { margin: .7rem 0 1rem; font-size: clamp(2rem, 4vw, 3.75rem); }
.agents-copy h2 em { display: block; }
.agent-tasks { display: grid; list-style: none; margin: 0 0 1rem; padding: 0; }
.agent-tasks li { display: flex; align-items: flex-start; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.agent-tasks li img { flex: none; }
.agent-tasks li p { color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1.25rem; padding-block: 1rem; color: var(--muted); font-size: .85rem; }
.site-footer .brand { color: var(--ink); font-size: 1.12rem; }

@keyframes room-arrives { from { opacity: 0; transform: translateY(1.2rem) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes scene-arrives { from { opacity: .4; transform: translateY(.55rem); } to { opacity: 1; transform: none; } }

@media (min-width: 58.01rem) {
  .case-story:not(.sticky-scenes) .scene { grid-template-columns: minmax(0, .92fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5.5vw, 5.2rem); align-items: center; }
}
@media (max-width: 58rem) {
  .hero { --hero-height: 31rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-visual { margin-inline: -4% -6%; }
  .hero-copy > p:not(.eyebrow) { padding-right: 1.4rem; }
  .case-story { max-width: 41rem; }
}
@media (max-width: 45rem) {
  .tri-room-document { --header: 3.6rem; --chapter-bar: 3.65rem; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 1.7rem; height: auto; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-inner nav { display: none; }
  .theme-switch { width: 2.35rem; height: 2.35rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; max-width: 35rem; }
  .hero-copy { padding: 2.6rem 0 0; }
  .hero h1 { font-size: clamp(2.45rem, 9.5vw, 4.1rem); }
  .hero-visual { display: flex; align-items: end; min-height: clamp(18.5rem, 87vw, 28rem); margin: .4rem -.55rem 1.5rem; }
  .hero-agent { left: 68%; bottom: 9%; width: min(55%, 17.75rem); }
  .hero-copy > p:not(.eyebrow) { padding-right: 0; }
  .agent-credit { left: 51%; right: auto; translate: -50% 50%; }
  .case-picker { grid-template-columns: minmax(0, 1fr); }
  .case-picker button { min-height: 4.75rem; }
  .case-picker button[aria-pressed="true"]::after { inset: .55rem auto .55rem 0; width: 3px; height: auto; border-radius: 0 4px 4px 0; }
  .chapters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .45rem; text-align: center; }
  .chapters a { justify-self: center; }
  .agents-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .agents-copy { grid-row: 1; }
  .agents-portrait { min-height: 0; height: clamp(17rem, 83vw, 25rem); }
}
@media (max-width: 25rem) {
  .agent-credit { padding: .37rem .57rem .37rem .45rem; gap: .45rem; }
  .agent-medallion { width: 1.85rem; }
  .message { max-width: 95%; }
}
@media (prefers-reduced-motion: reduce) {
  room-html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .source-list li { --source-reveal: 1 !important; }
}
