/* The landscape is the canvas; the interface stays quiet around it. */
:root {
  color-scheme: dark;
  --ink: #081523;
  --paper: #f4f0e5;
  --mist: #cad6dd;
  --gold: #edcf89;
  --line: #e4e7df30;
  --serif: "Cormorant Garamond", Georgia, serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
a {
  outline-offset: 6px;
}
:focus-visible {
  outline: 2px solid var(--gold);
}
button {
  border: 0;
}
[hidden] {
  display: none !important;
}
.landscape,
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.landscape {
  z-index: -3;
  overflow: hidden;
  background: #0a1830;
}
#frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(100vw, 177.68svh);
  height: max(56.28vw, 100svh);
  aspect-ratio: 1672 / 941;
}
#painting,
#reference {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#reference {
  object-fit: fill;
}
#painting {
  opacity: 0;
  transition: opacity 900ms ease;
}
#painting.ready {
  opacity: 1;
}
#reference.show {
  z-index: 1;
}
.atmosphere {
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      #06121df2 0%,
      #071523dd 26%,
      #07152398 44%,
      #07152324 68%,
      #0715230a 100%
    ),
    linear-gradient(
      180deg,
      #061322c9,
      transparent 23%,
      transparent 61%,
      #061322de
    );
  transition: opacity 600ms;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 4.5vw 23px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 31px;
  line-height: 1;
  white-space: nowrap;
}
.brand svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
}
.brand-caption {
  display: block;
  font:
    11px/1.8 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.025em;
  color: var(--mist);
  padding-top: 5px;
}
.top-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  align-items: center;
}
.top-nav a {
  position: relative;
  text-decoration: none;
  font-size: 13px;
  padding: 14px 0;
  color: #d1dce1;
}
.top-nav a::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--gold);
  bottom: 4px;
  left: 0;
  right: 0;
  transform: scaleX(0);
  transition: transform 180ms;
}
.top-nav a[aria-current],
.top-nav a:hover {
  color: var(--paper);
}
.top-nav a[aria-current]::after,
.top-nav a:hover::after {
  transform: scaleX(1);
}
.header-contact {
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid #e8d1977a;
  padding: 12px 0;
  white-space: nowrap;
}
.header-contact span {
  margin-left: 15px;
  color: var(--gold);
}
main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(440px, 590px) minmax(0, 1fr);
  column-gap: 6vw;
  padding: 0 4.5vw;
  outline: none;
}
.page-content {
  padding: clamp(22px, 4vh, 48px) 0 25px;
  align-self: center;
}
.chapter {
  font-size: 13px;
  color: var(--gold);
  margin: 0 0 17px;
  letter-spacing: 0.035em;
}
h1 {
  font: 500 clamp(64px, 6.1vw, 88px) / 0.99 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.intro {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  max-width: 510px;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 505px;
  margin: 0 0 25px;
  text-wrap: pretty;
}
.use-cases {
  list-style: none;
  margin: 0 0 29px;
  padding: 21px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 530px;
}
[data-page="overview"] .use-cases {
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
}
.use-cases h2 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 7px;
  line-height: 1.5;
}
.use-cases p {
  color: var(--mist);
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 19px 25px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 46px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  transition:
    background 160ms,
    border-color 160ms;
}
.primary {
  background: #ecd398;
  color: #132234;
  font-weight: 600;
}
.primary:hover {
  background: #fae4af;
}
.primary span {
  font-size: 19px;
  font-weight: 400;
}
.text-link {
  font-size: 12px;
  text-decoration: none;
  padding: 12px 0;
}
.text-link span {
  color: var(--gold);
  margin-left: 7px;
}
.text-link:hover {
  text-decoration: underline;
}
.page-note {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: #bbcad2;
  max-width: 480px;
}
.equation-peek {
  align-self: end;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 40px;
  background: #071523b8;
  border: 1px solid #d6dfde3b;
  border-radius: 4px;
  padding: 21px 24px;
  text-align: left;
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 40px #00000015;
  transition:
    background 160ms,
    border-color 160ms;
}
.equation-peek:hover {
  background: #071523e8;
  border-color: #edcf8980;
}
.equation-label {
  display: block;
  font-size: 10px;
  color: #d3dde0;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.peek-formula {
  font: 500 clamp(19px, 1.6vw, 26px) / 1.35 var(--serif);
  display: block;
  color: #f0d79e;
}
.peek-action {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 11px;
  margin-top: 16px;
  color: #e0e7e8;
}
.peek-action span {
  font-size: 16px;
}
.chapter-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  min-height: 75px;
}
.chapter-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}
.chapter-nav a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  text-decoration: none;
  font-size: 11px;
  color: #b6c5cc;
}
.chapter-nav a > span:first-child {
  font: 500 19px var(--serif);
}
.chapter-nav a[aria-current] {
  color: var(--gold);
}
.chapter-nav a:hover {
  color: var(--paper);
}
.chapter-count {
  font: 500 31px var(--serif);
  color: var(--gold);
}
.chapter-count span {
  font-size: 17px;
  color: #c2cdd3;
  padding-left: 5px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4.5vw 18px;
  color: #c2ced6;
  min-height: 49px;
}
.signature {
  font-size: 11px;
}
.signature > span {
  color: #aebec7;
}
.scene-tools {
  display: flex;
  gap: 21px;
  align-items: center;
}
.scene-tools button {
  font-size: 11px;
  background: transparent;
  min-height: 44px;
  padding: 8px 0;
}
.scene-tools button:hover {
  color: var(--gold);
}
.motion-icon {
  color: var(--gold);
  padding-right: 7px;
  font-size: 13px;
}
.scene-tools button:disabled {
  opacity: 0.7;
}
.art-mode .page-content,
.art-mode .equation-peek,
.art-mode .chapter-footer,
.art-mode .site-header,
.art-mode .signature {
  visibility: hidden;
}
.art-mode .research-content {
  visibility: hidden;
}
.art-mode .atmosphere {
  opacity: 0;
}
.art-mode .scene-tools {
  border-radius: 4px;
  background: #061322d9;
  padding: 0 15px;
  margin-left: auto;
}
dialog {
  color: var(--paper);
  background: #0b1c2bef;
  border: 1px solid #819ba653;
  border-radius: 7px;
  padding: 39px 44px;
  width: min(700px, calc(100% - 32px));
  max-height: calc(100svh - 60px);
  box-shadow: 0 25px 150px #0009;
  overscroll-behavior: contain;
  scrollbar-color: #587386 #0b1c2b;
}
dialog::backdrop {
  background: #04111ab8;
  backdrop-filter: blur(10px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.close-dialog {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  font-weight: 300;
  background: transparent;
  color: var(--mist);
  border-radius: 3px;
}
.close-dialog:hover {
  background: #ffffff0d;
  color: var(--paper);
}
.dialog-kicker {
  color: var(--gold);
  font-size: 12px;
  margin: 0 30px 16px 0;
}
dialog h2 {
  font: 500 47px/1.05 var(--serif);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
dialog h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 9px;
}
dialog p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}
dialog a {
  overflow-wrap: anywhere;
}
.formula {
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 25px;
  line-height: 1.65;
  padding: 23px 0;
  border-block: 1px solid var(--line);
  margin: 24px 0;
  overflow-wrap: anywhere;
}
.formula.small {
  font-size: 19px;
}
.experiment {
  background: #132d405e;
  border: 1px solid #9db2bd2a;
  border-radius: 4px;
  padding: 24px;
  margin-block: 25px;
}
.experiment > p {
  font-size: 12px;
  margin: 0 0 20px;
}
.experiment label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  align-items: center;
  margin-top: 14px;
}
.experiment label output {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  height: 28px;
  margin: 6px 0;
  cursor: pointer;
}
.result {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.result output {
  font:
    400 29px Georgia,
    serif;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.experiment .experiment-caption {
  font-size: 11px;
  margin: 16px 0 0;
}
details {
  border-block: 1px solid var(--line);
  margin: 24px 0;
  padding: 15px 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
  padding: 6px 0;
}
dt {
  font-size: 13px;
  color: var(--gold);
  margin: 16px 0 6px;
}
dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}
.research-note {
  font-size: 11px;
  line-height: 1.8;
  color: #acbec9;
  margin-bottom: 0;
}
.curve {
  width: 100%;
  height: 135px;
  overflow: visible;
  margin: 10px 0;
}
.curve-axis {
  stroke: #849baa88;
  fill: none;
}
.curve-line {
  stroke: #dabd7a;
  stroke-width: 2;
  fill: none;
}
.curve circle {
  fill: #f4dea9;
  stroke: #0a2033;
  stroke-width: 2;
}
.curve text {
  fill: #bacbd5;
  font-size: 10px;
}
.service-list section {
  padding-block: 19px;
  border-bottom: 1px solid var(--line);
}
.service-list p {
  margin: 0;
}
.service-list + p {
  margin: 19px 0 24px;
}
#contact-form {
  margin-top: 24px;
}
#contact-form label {
  display: block;
  font-size: 12px;
  margin: 17px 0 9px;
}
#contact-form input,
#contact-form textarea {
  width: 100%;
  border: 1px solid #819baa75;
  border-radius: 3px;
  padding: 12px;
  background: #061624;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.6;
}
#contact-form textarea {
  resize: vertical;
}
#contact-form .button {
  margin-top: 20px;
}
#contact-form .form-note {
  font-size: 11px;
}
.contact-direct {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 15px;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.noscript-note {
  padding: 15px 4.5vw;
  font-size: 12px;
  background: var(--ink);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}
main {
  view-transition-name: page-content;
}
::view-transition-old(page-content) {
  animation: 180ms ease both page-out;
}
::view-transition-new(page-content) {
  animation: 320ms ease both page-in;
}
@keyframes page-out {
  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (min-width: 1450px) {
  main {
    grid-template-columns: minmax(440px, 640px) minmax(0, 1fr);
  }
}
@media (max-height: 850px) and (min-width: 1001px) {
  .site-header {
    padding-top: 23px;
    padding-bottom: 14px;
  }
  .page-content {
    padding-top: 20px;
  }
  h1 {
    font-size: 69px;
    margin-bottom: 18px;
  }
  .intro {
    font-size: 17px;
    margin-bottom: 12px;
  }
  .description {
    margin-bottom: 18px;
  }
  .use-cases {
    margin-bottom: 20px;
    padding-top: 16px;
  }
  .chapter-footer {
    min-height: 64px;
  }
}
@media (max-width: 1100px) {
  .header-contact {
    display: none;
  }
  main {
    grid-template-columns: minmax(390px, 1.2fr) minmax(0, 1fr);
    column-gap: 35px;
  }
  h1 {
    font-size: 70px;
  }
  .equation-peek {
    padding: 19px;
  }
  .actions {
    gap: 10px 22px;
  }
}
@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    padding: 23px 6vw 0;
    gap: 18px;
  }
  .brand {
    font-size: 29px;
  }
  .brand svg {
    width: 31px;
    height: 31px;
  }
  .brand-caption {
    font-size: 10px;
  }
  .top-nav {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 15px;
    border-block: 1px solid var(--line);
  }
  .top-nav a {
    padding: 16px 0;
    font-size: 12px;
  }
  .top-nav a::after {
    bottom: -1px;
  }
  main {
    display: block;
    padding: 0 6vw;
  }
  .page-content {
    padding-top: 33px;
    padding-bottom: 24px;
    max-width: 600px;
  }
  .chapter {
    font-size: 11px;
    margin-bottom: 17px;
  }
  h1 {
    font-size: clamp(48px, 9vw, 67px);
    margin-bottom: 23px;
    letter-spacing: -0.025em;
  }
  .intro {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 17px;
    max-width: 490px;
  }
  .description {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 25px;
  }
  .atmosphere {
    background:
      linear-gradient(90deg, #06121deb, #07152391 80%),
      linear-gradient(180deg, #06132252, transparent 40%, #061322e8);
  }
  #frame {
    left: 42%;
  }
  .use-cases {
    gap: 21px;
  }
  [data-page="overview"] .use-cases {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  [data-page="overview"] .use-cases li {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 15px;
  }
  .use-cases h2 {
    font-size: 12px;
  }
  .use-cases p {
    font-size: 12px;
  }
  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .button {
    min-height: 48px;
  }
  .page-note {
    font-size: 11px;
    max-width: 440px;
    margin-top: 13px;
  }
  .equation-peek {
    display: block;
    margin: 8px 0 28px;
    width: 100%;
    padding: 18px 20px;
  }
  .peek-formula {
    font-size: 22px;
  }
  .equation-label {
    font-size: 10px;
  }
  .chapter-nav {
    gap: 18px;
  }
  .chapter-nav a {
    gap: 5px;
    font-size: 10px;
  }
  .chapter-nav a > span:first-child {
    font-size: 17px;
  }
  .chapter-count {
    display: none;
  }
  .chapter-footer {
    min-height: 70px;
  }
  .site-footer {
    padding: 0 6vw 18px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .scene-tools {
    justify-content: space-between;
    width: 100%;
  }
  .signature {
    font-size: 10px;
    order: 2;
  }
  dialog {
    padding: 36px 23px 28px;
    max-height: calc(100svh - 28px);
  }
  dialog h2 {
    font-size: 39px;
  }
  dialog p {
    font-size: 13px;
  }
  .formula {
    font-size: 21px;
  }
  .experiment {
    padding: 19px;
  }
  .research-note {
    font-size: 11px;
  }
  .art-mode .scene-tools {
    position: fixed;
    bottom: 20px;
    left: 6vw;
    width: 88vw;
  }
}
@media (max-width: 380px) {
  h1 {
    font-size: 46px;
  }
  .chapter-nav {
    justify-content: space-between;
    gap: 10px;
  }
  .chapter-nav .step-name {
    font-size: 9px;
  }
  .use-cases {
    grid-template-columns: 1fr;
  }
  [data-page="overview"] .use-cases li {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }
  .peek-formula {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0s !important;
  }
}

/* The controls belong to the painting, leaving the four-page story quiet. */
.art-mode {
  overflow: hidden;
}
#painting-touch {
  position: fixed;
  inset: 0;
  z-index: 1;
  touch-action: none;
}
#painting-controls {
  position: fixed;
  z-index: 2;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 16px 22px;
  background: #071523e8;
  border: 1px solid var(--line);
  border-radius: 5px;
}
#painting-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--mist);
  line-height: 1.6;
  text-align: center;
}
.painting-buttons {
  display: flex;
  gap: 8px 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.painting-buttons button {
  min-height: 44px;
  font-size: 12px;
  padding: 8px 12px;
  background: #ffffff09;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.painting-buttons button:hover {
  border-color: var(--gold);
}
.painting-buttons button:disabled {
  opacity: 0.5;
}
.art-mode .scene-tools {
  position: fixed;
  bottom: 20px;
  right: 4.5vw;
  z-index: 3;
}
.experiment-mode .atmosphere {
  opacity: 0;
}
.experiment-mode .page-content,
.experiment-mode .equation-peek,
.experiment-mode .chapter-footer,
.experiment-mode .site-header,
.experiment-mode .site-footer {
  visibility: hidden;
}
.science-panel {
  margin: auto auto auto 2vw;
  width: min(520px, 46vw);
  padding: 32px;
  background: #091a29f7;
}
.science-panel::backdrop {
  background: #04111a18;
  backdrop-filter: none;
}
.science-panel h2 {
  font-size: 39px;
}
.science-panel .formula {
  font-size: 21px;
  padding-block: 15px;
  margin-block: 18px;
}
.scene-interpretation {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.scene-interpretation p {
  font-size: 12px;
}
.scene-interpretation strong {
  color: var(--gold);
  font-weight: 500;
}
.preview-motion {
  background: #ffffff0a;
  border-color: var(--line);
  min-height: 44px;
}
.preview-motion:disabled {
  opacity: 0.5;
}
.workflow-label {
  display: block;
  font-size: 12px;
  color: var(--gold);
  margin: 26px 0 10px;
}
#workflow-question {
  width: 100%;
  padding: 12px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper);
  background: #142c3c;
  border: 1px solid #819baa75;
  border-radius: 3px;
}
.workflow-steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  list-style-position: inside;
  padding: 0;
  margin: 23px 0;
  font-size: 12px;
  color: #adc0cb;
}
.workflow-steps li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  flex: 1;
}
.workflow-steps [aria-current] {
  color: var(--gold);
  border-color: var(--gold);
}
#workflow-stage {
  outline-offset: 8px;
  min-height: 100px;
}
#workflow-stage h3 {
  font: 500 29px/1.15 var(--serif);
}
.workflow-question,
.workflow-answer {
  padding: 18px 20px;
  background: #17304288;
  border-left: 2px solid var(--gold);
}
.workflow-sources details {
  margin: 12px 0;
  padding: 9px 0;
}
.workflow-sources summary {
  color: var(--gold);
  font-size: 12px;
}
.workflow-sources p {
  font-size: 12px;
}
.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 25px;
  margin-top: 20px;
}
.workflow-actions .text-link {
  background: transparent;
}
dialog .demo-disclosure,
dialog .workflow-status {
  font-size: 11px;
  line-height: 1.7;
}
dialog .workflow-status {
  color: var(--gold);
  min-height: 19px;
}
@media (max-width: 760px) {
  #painting-controls {
    bottom: 132px;
    width: calc(100% - 32px);
    padding: 12px;
  }
  .painting-buttons {
    gap: 6px;
  }
  .painting-buttons button {
    font-size: 11px;
    padding: 6px 8px;
  }
  .science-panel {
    position: fixed;
    margin: 0;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: 62svh;
    padding: 30px 22px;
    border-radius: 12px 12px 0 0;
  }
  .experiment-mode .landscape {
    height: 38svh;
    bottom: auto;
  }
  .experiment-mode #frame {
    left: 50%;
    width: max(100vw, 67.52svh);
    height: max(56.28vw, 38svh);
  }
  .workflow-steps {
    font-size: 11px;
    gap: 8px;
  }
  #workflow-question {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  #painting-controls {
    bottom: 174px;
  }
}

