:root {
  --mast-height: 68px;
  --sky: #aeb9ff;
  --flame: #ff986b;
}
.mast {
  background: #111021f5;
  border-color: #afabff29;
}
.mark i {
  background: #9595df;
}
.mark i:nth-child(2) {
  background: #c4c9ff;
}
.mark i:nth-child(3) {
  background: var(--flame);
}
.district {
  position: relative;
  background: #111022;
}
.district-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 79% 43%, #3f3a6f 0%, #232541 33%, transparent 67%),
    linear-gradient(114deg, #100f20 10%, #1b1b35 64%, #191a30);
}
.district-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(#bac8eb 0.8px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 79% 38%, #000 8%, transparent 69%);
}
.stage-inner {
  height: max(540px, calc(100svh - var(--mast-height)));
  max-height: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  position: relative;
}
.intro-copy {
  z-index: 1;
  position: relative;
  pointer-events: none;
}
.intro-copy a {
  pointer-events: auto;
}
.hero-label,
.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}
.hero-label {
  color: #d2d1ec;
}
.hero-label span {
  width: 27px;
  height: 8px;
  border-block: 1px solid #edaf87;
  transform: skewX(-33deg);
}
.kicker i,
.rule {
  display: inline-block;
  width: 25px;
  height: 2px;
  background: currentColor;
}
h1 {
  font-size: clamp(3.35rem, 5.8vw, 6.3rem);
  font-weight: 770;
  line-height: 1.19;
  letter-spacing: -0.075em;
  margin: 1.6rem 0;
}
h1 {
  display: grid;
}
.title-frame {
  grid-area: 1/1;
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.16em);
}
.title-frame b {
  display: block;
  font-weight: inherit;
}
.title-frame b + b {
  color: #c6c9ff;
}
.title-frame:nth-child(2) b + b {
  color: #c1d8ff;
}
.title-frame:nth-child(3) b + b {
  color: #ffc19d;
}
.district[data-chapter='0'] .title-frame:nth-child(1),
.district[data-chapter='1'] .title-frame:nth-child(2),
.district[data-chapter='2'] .title-frame:nth-child(3) {
  opacity: 1;
  transform: none;
}
html[data-motion='on'] .title-frame {
  transition:
    opacity 0.22s ease-out,
    transform 0.24s ease-out;
}
.hero-lead {
  font-size: clamp(0.93rem, 1.18vw, 1.15rem);
  line-height: 1.95;
  color: #dddfee;
}
.hero-links {
  gap: 0.75rem 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.model {
  position: absolute;
  z-index: 0;
  width: min(61%, 1040px);
  right: 0.5%;
  top: 4%;
  bottom: 11%;
  margin: 0;
  pointer-events: none;
  isolation: isolate;
}
.model-surface,
.model canvas,
.model-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.model-poster {
  object-fit: contain;
}
.model canvas {
  opacity: 0;
}
.model[data-render='live'] canvas {
  opacity: 1;
}
.model[data-render='live'] .model-poster {
  visibility: hidden;
}
.model-halo {
  position: absolute;
  inset: 11% -4% 2%;
  z-index: -2;
  background: radial-gradient(ellipse at 51% 53%, #aea6ff3d, #7266e123 32%, transparent 65%);
}
.model-ground {
  position: absolute;
  bottom: 22%;
  left: 12%;
  width: 79%;
  height: 10%;
  z-index: -1;
  border-radius: 50%;
  background: #100f24;
  filter: blur(20px);
  opacity: 0.84;
}
.model figcaption {
  position: absolute;
  bottom: 3%;
  right: var(--pad);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  color: #bfbed1;
}
.story-bar {
  grid-row: 2;
  grid-column: 1/-1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid #a4a2c955;
  min-height: 74px;
  padding-block: 9px;
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.77rem;
  letter-spacing: 0.055em;
  color: #ece9f6;
}
.scroll-hint i {
  width: 13px;
  height: 19px;
  border: 1px solid #a6a5c2;
  border-radius: 9px;
  position: relative;
}
.scroll-hint i::after {
  content: '';
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: #ffad8c;
  position: absolute;
  left: 4.5px;
  top: 3px;
}
html[data-motion='on'] .scroll-hint i::after {
  animation: nudge 1.8s infinite;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  55% {
    transform: translateY(5px);
  }
}
.chapters {
  display: flex;
  position: relative;
  gap: clamp(12px, 1.9vw, 27px);
}
.chapters button {
  padding: 0.65rem 0.12rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #c0bbd3;
  background: none;
  border: 0;
  font-weight: 600;
  font-size: 0.8rem;
}
.chapters button::before {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid #adabc8;
  transform: rotate(45deg);
  transition:
    transform 0.25s,
    background 0.25s;
}
.chapters button[aria-pressed='true'] {
  color: #fff5ea;
}
.chapters button[aria-pressed='true']::before {
  background: var(--flame);
  border-color: var(--flame);
  transform: rotate(45deg) scale(1.33);
}
.case-views {
  display: flex;
  width: fit-content;
  border: 1px solid #8a97a7;
  border-radius: 40px;
  padding: 3px;
  margin: 0 0 1rem auto;
}
.case-views button {
  background: transparent;
  border: 0;
  border-radius: 25px;
  padding: 0.48rem 0.96rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: #263549;
  min-height: 42px;
}
.case-views button[aria-pressed='true'] {
  background: #25283f;
  color: #f5f4fa;
}
.case-map-frame {
  width: 100%;
  aspect-ratio: 2.06;
  background: radial-gradient(ellipse at 50% 45%, #203b34, #101f22 78%);
  overflow: hidden;
  position: relative;
  border-radius: 5px;
}
.case-map-frame picture {
  position: absolute;
  width: 100%;
  aspect-ratio: 1560/1020;
  top: 50%;
  transform: translateY(-50%);
}
.case-map-frame img {
  width: 100%;
  height: 100%;
}
.map-site,
.map-station {
  position: absolute;
  background: #102720e8;
  border: 1px solid #91ac9c;
  color: white;
  padding: 0.16rem 0.43rem;
  font-size: 0.7rem;
}
.map-site {
  left: 49%;
  top: 39%;
  color: #ffda91;
  border-color: #c8aa70;
}
.map-station {
  left: 65%;
  top: 21%;
}
.case-map figcaption {
  font-size: 0.8rem;
  margin-block: 0.7rem;
  color: #465751;
}
.service .steps {
  position: relative;
}
.steps li::after {
  content: '';
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  transform-origin: left;
  background: linear-gradient(90deg, #aca9fd, #ffae82);
  transform: scaleX(var(--route, 1));
}
.steps li:nth-child(2)::after {
  transform: scaleX(clamp(0, calc(var(--route, 1) * 3 - 1), 1));
}
.steps li:nth-child(3)::after {
  transform: scaleX(clamp(0, calc(var(--route, 1) * 3 - 2), 1));
}
@media (max-width: 900px) and (min-width: 701px) {
  .model {
    width: 65%;
    right: -3%;
  }
  h1 {
    font-size: clamp(2.95rem, 5.7vw, 3.6rem);
  }
  .hero-lead {
    max-width: 29em;
    font-size: 0.86rem;
  }
}
@media (max-width: 700px), (max-width: 900px) and (orientation: portrait) {
  :root {
    --pad: clamp(18px, 5.2vw, 34px);
    --mast-height: 58px;
  }
  .mast-inner {
    height: var(--mast-height);
    gap: 0.4rem;
  }
  .mast nav {
    gap: 0.45rem;
  }
  .nav-link {
    display: none;
  }
  .brand {
    font-size: 0.98rem;
    gap: 0.4rem;
  }
  .mark {
    transform: scale(0.83) skewY(-21deg);
    transform-origin: left center;
    margin-right: -4px;
  }
  .nav-cta {
    gap: 0.45rem;
    font-size: 0.75rem;
    padding: 0.45rem 0.8rem;
  }
  .stage-inner {
    height: max(546px, calc(100svh - var(--mast-height)));
    max-height: 870px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-top: clamp(24px, 4.6svh, 49px);
  }
  .hero-label {
    font-size: 0.67rem;
    letter-spacing: 0.08em;
  }
  h1 {
    font-size: clamp(2.6rem, 10.7vw, 4.65rem);
    line-height: 1.14;
    margin: 0.8rem 0 0.72rem;
  }
  .hero-lead {
    font-size: 0.87rem;
    line-height: 1.75;
  }
  .hero-links {
    margin-top: 0.93rem;
    gap: 0.55rem 1rem;
  }
  .bright {
    font-size: 0.8rem;
    padding: 0.66rem 1.05rem;
    gap: 0.65rem;
  }
  .watch {
    font-size: 0.78rem;
  }
  .model {
    grid-row: 2;
    position: relative;
    place-self: stretch;
    inset: auto;
    width: auto;
    margin-inline: calc(-1 * var(--pad));
  }
  .model figcaption {
    bottom: 1%;
    right: var(--pad);
    font-size: 0.62rem;
  }
  .story-bar {
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 78px;
    padding-block: 4px;
    margin-top: 0.5rem;
  }
  .scroll-hint {
    font-size: 0.66rem;
    gap: 0.4rem;
  }
  .scroll-hint i {
    transform: scale(0.74);
  }
  .chapters {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .chapters button {
    font-size: 0.75rem;
  }
  .case-map-frame {
    aspect-ratio: 1.32;
  }
  .case-map-frame picture {
    width: 118%;
    left: -9%;
  }
}
@media (orientation: landscape) and (max-height: 540px) and (min-width: 600px) {
  :root {
    --mast-height: 48px;
  }
  .mast-inner {
    height: var(--mast-height);
  }
  .stage-inner {
    height: max(300px, calc(100svh - var(--mast-height)));
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    padding-top: 0;
  }
  .intro-copy {
    grid-row: 1;
  }
  .hero-label {
    font-size: 0.62rem;
  }
  h1 {
    font-size: 2.5rem;
    margin: 0.45rem 0;
    line-height: 1.06;
  }
  .hero-lead {
    font-size: 0.76rem;
    line-height: 1.55;
  }
  .hero-links {
    margin-top: 0.55rem;
    gap: 1rem;
  }
  .bright {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }
  .model {
    position: absolute;
    grid-row: auto;
    width: 56%;
    top: 0;
    bottom: 13%;
    right: 0;
  }
  .story-bar {
    grid-row: 2;
    display: flex;
    padding-block: 0;
    min-height: 45px;
    margin: 0;
  }
  .chapters {
    width: auto;
  }
  .model figcaption {
    bottom: 0;
  }
}
@media (pointer: coarse) {
  .mast .motion-switch,
  .mast .nav-cta {
    min-height: 44px;
  }
  .mast .motion-switch {
    width: 44px;
  }
}

@media (max-width: 599px) and (max-height: 640px) {
  .stage-inner {
    height: max(415px, calc(100svh - var(--mast-height)));
    padding-top: 14px;
  }
  h1 {
    font-size: clamp(2.15rem, 9.2vw, 3rem);
    margin: 0.5rem 0;
  }
  .hero-lead {
    font-size: 0.8rem;
  }
  .hero-links {
    margin-top: 0.55rem;
  }
  .story-bar {
    min-height: 64px;
  }
}
