

.tri-room-document {
  color-scheme: dark;
  --paper: #181a20;
  --band: #1d2026;
  --surface: #252930;
  --field: #1f2329;
  --ink: #f3f4f4;
  --muted: #bcc5c5;
  --accent: #a5ce77;
  --button: #b1d984;
  --button-text: #182111;
  --line: #3c4447;
  --hover: #303a35;
  --shadow: 0 20px 60px #0a0d1260;
  --signature: #c7c7f2;
  --header: 70px;
}
[data-theme="light"] {
  color-scheme: light;
  --paper: #fff;
  --band: #f3f5f2;
  --surface: #fff;
  --field: #fafbf9;
  --ink: #253129;
  --muted: #516059;
  --accent: #4d792c;
  --button: #416b28;
  --button-text: #fff;
  --line: #d6e0d7;
  --hover: #eef3ea;
  --shadow: 0 18px 44px #34483420;
  --signature: #32367f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
room-html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 18px); }
room-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 "Open Sans", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:is(a, button, select, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.05em; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(2.85rem, 5.15vw, 5.15rem); font-weight: 750; }
h2 { font-size: clamp(2.3rem, 5vw, 4.45rem); font-weight: 750; }
h1 em, h2 em { color: var(--accent); font-weight: 400; font-style: normal; }
.skip {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  transform: translateY(-180%);
  background: var(--paper);
  padding: .5rem 1rem;
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: max(4vw, 1.25rem);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: var(--header);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
}
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 2.7vw, 2.7rem); }
.site-header nav a, .site-footer > a:last-child { font-size: .9rem; font-weight: 700; }
.site-header nav a:hover, .site-footer > a:last-child:hover { color: var(--accent); }
.brand { display: inline-flex; gap: .36rem; align-items: center; font-size: 1.65rem; font-weight: 780; letter-spacing: -.06em; white-space: nowrap; }
.brand img { flex: none; }
.brand strong { font-size: .95rem; color: var(--accent); letter-spacing: -.03em; margin-left: .22rem; }
.theme-switch, .button, .widget-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  background: var(--surface);
  padding: .48rem 1rem;
  font-size: .875rem;
  line-height: 1.25;
  font-weight: 730;
}
.theme-switch:hover, .widget-picker:hover { background: var(--hover); }
.button { min-height: 46px; padding: .75rem 1.35rem; }
.button.primary { background: var(--button); border-color: var(--button); color: var(--button-text); }
.button.primary:hover { filter: brightness(1.1); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .9rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .065em;
}
.eyebrow::before { content: ""; width: 23px; height: 2px; background: var(--accent); flex: none; }

