/* Hide branded custom cursor on showcase page — it read as a stray bug.
   Also restore the system cursor on interactive chrome: main.css sets
   cursor:none on a/button/nav, so hiding .cursor alone made the pointer vanish. */
body.is-xsc-nocursor {
  cursor: auto !important;
}
body.is-xsc-nocursor .cursor {
  display: none !important;
}
body.is-xsc-nocursor a,
body.is-xsc-nocursor button,
body.is-xsc-nocursor .btn,
body.is-xsc-nocursor .nav__item,
body.is-xsc-nocursor .nav__link,
body.is-xsc-nocursor .nav__brand,
body.is-xsc-nocursor .nav__cta,
body.is-xsc-nocursor .nav__burger,
body.is-xsc-nocursor .explore__item,
body.is-xsc-nocursor .lang__btn,
body.is-xsc-nocursor .lang__option,
body.is-xsc-nocursor .cookie button,
body.is-xsc-nocursor .cookie__switch,
body.is-xsc-nocursor .cookie__switch input,
body.is-xsc-nocursor [role="button"] {
  cursor: pointer !important;
}

/* XUSOI Immersive Product Showcase */

.xsc {
  --xsc-fg: #111;
  --xsc-muted: #6a6a6a;
  --xsc-line: rgba(17, 17, 17, 0.14);
  --xsc-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --xsc-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --xsc-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --xsc-dur: 1.05s;
  --xsc-bg: #f3f2ef; /* paper / ink tone — no aurora mist */
  --xsc-mist: 0;
  --xsc-depth: 0;
  --xsc-wash: 0;
  --xsc-serif: "Newsreader", "Noto Serif TC", "Songti TC", Georgia, serif;
  --xsc-mono: "IBM Plex Mono", ui-monospace, monospace;
  position: relative;
  background: var(--xsc-bg);
  color: var(--xsc-fg);
  isolation: isolate;
  scroll-margin-top: 0.5rem;
  overflow: visible;
}

/* Flat paper field — no gradient blobs / glass / glow */
.xsc__paper {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--xsc-bg);
  opacity: 1;
}

.xsc > *:not(.xsc__paper) {
  position: relative;
  z-index: 1;
}

.xsc__intro {
  max-width: 72rem;
  margin: 0;
  padding:
    calc(var(--nav-island-top, 0.9rem) + var(--nav-h, 3.85rem) + 2.4rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(1.75rem, 4vw, 2.75rem);
  text-align: left;
  border-bottom: 1px solid var(--xsc-line);
}

.xsc__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--xsc-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--xsc-muted);
}

.xsc__intro h2 {
  margin: 0 0 0.55rem;
  font-family: var(--xsc-serif);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 12em;
}

.xsc__intro-lead {
  margin: 0;
  color: var(--xsc-muted);
  font-weight: 300;
  font-size: 0.98rem;
  max-width: 28em;
}

.xsc__index {
  margin: 0;
  font-family: var(--xsc-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--xsc-fg);
  line-height: 1;
}

/* Desktop sticky story */
.xsc__pin {
  position: relative;
}

.xsc__stage {
  /* Nav island (~0.9 + 3.85) + shadow/tilt buffer — device must clear the pill */
  --xsc-nav-clear: calc(var(--nav-island-top, 0.9rem) + var(--nav-h, 3.85rem) + 1.6rem);
  --xsc-stage-chrome: 3.4rem; /* hint / replay under device */
  position: relative;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  align-items: center;
  box-sizing: border-box;
  padding:
    var(--xsc-nav-clear)
    clamp(1.25rem, 4vw, 3.5rem)
    1.1rem;
  background: transparent;
}

.xsc__copy-col {
  position: relative;
  /* Stretch to full stage height (stage uses align-items:center otherwise) */
  align-self: stretch;
  height: 100%;
  min-height: 0;
  /* Reserve index + hairline so NT$399 block never collides (1280–1920) */
  padding-bottom: 3.75rem;
  box-sizing: border-box;
}

.xsc__copy {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  /* Leave clear air above the chapter index strip */
  bottom: 3.75rem;
  height: auto;
  max-height: calc(100% - 3.75rem);
  display: flex;
  flex-direction: column;
  /* flex-start + full-height col: title never clipped; price fits above index */
  justify-content: flex-start;
  padding-top: clamp(0.5rem, 4vh, 2.5rem);
  gap: 0.75rem;
  pointer-events: none;
  overflow: hidden;
  /* Hard swap only — never crossfade stacked titles */
}

.xsc__copy.is-active {
  pointer-events: auto;
}

.xsc__copy[hidden] {
  display: none !important;
}

.xsc__chapters {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0;
  z-index: 2;
  border-top: 1px solid var(--xsc-line);
  padding-top: 0.7rem;
  padding-bottom: 0.15rem;
  width: min(100%, 14rem);
  background: var(--xsc-bg);
}

.xsc__chapter {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--xsc-line);
  padding: 0.15rem 0.55rem 0;
  margin: 0;
  font-family: var(--xsc-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--xsc-muted);
  cursor: pointer;
  transition: color 0.35s var(--xsc-ease);
}

.xsc__chapter:first-child {
  padding-left: 0;
}

.xsc__chapter:last-child {
  border-right: 0;
}

.xsc__chapter.is-on {
  color: #111;
}

.xsc__copy [data-copy-name] {
  display: none !important;
}

.xsc__copy .xsc__index {
  margin: 0 0 0.85rem;
}

.xsc__copy [data-copy-title] {
  margin: 0;
  font-family: var(--xsc-serif);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 11.5em;
  text-wrap: balance;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: normal;
  /* Ascender breathing room so first line never looks shaved */
  padding-top: 0.08em;
}

.xsc__keep {
  white-space: nowrap;
}

.xsc__copy [data-copy-lead] {
  margin: 0.85rem 0 0;
  max-width: 26em;
  color: var(--xsc-muted);
  font-weight: 300;
  line-height: 1.65;
  font-size: 0.98rem;
}

.xsc__copy [data-copy-extra] {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--xsc-line);
  max-width: 16rem;
  flex-shrink: 0;
}

