:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050606;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body,
.demo-stage {
  -webkit-user-select: none;
  user-select: none;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050606;
}

.demo-stage {
  --progress: 0;
  --phone-x: 0px;
  --phone-y: 0px;
  --token-x: 50%;
  --token-y: 44%;
  --token-size: 280px;
  --sharp-left: 0px;
  --sharp-top: 0px;
  --sharp-width: 100%;
  --sharp-height: 100%;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  isolation: isolate;
  outline: none;
  background: #050606;
  touch-action: none;
}

.demo-page .demo-back {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 12;
  color: rgba(255, 255, 255, .78);
  font: 500 .92rem/1.3 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: underline;
  text-underline-offset: .35rem;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, .48);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.demo-page .demo-back:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .88);
  outline-offset: 4px;
  border-radius: 2px;
}

.demo-page .demo-back:hover {
  color: rgba(255, 255, 255, .94);
  text-decoration-color: rgba(255, 255, 255, .8);
}

.demo-page .back-link__label--touch {
  display: none;
}

.demo-page .back-link__label--default {
  display: inline;
}

@media (pointer: coarse) {
  .demo-page .back-link__label--touch {
    display: inline;
  }

  .demo-page .back-link__label--default {
    display: none;
  }
}


.demo-backdrop {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.demo-backdrop--blur {
  inset: -7%;
  width: 114%;
  height: 114%;
  object-fit: cover;
  filter: blur(44px) brightness(.17) saturate(.38);
  transform: scale(calc(1.03 + var(--progress) * .06));
}

.demo-backdrop--sharp {
  left: var(--sharp-left);
  top: var(--sharp-top);
  width: var(--sharp-width);
  height: var(--sharp-height);
  object-fit: fill;
  filter: brightness(.28) saturate(.42) contrast(1.04);
  transform: scale(calc(1 + var(--progress) * .055));
  transform-origin: var(--token-x) var(--token-y);
  opacity: .92;
}

.demo-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--token-x) var(--token-y), rgba(255, 232, 198, calc(.05 + var(--progress) * .14)), transparent calc(13% + var(--progress) * 7%)),
    linear-gradient(180deg, rgba(1, 3, 3, .5), rgba(1, 3, 3, .12) 42%, rgba(1, 3, 3, .58)),
    linear-gradient(90deg, rgba(1, 3, 3, .26), transparent 52%, rgba(1, 3, 3, .48));
  transition: background .5s ease;
}

.demo-wordmark {
  position: absolute;
  left: max(28px, env(safe-area-inset-left));
  top: max(26px, env(safe-area-inset-top));
  z-index: 8;
  width: clamp(138px, 15vw, 212px);
  height: auto;
  opacity: .92;
  filter: drop-shadow(0 5px 24px rgba(0, 0, 0, .46));
}

.demo-instruction {
  position: absolute;
  top: 17%;
  left: 50%;
  z-index: 8;
  width: min(86vw, 620px);
  margin: 0;
  color: rgba(255, 255, 255, calc(.93 - var(--progress) * .82));
  font-size: clamp(17px, 1.65vw, 24px);
  font-weight: 420;
  letter-spacing: -.018em;
  line-height: 1.25;
  text-align: center;
  transform: translate(-50%, calc(var(--progress) * -12px));
  transition: opacity .35s ease, transform .45s ease;
  pointer-events: none;
}

.demo-assist,
.demo-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-gesture-cue {
  position: absolute;
  left: 50%;
  bottom: max(8vh, 44px);
  z-index: 10;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(5,6,6,.62);
  backdrop-filter: blur(12px);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 220ms ease;
  pointer-events: none;
}

