* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  color: #f5f2ee;
  overflow-x: hidden;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans SC",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.opening-shell {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 20%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent 15%, transparent 85%, rgba(255, 255, 255, 0.026)),
    #000;
}

.opening-shell::before {
  content: "";
  position: absolute;
  inset: 12% 5% 14%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.095;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 48%, transparent),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08) 52%, transparent);
  filter: blur(18px);
  mix-blend-mode: screen;
}

.opening-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 20%, transparent 82%, rgba(0, 0, 0, 0.62)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 18%, transparent 74%, rgba(0, 0, 0, 0.74));
}

.gallery-space {
  position: absolute;
  inset: 0;
  perspective: 1380px;
  perspective-origin: 50% 52%;
  touch-action: pan-y;
}

.image-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-style: preserve-3d;
}

.image-card {
  appearance: none;
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(24vw, 350px);
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(245, 245, 245, 0.055);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    filter 260ms ease,
    opacity 260ms ease,
    box-shadow 260ms ease;
  will-change: transform, opacity, filter;
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 38%, rgba(0, 0, 0, 0.04));
  mix-blend-mode: screen;
}

.image-card::after {
  display: none;
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.9;
}

.image-card .image-primary {
  position: relative;
  z-index: 0;
  filter:
    brightness(var(--card-brightness, 1))
    saturate(var(--card-saturation, 1))
    contrast(var(--card-contrast, 1))
    blur(var(--card-depth-blur, 0px));
}

.image-card.is-active {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.86),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.image-card.is-active img {
  opacity: 1;
  filter: none;
}

.image-card.is-active::after {
  opacity: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.opening-brand {
  position: absolute;
  z-index: 3;
  top: clamp(22px, 4vw, 46px);
  left: clamp(18px, 4vw, 52px);
  display: grid;
  gap: 6px;
}

.opening-brand p,
.opening-brand h1 {
  margin: 0;
  letter-spacing: 0;
}

.opening-brand p {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(8, 8, 9, 0.62);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.opening-brand h1 {
  color: rgba(245, 242, 238, 0.58);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
}

.opening-meta {
  position: absolute;
  top: clamp(64px, 6.4vw, 82px);
  right: clamp(18px, 4vw, 52px);
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
  color: rgba(245, 242, 238, 0.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .opening-shell {
    min-height: 100svh;
  }

  .gallery-space {
    perspective: 920px;
    perspective-origin: 50% 52%;
  }

  .image-card {
    left: 50%;
    top: 53%;
    width: min(68vw, 280px);
  }

  .opening-brand {
    top: max(104px, calc(env(safe-area-inset-top) + 92px));
    left: 22px;
  }

  .opening-meta {
    top: max(108px, calc(env(safe-area-inset-top) + 96px));
    right: 18px;
  }
}

.printer-opening {
  --printer-bg: #f7f6f2;
  --printer-ink: #141414;
  --printer-muted: rgba(20, 20, 20, 0.48);
  --printer-paper: #f4f0e8;
  --printer-paper-line: rgba(24, 20, 15, 0.038);
  --printer-paper-edge: rgba(58, 50, 38, 0.14);
  --printer-device-top: #e3e0d8;
  --printer-device-front: #d0cec4;
  --printer-device-edge: rgba(35, 33, 28, 0.16);
  --printer-slot: #10100f;
  --printer-screen: #10100f;
  --printer-screen-ink: #f1ece3;
  --printer-orange: #ff7048;
  --printer-button-white: #efeee8;
  --printer-shadow: rgba(42, 38, 32, 0.22);
  background: var(--printer-bg);
}

body[data-opening-theme="light"] .printer-opening {
  --printer-bg: #f7f6f2;
  --printer-ink: #141414;
  --printer-muted: rgba(20, 20, 20, 0.48);
  --printer-paper: #f4f0e8;
  --printer-paper-line: rgba(24, 20, 15, 0.038);
  --printer-paper-edge: rgba(58, 50, 38, 0.14);
  --printer-device-top: #e3e0d8;
  --printer-device-front: #d0cec4;
  --printer-device-edge: rgba(35, 33, 28, 0.16);
  --printer-slot: #10100f;
  --printer-screen: #10100f;
  --printer-screen-ink: #f1ece3;
  --printer-button-white: #efeee8;
  --printer-shadow: rgba(42, 38, 32, 0.22);
}

.printer-opening::before,
.printer-opening::after,
.printer-opening .gallery-space {
  display: none;
}

.printer-demo-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: clamp(24px, 4vw, 54px);
  color: var(--printer-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.printer-topbar {
  position: absolute;
  top: 28px;
  left: 32px;
  right: 32px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.printer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.printer-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--printer-ink) 11%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--printer-bg) 86%, white 14%);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--printer-ink) 7%, transparent);
}

.printer-nav {
  display: flex;
  gap: 8px;
}

.printer-nav a {
  min-width: 64px;
  padding: 11px 15px;
  border: 1px solid color-mix(in srgb, var(--printer-ink) 11%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--printer-bg) 78%, white 14%);
  color: var(--printer-muted);
  text-align: center;
  cursor: pointer;
}

.printer-stage {
  position: relative;
  width: min(100%, 1080px);
  height: min(80vh, 760px);
  min-height: 680px;
}

.printer-stage-rendered {
  width: min(100%, 1180px);
}

.printer-stage-rendered > .printer-paper-column,
.printer-stage-rendered > .printer-device {
  display: none;
}

.printer-render-unit {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: min(100vw, 1440px);
  aspect-ratio: 1672 / 941;
  transform: translateX(-50%);
  transition:
    width 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.is-printer-zoomed .printer-render-unit {
  width: min(104vw, 1500px);
  transform: translateX(-50%) translateY(-8px);
}

.printer-render-plate {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, 0.34));
}

.printer-render-feed {
  position: absolute;
  left: 13.2%;
  top: 5.5%;
  z-index: 3;
  width: 72.6%;
  height: 58.8%;
  overflow: hidden;
  border-radius: 12px;
  background: #f0ebe2;
  box-shadow: 0 8px 20px rgba(24, 20, 14, 0.08);
  opacity: 0;
  pointer-events: none;
}

.printer-render-strip {
  position: absolute;
  inset: auto 0 auto;
  top: -49.5%;
  display: grid;
  gap: 5.2%;
  animation: printerRenderFeed 18s steps(5, end) infinite;
}

