@font-face {
  font-family: Overpass;
  src: url('../3-way-to-madinah/fonts/overpass-normal-cyrillic.woff2')
    format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F;
}
@font-face {
  font-family: Overpass;
  src: url('../3-way-to-madinah/fonts/overpass-normal-latin.woff2')
    format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #101b1b;
  --ink: #f1eee4;
  --muted: #a3b1ac;
  --accent: #ddbf83;
  --green: #9ed5ba;
  --line: #ffffff24;
  --pad: 5vw;
  color-scheme: dark;
  font-family: Overpass, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
::selection {
  color: var(--bg);
  background: var(--accent);
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
button:hover:not(:disabled) {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 20;
  background: var(--bg);
  padding: 12px;
}
.skip-link:focus {
  top: 15px;
}
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 46%, #36544850, transparent 60%),
    linear-gradient(130deg, #101b1b, #101b1b 45%, #182923);
}
.atmosphere:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b1415c9, transparent 25%);
}
.topbar {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.11em;
  font-weight: 700;
}
.brand-mark {
  border: 1px solid #839d8f;
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 23px;
  border-radius: 18px 18px 2px 2px;
  letter-spacing: -0.04em;
  color: var(--green);
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.015em;
  margin-top: 4px;
}
.chapter {
  font-size: 12px;
  color: var(--muted);
}
.tools {
  display: flex;
  gap: 6px;
}
.tools button {
  border: 1px solid transparent;
  border-radius: 50%;
}
.tools button:hover,
.tools button[aria-pressed='true'] {
  border-color: var(--line);
}
#world {
  position: fixed;
  top: 10%;
  bottom: 7%;
  right: -7%;
  width: 70%;
  pointer-events: none;
  transition: opacity 0.7s;
}
#world canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.world-fallback {
  position: absolute;
  inset: 20% 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  opacity: 0.25;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}
