@font-face {
  font-family: "Smiley Display";
  src: url("assets/fonts/SmileySans-Oblique.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --ink: #f1eee7;
  --muted: #b9b4aa;
  --orange: #ff5d25;
  --line: rgba(241, 238, 231, 0.19);
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  height: 100%;
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

::selection { color: #130d09; background: var(--orange); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.story {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.story::-webkit-scrollbar,
.scrollable-copy::-webkit-scrollbar { display: none; }

.scene {
  position: relative;
  min-height: 100svh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #0c0c0c;
}

.scene-image {
  position: absolute;
  z-index: -3;
  inset: -4% -3%;
  width: 106%;
  height: 108%;
  object-fit: cover;
  transform: scale(1.065);
  transition: transform 1.5s var(--ease-out), filter 1.2s ease;
  filter: saturate(.78) brightness(.72);
  will-change: transform;
}

.scene.is-active .scene-image { transform: scale(1.015); }
.scene-about .scene-image { object-position: 56% center; }
.scene-advantages .scene-image { object-position: 59% center; }
.scene-value .scene-image { object-position: 55% center; }
.scene-contact .scene-image { object-position: 58% center; }

.scene-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,7,.8) 0%, rgba(7,7,7,.08) 30%, rgba(7,7,7,.24) 58%, rgba(7,7,7,.94) 100%),
    linear-gradient(90deg, rgba(7,7,7,.76), transparent 72%);
}

.scene-content {
  position: relative;
  z-index: 5;
  padding-inline: clamp(24px, 7vw, 42px);
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 2px) 20px 10px;
  pointer-events: none;
}

.brand-mark,
.sound-toggle { pointer-events: auto; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  overflow: hidden;
}

.brand-mark img { width: 50px; height: auto; }

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.sound-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.sound-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 14px;
  height: 16px;
}

.sound-bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--muted);
  transform-origin: center;
}

.sound-toggle[aria-pressed="true"] .sound-bars i {
  background: var(--orange);
  animation: sound 1s ease-in-out infinite alternate;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.5s; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.25s; }

@keyframes sound { to { transform: scaleY(3.2); } }

.page-rail {
  position: fixed;
  z-index: 35;
  right: 14px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transform: translateY(-50%);
}

.page-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 8px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.page-count b { font-size: 11px; color: var(--orange); }
.page-count em { font-style: normal; opacity: .54; }
.page-count i { width: 1px; height: 14px; background: var(--line); }

.page-dots { display: flex; flex-direction: column; gap: 5px; }
.page-dots button {
  position: relative;
  width: 26px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.page-dots button::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  width: 22px;
  height: 1px;
  background: rgba(241, 238, 231, .4);
  transform: scaleX(.36);
  transform-origin: right center;
  transition: transform .4s var(--ease-out), background .4s;
}
.page-dots button[aria-current="page"]::after { background: var(--orange); transform: scaleX(1); }

.signal-canvas {
  position: fixed;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .62;
}

.experience-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg);
  color: var(--ink);
  transition: clip-path 1s var(--ease-out), visibility 1s;
  clip-path: inset(0 0 0 0);
}

.gate-background,
.gate-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gate-background { object-fit: cover; object-position: center; filter: saturate(.78) brightness(.68); }
.gate-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,7,7,.58), rgba(7,7,7,.18) 38%, rgba(7,7,7,.72));
}

body.has-entered .experience-gate {
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

.gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(78vw, 310px);
  color: var(--ink);
}
.gate-logo img { width: 58px; height: 58px; object-fit: contain; }
.gate-logo span { display: grid; gap: 4px; min-width: 0; }
.gate-logo strong { font-size: 18px; letter-spacing: .12em; }
.gate-logo small { color: var(--muted); font-size: 10px; letter-spacing: .05em; white-space: nowrap; }
.experience-gate p {
  margin: 28px 0 34px;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(0,0,0,.72);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
}

.gate-signal { position: absolute; top: 15%; display: grid; place-items: center; }
.gate-signal i {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 93, 37, .38);
  border-radius: 50%;
  animation: gatePulse 2.4s ease-out infinite;
}
.gate-signal i:nth-child(2) { animation-delay: .8s; }
.gate-signal i:nth-child(3) { animation-delay: 1.6s; }
@keyframes gatePulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