.printer-render-ticket {
  display: grid;
  height: 100%;
  gap: 2.4%;
  margin: 0;
  padding: 0;
}

.printer-render-ticket figure {
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.78;
  border-radius: 9px;
  background: #111;
}

.printer-render-ticket img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.printer-render-ticket span {
  display: block;
  height: 14px;
  color: rgba(26, 24, 20, 0.42);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.24em;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
}

.printer-render-screen {
  position: absolute;
  left: 18.4%;
  bottom: 16.7%;
  z-index: 4;
  width: 36.2%;
  height: 5.8%;
  overflow: hidden;
  border-radius: 999px;
  background: transparent;
  display: none;
}

.printer-render-screen .printer-name-track {
  animation: printerSlotNames 18s steps(5, end) infinite;
}

.printer-render-screen .printer-name-track span {
  height: 32px;
  padding: 0 18px;
  font-size: clamp(7px, 0.72vw, 10px);
  line-height: 32px;
}

.printer-render-roller {
  position: absolute;
  right: 2.7%;
  bottom: 14.2%;
  z-index: 4;
  width: 5.8%;
  aspect-ratio: 1 / 1.08;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 1px, rgba(255, 255, 255, 0.14) 1px 4px),
    linear-gradient(90deg, #b9b8b1, #676865);
  box-shadow:
    inset 7px 0 11px rgba(255, 255, 255, 0.18),
    inset -8px 0 11px rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.18);
  animation: printerRollerSpin 18s steps(20, end) infinite;
  display: none;
}

.printer-render-button {
  position: absolute;
  z-index: 5;
  width: 4.6%;
  aspect-ratio: 1;
  min-width: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
}

.printer-render-button-zoom {
  right: 24.8%;
  bottom: 17.8%;
}

.printer-render-button-pause {
  right: 19.4%;
  bottom: 17.8%;
}

.printer-render-button.printer-zoom-control,
.printer-render-button.printer-pause-control {
  background: transparent;
  box-shadow: none;
}

.printer-render-button-pause::before,
.printer-render-button-pause::after {
  display: none;
}

body.is-printer-paused .printer-render-strip,
body.is-printer-paused .printer-render-screen .printer-name-track,
body.is-printer-paused .printer-render-roller {
  animation-play-state: paused;
}

.printer-paper-column {
  position: absolute;
  left: 50%;
  bottom: 124px;
  z-index: 8;
  width: min(54vw, 690px);
  min-width: 590px;
  height: 650px;
  transform: translateX(-50%);
  transition: transform 360ms ease, width 360ms ease;
}

body.is-printer-zoomed .printer-paper-column {
  width: min(58vw, 740px);
  transform: translateX(-50%) translateY(-10px);
}

.printer-paper-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--printer-paper-edge);
  border-radius: 28px 28px 24px 24px;
  background:
    repeating-linear-gradient(180deg, transparent 0 17px, var(--printer-paper-line) 17px 18px),
    var(--printer-paper);
  box-shadow:
    0 22px 34px rgba(31, 27, 20, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.printer-paper-feed {
  position: absolute;
  left: 18px;
  right: 18px;
  top: -318px;
  display: grid;
  gap: 24px;
  animation: printerFeedPages 18s steps(5, end) infinite;
}

body.is-printer-paused .printer-paper-feed,
body.is-printer-paused .printer-name-track,
body.is-printer-paused .printer-side-roller {
  animation-play-state: paused;
}

.printer-ticket {
  display: grid;
  height: 420px;
  gap: 10px;
  align-content: start;
}

.printer-frame {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.5;
  border: 1px solid rgba(20, 18, 14, 0.08);
  border-radius: 18px;
  background: #d9d5cc;
  box-shadow: 0 10px 18px rgba(24, 20, 14, 0.08);
}

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

.printer-role {
  height: 18px;
  color: rgba(26, 24, 20, 0.42);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  line-height: 18px;
  text-align: center;
  text-transform: uppercase;
}

.printer-device {
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 12;
  width: min(60vw, 800px);
  min-width: 680px;
  height: 210px;
  transform: translateX(-50%);
}

.printer-device-shadow {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 92%;
  height: 46px;
  border-radius: 50%;
  background: var(--printer-shadow);
  filter: blur(22px);
  transform: translateX(-50%);
}

.printer-device-svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 42px var(--printer-shadow));
}

.printer-slot-mask {
  position: absolute;
  left: 62px;
  right: 62px;
  top: 76px;
  z-index: 14;
  height: 24px;
  border-radius: 0 0 999px 999px;
  background: var(--printer-slot);
  box-shadow:
    inset 0 -8px 12px rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.printer-slot-mask::before {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  top: -9px;
  height: 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(9px);
}

.printer-project-window {
  position: absolute;
  left: 96px;
  bottom: 36px;
  z-index: 16;
  width: 270px;
  height: 32px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--printer-screen);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 10px 16px rgba(255, 255, 255, 0.035);
}

.printer-project-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.62));
}

.printer-name-track {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: grid;
  animation: printerSlotNames 18s steps(5, end) infinite;
}

.printer-name-track span {
  height: 32px;
  padding: 0 20px;
  color: var(--printer-screen-ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 32px;
  text-transform: uppercase;
  white-space: nowrap;
}

.printer-side-roller {
  position: absolute;
  right: -26px;
  bottom: 70px;
  z-index: 18;
  width: 58px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 34% 50%, rgba(255, 255, 255, 0.38), transparent 0 20%, transparent 21%),
    linear-gradient(90deg, color-mix(in srgb, var(--printer-device-front) 82%, var(--printer-ink) 10%), color-mix(in srgb, var(--printer-device-front) 54%, var(--printer-ink) 18%));
  box-shadow:
    inset 8px 0 12px rgba(255, 255, 255, 0.14),
    inset -10px 0 13px rgba(0, 0, 0, 0.18),
    -8px 0 14px rgba(0, 0, 0, 0.16);
  animation: printerRollerSpin 18s steps(20, end) infinite;
}

.printer-side-roller::before {
  content: "";
  position: absolute;
  inset: 7px 11px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--printer-ink) 20%, transparent);
}

