/* S◎E Website Prototype v02
   Open index.html directly in Edge, Chrome, or Firefox.
   No build tools required.
*/

:root {
  color-scheme: light dark;
  --bg: #f6f2e8;
  --fg: #111111;
  --muted: rgba(17, 17, 17, 0.58);
  --line: rgba(17, 17, 17, 0.88);
  --panel: rgba(246, 242, 232, 0.80);
  --panel-strong: rgba(246, 242, 232, 0.94);
  --border: rgba(17, 17, 17, 0.15);
  --accent: rgba(17, 17, 17, 0.78);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #030306;
    --fg: #f4f1e8;
    --muted: rgba(244, 241, 232, 0.58);
    --line: rgba(244, 241, 232, 0.88);
    --panel: rgba(3, 3, 6, 0.74);
    --panel-strong: rgba(3, 3, 6, 0.92);
    --border: rgba(244, 241, 232, 0.15);
    --accent: rgba(244, 241, 232, 0.78);
  }
}

body.force-dark {
  --bg: #030306;
  --fg: #f4f1e8;
  --muted: rgba(244, 241, 232, 0.58);
  --line: rgba(244, 241, 232, 0.88);
  --panel: rgba(3, 3, 6, 0.74);
  --panel-strong: rgba(3, 3, 6, 0.92);
  --border: rgba(244, 241, 232, 0.15);
  --accent: rgba(244, 241, 232, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

#dimensionalCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  background: var(--bg);
}

.soe-ui {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  pointer-events: none;
}

.soe-mark {
  position: fixed;
  top: 25px;
  left: 28px;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.17em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: auto;
}

body.show-mark .soe-mark {
  opacity: 0.78;
  transform: translateY(0);
}

.dimension-menu {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 46px;
  height: 48px;
  border: 0;
  background: transparent;
  display: grid;
  gap: 5px;
  padding: 9px 0;
  cursor: pointer;
  pointer-events: auto;
}

.dimension-menu span {
  width: 35px;
  height: 1px;
  background: var(--line);
  display: block;
  transform-origin: right center;
  opacity: 0;
  transition: opacity 220ms ease, transform 320ms ease, width 320ms ease;
}

.dimension-menu[data-level="1"] span:nth-child(-n+1),
.dimension-menu[data-level="2"] span:nth-child(-n+2),
.dimension-menu[data-level="3"] span:nth-child(-n+3),
.dimension-menu[data-level="4"] span:nth-child(-n+4) {
  opacity: 0.86;
}

.dimension-menu[data-level="2"] span:nth-child(2) {
  width: 31px;
}

.dimension-menu[data-level="3"] span:nth-child(3) {
  width: 27px;
}

.dimension-menu[data-level="4"] span:nth-child(4) {
  width: 23px;
}

.dimension-menu:hover span {
  transform: scaleX(1.18);
}

.menu-panel {
  position: fixed;
  top: 82px;
  right: 26px;
  width: 235px;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 9px;
  opacity: 0;
  transform: translateY(-9px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.menu-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-panel a {
  color: var(--fg);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.menu-panel a:last-child {
  border-bottom: 0;
}

.menu-panel strong {
  font-size: 11px;
  letter-spacing: 0.18em;
}

.menu-panel em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scroll-stage {
  height: 260vh;
  position: relative;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}

.stage-copy {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(790px, 78vw);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 38px));
  transition: none;
  z-index: 3;
  pointer-events: none;
  will-change: opacity, transform;
}

.stage-copy.visible {
  opacity: 0.96;
}

.stage-copy p {
  margin: 0;
  font-size: clamp(22px, 3.7vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.simulator-entry {
}

.simulator-button,
.skip-button,
.control-panel button,
.suggestion-form button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-width: 140px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  color: var(--fg);
  background: var(--panel);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.skip-button {
  position: fixed;
  left: 28px;
  bottom: 24px;
  z-index: 12;
  margin: 0;
  opacity: 0.58;
}

.skip-button:hover,
.simulator-button:hover,
.control-panel button:hover,
.suggestion-form button:hover {
  opacity: 1;
}

.content-section {
  position: relative;
  z-index: 4;
  min-height: auto;
  padding: 54px min(4.5vw, 58px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.045), transparent 42%),
    var(--bg);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.section-kicker {
  display: inline-block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 44px);
  letter-spacing: 0.035em;
  line-height: 1.02;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 1.42;
}

.simulator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.5fr);
  gap: 14px;
  align-items: stretch;
}

.simulator-frame,
.study-card,
.suggestion-form,
.control-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.simulator-frame {
  min-height: clamp(360px, 54vh, 480px);
  padding: 0;
  overflow: hidden;
}

#torusCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.control-panel {
  padding: 12px;
  display: grid;
  gap: 9px;
  align-content: start;
}

.control-panel fieldset {
  border: 1px solid var(--border);
  padding: 9px 10px;
  margin: 0;
  display: grid;
  gap: 8px;
}

.control-panel legend {
  padding: 0 6px;
  color: var(--fg);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.76;
}

.control-panel label,
.suggestion-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-panel input[type="range"] {
  width: 100%;
  accent-color: var(--fg);
}

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
}

.note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
}

.study-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.video-wrapper {
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.13), transparent 31%),
    rgba(255,255,255,0.035);
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-wrapper p {
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.study-copy {
  padding: min(3vw, 28px);
}

.study-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.5vw, 34px);
  line-height: 1.08;
}

.study-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

blockquote {
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  color: var(--fg);
  font-size: clamp(14px, 1.45vw, 20px);
  line-height: 1.38;
}

blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  font-style: normal;
}

.suggestion-form {
  max-width: 720px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.suggestion-form input,
.suggestion-form select,
.suggestion-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.045);
  color: var(--fg);
  padding: 10px 11px;
  font: inherit;
}

.suggestion-form textarea {
  resize: vertical;
}

.site-footer {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}



.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 12;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  opacity: 0.72;
  transition: opacity 260ms ease, transform 260ms ease;
  animation: scrollHintPulse 2.4s ease-in-out infinite;
  pointer-events: auto;
}

.scroll-hint strong {
  color: var(--fg);
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
  animation: none;
}

@keyframes scrollHintPulse {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
}

.quick-actions a {
  min-width: 150px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  backdrop-filter: blur(18px);
}

.quick-actions strong,
.quick-actions span {
  display: block;
}

.quick-actions strong {
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.quick-actions span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-actions a:hover {
  border-color: rgba(255,255,255,0.28);
}

.simulator-frame {
  position: relative;
}

.simulator-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.28);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0.76;
  transition: opacity 220ms ease;
}

.simulator-hint.hidden {
  opacity: 0;
}

