/* The Lab: pages */
.lab { background: var(--at-neutral-50); color: var(--at-neutral-900); padding-bottom: 100px; }
.lab p, .lab dl, .lab dd, .lab ul { margin: 0; padding: 0; color: inherit; }
.lab li, .lab-teaser li { list-style: none; }
.lab .container, .lab-teaser .container { padding-inline: clamp(16px, 2.8vw, 48px); }
.lab-hero { padding-top: 170px; padding-bottom: 60px; }
.lab-hero h1 { font-size: clamp(46px, 7.4vw, 118px); line-height: .98; letter-spacing: -.045em; margin: 6px 0 26px; }
.lab .lab-hero p { font-size: 21px; line-height: 1.5; max-width: 660px; color: var(--at-neutral-500); }
.lab-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.lab-tile { position: relative; display: block; border-radius: 28px; overflow: hidden; background: #05060a; aspect-ratio: 3 / 2.2; color: #fff; isolation: isolate; }
.lab-tile img, .lab-poster__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.85); transition: filter .7s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.lab-tile__light { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 226, 180, .34), transparent 70%); mix-blend-mode: screen; }
.lab-tile:hover img, .lab-tile:focus-visible img, .lab-poster__art:hover img { filter: brightness(1.05); transform: scale(1.035); }
.lab-tile:hover .lab-tile__light, .lab-poster__art:hover .lab-tile__light { opacity: 1; }
.lab-tile__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 34px 32px; display: grid; gap: 8px; background: linear-gradient(transparent, rgba(5, 6, 10, .92) 62%); }
.lab-tile__txt small { font-size: 15px; font-weight: 600; color: #ffcf94; }
.lab-tile__txt b { font-size: clamp(32px, 3.4vw, 54px); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.lab-tile__txt > span { font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .8); max-width: 520px; }
.lab-tile__txt em { font-style: normal; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.lab-tile em svg { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.lab-tile:hover em svg { transform: translate(4px, -4px); }
.lab-tile:focus-visible { outline: 3px solid var(--aa-accent); outline-offset: 4px; }
.lab .lab-soon { margin-top: 30px; font-size: 17px; color: var(--at-neutral-500); }
.lab-teaser { background: var(--at-neutral-50); padding: 110px 0; }
.rs .lab-teaser { padding-top: 0; }
.lab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.lab-head h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.03em; margin: 4px 0 0; }
.lab-more { font-weight: 600; font-size: 17px; display: inline-flex; gap: 10px; align-items: center; color: var(--at-neutral-900); }

.lab-poster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 140px; padding-bottom: 90px; min-height: min(100vh, 900px); }
.lab-back { font-size: 16px; font-weight: 600; color: var(--at-neutral-500); }
.lab-back::before { content: "\2190\00a0"; }
.lab .lab-kicker { font-size: 17px; font-weight: 600; color: var(--aa-accent); margin-top: 34px; }
.lab-poster h1 { font-size: clamp(52px, 6.8vw, 112px); line-height: .94; letter-spacing: -.05em; margin: 8px 0 24px; }
.lab .lab-hook { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; max-width: 560px; color: var(--at-neutral-500); }
.lab .lab-time { margin-top: 22px; font-size: 15px; color: var(--at-neutral-500); }
.lab-poster__art { position: relative; aspect-ratio: 3 / 2.3; border-radius: 32px; overflow: hidden; background: #05060a; }
.lab-poster__art img { filter: brightness(.82); }

/* The switch */
.th-entry { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.th-switch { display: inline-flex; align-items: center; gap: 22px; border: 0; padding: 12px 34px 12px 12px; border-radius: 24px; background: #0e1017; color: #fff; text-align: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.th-switch:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(10, 12, 24, .28); }
.th-switch__plate { position: relative; width: 62px; height: 92px; border-radius: 16px; background: linear-gradient(160deg, #2b2f3b, #15171f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.th-switch__plate::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 14px; margin-left: -7px; border-radius: 9px; background: #05060a; box-shadow: inset 0 2px 5px #000; }
.th-switch__plate i { position: absolute; left: 50%; bottom: 10px; width: 36px; height: 34px; margin-left: -18px; border-radius: 11px; background: linear-gradient(#f3f5fa, #aab1c2); box-shadow: 0 5px 12px rgba(0, 0, 0, .6); transition: bottom .26s cubic-bezier(.6, 0, .3, 1.5), background .2s, box-shadow .2s; }
.th-switch:hover .th-switch__plate i { bottom: 15px; }
.th-switch.is-on .th-switch__plate i { bottom: 48px; background: linear-gradient(#fff0cd, #ffb54a); box-shadow: 0 0 34px #ffb54a; }
.th-switch__txt { display: grid; gap: 2px; }
.th-switch__txt b { font-size: 23px; letter-spacing: -.02em; font-weight: 600; }
.th-switch__txt small { font-size: 15px; color: rgba(255, 255, 255, .68); }
.th-skip { background: none; border: 0; padding: 8px 0; font-size: 17px; font-weight: 600; color: var(--at-neutral-900); text-decoration: underline; text-underline-offset: 5px; }
.lab button:focus-visible { outline: 3px solid var(--aa-accent); outline-offset: 4px; }

.lab-read { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; padding-top: 40px; padding-bottom: 100px; align-items: start; }
.lab-read h2, .lab-next h2 { font-size: clamp(32px, 3.4vw, 50px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 22px; }
.lab-read__main > p { font-size: 20px; line-height: 1.62; margin-bottom: 20px; max-width: 700px; }
.lab-read__main h2:not(:first-child) { margin-top: 64px; }
.lab-read dl > div { padding: 20px 0; border-top: 1px solid var(--at-neutral-100); max-width: 700px; }
.lab-read dt { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.lab-read dd { font-size: 18px; line-height: 1.55; color: var(--at-neutral-500) !important; margin-top: 6px !important; }
.lab-read__side { display: grid; gap: 12px; }
.lab-card { background: var(--at-neutral-0); border-radius: 24px; padding: 28px; }
.lab-card h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 16px; }
.lab-card a { display: block; color: inherit; padding: 14px 0; border-top: 1px solid var(--at-neutral-100); }
.lab-card a b { display: block; font-size: 18px; line-height: 1.3; font-weight: 600; transition: color .25s; }
.lab-card a:hover b { color: var(--aa-accent); }
.lab-card a span { display: block; font-size: 15px; color: var(--at-neutral-500); margin: 4px 0 6px; }
.lab-card p, .lab-card li { font-size: 16px; line-height: 1.5; }
.lab-card > p, .lab-card li { padding: 10px 0; border-top: 1px solid var(--at-neutral-100); }
.lab-card > p b { font-weight: 600; margin-right: 4px; }
@media (max-width: 991px) {
  .lab-poster, .lab-read { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lab-poster { min-height: 0; padding-top: 120px; padding-bottom: 60px; }
  .lab-hero { padding-top: 130px; }
}
@media (max-width: 575px) {
  .lab-tile { aspect-ratio: auto; min-height: 430px; }
  .lab-tile__txt { padding: 100px 22px 24px; }
}

/* The theatre */
html.th-lock, html.th-lock body { overflow: hidden !important; }
.th { position: fixed; inset: 0; z-index: 999999; color: #fff; overflow: hidden; outline: 0; font-family: inherit; }
.th p, .th h2 { margin: 0; color: inherit; }
.th button { font-family: inherit; color: inherit; cursor: pointer; }
.th button:focus-visible, .th [role="button"]:focus-visible, .th input:focus-visible { outline: 2px solid #ffcf94; outline-offset: 3px; }
.th__bands { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(4, 1fr); }
.th__bands i { background: #05060a; opacity: 0; animation: thBand .07s linear forwards; margin-top: -1px; }
.th__bands i:nth-child(2) { animation-delay: .26s; }
.th__bands i:nth-child(3) { animation-delay: .52s; }
.th__bands i:nth-child(4) { animation-delay: .78s; }
@keyframes thBand { 0% { opacity: 0; } 40% { opacity: .75; } 60% { opacity: .35; } 100% { opacity: 1; } }
.th:not(.is-lights) { background: #05060a; }
.th__stage, .th__machine, .th__black { position: absolute; inset: 0; width: 100%; height: 100%; }
.th__stage { visibility: hidden; }
.th.is-intro .th__stage, .th.is-demo .th__stage { visibility: visible; }
.th__stage canvas { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.th__machine { pointer-events: none; }
.th:not(.is-power) .th__machine { display: none; }
.th__black { background: #05060a; opacity: 0; pointer-events: none; transition: opacity .9s ease; }
.th__black.is-on { opacity: 1; transition-duration: .06s; }
.th.is-lights .th__black, .th.is-power .th__black { display: none; }
.th__line { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1100px, 88vw); text-align: center; font-size: clamp(34px, 6vw, 88px); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; text-shadow: 0 2px 40px rgba(5, 6, 10, .9); }
.th__line.is-low { top: auto; bottom: 9vh; transform: translateX(-50%); font-size: clamp(27px, 4vw, 58px); }
.th__line.is-small { font-size: clamp(28px, 4vw, 58px); }
.th__line span { display: inline-block; animation: thWord .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes thWord { from { opacity: 0; transform: translateY(.4em); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.th__line.is-out { transition: opacity .35s; opacity: 0; }
.th__bar { position: absolute; right: 20px; top: 18px; display: flex; gap: 6px; z-index: 5; }
.th__bar button, .gd__btns button, .bl__btns button { border: 1px solid rgba(255, 255, 255, .2); background: rgba(5, 6, 10, .55); border-radius: 999px; padding: 9px 17px; font-size: 15px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.th__bar button:hover, .gd__btns button:hover, .bl__btns button:hover:not(:disabled) { background: #fff; color: #0b0d14; }
.th.is-lights .th__bar { opacity: 0; }

/* Break a Leg */
.bl, .gd { position: absolute; inset: 0; pointer-events: none; animation: thIn 1.2s ease .3s both; }
.bl button, .bl svg [role="button"], .gd button, .gd input { pointer-events: auto; }
@keyframes thIn { from { opacity: 0; } to { opacity: 1; } }
.bl__say, .gd__say { position: absolute; left: 40px; bottom: 40px; max-width: min(620px, 48vw); }
.bl__say h2, .gd__say h2 { font-size: clamp(30px, 3.8vw, 60px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; animation: thWord .7s cubic-bezier(.2, .8, .2, 1) both; }
.th .bl__say p, .th .gd__say p { margin-top: 14px; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .74); animation: thIn .6s ease both; max-width: 520px; }
.bl__cmp { display: inline-flex; margin-top: 20px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.bl__cmp button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-size: 16px; font-weight: 600; transition: background .25s, color .25s; }
.bl__cmp button[aria-pressed="true"] { background: #fff; color: #0b0d14; }
.bl__panel, .gd__panel { position: absolute; right: 24px; top: 76px; width: min(350px, 30vw); background: rgba(14, 17, 26, .74); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; padding: 20px; max-height: calc(100vh - 100px); overflow: auto; pointer-events: auto; }
.bl__top { display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.bl__legs { width: 104px; overflow: visible; }
.bl__body { fill: rgba(255, 255, 255, .9); }
.bl__legs circle { fill: #2f6bff; }
.bl__leg { fill: none; stroke: #8fb0ff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.bl__hit { fill: none; stroke: transparent; stroke-width: 22; cursor: pointer; }
.bl__legs g:hover .bl__leg { stroke: #ff6a5c; }
.bl__legs g.is-gone .bl__leg { stroke: #ff6a5c; stroke-dasharray: 2 9; }
.bl__legs g.is-gone .bl__hit { cursor: default; }
.bl__bars p { position: relative; display: grid; grid-template-columns: 1fr auto; font-size: 15px; padding-bottom: 8px; margin-bottom: 8px; }
.bl__bars b { font-weight: 600; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.bl__bars i { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 5px; background: #fff; transform-origin: 0 50%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.bl__bars .is-hurt i { background: #ff6a5c; }
.bl__bars .is-new i { background: #5ee08a; }
.bl__bars small { font-size: 13px; color: rgba(255, 255, 255, .6); }
.bl-map { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; }
.bl__cap { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-top: 12px; }
.th .bl__cap p, .th .bl__info { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.bl__cap button { border: 0; background: none; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 0; white-space: nowrap; }
.th .bl__info { margin-top: 10px; color: #fff; }
.bl__btns, .gd__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bl__btns button, .gd__btns button { flex: 1; white-space: nowrap; }
.bl__btns button:disabled { opacity: .4; cursor: default; }

/* Goodhart's Garden */
.gd__say { left: 0; right: 0; bottom: auto; top: 76px; max-width: none; text-align: center; padding: 0 20px; }
.th .gd__say p { margin: 10px auto 0; }
.gd__pick { position: absolute; left: 50%; bottom: 8.5vh; transform: translateX(-50%); width: 81vw; display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; }
.gd__pick button, .gd__rate button { border: 1px solid rgba(255, 255, 255, .26); background: rgba(5, 6, 10, .5); border-radius: 999px; padding: 13px 28px; font-size: 18px; font-weight: 600; transition: background .25s, color .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.gd__pick button:hover, .gd__pick button:focus-visible, .gd__rate button:hover { background: #fff; color: #0b0d14; transform: translateY(-3px); }
.gd__dots { position: absolute; left: 0; right: 0; bottom: 3.6vh; display: flex; gap: 9px; justify-content: center; }
.gd__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: background .3s, transform .3s; }
.gd__dots i.is-on { background: #ffcf94; transform: scale(1.25); }
.gd:not(.is-teach):not(.is-learning) .gd__say { right: min(400px, 33vw); }
.gd__rate { position: absolute; left: 0; right: min(400px, 33vw); bottom: 5vh; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 16px; animation: thIn .5s ease both; }
.gd__rate button { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 10px; font-size: 17px; }
.gd__rate svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.gd__rate .e { fill: currentColor; stroke: none; }
.gd__learn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(6, 20px); gap: 20px; }
.gd__learn i { width: 14px; height: 14px; border-radius: 50%; background: #ffcf94; animation: gdPulse 1s ease-in-out infinite; }
@keyframes gdPulse { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 26px #ffb54a; } }
.gd__live p { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: rgba(255, 255, 255, .74); padding: 3px 0; }
.gd__live b { font-size: 22px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.gd-chart { margin: 18px 0 0; }
.gd-chart figcaption { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.gd-chart svg { width: 100%; display: block; overflow: visible; }
.gd-chart line { stroke: rgba(255, 255, 255, .2); }
.gd-chart path { fill: none; stroke: var(--c); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.gd-chart circle { fill: var(--c); }
.gd-chart.is-it { --c: #ffb54a; }
.gd-chart.is-you { --c: #ff7aa5; }
.gd-chart figcaption { color: #fff; }
.gd__btns .is-main { background: #fff; color: #0b0d14; }
.gd__leash { display: block; margin-top: 18px; }
.gd__leash span { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; }
.gd__leash input { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: none; margin: 0; padding: 0; border: 0; cursor: pointer; }
.gd__leash input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #ffb54a var(--p), rgba(255, 255, 255, .2) var(--p)); }
.gd__leash input::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #ffb54a var(--p), rgba(255, 255, 255, .2) var(--p)); }
.gd__leash input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; }
.gd__leash input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; }

@media (max-width: 820px) {
  .th__bar { right: 10px; top: 10px; left: 10px; justify-content: flex-end; }
  .th__bar button { padding: 8px 13px; font-size: 14px; }
  .bl__say { left: 18px; right: 18px; top: 60px; bottom: auto; max-width: none; }
  .th .bl__say p { font-size: 16px; margin-top: 8px; }
  .bl__panel { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; padding: 14px; display: grid; grid-template-columns: 1fr 38%; gap: 10px 14px; }
  .bl__top { grid-template-columns: 82px 1fr; gap: 12px; margin: 0; }
  .bl__legs { width: 82px; }
  .bl__cap, .bl__info { grid-column: 1 / -1; margin: 0; }
  .bl__btns { grid-column: 1 / -1; margin: 0; }
  .gd__say { top: 58px; }
  .gd:not(.is-teach):not(.is-learning) .gd__say { right: 0; }
  .th .gd__say p { font-size: 16px; }
  .gd__pick { width: 94vw; bottom: 18vh; }
  .gd__pick button { padding: 12px 14px; font-size: 16px; }
  .gd__dots { bottom: 13vh; }
  .gd__panel { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .gd__live, .gd__btns, .gd__leash { grid-column: 1 / -1; margin-top: 4px; }
  .gd-chart { margin-top: 6px; }
  .gd-chart figcaption { font-size: 13px; }
  .gd__live p { font-size: 14px; }
  .gd__live b { font-size: 17px; }
  .gd__rate { right: 0; bottom: 232px; gap: 5px; padding: 0 8px; }
  .gd__rate button { flex-direction: column; padding: 8px 6px; gap: 4px; font-size: 13px; border-radius: 16px; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .th *, .lab-tile img { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
.th .bl__legs g:focus-visible { outline: none; }
.bl__legs g:focus-visible .bl__leg { stroke: #ffcf94; stroke-width: 7; }
.bl::before { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(transparent, rgba(5, 6, 10, .86)); }
@media (max-width: 820px) { .bl::before { inset: 0 0 auto 0; height: 34%; background: linear-gradient(rgba(5, 6, 10, .86), transparent); } }
/* Keep the subject above the tile's text */
.lab-tile img { height: 80%; filter: brightness(.82) saturate(.95); }
.lab-tile__txt { padding-top: 80px; background: linear-gradient(transparent, #05060a 46%); }