.xsc__copy [data-copy-extra] strong {
  font-family: var(--xsc-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.xsc__copy [data-copy-extra] span {
  color: var(--xsc-muted);
  font-size: 0.86rem;
}

.xsc__copy [data-copy-cta] {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0 0 0.15rem;
  border: 0;
  border-bottom: 1px solid #111;
  border-radius: 0;
  background: transparent;
  color: #111;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  transition: opacity 0.3s var(--xsc-ease);
}

.xsc__copy [data-copy-cta][hidden] {
  display: none !important;
}

.xsc__copy [data-copy-cta]:hover {
  opacity: 0.55;
}

.xsc__ui-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  gap: 0;
}

.xsc__stage-ui {
  --stage-ui-h: calc(100svh - var(--xsc-nav-clear) - var(--xsc-stage-chrome) - 1.25rem);
  position: relative;
  width: min(100%, 42rem);
  height: var(--stage-ui-h);
  max-height: var(--stage-ui-h);
  display: grid;
  place-items: center;
  overflow: visible;
  /* No scroll-scale on the device layer — fights 3D sway / Act1 reveals */
  transform: none;
}

.xsc__stage-ui > [data-xsc-panel] {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transition: opacity 0.45s var(--xsc-ease);
}

.xsc__chrome {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 1.6rem;
  max-width: 100%;
}

.xsc__hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--xsc-muted);
  letter-spacing: 0.04em;
  transition: opacity 0.3s var(--xsc-ease);
}

.xsc__hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.xsc__replay {
  appearance: none;
  border: 0;
  border-bottom: 1px solid #111;
  background: transparent;
  border-radius: 0;
  padding: 0.2rem 0;
  font-size: 0.72rem;
  font-family: var(--xsc-mono);
  letter-spacing: 0.04em;
  color: var(--xsc-fg);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 0.35s var(--xsc-ease),
    transform 0.35s var(--xsc-ease);
}

.xsc__replay.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Shared shells */
.xd-device,
.xd-phone,
.xd-desktop {
  position: relative;
  width: min(100%, 40rem);
  max-height: var(--stage-ui-h, 70svh);
  background: #fff;
  border: 1px solid var(--xsc-line);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
  overflow: hidden;
  transform-origin: center center;
}

.xd-device {
  --morph: 0;
  width: min(100%, calc(32rem - 15.5rem * var(--morph)));
  height: min(70svh, calc(26rem + 8rem * var(--morph)));
  border-radius: calc(1.15rem + 0.6rem * var(--morph));
  display: flex;
  flex-direction: column;
  transition:
    width 0.7s var(--xsc-ease),
    height 0.7s var(--xsc-ease),
    border-radius 0.7s var(--xsc-ease),
    opacity 0.5s var(--xsc-ease),
    transform 0.55s var(--xsc-ease);
}

.xd-device.is-phone,
.xd-device.xd-device--browser.is-phone {
  border-radius: 1.75rem;
}

.xd-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  background: #f3f2ef;
  flex-shrink: 0;
}

.xd-chrome__lights {
  display: none !important; /* no traffic-light dots */
}

.xd-chrome__nav {
  display: flex;
  gap: 0.15rem;
}

.xd-chrome__nav button {
  border: 0;
  background: transparent;
  color: #8a8a8e;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  pointer-events: none;
}

.xd-chrome__url {
  flex: 1;
  height: 1.45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: #3a3a3c;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.7rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.xd-chrome__url svg {
  color: #8a8a8e;
  flex-shrink: 0;
}

.xd-screen {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #fff;
}

.xd-phone {
  width: min(100%, 17rem);
  height: min(68svh, 34rem);
  border-radius: 1.85rem;
  padding: 0.55rem;
  background: #111;
}

.xd-phone__notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 4.2rem;
  height: 0.55rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #2a2a2a;
  z-index: 2;
}

.xd-phone__body {
  position: relative;
  height: 100%;
  border-radius: 1.4rem;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.xd-desktop {
  width: min(100%, 40rem);
  height: min(70svh, 32rem);
  border-radius: 1.1rem;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
}

.xd-demo-badge {
  margin: 0;
  display: inline-block;
  font-family: var(--xsc-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xsc-muted);
  border: 0;
  border-bottom: 1px solid var(--xsc-line);
  border-radius: 0;
  padding: 0 0 0.12rem;
}

/* Website demo — editorial 晨光小館 */
.xd-site {
  padding: 0;
  height: 100%;
  overflow: hidden;
  display: block;
  background: #fff;
  position: relative;
}

.xd-site__track {
  padding: 0.9rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

@media (min-width: 901px) {
  .xd-site {
    overflow: auto; /* desktop: native scroll inside laptop if needed */
  }
  .xd-site__track {
    will-change: auto;
    transform: none;
  }
}

.xd-site__nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  will-change: transform, opacity;
}

.xd-site__nav.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.7s var(--xsc-ease-soft), transform 0.85s var(--xsc-ease-soft);
}

.xd-site__nav strong {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.xd-site__nav nav {
  display: flex;
  gap: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--xsc-muted);
}

.xd-site__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 11rem;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  will-change: transform, opacity;
  /* Contain children — never spill over menu/contact */
  overflow: visible;
  min-width: 0;
}

/* DOM order is mask then copy; desktop places copy left / mask right */
.xd-site__hero-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.xd-site__hero .xd-site__mask {
  grid-column: 2;
  grid-row: 1;
}

.xd-site__hero.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.75s var(--xsc-ease-soft), transform 0.9s var(--xsc-ease-soft);
}

.xd-site__hero-copy > * {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  will-change: transform, opacity;
}

.xd-site__hero.is-in .xd-site__hero-copy > *.is-in,
.xd-site__hero-copy > *.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.7s var(--xsc-ease-soft), transform 0.85s var(--xsc-ease-soft);
}

.xd-site__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--xsc-muted);
}

.xd-site__hero h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.xd-site__lead {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  color: var(--xsc-muted);
  font-weight: 300;
  line-height: 1.55;
}

.xd-site__mask {
  border-radius: 2px;
  overflow: hidden;
  min-height: 10rem;
  background: #e8e6e2;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.985);
  will-change: transform, opacity;
}

.xd-site__mask.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 0.85s var(--xsc-ease-soft), transform 1s var(--xsc-ease-soft);
}

.xd-site__mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xd-site__cta {
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.xd-site__cta:active {
  opacity: 0.7;
}

.xd-site__section-label {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xsc-muted);
}

.xd-site__menu,
.xd-site__contact {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
  will-change: transform, opacity;
}

.xd-site__menu.is-in,
.xd-site__contact.is-in {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition: opacity 0.7s var(--xsc-ease-soft), transform 0.85s var(--xsc-ease-soft);
}

/* Instant collapse — no animated height/layout thrash during motion */
.xd-site__menu:not(.is-in),
.xd-site__contact:not(.is-in) {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.xd-site__menu.is-in,
.xd-site__contact.is-in {
  max-height: 24rem;
}

.xd-site__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--xsc-line);
}

.xd-site__menu-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--xsc-line);
  font-size: 0.78rem;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  will-change: transform, opacity;
}

.xd-site__menu-item.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.65s var(--xsc-ease-soft), transform 0.75s var(--xsc-ease-soft);
}