@media (max-width: 860px) {
  .scroll-hint {
    bottom: 22px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .simulator-grid,
  .study-card {
    grid-template-columns: 1fr;
  }

  .simulator-frame {
    min-height: 360px;
  }

  .content-section {
    padding: 52px 16px;
  }

  .soe-mark {
    left: 20px;
  }

  .dimension-menu {
    right: 20px;
  }

  .skip-button {
    left: 20px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dimension-menu span,
  .stage-copy,
  .soe-mark,
  .menu-panel {
    transition: none;
  }
}


/* v09 compact simulator fit */
.simulator-section {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.simulator-section .section-heading {
  margin-bottom: 16px;
}

.control-panel input[type="range"] {
  height: 16px;
}

.control-panel button {
  margin-top: 4px;
  min-width: 130px;
  padding: 9px 12px;
}

@media (min-width: 900px) and (max-height: 820px) {
  .content-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .section-heading h1 {
    font-size: clamp(22px, 2.7vw, 36px);
  }

  .section-heading p {
    font-size: 13px;
  }

  .simulator-frame {
    min-height: clamp(310px, 50vh, 420px);
  }

  .control-panel {
    gap: 7px;
  }

  .control-panel fieldset {
    padding: 7px 9px;
    gap: 6px;
  }

  .note {
    display: none;
  }
}


/* v10 staged functional menu */
.menu-panel a.menu-hidden {
  display: none;
}

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

.social-grid {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.social-grid a {
  min-height: 96px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  backdrop-filter: blur(18px);
}

.social-grid strong {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-grid em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* v19 multi-page structure and UX polish */

body.subpage {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.055), transparent 34%),
    radial-gradient(circle at 15% 80%, rgba(255,255,255,0.035), transparent 28%),
    var(--bg);
}

body.subpage .soe-ui {
  background: linear-gradient(to bottom, rgba(0,0,0,0.50), transparent);
}

body.subpage .menu-panel a.menu-hidden {
  display: flex;
}

.scroll-hint.hidden + main {
}

.about-grid,
.page-card-grid,
.media-grid,
.social-orbit {
  display: grid;
  gap: 14px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid article,
.page-panel,
.media-card,
.social-node {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.about-grid article {
  padding: 18px;
}

.about-grid strong,
.page-panel strong,
.media-card strong,
.social-node strong {
  display: block;
  color: var(--fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 8px;
}

.about-grid p,
.page-panel p,
.media-card p,
.social-node p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.page-hero {
  min-height: 68vh;
  padding: 130px min(6vw, 72px) 54px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0.55;
}

.page-hero .section-kicker {
  margin-bottom: 12px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.5;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-actions a,
.page-actions button {
  padding: 11px 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  cursor: pointer;
}

.page-content {
  padding: 54px min(6vw, 72px) 70px;
}

.page-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-panel {
  padding: 20px;
}

.one-d .page-hero::before {
  left: 10%;
  right: 10%;
  top: 50%;
  height: 0;
}

.one-d .page-hero::after {
  left: 50%;
  top: 18%;
  bottom: 18%;
  width: 0;
  opacity: 0.18;
}

.two-d .page-hero::before {
  width: min(56vw, 620px);
  height: min(56vw, 360px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.two-d .page-hero::after {
  width: min(44vw, 470px);
  height: min(44vw, 260px);
  left: 54%;
  top: 48%;
  transform: translate(-50%, -50%);
  opacity: 0.22;
}

.three-d .page-hero::before {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  right: 12%;
  top: 24%;
  transform: skewY(-8deg) rotate(8deg);
}

.three-d .page-hero::after {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  right: 17%;
  top: 33%;
  transform: skewY(-8deg) rotate(8deg);
  opacity: 0.26;
}

.chat-line-form {
  max-width: 860px;
  display: grid;
  gap: 14px;
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 24px;
}

.chat-line-form label,
.chat-line-form input,
.chat-line-form textarea,
.chat-line-form select {
  display: grid;
  width: 100%;
}

.chat-line-form label {
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-line-form input,
.chat-line-form textarea,
.chat-line-form select {
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.32);
  color: var(--fg);
  padding: 12px;
  font: inherit;
}

.media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-card {
  min-height: 260px;
  padding: 0;
  overflow: hidden;
}

.media-card video,
.media-card .media-placeholder {
  width: 100%;
  min-height: 250px;
  display: block;
  background: rgba(255,255,255,0.035);
}

.media-card .media-copy {
  padding: 18px;
}

.media-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

.social-orbit {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  perspective: 900px;
}

.social-node {
  min-height: 170px;
  padding: 20px;
  transform: translateZ(0);
}

.social-node:nth-child(2) {
  transform: translateY(18px) translateZ(30px);
}

.social-node:nth-child(3) {
  transform: translateY(-10px) translateZ(55px);
}

.social-node:nth-child(4) {
  transform: translateY(24px) translateZ(20px);
}

.subpage-footer {
  margin-top: 30px;
}

@media (max-width: 860px) {
  .about-grid,
  .page-card-grid,
  .media-grid,
  .social-orbit {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 58vh;
    padding-top: 112px;
  }

  .social-node,
  .social-node:nth-child(2),
  .social-node:nth-child(3),
  .social-node:nth-child(4) {
    transform: none;
  }
}


/* v20 polish */

.soe-mark {
  display: grid;
  gap: 2px;
}

.soe-mark span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  opacity: 0.82;
}

body.subpage .soe-mark {
  opacity: 0.78;
  transform: translateY(0);
}

.menu-panel a.active {
  border-color: rgba(255,255,255,0.18);
  color: var(--fg);
}

.menu-panel a.active em {
  color: var(--fg);
}

.menu-panel a.active::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  margin-right: 2px;
}

.arrival-section {
  min-height: 46vh;
  display: grid;
  align-content: center;
  padding-top: 48px;
  padding-bottom: 34px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,0.060), transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.026), transparent 48%),
    var(--bg);
}

.arrival-copy {
  max-width: 860px;
}

.arrival-copy h1 {
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.42;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.arrival-section .quick-actions {
  margin-top: 6px;
  margin-bottom: 0;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-actions button + .form-note {
  flex-basis: 100%;
}

@media (max-width: 860px) {
  .soe-mark span {
    display: none;
  }

  .arrival-section {
    min-height: 78vh;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .arrival-copy h1 {
    font-size: clamp(15px, 4.5vw, 22px);
  }

  .simulator-hint {
    left: 10px;
    right: 10px;
    text-align: center;
  }

  .site-footer {
    display: grid;
    justify-content: start;
  }
}


.footer-quote {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: var(--fg);
  opacity: 0.58;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: none;
  max-width: 980px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

@media (max-width: 860px) {
  .footer-quote {
    font-size: 10px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}


/* v22 simulator page separation */

.four-d .page-hero::before {
  width: min(46vw, 520px);
  height: min(46vw, 520px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.24;
}

.four-d .page-hero::after {
  width: min(34vw, 390px);
  height: min(34vw, 390px);
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.15;
}

.simulator-page-section {
  padding-top: 32px;
}

.simulator-page-section .simulator-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.48fr);
}

.simulator-page-section .simulator-frame {
  min-height: clamp(460px, 68vh, 720px);
}

.simulator-page-section .section-heading {
  max-width: 880px;
}

@media (max-width: 860px) {
  .simulator-page-section .simulator-frame {
    min-height: 420px;
  }
}

/* v23 safety: homepage animation is independent from standalone simulator. */


/* v24 spacing correction */

.about-section {
  padding-top: 34px;
}

.arrival-section + .about-section {
  margin-top: 0;
}

@media (max-width: 860px) {
  .arrival-section {
    min-height: 42vh;
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .about-section {
    padding-top: 30px;
  }
}


/* v25 header and simulator viewport correction */

/* Subpage headers were too large. Keep them ceremonial but not billboard-sized. */
.page-hero {
  min-height: 42vh;
  padding: 108px min(6vw, 72px) 38px;
}

.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.02;
}

.page-hero p {
  font-size: clamp(14px, 1.25vw, 18px);
  max-width: 780px;
}

.page-actions {
  margin-top: 18px;
}

/* The simulator page must be usable immediately on a 1080p screen. */
.four-d main {
  min-height: 100vh;
}

.simulator-page-section {
  min-height: calc(100vh - 84px);
  padding: 92px min(4vw, 52px) 24px;
  display: grid;
  align-content: start;
}

.simulator-compact-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 12px;
}

.simulator-compact-heading h1 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
}

.simulator-compact-heading p {
  max-width: 720px;
  font-size: clamp(12px, 1vw, 14px);
}

.simulator-actions {
  flex-shrink: 0;
  margin: 0;
}

.simulator-actions a {
  padding: 9px 11px;
  font-size: 10px;
}

.simulator-page-section .simulator-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.46fr);
  gap: 12px;
  align-items: stretch;
}

.simulator-page-section .simulator-frame {
  height: min(64vh, 620px);
  min-height: 0;
}

.simulator-page-section .control-panel {
  max-height: min(64vh, 620px);
  overflow: auto;
  padding: 10px;
  gap: 8px;
}

.simulator-page-section .control-panel fieldset {
  padding: 8px 9px;
  gap: 7px;
}

.simulator-page-section .control-panel button {
  margin-top: 4px;
}

.simulator-page-section .note {
  font-size: 10px;
  line-height: 1.35;
}

.four-d .site-footer {
  margin-top: 0;
}

@media (max-width: 860px) {
  .page-hero {
    min-height: 38vh;
    padding-top: 98px;
  }

  .page-hero h1 {
    font-size: clamp(28px, 10vw, 48px);
  }

  .simulator-page-section {
    padding-top: 86px;
  }

  .simulator-compact-heading {
    display: grid;
    align-items: start;
  }

  .simulator-actions {
    display: flex;
  }

  .simulator-page-section .simulator-grid {
    grid-template-columns: 1fr;
  }

  .simulator-page-section .simulator-frame {
    height: 48vh;
    min-height: 320px;
  }

  .simulator-page-section .control-panel {
    max-height: none;
  }
}

@media (min-width: 861px) and (max-height: 900px) {
  .simulator-page-section {
    padding-top: 76px;
    padding-bottom: 18px;
  }

  .simulator-page-section .simulator-frame,
  .simulator-page-section .control-panel {
    height: 58vh;
    max-height: 560px;
  }

  .simulator-compact-heading h1 {
    font-size: clamp(20px, 2vw, 30px);
  }

  .simulator-compact-heading p {
    font-size: 12px;
  }
}


/* v26 compact information-density pass */

/* Additional pages should be efficient, not poster-scale. */
.subpage .page-hero {
  min-height: auto;
  padding: 86px min(5vw, 56px) 24px;
  display: block;
}

.subpage .page-hero h1 {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
  margin-bottom: 8px;
  letter-spacing: 0.025em;
}

.subpage .page-hero p {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.45;
  max-width: 760px;
}

.subpage .page-actions {
  margin-top: 14px;
}

.subpage .page-actions a,
.subpage .page-actions button {
  padding: 9px 11px;
  font-size: 10px;
}

.subpage .page-content {
  padding: 26px min(5vw, 56px) 42px;
}

.subpage .section-heading h1 {
  font-size: clamp(22px, 2.2vw, 32px);
}

.subpage .section-heading p {
  font-size: clamp(12px, 1vw, 14px);
}

/* Simulator remains first-screen efficient on 1080p. */
.four-d .page-hero {
  display: none;
}

.simulator-page-section {
  min-height: calc(100vh - 70px);
  padding: 74px min(3.5vw, 46px) 18px;
}

.simulator-compact-heading {
  margin-bottom: 10px;
}

.simulator-compact-heading h1 {
  font-size: clamp(20px, 1.9vw, 28px);
  margin-bottom: 3px;
}

.simulator-compact-heading p {
  font-size: 12px;
  line-height: 1.35;
}

.simulator-page-section .simulator-frame {
  height: min(62vh, 590px);
}

.simulator-page-section .control-panel {
  max-height: min(62vh, 590px);
}

/* Give the 4D stage more physical scroll distance than the earlier stages. */
#threshold.scroll-stage {
  height: 410vh;
}

@media (max-width: 860px) {
  .subpage .page-hero {
    padding-top: 82px;
  }

  .subpage .page-hero h1 {
    font-size: clamp(24px, 8vw, 38px);
  }

  .subpage .page-content {
    padding-top: 22px;
  }

  .simulator-page-section {
    padding-top: 78px;
  }

  #threshold.scroll-stage {
    height: 340vh;
  }
}


/* v27 media page viewport correction */

/* The media page should show the complete video player without needing to scroll first. */
.two-d .page-hero {
  padding-top: 74px;
  padding-bottom: 12px;
}

.two-d .page-hero h1 {
  font-size: clamp(22px, 2.4vw, 32px);
  margin-bottom: 6px;
}

.two-d .page-hero p {
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.35;
  max-width: 820px;
}

.two-d .page-actions {
  margin-top: 10px;
}

.two-d .page-content {
  padding-top: 10px;
  padding-bottom: 26px;
}

.two-d .media-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 12px;
  align-items: start;
}

.two-d .media-card {
  overflow: hidden;
}

.two-d .media-card video,
.two-d .media-card .media-placeholder {
  width: 100%;
  height: min(42vh, 380px);
  min-height: 0;
  display: block;
  object-fit: contain;
  background: rgba(0,0,0,0.42);
}

.two-d .media-card .media-copy {
  padding: 12px 14px;
}

.two-d .media-card strong {
  font-size: 11px;
  margin-bottom: 5px;
}

.two-d .media-card p {
  font-size: 12px;
  line-height: 1.35;
}

@media (min-width: 861px) and (max-height: 900px) {
  .two-d .page-hero {
    padding-top: 68px;
    padding-bottom: 8px;
  }

  .two-d .page-content {
    padding-top: 8px;
  }

  .two-d .media-card video,
  .two-d .media-card .media-placeholder {
    height: min(39vh, 340px);
  }

  .two-d .media-card .media-copy {
    padding: 10px 12px;
  }
}

@media (max-width: 860px) {
  .two-d .media-grid {
    grid-template-columns: 1fr;
  }

  .two-d .media-card video,
  .two-d .media-card .media-placeholder {
    height: min(44vh, 360px);
  }
}


/* v28 hypercube scroll-room correction */

/* More physical scroll space before the final arrival card. */
#threshold.scroll-stage {
  height: 560vh;
}