.printer-side-roller::after {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 50%;
  width: 1px;
  background: color-mix(in srgb, var(--printer-ink) 24%, transparent);
  box-shadow:
    -8px 0 0 color-mix(in srgb, var(--printer-ink) 13%, transparent),
    8px 0 0 color-mix(in srgb, var(--printer-ink) 13%, transparent);
}

.printer-button-row {
  position: absolute;
  right: 72px;
  bottom: 33px;
  z-index: 18;
  display: flex;
  gap: 12px;
}

.printer-control {
  width: 52px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  appearance: none;
  cursor: pointer;
  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.34),
    inset 0 -5px 8px rgba(0, 0, 0, 0.16),
    0 8px 16px rgba(0, 0, 0, 0.13);
  transition: transform 160ms ease, filter 160ms ease;
}

.printer-control:active {
  transform: translateY(1px) scale(0.96);
}

.printer-zoom-control {
  background: var(--printer-orange);
}

.printer-pause-control {
  position: relative;
  background: var(--printer-button-white);
}

.printer-pause-control::before,
.printer-pause-control::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.46);
}

.printer-pause-control::before {
  left: 20px;
}

.printer-pause-control::after {
  right: 20px;
}

body.is-printer-paused .printer-pause-control::before {
  left: 21px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid rgba(20, 20, 20, 0.46);
  border-radius: 0;
  background: transparent;
}

body.is-printer-paused .printer-pause-control::after {
  display: none;
}

.printer-status {
  position: absolute;
  right: 145px;
  bottom: 82px;
  z-index: 18;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54d69e;
  box-shadow: 0 0 12px rgba(84, 214, 158, 0.45);
}

.printer-statement {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 14;
  margin: 0;
  transform: translateX(-50%);
  color: var(--printer-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes printerFeedPages {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-444px);
  }
}

@keyframes printerSlotNames {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-160px);
  }
}

@keyframes printerRenderFeed {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-105.8%);
  }
}

@keyframes printerRollerSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .printer-demo-shell {
    padding: 18px;
  }

  .printer-topbar {
    left: 18px;
    right: 18px;
  }

  .printer-nav {
    display: none;
  }

  .printer-stage {
    min-height: 660px;
  }

  .printer-paper-column {
    width: 82vw;
    min-width: 0;
    height: 560px;
    bottom: 124px;
  }

  .printer-paper-feed {
    left: 13px;
    right: 13px;
    top: -282px;
  }

  .printer-ticket {
    height: 384px;
  }

  .printer-device {
    width: 92vw;
    min-width: 0;
  }

  .printer-project-window {
    left: 42px;
    width: calc(100% - 200px);
  }

  .printer-button-row {
    right: 42px;
  }

  .printer-side-roller {
    right: -18px;
  }
}

/* Mobile centerline stabilization */
@media (max-width: 760px) {
  .opening-shell {
    height: 100svh;
    min-height: 100svh;
    background: #000;
  }

  .gallery-space {
    perspective-origin: 50% 54%;
  }

  .image-card {
    top: 55%;
    width: min(70vw, 286px);
  }

  .opening-brand {
    top: max(66px, calc(env(safe-area-inset-top) + 64px));
    left: 50%;
    width: min(220px, calc(100vw - 28px));
    justify-items: center;
    text-align: center;
    transform: translateX(-50%);
  }

  .opening-brand p {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .opening-brand h1 {
    font-size: 11px;
  }

  .opening-meta {
    display: none;
  }
}

/* Mobile viewport anchoring */
@media (max-width: 760px) {
  .image-card {
    left: 50vw;
  }

  .opening-brand {
    left: 50vw;
    right: auto;
    margin: 0;
    transform: translateX(-50%);
  }
}

/* Guided opening identity center axis */
.guided-mode .opening-brand {
  top: clamp(76px, 7vw, 104px);
  left: 50%;
  width: min(260px, calc(100vw - 32px));
  justify-items: center;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 760px) {
  .guided-mode .opening-brand {
    top: max(66px, calc(env(safe-area-inset-top) + 64px));
    left: 50vw;
    width: min(220px, calc(100vw - 28px));
  }
}

/* Mobile carousel visual center correction */
@media (max-width: 760px) {
  .image-field {
    transform: translateX(min(0px, calc((100vw - 475px) / 2)));
  }
}

/* Current presentation correction */
.guided-mode .image-card {
  width: min(36vw, 525px);
}

.guided-mode .opening-brand {
  top: 22px;
  right: auto;
  left: calc(50% + 252px);
  width: 184px;
  justify-items: start;
  text-align: left;
  transform: none;
}

.guided-mode .opening-brand p {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.guided-mode .opening-brand h1 {
  width: 184px;
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .guided-mode .image-card {
    width: min(98vw, 430px);
  }

  .guided-mode .opening-brand {
    top: max(56px, calc(env(safe-area-inset-top) + 50px));
    right: auto;
    left: 50%;
    width: 180px;
    justify-items: center;
    text-align: center;
    transform: translateX(-50%);
    opacity: 0.78;
  }

  .guided-mode .opening-brand p {
    display: none;
  }

  .guided-mode .opening-brand h1 {
    width: 180px;
    font-size: 10px;
    white-space: nowrap;
  }

  .image-field {
    transform: translateX(min(-18px, calc((100vw - 475px) / 2))) !important;
  }
}

/* Responsive opening system: one center axis across desktop, tablet, and phone. */
.contact-dock {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 14px));
  left: max(20px, calc(env(safe-area-inset-left) + 18px));
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.contact-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(6, 6, 7, 0.72);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 40px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.contact-action,
.contact-detail {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.58);
  backdrop-filter: blur(18px);
}

.contact-action {
  padding: 0 12px;
}

.contact-detail {
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.guided-mode .opening-shell {
  background: #000;
}

.guided-mode .opening-shell::before {
  opacity: 0.12;
}

.guided-mode .gallery-space {
  perspective-origin: 50% 53%;
}

.guided-mode .image-field {
  transform: none !important;
}

.guided-mode .image-card {
  top: 52%;
  left: 50%;
  width: clamp(300px, 29vw, 440px);
}

.guided-mode .opening-brand {
  top: max(23px, calc(env(safe-area-inset-top) + 18px));
  right: auto;
  left: clamp(98px, 12vw, 178px);
  width: auto;
  justify-items: start;
  text-align: left;
  transform: none;
  opacity: 0.74;
}

.guided-mode .opening-brand {
  display: none;
}

.guided-mode .opening-brand p {
  display: none;
}

.guided-mode .opening-brand h1 {
  width: auto;
  color: rgba(245, 242, 238, 0.52);
  font-size: clamp(10px, 0.92vw, 12px);
  letter-spacing: 0;
}

.opening-statement,
.opening-work {
  position: absolute;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
}

.opening-statement {
  bottom: clamp(76px, 10svh, 112px);
  width: min(880px, calc(100vw - 48px));
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(9, 9, 10, 0.58);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.09),
    0 22px 70px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(22px);
}

