html.hero-on .deck { visibility: hidden; }

html.hero-on .nav {
  background: rgba(5, 8, 15, 0.42);
  border-color: rgba(170, 214, 255, 0.16);
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  color: var(--ink);
  background: #05080f;
  perspective: 1400px;
}

.hero.is-leaving {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.7s ease, z-index 0s linear 0.7s;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: opacity 0.7s ease;
}

.hero[data-scene="4"] #hero-canvas,
.hero.is-resetting #hero-canvas { opacity: 0; }

.hero-tilt,
.world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.world {
  transition: transform 1.25s cubic-bezier(0.62, 0.04, 0.18, 1), opacity 0.45s ease;
}

.hero[data-scene="1"] .world { transform: rotateX(5deg) translateZ(0); }
.hero[data-scene="1b"] .world { transform: rotateX(2deg) translateZ(36px); }
.hero[data-scene="2"] .world { transform: rotateX(11deg) translateZ(70px); }
.hero[data-scene="3"] .world,
.hero[data-scene="3b"] .world { transform: rotateX(7deg) translateZ(18px); }

.hero[data-scene="4"] .world { animation: vortex 1.2s cubic-bezier(0.45, 0.02, 0.2, 1) forwards; }

.hero.is-resetting .world {
  opacity: 0;
  animation: none;
}

@keyframes vortex {
  0% { transform: rotateX(7deg) translateZ(18px) rotateZ(0deg) scale(1); opacity: 1; }
  100% { transform: rotateX(18deg) translateZ(-180px) rotateZ(62deg) scale(0.58); opacity: 0; }
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 36%, rgba(5, 8, 15, 0.55) 78%, rgba(5, 8, 15, 0.86) 100%);
}

.pedestal {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: min(720px, 94vw);
  height: 230px;
  transform: translateX(-50%) rotateX(68deg);
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 1;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 225, 255, 0.75);
  box-shadow: 0 0 18px rgba(80, 210, 255, 0.4), inset 0 0 18px rgba(80, 210, 255, 0.22);
  transform: translate(-50%, -50%);
}

.ring-a { width: 100%; height: 100%; }
.ring-b { width: 68%; height: 68%; border-color: rgba(170, 240, 255, 0.9); }
.ring-c {
  width: 40%;
  height: 40%;
  border-color: rgba(255, 177, 94, 0.95);
  box-shadow: 0 0 16px rgba(255, 170, 80, 0.55), inset 0 0 12px rgba(255, 170, 80, 0.3);
}

.beam {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 120px;
  height: 78vh;
  transform: translateX(-50%) rotateX(-68deg);
  transform-origin: bottom center;
  background: linear-gradient(to top, rgba(210, 250, 255, 0.75), rgba(80, 190, 255, 0.2) 28%, transparent 72%);
  filter: blur(10px);
  animation: beamPulse 3.4s ease-in-out infinite;
}

.hot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%) rotateX(-68deg);
  border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(150, 235, 255, 0.55) 38%, transparent 70%);
  filter: blur(1px);
}

@keyframes beamPulse {
  50% { opacity: 0.45; }
}

@keyframes spin { to { transform: rotate(360deg); } }

.core {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0, #d7f7ff 20%, rgba(90, 200, 255, 0.35) 46%, transparent 70%);
  box-shadow: 0 0 70px 24px rgba(90, 210, 255, 0.38);
  opacity: 0.28;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.6s ease, width 0.6s ease, height 0.6s ease;
}

.core::before {
  content: "";
  position: absolute;
  inset: -110px;
  background: repeating-conic-gradient(from 0deg, rgba(170, 235, 255, 0.7) 0 1.4deg, transparent 1.4deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 0 30%, #000 44%, transparent 68%);
  mask: radial-gradient(circle, transparent 0 30%, #000 44%, transparent 68%);
  animation: spin 18s linear infinite;
}

.core::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #ffb15e;
  border-left-color: rgba(255, 177, 94, 0.35);
  animation: spin 3.2s linear infinite;
}

.hero[data-scene="2"] .core { opacity: 0.75; width: 110px; height: 110px; }
.hero[data-scene="3"] .core,
.hero[data-scene="3b"] .core { opacity: 1; width: 156px; height: 156px; }

.slot {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) translateZ(-280px);
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.62, 0.04, 0.18, 1), opacity 0.7s ease;
  z-index: 3;
  pointer-events: none;
}