@media (max-width: 860px) {
  #threshold.scroll-stage {
    height: 430vh;
  }
}

/* v28 media layout correction */

/*
  Revert toward the previous two-card media layout, but reduce the visible
  video/player height by about 50% so the entire playback window fits comfortably.
*/
.two-d .page-hero {
  padding-top: 78px;
  padding-bottom: 16px;
}

.two-d .page-content {
  padding-top: 14px;
  padding-bottom: 34px;
}

.two-d .media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.two-d .media-card video,
.two-d .media-card .media-placeholder {
  width: 100%;
  height: min(28vh, 220px);
  min-height: 0;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,0.42);
}

.two-d .media-card .media-copy {
  padding: 12px 14px;
}

@media (min-width: 861px) and (max-height: 900px) {
  .two-d .media-card video,
  .two-d .media-card .media-placeholder {
    height: min(25vh, 190px);
  }
}

@media (max-width: 860px) {
  .two-d .media-grid {
    grid-template-columns: 1fr;
  }

  .two-d .media-card video,
  .two-d .media-card .media-placeholder {
    height: min(34vh, 240px);
  }
}


/* v59: faster scroll travel while preserving the longer 4D hypercube dwell.
   Desktop is only slightly shortened; phone travel is greatly reduced so the page no longer takes excessive swipes. */
#threshold.scroll-stage,
#threshold.hypercube-scroll-stage {
  height: 1080vh !important;
}

@media (max-width: 1100px) {
  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 760vh !important;
  }
}

@media (max-width: 860px) {
  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 430vh !important;
  }
}

/* Return media to portrait-format cards, but at roughly half visual size. */
.two-d .page-hero {
  padding-top: 76px;
  padding-bottom: 12px;
}

.two-d .page-content {
  padding-top: 12px;
}

.two-d .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  justify-content: start;
  gap: 16px;
  align-items: start;
}

.two-d .media-card {
  width: 100%;
  max-width: 220px;
}

.two-d .media-card video,
.two-d .media-card .media-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  min-height: 0;
  max-height: 390px;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,0.42);
}

.two-d .media-card .media-copy {
  padding: 10px 11px;
}

.two-d .media-card strong {
  font-size: 10px;
  margin-bottom: 5px;
}

.two-d .media-card p {
  font-size: 11px;
  line-height: 1.35;
}

@media (min-width: 861px) and (max-height: 900px) {
  .two-d .media-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 190px));
  }

  .two-d .media-card {
    max-width: 190px;
  }
}

@media (max-width: 860px) {
  .two-d .media-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
  }

  .two-d .media-card {
    max-width: 190px;
  }
}


/* v31: true 0D menu state */

/* During 0D, the menu should not show the first 1D line. */
.menu-button[data-level="0"] .bar,
.dimensional-menu[data-level="0"] [data-menu-level] {
  opacity: 0;
  transform: scaleX(0);
  pointer-events: none;
}

.menu-button[data-level="0"] {
  opacity: 0.42;
}


/* v33 standardised compact subpage heading system */

.subpage .page-hero,
.subpage.one-d .page-hero,
.subpage.two-d .page-hero,
.subpage.three-d .page-hero,
.subpage.four-d .page-hero {
  min-height: auto !important;
  padding: 72px min(5vw, 56px) 14px !important;
  display: block !important;
  align-content: initial !important;
}

.subpage .page-hero .section-kicker,
.simulator-compact-heading .section-kicker {
  font-size: 10px !important;
  letter-spacing: 0.18em;
  margin-bottom: 7px !important;
}

.subpage .page-hero h1,
.subpage .section-heading h1,
.simulator-compact-heading h1 {
  font-size: clamp(22px, 2.15vw, 30px) !important;
  line-height: 1.08 !important;
  margin: 0 0 6px !important;
  letter-spacing: 0.025em !important;
}

.subpage .page-hero p,
.subpage .section-heading p,
.simulator-compact-heading p {
  font-size: clamp(12px, 0.95vw, 14px) !important;
  line-height: 1.38 !important;
  max-width: 780px !important;
}

.subpage .page-actions,
.simulator-actions {
  margin-top: 10px !important;
  gap: 8px !important;
}

.subpage .page-actions a,
.subpage .page-actions button,
.simulator-actions a {
  padding: 8px 10px !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
}

.subpage .page-content {
  padding-top: 18px !important;
}

/* Keep the simulator functional and compact while matching the subpage scale. */
.four-d .page-hero {
  display: none !important;
}

.simulator-page-section {
  padding-top: 72px !important;
}

.simulator-compact-heading {
  margin-bottom: 10px !important;
}

/* v33 cinematic treatment */

.cinematic-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 42%, rgba(0,0,0,0.18) 72%, rgba(0,0,0,0.46) 100%),
    linear-gradient(rgba(255,255,255,0.018) 50%, rgba(0,0,0,0.018) 50%);
  background-size: auto, 100% 3px;
  mix-blend-mode: normal;
  opacity: 0.48;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.025;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.9) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 74% 64%, rgba(255,255,255,0.75) 0 0.6px, transparent 0.7px),
    radial-gradient(circle at 38% 82%, rgba(255,255,255,0.65) 0 0.5px, transparent 0.6px);
  background-size: 19px 23px, 29px 31px, 37px 41px;
}

/* v33 hidden origin easter egg */

.brand-mark {
  cursor: pointer;
}

.brand-mark.origin-awake {
  text-shadow: 0 0 12px rgba(255,255,255,0.55);
}

.origin-easter-egg {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 30;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(420px, calc(100vw - 40px));
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(5,5,5,0.82);
  backdrop-filter: blur(22px);
  color: var(--fg);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

.origin-easter-egg.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.origin-easter-egg span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  font-size: 10px;
  margin-bottom: 10px;
}

