:root {
  --ink: #eef7ff;
  --muted: rgba(221, 239, 255, 0.68);
  --faint: rgba(221, 239, 255, 0.16);
  --line: rgba(157, 224, 255, 0.22);
  --cyan: #19e6ff;
  --acid: #b9ff3f;
  --gold: #ffb326;
  --hot: #ff4f7b;
  --panel: rgba(7, 14, 26, 0.7);
  --panel-strong: rgba(9, 20, 38, 0.88);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 10%, rgba(25, 230, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 20% 88%, rgba(255, 179, 38, 0.12), transparent 30rem),
    linear-gradient(125deg, #02040a 0%, #06101e 38%, #0a1218 66%, #030509 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
a {
  color: inherit;
}

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

.ambient .grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(25, 230, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 230, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(800px) rotateX(62deg) translateY(12%);
  transform-origin: center bottom;
  mask-image: linear-gradient(to bottom, transparent 8%, #000 38%, transparent 86%);
  animation: gridDrift 18s linear infinite;
}

.beam {
  position: absolute;
  width: 58vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  filter: blur(0.2px) drop-shadow(0 0 14px rgba(25, 230, 255, 0.9));
  opacity: 0.46;
}

.beam-a {
  top: 18vh;
  left: -12vw;
  transform: rotate(-14deg);
}

.beam-b {
  right: -16vw;
  bottom: 22vh;
  transform: rotate(16deg);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.rail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 96px;
  height: 100vh;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: rgba(1, 6, 13, 0.58);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(185, 255, 63, 0.54);
  background: linear-gradient(135deg, rgba(185, 255, 63, 0.15), rgba(25, 230, 255, 0.08));
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0 28px rgba(185, 255, 63, 0.13);
}

.brand strong {
  writing-mode: vertical-rl;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.thumbs {
  position: absolute;
  right: 14px;
  bottom: 24px;
  left: 14px;
  display: grid;
  gap: 7px;
  max-height: 54vh;
  overflow: auto;
  scrollbar-width: none;
}

.thumbs::-webkit-scrollbar {
  display: none;
}

.thumb {
  display: grid;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(238, 247, 255, 0.2);
  background: rgba(238, 247, 255, 0.04);
  color: rgba(238, 247, 255, 0.55);
  font-size: 10px;
  text-decoration: none;
  transition: 160ms ease;
}

.thumb:hover,
.thumb.active {
  border-color: rgba(25, 230, 255, 0.9);
  background: rgba(25, 230, 255, 0.14);
  color: #fff;
  box-shadow: 0 0 18px rgba(25, 230, 255, 0.22);
}

.deck {
  margin-left: 96px;
  scroll-snap-type: y mandatory;
}

.slide {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 64px);
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: -1;
  border: 1px solid rgba(238, 247, 255, 0.11);
  background:
    linear-gradient(130deg, rgba(238, 247, 255, 0.055), transparent 30%),
    linear-gradient(330deg, rgba(25, 230, 255, 0.07), transparent 38%);
  box-shadow: inset 0 0 90px rgba(25, 230, 255, 0.035);
}

.slide::after {
  content: attr(data-kicker);
  position: absolute;
  top: 30px;
  right: 34px;
  color: rgba(238, 247, 255, 0.36);
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.frame {
  width: min(1200px, 100%);
  min-height: min(680px, calc(100vh - 126px));
  display: grid;
  gap: 28px;
  align-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--acid);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--acid), transparent);
  box-shadow: 0 0 16px rgba(185, 255, 63, 0.66);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.title {
  max-width: 1040px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(40px, 7.1vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

.title .accent {
  color: transparent;
  background: linear-gradient(90deg, var(--acid), var(--cyan) 48%, var(--gold));
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: none;
}

.subtitle {
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.65;
}

.quote {
  width: fit-content;
  max-width: 940px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(255, 179, 38, 0.14), transparent);
  color: rgba(255, 239, 206, 0.95);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.55;
  box-shadow: 0 0 40px rgba(255, 179, 38, 0.08);
}

.hero {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(25, 230, 255, 0.24);
  box-shadow: var(--shadow), 0 0 50px rgba(25, 230, 255, 0.12);
  transform: skewY(-2deg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.06);
  transform: scale(1.06) skewY(2deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(2, 4, 10, 0.24), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px);
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(238, 247, 255, 0.68);
  font-size: 14px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(238, 247, 255, 0.16);
  background: rgba(238, 247, 255, 0.05);
}

.section-head {
  display: grid;
  gap: 16px;
}

.section-head .title {
  font-size: clamp(34px, 5vw, 70px);
}

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

.cards--dense {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(238, 247, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(238, 247, 255, 0.09), transparent),
    rgba(3, 10, 19, 0.74);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.cards--dense .card {
  min-height: 188px;
  padding: 20px;
}

.cards--dense .card h3 {
  font-size: clamp(19px, 1.7vw, 24px);
}

.cards--dense .card p {
  font-size: 15px;
  line-height: 1.62;
}

.card::before {
  content: attr(data-index);
  position: absolute;
  right: 14px;
  top: 8px;
  color: rgba(25, 230, 255, 0.16);
  font-family: Georgia, serif;
  font-size: 68px;
  font-weight: 900;
}

.card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.24;
}

.card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.card.hot {
  border-color: rgba(255, 79, 123, 0.38);
  background: linear-gradient(145deg, rgba(255, 79, 123, 0.16), rgba(25, 230, 255, 0.045));
}

.chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.chain-item {
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(185, 255, 63, 0.22);
  background: rgba(185, 255, 63, 0.055);
}

.chain-item b {
  display: block;
  margin-bottom: 12px;
  color: var(--acid);
  font-size: 24px;
}

.chain-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.chain-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.stats {
  grid-template-columns: 1fr 1fr 1fr;
}

.stat-card {
  min-height: 320px;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(25, 230, 255, 0.24);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.1), rgba(2, 4, 10, 0.88));
}

.stat-card > * {
  position: relative;
}

.stat-card .number {
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.9;
  text-shadow: 0 0 24px rgba(185, 255, 63, 0.18);
}

.stat-card h3 {
  font-size: 28px;
}

.stat-card p {
  color: rgba(238, 247, 255, 0.76);
  line-height: 1.65;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.compare-panel {
  padding: 28px;
  min-height: 390px;
  border: 1px solid rgba(238, 247, 255, 0.14);
  background: rgba(238, 247, 255, 0.055);
}

.compare-panel:nth-child(2) {
  border-color: rgba(185, 255, 63, 0.26);
  background: rgba(185, 255, 63, 0.06);
}

.compare-panel h3 {
  margin-bottom: 18px;
  font-size: clamp(23px, 2.1vw, 30px);
}

.points {
  display: grid;
  gap: 14px;
}

.point {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.6;
}

.point i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(25, 230, 255, 0.36);
  color: var(--cyan);
  font-style: normal;
  font-size: 12px;
}

.link-frame {
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 30px;
}

.link-head {
  display: grid;
  gap: 18px;
}

.link-head .title {
  font-size: clamp(42px, 5.2vw, 76px);
}

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

.link-card {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(25, 230, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(25, 230, 255, 0.1), transparent 44%),
    rgba(6, 15, 29, 0.78);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
}

.link-card::before {
  content: attr(data-index);
  position: absolute;
  top: 14px;
  right: 18px;
  color: rgba(238, 247, 255, 0.14);
  font-family: Georgia, serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.link-card span {
  position: relative;
  color: rgba(238, 247, 255, 0.76);
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
}

.link-card strong {
  position: relative;
  color: var(--acid);
  font-family: "Courier New", monospace;
  font-size: clamp(16px, 1.05vw, 21px);
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(185, 255, 63, 0.14);
}

.link-card:hover {
  border-color: rgba(25, 230, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(25, 230, 255, 0.16), rgba(255, 179, 38, 0.06)),
    rgba(6, 15, 29, 0.84);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 168px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--acid), var(--gold));
  box-shadow: 0 0 24px rgba(25, 230, 255, 0.28);
}