.opening-statement p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

.opening-work {
  bottom: clamp(28px, 4.4svh, 44px);
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: min(420px, calc(100vw - 42px));
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.opening-work strong {
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 520;
  line-height: 1.1;
}

.opening-work span {
  color: rgba(255, 255, 255, 0.48);
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 650;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .contact-detail {
    display: none;
  }

  .guided-mode .opening-brand {
    left: max(92px, calc(env(safe-area-inset-left) + 88px));
  }
}

@media (max-width: 760px) {
  .contact-dock {
    top: max(10px, calc(env(safe-area-inset-top) + 8px));
    left: max(12px, calc(env(safe-area-inset-left) + 10px));
    gap: 6px;
  }

  .contact-mark {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .contact-action {
    min-height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }

  .guided-mode .opening-shell {
    height: 100svh;
    min-height: 100svh;
  }

  .guided-mode .gallery-space {
    perspective: 980px;
    perspective-origin: 50% 52%;
  }

  .guided-mode .image-card {
    top: 50.5%;
    left: 50%;
    width: min(84vw, 360px);
  }

  .guided-mode .opening-brand {
    top: max(14px, calc(env(safe-area-inset-top) + 12px));
    left: max(110px, calc(env(safe-area-inset-left) + 104px));
    width: auto;
    transform: none;
    opacity: 0.48;
  }

  .guided-mode .opening-brand h1 {
    width: auto;
    max-width: calc(100vw - 128px);
    font-size: 9px;
  }

  .opening-statement {
    bottom: max(78px, calc(env(safe-area-inset-bottom) + 76px));
    width: min(344px, calc(100vw - 32px));
    padding: 10px 14px;
  }

  .opening-statement p {
    font-size: 12px;
    line-height: 1.48;
  }

  .opening-work {
    bottom: max(26px, calc(env(safe-area-inset-bottom) + 22px));
    min-width: min(336px, calc(100vw - 32px));
  }

  .opening-work strong {
    font-size: 14px;
  }

  .opening-work span {
    font-size: 10px;
  }
}

/* 2026-05-25 opening correction: quieter slogan and denser mobile image flow. */
.opening-work {
  display: none;
}

.opening-statement {
  bottom: clamp(34px, 6svh, 70px);
  width: min(900px, calc(100vw - 52px));
  padding: 14px 24px;
}

.opening-statement p {
  font-size: clamp(14px, 1.16vw, 18px);
}

@media (max-width: 760px) {
  .contact-dock {
    top: max(8px, calc(env(safe-area-inset-top) + 8px));
    left: max(12px, calc(env(safe-area-inset-left) + 12px));
  }

  .contact-action {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11px;
  }

  .guided-mode .image-card {
    top: 49.5%;
    width: min(68vw, 286px);
  }

  .opening-statement {
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 24px));
    width: min(352px, calc(100vw - 28px));
    padding: 10px 14px;
  }

  .opening-statement p {
    font-size: 12px;
    line-height: 1.48;
  }
}

/* 2026-05-26 subtle liquid-glass pass for opening controls only. */
.contact-mark,
.contact-action,
.contact-detail,
.opening-statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025) 48%, rgba(255, 255, 255, 0.07)),
    rgba(10, 10, 12, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 14px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(168%) brightness(1.03);
  -webkit-backdrop-filter: blur(24px) saturate(168%) brightness(1.03);
}

.contact-mark::before,
.contact-action::before,
.contact-detail::before,
.opening-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.12) 36%, rgba(0, 0, 0, 0.12) 62%, rgba(255, 255, 255, 0.28));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.contact-mark::after,
.contact-action::after,
.contact-detail::after,
.opening-statement::after {
  content: "";
  position: absolute;
  inset: -34% -12% auto;
  z-index: -1;
  height: 70%;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 22% 12%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08) 36%, transparent 68%);
  filter: blur(7px);
  opacity: 0.72;
}

/* 2026-05-26 precision Liquid Glass rebuild for opening controls. */
.contact-mark,
.contact-action,
.contact-detail,
.opening-statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.03) 44%, rgba(255, 255, 255, 0.078)),
    rgba(12, 12, 14, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    inset 0 -8px 16px rgba(0, 0, 0, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(170%) brightness(1.04);
  -webkit-backdrop-filter: blur(24px) saturate(170%) brightness(1.04);
}

.contact-mark::before,
.contact-action::before,
.contact-detail::before,
.opening-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.64) 0%,
      rgba(255, 255, 255, 0.24) 18%,
      rgba(255, 255, 255, 0.055) 42%,
      rgba(0, 0, 0, 0.16) 62%,
      rgba(255, 255, 255, 0.09) 78%,
      rgba(255, 255, 255, 0.36) 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;
}

.contact-mark::after,
.contact-action::after,
.contact-detail::after,
.opening-statement::after {
  content: "";
  position: absolute;
  inset: -28% -10% auto;
  z-index: 2;
  height: 68%;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.09) 34%, transparent 66%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 42%, transparent);
  filter: blur(7px);
  opacity: 0.84;
}

.contact-mark,
.contact-action,
.contact-detail {
  color: rgba(246, 244, 238, 0.8);
  font-size: 11.5px;
  font-weight: 680;
  letter-spacing: 0;
}

.contact-action,
.contact-detail {
  min-height: 34px;
  padding: 0 13px;
}

.opening-statement {
  position: absolute;
  padding: 14px 26px;
  color: rgba(246, 244, 238, 0.88);
}

.opening-statement p {
  position: relative;
  z-index: 4;
  color: rgba(246, 244, 238, 0.86);
  font-size: clamp(14px, 1.08vw, 17px);
  font-weight: 430;
  line-height: 1.52;
}