.origin-easter-egg strong {
  display: block;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.origin-easter-egg em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

/* v33 keep accepted portrait media size while using standard page heading */
.two-d .media-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px)) !important;
}

.two-d .media-card {
  max-width: 220px !important;
}

.two-d .media-card video,
.two-d .media-card .media-placeholder {
  aspect-ratio: 9 / 16 !important;
  height: auto !important;
  max-height: 390px !important;
}

@media (max-width: 860px) {
  .subpage .page-hero,
  .subpage.one-d .page-hero,
  .subpage.two-d .page-hero,
  .subpage.three-d .page-hero,
  .subpage.four-d .page-hero {
    padding-top: 70px !important;
  }

  .subpage .page-hero h1,
  .subpage .section-heading h1,
  .simulator-compact-heading h1 {
    font-size: clamp(21px, 6.4vw, 28px) !important;
  }

  .cinematic-overlay {
    opacity: 0.36;
  }
}


/* v34 cinematic landing refinements */

:root {
  --arrival-reveal: 0;
  --field-glow: 0;
}

.stage-label {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 12;
  margin: 0;
  color: rgba(255,255,255,0.48);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease, color 280ms ease, text-shadow 280ms ease;
}

body:not(.show-mark) .stage-label {
  opacity: 0.62;
}

body[data-stage-level="4"] .stage-label {
  color: rgba(255,255,255,0.62);
  text-shadow: 0 0 calc(10px + 18px * var(--field-glow)) rgba(255,255,255,0.20);
}

#skipButton,
.skip-button {
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  border-color: rgba(255,255,255,0.16) !important;
  background: rgba(6,6,6,0.26) !important;
  backdrop-filter: blur(16px);
  opacity: 0.72;
}

#skipButton:hover,
.skip-button:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.34) !important;
}

.dimensional-menu a {
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.dimensional-menu a.menu-unlocked {
  border-color: rgba(255,255,255,0.42);
  box-shadow: 0 0 22px rgba(255,255,255,0.12);
}

.arrival-section {
  position: relative;
  overflow: hidden;
}

.arrival-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  transform: translate(-50%, -50%) scale(calc(0.82 + var(--arrival-reveal) * 0.18));
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,calc(0.05 + var(--arrival-reveal) * 0.08)), transparent 58%);
  opacity: calc(0.30 + var(--arrival-reveal) * 0.58);
  pointer-events: none;
}

.arrival-copy,
.arrival-section .quick-actions {
  position: relative;
  z-index: 1;
  opacity: calc(0.70 + var(--arrival-reveal) * 0.30);
  transform: translateY(calc((1 - var(--arrival-reveal)) * 10px));
}

.cinematic-overlay {
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,calc(var(--field-glow) * 0.035)), transparent 0 38%, rgba(0,0,0,0.18) 72%, rgba(0,0,0,0.46) 100%),
    linear-gradient(rgba(255,255,255,0.018) 50%, rgba(0,0,0,0.018) 50%);
  background-size: auto, 100% 3px;
}

.origin-easter-egg p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}


/* v35 correction pass */

/* Make the dimensional unlock pulse visible even when the menu is closed. */
.menu-button.menu-button-pulse {
  opacity: 1;
  box-shadow: 0 0 24px rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.32);
}

.menu-button.menu-button-pulse .bar {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 14px rgba(255,255,255,0.26);
}

/* Slightly calmer stage label so the opening feels smoother rather than busy. */
.stage-label {
  transition: opacity 420ms ease, transform 420ms ease, color 420ms ease, text-shadow 420ms ease;
}


/* v36 visible cinematic correction */

/*
  The earlier cinematic layer was too subtle and used variable/calc alpha in gradients,
  which can be inconsistent. This version uses simple, broadly-rendered CSS.
*/

.cinematic-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: normal;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.030) 0%, rgba(255,255,255,0.010) 24%, rgba(0,0,0,0.080) 58%, rgba(0,0,0,0.500) 100%);
}

.cinematic-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.075;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 50%, rgba(0,0,0,0.045) 50%);
  background-size: 100% 3px;
}

.cinematic-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.040;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.9) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 74% 64%, rgba(255,255,255,0.75) 0 0.6px, transparent 0.7px),
    radial-gradient(circle at 38% 82%, rgba(255,255,255,0.65) 0 0.5px, transparent 0.6px);
  background-size: 19px 23px, 29px 31px, 37px 41px;
}

body.stage-4d-active .cinematic-overlay {
  background:
    radial-gradient(circle at 50% 43%, rgba(255,255,255,0.072) 0%, rgba(255,255,255,0.024) 30%, rgba(0,0,0,0.060) 60%, rgba(0,0,0,0.460) 100%);
}

/* Remove the older body::after noise layer if present by visually neutralising it. */
body::after {
  opacity: 0 !important;
}

/* Skip animation button: top-only, clean, and visually unambiguous. */
#skipButton,
.skip-button {
  opacity: 0.88 !important;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

#skipButton.hidden,
.skip-button.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px);
}

/* Make the unlock pulse obvious enough to be noticed. */
.menu-button.menu-button-pulse {
  opacity: 1 !important;
  box-shadow: 0 0 34px rgba(255,255,255,0.26), 0 0 80px rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.48) !important;
}

.menu-button.menu-button-pulse .bar {
  background: rgba(255,255,255,1);
  box-shadow: 0 0 18px rgba(255,255,255,0.38);
}


/* v41 tidy simulator header + 20% tighter scroll response */

/* Overall scroll reaction tightened by 20%.
   Standard stages were 260vh, now 208vh.
   4D threshold was 1000vh, now 800vh. */
.scroll-stage {
  height: 208vh !important;
}

#threshold.scroll-stage,
#threshold.hypercube-scroll-stage {
  height: 800vh !important;
}

@media (max-width: 860px) {
  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 576vh !important;
  }
}

/* Tidy 4D simulator page header.
   The fixed S◎E mark was visually colliding with the simulator heading. */
body.four-d .simulator-page-section {
  padding-top: 124px !important;
  padding-left: min(5vw, 64px) !important;
  padding-right: min(5vw, 64px) !important;
}

body.four-d .simulator-compact-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px !important;
  max-width: none !important;
}

body.four-d .simulator-compact-heading .section-kicker {
  display: block;
  margin-bottom: 7px !important;
  font-size: 10px !important;
  letter-spacing: 0.20em !important;
}

body.four-d .simulator-compact-heading h1 {
  margin: 0 0 6px !important;
  font-size: clamp(26px, 3.1vw, 42px) !important;
  line-height: 1.02 !important;
}

body.four-d .simulator-compact-heading p {
  max-width: 880px !important;
  font-size: clamp(12px, 1vw, 15px) !important;
  line-height: 1.42 !important;
  white-space: normal !important;
}

body.four-d .simulator-actions {
  margin: 0 !important;
  justify-content: flex-end;
}

body.four-d .simulator-actions a {
  padding: 8px 10px !important;
  font-size: 10px !important;
}

/* Keep the fixed mark clear of the simulator heading. */
body.four-d .soe-mark {
  top: 22px !important;
  left: 28px !important;
}

body.four-d .soe-mark span {
  font-size: 7px !important;
  letter-spacing: 0.16em !important;
  opacity: 0.68 !important;
}

@media (max-width: 860px) {
  body.four-d .simulator-page-section {
    padding-top: 104px !important;
  }

  body.four-d .simulator-compact-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.four-d .simulator-actions {
    justify-content: flex-start;
  }
}


/* v42 cleanup: prevent filename/path/status text appearing at bottom of viewport */

.file-name,
.filename,
.file-path,
.media-filename,
.media-file-name,
.status-path,
.path-status,
.download-path,
.source-file,
.source-path {
  display: none !important;
}

/* Browser-local file path/status style artefacts should not be part of the site UI. */
[data-filename],
[data-file-name],
[data-filepath],
[data-file-path] {
  font-size: 0 !important;
}

/* Remove the old bottom canvas 0D/1D/2D/3D/4D marker area. Stage labels are handled by .stage-label. */
.stage-label {
  bottom: 28px !important;
}


/* v43 note:
   richer experience is canvas-native only.
   No visual CSS overlays are used for the landing animation. */


/* v45 refinement without Clean / Field toggle */

.arrival-line {
  margin-top: 12px !important;
  color: rgba(255,255,255,0.74) !important;
  font-size: clamp(13px, 1.2vw, 16px) !important;
  letter-spacing: 0.04em;
}

.begin-again-link {
  opacity: 0.82;
}

.begin-again-link:hover {
  opacity: 1;
}

/* Ensure any previous experimental mode toggle cannot appear. */
.field-mode-toggle {
  display: none !important;
}


/* v45 final toggle cleanup */
.field-mode-toggle {
  display: none !important;
}
.arrival-line {
  margin-top: 12px !important;
  color: rgba(255,255,255,0.74) !important;
  font-size: clamp(13px, 1.2vw, 16px) !important;
  letter-spacing: 0.04em;
}
.begin-again-link {
  opacity: 0.82;
}
.begin-again-link:hover {
  opacity: 1;
}