.time-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 56px;
  align-items: start;
}

.time {
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  text-align: right;
}

.time-body {
  position: relative;
  padding: 18px 20px;
  border: 1px solid rgba(238, 247, 255, 0.13);
  background: rgba(6, 15, 29, 0.72);
}

.time-body::before {
  content: "";
  position: absolute;
  left: -65px;
  top: 24px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--cyan);
  background: #06101e;
  box-shadow: 0 0 20px rgba(25, 230, 255, 0.9);
}

.time-body h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.time-body p {
  color: var(--muted);
  line-height: 1.65;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.matrix-cell {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(25, 230, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(25, 230, 255, 0.08), transparent 44%),
    rgba(4, 12, 22, 0.68);
}

.matrix-cell small {
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.matrix-cell h3 {
  margin: 12px 0;
  font-size: 30px;
}

.matrix-cell p {
  color: var(--muted);
  line-height: 1.7;
}

.closing {
  text-align: center;
}

.closing .title {
  margin: 0 auto;
}

.closing .subtitle {
  margin: 0 auto;
}

.closing-lines {
  display: grid;
  gap: 15px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.5;
}

.contact-closing {
  justify-items: center;
  align-content: center;
  gap: 22px;
}

.contact-closing .title {
  font-size: clamp(46px, 6vw, 86px);
}

.contact-lines {
  display: grid;
  gap: 12px;
  min-width: min(620px, 100%);
  padding: 24px 30px;
  border: 1px solid rgba(25, 230, 255, 0.2);
  background: rgba(6, 15, 29, 0.68);
  color: rgba(238, 247, 255, 0.82);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.45;
}

.contact-lines p:first-child {
  color: var(--acid);
  font-size: 1.24em;
  font-weight: 800;
}

@media (max-height: 940px) and (min-width: 981px) {
  .slide {
    padding: 34px clamp(24px, 3.2vw, 48px);
  }

  .slide::before {
    inset: 16px;
  }

  .slide::after {
    top: 22px;
    right: 26px;
  }

  .frame {
    min-height: calc(100vh - 68px);
    gap: 16px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .title {
    font-size: clamp(36px, 5.8vw, 76px);
  }

  .section-head {
    gap: 10px;
  }

  .section-head .title {
    font-size: clamp(27px, 4.1vw, 52px);
    line-height: 1.06;
  }

  .subtitle {
    font-size: clamp(16px, 1.65vw, 22px);
    line-height: 1.45;
  }

  .quote {
    padding: 10px 16px;
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.35;
  }

  .cards {
    gap: 12px;
  }

  .cards--dense {
    gap: 10px;
  }

  .card {
    min-height: 168px;
    padding: 18px;
  }

  .cards--dense .card {
    min-height: 138px;
    padding: 15px;
  }

  .card::before {
    font-size: 52px;
  }

  .card h3,
  .cards--dense .card h3 {
    margin-bottom: 8px;
    font-size: clamp(17px, 1.65vw, 22px);
  }

  .card p,
  .cards--dense .card p {
    font-size: 13.5px;
    line-height: 1.42;
  }

  .chain-item {
    min-height: 140px;
    padding: 14px;
  }

  .chain-item b {
    margin-bottom: 8px;
    font-size: 21px;
  }

  .chain-item strong {
    margin-bottom: 7px;
    font-size: 17px;
  }

  .chain-item p {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .stat-card {
    min-height: 250px;
    gap: 12px;
    padding: 20px;
  }

  .stat-card .number {
    font-size: clamp(34px, 4.2vw, 58px);
  }

  .compare-panel {
    min-height: 318px;
    padding: 20px;
  }

  .compare-panel h3 {
    margin-bottom: 12px;
    font-size: clamp(20px, 1.8vw, 25px);
  }

  .points {
    gap: 9px;
  }

  .point {
    grid-template-columns: 24px 1fr;
    gap: 9px;
    font-size: clamp(12.5px, 1.05vw, 15px);
    line-height: 1.42;
  }

  .point i {
    width: 24px;
    height: 24px;
  }

  .link-frame {
    gap: 22px;
  }

  .link-head {
    gap: 12px;
  }

  .link-grid {
    gap: 10px;
  }

  .link-card {
    min-height: 112px;
    padding: 16px;
    gap: 8px;
  }

  .link-card::before {
    top: 10px;
    right: 12px;
    font-size: 42px;
  }

  .link-card span {
    font-size: clamp(14px, 1.2vw, 18px);
  }

  .link-card strong {
    font-size: clamp(14px, 1.05vw, 17px);
  }

  .timeline {
    gap: 8px;
  }

  .timeline::before {
    left: 142px;
  }

  .time-row {
    grid-template-columns: 118px 1fr;
    gap: 46px;
  }

  .time {
    font-size: 24px;
  }

  .time-body {
    padding: 11px 16px;
  }

  .time-body::before {
    left: -55px;
    top: 17px;
    width: 12px;
    height: 12px;
  }

  .time-body h3 {
    margin-bottom: 5px;
    font-size: 20px;
  }

  .time-body p {
    font-size: 13.5px;
    line-height: 1.38;
  }

  .matrix {
    gap: 12px;
  }

  .matrix-cell {
    min-height: 178px;
    padding: 20px;
  }

  .matrix-cell h3 {
    margin: 8px 0;
    font-size: 24px;
  }

  .matrix-cell p {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero {
    gap: 20px;
  }

  .hero-copy {
    gap: 16px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 410px;
  }

  .closing-lines {
    gap: 10px;
    margin-top: 12px;
    font-size: clamp(16px, 1.7vw, 22px);
  }

  .contact-closing {
    gap: 14px;
  }

  .contact-lines {
    gap: 8px;
    padding: 18px 24px;
    font-size: clamp(17px, 1.65vw, 23px);
  }

  .preview-dialog {
    padding: 18px 22px;
  }

  .preview-dialog__panel {
    height: min(700px, 88vh);
  }

  .preview-dialog__bar {
    min-height: 68px;
    padding: 12px 14px 12px 18px;
  }

  .preview-dialog__bar h2 {
    font-size: 21px;
  }
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.image-strip img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border: 1px solid rgba(238, 247, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hud {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(238, 247, 255, 0.14);
  background: rgba(1, 6, 13, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(238, 247, 255, 0.14);
  background: rgba(238, 247, 255, 0.055);
  cursor: pointer;
  transition: 160ms ease;
}

.rail,
.hud,
.link-card,
.preview-dialog,
button,
a {
  cursor: auto;
}

.thumb,
.icon-btn,
.link-card,
.preview-dialog button,
.preview-dialog a {
  cursor: pointer;
}

.icon-btn:hover {
  border-color: rgba(25, 230, 255, 0.74);
  background: rgba(25, 230, 255, 0.14);
}

.icon-btn.active {
  border-color: rgba(185, 255, 63, 0.82);
  background: rgba(185, 255, 63, 0.16);
  color: var(--acid);
  box-shadow: 0 0 24px rgba(185, 255, 63, 0.18);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.counter {
  display: flex;
  min-width: 92px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.counter i {
  width: 24px;
  height: 1px;
  background: rgba(238, 247, 255, 0.34);
}

#current {
  color: var(--acid);
}

.progress {
  position: fixed;
  left: 96px;
  right: 0;
  bottom: 0;
  z-index: 35;
  height: 3px;
  background: rgba(238, 247, 255, 0.08);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--acid), var(--gold));
  box-shadow: 0 0 18px rgba(25, 230, 255, 0.8);
  transition: width 180ms ease;
}

.preview-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: clamp(18px, 3vw, 46px);
}

.preview-dialog.open {
  display: grid;
}

.preview-dialog__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(25, 230, 255, 0.16), transparent 34rem),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.preview-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(1500px, 92vw);
  height: min(880px, 86vh);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(25, 230, 255, 0.32);
  background: rgba(3, 10, 19, 0.96);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), 0 0 60px rgba(25, 230, 255, 0.14);
}

.preview-dialog__bar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 16px 22px;
  border-bottom: 1px solid rgba(238, 247, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(185, 255, 63, 0.08), transparent 42%),
    rgba(1, 6, 13, 0.92);
}

.preview-dialog__label {
  display: block;
  margin-bottom: 4px;
  color: var(--acid);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.preview-dialog__bar h2 {
  color: #fff;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.18;
}

.preview-dialog__bar p {
  margin-top: 3px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.preview-dialog__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.preview-dialog__external {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(185, 255, 63, 0.34);
  background: rgba(185, 255, 63, 0.08);
  color: var(--acid);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.preview-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

body.presentation-fullscreen {
  overflow: hidden;
}

body.presentation-fullscreen .rail {
  display: none;
}

body.presentation-fullscreen .deck {
  position: fixed;
  inset: 0;
  z-index: 10;
  margin-left: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  background:
    radial-gradient(circle at 70% 10%, rgba(25, 230, 255, 0.16), transparent 34rem),
    linear-gradient(125deg, #02040a 0%, #06101e 42%, #030509 100%);
}

body.presentation-fullscreen .slide {
  padding: clamp(20px, 4.4vw, 64px);
}

body.presentation-fullscreen .progress {
  left: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 620ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 80ms;
}

.reveal:nth-child(3) {
  animation-delay: 160ms;
}

.reveal:nth-child(4) {
  animation-delay: 240ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridDrift {
  to {
    background-position: 0 72px, 72px 0;
  }
}

@media (max-width: 980px) {
  .rail {
    width: 100%;
    height: 58px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand span {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .brand strong {
    writing-mode: initial;
    letter-spacing: 0;
  }

  .thumbs {
    display: none;
  }

  .deck {
    margin-left: 0;
  }

  .slide {
    padding: 80px 18px 92px;
  }

  .slide::before {
    inset: 10px;
  }

  .slide::after {
    top: 72px;
    right: 20px;
  }

  .frame {
    min-height: auto;
  }

  .hero,
  .cards,
  .stats,
  .compare,
  .chain,
  .matrix,
  .link-frame,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 300px;
  }

  .timeline::before {
    left: 18px;
  }

  .time-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 44px;
  }

  .time {
    text-align: left;
  }

  .time-body::before {
    left: -34px;
  }

  .hud {
    right: 12px;
    bottom: 14px;
  }

  .progress {
    left: 0;
  }

  .preview-dialog {
    padding: 70px 10px 76px;
  }

  .preview-dialog__panel {
    width: 100%;
    height: 100%;
  }

  .preview-dialog__bar {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-dialog__actions {
    width: 100%;
    justify-content: space-between;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
