:root {
  --studio-black: #050505;
  --studio-ink: #11100e;
  --studio-paper: #f2efe6;
  --studio-white: #fffdf7;
  --studio-cobalt: #214bff;
  --studio-orange: #ff5a1f;
  --studio-blue-dark: #071a48;
  --studio-line: rgba(17, 16, 14, 0.22);
  --studio-ease: cubic-bezier(0.2, 0.78, 0.22, 1);
}

.scene-portal-page {
  background: var(--studio-black);
  color: var(--studio-white);
}

.scene-portal-page img[hidden] {
  display: none !important;
}

.scene-portal-page .site-header {
  background: rgba(5, 5, 5, 0.86);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.scene-portal-page .brand-mark {
  border-radius: 0;
  background: var(--studio-cobalt);
  box-shadow: none;
}

.scene-portal-page .brand-mark::before,
.scene-portal-page .brand-mark::after,
.scene-portal-page .brand-mark i {
  background: var(--studio-white);
}

.ynt-home {
  position: relative;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  background: var(--studio-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  isolation: isolate;
}

.ynt-home-frame {
  position: relative;
  width: min(100%, 1600px);
  min-height: calc(100svh - 76px);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 112px) clamp(24px, 5vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 6vw, 110px);
}

.ynt-home-identity {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.ynt-home-kicker,
.work-portal-kicker,
.work-kind,
.work-layout-status,
.ynt-home-process,
.ynt-home-coordinate {
  margin: 0;
  font: 800 0.72rem/1.3 Consolas, "Courier New", monospace;
  letter-spacing: 0.18em;
}

.ynt-home-kicker {
  color: var(--studio-orange);
}

.ynt-home-title {
  margin: clamp(22px, 4vh, 52px) 0 0;
  color: var(--studio-white);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(5rem, 12vw, 12.5rem);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.095em;
  text-transform: uppercase;
}

.ynt-home-title span {
  display: block;
}

.ynt-home-title span:last-child {
  color: var(--studio-cobalt);
  transform: translateX(clamp(14px, 3vw, 54px));
}

.ynt-home-statement {
  max-width: 550px;
  margin: clamp(34px, 6vh, 70px) 0 0;
  color: rgba(255, 253, 247, 0.72);
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  line-height: 1.45;
}

.ynt-home-statement strong {
  color: var(--studio-white);
  font-weight: 800;
}

.ynt-home-lede {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(255, 253, 247, 0.64);
  font-size: clamp(0.88rem, 1.1vw, 1.02rem);
  line-height: 1.9;
}

.ynt-home-enter {
  width: min(100%, 440px);
  min-height: 76px;
  margin-top: clamp(30px, 5vh, 56px);
  padding: 14px 18px 14px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  border: 2px solid var(--studio-white);
  color: var(--studio-white);
  background: transparent;
  text-decoration: none;
  transition: color 180ms var(--studio-ease), background-color 180ms var(--studio-ease), transform 180ms var(--studio-ease);
}

.ynt-home-enter > span {
  font: 900 0.84rem/1.2 Consolas, "Courier New", monospace;
  letter-spacing: 0.13em;
}

.ynt-home-enter > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 2rem;
}

.ynt-home-enter > small {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ynt-home-enter:hover,
.ynt-home-enter:focus-visible {
  color: var(--studio-ink);
  background: var(--studio-white);
  transform: translateY(-3px);
}

.ynt-home-enter:focus-visible {
  outline: 4px solid var(--studio-orange);
  outline-offset: 4px;
}

.ynt-home-materials {
  position: relative;
  min-height: clamp(520px, 66vh, 790px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0b0b0b;
  overflow: hidden;
  isolation: isolate;
}

.ynt-home-materials::before,
.ynt-home-materials::after {
  content: "";
  position: absolute;
  z-index: 8;
  pointer-events: none;
}

.ynt-home-materials::before {
  inset: 8% 7%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ynt-home-materials::after {
  width: 24%;
  height: 5px;
  right: 5%;
  bottom: 6%;
  background: var(--studio-orange);
}

.ynt-home-specimen {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #111;
}

.ynt-home-specimen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ynt-home-specimen--map {
  width: 68%;
  height: 45%;
  right: -7%;
  top: 5%;
  opacity: 0.72;
}

.ynt-home-specimen--rover {
  z-index: 4;
  width: 49%;
  height: 58%;
  left: 5%;
  bottom: -8%;
  border: 0;
  background: transparent;
}

.ynt-home-specimen--rover img {
  object-fit: contain;
  object-position: center bottom;
}

.ynt-home-specimen--instrument {
  width: 48%;
  height: 29%;
  right: 3%;
  bottom: 9%;
  mix-blend-mode: screen;
  opacity: 0.78;
}

.ynt-home-specimen--workstation {
  width: 47%;
  height: 30%;
  left: 13%;
  top: 19%;
  border: 5px solid var(--studio-paper);
  transform: rotate(-3deg);
}

.ynt-home-specimen--blueprint {
  z-index: 5;
  width: 42%;
  height: 28%;
  right: 11%;
  top: 39%;
  border: 6px solid var(--studio-paper);
  transform: rotate(4deg);
}

.ynt-home-process {
  position: absolute;
  z-index: 9;
  left: 5%;
  top: 5%;
  padding: 10px 12px;
  color: var(--studio-ink);
  background: var(--studio-orange);
}

.ynt-home-coordinate {
  position: absolute;
  right: clamp(24px, 5vw, 84px);
  bottom: 18px;
  color: rgba(255, 255, 255, 0.45);
}

.work-portal {
  position: relative;
  scroll-margin-top: 76px;
  color: var(--studio-ink);
  background: var(--studio-paper);
  border-bottom: 1px solid var(--studio-line);
}

.work-portal-shell {
  width: min(100%, 1580px);
  margin-inline: auto;
  padding: clamp(62px, 6vw, 92px) clamp(18px, 4.5vw, 72px) clamp(80px, 10vw, 154px);
}

.work-portal-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.68fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 58px);
}

.work-portal-kicker {
  color: var(--studio-cobalt);
}

.work-portal-header h2 {
  max-width: 900px;
  margin: 22px 0 0;
  font-family: Arial, "Helvetica Neue", "Noto Sans JP", sans-serif;
  font-size: clamp(3.5rem, 6.2vw, 5.8rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.075em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.work-portal-header h2 span {
  display: block;
  white-space: nowrap;
}

.work-portal-intro > p:first-child {
  margin: 0;
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  line-height: 1.9;
}

.all-works {
  scroll-margin-top: 76px;
  padding-top: clamp(80px, 9vw, 136px);
}

.work-layout-status {
  display: inline-flex;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 14px;
  align-items: center;
  color: var(--studio-white);
  background: var(--studio-ink);
}

.works-frame {
  position: relative;
  min-width: 0;
  container-name: works-frame;
  container-type: inline-size;
}

.works-frame-probe {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(22rem, calc(100svh - 8rem), 64rem);
  visibility: hidden;
  pointer-events: none;
}

.work-collection {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 108px;
  gap: 18px;
}

.work-item {
  min-width: 0;
  grid-column: var(--slot-column, auto) / span var(--slot-width, 4);
  grid-row: var(--slot-row, auto) / span var(--slot-height, 2);
  padding: 8px;
}

.work-node {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  color: var(--node-ink, var(--studio-ink));
  background: var(--node-bg, var(--studio-white));
  transform: translate(var(--seed-offset-x, 0), var(--seed-offset-y, 0)) rotate(var(--seed-rotation, 0deg));
  transform-origin: center;
  transition: transform 240ms var(--studio-ease), opacity 180ms var(--studio-ease);
}

.work-node-surface {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(190px, 0.64fr);
  border: 2px solid var(--node-border, var(--studio-ink));
  background: var(--node-bg, var(--studio-white));
  overflow: hidden;
}

.work-item[data-recency-tier="anchor"] .work-node-surface {
  grid-template-columns: minmax(0, 1.28fr) minmax(240px, 0.72fr);
  border-width: 3px;
}

.work-item[data-recency-tier="primary"] .work-node-surface {
  grid-template-columns: minmax(0, 0.88fr) minmax(180px, 0.72fr);
}

.work-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--visual-bg, #111);
  isolation: isolate;
}

.work-visual::after {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 12px;
  border: 1px solid var(--visual-line, rgba(255, 255, 255, 0.36));
  pointer-events: none;
}

.work-visual-layer {
  position: absolute;
  margin: 0;
  overflow: hidden;
}

.work-visual-layer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.work-visual-layer.is-image-missing {
  background: currentColor;
  opacity: 0.12;
}

.work-visual-code {
  position: absolute;
  z-index: 12;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--visual-copy, var(--studio-white));
  font-family: Arial, "Helvetica Neue", "Noto Sans JP", sans-serif;
  text-transform: uppercase;
}

.work-visual-code span,
.work-visual-code small {
  font: 800 0.58rem/1.2 Consolas, "Courier New", monospace;
  letter-spacing: 0.13em;
}

.work-visual-code strong {
  font-size: clamp(2.1rem, 4.8cqw, 5.8rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.work-copy {
  position: relative;
  z-index: 14;
  min-width: 0;
  padding: clamp(16px, 2.4cqw, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--node-bg, var(--studio-white));
}

.work-kind {
  color: var(--node-accent, var(--studio-cobalt));
}

.work-copy h3 {
  max-width: 100%;
  margin: auto 0 0;
  color: inherit;
  font-family: Arial, "Helvetica Neue", "Noto Sans JP", sans-serif;
  font-size: clamp(1.5rem, 2.4cqw, 3.15rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.work-item[data-recency-tier="anchor"] .work-copy h3 {
  font-size: clamp(2.6rem, 3.8cqw, 5rem);
  overflow-wrap: normal;
}

.work-descriptor {
  max-width: 34ch;
  margin: 12px 0 0;
  font-size: clamp(0.74rem, 0.96cqw, 0.96rem);
  font-weight: 800;
  line-height: 1.55;
}

.work-description {
  max-width: 48ch;
  margin: 16px 0 0;
  color: var(--node-muted, rgba(17, 16, 14, 0.7));
  font-size: 0.92rem;
  line-height: 1.8;
}

.work-status {
  min-height: 30px;
  margin: 16px 0 0;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  color: inherit;
  font: 800 0.66rem/1 Consolas, "Courier New", monospace;
  letter-spacing: 0.08em;
}

.work-status--preview {
  color: var(--studio-orange);
}

.work-cta {
  min-height: 48px;
  margin-top: 20px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 2px solid currentColor;
  color: inherit;
  background: transparent;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
}

.work-cta:hover,
.work-cta:focus-visible {
  color: var(--studio-white);
  background: var(--studio-cobalt);
  border-color: var(--studio-cobalt);
}

.work-cta:focus-visible {
  outline: 3px solid var(--studio-orange);
  outline-offset: 3px;
}

.work-node--field-note {
  --node-bg: #eee8da;
  --node-ink: #17140f;
  --node-border: #17140f;
  --node-accent: #d84917;
  --visual-bg: #1e43bc;
  --visual-copy: #fff9e9;
}

.work-node--instrument {
  --node-bg: #071a48;
  --node-ink: #f7f4e9;
  --node-border: #ff5a1f;
  --node-accent: #ff6b35;
  --node-muted: rgba(247, 244, 233, 0.68);
  --visual-bg: #060d21;
  --visual-copy: #ff6330;
}

.work-node--product-fragment {
  --node-bg: #fffdf7;
  --node-ink: #11100e;
  --node-border: #11100e;
  --node-accent: #214bff;
  --visual-bg: #e8e3d8;
  --visual-copy: #11100e;
  --visual-line: rgba(17, 16, 14, 0.38);
}

.work-node--poster {
  --node-bg: #ff5a1f;
  --node-ink: #11100e;
  --node-border: #11100e;
  --node-accent: #11100e;
  --visual-bg: #07164d;
  --visual-copy: #fffdf7;
}

.work-node--map {
  --node-bg: #050505;
  --node-ink: #fffdf7;
  --node-border: #214bff;
  --node-accent: #ff5a1f;
  --node-muted: rgba(255, 253, 247, 0.68);
  --visual-bg: #07164d;
  --visual-copy: #fffdf7;
}

.work-visual--trace {
  background: #214bff;
}

.work-visual-layer--trace-sheet {
  width: 76%;
  height: 74%;
  right: -3%;
  top: 8%;
  border: 7px solid #f3eee2;
  transform: rotate(3deg);
}

.work-visual-layer--trace-checklist {
  z-index: 3;
  width: 37%;
  height: 68%;
  left: 5%;
  bottom: -8%;
  border: 6px solid #f3eee2;
  transform: rotate(-6deg);
}

.work-visual--trace .work-visual-code {
  left: 7%;
  top: 7%;
}

.work-visual--trace .work-visual-code strong {
  color: var(--studio-orange);
}

.work-visual-layer--bdm-screen {
  width: 92%;
  height: 70%;
  left: 4%;
  top: 6%;
  opacity: 0.72;
}

.work-visual-layer--bdm-pad {
  z-index: 4;
  width: 76%;
  height: 76%;
  right: -12%;
  bottom: -16%;
}

.work-visual-layer--bdm-pad img {
  object-fit: contain;
}

.work-visual--bdm .work-visual-code {
  left: 7%;
  bottom: 7%;
}

.work-visual--bdm .work-visual-code strong {
  color: var(--studio-orange);
}

.work-visual-layer--toolish-screen {
  width: 88%;
  height: 74%;
  left: 6%;
  top: 13%;
  border: 5px solid #11100e;
  filter: grayscale(0.18) contrast(1.05);
}

.work-visual--toolish .work-visual-code {
  left: 4%;
  top: 6%;
  color: #11100e;
}

.work-visual--toolish .work-visual-code strong {
  color: var(--studio-cobalt);
}

.work-visual-layer--sorahoshi-backdrop,
.work-visual-layer--sorahoshi-ground,
.work-visual-layer--sorahoshi-rover {
  inset: 0;
}

.work-visual-layer--sorahoshi-ground,
.work-visual-layer--sorahoshi-rover {
  z-index: 2;
}

.work-visual-layer--sorahoshi-rover {
  z-index: 3;
}

.work-visual--sorahoshi .work-visual-code {
  z-index: 7;
  left: 6%;
  top: 7%;
}

.work-visual--sorahoshi .work-visual-code strong {
  max-width: 6ch;
  color: var(--studio-white);
  font-size: clamp(2rem, 4.1cqw, 5.2rem);
}

.work-visual-layer--navi-map {
  inset: 0;
  opacity: 0.8;
}

.work-visual-layer--navi-screen {
  z-index: 3;
  width: 72%;
  height: 58%;
  right: -6%;
  bottom: 6%;
  border: 5px solid var(--studio-white);
  transform: rotate(2deg);
}

.work-visual--navi .work-visual-code {
  z-index: 6;
  left: 6%;
  top: 7%;
}

.work-visual--navi .work-visual-code strong {
  color: var(--studio-orange);
  font-size: clamp(1.9rem, 3.8cqw, 4.8rem);
  text-transform: none;
}

.works-frame[data-layout-mode="compact"] .work-collection {
  grid-auto-rows: 102px;
  gap: 14px;
}

.works-frame[data-layout-mode="compact"] .work-item {
  padding: 6px;
}

.works-frame[data-layout-mode="compact"] .work-node {
  --seed-offset-x: clamp(-3px, var(--seed-offset-x-compact, 0px), 3px);
  --seed-offset-y: clamp(-3px, var(--seed-offset-y-compact, 0px), 3px);
  --seed-rotation: clamp(-0.45deg, var(--seed-rotation-compact, 0deg), 0.45deg);
}

.works-frame[data-layout-mode="compact"] .work-copy {
  padding: clamp(14px, 1.7cqw, 24px);
}

.works-frame[data-layout-mode="compact"] .work-copy h3 {
  font-size: clamp(1.45rem, 2.2cqw, 2.7rem);
}

.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="anchor"] .work-copy h3 {
  font-size: clamp(2.3rem, 3.6cqw, 4.4rem);
}

.works-frame[data-layout-mode="mosaic"] .work-collection {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 16px;
}

.works-frame[data-layout-mode="mosaic"] .work-item {
  grid-column: auto;
  grid-row: auto;
  min-height: 270px;
  padding: 0;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="anchor"] {
  grid-column: 1 / -1;
  min-height: 420px;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="primary"] {
  min-height: 330px;
}

.works-frame[data-layout-mode="mosaic"] .work-node {
  transform: none;
}

.works-frame[data-layout-mode="mosaic"] .work-node-surface,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="anchor"] .work-node-surface,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="primary"] .work-node-surface {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(150px, 1.1fr) auto;
}

.works-frame[data-layout-mode="mosaic"] .work-copy {
  min-height: 140px;
  padding: 18px;
}

.works-frame[data-layout-mode="mosaic"] .work-copy h3,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="anchor"] .work-copy h3 {
  margin-top: 26px;
  font-size: clamp(1.8rem, 6cqw, 3.6rem);
}

.works-frame[data-layout-mode="mosaic"] .work-descriptor {
  max-width: none;
  font-size: 0.82rem;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mosaic-variant="1"]:not([data-recency-tier="anchor"]) {
  min-height: 292px;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mosaic-variant="2"]:not([data-recency-tier="anchor"]) {
  min-height: 314px;
}

.works-frame[data-layout-mode][data-layout-fallback] .work-collection {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.works-frame[data-layout-fallback] .work-item {
  grid-column: auto;
  grid-row: auto;
  min-height: 430px;
  padding: 0;
}

.works-frame[data-layout-fallback] .work-node {
  transform: none;
}

.works-frame[data-layout-fallback] .work-node-surface,
.works-frame[data-layout-fallback] .work-item[data-recency-tier] .work-node-surface {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(220px, 1fr) auto;
}

.studio-summary {
  color: var(--studio-white);
  background: var(--studio-cobalt);
}

.studio-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(44px, 9vw, 150px);
  align-items: end;
}

.studio-summary .section-index {
  color: var(--studio-white);
}

.studio-summary .section-heading {
  margin: 0;
}

.studio-summary-note {
  padding: clamp(24px, 4vw, 48px);
  border: 2px solid var(--studio-white);
}

.studio-summary-note > p {
  margin: 0;
  line-height: 1.9;
}

.studio-summary-note > div {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scene-portal-page .capability-list li {
  grid-template-columns: 1fr;
}

.scene-portal-page .principle-grid h3 {
  margin-top: 0;
}

.no-js .works-frame-probe {
  display: none;
}

.no-js .work-collection {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.no-js .work-item {
  grid-column: auto;
  grid-row: auto;
  min-height: 520px;
  padding: 0;
}

.no-js .work-node {
  height: 100%;
  transform: none;
}

.no-js .work-node-surface,
.no-js .work-item[data-recency-tier] .work-node-surface {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(250px, 1fr) auto;
}

.no-js .work-copy h3 {
  margin-top: 34px;
}

@container works-frame (max-width: 760px) {
  .no-js .work-collection {
    grid-template-columns: 1fr;
  }
}
@container works-frame (min-width: 1180px) {
  .works-frame[data-layout-mode="full"] .work-collection {
    grid-auto-rows: clamp(104px, 7.9cqw, 126px);
  }
}

@media (max-width: 1100px) {
  .ynt-home-frame {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 30px;
  }

  .ynt-home-title {
    font-size: clamp(4.8rem, 12.6vw, 8.5rem);
  }

  .work-portal-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .work-portal-intro {
    max-width: 720px;
  }
}

@media (max-width: 820px) {
  .ynt-home {
    min-height: auto;
  }

  .ynt-home-frame {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 70px;
    grid-template-columns: 1fr;
  }

  .ynt-home-title {
    font-size: clamp(5rem, 23vw, 9rem);
  }

  .ynt-home-materials {
    min-height: 520px;
  }

  .ynt-home-coordinate {
    display: none;
  }

  .work-portal {
    scroll-margin-top: 68px;
  }

  .work-portal-shell {
    padding-top: 72px;
  }

  .work-portal-header h2 {
    font-size: clamp(3.2rem, 9vw, 5.2rem);
  }

  .studio-summary-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ynt-home-frame {
    padding-inline: 18px;
  }

  .ynt-home-title {
    font-size: clamp(4.4rem, 24vw, 7rem);
  }

  .ynt-home-title span:last-child {
    transform: translateX(8px);
  }

  .ynt-home-materials {
    min-height: 410px;
  }

  .ynt-home-specimen--workstation {
    width: 58%;
    left: 5%;
  }

  .ynt-home-specimen--blueprint {
    width: 54%;
    right: 4%;
  }

  .ynt-home-specimen--rover {
    width: 56%;
  }

  .work-portal-shell {
    padding-inline: 14px;
  }

  .work-portal-header h2 {
    min-width: 0;
    font-size: clamp(2.4rem, 10.2vw, 3.4rem);
  }

  .work-portal-header h2 span {
    white-space: normal;
  }

  .works-frame[data-layout-mode="mosaic"] .work-collection {
    grid-template-columns: 1fr;
  }

  .works-frame[data-layout-mode="mosaic"] .work-item,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="anchor"],
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="primary"] {
    grid-column: 1;
    min-height: 420px;
  }

  .works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="anchor"] {
    min-height: 520px;
  }

  .works-frame[data-layout-mode="mosaic"] .work-node-surface,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="anchor"] .work-node-surface,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="primary"] .work-node-surface {
    grid-template-rows: minmax(210px, 1.1fr) auto;
  }

  .studio-summary-note > div {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ynt-home-enter,
.work-node,
.work-node-surface {
    transition: none !important;
  }

  .ynt-home-enter:hover,
.ynt-home-enter:focus-visible,
.work-node {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .ynt-home-enter,
.work-node-surface,
.work-status,
.work-cta,
.studio-summary-note {
    border-color: CanvasText;
  }
}

/* Apps-first priority contract: BUILD TRACE stays fully readable when selected,
   but remains the quiet final supplement on mixed discovery surfaces. */
.ynt-home-specimen--map {
  z-index: 1;
}

.ynt-home-specimen--instrument {
  z-index: 2;
}

.ynt-home-specimen--workstation {
  z-index: 3;
}

.ynt-home-specimen--blueprint {
  z-index: 0;
  width: 27%;
  height: 17%;
  top: auto;
  right: 5%;
  bottom: 4%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.38;
  transform: rotate(1deg);
}

.portal-scene-nav button[data-scene-priority="lowest"] {
  position: relative;
}

.portal-scene-nav button[data-scene-priority="lowest"]:not([aria-current="step"]) {
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.025);
}

