/* [project]/src/components/model-explorer.css [app-client] (css) */
.model-explorer {
  --ex-ink: var(--brand-charcoal);
  --ex-paper: var(--surface);
  --ex-accent: var(--brand-ash);
  --ex-panel: color-mix(in srgb, var(--brand-white) 94%, var(--brand-ash));
  --ex-shadow: color-mix(in srgb, var(--brand-charcoal) 18%, transparent);
  max-width: 1440px;
  color: var(--ex-ink);
  font-family: var(--font-sans), sans-serif;
  margin: 0 auto;
  padding: 112px 6.1% 96px;
  scroll-margin-top: 96px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.model-explorer__intro {
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 48px;
  display: flex;
}

.model-explorer__intro > div {
  min-width: 0;
}

.model-explorer__eyebrow {
  letter-spacing: 0.1em;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
}

.model-explorer__eyebrow > span {
  background: var(--brand-hooker);
  border-radius: 50%;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
}

.model-explorer h2 {
  font-family: var(--font-sans), sans-serif;
  font-size: var(--type-h2-size);
  font-weight: 700;
  line-height: var(--type-h2-leading);
  letter-spacing: -0.035em;
  margin: 0;
}

.model-explorer h2 > span {
  display: block;
}

.model-explorer__description {
  max-width: 360px;
  color: var(--brand-hooker);
  flex: 0 360px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.model-explorer__frame {
  background: var(--brand-charcoal);
  color: var(--brand-white);
  box-shadow: 0 24px 72px -36px var(--ex-shadow);
  border-radius: 6px;
  overflow: hidden;
}

.model-explorer__topbar {
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  min-height: 128px;
  padding: 24px 32px;
  display: flex;
}

.model-explorer__wordmark {
  flex: 0 0 216px;
}

.model-explorer__wordmark img {
  aspect-ratio: 432.389 / 154.823;
  object-fit: contain;
  width: 216px;
  height: auto;
  display: block;
}

.model-explorer button,
.model-explorer select {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.model-explorer button {
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.model-explorer button:focus-visible,
.model-explorer a:focus-visible,
.model-explorer select:focus-visible,
.model-explorer canvas:focus-visible {
  outline: 2px solid var(--brand-hooker);
  outline-offset: 4px;
}

.model-explorer__modes {
  background: color-mix(in srgb, var(--brand-white) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-ash) 28%, transparent);
  border-radius: 5px;
  gap: 4px;
  padding: 5px;
  display: flex;
}

.model-explorer__modes button {
  min-height: 48px;
  color: var(--brand-ash);
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: 2px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
}

.model-explorer__modes button:hover {
  color: var(--brand-white);
  background: color-mix(in srgb, var(--brand-white) 8%, transparent);
}

.model-explorer__modes button.is-selected {
  background: var(--brand-ash);
  color: var(--brand-charcoal);
}

.model-explorer__modes button:focus-visible,
.model-explorer__launch:focus-visible {
  outline-color: var(--brand-white);
}

.model-explorer__modes svg {
  flex-shrink: 0;
}

.model-explorer__topbar-caption {
  letter-spacing: 0.04em;
  max-width: 210px;
  color: var(--brand-ash);
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.model-explorer__stage {
  isolation: isolate;
  background: radial-gradient(
    ellipse at 50% 40%,
    color-mix(in srgb, var(--brand-white) 88%, var(--brand-ash)) 0%,
    color-mix(in srgb, var(--brand-white) 42%, var(--brand-ash)) 47%,
    var(--brand-ash) 100%
  );
  height: min(60vw, 720px);
  min-height: 640px;
  position: relative;
  overflow: hidden;
}

.model-explorer__stage.is-fullscreen {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
}

.model-explorer__canvas {
  z-index: 0;
  touch-action: none;
  position: absolute;
  inset: 0;
}

.model-explorer__canvas canvas {
  cursor: grab;
  width: 100%;
  height: 100%;
  display: block;
}

.model-explorer__canvas canvas:active {
  cursor: grabbing;
}

.model-explorer__poster {
  z-index: 1;
  position: absolute;
  inset: 0;
}

.model-explorer__poster img {
  object-fit: cover;
  object-position: center 57%;
  width: 100%;
  height: 100%;
}

.model-explorer__poster-shade {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--brand-charcoal) 70%, transparent),
      color-mix(in srgb, var(--brand-slate) 46%, transparent) 50%,
      color-mix(in srgb, var(--brand-charcoal) 35%, transparent)
    ),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--brand-charcoal) 55%, transparent),
      transparent 70%
    );
  position: absolute;
  inset: 0;
}