/* Research is a reading room alongside the four business chapters. */
[data-page="research"] main {
  display: block;
}
.research-content {
  max-width: 1240px;
  margin-inline: auto;
}
.research-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 7vw;
  padding: 48px 0 80px;
}
.research-hero h1 {
  font-size: clamp(54px, 5.7vw, 82px);
  line-height: 1.02;
}
.research-opening .intro {
  max-width: 500px;
}
.research-opening .description {
  max-width: 520px;
}
.research-cover {
  margin: 0;
  max-width: 345px;
  justify-self: end;
}
.research-cover a {
  display: block;
  box-shadow: 0 25px 65px #0009;
  border: 1px solid #f4f0e559;
  transition: transform 200ms ease;
}
.research-cover a:hover {
  transform: translateY(-4px);
}
.research-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.research-cover figcaption {
  font-size: 11px;
  color: var(--mist);
  margin-top: 15px;
  text-align: center;
}
.research-volume {
  background: #081b2af5;
  border: 1px solid #a3b5bc45;
  border-radius: 5px;
  padding: clamp(24px, 4vw, 54px);
  scroll-margin-top: 24px;
}
.volume-heading h2,
.research-question h2 {
  font: 500 clamp(34px, 3.8vw, 54px) / 1.08 var(--serif);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.volume-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--mist);
  margin: 0 0 16px;
}
.publication-meta {
  font-size: 12px;
  color: #b6c7d1;
  line-height: 1.9;
  margin: 0 0 26px;
}
.publication-meta span {
  padding-inline: 8px;
  color: var(--gold);
}
.file-size {
  color: var(--mist);
  padding-left: 5px;
}
.paper-list {
  margin-top: 38px;
}
.paper-entry {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.paper-number {
  font: 500 40px/1.1 var(--serif);
  color: var(--gold);
}
.paper-category,
.scope-label {
  font-size: 11px;
  line-height: 1.6;
  color: var(--gold);
  margin: 0 0 10px;
}
.paper-entry h3 {
  font: 500 clamp(27px, 2.5vw, 36px) / 1.18 var(--serif);
  margin: 0 0 14px;
  max-width: 800px;
  text-wrap: balance;
}
.paper-entry p:not(.paper-category) {
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
  max-width: 800px;
  margin: 0 0 8px;
}
.paper-entry .text-link {
  display: inline-block;
}
.study-scope {
  border-top: 1px solid var(--line);
  padding-top: 27px;
}
.study-scope dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 20px 0;
}
.study-scope dl > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
}
.study-scope dt {
  font-size: 11px;
  color: var(--mist);
  margin: 0;
  line-height: 1.6;
}
.study-scope dd {
  font: 500 42px/1 var(--serif);
  color: var(--paper);
  margin: 0;
}
.scope-note {
  max-width: 790px;
  font-size: 11px;
  line-height: 1.8;
  color: #b6c7d1;
  margin: 25px 0 0;
}
.research-question {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  padding: 70px 0;
}
.research-question p:not(.chapter) {
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
}
.research-question h2 {
  font-size: clamp(33px, 3.2vw, 46px);
}
.research-equations {
  min-width: 0;
  padding: 0 25px;
  background: #081b2aeb;
  border-left: 1px solid #edcf8970;
}
.research-equations section {
  padding-block: 24px;
}
.research-equations section + section {
  border-top: 1px solid var(--line);
}
.research-equations h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.research-equations math {
  font-size: clamp(20px, 2vw, 26px);
  color: var(--gold);
  margin-block: 25px;
}
.research-equations a {
  font-size: 11px;
  color: var(--gold);
}
.research-equations p:not(.chapter) {
  font-size: 12px;
}
.research-status {
  max-width: 900px;
  background: #081b2aeb;
  padding: 30px;
  border-top: 1px solid var(--line);
  margin-bottom: 35px;
}
.research-status h2 {
  font: 500 32px/1.2 var(--serif);
  margin: 0 0 15px;
}
.research-status p {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.85;
}
.research-status .text-link {
  display: inline-block;
}
.research-return {
  border-top: 1px solid var(--line);
  padding: 14px 0 25px;
}
.research-return a {
  display: inline-block;
}
.paper-link {
  padding-top: 10px;
}
.paper-link a {
  color: var(--gold);
}
@media (min-width: 761px) and (max-width: 1000px) {
  .research-question {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 760px) {
  .top-nav {
    gap: 12px;
  }
  .top-nav a {
    font-size: 11px;
  }
  .research-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 35px 0 42px;
  }
  .research-hero h1 {
    font-size: clamp(42px, 10vw, 64px);
  }
  .research-cover {
    justify-self: center;
    width: min(260px, 80%);
  }
  .research-volume {
    padding: 24px 20px;
  }
  .paper-entry {
    grid-template-columns: 26px 1fr;
    gap: 15px;
    padding-block: 26px;
  }
  .paper-number {
    font-size: 28px;
  }
  .paper-entry p:not(.paper-category) {
    font-size: 13px;
  }
  .publication-meta span {
    padding-inline: 4px;
  }
  .study-scope dl {
    grid-template-columns: repeat(2, 1fr);
  }
  .research-question {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 45px 0;
  }
  .research-equations {
    padding-inline: 18px;
  }
  .research-equations math {
    font-size: 20px;
  }
  .research-status {
    padding: 24px 20px;
  }
}
@media (max-width: 420px) {
  .top-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    row-gap: 0;
  }
  .top-nav a {
    padding-block: 13px;
  }
  .top-nav a::after {
    bottom: 3px;
  }
}
@media (max-width: 360px) {
  .research-equations math {
    font-size: 17px;
  }
}