@media (max-width: 760px) {
  .contact-mark {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .contact-action,
  .contact-detail {
    min-height: 36px;
    padding: 0 14px;
    font-size: 15px;
  }

  .opening-statement {
    width: min(352px, calc(100vw - 28px));
    padding: 11px 16px;
  }

  .opening-statement p {
    font-size: 12.5px;
    line-height: 1.46;
  }
}

/* 2026-05-26 final material correction: restrained shell, no interior gradients, 0.5px image highlights. */
.contact-mark,
.contact-action,
.contact-detail,
.opening-statement {
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.095);
  background: rgba(8, 8, 10, 0.6);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.13),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.38),
    0 14px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(148%) brightness(0.96);
  -webkit-backdrop-filter: blur(24px) saturate(148%) brightness(0.96);
}

.contact-mark::before,
.contact-action::before,
.contact-detail::before,
.opening-statement::before {
  content: "";
  position: absolute;
  top: 0.5px;
  right: 12px;
  left: 12px;
  z-index: 3;
  height: 0.5px;
  padding: 0;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22) 22%, rgba(255, 255, 255, 0.085) 62%, transparent);
  opacity: 0.86;
  -webkit-mask: none;
  mask: none;
}

.contact-mark::after,
.contact-action::after,
.contact-detail::after,
.opening-statement::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0.5px;
  left: 14px;
  z-index: 3;
  height: 0.5px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.36), transparent);
  filter: none;
  opacity: 0.54;
}

.contact-mark::before {
  right: 9px;
  left: 9px;
}

.contact-mark::after {
  right: 10px;
  left: 10px;
}

.opening-statement {
  position: absolute;
}

.opening-statement p {
  position: relative;
  z-index: 4;
}

.image-card {
  border-width: 0.5px;
  border-color: rgba(255, 255, 255, 0.034);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.02),
    0 22px 64px rgba(0, 0, 0, 0.52);
}

.image-card::before {
  content: "";
  display: block;
  position: absolute;
  top: 0.5px;
  right: 10px;
  left: 10px;
  bottom: auto;
  z-index: 1;
  height: 0.5px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.052) 24%, rgba(255, 255, 255, 0.018) 64%, transparent);
  mix-blend-mode: normal;
  opacity: 0.42;
}

/* 2026-05-26 actual final opening correction: tighter slogan, weaker text, finer image hairlines. */
.opening-statement {
  position: absolute;
  width: fit-content;
  max-width: calc(100vw - 64px);
  padding: 11px 18px;
  background: rgba(8, 8, 10, 0.6);
}

.opening-statement p {
  color: rgba(246, 244, 238, 0.68);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 380;
  line-height: 1.66;
  white-space: nowrap;
}

.image-card,
.image-card.is-active {
  border-width: 0.5px;
  border-color: rgba(255, 255, 255, 0.022);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.012),
    0 22px 62px rgba(0, 0, 0, 0.5);
}

.image-card::before {
  right: 16px;
  left: 16px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.026) 28%, rgba(255, 255, 255, 0.009) 62%, transparent);
  opacity: 0.32;
}

@media (max-width: 760px) {
  .opening-statement {
    width: fit-content;
    max-width: calc(100vw - 28px);
    padding: 10px 14px;
  }

  .opening-statement p {
    white-space: normal;
    font-size: 12px;
    line-height: 1.58;
  }
}

/* 2026-05-26 structure pass: controls use concentric radii and edge-only material. */
.contact-mark,
.contact-action,
.contact-detail,
.opening-statement {
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.038);
  background: rgba(8, 8, 10, 0.64);
  box-shadow:
    inset 0.5px 0.5px 0 rgba(255, 255, 255, 0.045),
    inset -0.5px -0.5px 0 rgba(0, 0, 0, 0.56),
    0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px) saturate(126%) brightness(0.96);
  -webkit-backdrop-filter: blur(14px) saturate(126%) brightness(0.96);
}

.contact-mark::before,
.contact-mark::after,
.contact-action::before,
.contact-action::after,
.contact-detail::before,
.contact-detail::after,
.opening-statement::before,
.opening-statement::after {
  display: none;
}

.contact-mark {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  font-size: 16px;
}

.contact-action,
.contact-detail {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  color: rgba(246, 244, 238, 0.76);
  font-size: 11.5px;
}

.opening-statement {
  border-radius: 18px;
}

.image-card,
.image-card.is-active {
  border-width: 0.5px;
  border-color: rgba(255, 255, 255, 0.012);
  box-shadow:
    inset 0.5px 0.5px 0 rgba(255, 255, 255, 0.006),
    inset -0.5px -0.5px 0 rgba(0, 0, 0, 0.18),
    0 20px 56px rgba(0, 0, 0, 0.48);
}

.image-card::before {
  right: 22px;
  left: 22px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.012) 30%, rgba(255, 255, 255, 0.004) 66%, transparent);
  opacity: 0.2;
}

@media (max-width: 760px) {
  .contact-mark {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    font-size: 17px;
  }

  .contact-action,
  .contact-detail {
    min-height: 36px;
    border-radius: 18px;
    font-size: 14px;
  }

  .opening-statement {
    border-radius: 16px;
  }
}

/* 2026-05-27 opening theme switch:
   default dark remains unchanged; light mode is scoped only to the first visual opening. */
.opening-statement {
  bottom: clamp(62px, 8.2svh, 104px);
}

.opening-theme-toggle {
  position: absolute;
  top: max(18px, calc(env(safe-area-inset-top) + 14px));
  right: max(20px, calc(env(safe-area-inset-right) + 18px));
  bottom: auto;
  left: auto;
  z-index: 6;
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 3px;
  border: 0.5px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.54);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(122%);
  -webkit-backdrop-filter: blur(12px) saturate(122%);
  transform: none;
}

.opening-theme-toggle button {
  appearance: none;
  min-width: 34px;
  height: 22px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 244, 238, 0.54);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
}

.opening-theme-toggle button[aria-pressed="true"] {
  background: rgba(238, 236, 228, 0.9);
  color: rgba(10, 10, 11, 0.94);
}

.opening-shell[data-opening-theme="light"] {
  background: #f7f6f2;
}

.opening-shell[data-opening-theme="light"]::before {
  opacity: 0.04;
  mix-blend-mode: multiply;
  background:
    linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08) 48%, transparent),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.06) 52%, transparent);
}