.portal-scene-nav button[data-scene-priority="lowest"]:not([aria-current="step"]) .portal-rail-icon {
  opacity: 0.58;
}

.portal-rail-priority {
  position: absolute;
  right: 6px;
  bottom: 5px;
  padding: 2px 4px;
  border: 1px solid currentColor;
  font: 800 0.48rem/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.portal-peek[data-scene-priority="lowest"] {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background-color: #11130f !important;
  box-shadow: inset 0 0 0 999px rgba(5, 6, 5, 0.76) !important;
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="lowest"],
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="lowest"] {
  padding: 9px;
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="lowest"] .work-node,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="lowest"] .work-node {
  transform: translate(var(--seed-offset-x, 0), var(--seed-offset-y, 0)) rotate(var(--seed-rotation, 0deg));
}

.works-frame[data-layout-mode="full"] .work-item[data-card-shape="lowest"] .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="lowest"] .work-node-surface {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(92px, 0.48fr) auto;
  box-shadow: 3px 3px 0 rgba(17, 16, 14, 0.5);
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="lowest"] .work-visual,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="lowest"] .work-visual {
  opacity: 0.76;
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="lowest"] .work-copy,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="lowest"] .work-copy {
  padding: 12px 14px;
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="lowest"] .work-copy h3,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="lowest"] .work-copy h3 {
  margin-top: 10px;
  font-size: clamp(1.25rem, 1.55cqw, 1.8rem);
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="lowest"] .work-description,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="lowest"] .work-description {
  display: block;
  margin-top: 7px;
  font-size: 0.7rem;
  line-height: 1.42;
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="lowest"] .work-status,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="lowest"] .work-status,
.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="lowest"] .work-cta,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="lowest"] .work-cta {
  margin-top: 8px;
}

.works-frame[data-layout-fallback] .work-item[data-work-priority="lowest"],
.no-js .work-item[data-work-priority="lowest"] {
  min-height: 420px;
}

.works-frame[data-layout-fallback] .work-item[data-work-priority="lowest"] .work-node-surface,
.no-js .work-item[data-work-priority="lowest"] .work-node-surface {
  grid-template-rows: minmax(160px, 0.62fr) auto;
  box-shadow: none;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="lowest"] {
  min-height: 0;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="lowest"] .work-node-surface {
  grid-template-rows: minmax(120px, 30vw) auto;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="lowest"] .work-description {
  display: block;
  font-size: 0.76rem;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .ynt-home-specimen--blueprint {
    display: none;
  }
}

@media (min-width: 821px) and (max-height: 800px) {
  .ynt-home-frame {
    padding-block: 28px;
  }

  .ynt-home-title {
    margin-top: 18px;
    font-size: clamp(4.6rem, 9vw, 7rem);
  }

  .ynt-home-statement {
    margin-top: 24px;
  }

  .ynt-home-lede {
    margin-top: 10px;
    line-height: 1.65;
  }

  .ynt-home-enter {
    min-height: 68px;
    margin-top: 24px;
  }
}

@media (forced-colors: active) {
  .portal-scene-nav button[data-scene-priority="lowest"],
  .portal-rail-priority,
  .portal-peek[data-scene-priority="lowest"],
  .work-item[data-work-priority="lowest"] .work-node-surface {
    color: CanvasText;
    border-color: CanvasText !important;
  }

  .portal-scene-nav button[data-scene-priority="lowest"]:not([aria-current="step"]),
  .portal-peek[data-scene-priority="lowest"] {
    background: Canvas !important;
  }
}

@supports (padding: max(0px)) {
  .work-portal-shell {
    padding-bottom: max(clamp(80px, 10vw, 154px), env(safe-area-inset-bottom));
  }
}

/* Approved five-scene portal restored from 4b9c058; current entrance and All Works remain independent. */
:root {
  --portal-paper: #f2efe7;
  --portal-ink: #111111;
  --portal-blue: #0d46d9;
  --portal-orange: #ff3b12;
  --portal-lime: #d7f113;
  --portal-rail-width: clamp(176px, 12.9vw, 196px);
  --portal-peek-width: clamp(112px, 9.8vw, 148px);
  --portal-control-height: clamp(104px, 10.8vh, 116px);
  --portal-scene-duration: 720ms;
  --portal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.skip-link-supporting {
  left: 164px;
}

.portal-stage {
  position: relative;
  min-height: max(820px, 100dvh);
  overflow: hidden;
  scroll-margin-top: 0;
  background:
    url("/assets/images/scene-portal/paper-grain.webp") center / cover,
    var(--portal-paper);
  color: var(--portal-ink);
  isolation: isolate;
  outline: none;
}

.portal-stage:focus-visible {
  outline: 4px solid #005fcc;
  outline-offset: -4px;
}

.portal-rail {
  position: absolute;
  z-index: 12;
  inset: 0 auto var(--portal-control-height) 0;
  width: var(--portal-rail-width);
  display: grid;
  grid-template-rows: auto 1fr;
  background: #080a09;
  color: #f7f5ef;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
}

.portal-home-marker {
  min-height: 158px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 52px auto auto;
  align-content: center;
  column-gap: 10px;
  padding: 18px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  text-decoration: none;
}

.portal-home-marker > span {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  padding-top: 4px;
  color: #fff;
  font: 800 1.3rem/1 ui-monospace, Consolas, monospace;
}

.portal-home-marker img {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.portal-home-marker strong {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 8px;
  font-size: 1.05rem;
  line-height: 1.1;
}

.portal-home-marker small {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  margin-top: 4px;
  color: #a6aaa5;
  font-size: 0.68rem;
  font-weight: 700;
}

.portal-home-marker:focus-visible,
.portal-scene-nav button:focus-visible,
.portal-control:focus-visible,
.portal-control-cta:focus-visible,
.portal-peek:focus-visible,
.portal-hint button:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

.portal-scene-nav {
  min-height: 0;
}

.portal-scene-nav ol {
  height: 100%;
  display: grid;
  grid-template-rows: repeat(5, minmax(72px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-scene-nav li {
  min-height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.portal-scene-nav button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: minmax(54px, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  padding: 12px 15px 12px 18px;
  border: 0;
  background: transparent;
  color: #b9bbb7;
  text-align: left;
  cursor: pointer;
}

.portal-scene-nav button::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--portal-orange);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 180ms ease;
  content: "";
}

.portal-scene-nav button[aria-current="step"] {
  background: #111310;
  color: #fff;
}

.portal-scene-nav button[aria-current="step"]::before {
  transform: scaleY(1);
}

.portal-rail-number {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 6px;
  color: currentColor;
  font: 800 1rem/1 ui-monospace, Consolas, monospace;
}

.portal-rail-icon {
  grid-column: 2;
  grid-row: 1;
  min-height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.portal-rail-icon img {
  width: min(76px, 100%);
  height: 66px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) contrast(1.32) brightness(1.78);
  opacity: 0.86;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.portal-scene-nav button[aria-current="step"] .portal-rail-icon img {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

.portal-scene-nav button:not([aria-current="step"]) .portal-rail-icon img[src*="navi-live"],
.portal-scene-nav button:not([aria-current="step"]) .portal-rail-icon img[src*="toolish-live"] {
  filter: grayscale(1) contrast(1.42) brightness(2.35);
}

.portal-scene-nav button[aria-current="step"] .portal-rail-icon img[src*="navi-live"],
.portal-scene-nav button[aria-current="step"] .portal-rail-icon img[src*="toolish-live"] {
  filter: brightness(1.45) saturate(1.4);
}

.portal-scene-nav button[aria-current="step"] .portal-rail-number,
.portal-scene-nav button[aria-current="step"] .portal-rail-name {
  color: var(--portal-orange);
}

.portal-rail-name {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  font-size: clamp(0.7rem, 0.86vw, 0.82rem);
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.portal-viewport {
  position: absolute;
  z-index: 1;
  inset: 0 0 var(--portal-control-height) var(--portal-rail-width);
  overflow: hidden;
  background: var(--portal-paper);
}

.portal-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  transition:
    transform var(--portal-scene-duration) var(--portal-ease),
    opacity var(--portal-scene-duration) var(--portal-ease);
  will-change: transform, opacity;
}

.portal-scene.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.portal-scene.is-previous {
  z-index: 2;
  opacity: 0;
  transform: translate3d(-18%, 0, 0) scale(0.97);
}

.portal-scene.is-next {
  z-index: 3;
  opacity: 1;
  transform: translate3d(calc(100% - var(--portal-peek-width)), 0, 0);
}

.portal-scene.is-before {
  transform: translate3d(-100%, 0, 0);
}

.portal-scene.is-after {
  transform: translate3d(100%, 0, 0);
}

.scene-frame {
  position: absolute;
  inset: 0 var(--portal-peek-width) 0 0;
  overflow: hidden;
  background: var(--portal-paper);
  color: var(--portal-ink);
}

.scene-frame::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: url("/assets/images/scene-portal/paper-grain.webp") center / cover;
  opacity: 0.28;
  mix-blend-mode: multiply;
  content: "";
}

.scene-art {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-index-label {
  position: absolute;
  z-index: 9;
  top: clamp(74px, 8.2vh, 88px);
  left: clamp(36px, 4.7vw, 74px);
  margin: 0;
  color: #111;
  font: 850 clamp(0.78rem, 1.05vw, 1rem)/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.04em;
}

.scene-index-label strong {
  color: var(--portal-orange);
  font-size: 1.45em;
}

.scene-layer {
  position: absolute;
  z-index: 3;
  margin: 0;
  opacity: 0;
  transform:
    translate3d(
      var(--portal-pointer-x-gentle, 0px),
      calc(var(--portal-pointer-y-gentle, 0px) + 18px),
      0
    )
    rotate(var(--scene-layer-rotate, 0deg));
  transition:
    transform 640ms var(--portal-ease),
    opacity 420ms ease;
  will-change: transform, opacity;
}

.portal-scene.is-active .scene-layer {
  opacity: 1;
  transform:
    translate3d(
      var(--portal-pointer-x-gentle, 0px),
      var(--portal-pointer-y-gentle, 0px),
      0
    )
    rotate(var(--scene-layer-rotate, 0deg));
}

.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .scene-layer {
  opacity: 0;
  transform:
    translate3d(
      var(--portal-pointer-x-gentle, 0px),
      calc(var(--portal-pointer-y-gentle, 0px) + 18px),
      0
    )
    rotate(var(--scene-layer-rotate, 0deg));
}

.portal-scene.is-active .scene-layer:nth-of-type(2) {
  transition-delay: 70ms;
}

.portal-scene.is-active .scene-layer:nth-of-type(3) {
  transition-delay: 130ms;
}

.scene-layer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.scene-portal-page img[hidden] {
  display: none !important;
}

.scene-layer.is-image-missing,
.scene-product-screen.is-image-missing {
  box-shadow: none;
}

.scene-copy {
  position: absolute;
  z-index: 8;
  left: clamp(42px, 5vw, 84px);
  bottom: clamp(210px, 25.5vh, 286px);
  width: min(38vw, 470px);
  color: inherit;
}

.scene-copy > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    transform 520ms var(--portal-ease),
    opacity 420ms ease;
}

.portal-scene.is-active .scene-copy > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .scene-copy > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition-delay: 0ms;
}

.portal-scene.is-active .scene-copy > :nth-child(2) {
  transition-delay: 55ms;
}

.portal-scene.is-active .scene-copy > :nth-child(3) {
  transition-delay: 110ms;
}

.portal-scene.is-active .scene-copy > :nth-child(4) {
  transition-delay: 165ms;
}

.scene-eyebrow {
  margin: 0 0 14px;
  font: 800 0.69rem/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
}

.scene-copy h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.scene-descriptor {
  margin: 18px 0 0;
  max-width: 30ch;
  font-size: clamp(0.95rem, 1.25vw, 1.18rem);
  font-weight: 720;
  line-height: 1.55;
}

.scene-status {
  width: fit-content;
  margin: 14px 0 0;
  padding: 5px 9px;
  border: 1px solid currentColor;
  font: 750 0.66rem/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-status--preview {
  color: #ff461d;
}

.scene-fallback-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid currentColor;
  background: var(--portal-orange);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.js .scene-fallback-link {
  display: none;
}

.scene-display {
  position: absolute;
  z-index: 1;
  margin: 0;
  opacity: 1;
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.075em;
  white-space: nowrap;
  transition:
    clip-path 600ms var(--portal-ease),
    opacity 260ms ease;
  will-change: clip-path, opacity;
}

.scene-display span {
  display: block;
}

.scene-product-screen {
  position: absolute;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: #05070f;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
  opacity: 1;
  clip-path: inset(0);
  transform:
    translate3d(
      var(--portal-pointer-x-soft, 0px),
      var(--portal-pointer-y-soft, 0px),
      0
    );
  transition:
    transform 560ms var(--portal-ease),
    opacity 360ms ease,
    clip-path 560ms var(--portal-ease);
  will-change: transform, opacity, clip-path;
}

.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .scene-product-screen {
  opacity: 0;
  clip-path: inset(0 0 12% 0);
  transform:
    translate3d(
      var(--portal-pointer-x-soft, 0px),
      calc(var(--portal-pointer-y-soft, 0px) + 18px),
      0
    );
}

.portal-stage[data-portal-state="transitioning"] .portal-scene.is-active .scene-product-screen {
  transition-delay: 90ms;
}

.scene-product-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Scene 01: Variant A structure with Variant C type, mask, color, and overlap. */
.scene--sorahoshi .scene-frame {
  background: var(--portal-paper);
}

.scene-art--sorahoshi::before,
.scene-art--sorahoshi::after,
.scene-art--toolish::before,
.scene-art--bdm::before,
.scene-art--trace::before,
.scene-art--navi::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.scene-art--sorahoshi::before {
  z-index: 0;
  inset: 0;
  background: #080a09;
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 27% 100%);
}

.scene-art--sorahoshi::after {
  z-index: 1;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 21%;
  background: var(--portal-blue);
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 0 100%);
}

.scene-display--back,
.scene-display--front {
  top: 9.2%;
  left: 2.6%;
  background: url("/assets/images/scene-portal/scene-02-navi-live-v2.webp") 52% 46% / cover no-repeat;
  color: transparent;
  font-size: clamp(8.4rem, 15.25vw, 14.5rem);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(238, 240, 244, 0.22);
  filter: brightness(1.36) saturate(1.55);
}

.scene-display--back {
  z-index: 2;
  clip-path: inset(0);
}

.scene-display--front {
  z-index: 7;
  clip-path: polygon(45% 25%, 100% 14%, 100% 100%, 18% 100%, 30% 59%);
}

.portal-stage[data-portal-state="preparing"] .scene--sorahoshi.is-active .scene-display--back {
  opacity: 0;
  clip-path: inset(0 0 0 100%);
}

.portal-stage[data-portal-state="preparing"] .scene--sorahoshi.is-active .scene-display--front {
  opacity: 0;
  clip-path: polygon(100% 25%, 100% 14%, 100% 100%, 100% 100%, 100% 59%);
}

.scene-layer--sky-disc {
  z-index: 1;
  top: 0;
  right: -2%;
  width: min(49%, 635px);
  height: 31%;
  overflow: hidden;
  background: var(--portal-blue);
  clip-path: polygon(16% 0, 100% 0, 89% 100%, 0 82%);
  --scene-layer-rotate: -7deg;
}

.scene-layer--sky-disc img {
  object-fit: cover;
  object-position: 56% 44%;
  filter: contrast(1.34) saturate(1.62) brightness(1.14);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.scene-layer--mars-ground {
  z-index: 3;
  right: -4%;
  bottom: -4%;
  width: min(104%, 1320px);
  height: 46%;
  overflow: hidden;
  background: #d53b23;
  clip-path: polygon(0 72%, 28% 55%, 64% 25%, 100% 48%, 100% 100%, 0 100%);
}

.scene-layer--mars-ground img {
  object-fit: cover;
  object-position: 54% 68%;
  filter: contrast(1.08) saturate(1.08) brightness(0.94);
  opacity: 0.92;
}

.scene-layer--rover {
  z-index: 5;
  right: 5.5%;
  bottom: 6%;
  width: min(45%, 570px);
  aspect-ratio: 352 / 208;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.38));
}

.scene--sorahoshi .scene-copy {
  bottom: clamp(218px, 25.8vh, 286px);
  width: min(32vw, 390px);
  color: #111;
}

.scene--sorahoshi .scene-copy h2 {
  max-width: 10ch;
}

/* Scene 02 */
.scene--navi .scene-frame {
  background: #02040a;
  color: #f2efe7;
}

.scene-layer--navi-field {
  z-index: 0;
  inset: 0;
}

.scene-layer--navi-field img {
  object-fit: cover;
  filter: contrast(1.08) saturate(1.12) brightness(1.02);
}

.scene-art--navi::after {
  z-index: 1;
  inset: 0;
  background: rgba(2, 4, 9, 0.38);
  clip-path: polygon(0 0, 57% 0, 45% 100%, 0 100%);
}

.scene--navi .scene-index-label {
  color: #f5f1e7;
}

.scene--navi .scene-index-label strong {
  color: #00a58e;
}

.scene-display--navi {
  top: 14%;
  left: 3.5%;
  z-index: 4;
  color: #f2efe7;
  font-size: clamp(6.8rem, 12vw, 11.4rem);
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.52);
  clip-path: inset(0);
  transform: scaleY(1.36);
  transform-origin: top left;
}

.portal-stage[data-portal-state="preparing"] .scene--navi.is-active .scene-display--navi {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
}

.scene-product-screen--navi {
  right: -1%;
  bottom: -8%;
  width: min(55%, 710px);
  aspect-ratio: 16 / 9;
  border: 9px solid #111419;
  border-radius: 24px 24px 0 0;
  rotate: -1.5deg;
}

.scene-product-screen--navi img {
  filter: brightness(1.2) saturate(1.14) contrast(1.06);
}

.scene--navi .scene-copy {
  bottom: clamp(194px, 22.5vh, 248px);
  color: #f4f1e8;
}

.scene--navi .scene-copy h2 {
  max-width: 10ch;
}

.scene--navi .scene-status {
  color: #a9c7ff;
}

.navi-bearing {
  position: absolute;
  z-index: 5;
  bottom: 27%;
  color: #1590ff;
  font: 800 1rem/1 ui-monospace, Consolas, monospace;
  opacity: 1;
  transform:
    translate3d(
      var(--portal-pointer-x-gentle, 0px),
      var(--portal-pointer-y-gentle, 0px),
      0
    );
  transition:
    transform 520ms var(--portal-ease),
    opacity 320ms ease;
  transform-origin: center;
}

.portal-stage[data-portal-state="preparing"] .scene--navi.is-active .navi-bearing {
  opacity: 0;
  transform:
    translate3d(
      var(--portal-pointer-x-gentle, 0px),
      calc(var(--portal-pointer-y-gentle, 0px) + 10px),
      0
    )
    rotate(8deg);
}

.portal-stage[data-portal-state="transitioning"] .scene--navi.is-active .navi-bearing--west {
  transition-delay: 90ms;
}

.portal-stage[data-portal-state="transitioning"] .scene--navi.is-active .navi-bearing--north {
  transition-delay: 130ms;
}

.portal-stage[data-portal-state="transitioning"] .scene--navi.is-active .navi-bearing--east {
  transition-delay: 170ms;
}

.navi-bearing--west {
  left: 56%;
}

.navi-bearing--north {
  left: 68%;
}

.navi-bearing--east {
  left: 80%;
}

/* Scene 03 */
.scene--toolish .scene-frame {
  background: var(--portal-paper);
}

.scene-art--toolish::before {
  z-index: 0;
  inset: 0;
  background: var(--portal-blue);
  clip-path: polygon(0 91%, 62% 58%, 100% 70%, 100% 100%, 0 100%);
}

.scene-display--toolish {
  top: 11.5%;
  left: 2.8%;
  z-index: 2;
  background: url("/assets/images/scene-portal/scene-03-toolish-live-v2.webp") center 24% / cover no-repeat;
  color: transparent;
  font-size: clamp(8.7rem, 15.7vw, 14.8rem);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(17, 17, 17, 0.16);
  clip-path: inset(0);
  transform: scaleY(1.65);
  transform-origin: top left;
}

.portal-stage[data-portal-state="preparing"] .scene--toolish.is-active .scene-display--toolish {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.scene-product-screen--toolish {
  right: -4%;
  bottom: -11%;
  width: min(70%, 900px);
  aspect-ratio: 1200 / 854;
  border: 10px solid #0c0f13;
  border-radius: 22px 22px 0 0;
  rotate: -5deg;
}

.scene-product-screen--toolish img {
  object-position: center top;
}

.scene--toolish .scene-copy {
  bottom: clamp(260px, 31vh, 344px);
  width: min(33vw, 390px);
  color: #111;
}

/* Scene 04 */
.scene--bdm .scene-frame {
  background: var(--portal-paper);
}

.scene-art--bdm::before {
  z-index: 0;
  inset: 0;
  background: #080a09;
  clip-path: polygon(0 79%, 66% 61%, 100% 57%, 100% 100%, 0 100%);
}

.scene-display--bdm {
  top: 11.5%;
  left: 2.8%;
  z-index: 2;
  background: url("/assets/images/scene-portal/scene-04-bdm-live-v2.webp") center 30% / cover no-repeat;
  color: transparent;
  font-size: clamp(10.8rem, 21vw, 19.5rem);
  letter-spacing: -0.085em;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(13, 70, 217, 0.2);
  clip-path: inset(0);
  transform: scaleY(1.28);
  transform-origin: top left;
}

.portal-stage[data-portal-state="preparing"] .scene--bdm.is-active .scene-display--bdm {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.scene-product-screen--bdm-live {
  z-index: 3;
  right: -3%;
  bottom: -10%;
  width: min(96%, 1220px);
  height: 39%;
  border: 8px solid #080a09;
  rotate: -1deg;
}

.scene-product-screen--bdm-live img {
  object-position: center 66%;
}

.scene-layer--pad-controller {
  z-index: 6;
  right: -1%;
  bottom: 7%;
  width: min(63%, 790px);
  aspect-ratio: 1120 / 774;
  --scene-layer-rotate: 4deg;
  clip-path: inset(0);
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.48));
  transition:
    transform 640ms var(--portal-ease),
    opacity 420ms ease,
    clip-path 520ms steps(4, end);
}

.portal-stage[data-portal-state="preparing"] .scene--bdm.is-active .scene-layer--pad-controller {
  clip-path: inset(0 0 100% 0);
}

.scene--bdm .scene-copy {
  bottom: clamp(224px, 27vh, 302px);
  width: min(32vw, 380px);
  color: #111;
}

/* Scene 05 */
.scene--trace .scene-frame {
  background: var(--portal-paper);
}

.scene-art--trace::before {
  z-index: 0;
  inset: 0;
  background: #080a09;
  clip-path: polygon(46% 100%, 68% 30%, 100% 22%, 100% 100%);
}

.scene-display--trace {
  top: 10.5%;
  left: 3%;
  z-index: 2;
  background: url("/assets/images/scene-portal/scene-02-navi-live-v2.webp") 52% 52% / cover no-repeat;
  color: transparent;
  font-size: clamp(8.6rem, 15.2vw, 14.3rem);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(13, 70, 217, 0.26);
  filter: brightness(1.28) saturate(1.45);
  clip-path: inset(0);
  transform: scaleY(1.35);
  transform-origin: top left;
}

.portal-stage[data-portal-state="preparing"] .scene--trace.is-active .scene-display--trace {
  opacity: 0;
  clip-path: inset(0 0 0 100%);
}

.scene-layer--trace-sketch {
  z-index: 4;
  top: -6%;
  right: 2%;
  width: min(43%, 548px);
  aspect-ratio: 940 / 790;
  --scene-layer-rotate: -5deg;
  filter: drop-shadow(0 24px 25px rgba(0, 0, 0, 0.26));
}

.scene-layer--trace-capture {
  z-index: 4;
  right: -3%;
  bottom: 15%;
  width: min(44%, 565px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 8px solid #080a09;
  --scene-layer-rotate: -2deg;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.38);
}

.scene-layer--trace-capture img {
  object-fit: cover;
}

.scene-layer--trace-checklist {
  z-index: 7;
  right: 27%;
  bottom: -2%;
  width: min(24%, 302px);
  aspect-ratio: 650 / 760;
  --scene-layer-rotate: -6deg;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.35));
}