.hero[data-scene="1"] .slot-browser {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotateX(1.5deg) rotateY(-1.5deg) translateZ(28px);
}

.hero[data-scene="1b"] .slot-browser {
  opacity: 0;
  transform: translate(-50%, -54%) rotateY(-8deg) translateZ(260px) scale(1.08);
}

.hero[data-scene="2"] .slot-web {
  opacity: 1;
  transform: translate(calc(-50% - 34vw), calc(-50% - 18vh)) rotateY(12deg) rotateX(3deg) translateZ(12px);
}
.hero[data-scene="2"] .slot-ai {
  opacity: 1;
  transform: translate(calc(-50% - 33vw), calc(-50% + 14vh)) rotateY(14deg) rotateX(4deg) translateZ(4px);
}
.hero[data-scene="2"] .slot-app {
  opacity: 1;
  transform: translate(calc(-50% - 1vw), calc(-50% - 2vh)) rotateY(-4deg) translateZ(110px);
}
.hero[data-scene="2"] .slot-soft {
  opacity: 1;
  transform: translate(calc(-50% + 30vw), calc(-50% - 20vh)) rotateY(-12deg) rotateX(3deg) translateZ(10px);
}
.hero[data-scene="2"] .slot-erp {
  opacity: 1;
  transform: translate(calc(-50% + 33vw), calc(-50% + 6vh)) rotateY(-11deg) rotateX(4deg) translateZ(6px);
}
.hero[data-scene="2"] .slot-mkt {
  opacity: 1;
  transform: translate(calc(-50% + 6vw), calc(-50% + 26vh)) rotateY(6deg) rotateX(6deg) translateZ(-8px);
}

.hero[data-scene="3"] .slot,
.hero[data-scene="3b"] .slot,
.hero[data-scene="4"] .slot { opacity: 0; }

.panel-in,
.glass {
  position: relative;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(198, 228, 255, 0.18), rgba(10, 16, 28, 0.46) 36%, rgba(8, 12, 22, 0.62));
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(206, 232, 255, 0.4);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -24px 40px rgba(0, 0, 0, 0.25);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.32), transparent 28%, transparent 60%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
  z-index: 2;
}

.browser { position: relative; width: min(1040px, 92vw); height: min(580px, 72vh); }
.slot-browser .glass::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-140%) skewX(-16deg);
  animation: sheen 6.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes sheen {
  0%, 62% { transform: translateX(-140%) skewX(-16deg); }
  100% { transform: translateX(420%) skewX(-16deg); }
}

@keyframes drift {
  50% { transform: translateY(-12px); }
}

.hero[data-scene="1"] .browser { animation: drift 5.6s ease-in-out infinite; }
.hero[data-scene="2"] .slot-web .panel,
.hero[data-scene="2"] .slot-soft .panel { animation: drift 6.4s ease-in-out infinite; }
.hero[data-scene="2"] .phone { animation: drift 5.2s ease-in-out infinite; animation-delay: -1.4s; }

.bolt {
  position: absolute;
  inset: -7px;
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  z-index: 5;
  pointer-events: none;
}

.bolt rect {
  fill: none;
  stroke: #9af6ff;
  stroke-width: 5;
  rx: 36;
  stroke-linejoin: round;
  stroke-dasharray: 36 86 10 150;
  filter: drop-shadow(0 0 8px #47e4ff);
  animation: bolt 2.5s linear infinite;
}

.bolt rect:last-child {
  stroke: #fff;
  stroke-width: 2.5;
  stroke-dasharray: 8 210;
  animation-duration: 1.6s;
  animation-direction: reverse;
}

@keyframes bolt { to { stroke-dashoffset: -560; } }

.chrome {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }

.url, .chrome-side {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 236, 248, 0.7);
}