.opening-shell[data-opening-theme="light"]::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.64), transparent 18%, transparent 84%, rgba(255, 255, 255, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 20%, transparent 76%, rgba(255, 255, 255, 0.82));
}

.image-card.is-active,
.image-card.is-active img {
  filter: none !important;
}

.opening-shell[data-opening-theme="light"] .image-card {
  border-color: rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0.5px 0.5px 0 rgba(255, 255, 255, 0.42),
    inset -0.5px -0.5px 0 rgba(0, 0, 0, 0.08),
    0 20px 54px rgba(45, 39, 30, 0.2);
}

.opening-shell[data-opening-theme="light"] .image-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34) 30%, rgba(255, 255, 255, 0.12) 66%, transparent);
  opacity: 0.32;
}

.opening-shell[data-opening-theme="light"] .opening-statement {
  border-color: rgba(0, 0, 0, 0.045);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0.5px 0.5px 0 rgba(255, 255, 255, 0.72),
    inset -0.5px -0.5px 0 rgba(0, 0, 0, 0.08),
    0 18px 42px rgba(52, 45, 36, 0.16);
  backdrop-filter: blur(12px) saturate(116%) brightness(1.03);
  -webkit-backdrop-filter: blur(12px) saturate(116%) brightness(1.03);
}

.opening-shell[data-opening-theme="light"] .opening-statement p {
  color: rgba(24, 23, 21, 0.68);
}

.opening-shell[data-opening-theme="light"] .opening-theme-toggle {
  border-color: rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.76),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.045),
    0 10px 30px rgba(52, 45, 36, 0.12);
  backdrop-filter: blur(16px) saturate(128%) brightness(1.04);
  -webkit-backdrop-filter: blur(16px) saturate(128%) brightness(1.04);
}

.opening-shell[data-opening-theme="light"] .opening-theme-toggle button {
  color: rgba(24, 23, 21, 0.44);
}

.opening-shell[data-opening-theme="light"] .opening-theme-toggle button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.82),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.06),
    0 5px 14px rgba(42, 36, 28, 0.1);
  color: rgba(18, 18, 17, 0.86);
}

.guided-mode[data-active-chapter="overview"][data-opening-theme="light"] .contact-dock {
  color: rgba(20, 20, 19, 0.62);
}

.guided-mode[data-active-chapter="overview"][data-opening-theme="light"] .contact-mark,
.guided-mode[data-active-chapter="overview"][data-opening-theme="light"] .contact-action {
  border-color: rgba(0, 0, 0, 0.045);
  background: rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0.5px 0.5px 0 rgba(255, 255, 255, 0.78),
    inset -0.5px -0.5px 0 rgba(0, 0, 0, 0.052),
    0 12px 30px rgba(52, 45, 36, 0.12);
  color: rgba(18, 18, 17, 0.7);
  backdrop-filter: blur(16px) saturate(126%) brightness(1.04);
  -webkit-backdrop-filter: blur(16px) saturate(126%) brightness(1.04);
}

@media (max-width: 760px) {
  .opening-statement {
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 54px));
  }

  .opening-theme-toggle {
    top: max(10px, calc(env(safe-area-inset-top) + 8px));
    right: max(12px, calc(env(safe-area-inset-right) + 12px));
    bottom: auto;
  }
}

/* 2026-05-27 white opening glass lock:
   in light mode, the section nav becomes translucent glass and the black/white switch sits above every floating layer. */
.opening-theme-toggle {
  position: fixed;
  z-index: 80;
}

.guided-mode[data-active-chapter="overview"][data-opening-theme="light"] .pills {
  border-color: rgba(0, 0, 0, 0.055);
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.78),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.052),
    0 16px 38px rgba(52, 45, 36, 0.14);
  backdrop-filter: blur(18px) saturate(128%) brightness(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(128%) brightness(1.04);
}

.guided-mode[data-active-chapter="overview"][data-opening-theme="light"] .pills a {
  border-color: rgba(0, 0, 0, 0.045);
  background: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.66),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.04);
  color: rgba(22, 22, 20, 0.62);
}

.guided-mode[data-active-chapter="overview"][data-opening-theme="light"] .pills a.is-active {
  border-color: rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.82),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.07),
    0 6px 16px rgba(52, 45, 36, 0.1);
  color: rgba(12, 12, 11, 0.86);
}

/* 2026-05-28 solid opening stack:
   no transparent image glass, no white border, no occlusion layer; depth is spatial only. */
.image-card,
.image-card.is-active,
.opening-shell[data-opening-theme="light"] .image-card {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.image-card::before,
.image-card::after,
.opening-shell[data-opening-theme="light"] .image-card::before {
  display: none !important;
}

.image-card img,
.image-card.is-active img {
  opacity: 1 !important;
}

.image-card.is-active .image-primary {
  filter: none !important;
}

.guided-mode .image-card {
  width: clamp(332px, 31.5vw, 500px);
  aspect-ratio: 1.16 / 1;
  contain: layout paint style;
  backface-visibility: hidden;
}

@media (max-width: 760px) {
  .guided-mode .image-card {
    width: min(54vw, 218px);
  }
}

.image-card img {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.opening-shell.machine-opening,
.opening-shell.machine-opening[data-opening-theme="light"] {
  --machine-hero-bg: #f7f6f2;
  --machine-paper-bg: #fff;
  --machine-paper-line: rgba(24, 20, 15, 0.035);
  --machine-paper-edge: rgba(52, 46, 37, 0.13);
  --machine-paper-text: rgba(26, 24, 20, 0.42);
  --machine-top-fill-0: #f5f2eb;
  --machine-top-fill-1: #e1ded4;
  --machine-top-fill-2: #cbc7bc;
  --machine-front-stop-0: #dedbd2;
  --machine-front-stop-1: #cfcbbf;
  --machine-front-stop-2: #bab5aa;
  --machine-body-stroke: rgba(52, 48, 39, 0.16);
  --machine-top-stroke: rgba(52, 48, 39, 0.15);
  --machine-slot-line: #050505;
  min-height: 100svh;
  overflow: hidden;
  background: var(--machine-hero-bg) !important;
  color: #151515;
}

body[data-opening-theme="dark"] .opening-shell.machine-opening {
  --machine-hero-bg: #050505;
  --machine-paper-bg: #060606;
  --machine-paper-line: rgba(255, 255, 255, 0.06);
  --machine-paper-edge: rgba(255, 255, 255, 0.13);
  --machine-paper-text: rgba(255, 255, 255, 0.46);
  --machine-top-fill-0: #242424;
  --machine-top-fill-1: #171717;
  --machine-top-fill-2: #0f0f0f;
  --machine-front-stop-0: #202020;
  --machine-front-stop-1: #151515;
  --machine-front-stop-2: #0d0d0d;
  --machine-body-stroke: rgba(255, 255, 255, 0.16);
  --machine-top-stroke: rgba(255, 255, 255, 0.16);
  --machine-slot-line: #020202;
  color: #f4f1ea;
}

.opening-shell.machine-opening::before,
.opening-shell.machine-opening::after,
.machine-opening .gallery-space {
  display: none !important;
}

.machine-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: 100%;
  place-items: center;
  padding: clamp(22px, 4vw, 54px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.machine-stage {
  position: relative;
  width: min(100%, 1050px);
  height: min(78vh, 700px);
  min-height: 620px;
}

.machine-paper {
  position: absolute;
  left: 50%;
  bottom: 138px;
  z-index: 6;
  width: min(56vw, 610px);
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--machine-paper-edge);
  border-radius: 28px 28px 0 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 17px, var(--machine-paper-line) 17px 18px),
    var(--machine-paper-bg);
  box-shadow:
    0 22px 34px rgba(31, 27, 20, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transform: translateX(-50%);
}

.machine-paper::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  z-index: 4;
  height: 34px;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.13) 56%, rgba(0, 0, 0, 0.28) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.3), transparent 68%);
  filter: blur(4px);
}

