:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #1e2925;
  --muted: #657167;
  --line: #d7ddd1;
  --green: #315b40;
  --tint: #e8ede2;
  --ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(24px, 4.7vw, 88px);
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 450 15px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1,
h2 {
  font-weight: 600;
}
::selection {
  background: #d7e4c8;
  color: #13261b;
}
:focus-visible {
  outline: 2px solid #508057;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
.eyebrow {
  font: 500 10px/1.6 var(--mono);
  letter-spacing: 1.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #548459;
  display: inline-block;
  flex: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 49px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid transparent;
  transition:
    background 0.18s,
    color 0.18s;
  white-space: nowrap;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button-dark {
  background: var(--ink);
  color: var(--paper);
}
.button-dark:hover {
  background: var(--green);
}
.button-small {
  min-height: 41px;
  padding: 9px 16px;
  font-size: 12px;
  gap: 25px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  padding: 0;
}
.text-button:hover {
  color: var(--green);
}
.text-button > span {
  font-size: 20px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
}
.icon-button:hover {
  background: var(--tint);
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 6;
  height: 91px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 45px;
  color: var(--ink);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
}
.brand img {
  filter: invert(1);
  mix-blend-mode: multiply;
  object-fit: contain;
}
.brand > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 16px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.brand-alpha {
  font: 500 9px/1 var(--mono);
  letter-spacing: 1.1px;
  opacity: 0.7;
}
.main-nav {
  display: flex;
  gap: 27px;
  margin: auto;
  font-size: 12px;
}
.main-nav > button {
  padding: 10px 0;
}
.main-nav > button:hover {
  opacity: 0.65;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 27px;
}
.skip-story {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  opacity: 0.68;
}
.skip-story:hover {
  opacity: 1;
}
.dark-scene .site-header {
  color: #e3eade;
}
.dark-scene .site-header .brand img {
  filter: none;
  mix-blend-mode: screen;
}
.dark-scene .site-header .button-dark {
  background: #e6ebdf;
  color: #1e3426;
}
.dark-scene .site-header .button-dark:hover {
  background: #c5d9b4;
}
.brand img {
}
.journey {
  height: 100svh;
  position: relative;
}
.has-journey .journey {
  height: 580svh;
}
.journey-viewport {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}
.world-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(
      30deg,
      transparent 49.5%,
      #98a491 49.9%,
      #98a491 50.1%,
      transparent 50.5%
    ),
    linear-gradient(
      150deg,
      transparent 49.5%,
      #98a491 49.9%,
      #98a491 50.1%,
      transparent 50.5%
    );
  background-size: 170px 98px;
  mask-image: radial-gradient(ellipse at 68% 62%, #000 15%, transparent 72%);
  opacity: 0.16;
  transform-origin: 65% 60%;
}
.city-world,
.exchange-world {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
  transform-origin: 0 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: normal;
}
.city-world {
  width: 66vw;
  transform: translate(34vw, 25vh);
}
.exchange-world {
  opacity: 0;
  visibility: hidden;
}
.city-world > img,
.exchange-world > img {
  width: 100%;
  height: auto;
  max-width: none;
}
.threshold {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  perspective: 900px;
}
.door-frame {
  width: 310px;
  height: 520px;
  border: 14px solid #aaa791;
  box-shadow:
    0 0 0 2px #464e3b,
    0 0 0 23px #d5d0ba,
    inset 0 0 65px #000a;
  background: #13231b;
  display: flex;
  perspective: 800px;
  position: relative;
}
.door-frame:before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid #f0ebda;
  pointer-events: none;
}
.door {
  width: 50%;
  height: 100%;
  border: 5px solid #45503a;
  background-color: #273c2b;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 23px,
      #a8996255 24px,
      #a8996255 25px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 58px,
      #a8996233 59px,
      #a8996233 60px
    );
  backface-visibility: hidden;
  position: relative;
}
.door:before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #b6a464;
  box-shadow:
    inset 0 0 0 7px #293d2b,
    inset 0 0 0 8px #b6a46455;
}
.door:after {
  content: "";
  position: absolute;
  top: 52%;
  width: 5px;
  height: 54px;
  background: #b6a464;
}
.door-left {
  transform-origin: left center;
}
.door-left:after {
  right: 15px;
}
.door-right {
  transform-origin: right center;
}
.door-right:after {
  left: 15px;
}
.door-copy {
  position: absolute;
  top: 16%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  color: #f1efe2;
}
.door-copy .eyebrow {
  justify-content: center;
  color: #d5dcc8;
  font-size: 9px;
}
.door-copy h2 {
  font-size: 43px;
  letter-spacing: -1.6px;
  margin-top: 12px;
}
.story-copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 23%;
  max-width: 600px;
  will-change: transform, opacity;
}
.story-copy > .eyebrow {
  margin-bottom: 24px;
  color: #56704d;
}
.story-copy h1 {
  font-size: clamp(68px, 6.45vw, 110px);
  line-height: 1.02;
  letter-spacing: -4.9px;
}
.story-copy h1 > span {
  color: var(--green);
}
.story-copy h2 {
  font-size: clamp(46px, 4.45vw, 75px);
  line-height: 1.07;
  letter-spacing: -3px;
}
.story-copy h2 > span {
  color: var(--green);
}
.story-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 26px;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 31px;
  padding: 0;
  min-height: 42px;
}
.scroll-arrow {
  border: 1px solid #aebba4;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: #42633c;
  transition: background 0.18s;
}
.scroll-cue > span:last-child {
  font: 9px/1.5 var(--mono);
  letter-spacing: 1px;
}
.scroll-cue:hover .scroll-arrow {
  background: #e0e8d4;
}
.copy-floor,
.copy-chart,
.copy-end {
  opacity: 0;
  visibility: hidden;
}
.copy-floor {
  top: 18%;
  max-width: 550px;
}
.copy-floor .text-button {
  margin-top: 21px;
}
.floor-tags {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 8px;
  left: 56%;
  bottom: 15%;
  opacity: 0;
  visibility: hidden;
}
.floor-tags > button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f9faf2ef;
  border: 1px solid #bcc8b0;
  padding: 9px 12px;
  font-size: 10px;
  min-height: 40px;
  box-shadow: 0 3px 8px #2338200a;
}
.floor-tags > button:hover {
  background: #e4ecd7;
}
.floor-tags > button > .icon {
  width: 16px;
  height: 16px;
}
.floor-tags > button > span {
  margin-left: 12px;
}
.chart-world {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.copy-chart {
  top: 20%;
  color: #eaf0e5;
  max-width: 600px;
}
.copy-chart h2 > span {
  color: #b7d498;
}
.copy-chart > .eyebrow {
  color: #a4bd90;
}
.copy-chart .story-description {
  color: #adbfae;
}
.direction-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  border: 1px solid #62826366;
  padding: 4px;
  background: #132a2099;
}
.direction-switch > button {
  font-size: 10px;
  padding: 8px 12px;
  color: #cbd9c2;
  min-height: 35px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.direction-switch > button[aria-pressed="true"] {
  background: #d0dfbb;
  color: #243d27;
}
.direction-switch > button:hover {
  background: #66865155;
}
.direction-switch > button[aria-pressed="true"]:hover {
  background: #d0dfbb;
}
.direction-switch > button > span {
  font-size: 16px;
}
.illustration-note {
  font-size: 8px;
  color: #99aa94;
  display: block;
  margin-top: 10px;
}
.arrival-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 44%, #edf2db 0, transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.copy-end {
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-47%);
  max-width: none;
  text-align: center;
  padding: 0 25px;
  color: var(--ink);
}
.copy-end .end-mark {
  margin: 0 auto 24px;
  width: 54px;
  height: 54px;
}
.end-mark img {
  filter: invert(1);
  mix-blend-mode: multiply;
}
.copy-end .eyebrow {
  justify-content: center;
  margin-bottom: 22px;
  font-size: 9px;
  color: #6b7c5d;
}
.copy-end h2 {
  font-size: clamp(44px, 5.2vw, 88px);
  letter-spacing: -3.4px;
  line-height: 1.12;
}
.copy-end h2 > span {
  color: #5d7550;
}
.copy-end .story-description {
  font-size: 15px;
  line-height: 1.75;
  margin-top: 23px;
  color: #627059;
}
.end-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 31px;
  margin-top: 28px;
}
.access-note {
  font-size: 9px;
  color: #78806e;
  margin-top: 17px;
}
.end-theme {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 23px;
}
.end-theme > button {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 9px;
  padding: 6px 9px;
  border: 1px solid transparent;
  opacity: 0.5;
}
.end-theme > button[aria-pressed="true"] {
  border-color: #a9b69c;
  opacity: 1;
}
.theme-swatch {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
  border: 1px solid #879576;
}
.light-swatch {
  background: #eef2dd;
}
.dark-swatch {
  background: #16271b;
}
.final-dark .copy-end {
  color: #e6edde;
}
.final-dark .copy-end h2 > span {
  color: #abc38c;
}
.final-dark .copy-end .story-description {
  color: #adc0a2;
}
.final-dark .copy-end .eyebrow,
.final-dark .copy-end .access-note {
  color: #97b088;
}
.final-dark .copy-end .end-mark img {
  filter: none;
  mix-blend-mode: screen;
}
.final-dark .copy-end .button-dark {
  background: #d2e0bb;
  color: #1d3426;
}
.final-dark .copy-end .text-button:hover {
  color: #bad699;
}
.final-dark .end-theme > button[aria-pressed="true"] {
  border-color: #7a916a;
}
.journey-bottom {
  position: absolute;
  z-index: 5;
  bottom: 29px;
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: #56664d;
}
.location-caption {
  font: 8px/1.6 var(--mono);
  letter-spacing: 0.8px;
}
.location-caption > span {
  display: block;
  font-size: 7px;
  opacity: 0.65;
  margin-top: 3px;
}
.chapter-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px;
  border: 1px solid #b9c4ad75;
  background: #f7f7f2e0;
}
.chapter-nav > button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  min-height: 35px;
  opacity: 0.58;
}
.chapter-nav > button > span {
  font: 8px/1 var(--mono);
}
.chapter-nav > button > b {
  font-size: 9px;
  font-weight: 500;
}
.chapter-nav > button[aria-current="step"] {
  opacity: 1;
  background: #dee6d4;
}
.chapter-nav > button:hover {
  opacity: 1;
}
.motion-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  padding: 9px 0;
  font-size: 8px;
  opacity: 0.7;
}
.motion-toggle:hover {
  opacity: 1;
}
.motion-toggle .icon {
  width: 14px;
  height: 14px;
}
.dark-scene .journey-bottom {
  color: #bccdaa;
}
.dark-scene .chapter-nav {
  border-color: #7c976255;
  background: #152c20d9;
}
.dark-scene .chapter-nav > button[aria-current="step"] {
  background: #334a2a;
  color: #e3ecd7;
}
.journey-progress {
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: #69845618;
}
.journey-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: #76915f;
  transform: scaleX(0);
  transform-origin: left;
}
.site-footer {
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 9px;
  border-top: 1px solid #d7ddd1;
  color: #78826e;
}
.site-footer > div {
  display: flex;
  gap: 26px;
  align-items: center;
}
.site-footer button {
  font-size: 10px;
  padding: 8px 0;
}
.site-footer button:hover {
  color: #294733;
}
.no-script {
  padding: 40px var(--gutter);
  text-align: center;
}
.no-script p {
  margin: 20px 0;
}
/* The public preview uses the same compact square components as the terminal. */
dialog {
  padding: 0;
  border: 1px solid #bbc5b2;
  max-width: none;
  max-height: calc(100dvh - 48px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 90px #0004;
}
dialog::backdrop {
  background: #142219b8;
  backdrop-filter: blur(6px);
}
.product-dialog {
  width: min(1260px, calc(100vw - 56px));
  overflow: auto;
}
.info-dialog {
  width: min(930px, calc(100vw - 56px));
}
.dialog-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.dialog-toolbar h2 {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
}
.dialog-toolbar > span {
  font-size: 10px;
  color: #7a8870;
  margin-left: auto;
}
.dialog-toolbar :focus-visible {
  outline-offset: -3px;
}
.product-intro {
  padding: 29px 35px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 17px;
}
.product-intro > .eyebrow {
  width: 100%;
  font-size: 8px;
  color: #6d7c60;
}
.product-intro > h3 {
  font-size: 31px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.9px;
}
.product-intro > p {
  font-size: 11px;
  color: var(--muted);
}
.product-dialog .workspace {
  padding: 0 35px 35px;
}
.image-dialog {
  width: min(1480px, calc(100vw - 48px));
  background: #090a0c;
  color: #dce4d9;
  border-color: #344237;
}
.image-dialog .dialog-toolbar {
  background: #121d16;
  border-color: #313a31;
}
.image-dialog .icon-button:hover {
  background: #293b2e;
}
.dialog-image-scroll {
  overflow: auto;
  max-height: calc(100dvh - 115px);
  scrollbar-color: #5a6959 #1b241f;
}
.dialog-image-scroll > img {
  min-width: 900px;
  width: 100%;
  height: auto;
  max-width: none;
}
.info-dialog .faq {
  padding: 38px;
  gap: 40px;
}
.info-dialog h2 {
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -1.6px;
}
.info-footer {
  font-size: 10px;
  color: var(--muted);
  padding: 18px 38px;
  border-top: 1px solid var(--line);
}
.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: stretch;
}
.workspace-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding-top: 4px;
}
.preview-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-tab {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 17px 15px;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.preview-tab[aria-selected="true"] {
  background: var(--tint);
  border-color: #d7ddd1;
}
.preview-tab:hover {
  background: #eef0e9;
}
.preview-tab .tab-number {
  font: 9px/1 var(--mono);
  color: #71806d;
  align-self: flex-start;
  padding-top: 5px;
}
.preview-tab > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.preview-tab strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
  line-height: 1.45;
}
.preview-tab > span > span {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}
.preview-tab > .icon {
  width: 13px;
  height: 13px;
  opacity: 0;
}
.preview-tab[aria-selected="true"] > .icon {
  opacity: 1;
}
.preview-context {
  padding: 0 15px 0;
  min-height: 131px;
}
.preview-context > p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 29ch;
}
.preview-context > .text-button {
  margin-top: 12px;
}
.preview-stage {
  border: 1px solid #2d3630;
  background: #0b0d0e;
  color: #bcc4bc;
  min-width: 0;
  box-shadow: 0 14px 38px #1e29250a;
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #2c322e;
  padding: 3px 8px 3px 16px;
  min-height: 43px;
  font: 8px/1.4 var(--mono);
  letter-spacing: 0.5px;
}
.preview-chrome > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.preview-chrome .status-dot {
  width: 5px;
  height: 5px;
  background: #86a57a;
}
.preview-caption {
  margin-left: auto;
  color: #8c9a8e;
}
.preview-chrome .icon-button {
  color: #a7b2a8;
  width: 30px;
  height: 30px;
}
.preview-chrome .icon-button:hover {
  background: #27332b;
}
.preview-chrome .icon {
  width: 16px;
  height: 16px;
}
.preview-panels {
  position: relative;
  aspect-ratio: 1.65;
  background: #090a0c;
  overflow: hidden;
}
.preview-panel {
  height: 100%;
  width: 100%;
  padding: 10px;
  display: grid;
  place-items: center;
}
.preview-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}
.preview-footnote {
  border-top: 1px solid #293029;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #9da99e;
  gap: 10px;
}
.preview-footnote > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 70px;
}
.faq .eyebrow {
  color: var(--green);
  margin-bottom: 17px;
}
.faq-items {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 18px 0;
  font-size: 14px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.18s;
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq summary:hover {
  color: var(--green);
}
.faq details p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  padding: 0 32px 23px 0;
  max-width: 66ch;
}
@media (max-width: 1200px) {
  .main-nav {
    gap: 22px;
  }
  .header-actions {
    gap: 23px;
  }
  .site-header {
    gap: 25px;
  }
  .story-copy h1 {
    font-size: 78px;
    letter-spacing: -3.8px;
  }
  .story-copy h2 {
    font-size: 54px;
    letter-spacing: -2.2px;
  }
  .story-copy .story-description {
    font-size: 14px;
  }
  .journey-bottom {
    gap: 20px;
  }
  .chapter-nav {
    gap: 3px;
  }
  .chapter-nav > button {
    padding: 8px 10px;
    gap: 7px;
  }
  .location-caption {
    font-size: 7px;
  }
  .location-caption > span {
    font-size: 6px;
  }
  .copy-floor {
    max-width: 445px;
  }
  .floor-tags {
    left: 51%;
    bottom: 16%;
  }
  .product-dialog .workspace {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 25px;
  }
  .preview-tab {
    padding-inline: 10px;
  }
  .preview-tab strong {
    font-size: 12px;
  }
  .preview-tab > span > span {
    font-size: 10px;
  }
  .preview-context {
    padding-inline: 10px;
  }
  .copy-end h2 {
    font-size: 62px;
  }
  .copy-end .story-description {
    font-size: 14px;
  }
}
@media (max-width: 960px) {
  :root {
    --gutter: 31px;
  }
  .site-header {
    height: 80px;
    gap: 24px;
  }
  .main-nav {
    gap: 18px;
    font-size: 11px;
  }
  .header-actions {
    gap: 19px;
  }
  .brand > span {
    font-size: 14px;
  }
  .brand-alpha {
    font-size: 8px;
  }
  .skip-story {
    font-size: 10px;
    gap: 9px;
  }
  .button-small {
    font-size: 10px;
    gap: 15px;
    padding-inline: 13px;
  }
  .story-copy {
    top: 21%;
    max-width: 430px;
  }
  .story-copy h1 {
    font-size: 67px;
    letter-spacing: -3.3px;
  }
  .story-copy h2 {
    font-size: 45px;
    letter-spacing: -2px;
  }
  .story-copy > .eyebrow {
    font-size: 8px;
    margin-bottom: 19px;
  }
  .story-description {
    font-size: 13px !important;
    margin-top: 22px;
  }
  .copy-floor {
    top: 18%;
    max-width: 415px;
  }
  .copy-chart {
    top: 18%;
  }
  .floor-tags {
    left: 43%;
    bottom: 18%;
    gap: 5px;
  }
  .floor-tags > button {
    font-size: 9px;
    padding-inline: 9px;
    gap: 7px;
  }
  .floor-tags > button > span {
    margin-left: 4px;
  }
  .journey-bottom {
    grid-template-columns: 1fr auto;
    gap: 20px;
    bottom: 23px;
  }
  .location-caption {
    display: none;
  }
  .chapter-nav {
    justify-self: start;
  }
  .motion-toggle {
    font-size: 7px;
  }
  .copy-end {
    top: 50%;
    max-width: none;
  }
  .copy-end h2 {
    font-size: 55px;
    letter-spacing: -2.3px;
  }
  .end-mark {
    margin-bottom: 20px !important;
  }
  .end-actions {
    gap: 23px;
  }
  .end-actions .button {
    font-size: 12px;
  }
  .end-actions .text-button {
    font-size: 12px;
  }
  .site-footer > span:last-child {
    display: none;
  }
  .product-dialog .workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .workspace-sidebar {
    display: contents;
  }
  .preview-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .preview-tab {
    min-height: 84px;
  }
  .preview-tab > .icon {
    display: none;
  }
  .preview-context {
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 60px;
    padding: 0;
  }
  .preview-context > p {
    max-width: 53ch;
    min-height: 45px;
    font-size: 12px;
  }
  .preview-context > .text-button {
    white-space: nowrap;
    margin: 0;
    font-size: 12px;
  }
  .preview-panels {
    aspect-ratio: 1.65;
  }
  .info-dialog .faq {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .info-dialog .faq h2 br {
    display: none;
  }
  .info-dialog .eyebrow {
    font-size: 9px;
  }
  .door-copy h2 {
    font-size: 37px;
  }
  .door-frame {
    width: 250px;
    height: 440px;
  }
}
@media (max-width: 700px) {
  :root {
    --gutter: 23px;
  }
  .site-header {
    height: 74px;
    gap: 10px;
    padding-inline: 18px;
  }
  .brand {
    gap: 5px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand > span {
    font-size: 13px;
    letter-spacing: 1.2px;
    gap: 5px;
  }
  .brand-alpha {
    font-size: 7px;
  }
  .main-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 14px;
  }
  .skip-story {
    font-size: 9px;
    gap: 6px;
  }
  .skip-story > span {
    display: none;
  }
  .button-small {
    font-size: 9px;
    gap: 11px;
    min-height: 37px;
    padding: 8px 11px;
  }
  .button-small > .icon {
    width: 14px;
    height: 14px;
  }
  .journey-viewport {
    min-height: 560px;
  }
  .has-journey .journey {
    height: 490svh;
  }
  .story-copy {
    top: 16%;
    left: var(--gutter);
    max-width: calc(100% - 42px);
  }
  .story-copy > .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
    gap: 8px;
    margin-bottom: 15px;
  }
  .story-copy > .eyebrow .status-dot {
    width: 5px;
    height: 5px;
  }
  .story-copy h1 {
    font-size: clamp(51px, 11vw, 70px);
    letter-spacing: -2.8px;
    line-height: 1.03;
  }
  .copy-city h1 br:nth-of-type(1) {
    display: none;
  }
  .copy-city h1 br:nth-of-type(1):after {
    content: " ";
  }
  .copy-city h1 {
    max-width: 360px;
  }
  .copy-city h1 > span {
    display: block;
  }
  .story-copy h2 {
    font-size: clamp(36px, 8vw, 47px);
    letter-spacing: -1.7px;
    line-height: 1.07;
  }
  .story-description {
    font-size: 12px !important;
    line-height: 1.7;
    margin-top: 16px;
  }
  .scroll-cue {
    margin-top: 18px;
    gap: 11px;
  }
  .scroll-cue > span:last-child {
    font-size: 7px;
    letter-spacing: 0.9px;
  }
  .scroll-arrow {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .city-world {
    width: 105vw;
    transform: translate(-2vw, 48vh);
  }
  .copy-floor {
    top: 15%;
  }
  .copy-floor .story-description {
    margin-top: 15px;
  }
  .copy-floor .text-button {
    margin-top: 10px;
    font-size: 10px;
    gap: 12px;
  }
  .copy-floor .text-button > span {
    font-size: 17px;
  }
  .floor-tags {
    left: 0;
    right: 0;
    bottom: 15%;
    justify-content: center;
    gap: 5px;
  }
  .floor-tags > button {
    font-size: 8px;
    padding: 7px 9px;
    min-height: 35px;
    gap: 5px;
  }
  .floor-tags > button > .icon {
    width: 13px;
    height: 13px;
  }
  .floor-tags > button > span {
    margin-left: 5px;
  }
  .copy-chart {
    top: 16%;
    max-width: 350px;
  }
  .direction-switch {
    margin-top: 18px;
    padding: 3px;
  }
  .direction-switch > button {
    font-size: 9px;
    padding: 7px 10px;
    gap: 7px;
    min-height: 34px;
  }
  .illustration-note {
    font-size: 7px;
    margin-top: 8px;
  }
  .journey-bottom {
    left: 18px;
    right: 18px;
    bottom: 19px;
    gap: 8px;
  }
  .chapter-nav {
    gap: 1px;
    padding: 4px;
    width: 100%;
    justify-content: space-between;
  }
  .chapter-nav > button {
    padding: 7px 6px;
    gap: 5px;
    min-height: 33px;
  }
  .chapter-nav > button > span {
    font-size: 7px;
  }
  .chapter-nav > button > b {
    font-size: 7px;
    font-weight: 500;
  }
  .motion-toggle {
    width: 29px;
    height: 38px;
    padding: 5px;
    justify-content: center;
  }
  .motion-toggle > span {
    display: none;
  }
  .motion-toggle > .icon {
    width: 14px;
    height: 14px;
  }
  .copy-end {
    left: 0;
    top: 48%;
    max-width: none;
    padding: 0 23px;
  }
  .copy-end .end-mark {
    width: 45px;
    height: 45px;
    margin-bottom: 25px !important;
  }
  .copy-end .eyebrow {
    font-size: 7px;
    justify-content: center;
    letter-spacing: 1.1px;
    margin-bottom: 18px;
  }
  .copy-end h2 {
    font-size: clamp(36px, 8vw, 48px);
    line-height: 1.14;
    letter-spacing: -1.7px;
  }
  .copy-end .story-description {
    font-size: 12px !important;
    margin-top: 21px;
    max-width: 36ch;
    margin-inline: auto;
  }
  .copy-end .story-description br {
    display: none;
  }
  .end-actions {
    flex-direction: column;
    gap: 9px;
    margin-top: 24px;
  }
  .end-actions .button {
    min-height: 46px;
    padding: 11px 20px;
    font-size: 12px;
    gap: 28px;
  }
  .end-actions .text-button {
    font-size: 11px;
    min-height: 38px;
  }
  .access-note {
    font-size: 8px;
    max-width: 40ch;
    margin: 14px auto 0;
  }
  .end-theme {
    margin-top: 18px;
  }
  .end-theme > button {
    font-size: 8px;
    min-height: 33px;
  }
  .door-copy {
    top: 21%;
  }
  .door-copy .eyebrow {
    font-size: 8px;
  }
  .door-copy h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .door-frame {
    width: 210px;
    height: 380px;
    border-width: 10px;
  }
  .site-footer {
    padding: 17px 23px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-footer > span:first-child {
    font-size: 8px;
    order: 2;
  }
  .site-footer > div {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }
  .site-footer button {
    font-size: 8px;
    min-height: 35px;
  }
  .product-dialog,
  .info-dialog,
  .image-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
  .dialog-toolbar {
    padding: 6px 10px;
    gap: 12px;
  }
  .dialog-toolbar h2 {
    font-size: 12px;
  }
  .dialog-toolbar > span {
    font-size: 8px;
    max-width: 115px;
  }
  .dialog-toolbar .icon-button {
    width: 34px;
    height: 34px;
  }
  .product-intro {
    padding: 23px 17px;
    display: block;
  }
  .product-intro > .eyebrow {
    font-size: 7px;
    max-width: 35ch;
    line-height: 1.7;
    letter-spacing: 0.9px;
  }
  .product-intro h3 {
    font-size: 28px;
    margin-top: 14px;
  }
  .product-intro > p {
    font-size: 10px;
    margin-top: 14px;
  }
  .product-intro > p br {
    display: none;
  }
  .product-dialog .workspace {
    padding: 0 13px 23px;
    gap: 15px;
  }
  .preview-tabs {
    gap: 4px;
  }
  .preview-tab {
    display: block;
    padding: 9px 7px;
    min-height: 77px;
  }
  .preview-tab .tab-number {
    font-size: 7px;
    display: block;
    margin-bottom: 7px;
    padding: 0;
  }
  .preview-tab strong {
    font-size: 9px;
    line-height: 1.5;
  }
  .preview-tab > span > span {
    display: none;
  }
  .preview-context {
    display: block;
    min-height: 100px;
    padding-inline: 4px;
  }
  .preview-context > p {
    font-size: 11px;
    min-height: 40px;
    max-width: 45ch;
  }
  .preview-context > .text-button {
    font-size: 11px;
    margin-top: 8px;
  }
  .preview-chrome {
    padding: 4px 6px 4px 10px;
    min-height: 36px;
  }
  .preview-caption {
    display: none;
  }
  .preview-chrome .icon-button {
    margin-left: auto;
    width: 29px;
    height: 29px;
  }
  .preview-panel {
    padding: 4px;
  }
  .preview-footnote {
    padding: 8px 10px;
    font-size: 7px;
  }
  .preview-footnote > span:last-child {
    font-size: 0;
    gap: 0;
  }
  .preview-footnote > span:last-child > span {
    font-size: 12px;
    line-height: 1;
  }
  .info-dialog .faq {
    padding: 23px 19px;
    gap: 25px;
  }
  .info-dialog .faq h2 {
    font-size: 30px;
  }
  .info-dialog .eyebrow {
    font-size: 8px;
  }
  .faq summary {
    font-size: 12px;
    min-height: 65px;
  }
  .faq details p {
    font-size: 11px;
    padding-right: 10px;
  }
  .info-footer {
    padding: 15px 19px;
    font-size: 9px;
  }
  .dialog-image-scroll {
    max-height: calc(100dvh - 80px);
  }
}
@media (max-width: 370px) {
  .site-header {
    padding-inline: 14px;
  }
  .brand > span {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .brand-alpha {
    font-size: 6px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .header-actions {
    gap: 11px;
  }
  .skip-story {
    font-size: 8px;
  }
  .button-small {
    font-size: 8px;
    gap: 8px;
    padding-inline: 9px;
  }
  .story-copy h1 {
    font-size: 48px;
    letter-spacing: -2.6px;
  }
  .story-copy h2 {
    font-size: 34px;
  }
  .story-copy > .eyebrow {
    font-size: 6px;
  }
  .story-description {
    font-size: 11px !important;
  }
  .chapter-nav > button {
    gap: 4px;
    padding-inline: 5px;
  }
  .chapter-nav > button > b {
    font-size: 6px;
  }
  .journey-bottom {
    left: 14px;
    right: 14px;
    gap: 5px;
  }
  .copy-end h2 {
    font-size: 32px;
  }
  .copy-end .story-description {
    font-size: 11px !important;
  }
  .copy-end .eyebrow {
    font-size: 6px;
  }
  .preview-tab strong {
    font-size: 8px;
  }
}
@media (max-height: 700px) and (min-width: 701px) {
  .site-header {
    height: 72px;
  }
  .story-copy {
    top: 21%;
  }
  .story-copy h1 {
    font-size: 66px;
    letter-spacing: -3px;
  }
  .story-copy h2 {
    font-size: 47px;
  }
  .story-copy > .eyebrow {
    margin-bottom: 17px;
    font-size: 8px;
  }
  .story-description {
    margin-top: 19px;
    font-size: 13px;
  }
  .copy-floor,
  .copy-chart {
    top: 20%;
  }
  .copy-end {
    top: 48%;
  }
  .copy-end .end-mark {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
  }
  .copy-end h2 {
    font-size: 48px;
  }
  .copy-end .eyebrow {
    margin-bottom: 12px;
  }
  .copy-end .story-description {
    margin-top: 15px;
  }
  .end-actions {
    margin-top: 19px;
  }
  .end-theme {
    margin-top: 12px;
  }
  .journey-bottom {
    bottom: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.reduce-motion * {
  transition: none !important;
  animation: none !important;
}
/* Optical adjustments shared by all journey scenes. */
.brand img,
.end-mark img {
  filter: none;
  mix-blend-mode: normal;
}
.dark-scene .site-header .brand img,
.final-dark .copy-end .end-mark img {
  filter: invert(1);
  mix-blend-mode: normal;
}
.story-copy h1 {
  font-weight: 600;
  letter-spacing: -0.045em;
}
.story-copy h2 {
  font-weight: 600;
  letter-spacing: -0.04em;
}
.preview-panel {
  position: absolute;
  inset: 0;
  height: auto;
  display: block;
}
.preview-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.door-copy {
  top: 12%;
}
.chapter-nav > button > b {
  font-size: 10px;
}
.chapter-nav > button > span {
  font-size: 9px;
}
.chapter-nav > button {
  min-height: 37px;
}
.world-grid {
  background-size: 190px 110px;
}
@media (max-width: 700px) {
  .copy-city h1 {
    font-size: clamp(45px, 10.9vw, 65px);
    max-width: 370px;
    letter-spacing: -0.045em;
  }
  .story-copy {
    top: 15%;
  }
  .copy-city .story-description {
    margin-top: 18px;
  }
  .chapter-nav > button > b {
    font-size: 8px;
  }
  .chapter-nav > button > span {
    font-size: 7px;
  }
  .chapter-nav > button {
    min-height: 36px;
    gap: 5px;
    padding: 7px 5px;
  }
  .door-copy {
    top: 15%;
  }
  .copy-end {
    top: 48%;
  }
  .copy-chart {
    top: 16%;
  }
  .copy-floor {
    top: 15%;
  }
}
@media (max-width: 370px) {
  .copy-city h1 {
    font-size: 43px;
  }
  .chapter-nav > button > b {
    font-size: 7px;
  }
  .chapter-nav > button {
    gap: 4px;
  }
}
@media (max-width: 700px) {
  .chapter-nav > button > b {
    font-size: 9px;
  }
  .chapter-nav > button > span {
    display: none;
  }
  .chapter-nav > button {
    padding: 7px 8px;
  }
  .skip-story {
    white-space: nowrap;
  }
}
@media (max-width: 370px) {
  .chapter-nav > button {
    padding-inline: 6px;
    white-space: nowrap;
  }
  .chapter-nav > button > b {
    font-size: 8px;
  }
}
@media (max-height: 600px) {
  .journey-viewport {
    min-height: 320px;
  }
}
.threshold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, #0d1b1599, #0d1b15eb);
}
.door-frame {
  z-index: 1;
}
.door-copy {
  left: var(--gutter);
  right: auto;
  top: 27%;
  max-width: 29vw;
  text-align: left;
}
.door-copy .eyebrow {
  justify-content: flex-start;
}
.door-copy h2 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
@media (max-width: 700px) and (max-aspect-ratio: 4/3) {
  .door-frame {
    top: 6svh;
  }
  .door-copy {
    left: 20px;
    right: 20px;
    top: 12%;
    max-width: none;
    text-align: center;
  }
  .door-copy .eyebrow {
    justify-content: center;
  }
  .door-copy h2 {
    font-size: 28px;
    margin-top: 9px;
  }
}
@media (max-height: 520px) and (min-aspect-ratio: 4/3) {
  .site-header {
    height: 60px;
    padding-inline: 24px;
  }
  .main-nav {
    font-size: 10px;
    gap: 20px;
  }
  .header-actions {
    gap: 16px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .brand > span {
    font-size: 12px;
  }
  .button-small {
    min-height: 34px;
    font-size: 9px;
    padding-block: 7px;
  }
  .story-copy {
    top: 22%;
    left: 31px;
    max-width: 44vw;
  }
  .story-copy > .eyebrow {
    font-size: 6px;
    margin-bottom: 10px;
    letter-spacing: 1px;
  }
  .copy-city h1 {
    font-size: 44px;
    letter-spacing: -0.045em;
    max-width: none;
  }
  .copy-city h1 br:nth-of-type(1) {
    display: initial;
  }
  .copy-city h1 > span {
    display: initial;
  }
  .story-copy h2 {
    font-size: 31px;
    letter-spacing: -0.04em;
  }
  .story-description {
    font-size: 10px !important;
    line-height: 1.6;
    margin-top: 11px;
  }
  .copy-city .scroll-cue {
    display: none;
  }
  .copy-floor .text-button {
    font-size: 10px;
    min-height: 32px;
    margin-top: 10px;
  }
  .copy-chart {
    top: 22%;
  }
  .direction-switch {
    margin-top: 12px;
    padding: 3px;
  }
  .direction-switch > button {
    font-size: 8px;
    padding: 4px 8px;
    min-height: 26px;
  }
  .illustration-note {
    font-size: 6px;
    margin-top: 6px;
  }
  .journey-bottom {
    bottom: 12px;
    left: 24px;
    right: 24px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .chapter-nav {
    width: auto;
    gap: 2px;
    padding: 4px;
    justify-self: start;
  }
  .chapter-nav > button {
    min-height: 34px;
    padding: 4px 9px;
  }
  .chapter-nav > button > b {
    font-size: 8px;
  }
  .chapter-nav > button > span {
    display: none;
  }
  .location-caption {
    display: none;
  }
  .motion-toggle {
    height: 31px;
    font-size: 7px;
  }
  .floor-tags {
    left: auto;
    right: 6%;
    bottom: 17%;
    gap: 4px;
  }
  .floor-tags > button {
    font-size: 7px;
    padding: 4px 7px;
    min-height: 28px;
    gap: 5px;
  }
  .floor-tags > button > .icon {
    width: 12px;
    height: 12px;
  }
  .floor-tags > button > span {
    margin-left: 4px;
  }
  .copy-end {
    top: 48%;
    left: 0;
    right: 0;
    max-width: none;
    padding-inline: 24px;
  }
  .copy-end .end-mark {
    display: none;
  }
  .copy-end .eyebrow {
    font-size: 6px;
    margin-bottom: 9px;
  }
  .copy-end h2 {
    font-size: 34px;
    line-height: 1.07;
  }
  .copy-end .story-description {
    font-size: 10px !important;
    margin-top: 11px;
    max-width: none;
  }
  .copy-end .story-description br {
    display: initial;
  }
  .end-actions {
    flex-direction: row;
    gap: 23px;
    margin-top: 15px;
  }
  .end-actions .button {
    min-height: 35px;
    font-size: 10px;
    padding: 7px 14px;
    gap: 22px;
  }
  .end-actions .text-button {
    font-size: 9px;
    min-height: 35px;
  }
  .access-note {
    font-size: 7px;
    max-width: none;
    margin-top: 9px;
  }
  .end-theme {
    margin-top: 8px;
  }
  .end-theme > button {
    font-size: 7px;
    min-height: 26px;
    padding: 4px 8px;
  }
  .door-copy {
    left: 31px;
    right: auto;
    top: 24%;
    max-width: 27vw;
    text-align: left;
  }
  .door-copy .eyebrow {
    justify-content: flex-start;
  }
  .door-copy h2 {
    font-size: 25px;
  }
  .door-copy .eyebrow {
    font-size: 7px;
  }
  .door-frame {
    width: 150px;
    height: 250px;
  }
}

/* Production typography, touch targets and safe-area composition. */
.main-nav {
  font-weight: 500;
}
.mobile-menu-toggle {
  display: none;
}
.navigation-dialog {
  width: min(400px, calc(100vw - 28px));
  margin: max(16px, env(safe-area-inset-top)) 14px auto auto;
}
.navigation-dialog .dialog-toolbar {
  justify-content: space-between;
}
.navigation-dialog nav {
  padding: 8px;
}
.navigation-dialog nav > button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 550;
  text-align: left;
}
.navigation-dialog nav > button:hover {
  background: var(--tint);
}
.navigation-dialog nav > button > span:last-child {
  margin-left: auto;
}
.navigation-dialog .menu-motion {
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.navigation-dialog .menu-motion > span:last-child {
  margin: 0;
}
.navigation-dialog .menu-motion[aria-pressed="true"] {
  color: var(--green);
}
.site-header {
  padding-top: env(safe-area-inset-top);
  height: calc(91px + env(safe-area-inset-top));
}
.journey-bottom {
  bottom: max(24px, env(safe-area-inset-bottom));
}
.site-footer {
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}
.icon-button {
  touch-action: manipulation;
}
button,
a {
  -webkit-touch-callout: none;
}
@media (max-width: 700px) {
  .site-header {
    height: calc(76px + env(safe-area-inset-top));
    padding-inline: max(16px, env(safe-area-inset-left))
      max(16px, env(safe-area-inset-right));
    gap: 8px;
  }
  .site-header .brand {
    gap: 6px;
  }
  .site-header .brand > span {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .site-header .brand-alpha {
    font-size: 7px;
  }
  .header-actions {
    gap: 0;
  }
  .skip-story {
    display: none;
  }
  .site-header .button-small {
    min-height: 44px;
    font-size: 11px;
    padding: 9px 12px;
    gap: 10px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }
  .mobile-menu-toggle .icon {
    width: 23px;
    height: 23px;
  }
  .dark-scene .mobile-menu-toggle:hover {
    background: #ffffff12;
  }
  .story-copy {
    top: max(15%, calc(96px + env(safe-area-inset-top)));
  }
  .story-copy > .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .story-copy .story-description {
    font-size: 14px !important;
    line-height: 1.65;
  }
  .scroll-cue {
    min-height: 44px;
    margin-top: 13px;
  }
  .scroll-cue > span:last-child {
    font-size: 9px;
    font-weight: 600;
  }
  .copy-floor .text-button {
    min-height: 44px;
    font-size: 12px;
  }
  .journey-bottom {
    grid-template-columns: 1fr;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .journey-bottom .motion-toggle {
    display: none;
  }
  .chapter-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 4px;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .chapter-nav > button {
    min-height: 44px;
    justify-content: center;
    padding: 6px 2px;
    white-space: nowrap;
  }
  .chapter-nav > button > b {
    font-size: 10px;
    font-weight: 600;
  }
  .direction-switch > button {
    min-height: 44px;
    font-size: 11px;
    padding: 8px 12px;
  }
  .illustration-note {
    font-size: 9px;
  }
  .floor-tags {
    bottom: max(16%, calc(86px + env(safe-area-inset-bottom)));
  }
  .floor-tags > button {
    min-height: 44px;
    font-size: 11px;
    padding: 9px 12px;
    gap: 7px;
  }
  .floor-tags > button > .icon {
    width: 15px;
    height: 15px;
  }
  .copy-end {
    top: 47%;
  }
  .copy-end .eyebrow {
    font-size: 9px;
  }
  .copy-end .story-description {
    font-size: 13px !important;
  }
  .end-theme > button {
    min-height: 44px;
    min-width: 72px;
    font-size: 11px;
  }
  .access-note {
    font-size: 10px;
    line-height: 1.6;
  }
  .dialog-toolbar .icon-button,
  .preview-chrome .icon-button {
    width: 44px;
    height: 44px;
  }
  .dialog-toolbar h2 {
    font-size: 14px;
  }
  .preview-tab strong {
    font-size: 12px;
  }
  .preview-tab .tab-number {
    font-size: 9px;
  }
  .preview-tab {
    min-height: 82px;
    padding: 10px 7px;
  }
  .preview-context > p {
    font-size: 13px;
  }
  .preview-context > .text-button {
    font-size: 13px;
    min-height: 44px;
  }
  .preview-footnote {
    font-size: 9px;
  }
  .product-intro > p {
    font-size: 12px;
  }
  .faq summary {
    font-size: 14px;
  }
  .faq details p {
    font-size: 13px;
  }
  .site-footer button {
    min-height: 44px;
    font-size: 10px;
  }
  .site-footer > span:first-child {
    font-size: 10px;
  }
}
@media (max-width: 370px) {
  .site-header {
    padding-inline: max(12px, env(safe-area-inset-left))
      max(12px, env(safe-area-inset-right));
    gap: 5px;
  }
  .site-header .brand > span {
    font-size: 11px;
    gap: 4px;
  }
  .site-header .brand-alpha {
    font-size: 6px;
  }
  .site-header .button-small {
    font-size: 10px;
    padding-inline: 10px;
    gap: 8px;
  }
  .chapter-nav > button > b {
    font-size: 9px;
  }
  .floor-tags > button {
    padding-inline: 9px;
    font-size: 10px;
    gap: 4px;
  }
}
@media (max-height: 700px) and (max-width: 700px) and (max-aspect-ratio: 4/3) {
  .story-copy {
    top: calc(88px + env(safe-area-inset-top));
  }
  .story-copy > .eyebrow {
    font-size: 8px;
    margin-bottom: 12px;
  }
  .copy-city h1 {
    font-size: clamp(38px, 10.5vw, 50px);
  }
  .story-copy h2 {
    font-size: 32px;
  }
  .story-copy .story-description {
    font-size: 12px !important;
    margin-top: 12px;
  }
  .scroll-cue {
    display: none;
  }
  .copy-floor .text-button {
    margin-top: 5px;
  }
  .copy-end {
    top: 48%;
    padding-inline: 20px;
  }
  .copy-end .end-mark {
    display: none;
  }
  .copy-end h2 {
    font-size: 31px;
  }
  .copy-end .story-description {
    font-size: 12px !important;
  }
  .end-actions {
    margin-top: 15px;
    gap: 4px;
  }
  .end-theme {
    margin-top: 6px;
  }
  .access-note {
    margin-top: 5px;
  }
}
@media (max-height: 520px) and (min-aspect-ratio: 4/3) {
  .site-header {
    height: calc(60px + env(safe-area-inset-top));
    padding-inline: max(24px, env(safe-area-inset-left))
      max(24px, env(safe-area-inset-right));
  }
  .story-copy {
    top: 22%;
  }
  .story-copy > .eyebrow {
    font-size: 7px;
  }
  .story-copy .story-description {
    font-size: 10px !important;
  }
  .copy-city h1 {
    font-size: 41px;
  }
  .journey-bottom {
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr auto;
  }
  .chapter-nav {
    display: flex;
    width: auto;
  }
  .chapter-nav > button {
    min-height: 36px;
    padding: 6px 10px;
  }
  .chapter-nav > button > b {
    font-size: 9px;
  }
  .journey-bottom .motion-toggle {
    display: flex;
    min-height: 36px;
  }
  .floor-tags > button {
    font-size: 9px;
    min-height: 36px;
  }
  .direction-switch > button {
    font-size: 9px;
    min-height: 36px;
  }
  .copy-end {
    top: 48%;
  }
  .copy-end .eyebrow {
    font-size: 7px;
  }
  .copy-end .story-description {
    font-size: 10px !important;
  }
  .end-theme > button {
    min-height: 30px;
    min-width: 60px;
    font-size: 9px;
  }
  .access-note {
    font-size: 8px;
  }
  .floor-tags {
    bottom: 19%;
  }
}

.preview-tab[aria-selected="true"] {
  background: #e1e9d8;
  border-color: #a4b595;
}
@media (hover: none) {
  .preview-tab:not([aria-selected="true"]):hover {
    background: transparent;
  }
}
@media (max-height: 520px) and (min-aspect-ratio: 4/3) {
  .copy-end .access-note {
    display: none;
  }
}
