/* Natural page flow; the WebGL camera owns the robot view. */
.hero-sequence { position: relative; max-width: 1800px; margin: 0 auto; }
.hero { --wordmark-y: 0px; }
.hero-wordmark { transform: translate3d(0, var(--wordmark-y), 0); }
.hero-copy, .hero-copy[inert] { opacity: 1; visibility: visible; transform: none; }
.robot-stage { transform: none; transition: none; }
.robot-dolly { position: absolute; inset: 0; }
.robot-image { transition: none; }
.robot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: none;
  mask-image: linear-gradient(black 84%, transparent 100%);
}
.robot-stage[data-renderer="ready"] .robot-canvas { opacity: 1; }
.robot-stage[data-renderer="ready"] .robot-image { display: none !important; }
.robot-stage .robot-caption { z-index: 3; }
.robot-stage:not([data-renderer="ready"]) .robot-caption .muted { visibility: hidden; }
.statement-track>span { transform: translate3d(var(--statement-shift, 0px), 0, 0); }
.statement-track>.outline-type { transform: translate3d(calc(var(--statement-shift, 0px) * -.6), 0, 0); }
.community:before { opacity: calc(.35 + var(--community-light, 0) * .65); }
.movement { --movement-wipe: 1; clip-path: polygon(0 calc((1 - var(--movement-wipe)) * 24px), 100% 0, 100% 100%, 0 100%); }
.model-credit { color: #74747d; font-size: 9px; line-height: 1.7; margin: 12px 0 0; }
.model-credit a { border-bottom: 1px solid #3d3d44; transition: color .2s; }
.model-credit a:hover { color: var(--white); }
/* The action control: numbered plate, sliding shutter, and a separate arrow chamber. */
.machine-button {
  --button-x: 0px;
  --button-y: 0px;
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 !important;
  gap: 0 !important;
  min-height: 57px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
  background: transparent !important;
  box-shadow: none !important;
  transform: translate3d(var(--button-x), var(--button-y), 0);
  transition: transform .22s cubic-bezier(.2,.65,.3,1);
}
.machine-button:before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  z-index: -2;
  transition: background .25s;
}
.machine-button:after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 1px;
  background: #f43b40;
  transform: scaleX(0);
  transform-origin: left;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: transform .4s cubic-bezier(.2,.65,.2,1);
}
.machine-button:hover:after,
.machine-button:focus-visible:after { transform: scaleX(1); }
.machine-button .button-copy { display: flex; align-items: center; gap: 13px; padding: 16px 21px 16px 15px; position: relative; line-height: 1.3; }
.button-index { align-self: stretch; display: flex; align-items: center; padding-right: 13px; border-right: 1px solid #ffffff38; color: #fff9; font: 8px var(--mono); letter-spacing: .4px; }
.button-label { font: 500 11px/1.4 var(--font); white-space: nowrap; }
.machine-button .button-arrow { position: relative; width: 49px; display: flex; align-items: center; justify-content: center; background: #0000001a; border-left: 1px solid #ffffff27; overflow: hidden; flex-shrink: 0; }
.machine-button .button-arrow:before { content: ''; height: 2px; width: 11px; position: absolute; left: 0; bottom: 0; background: white; transition: width .3s; }
.machine-button .button-arrow:after { content: ''; width: 3px; height: 3px; position: absolute; right: 8px; top: 9px; background: #ffffff60; }
.machine-button .button-arrow svg { width: 17px; height: 17px; transition: transform .3s cubic-bezier(.2,.6,.3,1); }
.machine-button:hover .button-arrow svg { transform: translate(2px,-2px); }
.machine-button:hover .button-arrow:before { width: 100%; }
.machine-button:active { transform: translate3d(var(--button-x), calc(var(--button-y) + 2px), 0); }
.machine-button:active:before { background: #b5151b; }
.machine-button:active:after { opacity: .3; }
.machine-button:disabled { opacity: .4; cursor: not-allowed; }
.machine-button:disabled:after { transform: none; }
.machine-button.button-white { color: #111; }
.machine-button.button-white:before { background: #ebebed; }
.machine-button.button-white:after { background: white; }
.machine-button.button-white .button-index { border-color: #1112; color: #1118; }
.machine-button.button-white .button-arrow { border-color: #1112; background: #1111; }
.machine-button.button-white .button-arrow:before { background: var(--red); }
.machine-button.button-white .button-arrow:after { background: #1115; }
.machine-button.button-header { min-height: 38px; color: var(--white); }
.machine-button.button-header:before { background: #535359; }
.machine-button.button-header:after { background: #151517; transform: scaleX(1); }
.machine-button.button-header:hover:after { background: #29292c; }
.machine-button.button-header:hover:before { background: var(--red); }
.machine-button.button-header .button-copy { padding: 11px 15px; }
.machine-button.button-header .button-label { font-size: 9px; }
.machine-button.button-header .button-arrow { width: 36px; border-color: #45454b; background: transparent; }
.machine-button.button-header .button-arrow svg { width: 13px; height: 13px; }
.machine-button.button-header .button-arrow:before { background: var(--red); height: 1px; }
.machine-button.button-header .button-arrow:after { display: none; }
.hero-ctas .machine-button { min-height: 57px; }
.token-summary .machine-button { min-height: 52px; }
dialog .machine-button { min-height: 51px; }
dialog .machine-button .button-copy { padding-left: 19px; }

/* The secondary control behaves like a small directional encoder. */
.hero-explore { gap: 13px; }
.hero-explore .explore-dial {
  position: relative;
  width: 33px;
  height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5b474c;
  border-radius: 50%;
  font: 19px var(--font);
  flex-shrink: 0;
  transition: transform .3s, color .3s, background .3s, border-color .3s;
}
.explore-dial:before { content: ''; position: absolute; inset: -4px; border: 1px solid transparent; border-left-color: var(--red); border-right-color: var(--red); border-radius: 50%; transform: rotate(30deg); transition: transform .45s; }
.hero-explore:hover .explore-dial { transform: none; color: white; background: #e8212726; border-color: var(--red); }
.hero-explore:hover .explore-dial:before { transform: rotate(120deg); }

/* Channel selectors are long rails, rather than another set of CTA boxes. */
.community-links { gap: 10px; }
.community-links .channel-button {
  --button-x: 0px;
  --button-y: 0px;
  border: 1px solid #3e3a40;
  border-left: 2px solid #75616a;
  padding: 0;
  min-height: 64px;
  gap: 0;
  position: relative;
  background: #0c0c0e;
  transform: translate3d(var(--button-x), var(--button-y), 0);
  transition: transform .2s, border-color .25s, background .25s;
}
.community-links .channel-button:last-child { border-bottom: 1px solid #3e3a40; }
.channel-button:before { content: ''; position: absolute; bottom: -1px; left: -2px; height: 2px; width: 20px; background: var(--red); transition: width .4s; }
.community-links .channel-button>svg:first-child { width: 17px; height: 17px; margin: 0 19px; }
.community-links .channel-button>span { padding: 20px 0 20px 19px; border-left: 1px solid #302c32; font-size: 12px; }
.community-links .channel-button>svg:last-child { width: 17px; height: 17px; margin: 0 20px; }
.community-links .channel-button:hover { color: white; background: #1d1115; border-color: #9c3c49; }
.community-links .channel-button:hover:before { width: calc(100% + 2px); }
.community-links .channel-button:active { background: #30151b; }
.hero-controls #scan-button { border: 1px solid #56404a; padding: 8px 11px; position: relative; color: #d1bec4; }
.hero-controls #scan-button:after { content: ''; position: absolute; bottom: -1px; left: -1px; width: 15px; height: 1px; background: var(--red); transition: width .25s; }
.hero-controls #scan-button:hover:after,
.hero-controls #scan-button[aria-pressed=true]:after { width: calc(100% + 2px); }
.hero-controls #scan-button[aria-pressed=true] { background: #e821271a; color: #f08b91; }

@media (max-width: 1100px) {
  .machine-button .button-copy { padding-left: 12px; padding-right: 15px; gap: 10px; }
  .button-index { padding-right: 10px; font-size: 7px; }
  .button-label { font-size: 10px; }
  .machine-button .button-arrow { width: 43px; }
  .hero-ctas { gap: 19px; }
  .hero-explore { gap: 12px; }
  .hero-explore .explore-dial { width: 29px; height: 29px; }
}

@media (max-width: 580px) {
  .movement { clip-path: none; }
  .robot-dolly { width: 107%; height: 107%; left: auto; top: auto; right: -1%; bottom: 0; }
  .robot-dolly .robot-image { width: 100%; height: 100%; right: 0; }
  .machine-button.button-header .button-copy { padding: 10px 11px; }
  .machine-button.button-header .button-label { font-size: 8px; }
  .machine-button.button-header .button-arrow { width: 29px; }
  .machine-button.button-header { min-height: 33px; }
  .header-actions { gap: 14px; }
  .hero-ctas { gap: 20px; }
  .hero-ctas .machine-button { min-height: 51px; }
  .machine-button .button-copy { padding: 14px 13px 14px 11px; gap: 10px; }
  .machine-button .button-label { font-size: 10px; }
  .machine-button .button-arrow { width: 38px; }
  .machine-button .button-index { font-size: 7px; padding-right: 9px; }
  .hero-explore { gap: 11px; max-width: 120px; font-size: 8px; }
  .hero-explore .explore-dial { width: 27px; height: 27px; font-size: 17px; }
  .hero-controls { gap: 11px; }
  .hero-controls #scan-button { padding: 7px 8px; font-size: 7px; }
  .hero-controls #motion-toggle { min-width: 28px; }
  .protocol-list { gap: 10px; }
  .protocol-list>span+span { padding-left: 10px; }
  .channel-button>span { font-size: 12px; }
  .model-credit { font-size: 8px; margin-top: 12px; }
}

@media (max-width: 360px) {
  .machine-button.button-header .button-copy { padding: 9px; }
  .machine-button.button-header .button-label { font-size: 7px; }
  .machine-button.button-header .button-arrow { width: 26px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-explore { max-width: none; font-size: 9px; gap: 18px; }
  .hero-controls #scan-button { font-size: 6px; padding: 7px; }
  .hero-controls #scan-button svg { width: 10px; }
}

@media (pointer: coarse) {
  .robot-caption .muted { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion=on]) :is(.hero-wordmark, .statement-track>span, .machine-button, .channel-button) { transform: none !important; }
  :root:not([data-motion=on]) .movement { clip-path: none; }
}
:root[data-motion=off] .hero-wordmark,
:root[data-motion=off] .statement-track>span,
:root[data-motion=off] .machine-button,
:root[data-motion=off] .channel-button { transform: none; }
:root[data-motion=off] .movement { clip-path: none; }