.machine-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 18px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.16));
}

.machine-paper-track {
  position: absolute;
  left: 16px;
  right: 16px;
  top: -250px;
  display: grid;
  gap: 16px;
  animation: none;
}

.machine-ticket {
  display: grid;
  height: auto;
  gap: 0;
  align-content: start;
  opacity: 1;
  filter: none;
}

.machine-ticket:nth-child(2) {
  opacity: 1;
  filter: none;
}

.machine-ticket figure {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.72;
  border: 1px solid rgba(20, 18, 14, 0.08);
  border-radius: 18px;
  background: #d9d5cc;
  box-shadow: 0 10px 18px rgba(24, 20, 14, 0.08);
}

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

.machine-ticket span {
  display: none;
}

.machine-body {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 4;
  width: min(80vw, 800px);
  aspect-ratio: 900 / 260;
  transform: translateX(-50%);
  transition:
    width 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.machine-top-body {
  z-index: 5;
  pointer-events: none;
  perspective: 760px;
}

.machine-slot-body {
  z-index: 7;
  pointer-events: none;
}

.machine-front-body {
  z-index: 4;
}

.machine-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 28px rgba(36, 32, 25, 0.18));
}

.machine-top-body .machine-svg {
  filter: none;
}

.machine-front-body .machine-svg {
  filter: drop-shadow(0 24px 28px rgba(36, 32, 25, 0.18));
}

.machine-top-face {
  stroke: var(--machine-top-stroke);
  stroke-width: 1;
}

.machine-recess {
  stroke: rgba(55, 51, 42, 0.07);
  stroke-width: 1;
}

.machine-front-face {
  stroke: var(--machine-body-stroke);
  stroke-width: 1;
}

