:root {
  color-scheme: light;
  --ink: #17181b;
  --muted: #50525a;
  --accent: #1749aa;
  --line: #e3e5eb;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #f8f8fa;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.shell {
  width: min(calc(100% - var(--gutter) * 2), 1160px);
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(68px, 10svh, 94px);
  gap: 16px;
}

.wordmark {
  display: grid;
  grid-template-columns: max-content;
  gap: 4px;
  flex: none;
}

.wordmark-name {
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.wordmark-domain {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  font-size: 11px;
  font-weight: 660;
  line-height: 1.15;
}

.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 24px;
  background: #202127;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 620;
  transition: background-color .18s ease;
}

.contact:hover { background: #3b3d47; }

.overview {
  width: min(calc(100% - var(--gutter) * 2), 1330px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(min-content, 1fr) auto;
  min-height: 0;
  gap: 8px;
  padding-block: 16px 10px;
}

.intro { align-self: center; text-align: center; padding-block: clamp(18px, 5svh, 50px); }

.intro h1 {
  margin: 0;
  font-size: clamp(39px, 5.1vw, 72px);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.intro p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.55;
}

.intro p span { margin-inline-start: .25em; }

.deck {
  --dock-tile: 68px;
  --dock-height: 77px;
  --dock-end: 44px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  min-width: 0;
  align-items: end;
}

.deck::before {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: calc(var(--dock-height) + 24px);
  border: 1px solid #fff;
  border-radius: 24px;
  background: linear-gradient(165deg, #ffffffea, #e9edf4);
  box-shadow: 0 9px 26px -16px #2d3b5750, inset 0 0 0 1px #7586a018;
  pointer-events: none;
  content: "";
}

.cards {
  position: relative;
  display: flex;
  grid-area: 1 / 2;
  align-items: end;
  gap: 8px;
  min-width: 0;
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--dock-end);
  scrollbar-width: none;
  padding: 48px var(--dock-end) 12px;
}
.card:first-child { margin-inline-start: auto; }
.card:last-child { margin-inline-end: auto; }

.card {
  --glass: #f7f0ff;
  --ink-card: #302150;
  --graphic-surface: #e9defa;
  --graphic-accent: #a892dc;
  position: relative;
  flex: 0 0 var(--dock-tile);
  height: var(--dock-height);
  scroll-snap-align: start;
  border-radius: 14px;
  transform-origin: center bottom;
  color: var(--ink-card);
}

#travel, #gym, #development, #autosales, #renovation {
  --glass: #edf3ffb5;
  --ink-card: #1d2a55;
  --graphic-surface: #dae7fd;
  --graphic-accent: #7899da;
}

#attraction, #restaurant, #realty {
  --glass: #eef6f1bc;
  --ink-card: #203d36;
  --graphic-surface: #dbece5;
  --graphic-accent: #75ad9c;
}

#cafe, #photo, #bridal {
  --glass: #fcf0eec2;
  --ink-card: #523031;
  --graphic-surface: #f1dfdf;
  --graphic-accent: #c79199;
}

#detailing {
  --glass: #eef2f6c2;
  --ink-card: #26394f;
  --graphic-surface: #dfe8f2;
  --graphic-accent: #8fa9c8;
}

.card-summary[hidden],
.card-detail[hidden] { display: none; }

.category {
  display: block;
  color: var(--ink-card);
  font-size: 11px;
  font-weight: 670;
  line-height: 1.35;
  white-space: nowrap;
}

.card-description {
  max-width: 28em;
  margin: 8px 0 0;
  color: #424e65;
  font-size: clamp(16px, 1.24vw, 18px);
  line-height: 1.52;
}

.case-peek {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--graphic-surface);
  pointer-events: none;
}

.peek-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  background: linear-gradient(120deg, var(--graphic-surface), var(--graphic-accent));
}

.peek-photo::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 100cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  background-image: var(--loaded-cover);
  background-size: var(--atlas-size);
  background-position: var(--crop-x) var(--crop-y);
  content: "";
}

.atlas-inquiry { --image: url("inquiry-scenes.jpg"); --atlas-size: 300% 200%; }
.atlas-business { --image: url("business-scenes.jpg"); --atlas-size: 300% 300%; }
.atlas-studio { --image: url("studio-style-preview.jpg"); --atlas-size: 300% 200%; }
.atlas-room { --image: url("room-style-preview.jpg"); --atlas-size: 300% 100%; }
.card[data-cover-visible] .peek-photo { --loaded-cover: var(--image); }
@media (scripting: none) { .peek-photo { --loaded-cover: var(--image); } }
.atlas-studio::before { top: 0; translate: -50% 0; }