/* v46 interaction refinement:
   the cursor now pulls the field and locally swirls nearby particles. */


/* v47 production polish */

.entry-moment {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #050505;
  color: var(--fg);
  pointer-events: none;
  opacity: 1;
  transition: opacity 720ms ease, visibility 720ms ease;
}

.entry-moment.entry-complete {
  opacity: 0;
  visibility: hidden;
}

.entry-moment > div {
  grid-area: 1 / 1;
}

.entry-mark {
  font-size: clamp(34px, 6vw, 72px);
  letter-spacing: 0.14em;
  transform: translateY(-8px);
}

.entry-status {
  margin-top: 92px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.arrival-section {
  align-content: center;
}

.arrival-copy {
  max-width: 920px;
}

.arrival-line {
  margin-top: 18px !important;
  color: rgba(255,255,255,0.78) !important;
  font-size: clamp(14px, 1.3vw, 18px) !important;
  letter-spacing: 0.045em;
}

.arrival-section .quick-actions {
  margin-top: 34px;
}

.arrival-quote {
  margin: 38px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
}

.arrival-quote blockquote {
  margin: 0;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.arrival-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
  color: rgba(255,255,255,0.42);
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

body[data-device-tier="phone"] .stage-label {
  bottom: 20px !important;
  font-size: 9px;
}

@media (max-width: 720px) {
  .arrival-section .quick-actions {
    margin-top: 24px;
  }

  .arrival-quote {
    margin-top: 28px;
    padding: 0 18px;
  }

  .entry-status {
    margin-top: 76px;
  }
}


/* v48 entry correction:
   S◎E / initialising field now lasts 2 seconds total, then disappears completely. */

.entry-moment {
  opacity: 0;
  visibility: visible !important;
  animation: soeEntryMoment 2s ease forwards !important;
}

.entry-moment.entry-complete {
  opacity: 0 !important;
  visibility: hidden !important;
}

.entry-mark {
  position: relative;
  animation: soeEntryMarkShimmer 2s ease forwards !important;
  text-shadow: 0 0 0 rgba(255,255,255,0);
}

.entry-status {
  animation: soeEntryStatus 2s ease forwards !important;
}

@keyframes soeEntryMoment {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  62% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes soeEntryMarkShimmer {
  0% {
    opacity: 0;
    filter: blur(4px);
    letter-spacing: 0.22em;
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  22% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0.14em;
    text-shadow: 0 0 18px rgba(255,255,255,0.20);
  }
  48% {
    text-shadow: 0 0 28px rgba(255,255,255,0.34);
  }
  72% {
    opacity: 1;
    text-shadow: 0 0 14px rgba(255,255,255,0.18);
  }
  100% {
    opacity: 0;
    filter: blur(3px);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
}

@keyframes soeEntryStatus {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  24% {
    opacity: 0;
    transform: translateY(5px);
  }
  42% {
    opacity: 0.68;
    transform: translateY(0);
  }
  68% {
    opacity: 0.68;
  }
  100% {
    opacity: 0;
    transform: translateY(-3px);
  }
}

/* Keep the entry moment animated even if global reduced-motion cleanup is active,
   but still very short and non-aggressive. */
body.reduced-motion .entry-moment,
body.reduced-motion .entry-mark,
body.reduced-motion .entry-status {
  animation-duration: 1.2s !important;
}


/* v49 startup safety:
   if canvas JavaScript fails, this dot prevents the intro from fading to pure blank. */

.fallback-origin-dot {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 0 16px rgba(255,255,255,0.22);
  z-index: 2;
  opacity: 1;
  pointer-events: none;
}

body.canvas-running .fallback-origin-dot {
  display: none;
}

.entry-moment {
  pointer-events: none !important;
}

.entry-moment.entry-complete {
  opacity: 0 !important;
  visibility: hidden !important;
}


/* v50 subpage premium pass */

body.subpage {
  isolation: isolate;
}

.subpage-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.subpage-field span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.65;
}

.subpage-field span:nth-child(1) {
  width: min(30vw, 340px);
  box-shadow: 0 0 80px rgba(255,255,255,0.035);
}

.subpage-field span:nth-child(2) {
  transform: translate(-50%, -50%) rotateX(68deg);
}

.subpage-field span:nth-child(3) {
  transform: translate(-50%, -50%) rotateY(64deg);
  opacity: 0.38;
}

body.subpage main,
body.subpage header,
body.subpage footer {
  position: relative;
  z-index: 2;
}

.page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.page-hero > .dimension-identity {
  justify-self: end;
}

.dimension-identity {
  width: min(100%, 330px);
  min-height: 220px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.075), transparent 42%),
    rgba(3,3,6,0.46);
  backdrop-filter: blur(18px);
  display: grid;
  align-content: end;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.dimension-identity::before,
.dimension-identity::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.13);
}

.dimension-identity span {
  position: absolute;
  left: 20px;
  top: 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.dimension-identity strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dimension-identity p {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--muted);
}

.dimension-identity.one-line::before {
  left: 28px;
  right: 28px;
  top: 50%;
  height: 0;
}

.dimension-identity.two-frame::before {
  width: 54%;
  height: 54%;
  left: 23%;
  top: 18%;
}

.dimension-identity.two-frame::after {
  width: 40%;
  height: 40%;
  left: 33%;
  top: 28%;
  opacity: 0.42;
}

.dimension-identity.three-form::before {
  width: 46%;
  height: 46%;
  right: 24%;
  top: 20%;
  transform: skewY(-8deg) rotate(8deg);
}

.dimension-identity.three-form::after {
  width: 46%;
  height: 46%;
  right: 14%;
  top: 31%;
  transform: skewY(-8deg) rotate(8deg);
  opacity: 0.40;
}

.dimension-identity.four-field::before {
  width: 42%;
  height: 42%;
  left: 27%;
  top: 22%;
  transform: rotate(45deg);
}

.dimension-identity.four-field::after {
  width: 58%;
  height: 58%;
  left: 20%;
  top: 14%;
  border-radius: 50%;
  opacity: 0.42;
}

.simulator-identity {
  margin-bottom: 16px;
  width: 100%;
  min-height: 148px;
}

.signal-guide,
.release-rail,
.publishing-map,
.instrument-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.signal-guide article,
.release-rail article,
.publishing-map article,
.instrument-status article {
  border: 1px solid rgba(255,255,255,0.115);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    rgba(3,3,6,0.38);
  backdrop-filter: blur(18px);
  padding: 18px;
  min-height: 132px;
}

.signal-guide article span,
.release-rail article span,
.publishing-map article span,
.instrument-status article span {
  display: block;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.42);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-guide article strong,
.release-rail article strong,
.publishing-map article strong,
.instrument-status article strong {
  display: block;
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-guide article p,
.release-rail article p,
.publishing-map article p,
.instrument-status article p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.chat-line-form {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.050), transparent 38%),
    rgba(3,3,6,0.30);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.11);
  border-left: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(18px);
}

.media-card,
.social-node,
.page-panel {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.media-card:hover,
.social-node:hover,
.page-panel:hover,
.signal-guide article:hover,
.release-rail article:hover,
.publishing-map article:hover,
.instrument-status article:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.22);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.060), rgba(255,255,255,0.018)),
    rgba(3,3,6,0.46);
}

.social-node {
  text-decoration: none;
}

body.subpage .site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero > .dimension-identity {
    justify-self: start;
  }

  .signal-guide,
  .release-rail,
  .publishing-map,
  .instrument-status {
    grid-template-columns: 1fr;
  }

  .dimension-identity {
    min-height: 190px;
  }
}

@media (max-width: 620px) {
  .page-hero {
    padding-top: 108px;
  }

  .dimension-identity {
    width: 100%;
  }

  .chat-line-form {
    padding: 18px;
  }
}


/* v51 menu restoration:
   keep the dimensional menu above subpage field layers and content. */

body.subpage .soe-ui,
.soe-ui {
  position: fixed;
  z-index: 90 !important;
  pointer-events: none;
}

body.subpage .soe-mark,
body.subpage .dimension-menu,
body.subpage .menu-panel,
.soe-mark,
.dimension-menu,
.menu-panel {
  pointer-events: auto;
}

.dimension-menu {
  z-index: 96 !important;
}

.menu-panel {
  z-index: 97 !important;
}

body.subpage main,
body.subpage footer {
  position: relative;
  z-index: 2;
}

body.subpage header.soe-ui {
  position: fixed;
  z-index: 90 !important;
}

/* Make opened panel feel deliberate and ensure it receives clicks. */
.menu-panel.open {
  pointer-events: auto !important;
}


/* v52 content and publishing readiness */

.media-archive {
  display: grid;
  gap: 24px;
}

.archive-heading {
  max-width: 820px;
  margin-bottom: 6px;
}

