:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #171b20;
  --muted: #5d605f;
  --line: #e3e0d9;
  --obsidian: #090d14;
  --accent: #a44c36;
  --brass: #b87953;
  --wrap: min(1320px, calc(100% - 108px));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; inset: 10px auto auto 10px; z-index: 30; padding: 12px; background: white; }
.navigation { position: fixed; top: 14px; width: 100%; z-index: 10; pointer-events: none; }
.nav-shell {
  pointer-events: auto; width: min(1092px, calc(100% - 72px)); min-height: 63px; margin: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 8px 10px 8px 17px;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / .17); color: white; background: rgb(19 22 28 / .68);
  backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 9px 32px rgb(0 0 0 / .2), inset 0 1px 0 rgb(255 255 255 / .09);
  transition: color .3s, background .35s, border-color .35s, box-shadow .35s, width .5s var(--spring);
}
.nav-shell.is-light { color: var(--ink); background: rgb(252 251 248 / .88); border-color: rgb(255 255 255 / .95); box-shadow: 0 7px 26px rgb(28 23 15 / .12), inset 0 0 0 1px rgb(82 64 46 / .11); }
.nav-shell.is-floating { width: min(1012px, calc(100% - 72px)); }
.identity { display: inline-flex; align-items: center; gap: 7px; width: max-content; white-space: nowrap; }
.identity img { filter: brightness(0) invert(1); transition: filter .3s; }
.is-light .identity img { filter: brightness(0); }
.identity strong { font-size: 20px; letter-spacing: -.045em; }
.nav-shell nav { display: flex; align-items: center; gap: clamp(20px, 3.15vw, 44px); }
.nav-shell nav a { display: inline-grid; align-items: center; min-height: 40px; white-space: nowrap; font-size: 14px; font-weight: 560; }
.nav-shell nav a:hover { color: #dfa88b; }
.nav-shell.is-light nav a:hover { color: var(--accent); }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 20px; white-space: nowrap; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 660; line-height: 1.2;
}
.button > span:not(.ripple-layer) { font-size: 1.12em; font-weight: 500; }
.primary { color: #fff; background: #20252a; border-color: #20252a; box-shadow: inset 0 1px 0 rgb(255 255 255 / .15); }
.primary:hover { background: #353b40; }
.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.nav-action {
  min-height: 40px; justify-self: end; padding-inline: 16px; font-size: 13px; font-weight: 600;
  color: #f4efe8; background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .28);
}
.nav-action:hover { background: rgb(255 255 255 / .14); border-color: rgb(237 187 159 / .55); color: #fff; }
.nav-shell.is-light .nav-action {
  color: var(--ink); background: transparent; border-color: rgb(23 27 32 / .24);
}
.nav-shell.is-light .nav-action:hover {
  background: rgb(23 27 32 / .06); border-color: var(--ink);
}
.dark-section .primary { color: #12171c; background: #fffaf3; border-color: #fffaf3; }
.dark-section .primary:hover { background: #ffebd9; border-color: #ffebd9; }
.dark-section .secondary { color: #fff; background: rgb(33 35 42 / .55); border-color: rgb(255 255 255 / .24); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .10); }
.dark-section .secondary:hover { background: rgb(62 54 49 / .64); }
.dark-section { position: relative; isolation: isolate; overflow: clip; color: #fff; background: var(--obsidian); }
.backdrop { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero {
  background: linear-gradient(155deg, #090d14 0%, #0d121c 56%, #111622 100%);
}
.hero::before, .custom::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero::before {
  background:
    radial-gradient(ellipse 56% 62% at 76% 48%, rgb(184 121 83 / .11), transparent 68%),
    radial-gradient(ellipse 46% 52% at 18% 24%, rgb(164 76 54 / .07), transparent 72%),
    linear-gradient(180deg, rgb(9 13 20 / .24) 0%, transparent 24%, transparent 80%, #090d14 100%);
}
.hero-backdrop {
  position: absolute; z-index: -3; inset: -16px; pointer-events: none;
  translate: var(--art-x, 0) var(--art-y, 0);
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .034) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .034) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 84% 78% at 56% 46%, #000 32%, transparent 94%);
  mask-image: radial-gradient(ellipse 84% 78% at 56% 46%, #000 32%, transparent 94%);
}
.hero-particles { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1.05fr);
  align-items: start; gap: clamp(32px, 4.4vw, 68px); min-height: auto; padding: 162px 0 74px;
}
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.eyebrow { color: #edbb9f; font-size: 11px; font-weight: 690; letter-spacing: .16em; line-height: 1.6; }
.eyebrow span { padding-inline: .17em; }
.hero h1 {
  margin-block: 16px 14px; color: #fff; font-size: clamp(38px, 4.1vw, 58px); font-weight: 710;
  line-height: 1.14; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.hero-lead { max-width: 34em; color: #d7d2cc; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.66; }
.lead-mobile { display: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.actions .button, .custom-actions .button { min-height: 52px; padding-inline: 24px; font-size: 15px; }
.hero-cta-secondary { gap: 6px; font-weight: 600; }
.cta-note { color: #c9ccd3; font-size: 12px; font-weight: 480; letter-spacing: .01em; }
.hero-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 30px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12);
}
.trust-item {
  display: grid; align-content: start; gap: 5px; min-width: 0; padding: 12px 12px;
  border-radius: 13px; border: 1px solid rgb(255 255 255 / .11); background: rgb(255 255 255 / .04);
}
.trust-link {
  border-color: rgb(255 255 255 / .15); background: rgb(255 255 255 / .055);
  transition: background .22s, border-color .22s;
}
.trust-link:hover, .trust-link:focus-visible {
  background: rgb(237 187 159 / .12); border-color: rgb(237 187 159 / .40);
}
.trust-title { display: flex; align-items: center; gap: 4px; color: #ffffff; font-size: 14px; font-weight: 660; line-height: 1.3; }
.trust-title span { color: #edbb9f; font-size: 14px; font-weight: 500; }
.trust-desc { color: #c9ccd3; font-size: 14px; line-height: 1.48; }
.hero-showcase { position: relative; z-index: 1; min-width: 0; align-self: center; margin-top: -10px; }
.hero-deck {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  padding: 26px 26px 0 0; isolation: isolate;
}
.figure-card {
  grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr; width: 100%; min-width: 0; overflow: hidden;
  border-radius: 18px; background: #fff; border: 1px solid rgb(255 255 255 / .90);
  transform-origin: 50% 55%; cursor: pointer; user-select: none;
  transition: transform .52s var(--spring), opacity .32s ease, box-shadow .38s ease, background-color .32s ease;
}
.figure-card[data-slot="front"] {
  z-index: 3; cursor: default; opacity: 1; filter: none;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow: 0 28px 68px rgb(0 0 0 / .60), 0 6px 20px rgb(0 0 0 / .34), 0 0 0 1px rgb(255 255 255 / .90);
}
.figure-card[data-slot="mid"] {
  z-index: 2; opacity: 1; filter: none;
  background: #f1ede7; border-color: rgb(255 255 255 / .56);
  transform: translate3d(13px, -13px, 0) scale(.975);
  box-shadow: 0 18px 44px rgb(0 0 0 / .44);
}
.figure-card[data-slot="back"] {
  z-index: 1; opacity: .94; filter: none;
  background: #e2ddd4; border-color: rgb(255 255 255 / .36);
  transform: translate3d(26px, -26px, 0) scale(.95);
  box-shadow: 0 12px 32px rgb(0 0 0 / .36);
}
.figure-card[data-slot="mid"] .figure-card-head,
.figure-card[data-slot="back"] .figure-card-head {
  background: transparent; border-bottom-color: transparent;
}
.figure-card[data-slot="mid"] .figure-card-head > *,
.figure-card[data-slot="back"] .figure-card-head > *,
.figure-card[data-slot="mid"] .figure-card-frame img,
.figure-card[data-slot="back"] .figure-card-frame img {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.figure-card[data-slot="mid"] .figure-card-frame,
.figure-card[data-slot="back"] .figure-card-frame {
  background: transparent;
}
.figure-card[data-slot="front"] .figure-card-head > *,
.figure-card[data-slot="front"] .figure-card-frame img {
  opacity: 1; visibility: visible; transition: opacity .26s ease .06s;
}
@media (hover: hover) {
  .figure-card[data-slot="mid"]:hover {
    transform: translate3d(16px, -16px, 0) scale(.98);
  }
  .figure-card[data-slot="back"]:hover {
    transform: translate3d(29px, -29px, 0) scale(.955);
  }
}
.figure-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0;
  padding: 10px 14px; background: #faf8f4; border-bottom: 1px solid #eae5dc;
}
.figure-card-title { color: #171b20; font-size: 13.5px; font-weight: 680; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figure-card-badge {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  color: #7d442c; background: #f7efe9; border: 1px solid #ead7c9;
  font-size: 11px; font-weight: 660; letter-spacing: .04em;
}
.figure-card-frame {
  position: relative; width: 100%; min-width: 0; aspect-ratio: 4 / 3; background: #fff;
}
.figure-card-frame img {
  position: absolute; inset: 10px 12px 10px; width: calc(100% - 24px); height: calc(100% - 20px);
  display: block; object-fit: contain;
}
.hero-deck-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-right: 26px;
}
.hero-showcase .segments {
  background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12);
}
.hero-showcase .segments button { color: #cfcbc6; min-height: 34px; font-size: 12.5px; padding-inline: 15px; }
.hero-showcase .segments button[aria-pressed="true"] { color: #fffaf3; }
.hero-showcase .segments .glide-pill {
  background: #2f333b; border-color: rgb(255 255 255 / .16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 3px 10px rgb(0 0 0 / .32);
}
.hero-try-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px;
  border: 0; background: transparent; color: #e8d5c7; font-size: 14px; font-weight: 540;
  white-space: nowrap; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgb(237 187 159 / .52); transition: color .2s, text-decoration-color .2s;
}
.hero-try-link:hover { color: #ffffff; text-decoration-color: #ffffff; }
.stage-kicker { color: #635f58; font-size: 11px; font-weight: 660; letter-spacing: .075em; line-height: 1.25; margin-bottom: 5px; }
.result-head h3 { font-size: 19px; font-weight: 690; letter-spacing: -.04em; }
.segments { display: flex; align-items: center; width: fit-content; max-width: 100%; position: relative; isolation: isolate; padding: 3px; gap: 1px; background: #ebe9e4; border: 1px solid #e2dfd7; border-radius: 999px; }
.segments button { flex: 1 1 auto; position: relative; color: #3e4443; background: transparent; border: 0; border-radius: inherit; padding: 0 clamp(8px, 1vw, 15px); min-height: 38px; white-space: nowrap; font-size: 13px; font-weight: 630; }
.segments button[aria-pressed="true"] { color: #15191e; background: #fff; }
.segments.has-glide button[aria-pressed="true"] { background: transparent; }
.segments .glide-pill { background: #fff; border-color: #fff; box-shadow: 0 2px 5px rgb(47 39 26 / .16); }
.segments.compact button { min-height: 34px; font-size: 12px; padding-inline: 10px; }
.plot { position: relative; min-width: 0; border-radius: 13px; }
.plot canvas { display: block; width: 100%; height: 100%; border-radius: inherit; touch-action: pan-y; }
.plot canvas:focus-visible { outline-offset: -3px; }
.result-plot canvas.is-over-threshold { cursor: grab; }
.result-plot canvas.is-dragging-threshold { cursor: grabbing; }
.tooltip {
  position: absolute; pointer-events: none; z-index: 2; min-width: 128px; max-width: min(255px, 87%); padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / .24); border-radius: 13px; color: #fff9f3;
  background: rgb(18 23 29 / .91); backdrop-filter: blur(18px) saturate(152%);
  box-shadow: 0 9px 30px rgb(12 14 17 / .32), inset 0 1px 0 rgb(255 255 255 / .10);
  opacity: 0; transform: translateY(3px) scale(.98); transition: opacity .14s, transform .2s var(--spring);
  font-size: 11px; line-height: 1.4; overflow-wrap: anywhere;
}
.tooltip.is-visible { opacity: 1; transform: none; }
.tooltip strong { display: block; margin-bottom: 5px; font-size: 12px; }
.tooltip dl { display: grid; grid-template-columns: minmax(0,auto) minmax(0,1fr); gap: 2px 10px; margin: 0; }
.tooltip dt { color: #d5d1cb; }
.tooltip dd { margin: 0; text-align: right; font-weight: 670; }
.tooltip table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 11px; }
.tooltip :is(th, td) { padding: 3px 0 3px 6px; text-align: right; white-space: nowrap; }
.tooltip :is(th, td):first-child { padding-left: 0; text-align: left; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
.tooltip th { color: #e1d5ca; }
.workspace { padding: 84px 0 95px; background: radial-gradient(ellipse at 12% 0, #f9f6f0, transparent 52%), #efede8; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }
.section-head h2, .custom h2, .retainer h2 { font-size: clamp(35px, 4vw, 57px); font-weight: 710; letter-spacing: -.065em; line-height: 1.12; }
.section-head p { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.workbench { border-radius: 22px; border: 1px solid #d8d3ca; background: #fff; box-shadow: 0 22px 51px rgb(44 37 29 / .10), 0 2px 7px rgb(44 37 29 / .06); }
.studio-chrome { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 15px; background: #faf9f6; border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
.studio-name, .studio-tools, .studio-data, .plot-tools { display: flex; align-items: center; gap: 8px; }
.studio-name { font-size: 14px; font-weight: 720; white-space: nowrap; }
.studio-symbol { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #23282d; color: #f0c4a7; }
.studio-tools { flex: 0 0 auto; }
.studio-tools .run { min-height: 42px; padding-inline: 13px; font-size: 13px; }
.icon-button { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid #e4e1db; background: #fff; color: #414645; }
.icon-button:hover:not(:disabled) { border-color: #c69b83; color: #8d3d25; }
.studio-data { padding: 9px 16px; gap: 12px; min-height: 51px; border-bottom: 1px solid var(--line); background: #fdfcf9; font-size: 12px; }
.studio-data > strong { white-space: nowrap; }
.studio-body { display: grid; grid-template-columns: minmax(204px, 246px) minmax(0, 1fr); }
.controls { align-content: start; display: grid; gap: 16px; min-width: 0; padding: 19px 16px; background: #faf9f6; border-right: 1px solid var(--line); }
.controls h3 { font-size: 14px; font-weight: 710; }
.dropzone { display: grid; justify-items: center; align-content: center; gap: 6px; cursor: pointer; min-height: 89px; padding: 10px 6px; border: 1px dashed #c9bdb0; border-radius: 11px; background: #fffdf9; color: #252a2d; transition: background .2s, border .2s; }
.dropzone:hover, .dropzone.is-dragging { background: #f9eee6; border-color: var(--accent); }
.dropzone svg { color: var(--accent); }
.dropzone strong { font-size: 13px; }
.dropzone span, .chosen-file, .quiet-link { font-size: 12px; }
.dropzone span { color: var(--muted); }
.input-group:has(#upload:focus-visible) .dropzone { outline: 2px solid var(--brass); outline-offset: 2px; }
.chosen-file { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); padding-top: 6px; }
.chosen-file span { overflow-wrap: anywhere; }
.chosen-file button { border: 0; background: #ebe8e0; border-radius: 50%; width: 28px; height: 28px; flex: 0 0 28px; font-size: 18px; }
.sample-options { display: flex; flex-wrap: wrap; gap: 5px; }
.sample-options button, .formats a { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.sample-options button[aria-pressed="true"] { color: #8b3e2a; background: #f8e9df; border-color: #e9c3ae; }
.quiet-link { color: #7c3a26; font-weight: 670; }
.quiet-link:hover { text-decoration: underline; }
.control-group, .fields, #advanced-settings { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; color: #424543; font-size: 12px; font-weight: 625; }
.field > span { display: flex; justify-content: space-between; gap: 7px; }
.field [type="range"] { width: 100%; margin: 1px 0; accent-color: var(--accent); cursor: ew-resize; }
.field output { color: #8b3926; }
.field :is(select, textarea, input:not([type="range"], [type="checkbox"])) { min-width: 0; min-height: 35px; width: 100%; padding: 7px 8px; border-radius: 8px; border: 1px solid #ddd9d0; background: #fff; color: #232827; font-size: 12px; font-weight: 490; }
.field textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 6px; }
.check input { accent-color: var(--accent); }
.predictors { display: grid; gap: 7px; margin: 0; padding: 8px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
.predictors legend { font-size: 12px; }
.advanced { border-top: 1px solid var(--line); }
.advanced summary { display: flex; align-items: center; justify-content: space-between; min-height: 43px; font-size: 12px; font-weight: 690; cursor: pointer; list-style: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary span { font-size: 17px; line-height: 1; transition: rotate .23s var(--spring); }
.advanced[open] summary span { rotate: 45deg; }
#advanced-settings { padding-bottom: 7px; }
.result { min-width: 0; padding: 19px clamp(13px, 2vw, 29px) 10px; }
.result-head { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-bottom: 8px; gap: 8px; }
.result-plot { height: clamp(385px, 37vw, 500px); border: 1px solid #eeece7; background: #fff; }
.result-plot[data-chart="survival"] { height: clamp(305px, 30vw, 410px); }
.followup-note { color: #62594e; font-size: 12px; line-height: 1.55; }
.risk-table { border: 1px solid #eeece7; border-top: 0; padding: 10px 0 8px; background: #fdfbf7; color: #302b27; }
.risk-table h4 { margin: 0 11px 4px; font-size: 13px; font-weight: 680; }
.risk-table h4 span { padding-left: 4px; color: #6c6258; font-size: 11px; font-weight: 520; }
.risk-row { position: relative; min-height: 23px; font-size: 12px; line-height: 23px; font-variant-numeric: tabular-nums; }
.risk-row strong { display: block; max-width: calc(var(--risk-left, 60px) - 8px); padding-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.risk-values { position: absolute; inset: 0 var(--risk-right, 25px) 0 var(--risk-left, 60px); }
.risk-values span { position: absolute; translate: -50% 0; white-space: nowrap; }
.result-summary.survival-summary { display: grid; gap: 4px; }
.survival-stat { display: flex; flex-wrap: wrap; gap: 4px 7px; min-width: 0; align-items: baseline; }
.survival-stat span { overflow-wrap: anywhere; }
.survival-links { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-top: 11px; }
.survival-links button { border: 0; background: transparent; padding: 0; }
.publication { min-height: 380px; background: #fff; border: 1px solid #eeece7; border-radius: 13px; }
.publication img { display: block; width: 100%; height: clamp(385px, 37vw, 500px); object-fit: contain; }
.result-summary { font-size: 12px; min-height: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); }
.result-summary strong { color: #1c2225; display: inline-block; }
.result-summary .count-up strong { color: #a13626; }
.result-summary .count-down strong { color: #535b65; }
.download-bar { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 15px; background: #faf9f6; border-radius: 0 0 22px 22px; border-top: 1px solid var(--line); }
.workbench:has(#result-bridge:not([hidden])) .download-bar { border-radius: 0; }
.quick-demo { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: #fff; font-size: 12px; }
.quick-demo-label { white-space: nowrap; font-weight: 720; color: var(--ink); }
.quick-demo-list { display: flex; flex-wrap: wrap; gap: 5px; }
.quick-demo-list button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d9d4ca; border-radius: 999px; background: #fff; padding: 6px 12px; font-size: 12px; font-weight: 620; color: #23282d; transition: border-color .2s, color .2s, background .2s; }
.quick-demo-list button:hover:not(:disabled) { border-color: #b97756; color: #863920; }
.quick-demo-list button[aria-pressed="true"] { color: #8b3e2a; background: #f8e9df; border-color: #e9c3ae; }
.quick-demo-list button:disabled { cursor: progress; opacity: .62; }
.quick-demo-note { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: 11.5px; }
.result-bridge {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap;
  padding: 12px 16px 12px 20px; border-radius: 0 0 21px 21px; border-top: 1px solid rgb(237 187 159 / .22);
  color: #f9f4ee; background: linear-gradient(135deg, #10141b 0%, #171b23 62%, #1d1917 100%);
  animation: bridgeIn .32s var(--spring) both;
}
@keyframes bridgeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.bridge-copy { flex: 1 1 360px; font-size: 13.5px; font-weight: 560; line-height: 1.55; color: #fbf6ef; }
.bridge-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bridge-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .22); background: transparent; color: #efd9cb; font-size: 12.5px; font-weight: 620; white-space: nowrap;
}
.bridge-btn:hover { border-color: rgb(237 187 159 / .55); color: #fff4eb; }
.bridge-btn-solid { color: #12171c; background: #fffaf3; border-color: #fffaf3; }
.bridge-btn-solid:hover { color: #12171c; background: #ffebd9; border-color: #ffebd9; }
.bridge-close { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .06); color: #cfc6be; font-size: 18px; line-height: 1; }
.bridge-close:hover { color: #fff; border-color: rgb(237 187 159 / .45); }
.download-bar strong { font-size: 12px; }
.formats { display: flex; flex-wrap: wrap; gap: 5px; }
.formats a[href]:hover { border-color: #b97756; color: #863920; }
.formats a:not([href]) { color: #666965; background: #f4f2ed; cursor: default; }
#download-bundle[href] { color: #fff; background: #252a2e; border-color: #252a2e; }
.run-message { margin-top: 4px; color: #575b55; font-size: 12px; line-height: 1.5; }
.run-message.is-error { color: #a12c29; }
.gallery { padding: 98px 0 105px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px; }
.gallery-card {
  display: block; min-width: 0; grid-column: span 4; overflow: clip; padding: 0; text-align: left;
  border: 1px solid #e3ded4; border-radius: 21px; background: #fff; box-shadow: 0 8px 20px rgb(46 38 29 / .045);
  transition: transform .38s var(--spring), border-color .25s, box-shadow .3s;
}
.gallery-card:nth-child(1) { grid-column: span 5; }
.gallery-card:nth-child(2) { grid-column: span 3; }
.gallery-card:nth-child(4) { grid-column: span 3; }
.gallery-card:nth-child(5) { grid-column: span 5; }
.gallery-card:hover, .gallery-card:focus-visible { transform: translateY(-5px); border-color: #b99984; box-shadow: 0 16px 30px rgb(50 38 28 / .14); }
.gallery-card figure { position: relative; display: grid; min-height: 100%; grid-template-rows: 234px auto; }
.gallery-image { display: grid; place-items: center; overflow: hidden; padding: 12px 14px 7px; background: #fff; }
.gallery-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: scale .55s var(--spring); }
.gallery-card:hover img { scale: 1.045; }
[data-gallery="scrna_umap"] img, #lightbox-image[data-gallery="scrna_umap"] { filter: sepia(.25) saturate(.48); }
.gallery-card figcaption { display: flex; justify-content: space-between; align-items: center; min-height: 67px; padding: 10px 14px; border-top: 1px solid #eae6dd; color: #212624; background: #f8f6f1; transition: background .24s, color .24s; }
.gallery-card:is(:hover,:focus-visible) figcaption { color: #fff7f0; background: #24262a; }
.gallery-card figcaption small, .gallery-card figcaption strong { display: block; }
.gallery-card figcaption small { color: #785344; font-size: 10px; line-height: 1.3; margin-bottom: 4px; }
.gallery-card:hover figcaption small, .gallery-card:focus-visible figcaption small { color: #e6bdab; }
.gallery-card figcaption strong { font-size: clamp(13px, 1.16vw, 17px); font-weight: 680; }
.gallery-arrow { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid rgb(140 128 115 / .4); border-radius: 50%; font-size: 15px; }
.custom { min-height: 410px; }
.custom::before { background: linear-gradient(90deg, rgb(9 13 20 / .90), rgb(9 13 20 / .48) 59%, rgb(9 13 20 / .18)), linear-gradient(0deg, #090d14, transparent 52%); }
.custom-art { object-position: center 54%; }
.custom-inner { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-block: 96px 84px; }
.custom h2 { margin-block: 14px 25px; }
.custom ul { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 31px; row-gap: 12px; padding: 0; margin: 0; list-style: none; color: #eee6df; font-size: 15px; }
.custom li { display: flex; align-items: center; gap: 8px; }
.custom li::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #d49570; }
.custom-retainer { margin-top: 22px; color: #d8cfc7; font-size: 14px; line-height: 1.65; max-width: 44em; }
.retainer-inline-btn {
  display: inline; padding: 0; border: 0; background: transparent; color: #f1c3a7; font-weight: 620;
  border-bottom: 1px solid rgb(241 195 167 / .45); transition: color .2s, border-color .2s;
}
.retainer-inline-btn:hover { color: #fff4eb; border-bottom-color: #fff4eb; }
.custom-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* #retainer obsidian lab retainer section */
.retainer {
  background: linear-gradient(180deg, #090d14 0%, #0d121b 52%, #0a0e16 100%);
  border-top: 1px solid rgb(255 255 255 / .09);
}
.retainer::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 52% 48% at 80% 18%, rgb(184 121 83 / .09), transparent 70%);
}
.retainer-inner { display: grid; gap: 32px; padding-block: 80px 92px; }
.retainer-head { display: grid; gap: 12px; max-width: 68ch; }
.retainer-head h2 { font-size: clamp(30px, 3.2vw, 44px); }
.retainer-sub { color: #c9ccd3; font-size: 15px; line-height: 1.65; }
.retainer-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tier-card {
  display: grid; gap: 18px; align-content: start; padding: 26px 28px; border-radius: 20px;
  border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .035);
}
.tier-featured {
  border-color: rgb(237 187 159 / .36);
  background: linear-gradient(155deg, rgb(237 187 159 / .085), rgb(255 255 255 / .03) 56%);
}
.tier-top { display: grid; gap: 8px; }
.tier-tag {
  width: fit-content; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 620;
  color: #edbb9f; background: rgb(237 187 159 / .12); border: 1px solid rgb(237 187 159 / .24);
}
.tier-card h3 { font-size: 22px; font-weight: 690; color: #fff; letter-spacing: -.02em; }
.tier-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 2px; }
.tier-price strong { font-size: 32px; font-weight: 720; color: #fffaf3; letter-spacing: -.03em; }
.tier-price span { font-size: 13px; color: #c9ccd3; }
.tier-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: #e6e2dc; font-size: 14px; line-height: 1.55; }
.tier-list li { display: flex; align-items: flex-start; gap: 8px; }
.tier-list li::before { content: "·"; color: #edbb9f; font-weight: 700; }

.retainer-faq { display: grid; gap: 10px; }
.faq-item {
  border-radius: 14px; border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .03);
  transition: border-color .2s, background-color .2s;
}
.faq-item[open] { border-color: rgb(237 187 159 / .30); background: rgb(255 255 255 / .05); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px;
  cursor: pointer; list-style: none; color: #fffaf3; font-size: 15px; font-weight: 620;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: #edbb9f; font-size: 18px; line-height: 1; transition: rotate .2s var(--spring); }
.faq-item[open] summary span { rotate: 45deg; }
.faq-item p { padding: 0 18px 16px; color: #c9ccd3; font-size: 14px; line-height: 1.62; }

.retainer-lead-box {
  display: grid; gap: 20px; padding: 28px 30px; border-radius: 22px;
  border: 1px solid rgb(237 187 159 / .26);
  background: linear-gradient(145deg, rgb(31 35 44 / .90), rgb(17 21 29 / .95));
  box-shadow: 0 18px 46px rgb(0 0 0 / .34);
}
.retainer-lead-copy { display: grid; gap: 8px; max-width: 68ch; }
.retainer-lead-copy h3 { font-size: clamp(21px, 2.1vw, 26px); font-weight: 690; color: #fff; letter-spacing: -.025em; }
.retainer-lead-copy p { color: #d1d3d8; font-size: 14.5px; line-height: 1.62; }
.retainer-form { display: grid; gap: 14px; }
.retainer-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.retainer-form .field { color: #e8e2db; font-size: 13px; }
.retainer-form .field :is(select, input) {
  min-height: 44px; padding: 9px 12px; border-radius: 10px; font-size: 14px;
  background: rgb(8 11 16 / .62); color: #fffaf3; border: 1px solid rgb(255 255 255 / .22); color-scheme: dark;
}
.retainer-form .field :is(select, input)::placeholder { color: #969ba6; }
.retainer-form .field :is(select, input):focus { border-color: rgb(237 187 159 / .65); }
.retainer-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 2px; }
.retainer-submit-row .button { min-height: 48px; padding-inline: 28px; font-size: 15px; }
.retainer-note { color: #b7bcc6; font-size: 12.5px; line-height: 1.5; }
.retainer-success {
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(137 214 172 / .36);
  background: rgb(47 107 85 / .24); color: #e4f7ec; font-size: 14px; font-weight: 560; line-height: 1.55;
}
.form-alert {
  padding: 9px 12px; border-radius: 10px; border: 1px solid rgb(235 128 110 / .42);
  background: rgb(164 76 54 / .24); color: #ffd9d1; font-size: 13px; line-height: 1.48;
}

footer { background: #f3f0ea; }
.footer { display: flex; align-items: center; justify-content: space-between; min-height: 81px; gap: 12px; color: #353832; font-size: 13px; }
.footer small { color: #60615a; font-size: 12px; }
.footer a:hover { text-decoration: underline; }
.footer strong span { padding-inline: 2px; color: var(--accent); }

/* Dialogs & 3-field minimalist popup */
.glass-dialog {
  position: fixed; width: min(560px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 24px); overflow: auto;
  margin: auto; padding: 22px 24px 20px; color: #fdf8f3; border: 1px solid rgb(255 255 255 / .22); border-radius: 24px;
  background: linear-gradient(145deg, rgb(32 34 40 / .97), rgb(13 17 24 / .98)); backdrop-filter: blur(25px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 26px 90px rgb(4 7 10 / .62);
}
.glass-dialog[open] { animation: dialogArrival .32s var(--spring) both; }
.glass-dialog::backdrop { background: rgb(8 11 15 / .74); backdrop-filter: blur(8px); }
@keyframes dialogArrival { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.dialog-head h2 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; color: #fff; }
.dialog-sub { margin-top: 6px; color: #c9ccd3; font-size: 13px; line-height: 1.5; }
.dialog-close { width: 36px; height: 36px; font-size: 22px; color: #e8e2db; background: rgb(255 255 255 / .09); border-color: rgb(255 255 255 / .18); }
.dialog-close:hover:not(:disabled) { color: #ffd6bf; border-color: rgb(237 187 159 / .45); }
.lightbox { width: fit-content; max-width: min(1140px, calc(100% - 32px)); }
.lightbox img { display: block; max-width: 100%; max-height: 67dvh; width: auto; height: auto; background: #fff; border-radius: 12px; object-fit: contain; }
.dialog-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.glass-dialog .primary { background: #fffaf3; color: #14181e; border-color: #fffaf3; }
.glass-dialog .primary:hover { background: #ffebd9; }
.glass-dialog .secondary { color: #fff; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .24); }
.glass-dialog .secondary:hover { background: rgb(255 255 255 / .15); border-color: rgb(237 187 159 / .45); }

.popup-form { display: grid; gap: 12px; }
.assessment .field { color: #f2ece6; font-size: 13px; gap: 5px; }
.assessment .field :is(select, textarea, input) {
  background: rgb(8 11 16 / .62); color: #fffaf3; border: 1px solid rgb(255 255 255 / .22);
  border-radius: 10px; color-scheme: dark; font-size: 13.5px; min-height: 40px; padding: 8px 11px;
}
.assessment .field :is(textarea, input)::placeholder { color: #9499a4; }
.assessment .field :is(select, textarea, input):focus { border-color: rgb(237 187 159 / .65); }
.assessment .field textarea { line-height: 1.5; min-height: 62px; }
.field-hint { color: #a7acb7; font-size: 11.5px; font-weight: 450; line-height: 1.42; }
.contact-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.contact-toggle {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .05);
}
.contact-toggle button {
  border: 0; background: transparent; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 560; color: #b7bcc6; transition: background .18s, color .18s;
}
.contact-toggle button[aria-pressed="true"] { background: #fffaf3; color: #14181e; font-weight: 660; }
.contact-sep { color: rgb(255 255 255 / .24); font-size: 11px; }
.popup-trust-list {
  display: grid; gap: 3px; margin: 2px 0 0; padding: 8px 11px; list-style: none;
  border-radius: 10px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08);
  color: #b8bdc7; font-size: 12px; line-height: 1.48;
}
.popup-submit-area { display: grid; gap: 7px; justify-items: center; margin-top: 2px; }
.popup-submit-btn { width: 100%; min-height: 46px; font-size: 15px; }
.popup-submit-note { color: #a7acb7; font-size: 11.5px; text-align: center; line-height: 1.4; }
.popup-later-link {
  border: 0; background: transparent; padding: 4px 10px; color: #9ea3ae; font-size: 12.5px; font-weight: 500;
}
.popup-later-link:hover { color: #fff; text-decoration: underline; }

.popup-success-view { display: grid; gap: 14px; animation: dialogArrival .26s var(--spring) both; }
.success-body { color: #e2e4e9; font-size: 14px; line-height: 1.65; }
.success-bridge { color: #edbb9f; font-size: 13.5px; font-weight: 620; margin-top: 2px; }
.success-exits { display: grid; gap: 12px; }
.success-exit-card {
  display: grid; gap: 8px; padding: 14px 15px; border-radius: 16px;
  border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .045);
}
.success-exit-btn { width: 100%; min-height: 46px; font-size: 14px; white-space: normal; text-align: center; padding: 10px 16px; }
.success-exit-desc { color: #c5c9d1; font-size: 12.5px; line-height: 1.52; }
.success-foot { color: #9fa4af; font-size: 12px; text-align: center; padding-top: 2px; }

.toast { position: fixed; z-index: 12; left: 50%; bottom: 24px; translate: -50% 0; padding: 11px 18px; color: #fff9f1; background: #25282c; border-radius: 999px; font-size: 13px; }

@media (max-width: 1160px) {
  :root { --wrap: min(100% - 72px, 1320px); }
  .studio-chrome { flex-wrap: wrap; }
  .studio-name { flex: 0 0 auto; }
  .studio-tools { margin-left: auto; }
  .custom-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; min-height: auto; padding: 126px 0 64px; }
  .hero-showcase { width: 100%; max-width: 640px; margin-top: 0; }
  .hero-deck { padding: 24px 24px 0 0; }
  .hero-deck-bar { padding-right: 24px; }
  .retainer-fields { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(36px, 6vw, 52px); }
  .studio-chrome { gap: 10px; }
  .studio-name { flex: 1 0 100%; }
  .gallery-card figure { grid-template-rows: 183px auto; }
  .custom-inner { align-items: center; }
  .custom ul { grid-template-columns: 1fr; }
  .retainer-tiers { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  #workbench-engines { width: 100%; }
  #workbench-engines button { min-width: 0; padding-inline: 3px; font-size: clamp(10px, 2.8vw, 12px); }
  .risk-row { font-size: 11px; }
  :root { --wrap: calc(100% - 30px); }
  html { scroll-padding-top: 68px; }
  .navigation { top: 8px; }
  .nav-shell, .nav-shell.is-floating { width: calc(100% - 16px); min-height: 48px; padding: 4px 5px 4px 8px; grid-template-columns: auto 1fr auto; gap: 5px; }
  .identity { gap: 3px; }
  .identity img { width: 24px; height: 24px; }
  .identity strong { font-size: 13px; }
  .nav-shell nav { justify-content: center; gap: clamp(6px, 2.3vw, 12px); }
  .nav-shell nav a { font-size: clamp(9.5px, 2.65vw, 12px); min-height: 38px; }
  .nav-action { font-size: clamp(9.5px, 2.6vw, 11.5px); min-height: 34px; padding-inline: 9px; gap: 3px; }
  .hero-inner { display: grid; align-content: start; gap: 22px; min-height: auto; padding-block: 78px 42px; }
  .hero-copy { max-width: 100%; width: 100%; padding: 0; min-width: 0; }
  .hero .eyebrow { font-size: 9.5px; letter-spacing: .10em; padding-right: 0; }
  .hero h1 { margin-block: 10px 10px; font-size: 34px; line-height: 1.18; letter-spacing: -.04em; }
  .hero-lead { font-size: 14px; line-height: 1.5; max-width: none; }
  .lead-desktop { display: none; }
  .lead-mobile { display: inline; }
  .actions { display: grid; grid-template-columns: 1fr; margin-top: 18px; gap: 9px; }
  .actions .button { width: 100%; min-height: 52px; padding-inline: 16px; font-size: 15px; gap: 6px; }
  .actions .hero-cta-secondary { min-height: 44px; font-size: 13.5px; }
  .hero-trust {
    display: flex; overflow-x: auto; gap: 10px; max-width: 100%;
    margin-top: 18px; padding-top: 14px; padding-bottom: 4px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .hero-trust::-webkit-scrollbar { display: none; }
  .trust-item { flex: 0 0 218px; scroll-snap-align: start; padding: 10px 12px; }
  .trust-title { font-size: 13.5px; }
  .trust-desc { font-size: 14px; color: #c9ccd3; }
  .hero-deck { padding: 20px 18px 0 0; }
  .figure-card { border-radius: 14px; }
  .figure-card[data-slot="mid"] { transform: translate3d(9px, -9px, 0) scale(.975); }
  .figure-card[data-slot="back"] { transform: translate3d(18px, -18px, 0) scale(.95); }
  .figure-card-head { padding: 8px 10px; gap: 6px; }
  .figure-card-title { font-size: 12.5px; }
  .figure-card-badge { font-size: 10px; padding: 2px 7px; }
  .figure-card-frame img { inset: 8px 10px 8px; width: calc(100% - 20px); height: calc(100% - 16px); }
  .hero-deck-bar { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; padding-right: 0; }
  .hero-showcase .segments { width: 100%; }
  .hero-showcase .segments button { min-height: 36px; font-size: 12px; padding-inline: 8px; }
  .hero-try-link { justify-content: center; }
  .workspace, .gallery { padding-block: 57px; }
  .section-head { margin-bottom: 20px; }
  .section-head p { font-size: 13px; }
  .studio-chrome { padding: 10px; }
  .studio-name { font-size: 13px; }
  #workbench-engines { width: 100%; }
  #workbench-engines button { min-height: 36px; font-size: 12px; padding-inline: 5px; }
  .studio-tools { margin-left: 0; width: 100%; gap: 4px; justify-content: space-between; }
  .studio-tools .run { min-height: 39px; padding-inline: 7px; font-size: 11px; gap: 4px; }
  .studio-tools .icon-button { width: 32px; height: 36px; }
  .segments.compact button { font-size: 10px; min-height: 29px; padding-inline: 5px; }
  .studio-data { padding: 8px 10px; gap: 7px; flex-wrap: wrap; }
  .studio-data .quiet-link { flex: 0 0 auto; }
  .sample-options button { font-size: 11px; padding-inline: 7px; }
  .studio-body { grid-template-columns: 1fr; }
  .controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; gap: 11px; }
  .controls h3, .controls .advanced { grid-column: 1 / -1; }
  .controls h3 { margin-bottom: -3px; }
  .dropzone { min-height: 78px; }
  .advanced summary { min-height: 34px; }
  .result { padding: 12px 8px 6px; }
  .result-head { padding-inline: 5px; }
  .result-head h3 { font-size: 16px; }
  .result-plot, .publication img { height: 342px; }
  .publication { min-height: 0; }
  .result-summary { padding-inline: 4px; min-height: 36px; font-size: 11px; gap: 4px 10px; }
  .download-bar { display: grid; padding: 9px 10px 12px; }
  .formats a { padding: 6px 8px; font-size: 11px; }
  .quick-demo { flex-wrap: wrap; gap: 7px; padding: 8px 10px; }
  .quick-demo-list { order: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -10px; padding-inline: 10px; width: calc(100% + 20px); }
  .quick-demo-list::-webkit-scrollbar { display: none; }
  .quick-demo-list button { flex: 0 0 auto; font-size: 11px; padding: 6px 9px; }
  .quick-demo-note { margin-left: auto; font-size: 10.5px; }
  .result-bridge { padding: 13px 12px; }
  .bridge-copy { flex-basis: 100%; font-size: 12.5px; }
  .bridge-actions { width: 100%; }
  .bridge-btn { flex: 1 1 auto; justify-content: center; padding-inline: 10px; font-size: 12px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .bento .gallery-card { grid-column: span 1; border-radius: 13px; }
  .gallery-card figure { grid-template-rows: 119px auto; }
  .gallery-image { padding: 5px; }
  .gallery-card figcaption { min-height: 58px; padding: 7px 8px; gap: 4px; }
  .gallery-card figcaption strong { font-size: 12px; }
  .gallery-card figcaption small { font-size: 9px; }
  .gallery-arrow { width: 22px; height: 22px; flex-basis: 22px; font-size: 12px; }
  .custom { min-height: 0; }
  .custom-inner { display: grid; align-items: start; padding-block: 64px 54px; gap: 22px; }
  .custom h2 { font-size: 32px; }
  .custom ul { font-size: 14px; gap: 9px; }
  .custom-retainer { margin-top: 16px; font-size: 13px; }
  .custom-art { object-position: 67% 50%; }
  .custom-actions { align-items: stretch; gap: 8px; width: 100%; }
  .custom-actions .button { min-height: 46px; padding-inline: 16px; font-size: 13.5px; }
  .retainer-inner { padding-block: 56px 64px; gap: 24px; }
  .retainer-head h2 { font-size: 28px; }
  .tier-card { padding: 20px 18px; }
  .tier-price strong { font-size: 28px; }
  .retainer-lead-box { padding: 20px 18px; }
  .retainer-submit-row .button { width: 100%; }
  .footer { display: grid; align-content: center; gap: 6px; min-height: 77px; font-size: 12px; }
  .footer small { font-size: 11px; }

  /* Mobile popup: guaranteed 1-screen fit within 390x844 */
  .glass-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 16px); padding: 15px 15px 13px; border-radius: 18px; }
  .dialog-head { margin-bottom: 10px; gap: 8px; }
  .dialog-head h2 { font-size: 18px; line-height: 1.24; }
  .dialog-sub { margin-top: 4px; font-size: 12px; line-height: 1.4; }
  .dialog-close { width: 32px; height: 32px; font-size: 20px; }
  .popup-form { gap: 9px; }
  .assessment .field { font-size: 12.5px; gap: 4px; }
  .assessment .field :is(select, input) { min-height: 36px; padding: 6px 10px; font-size: 13px; }
  .assessment .field textarea { min-height: 52px; padding: 6px 10px; font-size: 13px; }
  .field-hint { font-size: 11px; line-height: 1.32; }
  .popup-trust-list { padding: 6px 10px; gap: 2px; font-size: 11.5px; line-height: 1.4; }
  .popup-submit-area { gap: 5px; }
  .popup-submit-btn { min-height: 44px; font-size: 14px; }
  .popup-submit-note { font-size: 11px; }
  .popup-later-link { padding: 2px 8px; font-size: 12px; }
  .lightbox img { max-height: 58dvh; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-backdrop { translate: none; } .figure-card { transition: none; } .glass-dialog[open], .result-bridge { animation: none; } }
@media (prefers-reduced-transparency: reduce) {
  .nav-shell, .glass-dialog, .tooltip { backdrop-filter: none; background: #171b22; }
  .nav-shell.is-light { background: #fcfbf8; }
}