.world-fallback strong {
  font-size: 50px;
  line-height: 1.1;
  font-weight: 300;
}
.webgl-ready .world-fallback {
  display: none;
}
.scene-caption {
  position: fixed;
  right: 9%;
  bottom: 14%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  width: 31%;
  pointer-events: none;
}
.scene-caption span:first-child {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.scene-caption span:last-child {
  font-size: 12px;
  color: var(--muted);
}
main {
  position: absolute;
  left: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-height: calc(100dvh - 235px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #78948650 transparent;
  padding: 15px 20px 15px 0;
  outline: none;
}
main h1,
main h2 {
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 25px;
  text-wrap: balance;
  font-size: clamp(40px, 4.7vw, 76px);
}
main h1 {
  font-size: clamp(52px, 5.9vw, 96px);
}
main h1 em,
main h2 em {
  font-style: normal;
  color: var(--accent);
}
.hero-count {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 0 0 12px;
}
.hero-count strong {
  font-size: clamp(90px, 10.5vw, 166px);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.hero-count span {
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 300;
}
.hero h1 {
  font-size: clamp(42px, 4.9vw, 80px);
}
.lead {
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 32em;
  margin: 0 0 30px;
}
.hero .lead {
  max-width: 26em;
  font-size: 18px;
}
.primary {
  padding: 16px 24px;
  gap: 25px;
  background: var(--accent);
  color: #172320 !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  min-height: 54px;
  transition: background 0.2s;
}
.primary:hover {
  background: #efdbb4;
}
.hero-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}
.hero-bottom span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.step-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 22px;
}
.step-heading strong {
  font-size: 68px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.step-heading span {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 100px;
}
.step-heading .audience {
  margin-left: auto;
  max-width: none;
  letter-spacing: 0.12em;
  color: var(--green);
  font-size: 11px;
}
.method h2 {
  font-size: clamp(37px, 4.1vw, 64px);
}
.method .lead {
  font-size: clamp(16px, 1.25vw, 20px);
  margin-bottom: 26px;
}
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.facts dt {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
.nuance {
  margin: 25px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #b9c4bc;
}
.nuance svg {
  flex: 0 0 19px;
  color: var(--accent);
  margin-top: 1px;
}
.nuance strong {
  color: var(--ink);
  font-weight: 500;
}
.rule-list {
  display: grid;
  gap: 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.rule-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.rule-list .list-number {
  color: var(--accent);
  font-size: 14px;
  margin-top: 4px;
}
.rule-list strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 5px;
}
.rule-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.big-question {
  font-size: clamp(56px, 6.3vw, 100px);
}
.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font-size: 17px;
}
.disclaimer {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34em;
}
.disclaimer strong {
  color: var(--ink);
  font-weight: 500;
}
.disclaimer p {
  margin: 0 0 20px;
}
.bonus-mark {
  font-size: 100px;
  font-weight: 300;
  line-height: 1;
  color: var(--green);
  margin-bottom: 15px;
}
.bonus h2 em {
  color: var(--green);
}
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 30px;
  margin: 25px 0;
}
.bonus-grid strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 5px;
}
.bonus-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.fine-print {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.inline-agenda {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.inline-agenda button {
  justify-content: flex-start;
  text-align: left;
  border-bottom: 1px solid var(--line);
  gap: 13px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.3;
}
.inline-agenda span {
  font-size: 12px;
  color: var(--accent);
}
.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 var(--pad) 27px;
  z-index: 5;
}
.timeline {
  display: flex;
  gap: 6px;
  padding: 0 0 18px;
}
.timeline button {
  padding: 12px 0 0;
  min-width: 0;
  min-height: 17px;
  flex: 1;
  position: relative;
}
.timeline button:before {
  content: '';
  width: 100%;
  height: 2px;
  background: #ffffff20;
  transition: background 0.3s;
}
.timeline button.past:before {
  background: #c6b68c66;
}
.timeline button[aria-current='true']:before {
  background: var(--accent);
  height: 3px;
}
.timeline button:hover:before {
  background: var(--ink);
}
.bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.credit {
  font-size: 13px;
  color: var(--ink);
}
.credit i {
  font-style: normal;
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.keyboard-hint {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}
.keyboard-hint span {
  margin: 0 10px 0 3px;
}
kbd {
  font: inherit;
  border: 1px solid #ffffff2a;
  padding: 3px 6px;
  border-radius: 3px;
  min-width: 22px;
  text-align: center;
}
.navigation {
  display: flex;
  gap: 10px;
  align-items: center;
}
.counter {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  margin-right: 18px;
  font-variant-numeric: tabular-nums;
}
.counter b {
  font-weight: 500;
  color: var(--ink);
}
.navigation button {
  width: 47px;
  height: 47px;
  border: 1px solid #ffffff3a;
  border-radius: 50%;
}
#next {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
#next:hover {
  background: #ecd8b0;
  color: var(--bg);
}
.chrome {
  transition: opacity 0.25s;
}
.clean .chrome,
.clean .scene-caption {
  opacity: 0;
  pointer-events: none;
}
.clean main {
  max-height: calc(100dvh - 80px);
}
#restore {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  background: var(--bg);
  font-size: 12px;
  padding: 0 15px;
}
#restore:hover,
#restore:focus-visible {
  opacity: 1;
}
#notes {
  position: fixed;
  z-index: 8;
  right: var(--pad);
  bottom: 140px;
  width: 36%;
  padding: 22px 25px;
  background: #1b302b;
  box-shadow: 0 20px 70px #0006;
  border-radius: 8px;
}
#notes span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
#notes p {
  font-size: 17px;
  line-height: 1.6;
  margin: 12px 0 0;
}
dialog {
  width: min(880px, 92vw);
  max-height: 85dvh;
  background: #142522;
  color: var(--ink);
  border: 1px solid #ffffff25;
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: 0 30px 100px #0008;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
dialog::backdrop {
  background: #061210bb;
  backdrop-filter: blur(10px);
}
.outline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.outline-head h2 {
  font-weight: 400;
  font-size: 36px;
  margin: 0;
}
.outline-head button {
  border: 1px solid var(--line);
  border-radius: 50%;
}
dialog > p {
  color: var(--muted);
  font-size: 15px;
}
#outline-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 25px;
}
#outline-list button {
  border-bottom: 1px solid var(--line);
  justify-content: flex-start;
  text-align: left;
  gap: 16px;
  padding: 14px 0;
  font-size: 15px;
}
#outline-list button span {
  font-size: 12px;
  color: var(--accent);
}
#outline-list button[aria-current='true'] {
  color: var(--accent);
}
.no-script {
  position: fixed;
  inset: 20%;
  z-index: 20;
  background: var(--bg);
  padding: 30px;
  font-size: 24px;
  line-height: 1.5;
}
@media (min-width: 1800px) {
  :root {
    --pad: 6vw;
  }
  main {
    width: 46%;
    max-width: 850px;
  }
  .lead {
    font-size: 25px;
  }
  .method .lead {
    font-size: 23px;
  }
  .facts dd {
    font-size: 21px;
  }
  .facts dt {
    font-size: 12px;
  }
  .nuance {
    font-size: 18px;
  }
  .rule-list strong {
    font-size: 27px;
  }
  .rule-list p {
    font-size: 21px;
  }
  .disclaimer {
    font-size: 23px;
  }
  .bonus-grid p {
    font-size: 20px;
  }
  .bonus-grid strong {
    font-size: 25px;
  }
  .fine-print {
    font-size: 15px;
  }
}
@media (max-width: 900px) {
  :root {
    --pad: 6vw;
  }
  .topbar {
    height: 90px;
  }
  .chapter {
    display: none;
  }
  main {
    width: 55%;
    max-height: calc(100dvh - 205px);
  }
  #world {
    width: 65%;
    right: -15%;
  }
  .scene-caption {
    right: 3%;
    width: 33%;
  }
  .keyboard-hint {
    display: none;
  }
  .facts {
    gap: 10px;
  }
  .facts dd {
    font-size: 13px;
  }
  .facts dt {
    font-size: 9px;
  }
  .method h2 {
    font-size: 39px;
  }
  .lead {
    font-size: 16px;
  }
  .bonus-grid {
    gap: 16px;
  }
  .bonus-grid strong {
    font-size: 17px;
  }
  .bonus-grid p {
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  body {
    overflow: hidden;
  }
  .topbar {
    height: 74px;
  }
  .brand {
    font-size: 12px;
  }
  .brand-mark {
    width: 33px;
    height: 36px;
    font-size: 20px;
  }
  .brand small {
    font-size: 10px;
  }
  .tools {
    gap: 0;
  }
  .tools button {
    min-width: 38px;
  }
  .tools svg {
    width: 18px;
  }
  .topbar .brand {
    gap: 9px;
  }
  #world {
    top: 62px;
    right: 0;
    width: 100%;
    height: 34dvh;
    bottom: auto;
    opacity: 0.95;
  }
  main {
    left: var(--pad);
    top: 40dvh;
    transform: none;
    width: 88%;
    padding: 0 0 15px;
    max-height: calc(60dvh - 115px);
  }
  main h1,
  .hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
  }
  .hero-count {
    gap: 13px;
    margin-bottom: 6px;
  }
  .hero-count strong {
    font-size: 70px;
  }
  .hero-count span {
    font-size: 27px;
  }
  .hero .lead {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .hero-bottom {
    margin-top: 20px;
    gap: 14px;
  }
  .hero-bottom span {
    font-size: 10px;
  }
  .primary {
    padding: 12px 18px;
    min-height: 46px;
    font-size: 14px;
    gap: 18px;
  }
  .scene-caption {
    display: none;
  }
  .bottom {
    padding-bottom: 16px;
  }
  .timeline {
    gap: 3px;
    padding-bottom: 10px;
  }
  .credit {
    font-size: 10px;
  }
  .credit i {
    font-size: 9px;
  }
  .counter {
    font-size: 11px;
    margin-right: 2px;
    gap: 6px;
  }
  .navigation {
    gap: 8px;
  }
  .navigation button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .method .step-heading {
    margin-bottom: 10px;
  }
  .step-heading strong {
    font-size: 39px;
  }
  .step-heading span {
    font-size: 10px;
  }
  .method h2,
  main h2 {
    font-size: 32px;
    margin-bottom: 13px;
  }
  .method .lead,
  .lead {
    font-size: 15px;
    margin-bottom: 17px;
    line-height: 1.5;
  }
  .facts {
    padding-top: 12px;
    gap: 15px;
  }
  .facts dd {
    font-size: 13px;
  }
  .facts dt {
    font-size: 8px;
  }
  .nuance {
    margin-top: 15px;
    font-size: 12px;
  }
  .rule-list {
    gap: 15px;
    margin-top: 15px;
  }
  .rule-list strong {
    font-size: 18px;
  }
  .rule-list p {
    font-size: 14px;
  }
  .rule-list li {
    gap: 15px;
  }
  .disclaimer {
    font-size: 14px;
  }
  .disclaimer p {
    margin-bottom: 12px;
  }
  .bonus-mark {
    font-size: 55px;
    margin-bottom: 10px;
  }
  .bonus-grid {
    gap: 16px;
    margin: 18px 0;
  }
  .bonus-grid strong {
    font-size: 17px;
  }
  .bonus-grid p {
    font-size: 13px;
  }
  .fine-print {
    font-size: 10px;
  }
  .inline-agenda {
    gap: 0 16px;
  }
  .inline-agenda button {
    font-size: 12px;
    padding: 8px 0;
    gap: 8px;
    min-height: 38px;
  }
  .inline-agenda span {
    font-size: 10px;
  }
  #notes {
    right: 6vw;
    width: 88%;
    bottom: 105px;
    font-size: 14px;
  }
  #notes p {
    font-size: 14px;
  }
  dialog {
    padding: 22px;
  }
  .outline-head h2 {
    font-size: 28px;
  }
  #outline-list {
    grid-template-columns: 1fr;
  }
  #outline-list button {
    font-size: 14px;
  }
  .clean main {
    max-height: calc(60dvh - 25px);
  }
}
@media (max-height: 780px) and (min-width: 601px) {
  .topbar {
    height: 75px;
  }
  main {
    max-height: calc(100dvh - 170px);
  }
  .hero-count strong {
    font-size: 95px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero-bottom {
    margin-top: 20px;
  }
  .method h2 {
    font-size: 40px;
  }
  .step-heading strong {
    font-size: 44px;
  }
  .step-heading {
    margin-bottom: 12px;
  }
  .lead,
  .method .lead {
    font-size: 16px;
    margin-bottom: 18px;
  }
  .nuance {
    margin-top: 16px;
    font-size: 12px;
  }
  .bottom {
    padding-bottom: 16px;
  }
  .scene-caption {
    bottom: 15%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Cinematic presentation: the light and camera follow the narrative. */
#world {
  inset: 0;
  width: 100%;
  height: 100dvh;
  isolation: isolate;
}
#world canvas {
  mask-image: linear-gradient(90deg, transparent 10%, #0009 42%, #000 58%);
}
.atmosphere {
  background:
    radial-gradient(ellipse at 73% 40%, #21564866, transparent 54%),
    radial-gradient(ellipse at 85% 80%, #86704422, transparent 45%), #081514;
  transition: background 1.4s;
}
.atmosphere:after {
  background:
    linear-gradient(90deg, #081514e0, transparent 57%),
    linear-gradient(0deg, #081514, transparent 18%);
}
.light-curtain {
  position: fixed;
  inset: -25%;
  pointer-events: none;
  opacity: 0.4;
  background: conic-gradient(
    from 182deg at 68% 5%,
    transparent 0deg,
    #94c4a614 5deg,
    transparent 14deg,
    transparent 25deg,
    #dfbd7220 30deg,
    transparent 37deg
  );
  filter: blur(15px);
  animation: light-drift 24s ease-in-out infinite alternate;
  transform-origin: 68% 5%;
}
@keyframes light-drift {
  from {
    transform: rotate(-8deg);
  }
  to {
    transform: rotate(8deg);
  }
}
.scene-watermark {
  position: fixed;
  right: 4%;
  top: 12%;
  font-size: clamp(200px, 30vw, 540px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px #dcb97920;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
#world {
  z-index: 1;
}
.scene-watermark {
  z-index: 0;
}
main {
  z-index: 3;
}
.scene-caption {
  z-index: 3;
}
.scene-orbit-label {
  position: fixed;
  right: 7%;
  top: 20%;
  z-index: 2;
  display: flex;
  gap: 13px;
  align-items: center;
  color: #d8c39880;
  font-size: 9px;
  letter-spacing: 0.15em;
  pointer-events: none;
}
.scene-orbit-label i {
  display: block;
  width: 55px;
  height: 1px;
  background: #d8c39850;
}
#transition-effect {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#transition-number {
  font-size: 70vw;
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px #eed4a54d;
  color: transparent;
  transform: rotate(-12deg);
}
#transition-effect i {
  position: absolute;
  width: 9%;
  height: 150%;
  background: linear-gradient(
    90deg,
    transparent,
    #ebc98930,
    #c5efd358,
    transparent
  );
  filter: blur(12px);
  transform: rotate(25deg);
}
.motion-word {
  display: inline-block;
  transform-origin: 50% 100%;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
  vertical-align: baseline;
}
.hero-count strong {
  color: #e3c68e;
  text-shadow: 0 8px 35px #b5904433;
}
main h1,
main h2 {
  perspective: 900px;
}
.primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 7px 35px #d9b77316;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.primary:after {
  content: '';
  position: absolute;
  inset: -100% -50%;
  background: linear-gradient(
    110deg,
    transparent 42%,
    #ffffff45 50%,
    transparent 58%
  );
  transform: translateX(-65%);
  animation: button-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes button-sheen {
  0%,
  65% {
    transform: translateX(-65%);
  }
  90%,
  100% {
    transform: translateX(65%);
  }
}
.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px #d9b77330;
}
.navigation button {
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.navigation button:hover:not(:disabled) {
  transform: scale(1.1);
}
.navigation button:active:not(:disabled) {
  transform: scale(0.94);
}
.timeline button[aria-current='true']:before {
  box-shadow: 0 0 15px #e6c18299;
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
[data-act='world'] {
  --accent: #a6ddc5;
}
.scene-caption span:first-child {
  color: var(--accent);
}
.motion-paused *,
.motion-paused *:before,
.motion-paused *:after {
  animation-play-state: paused !important;
}
.clean .scene-orbit-label {
  opacity: 0;
}
@media (min-width: 1800px) {
  .scene-caption {
    bottom: 14%;
  }
  .scene-orbit-label {
    top: 19%;
  }
}
@media (max-width: 900px) and (min-width: 601px) {
  #world {
    right: 0;
    width: 100%;
  }
  .scene-orbit-label {
    right: 5%;
    font-size: 8px;
  }
  .scene-orbit-label i {
    width: 20px;
  }
}
@media (max-width: 600px) {
  #world {
    top: 65px;
    bottom: auto;
    height: 32dvh;
    width: 100%;
    right: 0;
  }
  #world canvas {
    mask-image: none;
  }
  .scene-watermark {
    top: 10%;
    right: 5%;
    font-size: 56vw;
  }
  .scene-orbit-label {
    display: none;
  }
  .light-curtain {
    opacity: 0.3;
  }
  .hero-count strong {
    text-shadow: none;
  }
  .tools button {
    min-width: 34px;
  }
  .motion-word {
    padding-bottom: 0.05em;
    margin-bottom: -0.05em;
  }
  #transition-number {
    font-size: 150vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .light-curtain,
  .primary:after,
  #transition-effect {
    display: none;
  }
  .primary:hover,
  .navigation button:hover:not(:disabled) {
    transform: none;
  }
}
main > .text-link {
  display: block;
  margin-top: 20px;
}
@media (min-width: 601px) {
  .scene-caption {
    bottom: 12%;
  }
}