.demo-stage[data-gesture-active="true"] .demo-gesture-cue {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-field {
  position: absolute;
  left: var(--token-x);
  top: var(--token-y);
  z-index: 4;
  width: var(--token-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.demo-field::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: rgba(255, 246, 230, .7);
  opacity: 0;
  filter: blur(22px);
}

.demo-field span {
  position: absolute;
  inset: 19%;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  opacity: calc(max(0, var(--progress) - .64) * 2.6);
  transform: scale(calc(.5 + var(--progress) * .56));
}

.demo-field span:nth-child(2) {
  inset: 11%;
  opacity: calc(max(0, var(--progress) - .69) * 2.35);
  transition-delay: .04s;
}

.demo-field span:nth-child(3) {
  inset: 3%;
  opacity: calc(max(0, var(--progress) - .74) * 2.15);
  transition-delay: .08s;
}

.demo-phone {
  position: absolute;
  left: 80%;
  top: 57%;
  z-index: 7;
  width: clamp(230px, 25vw, 360px);
  transform: translate(calc(-50% + var(--phone-x)), calc(-50% + var(--phone-y)));
  cursor: grab;
  filter: drop-shadow(0 34px 38px rgba(0, 0, 0, .58));
  will-change: transform;
  outline: none;
  isolation: isolate;
}

.demo-phone:active {
  cursor: grabbing;
}

.demo-phone:focus-visible::after {
  content: "";
  position: absolute;
  inset: 3%;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 13%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .1);
}

.demo-phone__asset {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.demo-screen {
  position: absolute;
  left: 14.2%;
  top: 6%;
  z-index: 2;
  width: 71.6%;
  height: 88%;
  overflow: hidden;
  border-radius: 10.5% / 5.4%;
  background: #0c1017;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, ui-sans-serif, system-ui, sans-serif;
  isolation: isolate;
  transition: opacity .32s ease;
}

.demo-ios-home {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  transition: filter .36s ease, opacity .28s ease, transform .46s ease;
}

.demo-ios-home__wallpaper {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 240, 196, .95), transparent 22%),
    radial-gradient(circle at 81% 22%, rgba(58, 184, 187, .86), transparent 27%),
    radial-gradient(circle at 66% 77%, rgba(26, 70, 119, .86), transparent 42%),
    linear-gradient(154deg, #d68866 0%, #5c9294 43%, #152f63 100%);
  filter: saturate(.86);
}

.demo-ios-home__icons {
  position: absolute;
  inset: 16% 9% 25%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 7% 11%;
}

.demo-ios-home__icons span,
.demo-ios-home__dock span {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 25%;
  box-shadow: 0 2px 5px rgba(3, 8, 18, .23), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.demo-ios-home__icons span:nth-child(1) { background: linear-gradient(135deg, #70dded, #0f83e0); }
.demo-ios-home__icons span:nth-child(2) { background: linear-gradient(135deg, #fff, #e8ecee); }
.demo-ios-home__icons span:nth-child(3) { background: linear-gradient(135deg, #fa786c, #e01c5f); }
.demo-ios-home__icons span:nth-child(4) { background: linear-gradient(135deg, #75d67d, #1e9d6b); }
.demo-ios-home__icons span:nth-child(5) { background: linear-gradient(135deg, #ebc86e, #d88745); }
.demo-ios-home__icons span:nth-child(6) { background: linear-gradient(135deg, #a2b5ff, #6152cc); }
.demo-ios-home__icons span:nth-child(7) { background: linear-gradient(135deg, #fff0b0, #f0ac50); }
.demo-ios-home__icons span:nth-child(8) { background: linear-gradient(135deg, #f8f8f8, #a8b5c6); }
.demo-ios-home__icons span:nth-child(9) { background: linear-gradient(135deg, #f7697b, #bc3174); }
.demo-ios-home__icons span:nth-child(10) { background: linear-gradient(135deg, #80d4f1, #3869d2); }
.demo-ios-home__icons span:nth-child(11) { background: linear-gradient(135deg, #4bd6a6, #168e7f); }
.demo-ios-home__icons span:nth-child(12) { background: linear-gradient(135deg, #e6a766, #a74b5a); }

.demo-ios-home__dock {
  position: absolute;
  right: 7%;
  bottom: 4.2%;
  left: 7%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10%;
  padding: 5%;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20%;
  background: rgba(246, 250, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px) saturate(1.2);
}

.demo-ios-home__dock span:nth-child(1) { background: linear-gradient(135deg, #4ed081, #1e9d6b); }
.demo-ios-home__dock span:nth-child(2) { background: linear-gradient(135deg, #75d9f0, #3874d2); }
.demo-ios-home__dock span:nth-child(3) { background: linear-gradient(135deg, #f6f6f8, #bbc1ca); }
.demo-ios-home__dock span:nth-child(4) { background: linear-gradient(135deg, #f1a05f, #d4465f); }

.demo-ios-status {
  position: absolute;
  top: 3.5%;
  right: 8%;
  left: 8%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .96);
  font-size: clamp(7px, .66vw, 10px);
  font-weight: 680;
  letter-spacing: -.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: opacity .2s ease;
}

.demo-ios-status__signal {
  display: flex;
  align-items: end;
  gap: 2px;
}

.demo-ios-status__signal::after {
  content: "";
  width: 10px;
  height: 5px;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: inset -3px 0 0 currentColor;
}

.demo-ios-status__signal i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
}

.demo-ios-status__signal i:nth-child(1) { height: 3px; }
.demo-ios-status__signal i:nth-child(2) { height: 5px; }
.demo-ios-status__signal i:nth-child(3) { height: 7px; }

.demo-nfc {
  position: absolute;
  top: 9%;
  right: 5.4%;
  left: 5.4%;
  z-index: 5;
  animation: nfc-arrival .46s cubic-bezier(.2, .8, .25, 1) both;
}

.demo-nfc__banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(6px, .7vw, 10px);
  width: 100%;
  min-height: 44px;
  padding: clamp(7px, .7vw, 10px);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 13px;
  color: #182132;
  background: rgba(246, 249, 253, .84);
  box-shadow: 0 8px 18px rgba(1, 12, 28, .28), inset 0 1px 0 rgba(255, 255, 255, .88);
  font: inherit;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-tap-highlight-color: transparent;
}

.demo-nfc__banner:focus-visible,
.demo-entry__start:focus-visible,
.demo-story__copy button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.demo-nfc__banner:active {
  transform: scale(.985);
}

.demo-nfc__glyph {
  display: grid;
  place-items: center;
  width: clamp(22px, 2.15vw, 30px);
  height: clamp(22px, 2.15vw, 30px);
  border-radius: 9px;
  background: #161719;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(12, 18, 28, .24);
}

.demo-nfc__glyph-image {
  display: block;
  width: 42%;
  height: 54%;
  filter: brightness(0) invert(1);
}

.demo-nfc__copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 1px;
}

.demo-nfc__copy strong,
.demo-nfc__copy span,
.demo-nfc time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-nfc__copy strong {
  font-size: clamp(7.8px, .74vw, 11px);
  font-weight: 720;
  letter-spacing: -.025em;
}

.demo-nfc__copy span,
.demo-nfc time {
  color: rgba(24, 33, 50, .73);
  font-size: clamp(6.7px, .61vw, 9px);
  font-weight: 520;
  letter-spacing: -.015em;
}

.demo-nfc time {
  align-self: start;
  padding-top: 1px;
}

.demo-entry,
.demo-countdown,
.demo-story {
  touch-action: pan-y;
  position: absolute;
  inset: 0;
  z-index: 6;
}

.demo-entry {
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #102020;
}

.demo-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 11, 12, .08), rgba(2, 10, 11, .22) 44%, rgba(2, 8, 8, .93));
}

.demo-entry__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
  filter: saturate(.78) contrast(1.04);
  -webkit-user-drag: none;
}

.demo-entry__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(6px, .7vw, 10px);
  width: 100%;
  padding: 12% 9% 10%;
}

.demo-entry__copy p,
.demo-entry__copy h2 {
  margin: 0;
}

.demo-entry__copy p {
  color: rgba(255, 242, 214, .84);
  font-size: clamp(6.6px, .63vw, 9.5px);
  font-weight: 680;
  letter-spacing: .14em;
}

.demo-entry__copy h2 {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.62vw, 25px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .96;
  text-wrap: balance;
}

.demo-entry__start,
.demo-story__copy button {
  justify-self: start;
  padding: .58em .92em;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  color: #13252a;
  background: rgba(249, 240, 214, .96);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .28);
  font: 680 clamp(7px, .67vw, 10px)/1 -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  letter-spacing: .005em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.demo-entry__start:active,
.demo-story__copy button:active {
  transform: scale(.98);
}

.demo-countdown {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background:
    radial-gradient(circle, rgba(228, 195, 129, .12), transparent 28%),
    linear-gradient(145deg, #0f2727, #081214 74%);
}

.demo-countdown__number {
  display: grid;
  width: clamp(52px, 5.1vw, 76px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(247, 237, 207, .62);
  border-radius: 50%;
  color: #fff4d7;
  box-shadow: 0 0 0 8px rgba(255, 246, 220, .055), 0 0 34px rgba(239, 203, 128, .17);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1;
  animation: countdown-pulse .72s ease-in-out infinite alternate;
}

.demo-countdown__label {
  color: rgba(255, 247, 225, .7);
  font-size: clamp(7px, .67vw, 10px);
  font-weight: 560;
  letter-spacing: .04em;
}

.demo-story {
  z-index: 7;
  background: #0b1515;
  --story-drag-x: 0px;
}

.demo-story__layer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 55%) minmax(0, 45%);
  overflow: hidden;
  background: #102020;
  animation: story-layer-in .36s cubic-bezier(.2, .75, .2, 1) both;
  transform: translate3d(var(--story-drag-x), 0, 0);
  transition: transform 220ms cubic-bezier(.2, .75, .2, 1);
  will-change: transform;
}

.demo-story[data-story-dragging="true"] .demo-story__layer {
  transition: none;
}

.demo-story__layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.76) contrast(1.06);
  -webkit-user-drag: none;
}

.demo-story__copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: clamp(5px, .55vw, 8px);
  padding: 9% 10% 8%;
  color: #f2ede1;
  background: linear-gradient(145deg, #163031, #0c1617 86%);
  opacity: 1;
}

.demo-story__copy p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(9px, .87vw, 13px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.13;
  text-wrap: pretty;
}

.demo-story__copy .demo-story__eyebrow {
  color: rgba(244, 221, 165, .8);
  font-family: -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  font-size: clamp(6px, .56vw, 8.5px);
  font-weight: 700;
  letter-spacing: .14em;
}

.demo-story__copy button {
  align-self: end;
  margin-top: auto;
}

.demo-story__copy .demo-story__hook {
  margin-top: 1px;
  color: #fff2ce;
  font-size: clamp(10.5px, .98vw, 14px);
  font-style: italic;
  line-height: 1.05;
}

.demo-story__copy .demo-story__ending {
  color: rgba(245, 226, 180, .7);
  font-family: -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  font-size: clamp(6.8px, .61vw, 9.5px);
  font-weight: 560;
  letter-spacing: .03em;
}

.demo-screen[data-phase="nfc"] .demo-ios-home {
  filter: blur(1.5px) brightness(.92);
  transform: scale(1.025);
}

.demo-screen[data-phase="entry"] .demo-ios-home,
.demo-screen[data-phase="countdown"] .demo-ios-home,
.demo-screen[data-phase="story"] .demo-ios-home,
.demo-screen[data-phase="entry"] .demo-ios-status,
.demo-screen[data-phase="countdown"] .demo-ios-status,
.demo-screen[data-phase="story"] .demo-ios-status {
  opacity: 0;
}

.demo-stage[data-phase="nfc"],
.demo-stage[data-phase="entry"],
.demo-stage[data-phase="countdown"],
.demo-stage[data-phase="story"] {
  --progress: 1;
}

.demo-stage[data-phase="nfc"] .demo-instruction,
.demo-stage[data-phase="entry"] .demo-instruction,
.demo-stage[data-phase="countdown"] .demo-instruction,
.demo-stage[data-phase="story"] .demo-instruction {
  opacity: 0;
}

.demo-stage[data-phase="nfc"] .demo-field::before {
  animation: detection-bloom 1.1s cubic-bezier(.2, .75, .25, 1) both;
}

.demo-stage[data-phase="nfc"] .demo-field span {
  animation: detection-ring .9s cubic-bezier(.2, .72, .25, 1) both;
}

.demo-stage[data-phase="nfc"] .demo-field span:nth-child(2) {
  animation-delay: .07s;
}

.demo-stage[data-phase="nfc"] .demo-field span:nth-child(3) {
  animation-delay: .14s;
}

@keyframes detection-bloom {
  0% { opacity: 0; transform: scale(.35); }
  42% { opacity: .68; transform: scale(1); }
  100% { opacity: .16; transform: scale(1.3); }
}

@keyframes detection-ring {
  0% { opacity: 0; transform: scale(.58); }
  32% { opacity: .82; }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes nfc-arrival {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes countdown-pulse {
  from { transform: scale(.93); opacity: .72; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes story-layer-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px), (pointer: coarse) {
  .demo-stage {
    cursor: ns-resize;
  }

  .demo-wordmark {
    left: max(22px, env(safe-area-inset-left));
    top: max(22px, env(safe-area-inset-top));
    width: clamp(132px, 38vw, 172px);
  }

  .demo-instruction {
    top: 17%;
    font-size: clamp(17px, 5vw, 21px);
  }

  .demo-backdrop--sharp {
    transform: translateY(calc(var(--progress) * -2.2vh)) scale(calc(1 + var(--progress) * .13));
  }

  .demo-phone {
    inset: 0;
    width: 100%;
    transform: none;
    cursor: inherit;
    filter: none;
    pointer-events: none;
  }

  .demo-phone__asset {
    display: none;
  }

  .demo-screen {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    pointer-events: none;
  }

  .demo-stage[data-phase="approach"] .demo-screen {
    opacity: 0;
  }

  .demo-stage[data-phase="nfc"] .demo-phone,
  .demo-stage[data-phase="entry"] .demo-phone,
  .demo-stage[data-phase="countdown"] .demo-phone,
  .demo-stage[data-phase="story"] .demo-phone,
  .demo-stage[data-phase="nfc"] .demo-screen,
  .demo-stage[data-phase="entry"] .demo-screen,
  .demo-stage[data-phase="countdown"] .demo-screen,
  .demo-stage[data-phase="story"] .demo-screen {
    pointer-events: auto;
  }

  .demo-stage[data-phase="nfc"] .demo-wordmark,
  .demo-stage[data-phase="entry"] .demo-wordmark,
  .demo-stage[data-phase="countdown"] .demo-wordmark,
  .demo-stage[data-phase="story"] .demo-wordmark,
  .demo-stage[data-phase="nfc"] .demo-back,
  .demo-stage[data-phase="entry"] .demo-back,
  .demo-stage[data-phase="countdown"] .demo-back,
  .demo-stage[data-phase="story"] .demo-back {
    opacity: 0;
    pointer-events: none;
  }

  body[data-demo-phase="nfc"] .language-picker,
  body[data-demo-phase="entry"] .language-picker,
  body[data-demo-phase="countdown"] .language-picker,
  body[data-demo-phase="story"] .language-picker {
    display: none;
  }

  .demo-ios-status {
    top: max(16px, env(safe-area-inset-top));
    right: max(24px, env(safe-area-inset-right));
    left: max(24px, env(safe-area-inset-left));
    font-size: 13px;
  }

  .demo-ios-home__icons {
    inset: 16% 11% 25%;
    gap: 6% 10%;
  }

  .demo-ios-home__dock {
    right: 11%;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 11%;
  }

  .demo-nfc {
    top: max(64px, calc(env(safe-area-inset-top) + 48px));
    right: 5%;
    left: 5%;
  }

  .demo-nfc__banner {
    min-height: 76px;
    padding: 12px;
    border-radius: 20px;
  }

  .demo-nfc__glyph {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .demo-nfc__copy strong {
    font-size: 14px;
  }

  .demo-nfc__copy span,
  .demo-nfc time {
    font-size: 12px;
  }

  .demo-entry__copy {
    padding: 15% 10% max(11%, env(safe-area-inset-bottom));
  }

  .demo-entry__copy h2 {
    font-size: clamp(30px, 9.5vw, 44px);
  }

  .demo-entry__copy p,
  .demo-countdown__label {
    font-size: 11px;
  }

  .demo-entry__start,
  .demo-story__copy button {
    font-size: 12px;
  }

  .demo-countdown__number {
    width: 94px;
    font-size: 52px;
  }

  .demo-story__layer {
    grid-template-rows: minmax(0, 57%) minmax(0, 43%);
  }

  .demo-story__copy {
    gap: 9px;
    padding: 8% 10% max(7%, env(safe-area-inset-bottom));
  }

  .demo-story__copy p {
    font-size: clamp(15px, 4.35vw, 19px);
  }

  .demo-story__copy .demo-story__eyebrow {
    font-size: 10px;
  }

  .demo-story__copy .demo-story__hook {
    font-size: clamp(18px, 5vw, 23px);
  }

  .demo-story__copy .demo-story__ending {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-backdrop,
  .demo-instruction,
  .demo-ios-home,
  .demo-ios-status,
  .demo-screen,
  .demo-nfc,
  .demo-story__layer,
  .demo-countdown__number {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