.xd-site__menu-item.is-in:nth-child(2) { transition-delay: 0.05s; }
.xd-site__menu-item.is-in:nth-child(3) { transition-delay: 0.1s; }

.xd-site__menu-item span:last-child {
  color: var(--xsc-muted);
  font-variant-numeric: tabular-nums;
}

.xd-site__contact p:last-child {
  margin: 0;
  font-size: 0.78rem;
  color: var(--xsc-muted);
  font-weight: 300;
  line-height: 1.5;
}

.xd-web[data-step="1"] .xd-device {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}
.xd-web[data-step="2"] .xd-device,
.xd-web[data-step="3"] .xd-device,
.xd-web[data-step="4"] .xd-device,
.xd-web[data-step="5"] .xd-device,
.xd-web[data-step="6"] .xd-device,
.xd-web[data-step="7"] .xd-device,
.xd-web[data-step="8"] .xd-device {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--xsc-ease), transform 0.55s var(--xsc-ease), width 0.7s var(--xsc-ease), height 0.7s var(--xsc-ease), border-radius 0.7s var(--xsc-ease);
}

.xd-web[data-step="3"] .xd-site__tag,
.xd-web[data-step="3"] .xd-site__copy h4,
.xd-web[data-step="4"] .xd-site__tag,
.xd-web[data-step="4"] .xd-site__copy h4,
.xd-web[data-step="5"] .xd-site__tag,
.xd-web[data-step="5"] .xd-site__copy h4,
.xd-web[data-step="6"] .xd-site__tag,
.xd-web[data-step="6"] .xd-site__copy h4,
.xd-web[data-step="7"] .xd-site__tag,
.xd-web[data-step="7"] .xd-site__copy h4,
.xd-web[data-step="8"] .xd-site__tag,
.xd-web[data-step="8"] .xd-site__copy h4 {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--xsc-ease), transform 0.5s var(--xsc-ease);
}

.xd-web[data-step="4"] .xd-site__mask,
.xd-web[data-step="5"] .xd-site__mask,
.xd-web[data-step="6"] .xd-site__mask,
.xd-web[data-step="7"] .xd-site__mask,
.xd-web[data-step="8"] .xd-site__mask {
  opacity: 1;
  transform: none;
  /* No clip-path — was a RecalcStyle / long-task source on Act 1 */
  transition: opacity 0.45s var(--xsc-ease), transform 0.55s var(--xsc-ease);
}

.xd-web[data-step="5"] .xd-site__nav,
.xd-web[data-step="5"] .xd-site__copy p,
.xd-web[data-step="5"] .xd-site__cta,
.xd-web[data-step="6"] .xd-site__nav,
.xd-web[data-step="6"] .xd-site__copy p,
.xd-web[data-step="6"] .xd-site__cta,
.xd-web[data-step="7"] .xd-site__nav,
.xd-web[data-step="7"] .xd-site__copy p,
.xd-web[data-step="7"] .xd-site__cta,
.xd-web[data-step="8"] .xd-site__nav,
.xd-web[data-step="8"] .xd-site__copy p,
.xd-web[data-step="8"] .xd-site__cta {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--xsc-ease), transform 0.45s var(--xsc-ease);
}

.xd-price {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  text-align: center;
  background: #fff;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s var(--xsc-ease), transform 0.5s var(--xsc-ease);
  z-index: 6;
  pointer-events: none;
}

.xd-screen.is-price .xd-site,
.xd-screen.is-price .xd-site * {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.xd-price.is-in {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
  background: #fff;
}

.xd-price__num {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.xd-price__plan {
  margin: 0;
  color: var(--xsc-muted);
  font-size: 0.9rem;
}

.xd-price__num {
  font-family: var(--xsc-serif);
}

.xd-price__cta {
  margin-top: 0.55rem;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.9rem;
  border-radius: 0;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
}

/* Ordering */
.xd-order,
.xd-res {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0.25rem 0;
  box-sizing: border-box;
}

.xd-order__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.35rem 0.9rem 0.45rem;
  flex-shrink: 0;
}

.xd-order__head h4 {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.xd-order__cartbtn {
  position: relative;
  border: 1px solid var(--xsc-line);
  background: #fff;
  border-radius: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
}

.xd-order__cartbtn span {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 0.95rem;
  height: 0.95rem;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 0.62rem;
  place-items: center;
  /* Hard hide when empty — avoids GSAP leftover scale painting a black dot */
  display: none;
  transform: none;
}

.xd-order__cartbtn span.is-on {
  display: grid;
  animation: none;
  opacity: 1;
}

.xd-order__cats {
  position: relative;
  display: flex;
  gap: 0;
  margin: 0 0.9rem 0.5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--xsc-line);
}

.xd-order__cat-ind {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  border-radius: 0;
  background: #111;
  z-index: 0;
  transition: transform 0.55s var(--xsc-ease-soft);
  pointer-events: none;
  transform-origin: 0 50%;
  will-change: transform;
}

.xd-order__cats button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0.35rem 0.65rem 0.45rem;
  font-size: 0.7rem;
  color: var(--xsc-muted);
  transition: color 0.35s var(--xsc-ease);
}

.xd-order__cats button:active {
  opacity: 0.7;
}

.xd-order__cats button.is-on {
  color: #fff;
}

.xd-order__list {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem 1rem;
  overflow: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.xd-dish {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--xsc-line);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  will-change: transform, opacity;
  transition:
    opacity 0.55s var(--xsc-ease),
    transform 0.62s var(--xsc-ease),
    background 0.35s var(--xsc-ease);
}

.xd-dish.is-in {
  opacity: 1;
  transform: none;
}

.xd-dish.is-pick {
  background: #f0eeea;
  transform: none;
}

.xd-dish img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0;
}

.xd-dish strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xd-dish span {
  font-size: 0.72rem;
  color: var(--xsc-muted);
}

.xd-dish__add {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 0;
  padding: 0.28rem 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}
.xd-dish__add:active,
.xd-cart__submit:active,
.xd-res__confirm:active,
.xd-order__cartbtn:active {
  opacity: 0.7;
}

.xd-cart,
.xd-sheet {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.xd-cart.is-in,
.xd-sheet.is-in {
  pointer-events: auto;
}

.xd-sheet__dim {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  opacity: 0;
  transition: opacity 0.4s var(--xsc-ease);
  pointer-events: auto;
}

.xd-sheet.is-in .xd-sheet__dim {
  opacity: 1;
}

.xd-sheet__handle {
  width: 2.2rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.18);
  margin: 0 auto 0.55rem;
}

.xd-cart__panel,
.xd-sheet__panel {
  position: relative;
  border-radius: 0;
  border: 1px solid var(--xsc-line);
  border-bottom: 0;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.65rem 0.8rem 0.9rem;
  box-shadow: none;
  will-change: transform;
}

