:root {
  color-scheme: light;
  --bg: oklch(78% 0.118 145);
  --bg-soft: oklch(84% 0.085 143);
  --fg: oklch(10% 0.035 146);
  --fg-2: oklch(18% 0.04 146);
  --line: oklch(10% 0.035 146);
  --amber: oklch(72% 0.125 72);
  --paper: oklch(91% 0.04 132);
  --sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --mx: 0;
  --my: 0;
  --scroll: 0;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--fg);
  color: var(--bg);
  pointer-events: none;
}

.intro-mark {
  width: min(42vw, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-size: clamp(70px, 16vw, 210px);
  line-height: 0.8;
  font-weight: 950;
  letter-spacing: -0.12em;
  transform: rotate(-3deg);
}

.site-shell {
  position: relative;
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 132px minmax(360px, 1fr) 390px 70px 70px 470px 124px;
  height: 124px;
  background: color-mix(in oklch, var(--bg) 94%, var(--paper));
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 16px;
}

.site-head > * {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.logo-cell,
.icon-cell,
.qr-cell {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.logo-bars {
  display: inline-grid;
  grid-template-columns: repeat(4, 8px);
  gap: 7px;
  height: 58px;
}

.logo-bars i { display: block; background: var(--fg); }

.download-console {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 0 24px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.download-console strong {
  font-family: var(--sans);
  font-size: clamp(28px, 2.4vw, 44px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.download-console span {
  font-size: 15px;
  opacity: 0.8;
}

.download-console:hover {
  background: var(--fg);
  color: var(--bg);
}

.menu-cell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.menu-cell a {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.menu-cell a:last-child { border-right: 0; }
.menu-cell a:hover { background: var(--fg); color: var(--bg); }

.icon-cell {
  font-weight: 950;
  font-size: 19px;
}

.contrast-cell {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.contrast-cell::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 1px solid var(--fg);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--fg) 50%, transparent 50%);
}

.availability-cell {
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.availability-cell p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.availability-cell p:last-child { border-bottom: 0; }
.availability-cell a { font-weight: 900; text-decoration: none; }

.qr-cell span {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--fg) 10px, transparent 10px) 0 0 / 18px 18px,
    linear-gradient(var(--fg) 10px, transparent 10px) 0 0 / 18px 18px,
    var(--bg);
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 124px);
  display: grid;
  grid-template-rows: 250px minmax(340px, 1fr) 34px 34px auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 250px 0 300px;
  background:
    linear-gradient(90deg, transparent calc(14% - 1px), var(--line) calc(14% - 1px) 14%, transparent 14%),
    linear-gradient(90deg, transparent calc(31% - 1px), var(--line) calc(31% - 1px) 31%, transparent 31%),
    linear-gradient(90deg, transparent calc(69% - 1px), var(--line) calc(69% - 1px) 69%, transparent 69%),
    linear-gradient(90deg, transparent calc(86% - 1px), var(--line) calc(86% - 1px) 86%, transparent 86%);
  pointer-events: none;
  opacity: 0.8;
}

#wave-canvas {
  width: 100%;
  height: 250px;
  display: block;
}

.hero-empty {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-empty span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fg);
}

.binary-strip {
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.27em;
  line-height: 1;
  white-space: nowrap;
}

.binary-strip.alt { border-top: 0; }
.binary-strip span { min-width: 54px; text-align: center; }

.mega-title {
  margin: 0;
  min-height: 284px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  font-size: clamp(160px, 23vw, 420px);
  line-height: 0.7;
  letter-spacing: -0.095em;
  font-weight: 950;
}

.mega-title span {
  display: block;
  white-space: nowrap;
  transform: translateY(38px);
  will-change: transform;
}

.mega-title span:first-child { text-align: right; }
.mega-title b {
  align-self: center;
  justify-self: center;
  transform: translateY(22px) rotate(calc(var(--scroll) * 0.25deg));
  font-size: clamp(48px, 5.2vw, 86px);
  line-height: 1;
}

.section-bar {
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--fg);
  color: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.48em;
  text-transform: uppercase;
}

.perspective-section,
.status-section,
.details-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.perspective-section { min-height: 920px; }
.status-section { min-height: 520px; }
.details-section { min-height: 880px; }