.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 74% 57%, var(--band), transparent 75%), var(--paper); }
.hero-inner {
  max-width: 1540px;
  min-height: clamp(590px, calc(var(--tri-room-viewport-height, 100vh) * 0.82), 820px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  align-items: center;
  padding-inline: max(5vw, 1.5rem) 0;
}
.hero-copy { position: relative; z-index: 2; padding: 3rem 0 4rem; }
.hero-copy h1 { margin-bottom: 1.45rem; }
.hero-quote { font-size: clamp(1.08rem, 1.6vw, 1.45rem); margin-bottom: .6rem; }
.hero-description { max-width: 42ch; color: var(--muted); margin-bottom: 1.65rem; }
.hero-visual { position: relative; align-self: stretch; min-width: 0; isolation: isolate; }
.hero-glow { position: absolute; inset: 11% 7% 8%; background: radial-gradient(ellipse, #9bbb7540, transparent 68%); pointer-events: none; }
.hero-room { position: absolute; width: 102%; height: 100%; inset: 0 auto 0 -1%; object-fit: contain; filter: drop-shadow(0 23px 23px #0006); }
.hero-avatar {
  position: absolute;
  z-index: 1;
  width: auto;
  height: 74%;
  bottom: 2%;
  right: 7%;
  filter: drop-shadow(4px 10px 12px #09111070);
  clip-path: polygon(49% 2%, 53% 2.7%, 57% 5.4%, 57% 8.7%, 56% 11.3%, 58% 14.9%, 61% 16.8%, 65% 18.2%, 71% 20.1%, 74% 23.4%, 75% 27.3%, 76% 31.3%, 76% 35.5%, 74% 41%, 72.4% 46.8%, 70.1% 50.1%, 68.2% 52.8%, 68.2% 56.7%, 69% 60.9%, 70% 65%, 70% 71%, 69.4% 74%, 68% 77.5%, 69% 81.9%, 69.2% 86.2%, 68.1% 90.7%, 69.5% 94.6%, 68% 97.1%, 65% 98%, 53.5% 98%, 52.6% 96%, 54% 92.3%, 55.1% 89%, 55.2% 86%, 55.1% 81%, 53.5% 76.5%, 50.8% 72.6%, 47.8% 67.8%, 46.7% 62.6%, 44.2% 69%, 42.6% 74%, 41.1% 79%, 40.5% 84%, 40.5% 88%, 39.5% 91%, 38.2% 92.8%, 32% 93.2%, 27% 92.9%, 24% 91.8%, 24% 90.7%, 28.2% 88.8%, 30.5% 87.6%, 31.9% 84.7%, 31% 81.3%, 31.8% 75.3%, 32% 68%, 32.8% 61.4%, 32.4% 54.4%, 31.3% 51.5%, 31.4% 48%, 32.2% 45%, 33% 41%, 32.4% 39.6%, 29.9% 41.5%, 26.8% 42.3%, 24% 41.4%, 22.2% 39.7%, 22% 37%, 21% 34.3%, 19.4% 31%, 19.3% 29.7%, 21% 29.5%, 29.3% 29.4%, 30.5% 27.6%, 31.1% 23.1%, 33.9% 21.1%, 38.1% 19%, 38.2% 16.3%, 41.2% 15.7%, 39.5% 13.3%, 38.3% 10.2%, 38.1% 7.3%, 39.2% 5.4%, 42.5% 3.5%, 45.2% 2.6%);
}
.hero-id {
  display: flex;
  align-items: center;
  gap: .65rem;
  position: absolute;
  z-index: 3;
  right: 7%;
  bottom: 8%;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.hero-id strong, .hero-id small { display: block; line-height: 1.32; }
.hero-id small { color: var(--muted); font-size: .78rem; }

.story, .section-band, .desktop { padding: clamp(4.4rem, 8vw, 7.8rem) max(5vw, 1.35rem); }
.story-intro { max-width: 780px; text-align: center; margin: 0 auto clamp(2.3rem, 4.4vw, 4.6rem); }
.story-intro .eyebrow { justify-content: center; }
:is(.story-intro, .section-heading) h2 { margin-bottom: 1rem; }
:is(.story-intro, .section-heading) > p:last-child { max-width: 56ch; margin-inline: auto; color: var(--muted); }
.story-grid {
  max-width: 1110px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(230px, .68fr) minmax(0, 1fr);
  gap: clamp(1.7rem, 6vw, 6rem);
  align-items: center;
}
.story-questions h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.question-list { display: grid; }
.question-list button {
  display: block;
  min-height: 55px;
  text-align: left;
  color: var(--muted);
  background: none;
  padding: .8rem .9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-inline-start: 2px solid transparent;
}
.question-list button[aria-pressed="true"] {
  background: var(--hover);
  border-inline-start-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}
.question-list button:hover { color: var(--ink); }
.story-window, .analysis-window { min-width: 0; color: var(--ink); }
.tri-reference .invisible-window-frame {
  --window-frame-content-background: var(--surface);
  --window-card-background: var(--surface);
  --window-background: var(--band);
  --material-glass-background: var(--band);
  --material-glass-header-background: var(--surface);
  --color-surface-default: var(--surface);
  --color-surface-page: var(--band);
  --color-text-default: var(--ink);
  --color-text-muted: var(--muted);
  --font-family-default: "Open Sans", system-ui, sans-serif;
  position: relative;
  min-width: 0;
  width: 100%;
  height: auto;
}
.tri-reference .invisible-window-frame > .invisible-window-frame__content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  color: var(--ink);
  background: var(--surface);
  content-visibility: visible;
  contain: none;
  overflow: visible;
}
.tri-reference .invisible-window-frame > .invisible-window-frame__glass {
  background: linear-gradient(140deg, var(--line), var(--band));
}
.tri-reference .invisible-window__titlebar .invisible-window__control { color: var(--muted); }
.room-window-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 55px;
  padding: .7rem clamp(.8rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}
.room-window-head strong { display: flex; gap: .55rem; align-items: center; font-weight: 740; }
.room-window-head > span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.portrait { display: block; border-radius: 50%; background: #e9ece7; object-fit: cover; object-view-box: inset(2% 40% 84% 36%); }
.room-rail-icon { color: var(--accent); }
.stage-document { padding: clamp(1.05rem, 3vw, 2rem); }
.document-context { color: var(--accent); font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }
.stage-document h3 { font-size: clamp(1.55rem, 3vw, 2.35rem); margin-bottom: .65rem; }
#answer-body { color: var(--muted); max-width: 46ch; }
.result-mention {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid var(--line);
  background: var(--field);
  padding: .45rem .8rem;
  border-radius: 10px;
  margin-top: 1.15rem;
  font-size: .9rem;
  font-weight: 740;
}
.result-mention:hover { background: var(--hover); }
.document-signature { margin-top: .7rem; color: var(--signature); font: 400 2rem/1.15 Peter, cursive; }

.section-band { background: var(--band); }
.section-inner { max-width: 1160px; margin-inline: auto; }
.section-heading { max-width: 780px; text-align: center; margin: 0 auto clamp(2rem, 4vw, 3.7rem); }
.section-heading .eyebrow { justify-content: center; }
.analysis-workspace { display: grid; grid-template-columns: minmax(230px, 28%) minmax(0, 1fr); }
.analysis-form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border-inline-end: 1px solid var(--line);
  background: var(--field);
}
.analysis-form h3 { font-size: 1.125rem; letter-spacing: -.025em; margin-bottom: .25rem; }
.analysis-form label { display: grid; gap: .25rem; color: var(--muted); font-size: .86rem; font-weight: 650; }
.analysis-form select {
  min-width: 0;
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem 2rem .5rem .64rem;
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 14px center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 9px center / 5px 5px no-repeat,
    var(--surface);
  color: var(--ink);
}
.analysis-form .button { margin-top: .35rem; }
.form-status { color: var(--accent); font-size: .85rem; }
.form-status:empty { display: none; }
.form-status a { display: inline-block; text-decoration: underline; padding: .2rem 0; }
.analysis-result { min-width: 0; padding: clamp(1rem, 3vw, 2rem); }
.workspace-label { font-size: .84rem; color: var(--muted); margin-bottom: .65rem; }
.chart-title { font-size: clamp(1.2rem, 2vw, 1.65rem); letter-spacing: -.03em; }
.chart-context { color: var(--muted); font-size: .86rem; }
.chart-total { color: var(--ink); font-weight: 750; letter-spacing: -.055em; font-size: clamp(1.5rem, 3.3vw, 2.7rem); line-height: 1.12; margin: .35rem 0 .25rem; font-variant-numeric: tabular-nums; }
.chart { width: 100%; display: block; overflow: visible; margin-top: .65rem; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .line { stroke: var(--accent); stroke-width: 2.7; fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .point { fill: var(--accent); }
.chart .bar { fill: var(--accent); opacity: .86; }
.chart .area { fill: var(--accent); opacity: .11; }
.chart .axis { fill: var(--muted); font: 640 16px "Open Sans", sans-serif; }
.chart-labels { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 2px; padding-left: 10%; text-align: center; font-size: .75rem; color: var(--muted); }
.widget .chart-labels { font-size: .7rem; }

.desktop-shell {
  --baseplate: url("/templates/tricoma_2026/assets/rooms/media/baseplate-dunkel-2a64e9c309c8.webp");
  --desktop-tint: #14191d37;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(var(--desktop-tint), var(--desktop-tint)), var(--baseplate) center / cover, var(--band);
  box-shadow: var(--shadow), 0 1px 0 #ffffff24 inset;
  padding: clamp(.48rem, 1.4vw, .9rem);
}
[data-theme="light"] .desktop-shell {
  --baseplate: url("/templates/tricoma_2026/assets/rooms/media/baseplate-hell-9d9778e2532a.webp");
  --desktop-tint: #f1f5f13a;
}
.desktop-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .4rem .85rem; padding: .48rem .9rem; min-height: 48px; background: color-mix(in srgb, var(--surface) 83%, transparent); border: 1px solid var(--line); border-radius: 13px; backdrop-filter: blur(16px); }
.desktop-brand { display: inline-flex; align-items: center; gap: .37rem; font-size: 1.1rem; font-weight: 780; letter-spacing: -.05em; }
.desktop-room { color: var(--ink); font-size: .82rem; font-weight: 650; padding: .15rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.desktop-room span { margin-inline-end: .25rem; color: var(--accent); }
.desktop-demo { justify-self: end; color: var(--muted); font-size: .78rem; }
.desktop-body {
  min-height: 340px;
}
.desktop-nav { display: flex; align-items: center; gap: .34rem; padding: .25rem; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.desktop-nav a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 10px; font-size: 1.25rem; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--accent); border-color: var(--line); background: var(--hover); }
.desktop-space { padding: clamp(.8rem, 2.4vw, 1.75rem); min-width: 0; }
.widget-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.widget-bar h3 { font-size: 1.125rem; letter-spacing: -.025em; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .42rem .64rem; }
.widget-picker span { font-size: 1.1rem; }
.widget-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.widget {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 1px 0 #ffffff17 inset;
  padding: .8rem .95rem .95rem;
}
.widget.is-dragging { opacity: .5; }
.widget.is-drop-target { outline: 2px solid var(--accent); }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.widget-label { display: flex; gap: .5rem; align-items: center; }
.widget-label h4 { font-size: .92rem; line-height: 1.25; }
.widget .chart-total { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.widget .chart-context { font-size: .8rem; }
.widget-menu { position: relative; flex: none; color: var(--ink); }
.widget-menu summary { display: grid; place-items: center; list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; font-size: 1.25rem; font-weight: 750; line-height: 1; }
.widget-menu summary::-webkit-details-marker { display: none; }
.widget-menu summary:hover, .widget-menu[open] summary { background: var(--hover); }
.widget-menu > div { position: absolute; right: 0; z-index: 2; width: max-content; min-width: 9rem; padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.widget-menu button { display: block; width: 100%; border: 0; color: inherit; background: none; text-align: start; border-radius: 6px; padding: .35rem .55rem; font-size: .85rem; }
.widget-menu button:not(:disabled):hover { background: var(--hover); }
.widget-empty { grid-column: 1 / -1; padding: 2rem 0; color: var(--muted); }
.desktop-base { display: grid; place-items: center; padding-block: .18rem; }
.desktop-hint { color: var(--muted); font-size: .88rem; text-align: center; margin-top: .95rem; }

.catalog {
  width: min(92vw, 490px);
  max-height: calc(var(--tri-room-viewport-height, 100vh) * 0.85);
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.catalog::backdrop { background: #080b10bd; backdrop-filter: blur(5px); }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; }
.catalog-head h2 { font-size: 1.5rem; text-transform: none; }
.close-catalog { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--field); font-size: 1.3rem; line-height: 1; }
.catalog > p { color: var(--muted); }
.catalog-options { display: grid; margin-top: .75rem; }
.catalog-options button {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  padding: .7rem .2rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  text-align: start;
}
.catalog-options button:hover:not(:disabled) { color: var(--accent); }
.catalog-options small { margin-inline-start: auto; color: var(--muted); }
.site-footer { min-height: 78px; flex-wrap: wrap; background: var(--band); border-top: 1px solid var(--line); padding-block: .75rem; }
.site-footer > span { color: var(--muted); font-size: .88rem; }
.site-footer .brand { font-size: 1.25rem; }

@media (max-width: 1050px) {
  .hero-inner { min-height: 590px; grid-template-columns: minmax(0, 46%) minmax(0, 54%); }
  .hero-avatar { height: 63%; right: 2%; bottom: 12%; }
  .hero-id { right: 6%; bottom: 12%; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding: 0; }
  .hero-copy { padding: 2.9rem 1.35rem 0; }
  .hero-visual { height: clamp(295px, 65vw, 540px); margin-top: .25rem; }
  .hero-room { width: 100%; inset-inline-start: 0; }
  .hero-avatar { height: 84%; right: 10%; bottom: 3%; }
  .hero-id { bottom: 6%; right: 6%; }
  .story-grid, .analysis-workspace { grid-template-columns: 1fr; }
  .analysis-form { border-inline-end: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-form > :is(h3, button, p) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .tri-room-document { --header: 94px; }
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .5rem; padding-block: .4rem .6rem; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; gap: 1.65rem; }
  .site-header .theme-switch { grid-row: 1; grid-column: 2; }
  .hero-copy h1 { font-size: clamp(2.23rem, 9vw, 3rem); }
  .hero-copy { padding-top: 2.3rem; }
  .hero-avatar { right: 5%; }
  .hero-id { bottom: 4%; }
  .widget-area { grid-template-columns: 1fr; }
  .desktop-bar { grid-template-columns: 1fr auto; }
  .desktop-nav a { width: 32px; height: 34px; }
  .desktop-room { display: none; }
  .desktop .section-heading h2 { font-size: clamp(1.92rem, 9vw, 2.65rem); }
  .room-window-head { font-size: .85rem; }
  .stage-document { padding: 1rem .76rem; }
  .site-footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  room-html { scroll-behavior: auto; }
}
