.web-project { --accent: #226547; }
:root[data-theme="dark"] .web-project { --accent: #a8d4b1; }
.web-project[data-key="trotxi-commuter-survey"] {
  --card: #f1f4f6; --soft: #e1e8ed; --secondary: #45545f; --rule: #cbd5dc; --accent: #405c71;
}
:root[data-theme="dark"] .web-project[data-key="trotxi-commuter-survey"] {
  --card: #22292f; --soft: #303c45; --secondary: #bdc9d1; --rule: #3c4851; --accent: #b5cddd;
}
.web-project .project-credits div { grid-template-columns: 6.2em minmax(0,1fr); }
.web-project .preview-controls[hidden] { display: none; }
.web-device-options[hidden] { display: none; }
.web-device-options button { min-height: 38px; padding-inline: 10px; }
.web-project :is(button,a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.web-art {
  --field: #14694c; --caption: #f1f8ef; --arc-ink: #e2f4dc;
  background: var(--field);
}
.web-project[data-key="trotxi-commuter-survey"] .web-art {
  --field: #1b354c; --arc-ink: #aabed0; --caption: #ecf1f5; --motion-bg: #172d40; --motion-hover: #0c2030;
}
:root[data-theme="dark"] .web-art { --field: #164b3b; }
:root[data-theme="dark"] [data-key="trotxi-commuter-survey"] .web-art { --field: #0b1d30; }
.web-art::before { content: none; }
.web-art figcaption { color: var(--caption); text-shadow: none; right: 116px; min-height: 16px; }
.web-figure-tools { position: absolute; z-index: 4; bottom: 8px; right: 12px; display: flex; align-items: center; gap: 11px; }
.web-palette { display: flex; align-items: center; padding-left: 3px; }
.web-palette i { width: 13px; height: 13px; margin-left: -3px; border: 1px solid #fffc; border-radius: 50%; background: var(--swatch); }
.web-stage { inset: 16px 15px 38px; z-index: 1; }
.web-device {
  --bezel: clamp(4px,.85cqw,8px); --curve: clamp(7px,1.35cqw,14px);
  position: relative; display: flex; align-items: center; flex-direction: column; isolation: isolate;
  width: min(94cqw,calc((100cqh - 45px) * var(--aspect)));
}
.web-device::before {
  content: ""; position: absolute; z-index: -1; bottom: -3px; width: 49%; height: 7px;
  border-radius: 50%; background: #10251c50; filter: blur(6px);
}
.web-bezel {
  box-sizing: border-box; width: 100%; padding: var(--bezel); border: 1px solid #8b958e;
  border-radius: var(--curve); background: linear-gradient(128deg,#414a43,#1a201d 23%,#101512 70%,#363d37);
  box-shadow: 0 6px 15px -9px #0b201ba6,inset 0 0 0 1px #ffffff23;
}
.web-glass { position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--aspect); border-radius: max(3px,calc(var(--curve) - var(--bezel))); background: #fff; }
.web-glass .web-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.web-page-window { position: absolute; inset: 0; overflow: hidden; overflow: clip; border-radius: inherit; }
.web-page-window[inert], .web-nav-visual { pointer-events: none; }
.web-page-window img { user-select: none; -webkit-user-drag: none; }
.web-project[data-key="trotxi-website"] .web-glass { touch-action: pan-y pinch-zoom; }
.web-page-document { position: relative; }
.web-page-document .web-frame { position: static; width: 100%; height: auto; }
.web-page-hotspots { position: absolute; inset: 0; pointer-events: none; }
.web-page-hotspots :is(a,select) { position: absolute; pointer-events: auto; border: 0; padding: 0; margin: 0; cursor: pointer; background: transparent; color: transparent; border-radius: 3px; }
.web-page-hotspots a:is(:hover,:focus-visible) { outline: 1px solid #147c54; background: rgb(41 147 98 / 12%); }
.web-page-hotspots select { appearance: none; color: transparent; }
.web-page-hotspots select:is(:hover,:focus-visible) { outline: 1px solid #147c54; background: rgb(41 147 98 / 12%); }
.web-page-hotspots :is(option,optgroup) { color: #17251d; background: #fafcf8; }
.web-page-outgoing { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.web-page-outgoing .web-frame { height: auto; }
.web-nav-visual { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.web-nav-visual[data-sheet] { background: rgb(0 0 0 / 45%); }
.web-nav-visual img { display: block; width: 100%; height: 100%; }

.web-page-navigation { display: flex; align-items: center; align-self: flex-start; width: min(100%,318px); margin-top: 10px;
  padding: 3px; gap: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
.web-page-navigation[hidden] { display: none; }
.web-page-arrow { flex: 0 0 35px; height: 35px; border: none; border-radius: 50%; display: grid; place-items: center; color: var(--card-text); background: transparent; }
.web-page-arrow:hover,.web-page-picker:hover { background: var(--soft); }
.web-page-picker { position: relative; display: flex; align-items: center; min-width: 0; flex: 1; border-radius: 999px; }
.web-page-count { position: absolute; left: 5px; color: var(--secondary); font-size: 10px; font-variant-numeric: tabular-nums; pointer-events: none; }
.web-page-picker select { appearance: none; height: 35px; width: 100%; min-width: 0; padding: 0 19px 0 51px; overflow: hidden; text-overflow: ellipsis;
  font: inherit; font-size: 12px; font-weight: 500; border: none; border-radius: 999px; color: var(--card-text); background: transparent; cursor: pointer; }
.web-page-picker select:focus-visible { outline: 2px solid var(--accent); }
.web-page-picker :is(option,optgroup) { color: var(--card-text); background: var(--card); }
.web-page-chevron { position: absolute; display: grid; right: 4px; transform: rotate(90deg); pointer-events: none; }
.web-frame.departing { z-index: 1; pointer-events: none; }
.web-glass [hidden], .web-motion[hidden], .web-motion [hidden] { display: none !important; }
.web-glass .demo-pointer svg { width: clamp(7px,1.7cqw,11px); }
.web-glass .touch-contact { width: clamp(6px,1.5cqw,9px); }
.web-glass .demo-pointer.is-tapping::before { width: 12px; height: 12px; left: -6px; top: -6px; }
.web-project[data-key="trotxi-website"] .demo-pointer svg { width: clamp(12px,2.15cqw,15px); filter: drop-shadow(0 1px 1.5px #000b); }
.web-project[data-key="trotxi-website"] .touch-contact { width: clamp(7px,1.55cqw,9px); animation: none; }
.web-project[data-key="trotxi-website"] .touch-contact::after { animation: none; opacity: 0; }
.web-project[data-key="trotxi-website"] .touch-contact.is-tapping::after { animation: contact-ripple 240ms ease-out both; }
.web-motion {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid #ffffff70; border-radius: 50%; color: #f7faf5; background: var(--motion-bg,#132e2ae0);
}
.web-motion span { display: flex; }
.web-motion:hover { background: var(--motion-hover,#0b1c30); }
.web-project .web-art .web-motion:focus-visible { outline: 2px solid #f4f8f5; }
.web-neck { margin-top: -1px; width: 11%; height: clamp(17px,5.2cqh,29px); background: linear-gradient(90deg,#73827b,#c2cac4 36%,#89988f); clip-path: polygon(16% 0,84% 0,93% 100%,7% 100%); border-top: 3px solid #69796f; }
.web-foot { width: 29%; height: clamp(4px,1.4cqh,8px); border-radius: 70% 70% 25% 25% / 70% 70% 30% 30%; background: linear-gradient(#d1d7d2,#99a69c 70%,#77847b); }
.web-device:is([data-device="tablet"],[data-device="phone"]) {
  --bezel: clamp(4px,1cqh,7px); --curve: clamp(12px,3.8cqh,22px);
  width: min(88cqw,calc((100cqh - 21px) * var(--aspect) + 2 * var(--bezel)));
}
.web-device[data-device="phone"] { --curve: clamp(17px,5.1cqh,30px); }
.web-device:not([data-device="desktop"]) :is(.web-neck,.web-foot) { display: none; }
.web-device:not([data-device="desktop"]) .web-bezel { box-shadow: 0 12px 22px -10px #17231e85,inset 0 0 0 1px #ffffff30; }
@media (max-width: 780px) {
  .web-project[data-key="trotxi-commuter-survey"] .web-art { height: clamp(374px,108vw,456px); }
  .web-stage { inset: 13px 10px 31px; }
  .web-figure-tools { bottom: 5px; right: 8px; }
  .web-page-arrow { flex-basis: 40px; height: 40px; }
  .web-page-picker select { height: 40px; }
  .web-art figcaption { right: 55px; }
  .web-palette { display: none; }
}
@container (max-width: 270px) {
  .web-device-options button { padding-inline: 7px; gap: 3px; }
  .web-device-options svg { display: none; }
}