.focus-rail {
  position: absolute;
  top: 46px;
  bottom: 0;
  width: 26vw;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(24% - 1px), var(--line) calc(24% - 1px) 24%, transparent 24%),
    linear-gradient(90deg, transparent calc(53% - 1px), var(--line) calc(53% - 1px) 53%, transparent 53%),
    linear-gradient(90deg, transparent calc(81% - 1px), var(--line) calc(81% - 1px) 81%, transparent 81%);
  transform-style: preserve-3d;
}

.focus-rail.left { left: 0; transform: perspective(900px) rotateY(8deg); transform-origin: left center; }
.focus-rail.right { right: 0; transform: perspective(900px) rotateY(-8deg) scaleX(-1); transform-origin: right center; }

.focus-rail::before,
.focus-rail::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  height: 1px;
  background: var(--line);
}

.focus-rail::before { top: 30%; transform: rotate(-12deg); }
.focus-rail::after { top: 72%; transform: rotate(9deg); }

.story-column,
.status-grid,
.details-column,
.details-grid {
  position: relative;
  z-index: 1;
  width: min(1040px, 55vw);
  margin: 0 auto;
  background: var(--bg);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.story-column {
  min-height: 874px;
  padding: clamp(74px, 8vw, 126px) clamp(50px, 5vw, 92px);
}

.story-column p {
  margin: 0 0 70px;
  font-size: clamp(52px, 4.1vw, 86px);
  line-height: 1.12;
  letter-spacing: -0.058em;
  font-weight: 820;
}

.story-column p + p {
  color: var(--fg-2);
  font-size: clamp(34px, 3.1vw, 62px);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.status-grid p {
  min-height: 148px;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 2.4vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.052em;
  font-weight: 920;
}

.status-grid p:nth-child(3n) { border-right: 0; }

.work-section {
  position: relative;
  min-height: 1100px;
  overflow: hidden;
  background: var(--fg);
  color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.work-section::before {
  content: "W W W W W W\A O O O O O O\A R R R R R R\A K K K K K K";
  position: absolute;
  inset: -110px -5vw auto -5vw;
  white-space: pre;
  color: var(--bg);
  font-size: clamp(180px, 17vw, 340px);
  line-height: 0.78;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-shadow: 20px 22px 0 oklch(4% 0.03 145 / 0.45);
  opacity: 0.96;
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--scroll) * -0.08px), 0);
  pointer-events: none;
  will-change: transform;
}

.work-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
  pointer-events: none;
}

.work-binary {
  position: relative;
  z-index: 1;
  color: var(--bg);
  border-color: currentColor;
}

.work-title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 54px 24px;
  text-align: center;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: clamp(68px, 10vw, 190px);
  line-height: 0.82;
  letter-spacing: 0.34em;
}

.work-scene {
  position: relative;
  z-index: 2;
  width: min(1320px, 82vw);
  min-height: 720px;
  margin: 88px auto 0;
  perspective: 1100px;
}

.work-card {
  position: absolute;
  width: min(520px, 36vw);
  min-height: 280px;
  padding: 24px;
  display: grid;
  grid-template-rows: 1fr auto;
  text-decoration: none;
  color: var(--bg);
  border: 1px solid currentColor;
  background: oklch(12% 0.035 146 / 0.86);
  transform-style: preserve-3d;
  transition: transform 360ms cubic-bezier(.16,1,.3,1), background 240ms ease;
  will-change: transform;
}

.work-card:nth-child(1) { left: 0; top: 90px; transform: rotateY(14deg) rotateZ(-1.5deg); }
.work-card:nth-child(2) { right: 0; top: 0; transform: rotateY(-12deg) rotateZ(1.2deg); }
.work-card:nth-child(3) { left: 20%; bottom: 10px; transform: rotateY(8deg) rotateZ(0.8deg); }
.work-card:nth-child(4) { right: 12%; bottom: 130px; transform: rotateY(-10deg) rotateZ(-1deg); }

.work-card:hover {
  background: var(--bg);
  color: var(--fg);
  transform: translate3d(0, -18px, 90px) rotateY(0deg) rotateZ(0deg);
}