.archive-heading span,
.release-hero-copy span,
.still-card span,
.production-notes span,
.assistant-gateway span,
.release-notes-list article span,
.social-node span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.42);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.archive-heading h2,
.assistant-gateway h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.04em;
}

.archive-heading p,
.release-hero-copy p,
.assistant-gateway p {
  color: var(--muted);
}

.release-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(3,3,6,0.38);
  backdrop-filter: blur(18px);
  padding: 16px;
}

.release-hero-card video {
  width: 100%;
  min-height: 320px;
  background: #000;
  object-fit: cover;
}

.release-hero-copy {
  display: grid;
  align-content: end;
  padding: 20px;
}

.release-hero-copy strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.02em;
}

.still-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.still-card,
.production-notes article,
.assistant-gateway,
.release-notes-list article {
  border: 1px solid rgba(255,255,255,0.115);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    rgba(3,3,6,0.38);
  backdrop-filter: blur(18px);
}

.still-card {
  overflow: hidden;
}

.still-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.still-card div {
  padding: 18px;
}

.still-card strong,
.production-notes strong,
.release-notes-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.still-card p,
.production-notes p,
.release-notes-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.production-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.production-notes article,
.release-notes-list article {
  padding: 18px;
}

.assistant-gateway {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 20px;
  padding: 24px;
  margin-bottom: 22px;
}

.assistant-gateway ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  align-content: center;
}

.assistant-gateway li {
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.assistant-gateway li::before {
  content: "•";
  color: rgba(255,255,255,0.38);
  margin-right: 10px;
}

.social-node.coming-soon {
  cursor: default;
}

.social-node.coming-soon span {
  margin-bottom: 16px;
}

.release-notes-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.release-hero {
  display: block;
}

.site-footer a + a {
  margin-left: 18px;
}

@media (max-width: 980px) {
  .release-hero-card,
  .assistant-gateway {
    grid-template-columns: 1fr;
  }

  .still-grid,
  .production-notes,
  .release-notes-list {
    grid-template-columns: 1fr;
  }

  .release-hero-card video {
    min-height: 220px;
  }
}


/* v53 refinement:
   first 1D text arrives sooner after line formation.
   simulator menu now uses only the shared subpage-menu.js handler. */


/* v54 easter egg restoration */

.origin-note {
  position: fixed;
  left: 50%;
  bottom: 34px;
  width: min(460px, calc(100vw - 34px));
  transform: translate(-50%, 18px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.07), transparent 48%),
    rgba(5,5,7,0.82);
  backdrop-filter: blur(22px);
  padding: 22px 46px 22px 22px;
  transition: opacity 240ms ease, transform 240ms ease;
  color: var(--fg);
}

.origin-note.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.origin-note span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.48);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.origin-note p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  line-height: 1.55;
}

.origin-note p:last-child {
  margin-bottom: 0;
}

.origin-note-close {
  position: absolute;
  right: 13px;
  top: 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.56);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.origin-note-close:hover {
  color: rgba(255,255,255,0.90);
}


/* v55 easter egg relocation:
   the easter egg now lives in a separate hidden S◎E logo instance,
   not the linked header logo. */

.origin-egg-logo {
  display: block;
  margin: 30px auto 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.16);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.24em;
  cursor: pointer;
  opacity: 0.34;
  transition: opacity 180ms ease, color 180ms ease, text-shadow 180ms ease;
}

.origin-egg-logo:hover {
  opacity: 0.62;
  color: rgba(255,255,255,0.42);
  text-shadow: 0 0 16px rgba(255,255,255,0.18);
}

.origin-egg-logo:focus-visible {
  outline: 1px solid rgba(255,255,255,0.38);
  outline-offset: 6px;
}

.origin-note {
  position: fixed;
  left: 50%;
  bottom: 34px;
  width: min(460px, calc(100vw - 34px));
  transform: translate(-50%, 18px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.07), transparent 48%),
    rgba(5,5,7,0.82);
  backdrop-filter: blur(22px);
  padding: 22px 46px 22px 22px;
  transition: opacity 240ms ease, transform 240ms ease;
  color: var(--fg);
}

.origin-note.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}


/* v56 easter egg relocation:
   the easter egg is now hidden in the brief canvas S◎E 2026 mark. */

.hypercube-egg-hotspot {
  position: fixed;
  left: 50%;
  top: 52px;
  width: 168px;
  height: 48px;
  transform: translateX(-50%);
  z-index: 30;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  cursor: default;
  opacity: 0;
  pointer-events: auto;
}

.hypercube-egg-hotspot span {
  opacity: 0;
}

.hypercube-egg-hotspot:focus-visible {
  outline: 1px solid rgba(255,255,255,0.24);
  outline-offset: 4px;
}

/* Remove the v55 separate easter egg logo from visual use if cached markup exists. */
.origin-egg-logo {
  display: none !important;
}


/* v57 simulator control repair and live slider feedback */
.control-panel label {
  position: relative;
  padding-right: 48px;
}

.control-panel .control-value {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 36px;
  text-align: right;
  color: rgba(255,255,255,0.72);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.control-panel input[type="range"] {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.control-panel input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, rgba(255,255,255,0.68) var(--soe-slider-fill, 50%), rgba(255,255,255,0.14) var(--soe-slider-fill, 50%));
  height: 4px;
  border-radius: 999px;
}

.control-panel input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, rgba(255,255,255,0.68) var(--soe-slider-fill, 50%), rgba(255,255,255,0.14) var(--soe-slider-fill, 50%));
  height: 4px;
  border-radius: 999px;
}

/* v60: lock the refined dimensional text and final scroll response.
   This block deliberately sits at the end of the file so older v41/v59 overrides cannot win. */
#threshold.scroll-stage,
#threshold.hypercube-scroll-stage {
  height: 800vh !important;
}

@media (max-width: 1100px) {
  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 650vh !important;
  }
}

@media (max-width: 860px) {
  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 490vh !important;
  }
}

@media (max-width: 560px) {
  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 490vh !important;
  }

  .stage-copy p {
    font-size: clamp(25px, 8.4vw, 40px);
    line-height: 1.08;
  }
}


/* v63 applied refinements
   - Mobile wordmark: central O/◎ in SOE matches S/E height.
   - Mobile scroll: more native response, less forced smoothing.
   - Media page: current release heading and video scaled down.
   - Hypercube: actual phase timing handled in main.js, not by scroll height alone.
*/
.soe-mark .soe-wordmark {
  display: inline-flex !important;
  align-items: center;
  gap: 0.055em;
  color: var(--fg) !important;
  font-size: inherit !important;
  line-height: 1 !important;
  letter-spacing: inherit !important;
  font-weight: inherit !important;
  opacity: 1 !important;
}

.soe-mark .soe-torus-o,
.entry-mark .soe-torus-o {
  display: inline-block !important;
  color: inherit !important;
  font-size: 1.18em !important;
  line-height: 0.82 !important;
  letter-spacing: 0 !important;
  font-weight: inherit !important;
  opacity: 1 !important;
  transform: translateY(0.015em);
}

.soe-mark .soe-tagline {
  display: block !important;
  font-size: 8px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--muted) !important;
  font-weight: 500 !important;
  opacity: 0.82 !important;
}

.entry-mark {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.055em;
}

@media (max-width: 860px) {
  .soe-mark .soe-tagline {
    display: none !important;
  }

  .soe-mark .soe-wordmark {
    display: inline-flex !important;
  }

  .soe-mark .soe-torus-o {
    font-size: 1.22em !important;
    transform: translateY(0.02em);
  }
}

/* Keep the full dimensional page but reduce the mobile forced-scroll feeling. */
@media (max-width: 860px) {
  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 420vh !important;
  }
}

@media (max-width: 560px) {
  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 410vh !important;
  }
}

/* Media page scaling correction. */
.two-d .archive-heading h2 {
  font-size: clamp(20px, 2.05vw, 28px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0.015em !important;
  margin-bottom: 8px !important;
}

.two-d .release-hero-card {
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) !important;
  max-width: 780px !important;
  align-items: center !important;
  gap: 16px !important;
}

.two-d .release-hero-card video {
  width: 100% !important;
  max-width: 340px !important;
  min-height: 0 !important;
  max-height: 420px !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.two-d .release-hero-copy {
  align-content: center !important;
  padding: 14px !important;
}

@media (max-width: 980px) {
  .two-d .release-hero-card {
    grid-template-columns: 1fr !important;
    max-width: 440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .two-d .release-hero-card video {
    max-width: 280px !important;
    max-height: 56vh !important;
  }
}


/* v64 typography and native mobile scroll consolidation
   Purpose:
   - single site-wide typography scale
   - consistent card, button, label, and heading treatment
   - safer system font stack with no external dependency
   - mobile landing scroll closer to native finger movement
*/
:root {
  --soe-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --soe-font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --soe-text-hero: clamp(25px, 3.7vw, 52px);
  --soe-text-page-title: clamp(23px, 2.25vw, 32px);
  --soe-text-section-title: clamp(20px, 1.9vw, 28px);
  --soe-text-card-title: 12px;
  --soe-text-body: clamp(12.5px, 0.98vw, 14.5px);
  --soe-text-small: 11px;
  --soe-text-label: 10px;

  --soe-leading-tight: 1.08;
  --soe-leading-body: 1.48;
  --soe-leading-loose: 1.62;

  --soe-tracking-wordmark: 0.17em;
  --soe-tracking-title: 0.025em;
  --soe-tracking-label: 0.16em;
  --soe-tracking-button: 0.12em;

  --soe-radius-panel: 0px;
  --soe-panel-border: 1px solid rgba(255,255,255,0.115);
  --soe-panel-bg: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)), rgba(3,3,6,0.38);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--soe-font-body) !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: var(--soe-text-body);
  line-height: var(--soe-leading-body);
}