.xd-cart__panel h5 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
}

.xd-cart__panel ul {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  font-size: 0.75rem;
}

.xd-cart__panel li {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
}

.xd-cart__sum {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
}

.xd-cart__submit {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
  min-height: 2.15rem;
  font-size: 0.76rem;
}

.xd-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  background: #fff;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s var(--xsc-ease), transform 0.45s var(--xsc-ease);
  z-index: 8;
  padding: 1rem;
  pointer-events: none;
}

/* Hide faded list behind success — clean full cover */
.xd-iphone__screen:has(.xd-success.is-in) > :not(.xd-success) {
  visibility: hidden !important;
  pointer-events: none !important;
}

.xd-success.is-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.xd-success[hidden],
.xd-cart[hidden],
.xd-price[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.xd-success__mark {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.45rem;
  display: grid;
  place-items: center;
  color: #111;
}

.xd-check {
  display: block;
}

.xd-success__mark::after {
  content: none;
}

.xd-success p {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.xd-success small {
  color: var(--xsc-muted);
  font-size: 0.72rem;
}

/* Reservation */
.xd-res__head {
  padding: 0.35rem 0.9rem 0.35rem;
  flex-shrink: 0;
}

.xd-res__head h4 {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.xd-res__block {
  padding: 0.35rem 0.85rem 0.45rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--xsc-ease), transform 0.45s var(--xsc-ease);
  flex-shrink: 0;
}

.xd-res__block.is-in {
  opacity: 1;
  transform: none;
}

.xd-res__block[hidden] {
  display: none !important;
}

.xd-res__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xsc-muted);
}

.xd-res__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.xd-res__chips button,
.xd-res__guests {
  border: 1px solid var(--xsc-line);
  background: #fff;
  border-radius: 0;
  padding: 0.38rem 0.5rem;
  font-size: 0.7rem;
}

.xd-res__chips button.is-on {
  background: #111;
  color: #fff;
  border-color: #111;
}

.xd-res__times button {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
}

.xd-res__times button.is-stagger {
  opacity: 1 !important;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.35s var(--xsc-ease), transform 0.4s var(--xsc-ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.xd-res__times button:not(.is-stagger) {
  opacity: 0 !important;
  visibility: hidden !important;
}

.xd-floor {
  position: relative;
  height: 7.5rem;
  border-radius: 0;
  background: #f0eeea;
  border: 1px solid var(--xsc-line);
}

.xd-table {
  position: absolute;
  border: 1px solid #111;
  background: #fff;
  border-radius: 0;
  font-size: 0.62rem;
  color: var(--xsc-muted);
}

.xd-table.is-on {
  background: #111;
  color: #fff;
}

/* In-flow summary — never overlays the seat map */
.xd-res__summary.xd-sheet {
  position: relative !important;
  inset: auto !important;
  display: block;
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: none !important;
  pointer-events: auto;
  z-index: 2;
}

.xd-res__summary[hidden],
.xd-res__summary:not(.is-in) {
  display: none !important;
}

.xd-res__summary .xd-sheet__dim {
  display: none !important;
}

.xd-res__summary-panel {
  position: relative !important;
  background: #fff;
  border: 0;
  border-top: 1px solid #111;
  border-radius: 0;
  padding: 0.45rem 0.75rem 0.65rem;
  box-shadow: none;
  transform: none !important;
}

.xd-res__summary .xd-sheet__handle {
  display: none;
}

.xd-res__summary-panel .xd-res__label {
  margin-bottom: 0.15rem;
}

.xd-res__summary p {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
}

.xd-res__confirm {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
  min-height: 1.9rem;
  font-size: 0.72rem;
}

/* Compact floor when summary is open so both fit */
.xd-iphone__screen:has(.xd-res__summary.is-in) .xd-floor {
  height: 5.6rem;
}

.xd-iphone__screen:has(.xd-res__summary.is-in) [data-block="seats"] {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Dashboard */
.xd-dash__side {
  padding: 0.85rem 0.7rem;
  border-right: 1px solid var(--xsc-line);
  background: #fafafa;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s var(--xsc-ease), transform 0.5s var(--xsc-ease);
  min-width: 0;
}

.xd-dash__side.is-in {
  opacity: 1;
  transform: none;
}

.xd-dash[data-step]:not([data-step="1"]) .xd-dash__side,
.xd-dash[data-step]:not([data-step="1"]) .xd-dash__ops {
  opacity: 1;
  transform: none;
}

.xd-dash__side strong {
  display: block;
  margin: 0.45rem 0 0.75rem;
  font-size: 0.72rem;
  line-height: 1.35;
}

.xd-dash__side nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.xd-dash__side button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.35rem 0.4rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  color: var(--xsc-muted);
}

.xd-dash__side button.is-on {
  background: #111;
  color: #fff;
}

.xd-dash__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.75rem 0.85rem;
}

.xd-dash__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.xd-dash__top h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.xd-dash__bell {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--xsc-line);
  background: #fff;
}

.xd-dash__bell span {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #111;
}

.xd-dash__bell span.is-ping {
  animation: xsc-ping 1.2s var(--xsc-ease) 1;
}

@keyframes xsc-ping {
  0% { transform: scale(1); }
  50% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

.xd-dash__ops {
  border: 1px solid var(--xsc-line);
  border-radius: 0.85rem;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.55rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--xsc-ease), transform 0.45s var(--xsc-ease);
}

.xd-dash__ops.is-in {
  opacity: 1;
  transform: none;
}

.xd-dash__ops > p {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--xsc-muted);
}

.xd-dash__ops ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.xd-dash__ops li {
  text-align: center;
}

.xd-dash__ops span {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
}

.xd-dash__ops small,
.xd-dash__note {
  font-size: 0.62rem;
  color: var(--xsc-muted);
}

.xd-dash__orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: auto;
}

.xd-ticket {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid var(--xsc-line);
  background: #fff;
  transform: translateY(8px);
  opacity: 0.85;
}

.xd-ticket.is-in,
.xd-dash[data-step] .xd-ticket {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--xsc-ease), transform 0.45s var(--xsc-ease), background 0.3s;
}

.xd-ticket.is-flash {
  background: #f5f5f5;
}

.xd-ticket strong {
  display: block;
  font-size: 0.75rem;
}

.xd-ticket span {
  font-size: 0.7rem;
  color: var(--xsc-muted);
}

.xd-ticket__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.xd-ticket__meta time {
  font-size: 0.65rem;
  color: var(--xsc-muted);
}