.work-card strong {
  align-self: end;
  font-size: clamp(42px, 4.8vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.work-card span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.way-section {
  min-height: 980px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 46vw);
}

.way-copy {
  padding: clamp(60px, 8vw, 140px) clamp(28px, 6vw, 96px);
  border-right: 1px solid var(--line);
}

.way-copy h2 {
  margin: 0 0 46px;
  font-size: clamp(72px, 10vw, 190px);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.way-copy p {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: clamp(28px, 2.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 780;
}

.way-objects {
  position: relative;
  perspective: 1000px;
  overflow: hidden;
}

.shield-object {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(45vw, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(calc(var(--my) * 5deg)) rotateY(calc(var(--mx) * -8deg));
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--fg) 0 4%, transparent 4.5%),
    repeating-conic-gradient(from 0deg, transparent 0 8deg, oklch(10% 0.035 146 / 0.16) 8deg 10deg),
    radial-gradient(circle, oklch(87% 0.1 145) 0, transparent 62%);
  will-change: transform;
}

.shield-object::before {
  content: "";
  position: absolute;
  inset: 26%;
  clip-path: polygon(50% 0, 82% 18%, 72% 68%, 50% 90%, 28% 68%, 18% 18%);
  border: 5px solid var(--fg);
}

.shield-object::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed var(--fg);
  animation: spin 12s linear infinite;
}

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

.details-column {
  padding: clamp(60px, 7vw, 104px) clamp(44px, 5vw, 86px);
}

.details-column p {
  margin: 0 0 44px;
  font-size: clamp(34px, 3.25vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.05em;
  font-weight: 760;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.details-grid a {
  min-height: 160px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.details-grid a:nth-child(2n) { border-right: 0; }
.details-grid b {
  font-size: clamp(32px, 3.2vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.details-grid span { font-family: var(--mono); font-size: 14px; }

.cta-section {
  min-height: 720px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--bg);
}

.cta-word {
  align-self: center;
  padding: 46px 24px 0;
  font-size: clamp(130px, 22vw, 350px);
  line-height: 0.74;
  letter-spacing: -0.095em;
  font-weight: 950;
}

.cta-section a {
  display: block;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: clamp(24px, 4vw, 64px);
  text-decoration: none;
}

.footer {
  min-height: 74px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
}

body.high-contrast {
  --bg: oklch(12% 0.035 146);
  --bg-soft: oklch(18% 0.04 146);
  --fg: oklch(84% 0.12 145);
  --fg-2: oklch(78% 0.09 145);
  --line: oklch(84% 0.12 145);
}

@media (max-width: 1100px) {
  .site-head {
    grid-template-columns: 92px 1fr 280px 58px 58px;
    height: 96px;
    font-size: 13px;
  }
  .availability-cell,
  .qr-cell { display: none; }
  .focus-rail { display: none; }
  .story-column,
  .status-grid,
  .details-column,
  .details-grid { width: calc(100% - 32px); }
  .work-scene { width: calc(100% - 32px); }
  .way-section { grid-template-columns: 1fr; }
  .way-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .way-objects { min-height: 560px; }
}

@media (max-width: 720px) {
  .site-head {
    position: relative;
    grid-template-columns: 72px 1fr;
    height: auto;
  }
  .download-console { padding: 18px; }
  .download-console strong { font-size: 30px; }
  .menu-cell {
    grid-column: 1 / -1;
    height: 58px;
    border-top: 1px solid var(--line);
  }
  .icon-cell,
  .contrast-cell { display: none; }
  .hero-stage {
    min-height: 860px;
    grid-template-rows: 180px 1fr 30px 30px auto;
  }
  #wave-canvas { height: 180px; }
  .mega-title {
    grid-template-columns: 1fr;
    min-height: 220px;
    font-size: clamp(100px, 34vw, 168px);
  }
  .mega-title span:first-child { text-align: left; }
  .mega-title b { display: none; }
  .story-column {
    min-height: auto;
    padding: 44px 22px;
  }
  .story-column p {
    margin-bottom: 36px;
    font-size: clamp(34px, 11vw, 58px);
  }
  .story-column p + p,
  .details-column p,
  .way-copy p {
    font-size: clamp(24px, 7.4vw, 40px);
  }
  .status-grid,
  .details-grid { grid-template-columns: 1fr; }
  .status-grid p,
  .details-grid a { border-right: 0; }
  .work-section { min-height: 1280px; }
  .work-section::before { font-size: clamp(110px, 30vw, 190px); }
  .work-title { font-size: clamp(52px, 16vw, 92px); }
  .work-scene {
    min-height: 890px;
    margin-top: 44px;
  }
  .work-card {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100%;
    min-height: 190px;
    margin-bottom: 18px;
    transform: none !important;
  }
  .way-copy h2 { font-size: clamp(64px, 18vw, 120px); }
  .shield-object { width: 76vw; }
}