.trace-note-fragment {
  position: absolute;
  z-index: 5;
  top: 31%;
  right: 2%;
  width: min(34%, 420px);
  display: grid;
  gap: 13px;
  padding: clamp(17px, 1.8vw, 25px);
  border: 1px solid rgba(36, 115, 255, 0.62);
  background: #07101d;
  color: #f6f2e7;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform:
    translate3d(
      var(--portal-pointer-x-soft, 0px),
      calc(var(--portal-pointer-y-soft, 0px) + 18px),
      0
    )
    rotate(2deg);
  transition:
    transform 640ms var(--portal-ease) 90ms,
    opacity 420ms ease 90ms;
}

.portal-scene.is-active .trace-note-fragment {
  opacity: 1;
  transform:
    translate3d(
      var(--portal-pointer-x-soft, 0px),
      var(--portal-pointer-y-soft, 0px),
      0
    )
    rotate(2deg);
}

.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .trace-note-fragment {
  opacity: 0;
  transform:
    translate3d(
      var(--portal-pointer-x-soft, 0px),
      calc(var(--portal-pointer-y-soft, 0px) + 18px),
      0
    )
    rotate(2deg);
}

.trace-note-fragment > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    transform 420ms var(--portal-ease),
    opacity 300ms ease;
}

.portal-stage[data-portal-state="preparing"] .scene--trace.is-active .trace-note-fragment > * {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition-delay: 0ms;
}

.portal-stage[data-portal-state="transitioning"] .scene--trace.is-active .trace-note-fragment small {
  transition-delay: 130ms;
}

.portal-stage[data-portal-state="transitioning"] .scene--trace.is-active .trace-note-fragment strong:nth-of-type(1) {
  transition-delay: 185ms;
}

.portal-stage[data-portal-state="transitioning"] .scene--trace.is-active .trace-note-fragment strong:nth-of-type(2) {
  transition-delay: 240ms;
}

.trace-note-fragment small {
  color: #72a8ff;
  font: 800 0.66rem/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.1em;
}

.trace-note-fragment strong {
  padding-top: 11px;
  border-top: 1px solid rgba(128, 173, 255, 0.26);
  font-size: clamp(0.73rem, 0.92vw, 0.9rem);
  line-height: 1.5;
}

.scene--trace .scene-copy {
  bottom: clamp(140px, 15.5vh, 176px);
  width: min(31vw, 370px);
  color: #111;
}

.portal-peek {
  position: absolute;
  z-index: 9;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--portal-peek-width);
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: clamp(78px, 9vh, 96px) 16px 24px;
  border: 0;
  border-left: 3px solid var(--portal-lime);
  background: rgba(5, 6, 5, 0.38);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.portal-peek span:not(.portal-peek-number) {
  font: 800 0.62rem/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.1em;
}

.portal-peek-number {
  color: var(--portal-lime);
  font: 900 clamp(1.55rem, 2.15vw, 2.2rem)/1 ui-monospace, Consolas, monospace;
  letter-spacing: -0.08em;
}

.portal-peek strong {
  max-width: 10ch;
  align-self: start;
  overflow-wrap: anywhere;
  font-size: clamp(0.8rem, 1.1vw, 1.05rem);
  line-height: 1.35;
}

.portal-peek.is-continuation {
  border-left-color: var(--portal-orange);
  background: #0b0d0c;
}

.portal-peek.is-continuation .portal-peek-number {
  color: var(--portal-orange);
}

.portal-controls {
  position: absolute;
  z-index: 20;
  inset: auto 0 0;
  height: var(--portal-control-height);
  display: grid;
  grid-template-columns: var(--portal-rail-width) 112px minmax(230px, 1fr) minmax(230px, 0.8fr) minmax(190px, 0.72fr);
  align-items: stretch;
  border-top: 3px solid var(--portal-orange);
  background: rgba(248, 245, 237, 0.98);
  color: #111;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.12);
}

.portal-control {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 18px;
  border: 0;
  border-right: 1px solid rgba(17, 17, 17, 0.18);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.portal-control--previous {
  background: #0b0d0c;
  color: #fff;
}

.portal-control span {
  color: var(--portal-orange);
  font: 800 0.62rem/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.09em;
}

.portal-control strong {
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-control:disabled {
  color: #a4a49f;
  cursor: default;
}

.portal-control:disabled span {
  color: #777;
}

.portal-counter {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-right: 1px solid rgba(17, 17, 17, 0.18);
  font: 850 clamp(1rem, 1.5vw, 1.28rem)/1 ui-monospace, Consolas, monospace;
}

.portal-input-hint {
  min-width: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 clamp(16px, 2.5vw, 34px);
  border-right: 1px solid rgba(17, 17, 17, 0.18);
  color: #4b4b48;
  font-size: 0.74rem;
  font-weight: 720;
}

.portal-control--next {
  border-right: 0;
  text-align: right;
}

.portal-control-cta {
  position: static;
  z-index: auto;
  grid-column: 4;
  min-width: 0;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px 18px;
  padding: 0 22px;
  border: 0;
  background: var(--portal-orange);
  color: #fff;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 300ms ease;
}

.portal-stage[data-portal-state="preparing"] .portal-control-cta {
  opacity: 0;
  transform: translateY(8px);
}

.portal-stage[data-portal-state="transitioning"] .portal-control-cta {
  transition-delay: 240ms;
}

.portal-control-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.portal-stage[data-active-scene="sorahoshi-navi"] .portal-control-cta,
.portal-stage[data-active-scene="toolish"] .portal-control-cta {
  background: var(--portal-blue);
}

.portal-hint {
  position: absolute;
  z-index: 25;
  top: 20px;
  left: calc(var(--portal-rail-width) + 24px);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - var(--portal-rail-width) - 48px);
  padding: 10px 12px 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 6, 5, 0.9);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.portal-hint[hidden] {
  display: none;
}

.portal-hint p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 750;
}

.portal-hint button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: transparent;
  color: #fff;
  font-size: 0.68rem;
  cursor: pointer;
}

@media (max-width: 1100px) {
  :root {
    --portal-rail-width: 154px;
    --portal-peek-width: 108px;
    --portal-control-height: 108px;
  }

  .portal-home-marker {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: 46px auto auto;
    column-gap: 8px;
    padding-inline: 13px;
  }

  .portal-scene-nav button {
    grid-template-columns: 25px minmax(0, 1fr);
    padding-inline: 13px 9px;
  }

  .scene-copy {
    left: 34px;
    width: min(39vw, 410px);
  }

  .portal-control-cta {
    min-width: 0;
    margin-inline: 10px;
  }

  .scene-product-screen--navi,
  .scene-product-screen--toolish {
    width: 64%;
  }

  .scene-layer--rover {
    width: 43%;
  }

  .scene-layer--pad-controller {
    width: 62%;
  }

  .portal-controls {
    grid-template-columns: var(--portal-rail-width) 88px minmax(140px, 1fr) minmax(170px, 0.85fr) minmax(140px, 0.75fr);
  }
}