.xd-ticket__status {
  border: 1px solid var(--xsc-line);
  background: #fff;
  border-radius: 0;
  padding: 0.12rem 0.4rem;
  font-size: 0.6rem;
  font-family: var(--xsc-mono);
  letter-spacing: 0.04em;
  transition:
    background 0.45s var(--xsc-ease),
    color 0.45s var(--xsc-ease),
    border-color 0.45s var(--xsc-ease);
}

.xd-ticket[data-status="processing"] .xd-ticket__status {
  background: #111;
  color: #fff;
  border-color: #111;
}

.xd-ticket[data-status="done"] .xd-ticket__status {
  opacity: 0.55;
}

/* Mobile stacked blocks */
.xsc__mobile {
  display: none;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(3rem, 8vw, 4.5rem);
}

.xsc__mobile-block {
  /* Outer fence only — no transform here (parent transform flattens iOS 3D phone) */
  padding: 2.75rem 0 2rem;
  border-top: 1px solid var(--xsc-line);
  overflow: visible;
}

.xsc__mobile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
  margin-bottom: 1rem;
  /* Depth on copy only — keeps phone preserve-3d intact */
  transform: translate3d(0, calc(var(--xsc-block-depth, 0) * -6px), 0);
  transition: transform 0.9s var(--xsc-ease-soft);
}

.xsc__mobile-block--b .xsc__mobile-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.xsc__mobile-block--b .xsc__mobile-head .xsc__index {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.xsc__mobile-block--b .xsc__mobile-head > div {
  grid-column: 1;
  grid-row: 1;
}

.xsc__mobile-head .xsc__index {
  margin-top: 0.35rem;
  font-size: 0.72rem;
}

.xsc__mobile-block [data-copy-name] {
  display: none !important;
}

.xsc__mobile-block [data-copy-title] {
  margin: 0 0 0.45rem;
  font-family: var(--xsc-serif);
  font-size: clamp(1.45rem, 6vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: normal;
}

.xsc__mobile-block [data-copy-lead] {
  margin: 0;
  color: var(--xsc-muted);
  font-weight: 300;
  line-height: 1.55;
  font-size: 0.92rem;
}

.xsc__mobile-ui {
  /* Flex column + definite width — never shrink-wrap % phone width to 0 */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
  position: relative;
  overflow: visible; /* full device visible; block fence clips cross-section bleed */
  isolation: isolate;
}

.xsc__mobile-ui > [data-xsc-panel] {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Defeat desktop stage stacking / transition leftovers */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none;
}

@media (max-width: 900px) {
  .xsc__pin {
    display: none !important;
  }
  .xsc__mobile {
    display: block;
  }
  .xsc__mobile-block {
    position: relative;
    z-index: 0;
    /* No overflow clip — preserves CSS 3D on the phone; pad so sway can breathe */
    overflow: visible;
    padding-inline: 0.35rem;
    /* Clear sticky nav so titles aren't covered / ghosted under the pill */
    padding-top: calc(var(--nav-island-top, 0.7rem) + var(--nav-h, 3.85rem) + 0.85rem);
    scroll-margin-top: calc(var(--nav-island-top, 0.7rem) + var(--nav-h, 3.85rem) + 0.5rem);
  }
  .xsc__mobile-fence {
    /* Horizontal bleed fence OUTSIDE the 3D context */
    overflow-x: clip;
    overflow-y: visible;
    width: 100%;
  }
  .xsc__intro {
    text-align: left;
    padding-bottom: 0.5rem;
  }
}

@media (min-width: 901px) {
  .xsc__mobile {
    display: none !important;
  }
}

/* Reduced motion / static */
.xsc.is-static .xsc__copy {
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
  margin-bottom: 1.25rem;
}
.xsc.is-static .xsc__copy-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.xsc.is-static .xsc__pin {
  height: auto !important;
}
.xsc.is-static .xsc__stage {
  position: relative !important;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3rem;
}
.xsc.is-static .xsc__stage-ui {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.xsc.is-static .xsc__stage-ui > [data-xsc-panel] {
  position: relative !important;
  grid-area: auto !important;
  opacity: 1 !important;
  height: auto;
  display: grid !important;
}

.xsc.is-low-end .xd-cart__panel,
.xsc.is-low-end .xsc__replay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .xsc * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— White titanium iPhone Pro (6.1") shell (CSS 3D) —— */
/* Body 71.5×146.6mm ≈ 1:2.05 — lock aspect-ratio, never stretch with vh */
.xd-iphone {
  --phone-design-w: 100cqw;
  --phone-fit: 1;
  --phone-ar: 71.5 / 146.6;
  /* In-flow box with locked aspect — never collapse when children are absolute */
  flex: 0 0 auto;
  /* Fit stage below nav: shrink width so height stays inside --stage-ui-h */
  width: min(18.75rem, 100%, calc((var(--stage-ui-h, 70svh) - 0.5rem) * 71.5 / 146.6));
  max-width: 100%;
  aspect-ratio: var(--phone-ar);
  height: auto;
  max-height: calc(var(--stage-ui-h, 70svh) - 0.5rem);
  perspective: 1200px;
  -webkit-perspective: 1200px;
  container-type: inline-size;
  position: relative;
  /* Never overflow:hidden here — flattens preserve-3d on iOS Safari */
  overflow: visible;
}

.xd-iphone__scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  overflow: visible;
}

.xd-iphone__device {
  /* Fill the in-flow aspect box — never larger than the section fence */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform:
    rotateX(var(--phone-rx, 0deg))
    rotateY(var(--phone-ry, 0deg));
  -webkit-transform:
    rotateX(var(--phone-rx, 0deg))
    rotateY(var(--phone-ry, 0deg));
  transform-origin: center center;
  will-change: transform;
  /* Design tokens scale with the live box width (was fixed 360px + fit scale) */
  --phone-design-w: 100cqw;
  overflow: visible;
}

.xd-iphone__thickness {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* ~55pt / 393pt ≈ 14% body width */
  border-radius: calc(var(--phone-design-w) * 0.14);
  background: linear-gradient(90deg, #a8a8ae, #ececef 40%, #9c9ca2);
  /* Deeper Z so ±8° idle sway reads as a silver edge, not flat */
  transform: translateZ(-28px) scale(0.978);
  -webkit-transform: translateZ(-28px) scale(0.978);
  box-shadow:
    0 0 0 1px rgba(160, 160, 168, 0.9),
    4px 0 0 -1px rgba(120, 120, 128, 0.35),
    -4px 0 0 -1px rgba(200, 200, 208, 0.45);
  pointer-events: none;
}

/* Single flat face plane — keeps screen/bezel coplanar on iOS under rotate */
.xd-iphone__face {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Not a preserve-3d context — safe for overflow clip on bezel */
  transform-style: flat;
  -webkit-transform-style: flat;
  overflow: visible;
  border-radius: calc(var(--phone-design-w) * 0.14);
}

.xd-iphone__frame {
  position: absolute;
  inset: 0;
  /* Pro squircles — ~14% of body width */
  border-radius: inherit;
  background:
    linear-gradient(155deg, #fbfbfc 0%, #ececee 32%, #f7f7f8 58%, #d8d8dc 100%);
  box-shadow:
    0 1.5px 0 rgba(255, 255, 255, 0.98) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset,
    0 0 0 1px rgba(198, 198, 204, 0.95),
    0 28px 50px rgba(17, 17, 17, 0.11),
    0 8px 18px rgba(17, 17, 17, 0.06);
  overflow: visible;
  transform: none;
  -webkit-transform: none;
}

.xd-iphone__frame::before {
  /* polished titanium rim — silver, not black */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.25px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(198, 198, 204, 0.7) 40%,
    rgba(255, 255, 255, 0.9) 62%,
    rgba(168, 168, 174, 0.65) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.xd-iphone__bezel {
  position: absolute;
  /* Even thin bezel via equal inset; hairline via padding (not nested Z) */
  inset: calc(var(--phone-design-w) * 0.014);
  box-sizing: border-box;
  padding: 1.5px;
  border-radius: calc(var(--phone-design-w) * 0.124);
  background: #111;
  box-shadow: none;
  overflow: hidden; /* 2D face clip only — face is transform-style: flat */
}

.xd-iphone__glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--phone-design-w) * 0.118);
  background: #fff;
  overflow: hidden;
  transform: none;
  -webkit-transform: none;
  container-type: inline-size;
}

.xd-iphone__island {
  /* Pro 6.1": ~125×37pt on 393pt ≈ 31.81% width, ~11pt from top */
  position: absolute;
  z-index: 6;
  top: 2.8cqw; /* ≈11/393 of screen width */
  left: 50%;
  width: 31.81%;
  aspect-ratio: 125 / 37;
  height: auto;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0a0a0a;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08) inset;
  pointer-events: none;
}

.xd-iphone__island::after {
  /* camera hint — scaled to island */
  content: "";
  position: absolute;
  right: 12%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  height: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3548, #0b0f16 70%);
}

.xd-iphone__screen {
  position: absolute;
  inset: 0;
  /* clear island: ~11pt + 37pt on 393 ≈ 12.2cqw */
  padding-top: 12.2cqw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: inherit;
  isolation: isolate;
}

.xd-iphone__sheen {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.08) 18%,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0) 64%,
    rgba(255, 255, 255, 0.12) 100%
  );
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.xd-iphone__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 0.22rem;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  pointer-events: none;
}