.machine-body-edge {
  stroke: rgba(42, 38, 31, 0);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.machine-control {
  position: absolute;
  z-index: 8;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.opening-shell.printer-opening::before,
.opening-shell.printer-opening::after,
.opening-shell.printer-opening .gallery-space {
  display: none !important;
}

.opening-shell.printer-opening[data-opening-theme="light"] {
  background: var(--printer-bg);
}

body.is-printer-paused .printer-render-button-pause::before,
body.is-printer-paused .printer-render-button-pause::after {
  display: none;
}

body[data-opening-theme="light"] .opening-shell.printer-opening {
  background: #f7f6f2;
}

.opening-shell.printer-opening {
  background: var(--machine-hero-bg, #fff) !important;
}

@media (max-width: 760px) {
  .printer-opening {
    overflow: hidden;
  }

  .printer-stage {
    width: 100%;
  }

  .printer-paper-column {
    width: min(86vw, 390px);
  }

  .printer-device {
    width: 100%;
  }

  .printer-project-window {
    left: 38px;
    width: calc(100% - 280px);
    min-width: 132px;
  }

  .printer-button-row {
    right: 110px;
  }

  .printer-control {
    width: 46px;
  }

  .printer-render-unit {
    bottom: 96px;
    width: 150vw;
  }
}

/* 2026-06-18 machine rebuild: one proportional system tied to the portfolio width. */
body.guided-mode.continuous-mode .opening-shell.machine-opening,
.opening-shell.machine-opening {
  --machine-unit-width: min(
    var(--site-max, 1240px),
    calc(100vw - var(--site-gutter, clamp(40px, 6vw, 96px)) * 2),
    calc((100svh - 76px) * 1.62)
  );
  --machine-paper-ratio: 0.58;
  --machine-paper-min: 230px;
  --machine-paper-max: 860px;
  --machine-body-bottom: clamp(28px, 4svh, 52px);
  --machine-paper-side: clamp(16px, 2.1vw, 28px);
  --machine-ticket-gap: clamp(14px, 1.6vw, 22px);
  --machine-ticket-aspect: 2.36;
  --machine-paper-window-cards: 2.35;
  --machine-slot-shadow-left: 16%;
  --machine-slot-shadow-width: 68%;
  --machine-control-size: clamp(12px, 3.66vw, 44px);
  --machine-track-y: 0px;
  min-height: clamp(760px, 96svh, 940px) !important;
}

.opening-shell.machine-opening .machine-shell {
  min-height: auto;
  padding: clamp(74px, 9svh, 98px) var(--site-gutter, clamp(40px, 6vw, 96px)) clamp(18px, 3.4svh, 38px);
  place-items: start center;
}

.opening-shell.machine-opening .machine-stage {
  width: var(--machine-unit-width);
  max-width: var(--machine-unit-width);
  height: min(86svh, calc(var(--machine-unit-width) * 0.75), 850px);
  min-height: min(620px, 82svh);
}

@media (min-width: 761px) {
  .opening-shell.machine-opening .machine-shell {
    padding-top: clamp(122px, 14svh, 142px);
  }
}

.opening-shell.machine-opening .machine-body {
  width: 100%;
  bottom: var(--machine-body-bottom);
  transition: none;
}

.opening-shell.machine-opening .machine-paper {
  z-index: 9;
  bottom: var(--machine-paper-bottom);
  width: var(--machine-paper-width);
  height: var(--machine-paper-height);
  overflow: hidden;
  border-radius: clamp(24px, 2.9vw, 36px) clamp(24px, 2.9vw, 36px) 0 0;
  opacity: 1;
  transform: translateX(-50%) translateZ(0);
  transition: opacity 260ms ease;
  will-change: height, bottom;
}

.opening-shell.machine-opening .machine-paper.is-machine-loading {
  opacity: 0;
}

.opening-shell.machine-opening .machine-paper::before {
  display: none;
}

.opening-shell.machine-opening .machine-paper::after {
  display: none;
}

.opening-shell.machine-opening .machine-paper-track {
  left: var(--machine-paper-side);
  right: var(--machine-paper-side);
  top: 0;
  gap: var(--machine-ticket-gap);
  transform: translate3d(0, var(--machine-track-y), 0);
  will-change: transform;
}

.opening-shell.machine-opening .machine-ticket figure {
  aspect-ratio: var(--machine-ticket-aspect, 1.72);
  border-radius: clamp(16px, 2vw, 24px);
  border: 0.5px solid rgba(20, 18, 14, 0.055);
  box-shadow: 0 8px 16px rgba(24, 20, 14, 0.06);
}

body[data-opening-theme="dark"] .opening-shell.machine-opening .machine-ticket figure {
  border-color: rgba(255, 255, 255, 0.07);
}

.opening-shell.machine-opening .machine-slot-body {
  z-index: 12;
}

.opening-shell.machine-opening .machine-top-body {
  z-index: 8;
}

.opening-shell.machine-opening .machine-front-body {
  z-index: 5;
}

.opening-shell.machine-opening .machine-control {
  position: absolute;
  z-index: 12;
  width: var(--machine-control-size);
  height: var(--machine-control-size);
  border: 1px solid rgba(0, 0, 0, 0.17);
  border-radius: 999px;
  appearance: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.56),
    inset 0 -3px 5px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(34, 31, 24, 0.18);
  transform: translate(-50%, -50%);
  transition:
    transform 160ms cubic-bezier(0.2, 0.86, 0.22, 1),
    box-shadow 160ms ease,
    filter 160ms ease;
}

.opening-shell.machine-opening .machine-control-prev {
  left: 72%;
  top: 73%;
  background: #ff714b;
}

.opening-shell.machine-opening .machine-control-next {
  left: 80%;
  top: 73%;
  background: #efeee8;
}

.opening-shell.machine-opening .machine-recess {
  opacity: 0;
}

.opening-shell.machine-opening .machine-slot-body::before {
  content: "";
  position: absolute;
  left: var(--machine-slot-shadow-left);
  top: calc(51.666% - 38px);
  z-index: 1;
  width: var(--machine-slot-shadow-width);
  height: 48px;
  border-radius: 999px;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.13) 42%, rgba(0, 0, 0, 0.32) 100%);
  filter: blur(4.4px);
}

.opening-shell.machine-opening .machine-slot-body .machine-svg {
  z-index: 2;
}

.opening-shell.machine-opening .machine-control:hover {
  transform: translate(-50%, -50%) scale(1.035);
  filter: brightness(1.02);
}

.opening-shell.machine-opening .machine-control:active {
  box-shadow:
    inset 0 4px 7px rgba(0, 0, 0, 0.2),
    inset 0 -1px 2px rgba(255, 255, 255, 0.32),
    0 4px 9px rgba(34, 31, 24, 0.14);
  transform: translate(-50%, -45%) scale(0.94);
}

body[data-opening-theme="dark"] .opening-shell.machine-opening .machine-control-prev {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.26),
    inset 0 -3px 5px rgba(0, 0, 0, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.34);
}

body[data-opening-theme="dark"] .opening-shell.machine-opening .machine-control-next {
  border-color: rgba(255, 255, 255, 0.18);
  background: #e9e8e2;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    inset 0 -3px 5px rgba(0, 0, 0, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.34);
}

@media (max-width: 760px) {
  body.guided-mode.continuous-mode .opening-shell.machine-opening,
  .opening-shell.machine-opening {
    --machine-unit-width: min(100%, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    --machine-paper-ratio: 0.72;
    --machine-paper-min: 220px;
    --machine-paper-max: 372px;
    --machine-body-bottom: clamp(54px, 7.4svh, 68px);
    --machine-paper-side: clamp(10px, 3.1vw, 13px);
    --machine-ticket-gap: clamp(10px, 3vw, 12px);
    --machine-ticket-aspect: 1.72;
    --machine-paper-window-cards: 3.05;
    --machine-control-size: clamp(10px, 3.66vw, 18px);
    min-height: 760px !important;
  }

  .opening-shell.machine-opening .machine-shell {
    padding: max(100px, calc(env(safe-area-inset-top) + 94px)) 12px 14px;
  }

  .opening-shell.machine-opening .machine-stage {
    height: min(72svh, 640px);
    min-height: 610px;
  }

  .opening-shell.machine-opening .machine-control-prev {
    left: 72%;
  }

  .opening-shell.machine-opening .machine-control-next {
    left: 82%;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body.guided-mode.continuous-mode .opening-shell.machine-opening,
  .opening-shell.machine-opening {
    --machine-paper-ratio: 0.69;
    --machine-ticket-aspect: 2.05;
    --machine-paper-window-cards: 2.25;
    --machine-paper-max: 620px;
    --machine-body-bottom: clamp(52px, 6svh, 70px);
  }

  .opening-shell.machine-opening .machine-stage {
    height: min(82svh, 760px);
  }

  .opening-shell.machine-opening .machine-shell {
    padding-top: clamp(150px, 17svh, 178px);
  }
}

@media (min-width: 761px) and (max-width: 980px) and (max-height: 820px) {
  body.guided-mode.continuous-mode .opening-shell.machine-opening,
  .opening-shell.machine-opening {
    min-height: 100svh !important;
  }

  .opening-shell.machine-opening .machine-shell {
    padding-top: clamp(164px, 24svh, 188px);
  }
}