.enter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(78vw, 310px);
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  color: #fff8f2;
  background: var(--orange);
  cursor: pointer;
}
.enter-button svg { width: 20px; fill: none; stroke: #fff7f2; stroke-width: 1.5; }
.enter-muted {
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.hero-5g {
  position: absolute;
  z-index: 0;
  top: 11%;
  left: -4vw;
  color: transparent;
  font-size: clamp(12rem, 67vw, 22rem);
  font-weight: 950;
  line-height: .76;
  letter-spacing: -.09em;
  -webkit-text-stroke: 1px rgba(241,238,231,.25);
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 1.2s .2s, transform 1.2s .2s var(--ease-out);
}
.scene.is-active .hero-5g { opacity: 1; transform: translateX(0); }

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(116px, calc(var(--safe-bottom) + 96px));
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  text-wrap: balance;
  font-family: "Smiley Display", "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 400;
  letter-spacing: -.02em;
}

h1 {
  max-width: 12em;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 11vw, 4.6rem);
  line-height: 1.12;
  text-shadow: 0 12px 36px rgba(0,0,0,.56);
}

.hero-subtitle {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .2em;
}
.hero-triad { display: flex; gap: 18px; font-size: clamp(1.1rem, 5.2vw, 1.5rem); font-weight: 750; }
.hero-triad span { position: relative; }
.hero-triad span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
}

.scroll-cue {
  position: absolute;
  z-index: 8;
  bottom: var(--safe-bottom);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 64px;
  min-height: 52px;
  padding: 6px;
  border: 0;
  color: rgba(241,238,231,.62);
  background: transparent;
  font-size: 9px;
  letter-spacing: .16em;
  transform: translateX(-50%);
  cursor: pointer;
}
.scroll-cue i { width: 1px; height: 18px; background: var(--orange); animation: cue 1.5s ease-in-out infinite; }
@keyframes cue { 50% { transform: scaleY(.45); opacity: .45; } }

.content-top {
  position: absolute;
  top: calc(var(--safe-top) + 82px);
  left: 0;
  right: 0;
}

.content-top h2,
.contact-content h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 10vw, 4rem);
  line-height: .94;
}

.content-top h2::after,
.contact-content h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 18px;
  background: var(--orange);
}

.value-line { display: flex; gap: 18px; margin: 0; color: var(--ink); font-size: 12px; letter-spacing: .12em; }
.value-line span { position: relative; }
.value-line span:not(:last-child)::after { content: "/"; position: absolute; right: -12px; color: var(--orange); }