.soe-mark,
.entry-mark,
.stage-copy p,
.page-hero h1,
.section-heading h1,
.archive-heading h2,
.assistant-gateway h2,
.release-hero-copy strong,
.simulator-compact-heading h1,
.arrival-copy h1 {
  font-family: var(--soe-font-display) !important;
}

.stage-copy p {
  font-size: var(--soe-text-hero) !important;
  line-height: var(--soe-leading-tight) !important;
  letter-spacing: 0.012em !important;
  font-weight: 500 !important;
}

.soe-mark {
  letter-spacing: var(--soe-tracking-wordmark) !important;
  font-weight: 650 !important;
}

.soe-wordmark {
  font-variant-ligatures: none;
}

.soe-mark .soe-torus-o,
.entry-mark .soe-torus-o {
  font-size: 1.18em !important;
  line-height: 0.86 !important;
  vertical-align: -0.015em;
}

.subpage .page-hero h1,
.subpage .section-heading h1,
.simulator-compact-heading h1,
.archive-heading h2,
.assistant-gateway h2 {
  font-size: var(--soe-text-page-title) !important;
  line-height: 1.08 !important;
  letter-spacing: var(--soe-tracking-title) !important;
  font-weight: 560 !important;
  margin-bottom: 8px !important;
}

.archive-heading h2,
.assistant-gateway h2,
.release-hero-copy strong {
  font-size: var(--soe-text-section-title) !important;
  letter-spacing: var(--soe-tracking-title) !important;
  line-height: 1.12 !important;
  font-weight: 560 !important;
}

.subpage .page-hero p,
.subpage .section-heading p,
.simulator-compact-heading p,
.archive-heading p,
.release-hero-copy p,
.assistant-gateway p,
.about-grid p,
.page-panel p,
.media-card p,
.social-node p,
.signal-guide article p,
.release-rail article p,
.publishing-map article p,
.instrument-status article p,
.still-card p,
.production-notes p,
.release-notes-list p {
  font-size: var(--soe-text-body) !important;
  line-height: var(--soe-leading-body) !important;
  letter-spacing: 0.015em !important;
}

.section-kicker,
.archive-heading span,
.release-hero-copy span,
.still-card span,
.production-notes span,
.assistant-gateway span,
.release-notes-list article span,
.social-node span,
.dimension-identity span,
.control-panel legend,
.control-panel label,
.chat-line-form label,
.form-note,
.scroll-hint,
.stage-label,
.footer-quote,
.site-footer {
  font-size: var(--soe-text-label) !important;
  letter-spacing: var(--soe-tracking-label) !important;
  text-transform: uppercase;
  font-weight: 500 !important;
}

.stage-label {
  opacity: 0.54;
}

.page-actions a,
.page-actions button,
.quick-actions a,
.simulator-button,
.skip-button,
.control-panel button,
.suggestion-form button {
  font-size: var(--soe-text-label) !important;
  letter-spacing: var(--soe-tracking-button) !important;
  font-weight: 560 !important;
}

.quick-actions strong,
.quick-actions span {
  letter-spacing: var(--soe-tracking-button) !important;
}

.about-grid article,
.page-panel,
.media-card,
.social-node,
.signal-guide article,
.release-rail article,
.publishing-map article,
.instrument-status article,
.still-card,
.production-notes article,
.release-notes-list article,
.assistant-gateway,
.release-hero-card,
.control-panel,
.simulator-frame,
.suggestion-form,
.dimension-identity {
  border: var(--soe-panel-border) !important;
  background: var(--soe-panel-bg) !important;
  border-radius: var(--soe-radius-panel) !important;
}

.about-grid strong,
.page-panel strong,
.media-card strong,
.social-node strong,
.signal-guide article strong,
.release-rail article strong,
.publishing-map article strong,
.instrument-status article strong,
.still-card strong,
.production-notes strong,
.release-notes-list strong {
  font-size: var(--soe-text-card-title) !important;
  letter-spacing: 0.105em !important;
  line-height: 1.25 !important;
  font-weight: 620 !important;
}

/* Media page hierarchy: current release heading no larger than page heading. */
.two-d .archive-heading h2 {
  font-size: clamp(20px, 1.95vw, 27px) !important;
}

.two-d .release-hero-copy strong {
  font-size: clamp(17px, 1.55vw, 22px) !important;
}

.two-d .release-hero-card {
  max-width: 720px !important;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr) !important;
}

.two-d .release-hero-card video {
  max-width: 270px !important;
  max-height: 360px !important;
}

/* Mobile: reduce forced cinematic scroll distance so finger movement feels closer to native page movement. */
@media (max-width: 860px) {
  html {
    scroll-behavior: auto !important;
  }

  .scroll-stage {
    height: 118vh !important;
  }

  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 245vh !important;
  }

  .stage-copy {
    width: min(88vw, 520px) !important;
  }

  .stage-copy p {
    font-size: clamp(24px, 7.8vw, 38px) !important;
    letter-spacing: 0.006em !important;
  }

  .section-kicker,
  .archive-heading span,
  .release-hero-copy span,
  .still-card span,
  .production-notes span,
  .assistant-gateway span,
  .release-notes-list article span,
  .social-node span,
  .dimension-identity span,
  .control-panel legend,
  .control-panel label,
  .chat-line-form label,
  .form-note,
  .scroll-hint,
  .stage-label,
  .footer-quote,
  .site-footer {
    letter-spacing: 0.115em !important;
  }

  .soe-mark .soe-torus-o,
  .entry-mark .soe-torus-o {
    font-size: 1.20em !important;
    line-height: 0.86 !important;
    transform: translateY(0.015em) !important;
  }

  .two-d .release-hero-card {
    max-width: 360px !important;
    grid-template-columns: 1fr !important;
  }

  .two-d .release-hero-card video {
    max-width: 220px !important;
    max-height: 42vh !important;
  }
}

@media (max-width: 560px) {
  .scroll-stage {
    height: 112vh !important;
  }

  #threshold.scroll-stage,
  #threshold.hypercube-scroll-stage {
    height: 232vh !important;
  }
}


/* v65 wordmark and field-particle refinement
   - Normalise the central O/◎ height across header, entry moment, subpages and mobile.
   - Keep the symbol visually level with adjacent S/E rather than relying on fallback glyph metrics.
   - Preserve v64 typography while tightening logo-specific rendering only.
*/
.soe-wordmark,
.entry-mark {
  font-variant-ligatures: none !important;
  text-rendering: geometricPrecision;
}

.soe-mark .soe-wordmark,
.entry-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.055em !important;
}

.soe-torus-o,
.soe-mark .soe-torus-o,
.entry-mark .soe-torus-o {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: inherit !important;
  font-size: 1.08em !important;
  line-height: 0.92 !important;
  letter-spacing: 0 !important;
  transform: translateY(0.012em) !important;
  width: 0.92em;
  min-width: 0.92em;
  opacity: 1 !important;
}

.entry-mark .soe-torus-o {
  font-size: 1.065em !important;
  line-height: 0.94 !important;
  transform: translateY(0.018em) !important;
}

@media (max-width: 860px) {
  .soe-torus-o,
  .soe-mark .soe-torus-o,
  .entry-mark .soe-torus-o {
    font-size: 1.10em !important;
    line-height: 0.92 !important;
    transform: translateY(0.012em) !important;
    width: 0.94em;
    min-width: 0.94em;
  }

  .entry-mark .soe-torus-o {
    font-size: 1.08em !important;
    transform: translateY(0.016em) !important;
  }
}


/* v66 intro and layout efficiency audit
   Purpose:
   - Calm the initialising-field intro so it feels high-end rather than oversized.
   - Reduce wasted space across subpage heroes, identity panels, media archive, and grids.
   - Keep the accepted v64/v65 typography, wordmark, field particles, text timing, and simulator behaviour.
*/
:root {
  --soe-page-x: min(4.2vw, 52px);
  --soe-section-gap: 16px;
  --soe-card-pad: 14px;
}

/* Opening intro: smaller, quieter, more premium. */
.entry-moment {
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,0.035), transparent 32%),
    #050505 !important;
}