.xd-iphone__rail--left {
  left: -0.14rem;
}

.xd-iphone__rail--right {
  right: -0.14rem;
}

.xd-iphone__btn {
  position: absolute;
  left: 0;
  width: 0.22rem;
  border-radius: 0.12rem;
  background: linear-gradient(90deg, #cfcfd3, #f4f4f6 45%, #bdbdc2);
  box-shadow: 0 0 0 0.3px rgba(0, 0, 0, 0.12);
}

.xd-iphone__btn--silent {
  top: 14%;
  height: 1.15rem;
}

.xd-iphone__btn--volup {
  top: 22%;
  height: 2.1rem;
}

.xd-iphone__btn--voldn {
  top: 32%;
  height: 2.1rem;
}

.xd-iphone__btn--power {
  top: 24%;
  height: 3.2rem;
  left: auto;
  right: 0;
}

/* Legacy thick phone — hide in favor of xd-iphone */
.xd-phone {
  display: none !important;
}

/* Website browser → Pro phone morph */
.xd-device.is-phone {
  border-radius: 3rem !important;
  background: linear-gradient(145deg, #f7f7f8, #e4e4e7 50%, #fafafa) !important;
  border: 0 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 28px 50px rgba(17, 17, 17, 0.14) !important;
  padding: 0.45rem;
  overflow: hidden;
}

.xd-device.is-phone .xd-chrome {
  display: none;
}

.xd-device.is-phone .xd-screen {
  border-radius: 2.5rem;
  overflow: hidden;
  background: #fff;
}

.xd-device.is-phone .xd-screen::before {
  content: "";
  position: absolute;
  z-index: 6;
  top: 0.65rem;
  left: 50%;
  width: 5.2rem;
  height: 1.4rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0a0a0a;
  pointer-events: none;
}

/* Panel hard-hide helpers */
.xsc__stage-ui > [data-xsc-panel][hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.xsc__ui-col {
  padding-bottom: 0.25rem;
}

@media (max-width: 900px) {
  .xsc__mobile-block [data-copy-title] {
    margin-bottom: 0.4rem;
    transition:
      opacity 1.05s var(--xsc-ease),
      transform 1.2s var(--xsc-ease-soft);
  }
  .xsc__mobile-block [data-copy-lead] {
    margin-bottom: 0.7rem;
    font-size: 0.92rem;
  }
  /* Do not transform .xsc__mobile-ui — parent transforms flatten iOS preserve-3d */
  .xd-iphone,
  [data-xsc-panel="reservation"] .xd-iphone {
    /* Same width every mobile phone (~72–75vw), sized so title+shell fit one screen */
    --phone-fit-h: calc(
      100svh
      - var(--nav-island-top, 0.7rem)
      - var(--nav-h, 3.85rem)
      - 11.25rem
    ); /* title + lead + gaps under sticky nav */
    width: min(72vw, calc(var(--phone-fit-h) * 71.5 / 146.6)) !important;
    max-width: 74vw;
    height: auto;
    max-height: var(--phone-fit-h);
    aspect-ratio: 71.5 / 146.6;
    flex: 0 0 auto;
    margin-inline: auto;
  }
  .xd-iphone__device {
    max-height: none !important;
  }
  .xd-laptop {
    width: min(100%, 92%);
    max-width: 100%;
    position: relative;
    margin-inline: auto;
  }
  .xsc__chapters {
    display: none;
  }
  .xsc__mobile-ui {
    overflow: visible;
    padding-bottom: 0.5rem;
  }
  /* Keep 3D ancestors free of overflow; fence is .xsc__mobile-fence only */
  .xsc__mobile-block {
    overflow: visible;
  }
  /* Mobile: keep even Pro bezel — disable desktop morph asymmetry */
  .is-xsc-mobile [data-xsc-panel="reservation"] .xd-iphone {
    width: min(72vw, calc(var(--phone-fit-h) * 71.5 / 146.6)) !important;
    transition: none;
  }
  .is-xsc-mobile [data-xsc-panel="reservation"] .xd-iphone__bezel {
    inset: calc(var(--phone-design-w) * 0.014) !important;
    border-radius: calc(var(--phone-design-w) * 0.124) !important;
    background: #111 !important;
    transition: none;
  }
  .is-xsc-mobile [data-xsc-panel="reservation"] .xd-iphone__island,
  .is-xsc-mobile [data-xsc-panel="reservation"] .xd-iphone__rail,
  .is-xsc-mobile [data-xsc-panel="reservation"] .xd-iphone__thickness,
  .is-xsc-mobile [data-xsc-panel="reservation"] .xd-iphone__sheen {
    opacity: 1 !important;
  }
  .is-xsc-mobile [data-xsc-panel="reservation"] .xd-iphone__frame {
    border-radius: calc(var(--phone-design-w) * 0.14) !important;
  }
  .is-xsc-mobile [data-xsc-panel="reservation"] .xd-iphone__glass {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    -webkit-transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xd-iphone__device {
    transform: none !important;
    transition: none !important;
  }
}


/* Prevent stray fixed pills from peeking above the nav on mobile */
@media (max-width: 900px) {
  body.is-xusoi-story .cookie,
  body.is-xusoi-story [data-cookie],
  body.is-xusoi-story .cookie-banner,
  body.is-xusoi-story .cc-banner {
    top: auto !important;
  }
}


/* —— Premium demo motion primitives —— */
.xd-ripple {
  position: absolute;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.14);
  pointer-events: none;
  z-index: 20;
  will-change: transform, opacity;
}

.xd-flychip {
  position: fixed;
  z-index: 80;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #111;
  pointer-events: none;
  will-change: transform, opacity;
}

.xd-demo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.xd-demo-cursor__dot {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #111;
}

.xd-demo-cursor__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.35);
}

.xd-dash__chart {
  margin: 0.55rem 0 0.35rem;
  display: grid;
  gap: 0.35rem;
}

.xd-dash__bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  height: 2.4rem;
  gap: 0.22rem;
}