.url { flex: 1; text-align: center; }
.chrome-side { opacity: 0.7; }

.browser-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.72fr);
  gap: 22px;
  height: calc(100% - 46px);
  padding: 26px 30px 22px;
}

.browser-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.browser-copy .button { margin-top: auto; }

.cine-kicker {
  margin: 0;
  color: var(--cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.browser h1 {
  margin: 0;
  max-width: 9ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 2.7vw, 3.15rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.browser h1 span,
.browser h1 em { display: block; font-style: normal; }
.browser h1 span:nth-child(2) { font-size: 0.58em; letter-spacing: 0.01em; color: #d5e6f4; }
.browser h1 em {
  color: #5dcc9a;
  text-shadow: 0 0 22px rgba(90, 220, 255, 0.55);
}

.cine-lede { margin: 0; max-width: 34ch; color: var(--muted); font-size: 1.02rem; }

.browser-side { display: flex; flex-direction: column; gap: 12px; align-self: end; }
.side-card, .side-list, .fake-site {
  border: 1px solid rgba(180, 220, 255, 0.16);
  background: rgba(6, 12, 22, 0.38);
  border-radius: 16px;
}

.side-card { padding: 12px 12px 6px; }
.side-card span, .win-kicker, .phone-kicker {
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.side-card strong { display: block; margin: 4px 0; font-size: 1.15rem; }

.side-list { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 8px; }
.side-list li { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; }
.side-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9a68;
  box-shadow: 0 0 8px rgba(20, 92, 56, 0.8);
}
.side-list b { color: var(--muted); font-weight: 600; }

.chart-line { width: 100%; height: 70px; display: block; }
.chart-line polyline {
  fill: none;
  stroke: #8aefff;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(94, 225, 255, 0.85));
}

.win-web { width: min(320px, 26vw); height: 300px; }
.win-soft { width: min(340px, 28vw); height: 290px; }
.win-ai { width: min(320px, 26vw); height: 300px; }
.win-erp { width: min(320px, 26vw); height: 300px; }
.win-mkt { width: min(340px, 28vw); height: 280px; }
.win-copy { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.win-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.win-facts li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}
.win-facts b {
  color: var(--mint, #5dcc9a);
  font-family: var(--display);
  font-size: 0.78rem;
}
.door-copy, .door-note { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.door-note { font-size: 0.84rem; }
.meter { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meter li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(45, 120, 80, 0.35);
  color: var(--muted);
  font-size: 0.88rem;
}
.meter b { color: var(--ink); font-family: var(--display); font-size: 1.15rem; }

.win h2, .phone h2, .door h3, .manifesto h2, .tunnel-type p, .brand-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.win-body, .mkt-body, .door-body { position: relative; z-index: 1; padding: 16px 16px 14px; }
.win h2, .door h3 { margin: 0 0 8px; font-size: 1.7rem; line-height: 0.95; }
.phone h2 { margin: 0; font-size: 2rem; line-height: 0.95; }

.fake-nav, .fake-cols { display: flex; gap: 6px; padding: 8px; }
.fake-nav i { width: 34px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); }
.fake-nav b { margin-left: auto; width: 46px; height: 16px; border-radius: 99px; background: var(--glow); }
.fake-hero {
  height: 72px;
  margin: 0 8px;
  border-radius: 8px;
  background: linear-gradient(120deg, #18344c, #101a2a 42%, #3c2c1a);
}
.fake-cols { padding-top: 8px; }
.fake-cols i { flex: 1; height: 40px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }

.phone {
  width: 214px;
  height: min(440px, 64vh);
  padding: 8px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.phone-screen {
  height: 100%;
  border-radius: 28px;
  padding: 8px 14px 16px;
  background:
    radial-gradient(120px 90px at 80% 0%, rgba(255, 196, 120, 0.5), transparent 70%),
    linear-gradient(180deg, #243656, #121a2c 48%, #10161c);
}

.notch { width: 74px; height: 16px; margin: 0 auto 12px; border-radius: 10px; background: #05070c; }
.phone-kicker { margin: 0; }
.phone-stat { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.phone-stat strong { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.phone-stat span, .phone li span { color: rgba(232, 243, 255, 0.78); }
.phone ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.phone li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.phone li b {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(180deg, #baf6ff, #1d6f96);
}

.soft-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto 1fr;
  gap: 8px;
  height: calc(100% - 46px);
  padding: 12px 14px;
}

.soft-grid aside {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.soft-grid aside span { color: var(--muted); font-size: 0.85rem; }
.soft-grid h2, .win-mkt h2 { font-size: 1.45rem; margin: 0; }

.code {
  margin: 0;
  padding: 8px;
  border-radius: 12px;
  background: rgba(4, 8, 16, 0.45);
  color: #d7e8f6;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.74rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.cm { color: #7f93a8; }
.kw { color: #8aefff; }
.st { color: #ffb15e; }

.nodes { width: 100%; height: 150px; }
.nodes path { fill: none; stroke: rgba(150, 225, 255, 0.75); stroke-width: 1.6; }
.nodes circle { fill: #e7f8ff; }
.nodes .hot-node { fill: #fff; stroke: #ffb15e; stroke-width: 3; }

.mkt-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.bars.tall { height: 120px; }
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #e7fbff, #1c7eaa);
  box-shadow: 0 0 12px rgba(94, 225, 255, 0.28);
}

.donut {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#8aefff calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
  position: relative;
}
.donut::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: rgba(8, 14, 24, 0.82);
}
.donut span { position: relative; z-index: 1; font-size: 0.78rem; font-weight: 700; }
.donut.amber { background: conic-gradient(#ffb15e calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0); }

.orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: orbit 32s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 2;
}

.hero[data-scene="3b"] .orbit { opacity: 0; }
.hero[data-scene="4"] .orbit { animation-duration: 1.15s; }

@keyframes orbit { to { transform: rotateY(-360deg); } }

.sat {
  position: absolute;
  width: 148px;
  height: 86px;
  margin: -43px 0 0 -74px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(198, 228, 255, 0.16), rgba(8, 14, 24, 0.55));
  border: 1px solid rgba(206, 232, 255, 0.32);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: rotateY(calc(var(--i) * 60deg)) translateZ(340px) rotateY(calc(var(--i) * -60deg));
  backface-visibility: hidden;
}

.sat b { display: block; font-family: var(--display); letter-spacing: -0.02em; font-size: 1.05rem; }
.sat small { color: var(--muted); font-size: 0.75rem; }

.door {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(300px, 30vw);
  height: min(620px, 74vh);
  opacity: 0;
  z-index: 6;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(0.62, 0.04, 0.2, 1), opacity 0.55s ease;
}

.door-l { transform: translate(-50%, -48%) rotateY(16deg) scale(0.9); }
.door-r { transform: translate(-50%, -48%) rotateY(-16deg) scale(0.9); }

.hero[data-scene="3"] .door { opacity: 1; }
.hero[data-scene="3"] .door-l { transform: translate(calc(-100% - 2px), -50%) rotateY(7deg); }
.hero[data-scene="3"] .door-r { transform: translate(2px, -50%) rotateY(-7deg); }
.hero[data-scene="3b"] .door,
.hero[data-scene="4"] .door { opacity: 1; }
.hero[data-scene="3b"] .door-l,
.hero[data-scene="4"] .door-l { transform: translate(calc(-100% - 20vw), -50%) rotateY(26deg); }
.hero[data-scene="3b"] .door-r,
.hero[data-scene="4"] .door-r { transform: translate(20vw, -50%) rotateY(-26deg); }

.door-body { display: flex; flex-direction: column; gap: 14px; height: calc(100% - 46px); }
.door .donut { margin-top: auto; }

.flare {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 64%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  filter: blur(5px);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.35s ease, width 0.8s ease, height 0.8s ease;
}

.hero[data-scene="3"] .flare { opacity: 1; }
.hero[data-scene="3b"] .flare {
  opacity: 0.95;
  width: min(320px, 34vw);
  height: 36%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(110, 220, 255, 0.5) 34%, transparent 70%);
  filter: blur(1px);
}

.manifesto {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 5;
  width: min(440px, 34vw);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) translateZ(40px);
  transition: opacity 0.6s ease 0.15s, transform 0.7s cubic-bezier(0.16, 0.8, 0.2, 1);
  pointer-events: none;
}

.hero[data-scene="3b"] .manifesto {
  opacity: 1;
  transform: translate(-50%, -50%) translateZ(80px);
}

.manifesto h2 {
  display: grid;
  gap: 0.02em;
  margin: 8px 0 0;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 0.88;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.manifesto h2 span:nth-child(2) { color: #c9f6ff; }

.tunnel-type {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  text-align: center;
  opacity: 0;
  transform: translateZ(40px) scale(0.94);
  transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.16, 0.8, 0.2, 1);
  pointer-events: none;
}

.tunnel-type::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(circle, rgba(5, 8, 15, 0.45), transparent 68%);
  z-index: -1;
}

.hero[data-scene="1b"] .tunnel-type {
  opacity: 1;
  transform: translateZ(120px) scale(1);
}

.tunnel-type p {
  margin: 0;
  font-size: clamp(1.45rem, 8vw, 6.4rem);
  line-height: 0.88;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.tunnel-type .accent { color: #5dcc9a; text-shadow: 0 0 28px rgba(20, 92, 56, 0.55); }

.brand-close {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.brand-field {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(78vmin, 680px);
  height: min(78vmin, 680px);
  translate: -50% -50%;
  pointer-events: none;
}
.brand-field i {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(24, 114, 74, 0.4);
}
.brand-field i:nth-child(1) { animation: brand-spin 18s linear infinite; }
.brand-field i:nth-child(2) {
  inset: 18%;
  border-style: solid;
  border-color: rgba(24, 114, 74, 0.22);
  animation: brand-spin 26s linear infinite reverse;
}
.brand-field i:nth-child(3) {
  inset: 28%;
  border: 0;
  background: radial-gradient(circle, rgba(24, 114, 74, 0.22), transparent 68%);
  animation: brand-breathe 4.6s ease-in-out infinite;
}
@keyframes brand-spin { to { transform: rotate(360deg); } }
@keyframes brand-breathe {
  50% { transform: scale(1.05); opacity: 0.72; }
}

.hero[data-scene="4"] .brand-close {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.8s ease 0.42s, transform 0.9s cubic-bezier(0.16, 0.84, 0.2, 1) 0.42s;
}

.hero.is-resetting .brand-close { opacity: 0; transition: opacity 0.16s linear; }

.brand-mark {
  position: relative;
  width: min(210px, 40vw);
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 18px 36px rgba(24, 114, 74, 0.35));
}

.hero[data-scene="4"] .brand-mark { animation: rest 5.6s ease-in-out 1s infinite; }

@keyframes rest {
  50% { transform: translateY(-8px); }
}

.brand-name {
  position: relative;
  margin: 0;
  font-size: clamp(5.4rem, 16vw, 10rem);
  line-height: 0.82;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.03em;
  color: #eafff6;
  text-shadow: 0 0 42px rgba(20, 92, 56, 0.55);
  animation: brand-breathe 4.6s ease-in-out infinite;
}
.brand-tag {
  margin: 0;
  color: #c5d3e2;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.74rem;
}
.brand-person { position: relative; margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.brand-close .button {
  position: relative;
  margin-top: 8px;
  padding: 16px 26px;
  font-size: 1.05rem;
}
.hero[data-scene="4"] .brand-close .button { animation: brand-btn 2.4s ease-in-out infinite; }
@keyframes brand-btn {
  50% { box-shadow: 0 0 28px rgba(24, 114, 74, 0.5); }
}

.hero-hud {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress { display: flex; gap: 5px; }
.progress i {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.hero[data-scene="1"] .progress i:nth-child(1),
.hero[data-scene="1b"] .progress i:nth-child(1),
.hero[data-scene="2"] .progress i:nth-child(-n+2),
.hero[data-scene="3"] .progress i:nth-child(-n+3),
.hero[data-scene="3b"] .progress i:nth-child(-n+3),
.hero[data-scene="4"] .progress i:nth-child(-n+4) {
  background: #2f9a68;
  box-shadow: 0 0 8px rgba(20, 92, 56, 0.8);
}

.hud-btn {
  border: 1px solid rgba(180, 220, 255, 0.28);
  background: rgba(8, 14, 24, 0.5);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero:not([data-scene="4"]) #hero-replay { display: none; }
.hero[data-scene="4"] #hero-skip { display: none; }

@media (max-width: 900px) {
  .browser-side { display: none; }
  .browser-body { grid-template-columns: 1fr; padding: 20px 18px 16px; }
  .browser { width: min(96vw, 720px); height: auto; min-height: 420px; }
  .browser h1 { font-size: clamp(1.7rem, 8.6vw, 3.1rem); }
  .hero[data-scene="1"] .slot-browser {
    transform: translate(-50%, -48%) rotateX(1deg) rotateY(-1deg) translateZ(8px);
  }
  .orbit { display: none; }
  .win-web, .win-soft, .win-ai, .win-erp, .win-mkt { width: min(86vw, 420px); height: auto; min-height: 250px; }
  .soft-grid { grid-template-columns: 1fr; height: auto; }
  .nodes { display: none; }
  .door { width: min(210px, 44vw); height: min(430px, 58vh); }
  .hero[data-scene="3b"] .door-l,
  .hero[data-scene="4"] .door-l { transform: translate(calc(-100% - 6vw), -50%) rotateY(26deg); }
  .hero[data-scene="3b"] .door-r,
  .hero[data-scene="4"] .door-r { transform: translate(6vw, -50%) rotateY(-26deg); }
  .manifesto h2 { font-size: clamp(2.1rem, 12vw, 3.4rem); }
  .hero-hud { left: 12px; right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .brand-close { padding-bottom: 72px; }
  .brand-tag { letter-spacing: 0.18em; font-size: 0.66rem; }

  .hero[data-scene="2"] .slot-web,
  .hero[data-scene="2"] .slot-app,
  .hero[data-scene="2"] .slot-soft,
  .hero[data-scene="2"] .slot-ai,
  .hero[data-scene="2"] .slot-erp,
  .hero[data-scene="2"] .slot-mkt { animation: feature 7.2s ease-in-out both; }
  .hero[data-scene="2"] .slot-app { animation-delay: -1.2s; }
  .hero[data-scene="2"] .slot-soft { animation-delay: -2.4s; }
  .hero[data-scene="2"] .slot-ai { animation-delay: -3.6s; }
  .hero[data-scene="2"] .slot-erp { animation-delay: -4.8s; }
  .hero[data-scene="2"] .slot-mkt { animation-delay: -6s; }
}

@keyframes feature {
  0%, 100% { opacity: 0; transform: translate(-50%, -46%) translateZ(-140px) scale(0.94); }
  12%, 30% { opacity: 1; transform: translate(-50%, -52%) rotateY(-8deg) rotateX(6deg) translateZ(24px) scale(1); }
  42% { opacity: 0; transform: translate(-50%, -40%) translateZ(40px) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .world, .slot, .door, .ring::after, .beam, .core::before, .core::after,
  .orbit, .bolt rect, .brand-mark, .brand-field i, .brand-name, .brand-close .button, .browser, .phone { animation: none !important; }
  .world, .slot, .door, .manifesto, .brand-close, .flare { transition: none !important; }
}