@media (max-width: 767px) {
  :root {
    --portal-rail-width: 100%;
    --portal-peek-width: 22px;
    --portal-control-height: calc(64px + env(safe-area-inset-bottom));
  }

  .skip-link-supporting {
    left: 12px;
    top: 60px;
    transform: translateY(calc(-100% - 68px));
  }

  .skip-link-supporting:focus {
    transform: none;
  }

  .portal-stage {
    min-height: max(720px, calc(100dvh - 68px));
    scroll-margin-top: 68px;
  }

  .portal-rail {
    inset: 0 0 auto;
    width: 100%;
    height: 96px;
    grid-template-columns: 128px minmax(0, 1fr);
    grid-template-rows: 1fr;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .portal-home-marker {
    min-height: 0;
    grid-template-columns: 27px 1fr;
    grid-template-rows: 1fr;
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
  }

  .portal-home-marker > span {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding-top: 0;
    font-size: 1rem;
  }

  .portal-home-marker img {
    display: none;
  }

  .portal-home-marker strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-top: 0;
    font-size: 0.82rem;
  }

  .portal-home-marker small {
    display: none;
  }

  .portal-scene-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portal-scene-nav::-webkit-scrollbar {
    display: none;
  }

  .portal-scene-nav ol {
    width: max-content;
    min-width: 100%;
    display: flex;
    height: 100%;
  }

  .portal-scene-nav li {
    width: clamp(52px, 15vw, 72px);
    flex: 1 0 clamp(52px, 15vw, 72px);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }

  .portal-scene-nav button {
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr;
    place-content: center;
    gap: 6px;
    padding: 7px 4px;
    text-align: center;
  }

  .portal-rail-number {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding-top: 0;
  }

  .portal-rail-icon {
    display: none;
  }

  .portal-scene-nav button::before {
    inset: auto 8px 0;
    width: auto;
    height: 3px;
    transform: scaleX(0);
  }

  .portal-scene-nav button[aria-current="step"]::before {
    transform: scaleX(1);
  }

  .portal-rail-name {
    grid-column: 1;
    grid-row: 2;
    max-width: 8ch;
    font-size: 0.57rem;
    white-space: nowrap;
  }

  .portal-viewport {
    inset: 96px 0 var(--portal-control-height);
  }

  .portal-scene.is-previous {
    transform: translate3d(0, -16%, 0) scale(0.98);
  }

  .portal-scene.is-next {
    transform: translate3d(0, calc(100% - var(--portal-peek-width)), 0);
  }

  .portal-scene.is-before {
    transform: translate3d(0, -100%, 0);
  }

  .portal-scene.is-after {
    transform: translate3d(0, 100%, 0);
  }

  .scene-frame {
    inset: 0 0 var(--portal-peek-width);
  }

  .portal-peek {
    inset: auto 0 0;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 18px 0;
    border-top: 0;
    border-left: 0;
    background: transparent;
  }

  .portal-peek::before {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--portal-peek-width);
    border-top: 2px solid var(--portal-lime);
    background: #0b0d0c;
    content: "";
  }

  .portal-peek.is-continuation {
    background: transparent;
  }

  .portal-peek.is-continuation::before {
    border-top-color: var(--portal-orange);
    background: #0b0d0c;
  }

  .portal-peek strong {
    max-width: none;
    font-size: 0.65rem;
  }

  .portal-peek span:not(.portal-peek-number) {
    display: none;
  }

  .portal-peek-number {
    font-size: 0.82rem;
    letter-spacing: 0;
  }

  .scene-copy {
    left: 20px;
    right: 20px;
    bottom: 24px;
    width: auto;
    max-width: 33rem;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
  }

  .scene--sorahoshi .scene-copy,
  .scene--navi .scene-copy,
  .scene--toolish .scene-copy,
  .scene--bdm .scene-copy,
  .scene--trace .scene-copy {
    color: #fff;
  }

  .scene--sorahoshi .scene-copy,
  .scene--trace .scene-copy {
    color: #111;
    text-shadow:
      0 0 1px var(--portal-paper),
      0 0 6px var(--portal-paper),
      0 2px 15px rgba(255, 255, 255, 0.92);
  }

  .scene--sorahoshi .scene-copy {
    bottom: 96px;
    width: min(38%, 146px);
  }

  .scene--trace .scene-copy {
    width: min(43%, 164px);
  }

  .scene-copy h2 {
    max-width: 13ch;
    font-size: clamp(1.75rem, 8vw, 2.65rem);
  }

  .scene-descriptor {
    max-width: 28ch;
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .scene-eyebrow {
    margin-bottom: 9px;
    font-size: 0.56rem;
  }

  .scene-status {
    margin-top: 9px;
  }

  .scene-display--back,
  .scene-display--front,
  .scene-display--navi,
  .scene-display--toolish,
  .scene-display--bdm,
  .scene-display--trace {
    top: 6%;
    left: 5%;
    font-size: clamp(3.3rem, 17vw, 6rem);
    transform: none;
    white-space: normal;
  }

  .scene-display--toolish,
  .scene-display--bdm {
    font-size: clamp(3.8rem, 19vw, 6.5rem);
  }

  .scene-display--trace {
    z-index: 4;
  }

  .scene-index-label {
    top: 18px;
    left: 20px;
    font-size: 0.66rem;
  }

  .scene-art--sorahoshi::before {
    clip-path: polygon(61% 0, 100% 0, 100% 100%, 23% 100%);
  }

  .scene-art--sorahoshi::after {
    width: 18%;
  }

  .scene-layer--sky-disc {
    top: -12%;
    right: -17%;
    width: 76%;
  }

  .scene-layer--mars-ground {
    right: -16%;
    bottom: 0;
    width: 120%;
    height: 31%;
  }

  .scene-layer--rover {
    right: -1%;
    bottom: 24%;
    width: 74%;
  }

  .scene--sorahoshi .scene-copy {
    max-width: 18rem;
  }

  .scene-product-screen--navi {
    right: -18%;
    bottom: 28%;
    width: 92%;
    border-width: 5px;
    border-radius: 16px 16px 0 0;
  }

  .scene-art--navi::after {
    background: rgba(2, 4, 9, 0.62);
    clip-path: polygon(0 0, 78% 0, 52% 100%, 0 100%);
  }

  .navi-bearing {
    display: none;
  }

  .scene-art--toolish::before {
    clip-path: polygon(0 88%, 100% 57%, 100% 100%, 0 100%);
  }

  .scene-product-screen--toolish {
    right: -21%;
    bottom: 24%;
    width: 108%;
    border-width: 6px;
    border-radius: 14px 14px 0 0;
  }

  .scene-art--bdm::before {
    clip-path: polygon(0 82%, 100% 59%, 100% 100%, 0 100%);
  }

  .scene-product-screen--bdm-live {
    right: -12%;
    bottom: 0;
    width: 122%;
    height: 29%;
    border-width: 5px;
  }

  .scene-layer--pad-controller {
    right: -18%;
    bottom: 23%;
    width: 96%;
  }

  .scene-art--trace::before {
    clip-path: polygon(27% 100%, 66% 42%, 100% 31%, 100% 100%);
  }

  .scene-layer--trace-sketch {
    top: 4%;
    right: -14%;
    width: 74%;
  }

  .scene-layer--trace-checklist {
    right: 2%;
    bottom: 19%;
    width: 43%;
  }

  .scene-layer--trace-capture,
  .trace-note-fragment {
    display: none;
  }

  .portal-controls {
    height: var(--portal-control-height);
    grid-template-columns: 56px 54px minmax(0, 1fr) 56px;
    grid-template-rows: minmax(60px, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .portal-control {
    place-content: center;
    padding: 6px;
    text-align: center;
  }

  .portal-control--previous {
    grid-column: 1;
    grid-row: 1;
  }

  .portal-counter {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.76rem;
  }

  .portal-control--next {
    grid-column: 4;
    grid-row: 1;
    text-align: center;
  }

  .portal-control strong {
    display: none;
  }

  .portal-input-hint {
    display: none;
  }

  .portal-control-cta {
    position: static;
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    min-height: 52px;
    margin: 5px 4px;
    padding: 4px 8px;
    font-size: 0.7rem;
    line-height: 1.25;
    text-align: center;
  }

  .portal-hint {
    top: 108px;
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

@media (max-width: 390px) {
  .portal-stage {
    min-height: max(720px, calc(100dvh - 68px));
  }

  .portal-rail {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .portal-home-marker {
    padding-inline: 9px;
  }

  .portal-scene-nav li {
    width: 49px;
    flex-basis: 49px;
  }

  .scene-product-screen--navi {
    width: 104%;
  }

  .scene-product-screen--toolish {
    width: 118%;
  }

  .scene-layer--rover {
    width: 79%;
  }

  .scene-layer--pad-controller {
    width: 104%;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .portal-stage {
    min-height: 680px;
  }

  .scene-copy {
    bottom: 96px;
  }

  .portal-control-cta {
    bottom: calc(100% + 72px);
  }
}

@media (pointer: coarse) {
  .scene-product-screen,
  .scene-layer,
  .trace-note-fragment,
  .navi-bearing {
    transition-duration: 0ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-scene,
  .scene-copy > *,
  .scene-display,
  .scene-product-screen,
  .scene-layer,
  .trace-note-fragment,
  .trace-note-fragment > *,
  .navi-bearing,
  .portal-control-cta {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .portal-stage,
  .portal-rail,
  .portal-viewport,
  .scene-frame,
  .portal-controls,
  .portal-peek,
  .portal-hint {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .scene-frame::before,
  .scene-frame::after,
  .scene-art {
    opacity: 0.18;
  }

  .scene-copy {
    z-index: 30;
    padding: 12px;
    background: Canvas;
    color: CanvasText;
  }

  .portal-scene-nav button,
  .portal-control,
  .portal-control-cta,
  .portal-hint button {
    border: 1px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    forced-color-adjust: auto;
  }

  .portal-scene-nav button[aria-current="step"] {
    outline: 3px solid Highlight;
    outline-offset: -4px;
  }
}

/* -------------------------------------------------------------------------- */
/* v12: Scene 01 maximum-impact type pass                                     */
/*                                                                            */
/* The approved giant display already owns the visual hierarchy. This pass    */
/* gives the semantic and operational typography the same physical presence   */
/* without changing Scene 02-05 when they become active.                       */
/* -------------------------------------------------------------------------- */

.portal-stage[data-active-scene="sorahoshi"] {
  --scene-01-heavy-font: Meiryo, "Yu Gothic UI", "Yu Gothic", sans-serif;
  --scene-01-heavy-weight: 900;
  --scene-01-heavy-stroke: 0.018em;
}

.portal-stage[data-active-scene="sorahoshi"] :is(
    .scene-index-label,
    .scene-copy--semantic .scene-eyebrow,
    .scene-copy--semantic h2,
    .scene-copy--semantic .scene-descriptor,
    .scene-copy--semantic .scene-supporting,
    .scene-copy--semantic .scene-status,
    .scene-copy--semantic .scene-fallback-link
  ) {
  font-family: var(--scene-01-heavy-font);
  font-weight: var(--scene-01-heavy-weight);
  font-synthesis: weight;
  -webkit-text-stroke: var(--scene-01-heavy-stroke) currentColor;
  paint-order: stroke fill;
}

.portal-stage[data-active-scene="sorahoshi"] .scene-display__visual-node .scene-display__line {
  -webkit-text-stroke-width: clamp(1.35px, 0.16cqh, 1.9px);
}

.portal-stage[data-active-scene="sorahoshi"] .scene-copy--semantic .scene-eyebrow {
  font-size: clamp(0.66rem, 1.14cqw, 0.74rem);
  letter-spacing: 0.065em;
}

.portal-stage[data-active-scene="sorahoshi"] .scene-copy--semantic h2 {
  font-size: clamp(1.16rem, 2.45cqw, 1.54rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.portal-stage[data-active-scene="sorahoshi"] .scene-copy--semantic .scene-descriptor {
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.portal-stage[data-active-scene="sorahoshi"] .scene-copy--semantic .scene-supporting {
  font-size: clamp(0.8rem, 1.48cqw, 1rem);
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.portal-stage[data-active-scene="sorahoshi"] .scene-copy--semantic .scene-supporting em {
  font-weight: 900;
  -webkit-text-stroke: 0.026em currentColor;
}

.portal-stage[data-active-scene="sorahoshi"] .scene-copy--semantic .scene-status {
  font-size: 0.64rem;
  letter-spacing: 0.025em;
}

@media (forced-colors: active) {
  .portal-stage[data-active-scene="sorahoshi"] .scene--sorahoshi :is(
      .scene-index-label,
      .scene-copy--semantic,
      .scene-copy--semantic *
    ) {
    -webkit-text-stroke: 0;
  }
}

.no-js .portal-stage {
  min-height: 0;
  overflow: visible;
  background: #080a09;
}

.no-js .portal-rail {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 88px;
  display: block;
}

.no-js .portal-home-marker {
  width: min(100%, 240px);
  min-height: 88px;
  border-bottom: 0;
}

.no-js .portal-scene-nav,
.no-js .portal-controls,
.no-js .portal-peek,
.no-js .portal-hint {
  display: none;
}

.no-js .portal-viewport {
  position: static;
  display: grid;
  overflow: visible;
}

.no-js .portal-scene,
.no-js .portal-scene.is-active,
.no-js .portal-scene.is-previous,
.no-js .portal-scene.is-next,
.no-js .portal-scene.is-before,
.no-js .portal-scene.is-after {
  position: relative;
  inset: auto;
  min-height: 760px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.no-js .scene-frame {
  inset: 0;
}

/* v10: final mock-parity corrections after same-viewport visual comparison. */
.portal-peek {
  background-color: #080a09 !important;
  background-image: var(--portal-peek-image) !important;
  background-position: center !important;
  background-size: cover !important;
  box-shadow: inset 0 0 0 999px rgba(5, 6, 5, 0.58) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
}

.portal-peek.is-continuation {
  background-image: none !important;
  box-shadow: none !important;
}

.scene-display--back,
.scene-display--front {
  background:
    url("/assets/images/scene-portal/scene-portal-title-universe-v1.webp")
    50% 100% / 1180px auto no-repeat !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: contrast(1.22) saturate(1.34) brightness(1.08) !important;
  -webkit-text-stroke: 1px rgba(106, 146, 255, 0.48) !important;
}

.scene-display--front {
  background:
    url("/assets/images/scene-portal/scene-portal-title-universe-v1.webp")
    50% 100% / 1180px auto no-repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.scene-display--back,
.scene-display--front {
  scale: 1.04 1.22 !important;
  transform-origin: left top !important;
}

.scene-layer--mars-ground {
  clip-path: polygon(0 52%, 29% 44%, 65% 22%, 100% 36%, 100% 100%, 0 100%) !important;
}

.scene-layer--mars-ground img {
  filter: contrast(1.25) saturate(1.35) brightness(0.72) !important;
}

.scene-layer--navi-cosmos {
  z-index: 0 !important;
  inset: 0 !important;
}

.scene-layer--navi-cosmos img {
  object-fit: cover !important;
  object-position: center 48% !important;
  filter: contrast(1.12) saturate(1.3) brightness(0.78) !important;
}

.scene-layer--navi-field {
  z-index: 1 !important;
  inset: 0 0 auto !important;
  height: 72% !important;
  opacity: 0.9 !important;
  mix-blend-mode: screen;
}

.scene-layer--navi-field img {
  filter: contrast(1.34) saturate(1.74) brightness(1.84) !important;
  mix-blend-mode: screen;
}

.scene-art--navi::after {
  z-index: 2 !important;
  background: rgba(2, 4, 9, 0.32) !important;
}

.scene-display--navi {
  background:
    url("/assets/images/scene-portal/paper-grain.webp")
    center / 640px auto repeat !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: brightness(1.14) contrast(1.08) !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0.8px rgba(244, 241, 232, 0.72) !important;
}

.scene-display--navi span:first-child {
  scale: none !important;
  transform: rotate(-0.2deg) scale(0.7, 0.81) !important;
  transform-origin: left top !important;
}

.scene-display--navi span:last-child {
  background:
    url("/assets/images/scene-portal/scene-navi-title-slice-v1.webp")
    center bottom / 760px 510px no-repeat;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  scale: none !important;
  margin-top: 0.11em !important;
  transform: rotate(-4deg) scale(0.68, 0.76) !important;
  transform-origin: left top !important;
}

.scene-display--bdm {
  background:
    url("/assets/images/scene-portal/scene-bdm-title-workstation-v1.webp")
    center 10% / 1180px auto no-repeat !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: contrast(1.18) saturate(1.28) brightness(1.02) !important;
  -webkit-text-stroke: 1px rgba(12, 55, 142, 0.38) !important;
}

.scene-display--navi sup {
  display: inline-block;
  margin-left: 0.05em;
  font-size: 0.24em;
  line-height: 1;
  vertical-align: top;
}

.scene-display--toolish {
  background:
    url("/assets/images/scene-portal/scene-toolish-instrument-texture-v2.webp")
    center / 1180px auto no-repeat !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: contrast(1.2) saturate(1.12) brightness(0.84) !important;
  -webkit-text-stroke: 1px rgba(4, 7, 10, 0.78) !important;
}

.scene-display--trace {
  background: none !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: contrast(1.18) saturate(1.18) brightness(0.9) !important;
  -webkit-text-stroke: 1px rgba(12, 61, 167, 0.64) !important;
}

.scene-display--trace span:first-child,
.scene-display--trace span:last-child {
  background:
    url("/assets/images/scene-portal/scene-build-trace-blueprint-v1.webp")
    center / 1120px auto no-repeat !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-stroke: 1px rgba(12, 61, 167, 0.64);
}

.scene-display--trace span:first-child {
  filter: brightness(1.22) saturate(1.1);
}

.scene-display--trace span:last-child {
  filter: brightness(0.72) saturate(0.94);
}

.trace-note-fragment code {
  color: inherit;
  font: 700 0.56rem/1.45 ui-monospace, Consolas, monospace;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.scene-supporting {
  margin: clamp(15px, 1.55vw, 22px) 0 0;
  font-size: clamp(0.88rem, 1.18vw, 1.08rem);
  font-weight: 760;
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.scene-supporting em {
  color: var(--portal-orange);
  font-style: normal;
}

.scene--trace .scene-supporting strong {
  font-size: clamp(1.08rem, 1.52vw, 1.42rem);
}

.scene--trace .scene-supporting span {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  font-weight: 650;
}

.scene-status:not(.scene-status--preview) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (min-width: 1024px) {
  .portal-home-marker > span {
    font-size: 1.45rem !important;
  }

  .portal-home-marker strong {
    font-size: 1.5rem !important;
  }

  .portal-home-marker small {
    font-size: 0.78rem !important;
  }

  .portal-scene-nav button {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-rows: minmax(82px, 1fr) auto !important;
    padding: 10px 20px 13px 27px !important;
  }

  .portal-rail-number {
    font-size: 1.16rem !important;
  }

  .portal-rail-icon {
    min-height: 82px !important;
  }

  .portal-rail-icon img {
    width: min(84px, 100%) !important;
    height: 80px !important;
  }

  .portal-rail-name {
    font-size: clamp(0.78rem, 0.92vw, 0.9rem) !important;
  }

  .scene-product-screen--toolish {
    right: 1.7% !important;
    bottom: 10% !important;
    width: min(66%, 736px) !important;
  }

  .scene-layer--rover {
    right: 21% !important;
    bottom: 8.5% !important;
    width: min(36%, 400px) !important;
  }

  .scene-layer--sky-disc {
    display: none !important;
  }

  .scene-display--back,
  .scene-display--front {
    top: 15% !important;
  }

  .scene-display--toolish {
    scale: 1.31 1.55 !important;
  }

  .scene--toolish .scene-copy {
    top: 46.5% !important;
    width: min(38vw, 460px) !important;
  }

  .scene-art--toolish::before {
    clip-path: polygon(0 100%, 0 92%, 100% 36%, 100% 100%) !important;
  }

  .scene-product-screen--toolish {
    rotate: -10.5deg !important;
  }

  .scene--navi .scene-copy {
    top: 60% !important;
  }

  .scene--navi .scene-descriptor {
    padding-bottom: 34px !important;
  }

  .scene-display--navi {
    top: 15.7% !important;
  }

  .scene-product-screen--navi {
    bottom: -5.5% !important;
  }

  .trace-note-fragment {
    top: 29% !important;
    right: -0.8% !important;
    width: min(27%, 310px) !important;
    gap: 4px !important;
    padding: 10px !important;
  }

  .trace-note-fragment strong {
    padding-top: 4px !important;
  }

  .trace-note-fragment code {
    font-size: 0.46rem !important;
    line-height: 1.2 !important;
  }

  .scene-layer--trace-checklist {
    right: 37% !important;
    bottom: 1.2% !important;
    width: min(22%, 260px) !important;
  }

  .scene-layer--trace-sketch {
    top: -4.5% !important;
    right: 5.3% !important;
    width: min(38%, 430px) !important;
  }

  .scene-art--trace::before {
    clip-path: polygon(12% 100%, 68% 31%, 100% 22%, 100% 100%) !important;
  }

  .scene--trace .scene-copy {
    top: 61.2% !important;
  }

  .scene-layer--trace-capture {
    right: -2.3% !important;
    bottom: 11.4% !important;
    width: 422px !important;
    height: 34% !important;
    overflow: hidden !important;
  }

  .scene-layer--trace-capture img {
    object-fit: cover !important;
    object-position: center !important;
  }

  .portal-stage[data-active-scene="sorahoshi-navi"] .portal-control-cta {
    --portal-cta-shift: -83px;
    background: var(--portal-blue) !important;
  }

  .portal-stage[data-active-scene="sorahoshi"] .portal-control-cta {
    --portal-cta-shift: 0px;
    background: var(--portal-blue) !important;
  }

  .portal-stage[data-active-scene="toolish"] .portal-control-cta {
    --portal-cta-shift: -200px;
    background: var(--portal-orange) !important;
  }

  .portal-stage[data-active-scene="bdm-16"] .portal-control-cta {
    --portal-cta-shift: -229px;
  }

  .portal-stage[data-active-scene="build-trace"] .portal-control-cta {
    --portal-cta-shift: -63px;
  }

  .portal-control-cta {
    width: 300px !important;
    min-height: 76px !important;
    font-size: 1.1rem !important;
  }

  .portal-stage[data-active-scene="sorahoshi"] .portal-control-cta {
    left: calc(var(--portal-rail-width) + 56px) !important;
  }

  .portal-stage[data-active-scene="sorahoshi-navi"] .portal-control-cta {
    left: calc(var(--portal-rail-width) + 63px) !important;
  }

  .portal-stage[data-active-scene="toolish"] .portal-control-cta {
    left: calc(var(--portal-rail-width) + 73px) !important;
    width: 260px !important;
  }

  .portal-stage[data-active-scene="bdm-16"] .portal-control-cta {
    left: calc(var(--portal-rail-width) + 49px) !important;
    width: 300px !important;
  }

  .portal-stage[data-active-scene="build-trace"] .portal-control-cta {
    left: calc(var(--portal-rail-width) + 77px) !important;
    width: 274px !important;
  }

  .scene-art--sorahoshi::after {
    width: 25% !important;
    clip-path: polygon(82% 0, 100% 0, 100% 100%, 0 100%) !important;
  }

  .scene-display--bdm {
    top: 14% !important;
    left: 4% !important;
  }

  .scene--bdm .scene-copy {
    top: 47% !important;
    left: 4% !important;
    width: min(52vw, 600px) !important;
  }

  .scene--bdm .scene-descriptor {
    max-width: 25em !important;
  }

  .scene-layer--pad-controller {
    right: 0.5% !important;
    bottom: 7.8% !important;
    width: min(60.5%, 688px) !important;
    clip-path: inset(0 0 26.4% 0) !important;
  }

  .portal-hint {
    display: none !important;
  }

  .portal-control span,
  .portal-motion-toggle span {
    font-size: 0.74rem !important;
  }

  .portal-control strong,
  .portal-motion-toggle strong {
    font-size: clamp(0.86rem, 1.02vw, 1rem) !important;
  }

  .portal-counter {
    font-size: clamp(0.9rem, 1.08vw, 1.05rem) !important;
  }

  .portal-input-hint {
    font-size: clamp(0.78rem, 0.96vw, 0.92rem) !important;
  }
}

/* Finite CSS fallback for runtimes without Element.animate(). The class is
   removed after 760ms, leaving every scene in a fully static idle state. */
@keyframes portal-scene-enter {
  from {
    opacity: 0.55;
    translate: 46px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes portal-scene-leave {
  from {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
  to {
    opacity: 0;
    translate: -34px 0;
    filter: blur(2px);
  }
}

@keyframes portal-reveal-right {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    translate: 44px 0;
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    translate: 0 0;
  }
}

@keyframes portal-reveal-up {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0);
    translate: 0 28px;
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    translate: 0 0;
  }
}

@keyframes portal-rise {
  from {
    opacity: 0;
    translate: 0 20px;
    scale: 0.95;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes portal-backdrop-enter {
  from {
    opacity: 0.16;
    clip-path: inset(0 42% 0 0);
    scale: 1.08;
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    scale: 1;
  }
}

@keyframes portal-bearing-enter {
  from {
    opacity: 0;
    rotate: -16deg;
    scale: 0.45;
  }
  to {
    opacity: 1;
    rotate: 0deg;
    scale: 1;
  }
}

@keyframes portal-copy-enter {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes portal-paper-enter {
  from {
    opacity: 0;
    translate: -8px 24px;
    scale: 0.97;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes portal-rail-confirm {
  0% {
    scale: 0.93;
  }
  62% {
    scale: 1.04;
  }
  100% {
    scale: 1;
  }
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .portal-scene.is-active {
  animation: portal-scene-enter 470ms cubic-bezier(.16, 1, .3, 1) both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .portal-scene.is-motion-outgoing {
  animation: portal-scene-leave 300ms cubic-bezier(.4, 0, .7, .2) both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--sorahoshi.is-active [data-motion-layer="backdrop"],
.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--navi.is-active [data-motion-layer="backdrop"] {
  animation: portal-backdrop-enter 500ms cubic-bezier(.16, 1, .3, 1) both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--sorahoshi.is-active [data-motion-layer="display-back"] {
  animation: portal-reveal-right 565ms cubic-bezier(.16, 1, .3, 1) 35ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--sorahoshi.is-active [data-motion-layer="display-front"] {
  animation: portal-reveal-right 565ms cubic-bezier(.16, 1, .3, 1) 59ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--sorahoshi.is-active [data-motion-layer="ground"] {
  animation: portal-rise 455ms cubic-bezier(.2, .78, .22, 1) 90ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--sorahoshi.is-active [data-motion-layer="primary"],
.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--navi.is-active [data-motion-layer="primary"],
.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--bdm.is-active [data-motion-layer="primary"] {
  animation: portal-rise 430ms cubic-bezier(.16, 1, .3, 1) 175ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--navi.is-active [data-motion-layer="display"] {
  animation: portal-reveal-up 520ms cubic-bezier(.16, 1, .3, 1) 70ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--navi.is-active [data-motion-layer="detail"] {
  animation: portal-bearing-enter 270ms cubic-bezier(.16, 1, .3, 1) 165ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--navi.is-active [data-motion-layer="detail"]:nth-of-type(2) {
  animation-delay: 213ms !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--navi.is-active [data-motion-layer="detail"]:nth-of-type(3) {
  animation-delay: 261ms !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--toolish.is-active [data-motion-layer="primary"] {
  animation: portal-reveal-right 545ms cubic-bezier(.16, 1, .3, 1) 35ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--toolish.is-active [data-motion-layer="display"] {
  animation: portal-reveal-right 485ms cubic-bezier(.16, 1, .3, 1) 115ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--bdm.is-active [data-motion-layer="backdrop"] {
  animation: portal-reveal-up 500ms steps(4, end) 30ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--bdm.is-active [data-motion-layer="display"] {
  animation: portal-reveal-right 450ms steps(4, end) 78ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--trace.is-active [data-motion-layer="display"] {
  animation: portal-reveal-right 510ms cubic-bezier(.16, 1, .3, 1) 95ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--trace.is-active [data-motion-layer^="paper-"] {
  animation: portal-paper-enter 430ms cubic-bezier(.16, 1, .3, 1) 35ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--trace.is-active [data-motion-layer="paper-middle"] {
  animation-delay: 97ms !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--trace.is-active [data-motion-layer="paper-front"] {
  animation-delay: 159ms !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--trace.is-active [data-motion-layer="detail"] > * {
  animation: portal-reveal-right 225ms cubic-bezier(.16, 1, .3, 1) 270ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--trace.is-active [data-motion-layer="detail"] > :nth-child(2) {
  animation-delay: 332ms !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .scene--trace.is-active [data-motion-layer="detail"] > :nth-child(3) {
  animation-delay: 394ms !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .portal-scene.is-active [data-motion-layer="copy"] > * {
  animation: portal-copy-enter 190ms cubic-bezier(.16, 1, .3, 1) 400ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .portal-scene.is-active [data-motion-layer="copy"] > :nth-child(2) {
  animation-delay: 434ms !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .portal-scene.is-active [data-motion-layer="copy"] > :nth-child(3) {
  animation-delay: 468ms !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .portal-scene.is-active [data-motion-layer="copy"] > :nth-child(4) {
  animation-delay: 502ms !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .portal-control-cta {
  animation: portal-copy-enter 165ms cubic-bezier(.16, 1, .3, 1) 555ms both !important;
}

.portal-stage.is-css-motion[data-portal-state="transitioning"] .portal-scene-nav [aria-current="step"] {
  animation: portal-rail-confirm 420ms cubic-bezier(.16, 1, .3, 1) 80ms both !important;
}

@media (max-width: 767px) {
  .no-js .portal-scene,
  .no-js .portal-scene.is-active,
  .no-js .portal-scene.is-previous,
  .no-js .portal-scene.is-next,
  .no-js .portal-scene.is-before,
  .no-js .portal-scene.is-after {
    min-height: 780px;
  }
}

/* -------------------------------------------------------------------------- */
/* v9: mock-measured composition and finite scene timeline surfaces            */
/* -------------------------------------------------------------------------- */

.scene-portal-page {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.portal-stage {
  --portal-display-size: clamp(4.5rem, 12vw, 11.15rem);
  --portal-display-line: 0.82;
  --portal-cta-shift: 0px;
  min-height: max(760px, 100dvh);
  background: var(--portal-paper);
}

.portal-scene {
  transition: none;
}

.portal-scene.is-motion-outgoing {
  z-index: 5;
  visibility: visible;
  opacity: 1;
  pointer-events: none;
  transform: none;
}

.scene-frame {
  background: var(--portal-paper);
}

.scene-display {
  font-family: "Arial Black", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  font-size: var(--portal-display-size);
  font-weight: 900;
  line-height: var(--portal-display-line);
  letter-spacing: -0.065em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.scene-display span {
  width: fit-content;
  transform-origin: left center;
}

.scene-index-label {
  top: clamp(48px, 7.3vh, 78px);
  left: clamp(28px, 4.5vw, 64px);
  font-size: clamp(0.72rem, 0.96vw, 0.92rem);
}

.scene-copy {
  top: 57%;
  bottom: auto;
  left: clamp(30px, 4.8vw, 68px);
  width: min(34vw, 410px);
}

.scene-copy .scene-eyebrow,
.scene-copy h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.scene-copy .scene-descriptor {
  max-width: 23ch;
  margin: 0;
  padding-bottom: clamp(14px, 1.6vw, 22px);
  border-bottom: 1px solid currentColor;
  font-size: clamp(1.25rem, 2.12vw, 2rem);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.scene-copy .scene-status {
  margin-top: clamp(14px, 1.7vw, 22px);
  border: 0;
  padding: 0;
  font-size: clamp(0.72rem, 0.85vw, 0.84rem);
  letter-spacing: 0.1em;
}

.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .scene-layer,
.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .scene-product-screen,
.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .scene-display,
.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .scene-copy,
.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .scene-copy > *,
.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .trace-note-fragment,
.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .trace-note-fragment > *,
.portal-stage[data-portal-state="preparing"] .portal-scene.is-active .navi-bearing {
  opacity: 1;
  clip-path: none;
  transform: none;
  transition-delay: 0ms;
}

.scene-layer,
.scene-product-screen,
.scene-display,
.scene-copy,
.scene-copy > *,
.trace-note-fragment,
.trace-note-fragment > *,
.navi-bearing {
  transition: none;
}

.scene-layer,
.scene-product-screen {
  will-change: transform, opacity, clip-path;
}

.scene-copy {
  will-change: transform, opacity;
}

/* Scene 01: Variant A rail/frame with Variant C type, mask and color planes. */
.scene--sorahoshi .scene-frame {
  background: var(--portal-paper);
}

.scene-art--sorahoshi::before {
  inset: 0;
  background: #080a09;
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 31% 100%);
}

.scene-art--sorahoshi::after {
  right: -1px;
  width: 20.5%;
  background: var(--portal-blue);
  clip-path: polygon(69% 0, 100% 0, 100% 100%, 0 100%);
}

.scene-display--back,
.scene-display--front {
  top: 13.2%;
  left: 4.9%;
  background:
    url("/assets/images/scene-portal/scene-02-navi-live-v2.webp")
    52% 44% / 1180px auto no-repeat;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(236, 239, 247, 0.38);
  filter: contrast(1.22) saturate(1.18) brightness(1.24);
}

.scene-display--back span:first-child,
.scene-display--front span:first-child {
  transform: rotate(-1.1deg);
}

.scene-display--back span:last-child,
.scene-display--front span:last-child {
  margin-top: 0.06em;
  transform: rotate(1.2deg);
}

.scene-display--back {
  z-index: 2;
  clip-path: inset(0);
}

.scene-display--front {
  z-index: 7;
  clip-path: polygon(48% 22%, 100% 8%, 100% 100%, 24% 100%, 33% 62%);
}

.scene-layer--sky-disc {
  top: -10%;
  right: 7%;
  width: min(43%, 500px);
  height: 35%;
  border-radius: 0;
  background: var(--portal-blue);
  clip-path: circle(46% at 54% 44%);
  --scene-layer-rotate: -5deg;
}

.scene-layer--sky-disc img {
  object-position: 56% 45%;
  filter: contrast(1.28) saturate(1.42) brightness(1.08);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.scene-layer--mars-ground {
  right: -5%;
  bottom: -3%;
  width: min(100%, 1180px);
  height: 32%;
  background: #d74025;
  clip-path: polygon(0 67%, 29% 53%, 65% 31%, 100% 43%, 100% 100%, 0 100%);
}

.scene-layer--mars-ground img {
  object-position: 52% 66%;
  filter: contrast(1.1) saturate(1.06) brightness(0.96);
  opacity: 0.94;
}

.scene-layer--rover {
  right: 5.5%;
  bottom: 5.5%;
  width: min(47%, 540px);
  aspect-ratio: 880 / 803;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.38));
}

.scene--sorahoshi .scene-copy {
  top: 64%;
  width: min(32vw, 380px);
  color: #111;
}

/* Scene 02: current factual sky capture, high-contrast title and observer UI. */
.scene--navi .scene-frame {
  background: #02040a;
  color: #f3f0e8;
}

.scene-layer--navi-field {
  inset: 0;
}

.scene-layer--navi-field img {
  object-fit: cover;
  object-position: 52% center;
  filter: contrast(1.16) saturate(1.18) brightness(0.92);
}

.scene-art--navi::after {
  background: rgba(2, 4, 9, 0.46);
  clip-path: polygon(0 0, 58% 0, 45% 100%, 0 100%);
}

.scene-display--navi {
  top: 14%;
  left: 5%;
  z-index: 4;
  color: #f2efe7;
  font-size: var(--portal-display-size);
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.44);
  clip-path: inset(0);
  transform: none;
}

.scene-display--navi span:first-child {
  transform: rotate(-1.2deg);
}

.scene-display--navi span:last-child {
  margin-top: 0.08em;
  transform: rotate(-4deg);
}

.scene-product-screen--navi {
  right: -2%;
  bottom: -8%;
  width: min(55%, 640px);
  aspect-ratio: 16 / 9;
  border: 8px solid #111419;
  border-radius: 22px 22px 0 0;
  rotate: -1.5deg;
}

.scene-product-screen--navi img {
  filter: brightness(1.16) saturate(1.12) contrast(1.08);
}

.scene--navi .scene-copy {
  top: 59%;
  color: #f4f1e8;
}

.navi-bearing {
  bottom: 28%;
  font-size: clamp(0.72rem, 0.95vw, 0.95rem);
}

/* Scene 03: clean type first, official screen as the physical object. */
.scene--toolish .scene-frame {
  background: var(--portal-paper);
  color: #111;
}

.scene-art--toolish::before {
  inset: 0;
  background: var(--portal-blue);
  clip-path: polygon(0 100%, 0 84%, 100% 36%, 100% 100%);
}

.scene-display--toolish {
  top: 12.5%;
  left: 5.4%;
  z-index: 2;
  background: none;
  color: #101312;
  font-size: var(--portal-display-size);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-stroke: 0;
  filter: none;
  clip-path: inset(0);
  transform: none;
}

.scene-product-screen--toolish {
  right: -4%;
  bottom: -10%;
  width: min(74%, 850px);
  aspect-ratio: 1265 / 712;
  border: 10px solid #0c0f13;
  border-radius: 20px 20px 0 0;
  rotate: -7deg;
  transform-origin: center;
}

.scene-product-screen--toolish img {
  object-position: center top;
  filter: contrast(1.08) saturate(1.02) brightness(1.06);
}

.scene--toolish .scene-copy {
  top: 45%;
  width: min(31vw, 370px);
  color: #111;
}

/* Scene 04: title, controller and arrangement plane remain distinct layers. */
.scene--bdm .scene-frame {
  background: var(--portal-paper);
  color: #111;
}

.scene-art--bdm::before {
  inset: 0;
  background: #080a09;
  clip-path: polygon(0 100%, 0 78%, 100% 56%, 100% 100%);
}

.scene-display--bdm {
  top: 12.3%;
  left: 4.8%;
  z-index: 2;
  background:
    url("/assets/images/scene-portal/scene-04-bdm-live-v2.webp")
    center 34% / 1140px auto no-repeat;
  color: transparent;
  font-size: var(--portal-display-size);
  letter-spacing: -0.075em;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(17, 48, 118, 0.32);
  filter: contrast(1.14) saturate(1.2) brightness(1.02);
  clip-path: inset(0);
  transform: none;
}

.scene-product-screen--bdm-live {
  right: -2%;
  bottom: -9%;
  width: min(96%, 1110px);
  height: 25%;
  border: 8px solid #080a09;
  rotate: -0.5deg;
}

.scene-layer--pad-controller {
  right: -1%;
  bottom: 18%;
  width: min(60%, 690px);
  aspect-ratio: 1120 / 774;
  --scene-layer-rotate: 4deg;
  clip-path: inset(0);
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.44));
}

.scene--bdm .scene-copy {
  top: 45%;
  width: min(31vw, 375px);
  color: #111;
}

/* Scene 05: editorial title and three physical paper layers. */
.scene--trace .scene-frame {
  background: var(--portal-paper);
  color: #111;
}

.scene-art--trace::before {
  inset: 0;
  background: #080a09;
  clip-path: polygon(45% 100%, 68% 28%, 100% 20%, 100% 100%);
}

.scene-display--trace {
  top: 12.2%;
  left: 5.2%;
  z-index: 2;
  background: none;
  color: #112f88;
  font-size: calc(var(--portal-display-size) * 0.86);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-stroke: 0;
  filter: none;
  clip-path: inset(0);
  transform: none;
}

.scene-display--trace span:first-child {
  color: #124bd4;
}

.scene-display--trace span:last-child {
  margin-top: -0.02em;
  color: #10285f;
}

.scene-layer--trace-sketch {
  top: -8%;
  right: 4%;
  width: min(42%, 485px);
  aspect-ratio: 940 / 790;
  --scene-layer-rotate: -5deg;
  filter: drop-shadow(0 24px 25px rgba(0, 0, 0, 0.24));
}

.scene-layer--trace-capture {
  right: -2%;
  bottom: 14%;
  width: min(43%, 500px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 8px solid #080a09;
  --scene-layer-rotate: 1deg;
}

.scene-layer--trace-capture img {
  object-fit: cover;
  filter: contrast(1.16) saturate(1.2) brightness(0.9);
}

.scene-layer--trace-checklist {
  right: 28%;
  bottom: 1%;
  width: min(23%, 270px);
  aspect-ratio: 650 / 760;
  --scene-layer-rotate: -7deg;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.34));
}

.trace-note-fragment {
  top: 34%;
  right: 2.5%;
  width: min(32%, 380px);
}

.scene--trace .scene-copy {
  top: 57%;
  width: min(31vw, 370px);
  color: #111;
}

/* Shared operation band. The CTA sits in the scene, as in the approved mock. */
.portal-controls {
  height: var(--portal-control-height);
  grid-template-columns:
    minmax(220px, 1.15fr)
    minmax(120px, 0.72fr)
    minmax(150px, 0.82fr)
    minmax(210px, 1.18fr)
    minmax(220px, 1fr);
  border-top: 3px solid var(--portal-orange);
  background: rgba(248, 245, 237, 0.99);
}

.portal-control,
.portal-counter,
.portal-input-hint,
.portal-motion-toggle {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  border: 0;
  border-right: 1px solid rgba(17, 17, 17, 0.22);
  background: transparent;
  color: #111;
}

.portal-control {
  padding: 18px clamp(18px, 2.1vw, 34px);
}

.portal-control--previous {
  background: transparent;
  color: #111;
  text-align: left;
}

.portal-control--next {
  text-align: right;
}

.portal-control span,
.portal-motion-toggle span {
  color: var(--portal-orange);
  font: 800 0.68rem/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-control strong {
  margin-top: 8px;
  font-size: clamp(0.78rem, 1vw, 0.96rem);
}

.portal-counter {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  gap: 0.35em;
  font: 900 clamp(0.78rem, 1vw, 0.94rem)/1 ui-monospace, Consolas, monospace;
}

.portal-motion-toggle {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 10px 16px;
  text-align: center;
  cursor: pointer;
}

.portal-motion-toggle strong {
  font-size: clamp(0.76rem, 0.92vw, 0.9rem);
}

.portal-motion-toggle[aria-pressed="true"] strong {
  color: var(--portal-blue);
}

.portal-motion-toggle:hover,
.portal-motion-toggle:focus-visible {
  background: var(--portal-ink);
  color: var(--portal-paper);
}

.portal-motion-toggle:focus-visible {
  outline: 3px solid var(--portal-blue);
  outline-offset: -3px;
}

.portal-input-hint {
  display: grid;
  place-items: center;
  padding: 12px 18px;
  font-size: clamp(0.72rem, 0.9vw, 0.88rem);
  font-weight: 760;
  text-align: center;
}

.portal-control-cta {
  position: absolute;
  z-index: 34;
  grid-column: auto;
  grid-row: auto;
  left: calc(var(--portal-rail-width) + clamp(28px, 4.6vw, 68px));
  bottom: calc(var(--portal-control-height) + 38px);
  width: min(300px, 31vw);
  min-width: 0;
  min-height: 72px;
  margin: 0;
  padding: 0 26px;
  border: 0;
  background: var(--portal-orange);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  transform: translate3d(0, var(--portal-cta-shift), 0);
  transition:
    transform 620ms var(--portal-ease),
    background-color 260ms ease,
    box-shadow 180ms ease;
}

.portal-stage[data-active-scene="sorahoshi"] {
  --portal-cta-shift: 0px;
}

.portal-stage[data-active-scene="sorahoshi-navi"] {
  --portal-cta-shift: -74px;
}

.portal-stage[data-active-scene="toolish"] {
  --portal-cta-shift: -205px;
}

.portal-stage[data-active-scene="bdm-16"] {
  --portal-cta-shift: -233px;
}

.portal-stage[data-active-scene="build-trace"] {
  --portal-cta-shift: -61px;
}

.portal-stage[data-active-scene="sorahoshi-navi"] .portal-control-cta,
.portal-stage[data-active-scene="toolish"] .portal-control-cta {
  background: var(--portal-blue);
}

.portal-control-cta:hover {
  transform: translate3d(0, calc(var(--portal-cta-shift) - 3px), 0);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.portal-hint {
  top: auto;
  right: calc(var(--portal-peek-width) + 18px);
  bottom: calc(var(--portal-control-height) + 18px);
  left: auto;
  max-width: min(390px, calc(100vw - var(--portal-rail-width) - var(--portal-peek-width) - 40px));
  background: rgba(8, 10, 9, 0.92);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

/* Keep the vertical rail for the narrow desktop pane; only true phones use top rail. */
@media (min-width: 480px) {
  :root {
    --portal-rail-width: 84px;
    --portal-peek-width: 44px;
    --portal-control-height: 76px;
  }

  html.is-portal-entered .scene-portal-page .site-header {
    display: none;
  }

  .portal-stage {
    min-height: max(760px, 100dvh);
    scroll-margin-top: 0;
  }

  .portal-rail {
    position: absolute;
    inset: 0 auto var(--portal-control-height) 0;
    width: var(--portal-rail-width);
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 132px 1fr;
  }

  .portal-home-marker {
    position: relative;
    min-height: 132px;
    display: block;
    padding: 0;
  }

  .portal-home-marker > span {
    position: absolute;
    top: 76px;
    left: 12px;
    padding: 0;
    font-size: 0.9rem;
  }

  .portal-home-marker img {
    position: absolute;
    display: block;
    top: 68px;
    left: 39px;
    width: 36px;
    height: 36px;
    filter: grayscale(1) brightness(3.2) contrast(1.2);
  }

  .portal-home-marker strong {
    position: absolute;
    top: 18px;
    left: 12px;
    margin: 0;
    font-size: 0.74rem;
  }

  .portal-home-marker small {
    position: absolute;
    display: block;
    top: 42px;
    left: 12px;
    margin: 0;
    font-size: 0.55rem;
  }

  .portal-scene-nav {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .portal-scene-nav ol {
    width: 100%;
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, minmax(92px, 1fr));
  }

  .portal-scene-nav li {
    width: auto;
    min-width: 0;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .portal-scene-nav button {
    min-height: 92px;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-rows: minmax(42px, 1fr) auto;
    gap: 2px 4px;
    padding: 8px 7px 9px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .portal-rail-number {
    padding-top: 3px;
    font-size: 0.72rem;
  }

  .portal-rail-icon {
    display: grid;
    min-height: 42px;
    border: 0;
    background: transparent;
  }

  .portal-rail-icon img {
    width: min(42px, 100%);
    height: 42px;
    object-fit: contain;
    filter: grayscale(1) contrast(1.18) brightness(2);
  }

  .portal-rail-name {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.56rem;
    line-height: 1.15;
    white-space: normal;
  }

  .portal-scene-nav button::before {
    inset: 0 auto 0 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
  }

  .portal-scene-nav button[aria-current="step"]::before {
    transform: scaleY(1);
  }

  .portal-viewport {
    position: absolute;
    inset: 0 0 var(--portal-control-height) var(--portal-rail-width);
    overflow: hidden;
  }

  .scene-frame {
    inset: 0 var(--portal-peek-width) 0 0;
  }

  .portal-peek {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: var(--portal-peek-width);
    height: auto;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    gap: 8px;
    padding: 48px 6px 16px;
    border-top: 0;
    border-left: 3px solid var(--portal-lime);
    background: rgba(5, 6, 5, 0.24);
    writing-mode: horizontal-tb;
  }

  .portal-peek strong {
    display: block;
    max-width: 6ch;
    font-size: 0.56rem;
    line-height: 1.25;
  }

  .portal-peek-number {
    font-size: 0.8rem;
  }

  .portal-controls {
    position: absolute;
    inset: auto 0 0;
    height: var(--portal-control-height);
    grid-template-columns: 84px 72px 90px minmax(120px, 1fr) 84px;
  }

  .portal-control,
  .portal-counter,
  .portal-input-hint,
  .portal-motion-toggle {
    padding: 8px 7px;
  }

  .portal-control strong {
    margin-top: 5px;
    font-size: 0.58rem;
  }

  .portal-control span,
  .portal-motion-toggle span {
    font-size: 0.52rem;
  }

  .portal-motion-toggle strong,
  .portal-input-hint,
  .portal-counter {
    font-size: 0.58rem;
  }

  .portal-control-cta {
    left: calc(var(--portal-rail-width) + 18px);
    bottom: calc(var(--portal-control-height) + 18px);
    width: min(220px, calc(100vw - var(--portal-rail-width) - var(--portal-peek-width) - 36px));
    min-height: 56px;
    font-size: 0.78rem;
  }

  .portal-stage[data-active-scene] {
    --portal-cta-shift: 0px;
  }

  .portal-hint {
    right: calc(var(--portal-peek-width) + 10px);
    bottom: calc(var(--portal-control-height) + 86px);
    max-width: min(280px, calc(100vw - var(--portal-rail-width) - var(--portal-peek-width) - 24px));
  }

  .scene-index-label {
    top: 24px;
    left: 20px;
  }

  .scene-display {
    font-size: clamp(3.8rem, 13vw, 6.6rem);
  }

  .scene-display--back,
  .scene-display--front,
  .scene-display--navi,
  .scene-display--toolish,
  .scene-display--bdm,
  .scene-display--trace {
    top: 10%;
    left: 5%;
    transform: none;
  }

  .scene-copy,
  .scene--sorahoshi .scene-copy,
  .scene--navi .scene-copy,
  .scene--toolish .scene-copy,
  .scene--bdm .scene-copy,
  .scene--trace .scene-copy {
    top: 42%;
    left: 20px;
    right: auto;
    width: min(62%, 280px);
  }

  .scene-copy .scene-descriptor {
    font-size: clamp(1rem, 3.4vw, 1.4rem);
  }

  .scene-layer--mars-ground {
    height: 27%;
  }

  .scene-layer--rover {
    right: 2%;
    bottom: 18%;
    width: min(52%, 260px);
  }

  .scene-product-screen--navi {
    width: min(64%, 340px);
  }

  .scene-product-screen--toolish {
    width: min(77%, 410px);
  }

  .scene-layer--pad-controller {
    bottom: 16%;
    width: min(66%, 340px);
  }

  .scene-layer--trace-sketch {
    width: min(50%, 260px);
  }

  .scene-layer--trace-capture {
    width: min(51%, 270px);
  }

  .scene-layer--trace-checklist {
    right: 24%;
    width: min(28%, 150px);
  }
}

@media (min-width: 768px) {
  :root {
    --portal-rail-width: 118px;
    --portal-peek-width: 64px;
    --portal-control-height: 86px;
  }

  .portal-rail {
    grid-template-rows: 178px 1fr;
  }

  .portal-home-marker {
    min-height: 178px;
  }

  .portal-home-marker > span {
    top: 103px;
    left: 18px;
    font-size: 1rem;
  }

  .portal-home-marker img {
    top: 94px;
    left: 58px;
    width: 48px;
    height: 48px;
  }

  .portal-home-marker strong {
    top: 24px;
    left: 18px;
    font-size: 0.9rem;
  }

  .portal-home-marker small {
    top: 52px;
    left: 18px;
    font-size: 0.64rem;
  }

  .portal-scene-nav button {
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-rows: minmax(48px, 1fr) auto;
    padding: 10px 10px 11px 12px;
  }

  .portal-rail-icon img {
    width: min(54px, 100%);
    height: 54px;
  }

  .portal-rail-name {
    font-size: 0.66rem;
  }

  .portal-controls {
    grid-template-columns: 150px 92px 112px minmax(170px, 1fr) 150px;
  }

  .portal-control-cta {
    left: calc(var(--portal-rail-width) + 34px);
    width: min(260px, 30vw);
    min-height: 62px;
  }

  .scene-index-label {
    top: 48px;
    left: 34px;
  }

  .scene-display {
    font-size: clamp(6rem, 12.2vw, 9.5rem);
  }

  .scene-copy,
  .scene--sorahoshi .scene-copy,
  .scene--navi .scene-copy,
  .scene--toolish .scene-copy,
  .scene--bdm .scene-copy,
  .scene--trace .scene-copy {
    left: 34px;
    width: min(36vw, 340px);
  }
}

@media (min-width: 1024px) {
  :root {
    --portal-rail-width: clamp(176px, 12.9vw, 192px);
    --portal-peek-width: clamp(112px, 9.7vw, 144px);
    --portal-control-height: clamp(104px, 10.95vh, 116px);
  }

  .portal-rail {
    grid-template-rows: 250px 1fr;
  }

  .portal-home-marker {
    min-height: 250px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .portal-home-marker > span {
    top: 130px;
    left: 31px;
    font-size: 1.24rem;
  }

  .portal-home-marker img {
    top: 132px;
    left: 80px;
    width: 58px;
    height: 58px;
  }

  .portal-home-marker strong {
    top: 30px;
    left: 28px;
    font-size: 1.18rem;
    letter-spacing: -0.04em;
  }

  .portal-home-marker small {
    top: 67px;
    left: 28px;
    font-size: 0.72rem;
    color: #fff;
  }

  .portal-home-marker small::after {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 28px;
    border-radius: 50%;
    background: var(--portal-orange);
    content: "";
  }

  .portal-scene-nav ol {
    grid-template-rows: repeat(5, minmax(112px, 1fr));
  }

  .portal-scene-nav button {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: minmax(68px, 1fr) auto;
    gap: 4px 10px;
    padding: 14px 22px 15px 28px;
  }

  .portal-rail-number {
    padding-top: 3px;
    font-size: 1.02rem;
  }

  .portal-rail-icon {
    min-height: 68px;
  }

  .portal-rail-icon img {
    width: min(72px, 100%);
    height: 68px;
  }

  .portal-rail-name {
    font-size: clamp(0.7rem, 0.83vw, 0.8rem);
    line-height: 1.2;
  }

  .portal-peek {
    gap: 12px;
    padding: 66px 18px 24px;
    border-left-width: 4px;
  }

  .portal-peek-number {
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  }

  .portal-peek strong {
    max-width: 9ch;
    font-size: clamp(0.76rem, 0.95vw, 0.92rem);
  }

  .portal-controls {
    grid-template-columns:
      minmax(260px, 1.1fr)
      minmax(150px, 0.68fr)
      minmax(170px, 0.76fr)
      minmax(250px, 1.16fr)
      minmax(250px, 1fr);
  }

  .portal-control,
  .portal-counter,
  .portal-input-hint,
  .portal-motion-toggle {
    padding: 18px clamp(20px, 2.1vw, 34px);
  }

  .scene-layer--rover {
    right: 15%;
    bottom: 2.5%;
    width: min(42%, 470px);
  }

  .scene-display--back,
  .scene-display--front,
  .scene-display--navi {
    font-family: "BIZ UDPGothic", Meiryo, "Yu Gothic", "Yu Gothic UI", sans-serif;
    font-size: clamp(10.5rem, 16.8vw, 15.8rem);
    letter-spacing: -0.075em;
  }

  .scene-display--back,
  .scene-display--front {
    top: 17%;
    left: 3.1%;
  }

  .scene-display--navi {
    top: 16%;
  }

  .scene--sorahoshi .scene-copy {
    top: 71%;
    left: 4%;
  }

  .portal-control-cta {
    bottom: calc(var(--portal-control-height) + 38px);
  }

  .scene-index-label {
    top: clamp(72px, 7.3vh, 78px);
    left: clamp(48px, 4.5vw, 64px);
  }

  .scene-display {
    font-size: clamp(8.5rem, 12vw, 11.15rem);
  }

  .scene-copy,
  .scene--sorahoshi .scene-copy,
  .scene--navi .scene-copy,
  .scene--toolish .scene-copy,
  .scene--bdm .scene-copy,
  .scene--trace .scene-copy {
    left: clamp(48px, 4.8vw, 68px);
  }

  .scene--sorahoshi .scene-copy {
    top: 64%;
  }

  .scene--navi .scene-copy {
    top: 59%;
  }

  .scene--toolish .scene-copy,
  .scene--bdm .scene-copy {
    top: 45%;
  }

  .scene--trace .scene-copy {
    top: 57%;
  }
}

@media (min-width: 1024px) {
  .scene-display--back,
  .scene-display--front,
  .scene-display--navi {
    font-family: Meiryo, "Yu Gothic", "Yu Gothic UI", sans-serif;
    font-size: clamp(10.5rem, 16.8vw, 15.8rem);
    font-weight: 900;
    letter-spacing: -0.075em;
  }

  .scene-display--back,
  .scene-display--front {
    top: 15.5%;
    left: 3.1%;
    filter: contrast(1.14) saturate(1.42) brightness(1.62);
    -webkit-text-stroke: 1.5px rgba(235, 240, 255, 0.58);
  }

  .scene-display--back {
    clip-path: inset(0);
  }

  .scene-display--front {
    clip-path: polygon(0 72%, 48% 55%, 64% 100%, 0 100%);
  }

  .scene-display--navi {
    top: 15%;
  }

  .scene--sorahoshi .scene-copy {
    top: 71%;
    left: 4%;
  }

  .scene-display--toolish {
    top: 13.3%;
    left: 6.2%;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
    font-size: clamp(10rem, 14.8vw, 14rem);
    letter-spacing: 0.015em;
    scale: 1.25 1.55;
    transform-origin: left top;
  }

  .scene-display--bdm {
    top: 13.2%;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
    font-size: clamp(11rem, 16.2vw, 15.3rem);
    letter-spacing: 0;
    scale: 1.4 1.4;
    transform-origin: left top;
  }

  .scene-display--trace {
    top: 14.3%;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
    font-size: clamp(10rem, 14.2vw, 13.5rem);
    line-height: 0.82;
    letter-spacing: 0.005em;
    scale: 1.32 1.22;
    transform-origin: left top;
  }

  .scene-product-screen--navi {
    right: -2%;
    bottom: -8%;
    width: min(52%, 600px);
  }

  .scene-product-screen--toolish {
    right: -4%;
    bottom: -2%;
    width: min(74%, 850px);
  }

  .scene-product-screen--bdm-live {
    right: -2%;
    bottom: 0;
    width: min(96%, 1110px);
    height: 25%;
  }

  .scene-layer--pad-controller {
    right: -1%;
    bottom: 9%;
    width: min(60%, 690px);
  }

  .scene-layer--trace-sketch {
    top: -2%;
    right: 4%;
    width: min(42%, 485px);
  }

  .scene-layer--trace-capture {
    right: -2%;
    bottom: 14%;
    width: min(43%, 500px);
  }

  .scene-layer--trace-checklist {
    right: 28%;
    bottom: 1%;
    width: min(23%, 270px);
  }

  .scene--navi .scene-copy {
    top: 61%;
  }

  .scene--toolish .scene-copy {
    top: 48%;
  }

  .scene--bdm .scene-copy {
    top: 48.5%;
  }

  .scene--trace .scene-copy {
    top: 62%;
  }

  .portal-stage[data-active-scene="sorahoshi"] {
    --portal-cta-shift: -10px;
  }

  .portal-stage[data-active-scene="sorahoshi-navi"] {
    --portal-cta-shift: -84px;
  }

  .portal-stage[data-active-scene="toolish"] {
    --portal-cta-shift: -214px;
  }

  .portal-stage[data-active-scene="bdm-16"] {
    --portal-cta-shift: -240px;
  }

  .portal-stage[data-active-scene="build-trace"] {
    --portal-cta-shift: -50px;
  }
}

/* Phone composition: restore the horizontal rail and keep the real CTA inside
   the operation band after the desktop mock-measured rules above. */
@media (max-width: 479px) {
  :root {
    --portal-rail-width: 100%;
    --portal-peek-width: 22px;
    --portal-control-height: calc(64px + env(safe-area-inset-bottom));
  }

  .portal-stage {
    width: 100%;
    height: max(720px, calc(100dvh - 68px));
    min-height: max(720px, calc(100dvh - 68px));
    scroll-margin-top: 68px;
  }

  .portal-rail {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 96px;
    min-height: 0;
    grid-template-columns: 128px minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .portal-home-marker {
    min-height: 0;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    grid-template-rows: 1fr;
    padding: 12px;
  }

  .portal-home-marker > span,
  .portal-home-marker strong {
    position: static;
    align-self: center;
  }

  .portal-home-marker > span {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }

  .portal-home-marker strong {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 0.82rem;
  }

  .portal-home-marker img,
  .portal-home-marker small,
  .portal-rail-icon {
    display: none;
  }

  .portal-scene-nav {
    grid-column: 2;
    grid-row: 1;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portal-scene-nav ol {
    width: max-content;
    min-width: 100%;
    height: 100%;
    display: flex;
  }

  .portal-scene-nav li {
    width: clamp(52px, 15vw, 72px);
    min-width: 0;
    flex: 1 0 clamp(52px, 15vw, 72px);
  }

  .portal-scene-nav button {
    min-height: 64px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    place-content: center;
    gap: 6px;
    padding: 7px 4px;
    text-align: center;
  }

  .portal-rail-number,
  .portal-rail-name {
    grid-column: 1;
  }

  .portal-rail-number {
    grid-row: 1;
    align-self: center;
    padding: 0;
  }

  .portal-rail-name {
    grid-row: 2;
    max-width: 8ch;
    font-size: 0.57rem;
    white-space: nowrap;
  }

  .portal-viewport {
    inset: 96px 0 var(--portal-control-height);
  }

  .scene-frame {
    inset: 0 0 var(--portal-peek-width);
  }

  .scene-copy,
  .scene--sorahoshi .scene-copy,
  .scene--navi .scene-copy,
  .scene--toolish .scene-copy,
  .scene--bdm .scene-copy,
  .scene--trace .scene-copy {
    top: auto;
    right: auto;
    bottom: 76px;
    left: 20px;
    width: min(52%, 205px);
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .scene-copy .scene-descriptor {
    max-width: 100%;
    padding-bottom: 12px;
    font-size: clamp(0.98rem, 4.5vw, 1.16rem);
    line-height: 1.35;
  }

  .scene-copy .scene-supporting {
    margin-top: 11px;
    font-size: clamp(0.74rem, 3.35vw, 0.86rem);
    line-height: 1.5;
  }

  .scene-copy .scene-status {
    margin-top: 9px;
    font-size: 0.6rem;
  }

  .scene--sorahoshi .scene-copy,
  .scene--trace .scene-copy {
    color: #111;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.92);
  }

  .scene--navi .scene-copy,
  .scene--toolish .scene-copy,
  .scene--bdm .scene-copy {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
  }

  .portal-controls {
    position: absolute;
    inset: auto 0 0;
    height: var(--portal-control-height);
    grid-template-columns: 48px 44px 62px minmax(95px, 1fr) 48px;
    grid-template-rows: minmax(60px, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .portal-control--previous {
    grid-column: 1;
  }

  .portal-counter {
    grid-column: 2;
    font-size: 0.68rem;
  }

  .portal-motion-toggle {
    grid-column: 3;
    gap: 5px;
    padding: 5px 2px;
  }

  .portal-motion-toggle span,
  .portal-motion-toggle strong {
    font-size: 0.52rem;
  }

  .portal-control-cta {
    position: static;
    grid-column: 4;
    grid-row: 1;
    width: auto;
    min-width: 0;
    min-height: 52px;
    margin: 5px 4px;
    padding: 5px 7px;
    font-size: 0.66rem;
    line-height: 1.25;
    text-align: center;
    transform: none;
  }

  .portal-control--next {
    grid-column: 5;
    text-align: center;
  }

  .portal-control {
    padding: 6px 3px;
  }

  .portal-control strong,
  .portal-input-hint {
    display: none;
  }

  .portal-hint {
    display: none !important;
  }
}

/* The system preference remains the default. An explicit page-memory toggle may
   opt into the finite WAAPI timeline without creating persistent state. */
@media (prefers-reduced-motion: reduce) {
  .portal-stage:not([data-motion-mode="full"]) .portal-control-cta,
  .portal-stage:not([data-motion-mode="full"]) .portal-scene,
  .portal-stage:not([data-motion-mode="full"]) .scene-layer,
  .portal-stage:not([data-motion-mode="full"]) .scene-product-screen,
  .portal-stage:not([data-motion-mode="full"]) .scene-display,
  .portal-stage:not([data-motion-mode="full"]) .scene-copy,
  .portal-stage:not([data-motion-mode="full"]) .trace-note-fragment,
  .portal-stage:not([data-motion-mode="full"]) .navi-bearing {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .portal-stage,
  .portal-rail,
  .portal-viewport,
  .scene-frame,
  .portal-controls,
  .portal-peek,
  .portal-hint {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .scene-art {
    opacity: 0.16;
  }

  .scene-copy {
    z-index: 30;
    padding: 12px;
    background: Canvas;
    color: CanvasText;
  }

  .portal-scene-nav button,
  .portal-control,
  .portal-motion-toggle,
  .portal-control-cta,
  .portal-hint button {
    border: 1px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    forced-color-adjust: auto;
  }
}

.no-js .portal-stage {
  min-height: 0;
  overflow: visible;
}

.no-js .portal-rail {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 88px;
  display: block;
}

.no-js .portal-home-marker {
  width: min(100%, 240px);
  min-height: 88px;
}

.no-js .portal-scene-nav,
.no-js .portal-controls,
.no-js .portal-peek,
.no-js .portal-hint {
  display: none;
}

.no-js .portal-viewport {
  position: static;
  display: grid;
  overflow: visible;
}

.no-js .portal-scene,
.no-js .portal-scene.is-active,
.no-js .portal-scene.is-previous,
.no-js .portal-scene.is-next,
.no-js .portal-scene.is-before,
.no-js .portal-scene.is-after {
  position: relative;
  inset: auto;
  min-height: 760px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.no-js .scene-frame {
  inset: 0;
}

/* -------------------------------------------------------------------------- */
/* v10: approved Scene 01 composite and height-led giant display type          */
/* -------------------------------------------------------------------------- */

.scene--sorahoshi .scene-display--back,
.scene--sorahoshi .scene-display--front {
  top: clamp(46px, 8.6vh, 92px);
  left: clamp(16px, 4.2vw, 58px);
  width: calc(100% - clamp(32px, 7vw, 96px));
  overflow: visible;
  background: none !important;
  color: inherit !important;
  font-family: "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: clamp(5rem, min(17vw, 23.5vh), 14.4rem);
  font-weight: 900;
  line-height: 0.69;
  letter-spacing: -0.09em;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
  scale: 1 !important;
  clip-path: none;
}

.scene--sorahoshi .scene-display .scene-display__ink {
  display: block;
  width: max-content;
  transform: scaleX(1.06);
  transform-origin: left top;
}

.scene--sorahoshi .scene-display__line {
  display: block;
  width: fit-content;
  background-image: url("/assets/images/scene-portal/scene-portal-title-universe-v1.webp");
  background-repeat: no-repeat;
  background-size: clamp(760px, 84vw, 1180px) auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(236, 240, 255, 0.58);
  filter: contrast(1.18) saturate(1.32) brightness(1.38);
}

.scene--sorahoshi .scene-display__line:first-child {
  background-position: 38% 16%;
  transform: rotate(-0.7deg);
}

.scene--sorahoshi .scene-display__line:last-child {
  margin-top: -0.015em;
  background-position: 72% 84%;
  transform: rotate(0.8deg);
}

.scene--sorahoshi .scene-display--back {
  z-index: 2;
}

.scene--sorahoshi .scene-display--back .scene-display__ink {
  clip-path: none;
}

.scene--sorahoshi .scene-display--front {
  z-index: 7;
}

.scene--sorahoshi .scene-display--front .scene-display__ink {
  width: max-content;
  overflow: visible;
  contain: paint;
  clip-path: polygon(0 0, 58% 0, 58% 98%, 70% 98%, 70% 100%, 0 100%);
}

.scene--sorahoshi .scene-layer--mars-ground {
  z-index: 4;
  right: -5%;
  width: 110%;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: visible;
  background: transparent;
  clip-path: none;
}

.scene--sorahoshi .scene-layer--mars-ground img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
}

.scene--sorahoshi .scene-layer--rover {
  z-index: 5;
  right: 6.5%;
  bottom: 6%;
  width: min(42%, 440px);
  aspect-ratio: 740 / 605;
  overflow: visible;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.32));
}

.scene--sorahoshi .scene-layer--rover img {
  position: absolute;
  top: -34%;
  left: -49%;
  width: 208%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .scene--sorahoshi .scene-copy {
    top: clamp(408px, calc(58vh - 10px), 568px);
    left: clamp(48px, 4.8vw, 68px);
    width: min(30vw, 350px);
  }

  .scene--sorahoshi .scene-layer--mars-ground {
    bottom: clamp(-405px, calc(-21.8vw - 81px), -360px);
  }
}

@media (min-width: 1024px) and (max-height: 759px) {
  .portal-stage {
    min-height: 100dvh;
  }
}

@media (min-width: 1024px) and (max-height: 799px) {
  .portal-stage[data-active-scene="sorahoshi"] .portal-control-cta {
    bottom: calc(var(--portal-control-height) + 8px);
  }
}

@media (min-width: 480px) and (max-width: 1023px) {
  .scene--sorahoshi .scene-layer--mars-ground {
    bottom: -20vh;
  }
}

@media (max-width: 479px) {
  .scene--sorahoshi .scene-index-label {
    top: 16px;
    left: 16px;
  }

  .scene--sorahoshi .scene-display--back,
  .scene--sorahoshi .scene-display--front {
    top: 56px;
    left: 16px;
    width: calc(100% - 32px);
    font-size: clamp(4.7rem, 20vw, 5.1rem);
    line-height: 0.72;
  }

  .scene--sorahoshi .scene-display--front {
    display: none;
  }

  .scene--sorahoshi .scene-layer--mars-ground {
    right: -5%;
    bottom: -35px;
    width: 110%;
  }

  .scene--sorahoshi .scene-layer--rover {
    right: -8%;
    bottom: 18%;
    width: 47%;
  }

  .scene--sorahoshi .scene-copy {
    bottom: 130px;
    width: 114px;
  }

  .portal-stage[data-active-scene="sorahoshi"] .portal-control-cta {
    position: absolute;
    right: 20px;
    bottom: calc(100% + 64px);
    left: 20px;
    width: auto;
    margin: 0;
    transform: none;
  }
}

/* -------------------------------------------------------------------------- */
/* v11: Scene 01 responsive artboard rebaseline                               */
/*                                                                            */
/* Approved 1487x1058 mock measurement after shell subtraction:               */
/* 1487 - 192 rail - 144 peek = 1151 design px; 1058 - 116 band = 942 px.     */
/* The fixed-ratio artboard is the only proportionally fitted surface.         */
/* -------------------------------------------------------------------------- */

.scene--sorahoshi {
  --scene-01-design-width: 1151;
  --scene-01-design-height: 942;
  --scene-01-design-ratio: 1151 / 942;
  --scene-01-design-ratio-number: 1.22187;
}

/* The entered stage occupies its usable viewport. The no-JS document flow
   keeps the existing intrinsic fallback further above in this stylesheet. */
.js .portal-stage {
  height: 100dvh;
  min-height: 100dvh;
}

/* Short desktop and zoom-equivalent heights retain every rail target without
   pushing the operation band below the entered viewport. */
@media (min-width: 1024px) and (max-height: 959px) {
  .portal-rail {
    grid-template-rows: clamp(112px, 20dvh, 190px) 1fr;
  }

  .portal-home-marker {
    min-height: 0;
  }

  .portal-home-marker > span {
    top: auto;
    bottom: 22px;
  }

  .portal-home-marker img {
    top: auto;
    bottom: 13px;
    width: 50px;
    height: 50px;
  }

  .portal-home-marker strong {
    top: 20px;
  }

  .portal-home-marker small {
    top: 50px;
  }

  .portal-scene-nav ol {
    grid-template-rows: repeat(5, minmax(44px, 1fr));
  }

  .portal-scene-nav button {
    min-height: 44px;
  }
}

@media (min-width: 480px) and (max-width: 1023px) and (max-height: 759px) {
  .portal-rail {
    grid-template-rows: clamp(64px, 18dvh, 132px) 1fr;
  }

  .portal-home-marker {
    min-height: 0;
  }

  .portal-home-marker > span {
    top: auto;
    bottom: 12px;
  }

  .portal-home-marker img {
    top: auto;
    bottom: 8px;
    width: 38px;
    height: 38px;
  }

  .portal-home-marker strong {
    top: 10px;
  }

  .portal-home-marker small {
    top: 32px;
  }

  .portal-scene-nav ol {
    grid-template-rows: repeat(5, minmax(44px, 1fr));
  }

  .portal-scene-nav button {
    min-height: 44px;
  }
}

@media (min-width: 480px) and (max-height: 479px) {
  .portal-home-marker img,
  .portal-home-marker small,
  .portal-rail-icon {
    display: none;
  }

  .portal-home-marker > span {
    left: 9px;
  }

  .portal-home-marker strong {
    right: 6px;
    left: 9px;
    overflow: hidden;
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-scene-nav button {
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-rows: 1fr;
    padding: 4px 7px;
  }

  .portal-rail-number,
  .portal-rail-name {
    grid-row: 1;
    align-self: center;
  }

  .portal-rail-name {
    grid-column: 2;
    max-width: none;
    font-size: 0.54rem;
    white-space: normal;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .portal-controls {
    grid-template-columns: 150px 92px 112px minmax(170px, 1fr) 150px;
  }
}

@media (max-width: 479px) {
  .js .portal-stage {
    height: calc(100dvh - 68px);
    min-height: calc(100dvh - 68px);
  }

  html.is-portal-entered .scene-portal-page .site-header {
    display: none;
  }

  html.is-portal-entered .portal-stage {
    height: 100dvh;
    min-height: 100dvh;
    scroll-margin-top: 0;
  }

  /* Undo the preceding local gate's floating-phone CTA. The real action stays
     in the operation band and therefore remains visible at high zoom. */
  .portal-stage[data-active-scene="sorahoshi"] .portal-control-cta {
    display: none;
  }

  .js .portal-stage[data-active-scene="sorahoshi"] .scene--sorahoshi .scene-fallback-link {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    margin-top: 12px;
    padding-inline: 12px;
    text-align: center;
  }

  .portal-stage[data-active-scene="sorahoshi"] .portal-input-hint {
    grid-column: 4;
    display: grid;
    padding: 5px;
    font-size: 0.55rem;
    line-height: 1.25;
  }
}

.scene--sorahoshi .scene-frame {
  container-name: scene-01-frame;
  container-type: size;
  background: var(--portal-paper);
}

.scene-art--sorahoshi::before,
.scene-art--sorahoshi::after {
  content: none;
}

.scene-01-visual-region {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--portal-paper);
}

.scene-01-artboard {
  --scene-01-layout-mode: semantic-priority;
  position: relative;
  width: 62%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  flex: 0 0 auto;
  aspect-ratio: var(--scene-01-design-ratio);
  overflow: hidden;
  background: var(--portal-paper);
  isolation: isolate;
  container-name: scene-01-artboard;
  container-type: size;
}

.scene-01-artboard::before,
.scene-01-artboard::after {
  position: absolute;
  inset-block: 0;
  pointer-events: none;
  content: "";
}

.scene-01-artboard::before {
  z-index: 0;
  inset-inline: 0;
  background: #080a09;
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 34% 100%);
}

.scene-01-artboard::after {
  z-index: 1;
  right: 0;
  width: 23%;
  background: var(--portal-blue);
  clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%);
}

/* WAAPI owns each outer shell. All static geometry, masks, texture and crop
   live on the inner visual nodes below. */
.scene--sorahoshi .scene-01-motion-shell {
  position: absolute;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
  overflow: hidden !important;
  aspect-ratio: auto !important;
  background: none !important;
  filter: none !important;
  clip-path: none !important;
  --scene-layer-rotate: 0deg;
}

.scene--sorahoshi .scene-layer.scene-01-motion-shell {
  display: block !important;
}

.scene--sorahoshi .scene-display.scene-01-motion-shell {
  color: inherit;
  font: inherit;
  line-height: normal;
  letter-spacing: normal;
  white-space: normal;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-stroke: 0;
  scale: none !important;
}

.scene-01-motion-shell--backdrop {
  z-index: 1;
}

.scene-01-motion-shell--display-back {
  z-index: 2;
}

.scene-01-motion-shell--ground {
  z-index: 3;
}

.scene-01-motion-shell--primary {
  z-index: 5;
}

.scene-01-motion-shell--display-front {
  z-index: 7;
  display: none !important;
}

.scene-01-visual-node,
.scene-display__visual-node {
  position: absolute;
  display: block;
}

.scene-01-visual-node--backdrop {
  top: -6%;
  right: 7%;
  width: 42%;
  height: 34%;
  overflow: hidden;
  background: var(--portal-blue);
  clip-path: circle(46% at 54% 44%);
  transform: rotate(-5deg);
  opacity: 0.2;
}

.scene-01-visual-node--backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 45%;
  filter: contrast(1.28) saturate(1.42) brightness(1.08);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.scene-display__visual-node {
  top: 7%;
  left: 8%;
  width: max-content;
  margin: 0;
  color: transparent;
  font-family: "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: clamp(4.4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.09em;
  white-space: nowrap;
  transform: scaleX(1.04);
  transform-origin: left top;
}

.scene-display__visual-node .scene-display__line {
  display: block;
  width: fit-content;
  background-image: url("/assets/images/scene-portal/scene-portal-title-universe-v1.webp");
  background-repeat: no-repeat;
  background-size: 102cqw auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(236, 240, 255, 0.6);
  filter: contrast(1.18) saturate(1.32) brightness(1.38);
}

.scene-display__visual-node .scene-display__line:first-child {
  background-position: 38% 16%;
  transform: rotate(-0.7deg);
}

.scene-display__visual-node .scene-display__line:last-child {
  margin-top: 0;
  background-position: 72% 84%;
  transform: rotate(0.8deg);
}

.scene-01-motion-shell--display-front .scene-display__visual-node {
  overflow: visible;
  contain: paint;
  clip-path: polygon(0 0, 52% 0, 52% 100%, 0 100%);
}

.scene-01-visual-node--ground {
  right: -7%;
  bottom: -31%;
  width: 92%;
  aspect-ratio: 3 / 2;
  overflow: visible;
  clip-path: polygon(0 56%, 20% 52%, 40% 42%, 65% 37%, 100% 40%, 100% 100%, 0 100%);
}

.scene-01-visual-node--ground img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: none !important;
  opacity: 1;
}

.scene-01-visual-node--rover {
  right: 2%;
  bottom: 8%;
  width: 35%;
  aspect-ratio: 740 / 605;
  overflow: visible;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.32));
}

.scene-01-visual-node--rover img {
  position: absolute;
  top: -34%;
  left: -49%;
  width: 208%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

/* Semantic Priority is the safe base and the no-container-query fallback.
   This opaque card is the explicit copy-safe region in constrained frames. */
.scene--sorahoshi .scene-copy--semantic {
  --scene-01-copy-safe-left: 16px;
  --scene-01-copy-safe-top: 16px;
  --scene-01-copy-safe-width: min(44%, 230px);
  position: absolute;
  z-index: 9;
  top: var(--scene-01-copy-safe-top);
  right: auto;
  bottom: auto;
  left: var(--scene-01-copy-safe-left);
  width: var(--scene-01-copy-safe-width);
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(242, 239, 231, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  color: #111;
  text-shadow: none;
}

.scene--sorahoshi .scene-copy--semantic .scene-eyebrow,
.scene--sorahoshi .scene-copy--semantic h2 {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

.scene--sorahoshi .scene-copy--semantic .scene-eyebrow {
  margin: 0 0 6px;
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.scene--sorahoshi .scene-copy--semantic h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.scene--sorahoshi .scene-copy--semantic .scene-descriptor {
  max-width: 24ch;
  margin: 8px 0 0;
  padding-bottom: 9px;
  font-size: clamp(0.96rem, 2vw, 1.28rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.scene--sorahoshi .scene-copy--semantic .scene-supporting {
  margin-top: 9px;
  font-size: clamp(0.76rem, 1.45vw, 0.92rem);
  line-height: 1.48;
}

.scene--sorahoshi .scene-copy--semantic .scene-status {
  position: static !important;
  width: fit-content !important;
  height: auto !important;
  margin: 8px 0 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  font-size: 0.58rem;
}

.scene--sorahoshi .scene-copy--semantic .scene-fallback-link {
  min-height: 44px;
  margin-top: 12px;
}

@supports (container-type: size) {
  .scene-01-artboard {
    width: min(62cqw, calc(100cqh * var(--scene-01-design-ratio-number)));
  }

  .scene-01-visual-node--backdrop {
    top: -6cqh;
    right: 7cqw;
    width: 42cqw;
    height: 34cqh;
  }

  .scene-display__visual-node {
    top: 7cqh;
    left: 8cqw;
    font-size: 22cqh;
  }

  .scene-01-visual-node--ground {
    right: -7cqw;
    bottom: -31cqh;
    width: 92cqw;
  }

  .scene-01-visual-node--rover {
    right: 2cqw;
    bottom: 8cqh;
    width: 35cqw;
  }

  /* Compact Editorial: height-aware fit, right anchored to reserve the
     left-lower copy-safe region without scaling semantic text or controls. */
  @container scene-01-frame (min-width: 760px) and (min-height: 500px) {
    .scene-01-artboard {
      --scene-01-layout-mode: compact-editorial;
      width: min(78cqw, calc(100cqh * var(--scene-01-design-ratio-number)));
    }

    .scene--sorahoshi .scene-index-label {
      top: 4.5cqh;
      right: auto;
      left: 3.5cqw;
    }

    .scene-display__visual-node {
      top: 7.5cqh;
      left: 9cqw;
      font-size: 24cqh;
      line-height: 0.94;
    }

    .scene-01-motion-shell--display-front {
      display: block !important;
    }

    .scene-01-visual-node--ground {
      bottom: -31cqh;
    }

    .scene-01-visual-node--rover {
      right: 14cqw;
      bottom: 7cqh;
      width: 39cqw;
    }

    .scene--sorahoshi .scene-copy--semantic {
      --scene-01-copy-safe-left: 4cqw;
      --scene-01-copy-safe-top: 50cqh;
      --scene-01-copy-safe-width: min(25cqw, 260px);
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .scene--sorahoshi .scene-copy--semantic .scene-eyebrow {
      font-size: clamp(0.62rem, 1.1cqw, 0.7rem);
    }

    .scene--sorahoshi .scene-copy--semantic h2 {
      font-size: clamp(1.08rem, 2.3cqw, 1.42rem);
    }

    .scene--sorahoshi .scene-copy--semantic .scene-descriptor {
      font-size: clamp(1rem, 2.35cqw, 1.35rem);
    }

    .scene--sorahoshi .scene-copy--semantic .scene-supporting {
      font-size: clamp(0.78rem, 1.35cqw, 0.94rem);
    }
  }

  /* Full Editorial is intentionally limited to the mock-like frame shape.
     Wider/shorter desktop frames remain Compact Editorial. */
  @container scene-01-frame (min-width: 1050px) and (min-height: 820px) and (max-aspect-ratio: 13 / 10) {
    .scene-01-artboard {
      --scene-01-layout-mode: full-editorial;
      width: min(100cqw, calc(100cqh * var(--scene-01-design-ratio-number)));
    }

    .scene--sorahoshi .scene-index-label {
      top: 7.5cqh;
      left: 4.7cqw;
    }

    .scene-display__visual-node {
      top: 13cqh;
      left: 3.1cqw;
      font-size: 26.2cqh;
      line-height: 1.02;
      transform: scaleX(1.05);
    }

    .scene-01-motion-shell--display-front .scene-display__visual-node {
      clip-path: polygon(0 0, 52% 0, 52% 100%, 0 100%);
    }

    .scene-01-visual-node--ground {
      bottom: -31cqh;
    }

    .scene-01-visual-node--rover {
      right: 14cqw;
      bottom: 7cqh;
      width: 39cqw;
    }

    .scene--sorahoshi .scene-copy--semantic {
      --scene-01-copy-safe-left: 4.7cqw;
      --scene-01-copy-safe-top: 67cqh;
      --scene-01-copy-safe-width: min(30cqw, 350px);
    }

    .scene--sorahoshi .scene-copy--semantic .scene-descriptor {
      font-size: clamp(1.2rem, 2.2cqw, 1.55rem);
    }
  }

  /* Portrait Semantic Priority stacks the artboard above the semantic card. */
  @container scene-01-frame (max-width: 479px) and (min-height: 480px) {
    .scene-01-visual-region {
      align-items: flex-start;
    }

    .scene-01-artboard {
      width: min(100cqw, calc(55cqh * var(--scene-01-design-ratio-number)));
    }

    .scene--sorahoshi .scene-copy--semantic {
      --scene-01-copy-safe-left: 16px;
      --scene-01-copy-safe-top: auto;
      --scene-01-copy-safe-width: calc(100% - 32px);
      top: auto;
      right: 16px;
      bottom: 16px;
    }
  }
}

/* Explicit non-container fallback stays in Semantic Priority. */
@supports not (container-type: size) {
  .scene-01-artboard {
    width: 62%;
  }

  .scene-01-motion-shell--display-front {
    display: none;
  }
}

@media (max-width: 479px) {
  .scene--sorahoshi .scene-index-label {
    top: 8px;
    right: 8px;
    left: auto;
    font-size: 0.62rem;
  }
}

@media (forced-colors: active) {
  .scene-01-artboard {
    background: Canvas;
  }

  .scene-01-artboard::before,
  .scene-01-artboard::after {
    display: none;
  }

  .scene--sorahoshi .scene-copy--semantic {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}

/* -------------------------------------------------------------------------- */
/* v13: mock-ratio refinements for Navi, Toolish Utility, and BUILD TRACE      */
/*                                                                            */
/* The approved 1486 x 1058 mock keeps the title envelope near 24% (Navi),     */
/* 26% (Toolish), and 27% (Trace) of each scene frame. The refinements below   */
/* preserve those envelopes while changing hierarchy, framing, and texture.   */
/* Scene 04 is intentionally absent from this layer.                           */
/* -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  /* Scene 02: keep the mock-sized title mass, enlarge the Navi line and its
     sky-filled cutout, and give the semantic copy a clean reading measure. */
  .scene-art--navi::after {
    background: rgba(2, 4, 9, 0.52) !important;
    clip-path: polygon(0 0, 64% 0, 52% 100%, 0 100%) !important;
  }

  .scene-display--navi {
    top: 15% !important;
    left: 5% !important;
    font-family: "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    font-size: clamp(10.5rem, 12.5vw, 11.75rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.075em;
  }

  .scene-display--navi span:first-child {
    transform: rotate(-0.2deg) !important;
  }

  .scene-display--navi span:last-child {
    margin-top: 0.035em !important;
    background-position: center 94% !important;
    background-size: 620px auto !important;
    transform: rotate(-2deg) scale(1.12) !important;
  }

  .scene-display--navi::after {
    position: absolute;
    top: 41%;
    left: 47%;
    color: #f2efe7;
    font-size: 0.34em;
    line-height: 1;
    letter-spacing: 0;
    -webkit-text-fill-color: #f2efe7;
    -webkit-text-stroke: 0.6px rgba(244, 241, 232, 0.72);
    content: "＊";
    transform: rotate(-8deg);
    transform-origin: center;
    pointer-events: none;
  }

  .scene--navi .scene-copy {
    top: 61.5% !important;
    width: min(40vw, 440px) !important;
  }

  .scene--navi .scene-descriptor {
    max-width: none;
    padding-bottom: 18px !important;
    font-size: clamp(1.16rem, 1.6vw, 1.48rem);
    font-weight: 800;
    line-height: 1.36;
    letter-spacing: -0.03em;
  }

  .scene--navi .scene-supporting {
    margin-top: 16px;
    font-size: clamp(0.9rem, 1.12vw, 1.02rem);
    line-height: 1.58;
  }

  .scene-product-screen--navi {
    right: -1.5% !important;
    bottom: -4% !important;
    width: min(54%, 620px) !important;
    border-width: 6px;
    border-radius: 15px 15px 0 0;
  }

  /* Scene 03: replace the tilted promotional-card treatment with a hard-edged
     utility console while retaining the mock's 86% x 30% title envelope. */
  .scene-art--toolish::before {
    z-index: 0;
    inset: 43% 0 0 auto !important;
    width: 72%;
    background: #090d12 !important;
    box-shadow: -12px 0 0 var(--portal-blue);
    clip-path: none !important;
  }

  .scene-art--toolish::after {
    display: none;
  }

  .scene-display--toolish {
    z-index: 2;
    filter: contrast(1.3) saturate(1.08) brightness(0.78) !important;
    letter-spacing: 0.01em;
  }

  .scene-product-screen--toolish {
    right: 0.5% !important;
    bottom: 1.8% !important;
    width: min(64.5%, 730px) !important;
    box-sizing: border-box;
    padding-top: 32px;
    overflow: hidden;
    border: 2px solid #11161d;
    border-radius: 0;
    background: #090d12;
    box-shadow: -12px 12px 0 var(--portal-blue);
    rotate: 0deg !important;
  }

  .scene-product-screen--toolish::before,
  .scene-product-screen--toolish::after {
    position: absolute;
    z-index: 2;
    top: 0;
    height: 30px;
    display: flex;
    align-items: center;
    color: #f4f1e8;
    font: 800 0.62rem/1 ui-monospace, Consolas, monospace;
    letter-spacing: 0.1em;
    pointer-events: none;
  }

  .scene-product-screen--toolish::before {
    left: 15px;
    content: "CIDR / SUBNET / RANGE";
  }

  .scene-product-screen--toolish::after {
    right: 15px;
    color: #7fa7ff;
    content: "LOCAL / STATIC";
  }

  .scene-product-screen--toolish img {
    filter: contrast(1.12) saturate(0.94) brightness(0.96);
  }

  .scene--toolish .scene-copy {
    top: 47% !important;
    width: min(29vw, 330px) !important;
  }

  .scene--toolish .scene-descriptor {
    max-width: 17ch;
    font-size: clamp(1.16rem, 1.62vw, 1.5rem);
    font-weight: 800;
    line-height: 1.36;
  }

  .scene--toolish .scene-supporting {
    font-size: clamp(0.9rem, 1.08vw, 1rem);
    line-height: 1.58;
  }

  /* Scene 05: make the page read as a build ledger. The title keeps the mock
     footprint; the evidence layers now lock to one deliberate process spine. */
  .scene-art--trace::before {
    z-index: 0;
    inset: 0 0 0 auto !important;
    width: 34%;
    background: #080b10 !important;
    box-shadow: -10px 0 0 var(--portal-blue);
    clip-path: none !important;
  }

  .scene-art--trace::after {
    position: absolute;
    z-index: 1;
    top: 5%;
    bottom: 5%;
    left: 64.5%;
    width: 2px;
    background: var(--portal-orange);
    content: "";
    pointer-events: none;
  }

  .scene-display--trace {
    top: 14.3% !important;
    left: 5.2% !important;
  }

  .scene-display--trace span:first-child {
    filter: brightness(1.32) saturate(1.08);
  }

  .scene-display--trace span:last-child {
    filter: brightness(0.76) saturate(0.94);
  }

  .scene-layer--trace-sketch {
    top: 1% !important;
    right: 3% !important;
    width: min(40%, 455px) !important;
    --scene-layer-rotate: -2deg;
    filter: drop-shadow(-10px 16px 0 rgba(18, 75, 212, 0.28));
  }

  .trace-note-fragment {
    top: 27% !important;
    right: 1.8% !important;
    width: min(29%, 330px) !important;
    box-sizing: border-box;
    padding: 13px 15px 16px;
    border-left: 5px solid var(--portal-orange);
    background: #080b10;
    box-shadow: -8px 8px 0 var(--portal-blue);
    color: #f4f1e8;
    counter-reset: trace-step;
  }

  .trace-note-fragment small {
    color: #8eb0ff;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .trace-note-fragment strong {
    position: relative;
    padding: 11px 0 0 30px;
    border-color: rgba(142, 176, 255, 0.28);
  }

  .trace-note-fragment strong::before {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--portal-orange);
    font: 900 0.62rem/1 ui-monospace, Consolas, monospace;
    counter-increment: trace-step;
    content: "0" counter(trace-step);
  }

  .scene-layer--trace-capture {
    right: -1% !important;
    bottom: 6% !important;
    width: min(39%, 445px) !important;
    height: 31% !important;
    border: 2px solid var(--portal-blue);
    box-shadow: none;
    --scene-layer-rotate: 0deg;
  }

  .scene-layer--trace-checklist {
    right: 30% !important;
    bottom: 3% !important;
    width: min(22%, 250px) !important;
    --scene-layer-rotate: -3deg;
  }

  .scene--trace .scene-copy {
    top: 61% !important;
    width: min(31vw, 350px) !important;
    box-sizing: border-box;
    padding-left: 18px;
    border-left: 5px solid var(--portal-blue);
  }
}

@media (max-width: 767px) {
  .scene-display--navi span:first-child {
    transform: rotate(-0.2deg) !important;
  }

  .scene-display--navi span:last-child {
    margin-top: 0.02em !important;
    background-position: center 94% !important;
    background-size: 360px auto !important;
    transform: rotate(-1.5deg) scale(1.12) !important;
  }

  .scene-display--navi::after {
    top: 43%;
    left: 52%;
    font-size: 0.34em;
  }

  .scene--navi .scene-descriptor {
    line-height: 1.38;
  }

  .scene-art--toolish::before {
    inset: 52% 0 0 !important;
    width: auto;
    background: #090d12 !important;
    box-shadow: 0 -7px 0 var(--portal-blue);
    clip-path: none !important;
  }

  .scene-product-screen--toolish {
    right: -14% !important;
    bottom: 22% !important;
    width: 100% !important;
    box-sizing: border-box;
    padding-top: 24px;
    border: 2px solid #11161d;
    border-radius: 0;
    box-shadow: -6px 6px 0 var(--portal-blue);
    rotate: 0deg !important;
  }

  .scene-product-screen--toolish::before,
  .scene-product-screen--toolish::after {
    position: absolute;
    z-index: 2;
    top: 0;
    height: 22px;
    display: flex;
    align-items: center;
    color: #f4f1e8;
    font: 800 0.5rem/1 ui-monospace, Consolas, monospace;
    letter-spacing: 0.06em;
    pointer-events: none;
  }

  .scene-product-screen--toolish::before {
    left: 9px;
    content: "CIDR / SUBNET / RANGE";
  }

  .scene-product-screen--toolish::after {
    right: 9px;
    color: #7fa7ff;
    content: "LOCAL";
  }

  .scene-art--trace::before {
    inset: 32% 0 0 auto !important;
    width: 42%;
    background: #080b10 !important;
    box-shadow: -6px 0 0 var(--portal-blue);
    clip-path: none !important;
  }

  .scene-art--trace::after {
    position: absolute;
    z-index: 1;
    top: 8%;
    bottom: 8%;
    left: 58%;
    width: 2px;
    background: var(--portal-orange);
    content: "";
    pointer-events: none;
  }

  .scene-layer--trace-sketch {
    --scene-layer-rotate: -2deg;
  }

  .scene-layer--trace-checklist {
    --scene-layer-rotate: -3deg;
  }

  .scene--trace .scene-copy {
    box-sizing: border-box;
    padding-left: 10px;
    border-left: 4px solid var(--portal-blue);
  }
}

@media (min-width: 1024px) and (max-height: 940px) {
  .portal-stage[data-active-scene="sorahoshi-navi"],
  .portal-stage[data-active-scene="toolish"],
  .portal-stage[data-active-scene="build-trace"] {
    --portal-cta-shift: 0px;
  }

  .portal-stage[data-active-scene="sorahoshi-navi"] .portal-control-cta,
  .portal-stage[data-active-scene="toolish"] .portal-control-cta,
  .portal-stage[data-active-scene="build-trace"] .portal-control-cta {
    --portal-cta-shift: 0px;
    bottom: calc(var(--portal-control-height) + 18px);
  }

  .scene-display--navi {
    top: 12% !important;
    font-size: clamp(8.6rem, 21vh, 10rem);
  }

  .scene-display--navi span:last-child {
    transform: rotate(-2deg) scale(1.08) !important;
  }

  .scene--navi .scene-copy {
    top: 60% !important;
  }

  .scene-product-screen--navi {
    width: min(52%, 560px) !important;
  }

  .scene-display--toolish {
    top: 10.5% !important;
    scale: 1.25 1.05 !important;
  }

  .scene-product-screen--toolish {
    width: min(61%, 690px) !important;
  }

  .scene-display--trace {
    top: 12.5% !important;
    scale: 1.24 0.86 !important;
  }
}

@media (forced-colors: active) {
  .scene-art--toolish::after,
  .scene-art--trace::after,
  .scene-product-screen--toolish::before,
  .scene-product-screen--toolish::after,
  .trace-note-fragment strong::before {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* v14: Scene 01 mock-ratio refinement                                         */
/*                                                                            */
/* Keep the shared portal chrome at its established scale while letting the   */
/* universe-filled two-line title occupy the same assertive share as the      */
/* approved Scene 01 composition.                                             */

@supports (container-type: size) {
  @container scene-01-frame (min-width: 760px) and (min-height: 500px) {
    .scene--sorahoshi .scene-display__visual-node {
      font-size: 24.8cqh;
      transform: scaleX(1.055);
    }
  }

  @container scene-01-frame (min-width: 1050px) and (min-height: 820px) and (max-aspect-ratio: 13 / 10) {
    .scene--sorahoshi .scene-display__visual-node {
      font-size: 26.7cqh;
      transform: scaleX(1.06);
    }
  }

  @container scene-01-frame (max-width: 479px) and (min-height: 480px) {
    .scene--sorahoshi .scene-display__visual-node {
      font-size: 27cqh;
      line-height: 0.92;
      transform: scaleX(1.055);
    }
  }
}

@media (min-width: 600px) and (max-width: 1023px) and (min-height: 700px) {
  .scene--sorahoshi .scene-display__visual-node {
    font-size: 28cqh;
    line-height: 0.92;
    transform: scaleX(1.055);
  }
}

/* -------------------------------------------------------------------------- */
/* v15: Scene 01 genuinely ultra-heavy title                                  */
/*                                                                            */
/* Use the locally available variable Japanese face for the actual glyph      */
/* weight. The restrained print edge keeps the universe texture legible       */
/* without using an artificial thick outline.                                 */

.scene--sorahoshi .scene-display__visual-node {
  font-family: "Noto Sans JP", "BIZ UDPGothic", "BIZ UDGothic", Meiryo, sans-serif;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  font-synthesis: none;
}

.scene--sorahoshi .scene-display__visual-node .scene-display__line {
  -webkit-text-stroke: clamp(1.4px, 0.17cqh, 1.9px) rgba(20, 47, 132, 0.9);
  paint-order: stroke fill;
}

/* -------------------------------------------------------------------------- */
/* v16: Scene 01 white cutout edge                                             */
/*                                                                            */
/* Keep the ultra-heavy glyph geometry and universe texture unchanged. Build  */
/* the white edge from the composited text silhouette so individual Japanese  */
/* stroke paths never receive internal white cross-lines.                     */

.scene--sorahoshi .scene-01-motion-shell--display-back .scene-display__line {
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter:
    contrast(1.18)
    saturate(1.32)
    brightness(1.38)
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.96))
    drop-shadow(1px 0 0 rgba(255, 255, 255, 0.96))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.96))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96));
}

.scene--sorahoshi .scene-01-motion-shell--display-front .scene-display__line {
  -webkit-text-stroke: 0;
  text-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* v17: cross-scene typography balance                                        */
/*                                                                            */
/* Keep Scene 01 as the visual-size reference. Navi keeps one Japanese title    */
/* and uses a deliberately offset Latin accent instead of a duplicate glyph;   */
/* Toolish and BDM grow to the same title mass without gaining a white edge.    */

/* restrained contrast edge so YNT WORKS reads as type instead of narrow bars. */

.scene-display--navi::after {
  content: none !important;
}

.scene-display--navi span {
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  filter:
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.96))
    drop-shadow(1px 0 0 rgba(255, 255, 255, 0.96))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.96))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.96));
}

.scene-display--navi span:last-child {
  position: relative;
  isolation: isolate;
  background-image: url("/assets/images/scene-portal/scene-universe-deep-blue-v1.webp") !important;
  background-position: center 48% !important;
  background-size: clamp(360px, 48vw, 700px) auto !important;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.98) !important;
  letter-spacing: 0.12em !important;
  paint-order: stroke fill;
  filter: none !important;
}

.scene-display--navi span:last-child::before {
  content: "NAVI";
  position: absolute;
  z-index: 1;
  top: 64%;
  left: 0.9em;
  display: block;
  background: none !important;
  color: #ff4528;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.34em;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0.16em;
  white-space: nowrap;
  opacity: 0.96;
  pointer-events: none;
  transform: rotate(-3deg);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #ff4528;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

@media (min-width: 768px) {

  .scene-display--toolish {
    top: 9% !important;
    scale: 1.31 2.72 !important;
    transform-origin: left top;
  }

  .scene-display--bdm {
    top: 9.5% !important;
    scale: 1.3 2.5 !important;
    transform-origin: left top;
  }

  .scene--toolish .scene-copy {
    top: 64% !important;
  }

  .scene--bdm .scene-copy {
    top: 62% !important;
  }

  .portal-stage[data-active-scene="toolish"],
  .portal-stage[data-active-scene="bdm-16"] {
    --portal-cta-shift: 0px;
  }

  .portal-stage[data-active-scene="toolish"] .portal-control-cta,
  .portal-stage[data-active-scene="bdm-16"] .portal-control-cta {
    --portal-cta-shift: 0px;
    bottom: calc(var(--portal-control-height) + 18px);
  }
}

@media (max-width: 767px) {
  .scene-display--toolish {
    top: 8% !important;
    scale: 1 2.45 !important;
    transform-origin: left top;
  }

  .scene-display--bdm {
    top: 8% !important;
    scale: 1.18 2.45 !important;
    transform-origin: left top;
  }
}

/* Seeded random editorial field v2 — deterministic geometry, authored card grammar. */
.scene-entrance-copy,
.portal-controls,
.portal-scene-nav,
.scene-copy--semantic,
.work-portal-header,
.work-copy,
.studio-summary,
.scene-portal-page .site-footer {
  font-family: var(--font-ui);
}

.work-portal-header h2,
.work-copy h3,
.studio-summary h2 {
  font-family: var(--font-display);
}

.work-portal-kicker,
.work-layout-status,
.work-kind,
.work-status,
.work-visual-code,
.work-visual-code span,
.work-visual-code small,
.scene-status:not(.scene-status--preview) {
  font-family: var(--font-mono);
}

.work-layout-status {
  border: 1px solid var(--studio-white);
  letter-spacing: 0.075em;
}

/* Keep mobile text reflow bounded when browser text sizing reaches 200%. */
@media (max-width: 520px) {
  .ynt-home-frame,
  .ynt-home-identity,
  .ynt-home-materials,
  .work-portal-header,
  .work-portal-header > *,
  .work-portal-intro {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ynt-home-title {
    max-width: 100%;
    font-size: min(24vw, 7rem);
  }

  .ynt-home-title span:last-child {
    transform: none;
  }

  .ynt-home-enter {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ynt-home-materials,
  .portal-stage,
  .scene-viewport {
    overflow-x: clip;
  }

  .ynt-home-process,
  .work-layout-status {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .work-portal-header h2 span {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .portal-rail ol {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .scene-display--toolish,
  .scene-display--bdm,
  .scene-display--trace {
    max-width: calc(100% - 36px);
    overflow: hidden;
  }
}

.works-frame[data-layout-mode="full"] .work-collection {
  grid-auto-rows: 92px;
  gap: 18px;
}

.works-frame[data-layout-mode="compact"] .work-collection {
  grid-auto-rows: 84px;
  gap: 14px;
}

.works-frame[data-layout-mode="full"] .work-item {
  padding: 18px;
}

.works-frame[data-layout-mode="compact"] .work-item {
  padding: 13px;
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="anchor"],
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="anchor"] {
  padding: 20px;
}

.works-frame[data-layout-mode="full"] .work-node,
.works-frame[data-layout-mode="compact"] .work-node {
  transform: translate(var(--seed-offset-x, 0), var(--seed-offset-y, 0)) rotate(var(--seed-rotation, 0deg));
}

.works-frame[data-layout-mode="full"] .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-node-surface {
  min-height: 0;
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="anchor"] .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="anchor"] .work-node-surface {
  box-shadow: 10px 10px 0 var(--studio-orange);
}

.works-frame[data-layout-mode="full"] .work-item[data-card-shape="anchor"] .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="anchor"] .work-node-surface,
.works-frame[data-layout-mode="full"] .work-item[data-card-shape="wide"] .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="wide"] .work-node-surface,
.works-frame[data-layout-mode="full"] .work-item[data-card-shape="landscape"] .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="landscape"] .work-node-surface {
  grid-template-columns: minmax(0, 1.24fr) minmax(190px, 0.76fr);
  grid-template-rows: 1fr;
}

.works-frame[data-layout-mode="full"] .work-item[data-card-shape="portrait"] .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="portrait"] .work-node-surface,
.works-frame[data-layout-mode="full"] .work-item[data-card-shape="square"] .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="square"] .work-node-surface {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(150px, 0.96fr) auto;
}

.works-frame[data-layout-mode="full"] .work-copy,
.works-frame[data-layout-mode="compact"] .work-copy {
  min-height: 0;
  padding: clamp(15px, 1.7cqw, 26px);
}

.works-frame[data-layout-mode="full"] .work-copy h3,
.works-frame[data-layout-mode="compact"] .work-copy h3 {
  margin: auto 0 0;
  font-size: clamp(1.35rem, 2.05cqw, 2.7rem);
  line-height: 0.98;
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="anchor"] .work-copy h3,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="anchor"] .work-copy h3 {
  font-size: clamp(2.25rem, 3.35cqw, 4.6rem);
}

.works-frame[data-layout-mode="full"] .work-description,
.works-frame[data-layout-mode="compact"] .work-description {
  display: none;
}

.works-frame[data-layout-mode="full"] .work-item[data-recency-tier="anchor"] .work-description,
.works-frame[data-layout-mode="compact"] .work-item[data-recency-tier="anchor"] .work-description,
.works-frame[data-layout-mode="full"] .work-item[data-card-shape="portrait"] .work-description {
  display: block;
}

.works-frame[data-layout-mode="full"] .work-descriptor,
.works-frame[data-layout-mode="compact"] .work-descriptor {
  margin-top: 9px;
  font-size: clamp(0.7rem, 0.83cqw, 0.88rem);
  line-height: 1.48;
}

.works-frame[data-layout-mode="full"] .work-status,
.works-frame[data-layout-mode="compact"] .work-status {
  min-height: 28px;
  margin-top: 12px;
}

.works-frame[data-layout-mode="full"] .work-cta,
.works-frame[data-layout-mode="compact"] .work-cta {
  min-height: 44px;
  margin-top: 12px;
  padding-inline: 13px;
}

.work-node--field-note .work-copy {
  border-left: 3px dashed #17140f;
}

.work-node--field-note .work-node-surface::before {
  content: "FIELD NOTE / 05";
  position: absolute;
  z-index: 18;
  top: 12px;
  right: 12px;
  padding: 5px 7px;
  color: #eee8da;
  background: #17140f;
  font: 800 0.58rem/1 var(--font-mono);
  letter-spacing: 0.09em;
  pointer-events: none;
}

.work-node--instrument .work-node-surface {
  grid-template-columns: minmax(0, 1.42fr) minmax(180px, 0.58fr);
}

.work-node--instrument .work-copy {
  border-left: 7px solid var(--studio-orange);
}

.work-node--product-fragment .work-copy {
  border-left: 2px solid #11100e;
}

.work-node--poster .work-node-surface {
  grid-template-columns: minmax(0, 1.36fr) minmax(180px, 0.64fr);
}

.work-node--poster .work-copy {
  border-left: 3px solid #11100e;
}

.work-node--map .work-copy {
  margin: 12px;
  border: 1px solid #fffdf7;
}

.works-frame[data-layout-mode="full"] .work-item[data-card-shape="portrait"] .work-node--instrument .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="portrait"] .work-node--instrument .work-node-surface,
.works-frame[data-layout-mode="full"] .work-item[data-card-shape="square"] .work-node--instrument .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="square"] .work-node--instrument .work-node-surface,
.works-frame[data-layout-mode="full"] .work-item[data-card-shape="portrait"] .work-node--poster .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="portrait"] .work-node--poster .work-node-surface,
.works-frame[data-layout-mode="full"] .work-item[data-card-shape="square"] .work-node--poster .work-node-surface,
.works-frame[data-layout-mode="compact"] .work-item[data-card-shape="square"] .work-node--poster .work-node-surface {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(150px, 0.96fr) auto;
}

.works-frame[data-layout-mode="mosaic"] .work-collection {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 18px;
}

.works-frame[data-layout-mode="mosaic"] .work-item,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="anchor"],
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="primary"] {
  grid-column: 1;
  grid-row: auto;
  min-height: 0;
  padding: 0;
}

.works-frame[data-layout-mode="mosaic"] .work-node {
  transform: none;
}

.works-frame[data-layout-mode="mosaic"] .work-node-surface,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="anchor"] .work-node-surface,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="primary"] .work-node-surface {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(190px, 52vw) auto;
  box-shadow: none;
}

.works-frame[data-layout-mode="mosaic"] .work-copy {
  min-height: 0;
  padding: clamp(18px, 5.5vw, 28px);
}

.works-frame[data-layout-mode="mosaic"] .work-copy h3,
.works-frame[data-layout-mode="mosaic"] .work-item[data-recency-tier="anchor"] .work-copy h3 {
  margin: 28px 0 0;
  font-size: clamp(1.85rem, 9vw, 3.4rem);
}

.works-frame[data-layout-mode="mosaic"] .work-description {
  display: block;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="visual-first"] .work-node-surface {
  grid-template-rows: minmax(190px, 52vw) auto;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="visual-copy"] .work-node-surface {
  grid-template-rows: minmax(170px, 42vw) auto;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="copy-first"] .work-copy {
  order: 0;
  grid-row: 1;
  border-bottom: 2px solid currentColor;
  border-left: 0;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="copy-first"] .work-node-surface {
  grid-template-rows: auto minmax(190px, 52vw);
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="copy-first"] .work-visual {
  grid-row: 2;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="compact-info"] .work-node-surface {
  grid-template-rows: minmax(150px, 36vw) auto;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="compact-info"] .work-description {
  display: none;
}

.works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="compact-info"] .work-copy h3 {
  margin-top: 18px;
}

.works-frame[data-layout-mode][data-layout-fallback] .work-collection,
.no-js .work-collection {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 18px;
}

.works-frame[data-layout-fallback] .work-item,
.no-js .work-item {
  grid-column: auto;
  grid-row: auto;
  min-height: 520px;
  padding: 0;
}

.works-frame[data-layout-fallback] .work-node,
.no-js .work-node {
  transform: none;
}

.works-frame[data-layout-fallback] .work-node-surface,
.works-frame[data-layout-fallback] .work-item[data-recency-tier] .work-node-surface,
.no-js .work-node-surface,
.no-js .work-item[data-recency-tier] .work-node-surface {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(230px, 0.9fr) auto;
}

.works-frame[data-layout-fallback] .work-copy,
.no-js .work-copy {
  min-height: 270px;
}

@container works-frame (min-width: 560px) and (max-width: 799px) {
  .works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="visual-copy"] .work-node-surface {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
    grid-template-rows: minmax(360px, auto);
  }

  .works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="copy-first"] .work-node-surface {
    grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
    grid-template-rows: minmax(360px, auto);
  }

  .works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="copy-first"] .work-copy {
    order: 0;
    grid-column: 1;
    grid-row: 1;
    border-right: 2px solid currentColor;
    border-bottom: 0;
  }

  .works-frame[data-layout-mode="mosaic"] .work-item[data-mobile-presentation="copy-first"] .work-visual {
    grid-column: 2;
    grid-row: 1;
  }
}

@container works-frame (max-width: 559px) {
  .works-frame[data-layout-mode="mosaic"] .work-node--instrument .work-node-surface,
  .works-frame[data-layout-mode="mosaic"] .work-node--poster .work-node-surface {
    grid-template-columns: 1fr;
  }

  .works-frame[data-layout-mode="mosaic"] .work-node--instrument .work-copy,
  .works-frame[data-layout-mode="mosaic"] .work-node--poster .work-copy,
  .works-frame[data-layout-mode="mosaic"] .work-node--product-fragment .work-copy,
  .works-frame[data-layout-mode="mosaic"] .work-node--field-note .work-copy {
    border-left: 0;
  }
}

@media (max-width: 800px) {
  .works-frame[data-layout-mode][data-layout-fallback] .work-collection,
  .no-js .work-collection {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-node {
    transition: none;
  }
}

@media (forced-colors: active) {
  .work-layout-status,
  .work-node-surface,
  .work-status,
  .work-cta,
  .work-node--map .work-copy {
    border-color: CanvasText;
  }

  .work-copy,
  .work-visual,
  .work-node--map .work-copy {
    color: CanvasText;
    background: Canvas;
  }
}