.xd-dash__bars span {
  display: block;
  height: var(--h, 50%);
  border-radius: 0.2rem 0.2rem 0.08rem 0.08rem;
  background: #111;
  opacity: 0.78;
  transform-origin: 50% 100%;
  will-change: transform;
}

.xd-dash__spark {
  width: 100%;
  height: 2rem;
  color: #111;
  opacity: 0.7;
}

.xd-ticket {
  will-change: transform, opacity;
  transition:
    opacity 0.55s var(--xsc-ease),
    transform 0.62s var(--xsc-ease),
    background 0.4s var(--xsc-ease),
    height 0.55s var(--xsc-ease);
}

/* Phone → desktop morph: expand shell, fade Pro chrome, no leftover outline */
.xsc__stage-ui {
  --shell-morph: 0;
}

.xsc__stage-ui[data-form="desktop"] .xd-iphone,
.xsc__stage-ui[data-product="dashboard"] .xd-iphone {
  display: none !important;
}

[data-xsc-panel="reservation"] .xd-iphone {
  width: min(100%, calc(22rem + 18rem * var(--shell-morph, 0)));
  /* keep aspect; don't use vh */
  height: auto;
  transition: width 0.7s var(--xsc-ease);
}

[data-xsc-panel="reservation"] .xd-iphone__island,
[data-xsc-panel="reservation"] .xd-iphone__rail,
[data-xsc-panel="reservation"] .xd-iphone__thickness,
[data-xsc-panel="reservation"] .xd-iphone__sheen {
  opacity: calc(1 - var(--shell-morph, 0));
  transition: opacity 0.45s var(--xsc-ease);
}

[data-xsc-panel="reservation"] .xd-iphone__frame {
  border-radius: calc(var(--phone-design-w) * (0.14 - 0.08 * var(--shell-morph, 0)));
  transition: border-radius 0.7s var(--xsc-ease);
}