.card-toggle {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  gap: 5px;
  padding: 5px 5px 6px;
  border: 1px solid #fff;
  border-radius: inherit;
  background: var(--glass);
  box-shadow: 0 2px 8px #20345216, inset 0 0 0 1px #53648618;
  color: inherit;
  cursor: pointer;
}
.card-toggle:focus-visible { outline-offset: -2px; }
.card-toggle:active { background: var(--graphic-surface); }

.card-detail {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #9ba5b7 transparent;
}

.card-description { margin-top: 8px; }

.scene-example {
  max-width: 25rem;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #ffffffca;
  border-radius: 12px;
  background: #ffffff70;
  color: #31394b;
}

.example-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-bottom: 4px;
}

.example-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.example-heading span {
  color: #4f596c;
  font-size: 12px;
}

.scene-example dl { margin: 0; }

.scene-example dl div {
  display: flex;
  justify-content: space-between;
  gap: 4px 8px;
  padding: 3px 0;
  border-top: 1px solid #313e5022;
  font-size: 13px;
  line-height: 1.2;
}

.scene-example dd {
  margin: 0;
  text-align: end;
  font-weight: 640;
}

.scene-example p {
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid #313e5022;
  color: var(--ink-card);
  font-size: 13px;
  font-weight: 620;
}

.deck-control {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  padding: 0;
  border: 1px solid #d7dce7;
  border-radius: 50%;
  background: #fff;
  color: #222d42;
  cursor: pointer;
}

.deck-control[hidden] { display: none; }
.deck-control { grid-area: 1 / 3; justify-self: center; margin-block-end: 31px; }
.deck-control[data-direction="previous"] { grid-column: 1; }