.entry-mark {
  font-size: clamp(24px, 4.2vw, 50px) !important;
  letter-spacing: 0.105em !important;
  font-weight: 520 !important;
  opacity: 0.92;
  transform: translateY(-5px) !important;
}

.entry-mark .soe-torus-o {
  font-size: 1.07em !important;
  width: 0.92em !important;
  min-width: 0.92em !important;
  line-height: 0.92 !important;
  transform: translateY(0.014em) !important;
}

.entry-status {
  margin-top: clamp(54px, 7vw, 72px) !important;
  font-size: 9px !important;
  letter-spacing: 0.17em !important;
  opacity: 0.56;
}

@keyframes soeEntryMarkShimmer {
  0% {
    opacity: 0;
    filter: blur(4px);
    letter-spacing: 0.17em;
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  22% {
    opacity: 0.92;
    filter: blur(0);
    letter-spacing: 0.105em;
    text-shadow: 0 0 12px rgba(255,255,255,0.16);
  }
  48% {
    opacity: 0.92;
    text-shadow: 0 0 18px rgba(255,255,255,0.22);
  }
  72% {
    opacity: 0.86;
    text-shadow: 0 0 10px rgba(255,255,255,0.12);
  }
  100% {
    opacity: 0;
    filter: blur(3px);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
}

/* Subpage layout: tighter, more consistent, less poster-sized empty space. */
.subpage .page-hero,
.subpage.one-d .page-hero,
.subpage.two-d .page-hero,
.subpage.three-d .page-hero,
.subpage.four-d .page-hero {
  padding: 70px var(--soe-page-x) 12px !important;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 230px) !important;
  gap: clamp(16px, 3vw, 30px) !important;
  align-items: end !important;
}

.subpage .page-hero h1,
.subpage .section-heading h1,
.simulator-compact-heading h1 {
  font-size: clamp(22px, 2vw, 30px) !important;
}

.subpage .page-hero p,
.subpage .section-heading p,
.simulator-compact-heading p {
  max-width: 720px !important;
}

.subpage .page-actions,
.simulator-actions {
  margin-top: 9px !important;
}

.dimension-identity {
  min-height: 132px !important;
  padding: 15px !important;
  width: min(100%, 230px) !important;
}

.dimension-identity span {
  left: 15px !important;
  top: 13px !important;
}

.dimension-identity strong {
  font-size: 11px !important;
  margin-bottom: 5px !important;
}

.dimension-identity p {
  font-size: 12px !important;
  line-height: 1.38 !important;
}

.subpage .page-content {
  padding: 16px var(--soe-page-x) 42px !important;
}

.media-archive,
.about-grid,
.page-card-grid,
.media-grid,
.social-orbit,
.signal-guide,
.release-rail,
.publishing-map,
.instrument-status,
.still-grid,
.production-notes,
.release-notes-list {
  gap: 12px !important;
}

.signal-guide article,
.release-rail article,
.publishing-map article,
.instrument-status article,
.about-grid article,
.page-panel,
.social-node,
.production-notes article,
.release-notes-list article,
.still-card div,
.media-card .media-copy {
  padding: var(--soe-card-pad) !important;
}

.signal-guide article,
.release-rail article,
.publishing-map article,
.instrument-status article {
  min-height: 104px !important;
}

.signal-guide article span,
.release-rail article span,
.publishing-map article span,
.instrument-status article span,
.still-card span,
.production-notes span,
.release-notes-list article span,
.social-node span {
  margin-bottom: 10px !important;
}

/* Media page audit: reduce empty space and make the current release block feel deliberate. */
.two-d .page-hero {
  padding-bottom: 8px !important;
}

.two-d .dimension-identity {
  min-height: 118px !important;
}

.two-d .page-content.media-archive {
  max-width: 1060px !important;
  margin: 0 !important;
  align-items: start !important;
}

.two-d .archive-heading {
  max-width: 700px !important;
  margin-bottom: 0 !important;
}

.two-d .archive-heading h2 {
  font-size: clamp(19px, 1.65vw, 24px) !important;
  margin-bottom: 5px !important;
}

.two-d .archive-heading p {
  max-width: 620px !important;
}

.two-d .release-hero-card {
  max-width: 620px !important;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 12px !important;
  align-items: center !important;
}

.two-d .release-hero-card video {
  max-width: 230px !important;
  max-height: 315px !important;
}

.two-d .release-hero-copy {
  padding: 8px 10px !important;
}

.two-d .release-hero-copy strong {
  font-size: clamp(16px, 1.25vw, 20px) !important;
  margin-bottom: 7px !important;
}

.two-d .still-grid,
.two-d .production-notes {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1060px !important;
}

.two-d .still-card img {
  aspect-ratio: 16 / 8.6 !important;
}

.two-d .production-notes article {
  min-height: 92px !important;
}

/* Chat/social/release pages: keep useful density without making them cramped. */
.one-d .assistant-gateway,
.three-d .page-content,
.release-notes-page .page-content {
  max-width: 1100px !important;
}

.assistant-gateway {
  padding: 18px !important;
  gap: 16px !important;
}

.social-node {
  min-height: 140px !important;
}

.release-notes-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

/* Simulator page: retain usability but trim top-heavy identity spacing. */
body.four-d .simulator-page-section {
  padding-top: 112px !important;
}

.simulator-identity {
  min-height: 112px !important;
  margin-bottom: 12px !important;
}

.instrument-status {
  margin-top: 12px !important;
}

@media (min-width: 1100px) {
  .one-d .signal-guide,
  .three-d .publishing-map,
  .instrument-status {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .entry-mark {
    font-size: clamp(22px, 8.2vw, 36px) !important;
    letter-spacing: 0.095em !important;
  }

  .entry-status {
    margin-top: 56px !important;
    font-size: 8.5px !important;
    letter-spacing: 0.145em !important;
  }

  .subpage .page-hero,
  .subpage.one-d .page-hero,
  .subpage.two-d .page-hero,
  .subpage.three-d .page-hero,
  .subpage.four-d .page-hero {
    padding: 68px 16px 10px !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .dimension-identity {
    width: 100% !important;
    min-height: 100px !important;
    padding: 13px !important;
  }

  .subpage .page-content {
    padding: 14px 16px 34px !important;
  }

  .two-d .page-content.media-archive {
    max-width: 100% !important;
  }

  .two-d .release-hero-card {
    max-width: 100% !important;
    grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) !important;
    align-items: center !important;
  }

  .two-d .release-hero-card video {
    max-width: 190px !important;
    max-height: 310px !important;
  }

  .two-d .release-hero-copy {
    padding: 6px 4px !important;
  }

  .two-d .still-grid,
  .two-d .production-notes,
  .release-notes-list {
    grid-template-columns: 1fr !important;
  }

  body.four-d .simulator-page-section {
    padding-top: 96px !important;
  }
}

@media (max-width: 520px) {
  .two-d .release-hero-card {
    grid-template-columns: 1fr !important;
    justify-items: start !important;
  }

  .two-d .release-hero-card video {
    max-width: 200px !important;
    margin-left: 0 !important;
  }

  .two-d .still-card img {
    aspect-ratio: 16 / 9 !important;
  }
}

/* v67 cinematic scroll-message typography refinement
   Purpose:
   - Reduce the progressing dimensional messages so they no longer overpower the scene.
   - Replace large/basic hero text feel with a quieter, more high-end caption-like treatment.
   - Preserve the accepted v63-v66 animation timing and geometry.
*/
:root {
  --soe-text-scroll-message: clamp(16px, 1.55vw, 26px);
  --soe-text-scroll-message-mobile: clamp(15.5px, 4.7vw, 22px);
}

.stage-copy {
  width: min(620px, 72vw) !important;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.045));
}

.stage-copy.visible {
  opacity: 0.88 !important;
}

.stage-copy p {
  font-size: var(--soe-text-scroll-message) !important;
  line-height: 1.28 !important;
  letter-spacing: 0.045em !important;
  font-weight: 380 !important;
  color: rgba(246,246,241,0.88) !important;
  text-shadow:
    0 0 18px rgba(255,255,255,0.055),
    0 0 44px rgba(166,198,255,0.035) !important;
}

.stage-copy p::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 17px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
  opacity: 0.58;
}

.simulator-entry .simulator-button {
  margin-top: 18px !important;
}

@media (max-width: 860px) {
  .stage-copy {
    width: min(82vw, 430px) !important;
  }

  .stage-copy.visible {
    opacity: 0.9 !important;
  }

  .stage-copy p {
    font-size: var(--soe-text-scroll-message-mobile) !important;
    line-height: 1.32 !important;
    letter-spacing: 0.032em !important;
    font-weight: 390 !important;
  }

  .stage-copy p::after {
    width: 34px;
    margin-top: 14px;
    opacity: 0.5;
  }
}

@media (max-width: 420px) {
  .stage-copy p {
    font-size: clamp(15px, 4.35vw, 20px) !important;
    line-height: 1.34 !important;
    letter-spacing: 0.026em !important;
  }
}