.model-explorer__live-label {
  z-index: 3;
  letter-spacing: 0.06em;
  color: var(--brand-white);
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
  position: absolute;
  top: 24px;
  left: 24px;
}

.model-explorer__live-label > span {
  background: var(--brand-ash);
  border-radius: 50%;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
}

.model-explorer__live-label.on-light {
  color: var(--brand-slate);
  background: var(--ex-panel);
  border-radius: 3px;
  padding: 10px 12px;
}

.model-explorer__live-label.on-light > span {
  background: var(--brand-hooker);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-cambridge) 20%, transparent);
}

.model-explorer__start,
.model-explorer__loading,
.model-explorer__error {
  z-index: 2;
  text-align: center;
  color: var(--brand-white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 32px 56px;
  display: flex;
  position: absolute;
  inset: 0;
}

.model-explorer__orbit-mark {
  border: 1px solid color-mix(in srgb, var(--brand-white) 55%, transparent);
  width: 72px;
  height: 72px;
  color: var(--brand-ash);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  display: flex;
  position: relative;
}

.model-explorer__orbit-mark:after {
  content: "";
  border: 1px solid color-mix(in srgb, var(--brand-white) 24%, transparent);
  border-radius: 50%;
  position: absolute;
  inset: -8px;
}

.model-explorer__start h3,
.model-explorer__loading h3,
.model-explorer__error h3 {
  max-width: 800px;
  font-family: var(--font-sans), sans-serif;
  font-size: var(--type-h3-size);
  font-weight: 600;
  line-height: var(--type-h3-leading);
  letter-spacing: -0.025em;
  color: var(--brand-white);
  margin: 0;
}

.model-explorer__start > p,
.model-explorer__loading > p,
.model-explorer__error > p {
  color: var(--brand-white);
  max-width: 440px;
  margin: 16px 0 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.model-explorer__launch {
  background: var(--brand-ash);
  min-height: 56px;
  color: var(--brand-charcoal);
  border: 1px solid var(--brand-ash);
  border-radius: 2px;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 15px 24px;
  display: inline-flex;
}

.model-explorer__launch:hover {
  background: color-mix(in srgb, var(--brand-white) 35%, var(--brand-ash));
  border-color: color-mix(in srgb, var(--brand-white) 35%, var(--brand-ash));
  transform: translateY(-2px);
}

.model-explorer__on-demand {
  color: var(--brand-ash);
  max-width: 440px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.model-explorer__loading {
  background: color-mix(in srgb, var(--brand-charcoal) 60%, transparent);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.model-explorer__spinner {
  color: var(--brand-ash);
  margin-bottom: 28px;
  animation: 1.3s linear infinite explorer-spin;
}

.model-explorer__progress {
  background: color-mix(in srgb, var(--brand-white) 28%, transparent);
  width: min(100%, 280px);
  height: 4px;
  overflow: hidden;
}

.model-explorer__progress > span {
  background: var(--brand-ash);
  height: 100%;
  transition: width 0.3s;
  display: block;
}

.model-explorer__loading > small {
  color: var(--brand-ash);
  font-variant-numeric: tabular-nums;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.model-explorer__error {
  background: color-mix(in srgb, var(--brand-charcoal) 62%, transparent);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.model-explorer__error > svg {
  color: var(--brand-ash);
  margin-bottom: 24px;
}

.model-explorer__gallery-link {
  color: var(--brand-white);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-white) 65%, transparent);
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  display: flex;
}

.model-explorer__toolbar {
  z-index: 3;
  background: var(--ex-panel);
  border: 1px solid var(--brand-white);
  box-shadow: 0 4px 24px var(--ex-shadow);
  color: var(--brand-charcoal);
  border-radius: 4px;
  align-items: center;
  padding: 6px;
  display: flex;
  position: absolute;
  top: 24px;
  right: 24px;
}

.model-explorer__toolbar button {
  width: 44px;
  height: 44px;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 2px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.model-explorer__toolbar button:hover,
.model-explorer__toolbar button.is-on {
  background: var(--brand-ash);
}

.model-explorer__toolbar i {
  background: color-mix(in srgb, var(--brand-slate) 24%, transparent);
  width: 1px;
  height: 20px;
  margin: 0 5px;
}

.model-explorer__quality {
  z-index: 3;
  background: var(--ex-panel);
  border: 1px solid var(--brand-white);
  width: 192px;
  color: var(--brand-charcoal);
  box-shadow: 0 4px 24px var(--ex-shadow);
  border-radius: 3px;
  padding: 12px 16px;
  position: absolute;
  top: 96px;
  right: 24px;
}

.model-explorer__quality > label {
  color: var(--brand-hooker);
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: block;
}

.model-explorer__quality > div {
  align-items: center;
  display: flex;
  position: relative;
}

.model-explorer__quality select {
  appearance: none;
  color: var(--brand-charcoal);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 0;
  width: 100%;
  min-height: 32px;
  padding: 4px 24px 4px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.model-explorer__quality option,
.model-explorer__view-picker option {
  background: var(--surface);
  color: var(--brand-charcoal);
}

.model-explorer__quality svg {
  pointer-events: none;
  position: absolute;
  right: 0;
}

.model-explorer__view-picker {
  z-index: 3;
  background: var(--ex-panel);
  border: 1px solid var(--brand-white);
  width: min(380px, 52%);
  box-shadow: 0 4px 24px var(--ex-shadow);
  color: var(--brand-slate);
  border-radius: 3px;
  padding: 12px 16px;
  position: absolute;
  bottom: 24px;
  left: 24px;
}

.model-explorer__view-picker > span {
  color: var(--brand-hooker);
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: block;
}

.model-explorer__view-picker > div {
  align-items: center;
  display: flex;
  position: relative;
}

.model-explorer__view-picker select {
  appearance: none;
  width: 100%;
  min-height: 40px;
  color: var(--brand-charcoal);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 8px 28px 8px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.model-explorer__view-picker svg {
  pointer-events: none;
  position: absolute;
  right: 0;
}

.model-explorer__canvas-hint {
  z-index: 2;
  background: var(--ex-panel);
  max-width: 310px;
  color: var(--brand-slate);
  border-radius: 3px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
  position: absolute;
  bottom: 32px;
  right: 24px;
}

.model-explorer__canvas-hint svg {
  flex-shrink: 0;
}

.model-explorer__live-label,
.model-explorer__canvas-hint {
  pointer-events: none;
}

.model-explorer__footer {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  min-height: 88px;
  padding: 24px 32px;
  display: flex;
}

.model-explorer__detail {
  color: var(--brand-ash);
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
}

.model-explorer__detail > span {
  background: var(--brand-ash);
  border-radius: 50%;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
}

.model-explorer__desktop-help {
  flex-wrap: wrap;
  gap: 12px 24px;
  display: flex;
}

.model-explorer__desktop-help > span {
  color: var(--brand-ash);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
}

.model-explorer__desktop-help svg {
  flex-shrink: 0;
}

.model-explorer__mobile-help {
  display: none;
}

.model-explorer__note {
  color: var(--brand-hooker);
  max-width: 1040px;
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.model-explorer__notice {
  background: var(--brand-charcoal);
  width: min(90%, 480px);
  color: var(--brand-white);
  z-index: 5;
  box-shadow: 0 5px 24px var(--ex-shadow);
  border-radius: 3px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  display: flex;
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
}

.model-explorer__notice button {
  min-height: 44px;
  color: var(--brand-white);
  background: none;
  border: 0;
  flex: 0 0 44px;
  justify-content: center;
  align-items: center;
  padding: 8px;
  display: flex;
}

.model-explorer__sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

@keyframes explorer-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1600px) {
  .model-explorer {
    padding-left: 58px;
    padding-right: 58px;
  }
}

@media (max-width: 1100px) {
  .model-explorer__topbar-caption {
    display: none;
  }

  .model-explorer__topbar {
    gap: 24px;
    padding: 24px;
  }

  .model-explorer__footer {
    padding: 24px;
  }

  .model-explorer__canvas-hint {
    display: none;
  }
}

@media (max-width: 1000px) {
  .model-explorer {
    padding: 88px 5%;
  }

  .model-explorer__intro {
    display: block;
  }

  .model-explorer__description {
    max-width: 600px;
    margin: 24px 0 0;
  }

  .model-explorer__footer {
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .model-explorer {
    padding: 64px 5%;
  }

  .model-explorer__intro {
    margin-bottom: 32px;
  }

  .model-explorer__eyebrow {
    letter-spacing: 0.06em;
    margin-bottom: 20px;
  }

  .model-explorer h2 {
    letter-spacing: -0.025em;
  }

  .model-explorer__description {
    max-width: 480px;
    margin-top: 20px;
  }

  .model-explorer__topbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 24px 16px;
  }

  .model-explorer__wordmark {
    flex-basis: 100%;
    justify-content: center;
    display: flex;
  }

  .model-explorer__wordmark img {
    width: min(216px, 100%);
  }

  .model-explorer__modes {
    width: 100%;
  }

  .model-explorer__modes button {
    white-space: normal;
    flex: 1;
    gap: 8px;
    min-width: 0;
    padding: 12px 10px;
  }

  .model-explorer__stage {
    height: 155vw;
    min-height: 640px;
    max-height: 740px;
  }

  .model-explorer__stage.is-fullscreen {
    height: 100dvh;
    min-height: 0;
    max-height: none;
  }

  .model-explorer__live-label {
    letter-spacing: 0.025em;
    top: 20px;
    left: 16px;
  }

  .model-explorer__start,
  .model-explorer__loading,
  .model-explorer__error {
    padding: 84px 24px 48px;
  }

  .model-explorer__orbit-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
  }

  .model-explorer__start h3,
  .model-explorer__loading h3,
  .model-explorer__error h3 {
    max-width: 400px;
  }

  .model-explorer__start > p,
  .model-explorer__loading > p,
  .model-explorer__error > p {
    max-width: 360px;
    margin: 16px 0 24px;
  }

  .model-explorer__launch {
    gap: 24px;
    min-height: 56px;
    padding: 15px 20px;
  }

  .model-explorer__on-demand {
    max-width: 300px;
  }

  .model-explorer__toolbar {
    padding: 5px;
    top: 76px;
    right: 16px;
  }

  .model-explorer__toolbar i {
    margin: 0 4px;
  }

  .model-explorer__quality {
    width: 184px;
    padding: 12px 14px;
    top: 148px;
    right: 16px;
  }

  .model-explorer__view-picker {
    width: auto;
    padding: 12px 14px;
    bottom: 20px;
    left: 16px;
    right: 16px;
  }

  .model-explorer__view-picker select {
    min-height: 44px;
  }

  .model-explorer__footer {
    padding: 24px 20px;
    display: block;
  }

  .model-explorer__desktop-help {
    display: none;
  }

  .model-explorer__mobile-help {
    color: var(--brand-ash);
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    display: block;
  }

  .model-explorer__note {
    margin-top: 20px;
  }

  .model-explorer__poster img {
    object-position: center;
  }

  .model-explorer__notice {
    padding: 16px;
    font-size: 14px;
    line-height: 20px;
    bottom: 136px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-explorer * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .model-explorer__spinner {
    animation-duration: 3s;
  }

  .model-explorer__launch:hover {
    transform: none;
  }
}

.model-explorer__disclaimer {
  border-top: 1px solid color-mix(in srgb, var(--brand-ash) 18%, transparent);
  background: color-mix(in srgb, var(--brand-ash) 12%, var(--brand-charcoal));
  color: var(--brand-white);
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
}

.model-explorer__disclaimer svg {
  color: var(--brand-ash);
  flex-shrink: 0;
  margin-top: 1px;
}

.model-explorer__disclaimer strong {
  font-weight: 700;
}

@media (max-width: 1100px) {
  .model-explorer__disclaimer {
    padding: 14px 24px;
  }
}

@media (max-width: 700px) {
  .model-explorer__disclaimer {
    padding: 14px 16px;
  }
}