.deck-control span {
  width: 8px;
  height: 8px;
  margin-inline-end: 3px;
  border-block-start: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.deck-control[data-direction="previous"] span {
  margin-inline: 3px 0;
  transform: rotate(-135deg);
}

.deck-control:not([aria-disabled="true"]):hover { background: #edf2fc; }

.deck-control[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
}

:where(button, a, .cards, .card-detail):focus-visible {
  outline: 2px solid #2860cf;
  outline-offset: 2px;
}

.card-detail:focus-visible { outline-offset: -2px; }

.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 10px calc(11px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #a0a4ae;
  text-underline-offset: .22em;
  white-space: nowrap;
}

.legal a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .masthead { min-height: 62px; }

  .overview {
    gap: clamp(12px, 2svh, 18px);
    padding-block: 8px 12px;
  }

  .intro h1 { font-size: clamp(27px, 6.8vw, 46px); }
  .intro p { margin-top: 8px; font-size: 16px; line-height: 1.45; }
  .intro p span { display: block; margin: 0; }

  .deck { --dock-tile: 65px; --dock-height: 72px; }

  .legal { padding-block: 9px calc(10px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 510px) {
  .legal {
    justify-content: center;
    column-gap: 10px;
    text-align: center;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  .masthead { min-height: 52px; }
  .contact { min-height: 39px; padding-inline: 14px; }
  .overview { gap: 9px; padding-block: 5px; }
  .intro p { margin-top: 5px; }
}

@media (max-width: 375px) and (max-height: 610px) {
  .card-description { line-height: 1.36; }
  .scene-example { margin-top: 7px; padding: 5px 8px; }
  .scene-example dl div { padding: 2px 0; }

  .legal {
    gap: 3px 8px;
    padding-block: 6px calc(7px + env(safe-area-inset-bottom, 0px));
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (pointer: coarse), (hover: none) {
  .deck { --dock-end: 12px; grid-template-columns: minmax(0, 1fr); }
  .cards { grid-column: 1; padding-block: 10px 10px; }
  .deck-control { display: none; }
  .deck::before { height: calc(var(--dock-height) + 21px); }
}
@media (prefers-reduced-motion: reduce) {
  .cards { padding-block-start: 10px; }
}

.card-detail--demo {
  position: absolute;
  z-index: 1;
  inset: 7px;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid #fff;
  border-radius: 21px;
  background: linear-gradient(145deg, #ffffffee 5%, var(--graphic-surface));
  scrollbar-gutter: stable;
}

.card-detail--demo:not([hidden]) {
  animation: demo-open .22s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes demo-open {
  from { opacity: .38; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-heading {
  display: grid;
  gap: 4px;
  margin: 0 43px 10px 0;
}

.demo-heading h3 {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.13;
  letter-spacing: -.03em;
}

.demo-heading > span {
  color: #505c72;
  font-size: 12px;
}

.demo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.demo-options button,
.demo-action button,
.gym-spin {
  min-height: 31px;
  padding: 3px 9px;
  border: 1px solid #4d62892f;
  border-radius: 20px;
  background: #ffffffd9;
  color: var(--ink-card);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.demo-options button[aria-pressed="true"],
.demo-action button {
  border-color: transparent;
  background: var(--ink-card);
  color: white;
}

.demo-options button:hover,
.demo-action button:hover,
.gym-spin:hover { box-shadow: inset 0 0 0 1px currentColor; }

.demo-rows {
  display: grid;
  gap: 1px;
  margin: 9px 0;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #6b769522;
}

.demo-rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  background: #ffffffcf;
  font-size: 14px;
  line-height: 1.25;
}

.demo-rows dt {
  flex: none;
  color: #414e63;
}

.demo-rows dd {
  margin: 0;
  text-align: end;
  font-weight: 650;
}

.demo-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.demo-action p {
  margin: 0;
  color: var(--ink-card);
  font-size: 13px;
  font-weight: 620;
}

.demo-notes {
  margin-top: 9px;
  color: #414e63;
  font-size: 13px;
}

.demo-notes summary {
  width: fit-content;
  padding-block: 5px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.demo-notes summary:focus-visible {
  outline: 2px solid #2860cf;
  outline-offset: 2px;
}

.demo-gallery-view { position: relative; }

.demo-picture {
  position: relative;
  container-type: size;
  overflow: hidden;
  height: clamp(110px, 18svh, 164px);
  margin-top: 8px;
  border: 1px solid #fff;
  border-radius: 13px;
  background: #d7dbe0;
}

.demo-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 100cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  background-repeat: no-repeat;
  background-position: var(--column, 0%) var(--row, 0%);
  background-size: 300% 200%;
}

.demo-picture--studio .demo-art {
  top: 0;
  translate: -50% 0;
  background-image: url("studio-style-preview.jpg");
}

.demo-picture--room .demo-art {
  background-image: url("room-style-preview.jpg");
  background-size: 300% 100%;
}

.demo-plan {
  position: absolute;
  bottom: 7px;
  left: 7px;
  display: grid;
  gap: 4px;
  padding: 5px 6px;
  border: 1px solid #fff;
  border-radius: 7px;
  background: #fffe;
  color: #303c55;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}

.demo-plan > div {
  display: grid;
  grid-template-columns: 1.2fr .7fr;
  grid-auto-rows: 10px;
  gap: 1px;
  border: 1px solid #8294b7;
  background: #8294b7;
}

.demo-plan i { background: #f0f4fd; }
.demo-plan i:last-child { background: #c9d7ef; }

.demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 5px;
  color: #414e63;
  font-size: 13px;
}

.demo-caption p { margin: 0; }
.demo-budget { color: var(--ink-card); font-weight: 640; }

@media (max-width: 760px) {
  .card-detail--demo { inset: 6px; padding: 12px; }
  .demo-options button, .demo-action button { min-height: 35px; }
  .demo-picture { height: clamp(115px, 18svh, 150px); }
}

@media (max-width: 375px) and (max-height: 700px) {
  .card-detail--demo { padding: 10px; }
  .demo-heading { margin-bottom: 7px; }
  .demo-options { gap: 4px; margin-bottom: 5px; }
  .demo-options button, .demo-action button { padding-inline: 7px; }
  .demo-rows div { padding: 6px 7px; }
  .demo-picture { height: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-detail--demo:not([hidden]) { animation: none; }
}

.card-detail--demo {
  padding: 10px 18px;
  background: linear-gradient(145deg, #ffffffa6, var(--graphic-surface));
}

.scene-demo,
.demo-notes {
  width: min(100%, 343px);
  margin-inline: auto;
}

.scene-demo {
  padding: 12px;
  border: 1px solid #ffffffdb;
  border-radius: 18px;
  background: #fffffff2;
  box-shadow: 0 6px 24px #243a6014;
}

.demo-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: first baseline;
  gap: 4px 6px;
  margin: 0 0 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dce3ef;
}

.demo-heading h3 {
  font-size: clamp(15px, 1.28vw, 18px);
  line-height: 1.28;
}

.demo-heading > span {
  padding: 3px 5px;
  border-radius: 5px;
  background: #edf1f7;
  color: #3f4b61;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.workflow-preview {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 7px 0;
  border-radius: 10px;
  background: #e9edf7;
}

.workflow-preview[hidden] { display: none; }

.workflow-preview > strong {
  position: absolute;
  inset: auto 9px 7px auto;
  padding: 4px 7px;
  border-radius: 5px;
  background: #fffffff2;
  font-size: 12px;
  font-weight: 680;
}

.workflow-cover {
  position: relative;
  container-type: size;
  overflow: hidden;
  height: 66px;
}

.workflow-cover::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 100cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  background-position: var(--column) var(--row);
  background-repeat: no-repeat;
  content: "";
}

.workflow-cover--inquiry::before {
  background-image: url("inquiry-scenes.jpg");
  background-size: 300% 200%;
}

.workflow-cover--business::before {
  background-image: url("business-scenes.jpg");
  background-size: 300% 300%;
}

.workflow-cover--suv::before {
  width: min(100%, 185cqh);
  border-radius: 8px;
  background-image: url("car-wrap-preview.jpg");
  background-position: 50% 100%;
  background-size: 300% 200%;
}

.workflow-cover--cold-brew {
  background: radial-gradient(ellipse at 37% 55%, #c79163, #805133 68%, #5e3c2b);
}

.workflow-cover--cold-brew::before {
  top: 63%;
  left: 34%;
  width: 42px;
  aspect-ratio: .7;
  border: 2px solid #fff9;
  border-radius: 4px 4px 11px 11px;
  background: linear-gradient(#f7dfad 0 15%, #b87946 40%, #764021);
  box-shadow: 10px 5px 15px #321d23ab, inset 5px 0 0 #fff4;
}

.workflow-ticket,
.workflow-audio,
.workflow-rating,
.workflow-plan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  padding: 7px 9px;
  color: var(--ink-card);
  font-size: 13px;
}

.workflow-ticket {
  margin: 5px;
  border: 1px dashed #80a298;
  border-radius: 8px;
  background: #f6fcf9;
}

.workflow-route {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  list-style: none;
  color: #24483c;
  font-size: 12px;
  font-weight: 650;
}

.workflow-route li {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.workflow-route li::before {
  width: 8px;
  height: 8px;
  border: 1px solid #338269;
  border-radius: 50%;
  background: #b1dfcb;
  content: "";
}

.workflow-audio progress,
.workflow-rating meter {
  grid-column: 1 / -1;
  width: 100%;
  height: 7px;
  accent-color: #5577af;
}

.workflow-rating strong { font-size: 16px; }
.workflow-rating small { font-size: 12px; font-weight: 500; }

.workflow-seats {
  justify-content: space-evenly;
  padding: 5px;
  background: #e3eee8;
}

.workflow-seats button { border-radius: 7px; }

.workflow-plan { background: #e9eefb; }

.workflow-plan-rooms {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2px;
}

.workflow-plan[data-rooms="4"] .workflow-plan-rooms { grid-template-columns: 1.35fr 1fr; }

.workflow-plan-rooms i {
  padding: 2px 3px;
  background: #fcfdff;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.workflow-demo .demo-rows {
  margin: 6px 0;
}

.workflow-demo .demo-rows div {
  padding: 5px 6px;
  font-size: 13px;
}

.workflow-demo .demo-rows input {
  width: 3.3em;
  min-height: 28px;
  padding: 1px 2px 1px 5px;
  border: 1px solid #bbc9dd;
  border-radius: 6px;
  color: var(--ink-card);
  background: white;
  font: inherit;
}

.case-sheet[data-industry="travel"] .demo-tabs button.is-complete {
  box-shadow: inset 0 -3px #62b49c;
}

.case-sheet[data-industry="travel"] .demo-rows > div {
  border-inline-start: 2px solid #699ac6;
}

@media (max-width: 760px) {
  .card-detail--demo { padding: 45px 6px 6px; }
  .scene-demo { padding: 8px; }
  .demo-heading { margin-bottom: 6px; padding-bottom: 5px; }
  .demo-heading > span { font-size: 10px; }
  .workflow-demo .demo-rows div { font-size: 12px; }
}

.scenario-switcher {
  width: min(calc(100% - 47px), 343px);
  min-height: 33px;
  margin: 0 auto 7px;
}

.scenario-switcher button {
  min-height: 29px;
  padding-inline: 8px;
}

.scenario-switcher button[aria-pressed="true"] {
  background: var(--ink-card);
  color: #fff;
}

.scene-demo[hidden] { display: none; }

.solution header {
  padding: 2px 0 8px;
}

.solution h3 {
  margin: 0;
  color: var(--ink-card);
  font-size: clamp(16px, 1.45vw, 20px);
  letter-spacing: -.025em;
}

.solution header p,
.solution-status {
  margin: 5px 0 0;
  color: #48556d;
  font-size: 13px;
  line-height: 1.35;
}

.solution-status:empty { display: none; }

.solution--booking {
  background: linear-gradient(160deg, #fff9f1, white 65%);
}

.solution--select {
  background: linear-gradient(155deg, #f1f4fc, #fff 55%);
}

.solution--track {
  background: linear-gradient(155deg, #eaf4ef, #fff 62%);
}

.solution-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 8px;
  margin: 6px 0;
  color: #404c61;
  font-size: 13px;
  font-weight: 620;
}

.solution-date input {
  min-height: 32px;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid #c9d2df;
  border-radius: 7px;
  color: #22304a;
  background: #fff;
  font: inherit;
}

.solution-action {
  width: 100%;
  min-height: 35px;
  margin-top: 6px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: var(--ink-card);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.solution-action:hover { filter: brightness(1.2); }

.solution-choices {
  display: grid;
  gap: 4px;
}

.solution-choices button {
  display: grid;
  gap: 3px;
  padding: 6px 7px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-card);
  text-align: start;
  cursor: pointer;
}

.solution-choices button[aria-pressed="true"] {
  border-color: #718dbc;
  background: #edf3ff;
}

.solution-choices span {
  color: #47536a;
  font-size: 12px;
}

.solution progress {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  accent-color: #297c68;
}

.solution-timeline {
  display: grid;
  gap: 4px;
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
}

.solution-timeline li {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  padding: 5px 8px;
  border-inline-start: 3px solid #d2dce0;
  border-radius: 4px;
  background: #f1f4f6;
  color: #314458;
  font-size: 13px;
}

.solution-timeline li[data-step="done"] {
  border-color: #349479;
  background: #e7f5ee;
}

.solution-timeline li[data-step="current"] {
  border-color: #5985c6;
  background: #eaf1fb;
}

@media (max-width: 760px) {
  .intro h1 { font-size: clamp(23px, 6.5vw, 44px); }
  .card-detail--demo { padding: 8px 6px 6px; }

  .scenario-switcher {
    width: calc(100% - 46px);
    margin-inline: 0 auto;
  }

  .scenario-switcher button { min-height: 35px; }
}

.case-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--graphic-surface) 38%, #f8f8fa);
  color: var(--ink-card, #1f2d44);
}
.case-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.case-sheet::backdrop { background: transparent; }
body:has(.case-sheet[open]) { overflow: hidden; }

.sheet-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: max(8px, env(safe-area-inset-top)) var(--gutter) 8px;
  border-bottom: 1px solid #22284016;
  background: #ffffff84;
}
.sheet-header .wordmark { justify-self: start; }
.sheet-header .wordmark-name { color: var(--ink); font-size: clamp(20px, 2.2vw, 29px); }
.sheet-header .wordmark-domain { color: var(--ink); font-size: 9px; }
.sheet-header h2 {
  margin: 0;
  font-size: clamp(17px, 2vw, 23px);
  letter-spacing: -.025em;
}
.sheet-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 17px;
  border: 1px solid #d4dae2;
  border-radius: 24px;
  background: #fff;
  color: #273446;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.sheet-close:hover { background: #f1f4f9; }
.case-stage {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(18px, 4vw, 62px);
  width: min(calc(100% - var(--gutter) * 2), 1030px);
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
  padding-block: 8px 10px;
  overflow: hidden;
}
.case-stage > [hidden] { display: none; }
.legacy-case { display: grid; min-height: 0; min-width: 0; }
.case-sheet .card-detail--demo {
  position: static;
  width: min(100%, 760px);
  height: 100%;
  margin-inline: auto;
  padding: 12px clamp(10px, 3vw, 22px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  animation: none;
  scrollbar-gutter: stable;
}
.sheet-footer {
  display: grid;
  justify-items: center;
  padding: 7px 16px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid #22284016;
  background: #ffffff84;
}
.sheet-contact { gap: 11px; min-height: 44px; margin-top: clamp(15px, 3svh, 28px); }
.case-sheet .scenario-switcher {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0 auto 12px;
  padding: 4px;
  gap: 3px;
  border-radius: 16px;
  background: #e4e8ef;
}
.case-sheet .scenario-switcher button {
  min-height: 44px;
  padding: 3px 2px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-size: 13px;
}
.case-sheet .scenario-switcher button[aria-pressed="true"] { background: #fff; color: #182337; box-shadow: 0 2px 6px #2233551c; }
.case-sheet .scene-demo, .case-sheet .demo-notes { width: 100%; }
.case-sheet .scene-demo { padding: clamp(13px, 4vw, 20px); border-radius: 20px; }
.case-sheet .scene-demo h3 { font-size: 22px; }
.case-sheet .demo-heading > span { font-size: 11px; }
.case-sheet .demo-picture { height: clamp(155px, 24svh, 218px); }
.case-sheet .workflow-cover { height: clamp(96px, 16svh, 138px); }
.case-sheet .demo-options button, .case-sheet .solution-action,
.case-sheet .demo-action button, .case-sheet .solution-choices button,
.case-sheet .solution-date input, .case-sheet .demo-notes summary { min-height: 44px; }
.case-sheet .demo-notes summary { display: list-item; align-content: center; }
.case-sheet .demo-rows div { font-size: 14px; padding: 9px; }
.case-sheet :is(select, input):focus-visible { outline: 2px solid #386ed1; outline-offset: 2px; }
.case-source { font-size: 13px; line-height: 1.55; }
.case-source strong { display: block; color: #303d50; }
.case-source a { color: #274e86; text-underline-offset: 3px; }
.hotel-stay { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hotel-stay label { display: grid; flex: 1 1 100px; min-width: 0; gap: 3px; font-size: 12px; color: #51576a; }
.hotel-stay input { width: 100%; min-width: 0; padding: 5px; font: inherit; border: 1px solid #d3d9e3; border-radius: 7px; background: #fff; color: var(--ink-card); }
.case-sheet .hotel-stay input { min-height: 40px; }
.booking-selection { padding: 8px 11px; margin: 0 0 10px; border-inline-start: 3px solid #6887a7; background: #fff; color: var(--ink-card); font-size: 14px; font-weight: 650; }
.gallery-demo:not([hidden]) { display: flex; flex-direction: column; align-items: stretch; }
.gallery-demo .demo-heading { order: -3; }
.gallery-demo .demo-gallery-view { order: -2; margin-bottom: 9px; }
.gallery-demo .demo-picture { margin-top: 0; }
@media (max-width: 510px) {
  .sheet-header { min-height: 55px; padding-block: max(5px, env(safe-area-inset-top)) 5px; }
  .sheet-footer { padding-block: 5px max(5px, env(safe-area-inset-bottom)); }
}

#gym .case-peek { background: #1b1e24; }
.gym-peek-photo { position: absolute; inset: 0; background: 0 28% / 200% auto no-repeat; }
#gym[data-cover-visible] .gym-peek-photo { background-image: url("coach-profiles.jpg"); }

.auto-hero-peek { --image: url("detailing-hero.jpg"); }
.auto-hero-peek::before {
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  translate: none;
  background-size: cover;
  background-position: center 52%;
}

.case-intro { align-self: center; max-width: 400px; }
.case-intro h3 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 51px);
  line-height: 1.15;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.case-intro p {
  margin: 15px 0 0;
  color: #465267;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}
.app-sheet-device { min-width: 0; min-height: 0; }
.app-frame { display: block; width: 100%; height: 100%; border: 0; }
.app-frame[hidden] { display: none; }

@media (max-width: 690px) and (orientation: portrait) {
  .case-stage {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 3px;
    padding-block: 4px;
  }
  .case-intro { grid-row: 2; justify-self: center; }
  .case-intro :is(h3, p) { display: none; }
  .sheet-contact { margin-top: 0; }
}