/* An open stage: reading clouds appear on request, never over the entrance. */
.immersive-ready .atmosphere {
  background: linear-gradient(
    180deg,
    #03111ac9,
    transparent 19%,
    transparent 66%,
    #03111abb
  );
}
.immersive-ready main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 0;
  perspective: none;
}
.story-anchor {
  align-self: end;
  min-width: 0;
}
.chapter-invitation {
  position: relative;
  width: min(470px, 100%);
  padding: 22px 0 23px;
  isolation: isolate;
}
.chapter-invitation::before {
  content: "";
  position: absolute;
  inset: -30px -4vw -15px;
  background: radial-gradient(
    ellipse,
    #031320ed 0%,
    #031320b3 35%,
    transparent 72%
  );
  z-index: -1;
  pointer-events: none;
}
.chapter-invitation h1 {
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.04;
  margin: 0 0 10px;
  max-width: 440px;
  text-wrap: balance;
}
.chapter-invitation h1 br {
  display: none;
}
.chapter-invitation .intro {
  font-size: 13px;
  line-height: 1.6;
  max-width: 390px;
  margin-bottom: 9px;
  color: #e0e6e6;
}
.invitation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}
.invitation-actions button {
  min-height: 44px;
  padding: 8px 0;
  background: transparent;
  font-size: 12px;
  color: var(--gold);
}
.chapter-open {
  border-bottom: 1px solid #edcf8990;
}
.chapter-open::after {
  content: " +";
  margin-left: 18px;
}
.chapter-equation {
  color: #e0e6e6 !important;
}
.chapter-equation:hover,
.chapter-open:hover {
  color: white !important;
}
.immersive-ready .chapter-footer {
  min-height: 58px;
  border-top-color: #e4e7df22;
}
.immersive-ready .chapter-count {
  font-size: 25px;
}
.immersive-ready .site-footer {
  min-height: 42px;
  padding-bottom: 10px;
}
.world-clouds {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.world-hint {
  display: none;
  position: absolute;
  right: 4.5vw;
  bottom: 215px;
  font-size: 10px;
  color: #dbe4e9;
  text-shadow: 0 1px 7px #03111a;
}
.cloud-orbit {
  position: absolute;
  left: var(--anchor-x, 50%);
  top: var(--anchor-y, 50%);
  transform: translate(-22px, -22px);
  width: max-content;
  max-width: 185px;
  pointer-events: auto;
}
.world-cloud {
  display: grid;
  grid-template-columns: 44px auto;
  grid-template-rows: 44px;
  align-items: center;
  column-gap: 7px;
  min-height: 44px;
  padding: 0 12px 0 0;
  border-radius: 50px;
  background: transparent;
  text-align: left;
  font-size: 11px;
  color: #f4ecd9;
  text-shadow:
    0 1px 5px #03111a,
    0 0 14px #03111a;
  transition: background 220ms;
}
.world-cloud:hover,
.world-cloud:focus-visible {
  background: #071a2bba;
}
.cloud-symbol {
  display: grid;
  place-content: center;
  width: 36px;
  height: 36px;
  margin: 4px;
  color: #ffe8a9;
  font:
    23px/1 Georgia,
    serif;
  border: 1px solid #f0d79e80;
  border-radius: 50%;
  background: #102c4040;
  box-shadow:
    0 0 22px #f7d66c24,
    inset 0 0 12px #f7d66c1c;
  transition:
    box-shadow 220ms,
    background 220ms;
}
.world-cloud:hover .cloud-symbol {
  box-shadow: 0 0 30px #f7d66c65;
  background: #17364a99;
}
.cloud-more {
  display: none;
}
.world-clouds .equation-peek {
  display: none;
  position: absolute;
  right: 4.5vw;
  bottom: 103px;
  width: 270px;
  max-width: 35vw;
  margin: 0;
  padding: 13px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: auto;
  text-shadow: 0 1px 5px #03111a;
}
.world-clouds .equation-peek:hover {
  background: transparent;
}
.world-clouds .peek-formula {
  font-size: 20px;
}
.world-clouds .equation-label {
  margin-bottom: 7px;
}
.world-clouds .peek-action {
  margin-top: 9px;
}
.immersive-ready dialog {
  border-radius: 24px 36px 28px 32px;
  background: linear-gradient(145deg, #29475de8, #102c40f5 34%, #081e2ffa);
  border: 1px solid #c4d6df30;
  box-shadow:
    0 18px 70px #010c1b55,
    inset 0 1px 22px #d3e2eb0b;
}
.chapter-panel,
.world-dialog {
  width: min(510px, 43vw);
  margin: auto auto auto 3vw;
}
.chapter-panel {
  padding: 42px 32px 30px;
  max-height: 82svh;
}
.chapter-panel .page-content {
  padding: 0;
}
.chapter-title {
  font: 500 42px/1.04 var(--serif);
  margin: 0 0 22px;
  letter-spacing: -0.025em;
}
.chapter-panel .intro {
  font-size: 16px;
}
.chapter-panel .description,
.chapter-panel .use-cases p {
  font-size: 13px;
}
.chapter-panel .chapter {
  font-size: 11px;
  padding-right: 28px;
}
.chapter-panel .actions {
  flex-wrap: wrap;
}
.chapter-panel .primary {
  padding: 15px 18px;
}
.chapter-panel::backdrop,
.world-dialog::backdrop {
  background: #03111c12;
  backdrop-filter: none;
}
.chapter-panel[open],
.world-dialog[open] {
  animation: cloud-arrival 300ms ease-out;
}
@keyframes cloud-arrival {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.world-example-block {
  border-left: 1px solid var(--gold);
  padding: 5px 0 5px 18px;
  margin: 25px 0;
}
.world-moment-controls,
.world-dialog-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.world-moment-controls [data-preview-motion],
.world-dialog-actions button {
  background: transparent;
  color: var(--gold);
  min-height: 44px;
  padding: 10px 0;
}
.world-moment-controls button:disabled {
  opacity: 0.5;
}
.world-dialog-actions {
  margin-top: 18px;
}
.world-dialog-open .story-anchor,
.world-dialog-open .world-clouds,
.world-dialog-open .chapter-footer,
.world-dialog-open .research-content,
.chapter-opened .chapter-invitation,
.chapter-opened .world-clouds,
.experiment-mode .story-anchor,
.experiment-mode .world-clouds,
.art-mode .story-anchor,
.art-mode .world-clouds {
  visibility: hidden;
}
.chapter-opened .atmosphere,
.world-dialog-open .atmosphere {
  opacity: 0;
}
.immersive-ready .research-hero {
  min-height: 65svh;
  align-items: end;
  padding-bottom: 50px;
}
.immersive-ready .research-opening {
  padding: 24px;
  background: #081c2ccc;
  border-radius: 24px;
}
.immersive-ready .research-opening h1 {
  font-size: clamp(42px, 5vw, 65px);
}
.research-cloud {
  position: relative;
  border-radius: 24px;
  background: #0c2538ed;
}
.close-cloud {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  color: var(--mist);
}
.close-cloud:hover {
  color: white;
  background: #ffffff12;
}
.research-question.research-cloud {
  padding: 50px 32px 35px;
  margin-block: 50px;
  gap: 4vw;
}
.research-status.research-cloud {
  padding-top: 50px;
}
.research-restore {
  display: block;
  max-width: 580px;
  margin-block: 55px;
  padding: 16px;
  background: #0c2538e0;
  border-radius: 24px;
}
.art-only {
  display: none;
}
.art-mode .art-only {
  display: inline-block;
}
.art-mode .scene-tools {
  flex-wrap: wrap;
  gap: 5px 22px;
  justify-content: center;
  max-width: calc(100vw - 32px);
}
.painting-options {
  margin: 0;
  padding: 0;
  border: 0;
}
.painting-options summary {
  text-align: center;
  min-height: 40px;
  padding: 10px;
  color: var(--gold);
}
.painting-options .painting-buttons {
  padding-top: 8px;
}
.full-painting #frame {
  left: 50%;
  width: min(100vw, 177.68svh);
  height: min(56.28vw, 100svh);
}
@media (max-width: 1000px) {
  .chapter-panel,
  .world-dialog {
    width: min(510px, 60vw);
  }
  .chapter-invitation {
    max-width: 390px;
  }
  .chapter-nav {
    gap: 23px;
  }
}
@media (max-width: 760px) {
  .immersive-ready .site-header {
    position: relative;
  }
  .immersive-ready .header-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 6vw;
    top: 25px;
    min-height: 44px;
    width: 54px;
    padding: 10px 0;
    font-size: 0;
  }
  .immersive-ready .header-contact::before {
    content: "Contact";
    font-size: 11px;
  }
  .immersive-ready .header-contact span {
    display: none;
  }
  .compact-markers .world-cloud > span:not(.cloud-symbol) {
    display: none;
  }
  .immersive-ready .site-header {
    padding: 20px 6vw 12px;
  }
  .immersive-ready .atmosphere {
    background: linear-gradient(
      180deg,
      #041422bd,
      transparent 23%,
      transparent 58%,
      #041422e8
    );
  }
  .immersive-ready main {
    display: grid;
    padding-inline: 6vw;
    min-height: 480px;
  }
  .chapter-invitation {
    padding: 18px 0 14px;
    width: 100%;
  }
  .chapter-invitation h1 {
    font-size: clamp(30px, 8vw, 39px);
    max-width: 360px;
  }
  .chapter-invitation .intro {
    font-size: 12px;
    max-width: 330px;
  }
  .invitation-actions {
    gap: 0 18px;
  }
  .invitation-actions button {
    font-size: 11px;
  }
  .chapter-open::after {
    margin-left: 10px;
  }
  .world-hint,
  .world-clouds .equation-peek {
    display: none;
    display: none;
  }
  .world-cloud {
    font-size: 10px;
    column-gap: 3px;
    padding-right: 8px;
    background: #081c2b65;
  }
  .cloud-orbit {
    max-width: 170px;
  }
  .immersive-ready .chapter-footer {
    min-height: 46px;
    margin: 0;
  }
  .chapter-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  .chapter-nav a {
    font-size: 9px;
    gap: 5px;
  }
  .chapter-nav a > span:first-child {
    font-size: 15px;
  }
  .immersive-ready .chapter-count {
    display: none;
  }
  .immersive-ready .site-footer {
    padding-inline: 6vw;
    gap: 8px;
  }
  .signature {
    display: none;
  }
  .scene-tools {
    width: 100%;
    justify-content: space-between;
  }
  .chapter-panel,
  .world-dialog {
    position: fixed;
    top: auto;
    left: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 67svh;
    padding: 35px 6vw 25px;
  }
  .immersive-ready .chapter-panel,
  .immersive-ready .world-dialog,
  .immersive-ready .science-panel {
    border-radius: 26px 26px 0 0;
  }
  .chapter-title {
    font-size: 36px;
  }
  .chapter-opened .landscape,
  .world-dialog-open .landscape {
    height: 33svh;
    bottom: auto;
  }
  .chapter-opened #frame,
  .world-dialog-open #frame {
    left: 50%;
    width: max(100vw, 58.64svh);
    height: max(56.28vw, 33svh);
  }
  .immersive-ready .research-hero {
    min-height: 80svh;
    gap: 25px;
  }
  .immersive-ready .research-opening {
    padding: 24px 18px;
  }
  .research-question.research-cloud {
    padding: 48px 18px 25px;
  }
  .research-question .research-equations {
    padding-inline: 12px;
  }
  .art-mode .scene-tools {
    left: 16px;
    right: 16px;
    bottom: 14px;
    width: calc(100% - 32px);
  }
}
@media (max-width: 360px) {
  .chapter-nav {
    gap: 9px;
  }
  .chapter-nav a {
    font-size: 8px;
  }
  .research-question.research-cloud {
    padding-inline: 10px;
  }
  .research-question .research-equations {
    padding-inline: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-panel[open],
  .world-dialog[open] {
    animation: none;
  }
}