[data-xsc-panel="reservation"] .xd-iphone__bezel {
  inset: calc(0.18rem * (1 - var(--shell-morph, 0)));
  border-radius: calc(2.85rem - 1.75rem * var(--shell-morph, 0));
  background: color-mix(in srgb, #0a0a0a calc((1 - var(--shell-morph, 0)) * 100%), #fff);
  transition: inset 0.7s var(--xsc-ease), border-radius 0.7s var(--xsc-ease), background 0.55s var(--xsc-ease);
}

[data-xsc-panel="dashboard"] .xd-desktop {
  width: min(100%, 40rem);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
  border: 1px solid var(--xsc-line);
}

/* Website morph → Pro phone */
.xd-device.is-phone {
  width: min(100%, 20.5rem) !important;
  height: min(70svh, 41rem) !important;
}

.xd-device.is-phone .xd-screen {
  padding-top: 2.4rem;
}

.xd-skeleton {
  background: linear-gradient(90deg, #f2f2f2 0%, #fafafa 50%, #f2f2f2 100%);
  background-size: 200% 100%;
  animation: none;
}

@keyframes xd-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .xd-demo-cursor,
  .xd-flychip,
  .xd-ripple {
    display: none !important;
  }
  .xd-iphone__device {
    transform: none !important;
  }
}


/* —— White-titanium laptop / Safari frame (Act 1) —— */
.xd-web {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: 1600px;
}

.xd-laptop {
  width: min(100%, 42rem, calc(var(--stage-ui-h, 70svh) * 1.35));
  height: auto;
  max-height: var(--stage-ui-h, none);
  display: grid;
  place-items: center;
}

.xd-laptop__scene {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.xd-laptop__device {
  position: relative;
  width: min(100%, 40rem);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.xd-laptop__lid {
  position: relative;
  border-radius: 0.85rem 0.85rem 0.35rem 0.35rem;
  background:
    linear-gradient(155deg, #fbfbfc 0%, #ececee 36%, #f8f8f9 62%, #d6d6da 100%);
  padding: 0.42rem 0.42rem 0.32rem;
  box-shadow:
    0 1.5px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 0.5px rgba(160, 160, 165, 0.4),
    0 28px 50px rgba(17, 17, 17, 0.11);
}

.xd-laptop__bezel {
  position: relative;
  border-radius: 0.5rem;
  /* Match phone: silver titanium lip + hairline display edge */
  background: linear-gradient(160deg, #e8e8ea, #cfcfd3 45%, #e4e4e7);
  padding: 0.28rem 0.28rem 0.28rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.xd-laptop__camera {
  position: absolute;
  top: 0.22rem;
  left: 50%;
  width: 0.35rem;
  height: 0.35rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 2;
}

.xd-laptop .xd-device--browser {
  width: 100%;
  height: auto;
  min-height: 18rem;
  max-height: 26rem;
  border: 0;
  border-radius: 0.32rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #fff;
}

.xd-laptop__hinge {
  height: 0.35rem;
  margin: 0 4%;
  border-radius: 0 0 0.2rem 0.2rem;
  background: linear-gradient(180deg, #cfcfd3, #b8b8bd);
}

.xd-laptop__base {
  height: 0.7rem;
  margin: 0 -1.5%;
  border-radius: 0 0 0.85rem 0.85rem;
  background: linear-gradient(180deg, #ececef, #d2d2d6 70%, #c4c4c8);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.1);
  position: relative;
}

.xd-laptop__notch {
  position: absolute;
  left: 50%;
  top: 0.18rem;
  width: 18%;
  height: 0.22rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.12);
}

.xd-laptop__sheen,
.xd-device__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.1) 100%
  );
  mix-blend-mode: soft-light;
  opacity: 0.4;
  z-index: 5;
}

/* Phone morph from Act 1 disabled — Ordering owns the Pro phone shell */
.xd-laptop.is-morph-phone .xd-laptop__base,
.xd-laptop.is-morph-phone .xd-laptop__hinge,
.xd-laptop.is-morph-phone .xd-laptop__lid,
.xd-laptop.is-morph-phone .xd-laptop__bezel,
.xd-laptop.is-morph-phone .xd-device--browser {
  /* no-op: keep laptop geometry stable */
}


@media (max-width: 900px) {
  .xd-laptop {
    width: 100%;
    height: auto;
  }
  .xd-laptop .xd-device--browser {
    height: auto;
    max-height: none;
    min-height: 16rem;
  }
}


/* —— Act 1 laptop shell alignment (no morph-phone, no black slab) —— */
.xd-web {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
}

.xd-laptop {
  display: grid !important;
  place-items: center;
  width: min(100%, 42rem);
  height: auto;
  max-width: 100%;
  overflow: visible;
}

.xd-laptop__scene {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.xd-laptop__device {
  width: 100%;
  max-width: 40rem;
  position: relative;
  overflow: visible;
}

.xd-laptop__lid {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* clip bezel — prevents black slab sticking out */
}

.xd-laptop__bezel {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.xd-laptop .xd-device--browser {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: 18rem;
  max-height: 28rem;
}

.xd-laptop__hinge,
.xd-laptop__base {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

/* Never apply phone-morph on website — that caused the black offset slab */
.xd-laptop.is-morph-phone .xd-laptop__lid,
.xd-laptop.is-morph-phone .xd-laptop__bezel,
.xd-laptop.is-morph-phone .xd-device--browser {
  border-radius: inherit;
}
.xd-laptop.is-morph-phone {
  /* disabled path — keep base styles */
}

[data-xsc-panel="website"] {
  overflow: visible;
}

[data-xsc-panel="website"] .xd-iphone {
  display: none !important;
}

@media (max-width: 900px) {
  .xd-laptop {
    width: 100%;
    max-width: 100%;
  }
  .xd-laptop__device {
    max-width: 100%;
  }
  .xd-laptop .xd-device--browser {
    max-height: min(52svh, 19.5rem);
    min-height: 0;
  }
  .xd-laptop__lid {
    padding: 0.3rem 0.3rem 0.2rem;
    overflow: hidden;
  }
  .xd-laptop__bezel {
    padding: 0.3rem 0.28rem 0.28rem;
    overflow: hidden;
  }
  /*
   * Mobile Act 1: single normal-flow column inside a clipped screen.
   * Progress scrolls via translateY on .xd-site__track — zero absolute stacking.
   */
  .xd-site {
    display: block;
    overflow: hidden;
    height: min(46svh, 17.5rem);
    max-height: min(46svh, 17.5rem);
    padding: 0;
  }
  .xd-site__track {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem 0.9rem;
    /* transform driven by WebsiteDemo._applySiteScroll */
  }
  .xd-site__hero {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: auto;
    height: auto;
    gap: 0.45rem;
    align-items: stretch;
    overflow: visible;
    flex: 0 0 auto;
  }
  .xd-site__hero-copy,
  .xd-site__hero .xd-site__mask {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }
  .xd-site__mask {
    min-height: 5.25rem;
    max-height: 6.75rem;
    flex: 0 0 auto;
  }
  .xd-site__hero-copy h3 {
    font-size: 1.05rem;
  }
  .xd-site__lead {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .xd-site__nav,
  .xd-site__menu,
  .xd-site__contact {
    flex: 0 0 auto;
    position: static;
  }
  /* Always in flow on mobile — no collapse / no display:none stacking bugs */
  .xd-site__menu,
  .xd-site__contact,
  .xd-site__menu.is-in,
  .xd-site__contact.is-in {
    display: block;
    max-height: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .xd-site__menu:not(.is-in),
  .xd-site__contact:not(.is-in) {
    display: block;
    max-height: none;
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    overflow: visible;
  }
  .xd-site__menu-item,
  .xd-site__menu-item.is-in {
    opacity: 1;
    transform: none;
  }
  .xd-site__nav,
  .xd-site__nav.is-in,
  .xd-site__hero,
  .xd-site__hero.is-in,
  .xd-site__mask,
  .xd-site__mask.is-in,
  .xd-site__hero-copy > *,
  .xd-site__hero-copy > *.is-in,
  .xd-site__cta.is-in {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
}

/* Copy title entrance helpers */
.xsc__copy [data-copy-title],
.xsc__mobile-block [data-copy-title] {
  will-change: transform, opacity;
}

.xsc [data-copy-name] {
  display: none !important;
}

/* —— Showcase-23 editorial detemp overrides —— */
.xd-desktop { border-radius: 2px; }
.xd-device,
.xd-device--browser { border-radius: 2px; box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08); }
.xd-chrome__url { border-radius: 0; }
.xd-order__cats button.is-on { color: #111; }
.xd-success { transform: translate3d(0, 6px, 0); }
.xd-success.is-in { transform: none; }
.xd-skeleton { animation: none !important; }
.xd-laptop__device { will-change: transform, opacity; }
.xd-web { perspective: 1200px; }
.xd-site__cta.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .xsc__intro {
    text-align: left;
    padding-left: clamp(1.25rem, 4vw, 2rem);
    padding-right: clamp(1.25rem, 4vw, 2rem);
  }
}

/* Desktop width band: keep price clear of chapter index */
@media (min-width: 901px) and (max-width: 1920px) {
  .xsc__copy-col {
    padding-bottom: 3.85rem;
  }
  .xsc__copy {
    bottom: 3.85rem;
    max-height: calc(100% - 3.85rem);
    justify-content: flex-start;
  }
  .xsc__copy [data-copy-extra] {
    margin-bottom: 0.35rem;
  }
  .xsc__copy [data-copy-cta] {
    margin-bottom: 0.25rem;
  }
  .xsc__chapters {
    padding-top: 0.75rem;
  }
}