.story-sheet,
.advantage-list,
.value-console {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px max(42px, 10vw) calc(var(--safe-bottom) + 24px) clamp(24px, 7vw, 42px);
  background: linear-gradient(180deg, rgba(11,11,11,.22), rgba(11,11,11,.96) 13%, #0b0b0b 100%);
  border-top: 1px solid var(--line);
}

.story-sheet { max-height: 56dvh; }
.scrollable-copy { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.story-sheet p {
  max-width: 62ch;
  margin-bottom: 12px;
  color: #d7d2c9;
  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 1.82;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: clamp(16px, 5vw, 28px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.proof-row span { color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.proof-row strong { display: block; color: var(--ink); font-size: clamp(1.25rem, 6vw, 1.8rem); font-weight: 800; font-variant-numeric: tabular-nums; }

.compact-heading h2 { margin-bottom: 12px; font-size: clamp(2rem, 9vw, 3.5rem); }
.compact-heading p { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; }

.advantage-list { max-height: 59dvh; padding-top: 8px; }
.advantage-list details { border-bottom: 1px solid var(--line); }
.advantage-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  list-style: none;
  cursor: pointer;
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 720;
}
.advantage-list summary::-webkit-details-marker { display: none; }
.advantage-list summary i {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.advantage-list summary i::before,
.advantage-list summary i::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  width: 14px;
  height: 1px;
  background: var(--orange);
  transition: transform .35s var(--ease-out);
}
.advantage-list summary i::after { transform: rotate(90deg); }
.advantage-list details[open] summary i::after { transform: rotate(0); }
.advantage-list details p {
  margin: -2px 28px 18px 0;
  color: #c8c3b9;
  font-size: 12px;
  line-height: 1.72;
}

.value-console { max-height: 55dvh; padding-top: 14px; }
.tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button {
  position: relative;
  min-width: 0;
  min-height: 46px;
  padding: 0 3px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: clamp(10px, 2.9vw, 12px);
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}
.tab-list button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tab-list button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
}
.tab-panels { min-height: 126px; max-height: 28dvh; padding-top: 22px; }
.tab-panel { animation: panelIn .55s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.tab-panel h3 { margin-bottom: 12px; font-family: "Smiley Display", "Noto Sans SC", sans-serif; font-size: 20px; font-weight: 400; }
.tab-panel p { margin: 0; color: #d1ccc2; font-size: 13px; line-height: 1.8; }
.keyword-flow { color: var(--ink) !important; font-size: clamp(14px, 4vw, 17px) !important; line-height: 2.1 !important; }
#value-core .keyword-flow,
#value-scenes .keyword-flow { font-size: clamp(11px, 3.2vw, 13px) !important; line-height: 1.95 !important; }
.keyword-flow i { display: inline-block; width: 3px; height: 3px; margin: 0 6px 3px; border-radius: 50%; background: var(--orange); }

.contact-content {
  position: absolute;
  top: max(17dvh, calc(var(--safe-top) + 108px));
  left: 0;
  right: 0;
}
.contact-promise { margin: 24px 0 28px; color: #d8d3c9; font-size: clamp(1.08rem, 5vw, 1.4rem); font-weight: 620; line-height: 1.65; }
.contact-card { padding: 18px 0; border-block: 1px solid var(--line); }
.contact-card p { margin-bottom: 14px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.contact-card strong { display: block; margin-bottom: 8px; font-size: 18px; }
.contact-card a { display: block; width: fit-content; min-height: 34px; font-size: 14px; line-height: 34px; text-decoration: none; }
.contact-actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; }

body[data-page="5"] .brand-mark { visibility: hidden; pointer-events: none; }
.primary-action {
  display: grid;
  place-items: center;
  min-width: 128px;
  min-height: 48px;
  padding: 0 22px;
  color: #fff7f2;
  background: var(--orange);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.text-action { min-height: 44px; line-height: 44px; font-size: 13px; text-underline-offset: 6px; }
.text-action svg {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
  vertical-align: -2px;
}
.contact-logo {
  position: absolute;
  z-index: 6;
  left: 24px;
  bottom: calc(var(--safe-bottom) + 16px);
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(76vw, 290px);
  color: var(--ink);
}
.contact-logo img { display: block; width: 48px; height: 48px; object-fit: contain; }
.contact-logo-copy { display: grid; gap: 3px; min-width: 0; }
.contact-logo-copy strong { font-size: 14px; letter-spacing: .12em; }
.contact-logo-copy small { color: var(--muted); font-size: 9px; letter-spacing: .04em; white-space: nowrap; }

.action-confirm[hidden] { display: none; }
.action-confirm {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 20px;
  padding-bottom: calc(20px + var(--safe-bottom));
  background: rgba(8, 9, 10, .72);
  backdrop-filter: blur(12px);
}
.action-confirm__panel {
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 24px;
  color: var(--ink);
  background: #17191b;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,.46);
}
.action-confirm__panel .eyebrow { margin-bottom: 10px; color: var(--orange); font-size: 10px; letter-spacing: .14em; }
.action-confirm__panel h3 { margin: 0 0 8px; font-size: 22px; }
.action-confirm__panel > p:last-of-type { margin-bottom: 24px; color: var(--muted); overflow-wrap: anywhere; }
.action-confirm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-confirm__actions button,
.action-confirm__actions a { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); color: var(--ink); background: transparent; font: inherit; text-decoration: none; }
.action-confirm__actions a { border-color: var(--orange); background: var(--orange); color: #fff7f2; font-weight: 750; }

.scene-content > *,
.story-sheet,
.advantage-list,
.value-console,
.contact-logo {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .9s var(--ease-out);
}
.scene.is-active .scene-content > *,
.scene.is-active .story-sheet,
.scene.is-active .advantage-list,
.scene.is-active .value-console,
.scene.is-active .contact-logo {
  opacity: 1;
  transform: translateY(0);
}
.scene.is-active .scene-content > *:nth-child(2) { transition-delay: .12s; }
.scene.is-active .scene-content > *:nth-child(3) { transition-delay: .2s; }
.scene.is-active .contact-logo { transition-delay: .28s; }

@media (max-height: 700px) {
  .content-top { top: calc(var(--safe-top) + 66px); }
  .content-top h2, .contact-content h2 { font-size: 2rem; }
  .story-sheet { max-height: 58dvh; padding-top: 18px; }
  .story-sheet p { line-height: 1.65; }
  .advantage-list { max-height: 61dvh; }
  .value-console { max-height: 58dvh; }
  .contact-content { top: calc(var(--safe-top) + 86px); }
  .contact-promise { margin: 18px 0; }
  .contact-card { padding: 12px 0; }
  .contact-actions { margin-top: 20px; }
  .contact-logo { width: 180px; }
}

@media (min-width: 700px) {
  .scene-content, .story-sheet, .advantage-list, .value-console { max-width: 640px; margin-inline: auto; }
  .page-rail { right: 28px; }
  .topbar { padding-inline: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .signal-canvas { display: none; }
  .scene-image { transform: none !important; }
}
