* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0a0a;
  --paper: #e8e6e1;
  --letterbox: #000;
  --accent: #ff6a1a;
  --muted: rgba(10, 10, 10, 0.58);
  --hairline: rgba(10, 10, 10, 0.18);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

html, body {
  background: var(--letterbox);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.spacer { height: 1400vh; pointer-events: none; }

/* ============ 16:9 stage ============ */
.stage {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--letterbox);
  z-index: 0;
}
.stage-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100vw;
  max-width: calc(100vh * 16 / 9);
  max-height: 100vh;
  overflow: hidden;
  background: var(--paper);
  container-type: size;
  container-name: stage;
}

/* ============ background layers ============ */
.bg-layer { position: absolute; inset: 0; }
.bg-layer img,
.bg-layer video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.32s ease;
  will-change: opacity;
  pointer-events: none;
}

/* ============ TOP NAV ============ */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.6cqh 3cqw;
  color: var(--ink);
}
.nav-logo {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-size: 1.35cqw;
  letter-spacing: -0.025em;
  line-height: 1;
}
.nav-menu {
  display: flex; gap: 2.6cqw;
  font-size: 0.92cqw;
  font-weight: 500;
  color: var(--ink);
}
.nav-menu a { color: inherit; text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.nav-menu a:hover, .nav-menu a.active { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 1.2cqw; }
.nav-link {
  font-size: 0.92cqw;
  font-weight: 500; color: var(--ink); text-decoration: none; opacity: 0.85;
}

/* ============ SCENE base ============ */
.scenes { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.scene {
  position: absolute; inset: 0;
  padding: 14cqh 3cqw 10cqh;
  display: grid;
  column-gap: 3cqw; row-gap: 3cqh;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.scene.active { opacity: 1; pointer-events: auto; }

.scene .col-text {
  display: flex; flex-direction: column;
  max-width: 60cqw;
}
.scene .col-stats {
  display: flex; flex-direction: column; gap: 4cqh;
  max-width: 30cqw;
}

/* ===== layouts ===== */
.scene.layout-left {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: 1fr;
}
.scene.layout-left .col-text  { grid-column: 1; grid-row: 1; align-self: start; }
.scene.layout-left .col-stats { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; text-align: right; }
.scene.layout-left .col-stats .stat .note { margin-left: auto; }

.scene.layout-right {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-rows: 1fr;
}
.scene.layout-right .col-text  { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; text-align: right; max-width: 56cqw; }
.scene.layout-right .col-text .headline { letter-spacing: -0.02em; }
.scene.layout-right .col-text .subhead { margin-left: auto; max-width: 42cqw; }
.scene.layout-right .col-text .body-note { margin-left: auto; max-width: 38cqw; }
.scene.layout-right .col-text .social { justify-content: flex-end; }
.scene.layout-right .col-stats { grid-column: 1; grid-row: 1; align-self: end; justify-self: start; }

.scene.layout-hero {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  text-align: center;
  padding: 16cqh 4cqw 12cqh;
}
.scene.layout-hero .col-text { grid-column: 1; grid-row: 1; align-items: center; max-width: 78cqw; }
.scene.layout-hero .col-text .headline { font-size: 7cqw; text-align: center; }
.scene.layout-hero .col-text .subhead { text-align: center; max-width: 56cqw; }
.scene.layout-hero .col-text .body-note { text-align: center; max-width: 52cqw; margin-left: auto; margin-right: auto; }
.scene.layout-hero .col-text .social { justify-content: center; }
.scene.layout-hero .col-stats {
  grid-column: 1; grid-row: 1;
  flex-direction: row; gap: 4cqw;
  align-self: end; justify-self: center;
  max-width: 78cqw; text-align: center;
}
.scene.layout-hero .col-stats .stat { flex: 1; max-width: 30cqw; }
.scene.layout-hero .col-stats .stat .num { font-size: 1.65cqw; }
.scene.layout-hero .col-stats .stat .note { margin-left: auto; margin-right: auto; }

.scene.layout-anchor {
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  grid-template-rows: 1fr;
  padding-top: 13cqh;
  align-items: start;
}
.scene.layout-anchor .col-text {
  grid-column: 2; grid-row: 1; align-self: start; justify-self: end;
  max-width: 58cqw;
  text-align: right;
}
.scene.layout-anchor .col-text .headline {
  font-size: 8cqw;
  line-height: 0.9;
}
.scene.layout-anchor .col-stats {
  grid-column: 1; grid-row: 1; align-self: stretch; justify-self: start;
  flex-direction: column; gap: 0;
  text-align: left;
  display: flex; height: 100%;
}
.scene.layout-anchor .col-stats .stat { max-width: 20cqw; }

/* ===== scene-title ===== */
.scene.scene-title {
  place-items: start center;
  padding-top: 10cqh;
  padding-bottom: 50cqh;
}
.scene.scene-title .col-text {
  align-self: start;
  width: fit-content;
  max-width: 88cqw;
  display: flex; flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.scene.scene-title .col-text > * {
  margin: 0;
  max-width: none;
}
.scene.scene-title .kicker,
.scene.scene-title .subhead {
  font-size: 2.36cqw;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  margin-bottom: 0;
  opacity: 0.7;
  text-align: justify;
  text-align-last: justify;
}
.scene.scene-title .headline {
  font-size: 44.8cqw;
  line-height: 1;
  text-align: justify;
  text-align-last: justify;
}
.scene.scene-title .headline-mid {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: 5.9cqw;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  text-align: justify;
  text-align-last: justify;
}

/* ===== layout-blank ===== */
.scene.layout-blank {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: end;
  padding: 14cqh 3cqw 10cqh;
}

/* ===== layout-dual ===== */
.scene.layout-dual {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding: 13cqh 3cqw 11cqh;
  gap: 2.4cqh;
}
.dual-kicker { grid-row: 1; }
.dual-cols {
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4cqw;
  align-items: start;
}
.dual-col {
  display: flex; flex-direction: column;
  gap: 2cqh;
}
.dual-col-title {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: 5.6cqw;
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.dual-col-body {
  font-size: 1.18cqw;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}
.dual-col-body .accent { color: var(--accent); }
.dual-footer {
  grid-row: 3;
  border-top: 1px solid var(--hairline);
  padding-top: 1.6cqh;
}
.dual-footer-main {
  font-size: 0.92cqw;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}
.dual-footer-note {
  font-size: 0.82cqw;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 0.6cqh;
}

/* ===== scene-closing ===== */
.scene.scene-closing {
  place-items: center;
  padding: 0;
}
.scene.scene-closing .col-text {
  align-items: center;
  margin-top: -8cqw;
}
.scene.scene-closing .headline {
  font-size: 12cqw;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ===== layout-steps ===== */
.scene.layout-steps {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
}
.scene.layout-steps .col-steps {
  grid-column: 2; grid-row: 1 / 3;
  display: flex; flex-direction: column;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 56cqw;
}
.scene.layout-steps .col-steps .kicker { margin-bottom: 1.6cqh; }
.scene.layout-steps .steps-list {
  display: flex; flex-direction: column;
}
.scene.layout-steps .step {
  display: flex;
  align-items: baseline;
  gap: 1.4cqw;
  padding: 1.4cqh 0;
  border-bottom: 1px solid var(--hairline);
}
.scene.layout-steps .step:last-child { border-bottom: none; }
.scene.layout-steps .step-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4cqw;
  letter-spacing: 0.18em;
  color: var(--accent);
  flex: 0 0 auto;
}
.scene.layout-steps .step-body { flex: 1; min-width: 0; }
.scene.layout-steps .step-title {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: 2.2cqw;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.scene.layout-steps .step-desc {
  font-size: 1.1cqw;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.6cqh;
}
.scene.layout-steps .col-text {
  grid-column: 1; grid-row: 1;
  align-self: start;
  justify-self: start;
  text-align: left;
  max-width: 42cqw;
  padding-top: 2cqh;
}
.scene.layout-steps .col-text .headline {
  font-size: 6.4cqw;
  line-height: 0.92;
}
.scene.layout-steps .steps-quote {
  font-size: 1.1cqw;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 3cqh;
  max-width: 38cqw;
  border: none;
  padding: 0;
}
.scene.layout-steps .steps-quote strong {
  color: var(--ink);
  font-weight: 700;
}
.steps-embed {
  margin-top: 2cqh;
  width: 100%;
  max-width: 50cqw;
  margin-left: auto;
}
.steps-embed-img {
  width: 100%;
  border-radius: 0.6cqh;
  display: block;
}

/* ===== layout-accordion ===== */
.scene.layout-accordion {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  padding: 13cqh 3cqw 11cqh;
}
.acc {
  grid-column: 1; grid-row: 1;
  width: 100%; height: 100%;
  display: flex;
  gap: 2.4cqw;
  overflow: hidden;
}

.acc-overview {
  flex: 1 1 50%;
  min-width: 0; max-height: 100%;
  display: flex; flex-direction: column; justify-content: flex-start;
  transition: flex 0.7s var(--ease), opacity 0.45s ease, padding 0.7s var(--ease);
  overflow: hidden;
}
.acc.has-expanded .acc-overview {
  flex: 0 0 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
}

.acc-cases {
  flex: 1 1 50%;
  min-width: 0; min-height: 0; max-height: 100%;
  display: flex; flex-direction: row;
  gap: 1.2cqw;
  transition: flex 0.7s var(--ease), opacity 0.45s ease;
  overflow: hidden;
}
.acc.has-expanded .acc-cases { flex: 1 1 100%; }
.acc.has-expanded .acc-cases-wrap { flex: 1 1 100%; }

.acc-case {
  flex: 1 1 0;
  min-width: 0; min-height: 0; max-height: 100%;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 1.4cqh;
  padding: 2cqh 1.2cqw;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  transition: flex 0.7s var(--ease), opacity 0.45s ease, background 0.3s ease, transform 0.3s ease;
}
.acc:not(.has-expanded) .acc-case:hover {
  background: rgba(255, 255, 255, 0.88);
  flex: 1.35 1 0;
}
.acc-case.acc-case-empty {
  cursor: default;
}
.acc:not(.has-expanded) .acc-case.acc-case-empty:hover {
  background: rgba(255, 255, 255, 0.68);
  flex: 1 1 0;
}
.acc.has-expanded .acc-case { flex: 0 0 0; opacity: 0; padding-left: 0; padding-right: 0; }
.acc.has-expanded .acc-case.expanded {
  flex: 1 1 100%;
  opacity: 1;
  padding: 2.5cqh 3cqw;
  max-height: 100%;
  background: rgba(255, 255, 255, 0.92);
  transform: none;
  cursor: zoom-out;
  overflow: hidden;
}

.acc-case .case-collapsed {
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start;
  width: 100%; height: 100%;
  min-height: 0;
}
.acc-case .case-tag {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 0.78cqw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 auto;
  white-space: nowrap;
}
.acc-case .case-title {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: 2.4cqw;
  line-height: 1.05;
  letter-spacing: 0.08em;
  color: var(--ink);
  writing-mode: vertical-rl;
  text-orientation: upright;
  flex: 1 1 auto;
  min-height: 0;
  margin: 1.4cqh 0 1.4cqh 0.2cqw;
  align-self: center;
}
.acc-case .case-summary { display: none; }
.acc-case .case-arrow {
  width: 3cqh; height: 3cqh; min-width: 1.5rem; min-height: 1.5rem;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1cqw;
  font-weight: 700;
  flex: 0 0 auto;
  align-self: flex-start;
  transition: transform 0.3s var(--ease);
}
.acc:not(.has-expanded) .acc-case:hover .case-arrow {
  transform: translateX(-0.4cqw);
}

.acc-case .case-detail {
  opacity: 0;
  display: none;
  transition: opacity 0.4s ease 0.25s;
}
.acc.has-expanded .acc-case.expanded .case-detail {
  opacity: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  min-height: 0;
  position: relative;
}
.acc.has-expanded .acc-case.expanded .case-collapsed { display: none; }

.case-detail .detail-head {
  margin-bottom: 1.2cqh;
  flex: 0 0 auto;
}
.title-toggle {
  cursor: pointer;
  transition: opacity 0.2s;
}
.title-toggle:hover {
  opacity: 0.65;
}
.case-detail .detail-title {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-size: 3cqw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
}
.case-detail .detail-title .accent { color: var(--accent); }
.case-detail .detail-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1; min-height: 0;
  overflow: hidden;
}
.case-detail .detail-body .detail-text {
  font-size: 1.1cqw;
  line-height: 1.55;
  color: var(--ink);
  overflow: hidden;
  flex: 1; min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8cqh;
}
.case-detail .detail-code-col {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(30, 30, 46, 0.97);
  border-radius: 1cqh;
  padding: 0.8cqh 0.8cqw;
  opacity: 0;
  pointer-events: none;
  transform: translateX(3%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 5;
}
.case-detail.show-code .detail-code-col {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.case-detail .detail-body .detail-text p { margin-bottom: 0; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.case-detail .detail-body .detail-text strong { font-weight: 700; }
.case-detail .detail-body .detail-text .accent-text { color: var(--accent); font-weight: 600; }
.case-detail .detail-aside {
  border-top: 1px solid var(--hairline);
  padding-top: 1.2cqh;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 1cqh 3cqw;
  font-size: 0.92cqw;
  color: var(--muted);
  line-height: 1.5;
  overflow: hidden;
  flex: 0 0 auto;
}
.case-detail .detail-aside:empty {
  display: none;
}
.case-detail .detail-aside .aside-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 0.78cqw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  font-weight: 500;
}
.case-detail .detail-aside .aside-row {
  display: flex; flex-direction: column; gap: 0.4cqh;
}
.case-detail .detail-aside .aside-row strong {
  color: var(--ink); font-weight: 600;
}

/* overview pinned to bottom (for scenes where dog is in top-left) */
.scene.ov-bottom .acc-overview {
  justify-content: flex-end;
}

/* reversed accordion: overview on right, cases on left */
.scene.acc-reversed .acc {
  flex-direction: row-reverse;
}

/* blank placeholder for unexplored cases */
.blank-placeholder {
  display: block;
  text-align: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 10cqw;
  font-weight: 900;
  line-height: 1;
  color: var(--hairline);
  margin-top: 2cqh;
  user-select: none;
}

/* accordion cover over cases area */
.acc-cases-wrap {
  position: relative;
  flex: 1 1 50%;
  min-width: 0; min-height: 0; max-height: 100%;
  overflow: hidden;
}
.acc-cases-wrap .acc-cases {
  flex: none;
  width: 100%; height: 100%;
  display: flex; flex-direction: row;
  gap: 1.2cqw;
  overflow: hidden;
}
.acc-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.45s ease;
}
.acc-cover img {
  max-width: 100%;
  max-height: 78%;
  object-fit: contain;
  border-radius: 1cqh;
  transition: transform 0.3s ease;
}
.acc-cover:hover img {
  transform: scale(1.01);
}
.acc-cover-hint {
  margin-top: 1.4cqh;
  font-size: 0.92cqw;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.acc-cover:hover .acc-cover-hint { opacity: 1; }
.acc-cover.hidden {
  opacity: 0;
  pointer-events: none;
}
.acc-cases-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.acc-cases-hidden.acc-cases-visible {
  opacity: 1;
  pointer-events: auto;
}

/* embedded media in detail */
.detail-media {
  max-width: 100%;
  height: 100%;
  border-radius: 0.6cqh;
  margin: 0;
  object-fit: contain;
  display: block;
}
.detail-media-row {
  display: flex;
  gap: 1.2cqw;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.detail-media-row .detail-media {
  flex: 1 1 0;
  min-width: 0;
  max-width: 50%;
  height: 100%;
  object-fit: contain;
}

/* ===== mini slideshow ===== */
.mini-slideshow {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.ms-track {
  flex: 1; min-height: 0;
  position: relative;
}
.ms-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 0.6cqh;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.ms-slide.ms-active {
  opacity: 1;
  pointer-events: auto;
}
.ms-nav {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 1.5cqw;
  padding: 0.6cqh 0;
}
.ms-prev, .ms-next {
  background: none; border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 2.4cqw; height: 2.4cqw;
  font-size: 1.4cqw; line-height: 1;
  cursor: pointer;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.ms-prev:hover, .ms-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ms-counter {
  font-size: 0.9cqw;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ===== detail iframe ===== */
.detail-iframe {
  width: 100%; height: 100%;
  border: none;
  border-radius: 0.6cqh;
  background: #fff;
}

/* reveal button + hidden image */
.reveal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}
.reveal-wrap .reveal-img {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.reveal-wrap.revealed .reveal-img {
  opacity: 1;
  pointer-events: auto;
}
.detail-code-block {
  background: #1e1e2e;
  color: #cdd6f4;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.78cqw;
  line-height: 1.55;
  border-radius: 0.6cqh;
  padding: 1.2cqh 1.2cqw;
  margin: 0;
  overflow-y: auto;
  overflow-x: auto;
  flex: 1;
  min-height: 0;
  white-space: pre;
  tab-size: 2;
  -moz-tab-size: 2;
}
.detail-code-block::-webkit-scrollbar {
  width: 6px; height: 6px;
}
.detail-code-block::-webkit-scrollbar-track {
  background: transparent;
}
.detail-code-block::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
}
.detail-code-block::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}
.detail-code-block .hl-kw { color: #cba6f7; }
.detail-code-block .hl-str { color: #a6e3a1; }
.detail-code-block .hl-cm { color: #6c7086; font-style: italic; }
.detail-code-block .hl-fn { color: #89b4fa; }
.detail-code-block .hl-num { color: #fab387; }
.detail-code-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72cqw;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a6adc8;
  display: inline-block;
  padding: 0.3cqh 0;
  flex: 0 0 auto;
}

.aside-img {
  max-width: 100%;
  max-height: 16cqh;
  border-radius: 0.4cqh;
  margin: 0.4cqh 0;
  object-fit: contain;
  display: block;
}
.ov-img {
  max-width: 100%;
  max-height: 22cqh;
  border-radius: 0.8cqh;
  margin-top: 1.2cqh;
  object-fit: contain;
  display: block;
}
.detail-code {
  display: block;
  background: rgba(10,10,10,0.06);
  border-radius: 0.6cqh;
  padding: 1.2cqh 1.4cqw;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.72cqw;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--ink);
  overflow: auto;
  max-height: 30cqh;
}
.detail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 0;
  color: var(--ink);
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: 3cqw;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: none;
  border: none;
  transition: color 0.25s;
}
.detail-link:hover {
  color: var(--accent);
}

/* detail text sizes */
.detail-big {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-size: 2.4cqw;
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}
.detail-mid {
  font-size: 1.2cqw;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
}
.detail-mid .accent-text { color: var(--accent); font-weight: 700; }
.detail-quote {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.92cqw;
  line-height: 1.6;
  color: var(--ink);
  background: rgba(0,0,0,0.04);
  border-left: 3px solid var(--accent);
  padding: 1.2cqh 1.4cqw;
  margin: 0;
  border-radius: 0 0.4cqh 0.4cqh 0;
}
.inline-code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.88em;
  background: rgba(0,0,0,0.06);
  padding: 0.15em 0.4em;
  border-radius: 0.3em;
}

.click-reveal {
  cursor: pointer;
  position: relative;
}
.click-reveal img { display: none; }
.click-reveal .click-reveal-hint {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92cqw;
  padding: 1cqh 0;
}
.click-reveal.revealed img { display: block; }
.click-reveal.revealed .click-reveal-hint { display: none; }

/* overview content styles */
.acc-overview .ov-kicker {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 0.82cqw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.6cqh;
  opacity: 0.7;
  font-weight: 500;
}
.acc-overview .ov-title {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: 5cqw;
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: 2.4cqh;
  color: var(--ink);
}
.acc-overview .ov-title .accent { color: var(--accent); }
.acc-overview .ov-lead {
  font-size: 1.18cqw;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 2.4cqh;
  max-width: 36cqw;
}
.acc-overview .ov-note {
  font-size: 0.92cqw;
  color: var(--muted);
  line-height: 1.65;
  max-width: 34cqw;
}
.acc-overview .ov-note strong { color: var(--ink); font-weight: 600; }

/* ============ chapter modules grid ============ */
.chapter-modules {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin-top: 0;
}
.chapter-modules .mod {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 1cqh 0;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.chapter-modules .mod:last-child {
  border-bottom: none;
}
.chapter-modules .mod .mod-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.88cqw;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.4cqh;
}
.chapter-modules .mod .mod-name {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-size: 5.6cqw;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.chapter-modules .mod .mod-tag {
  font-size: 0.84cqw;
  color: var(--muted);
  margin-top: 0.4cqh;
  line-height: 1.5;
}

/* ============ typography ============ */
.kicker {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 0.82cqw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.2cqh;
  opacity: 0.7;
  font-weight: 500;
}
.headline {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: 5.6cqw;
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: 2.4cqh;
  color: var(--ink);
}
.headline .en { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; }
.headline .accent { color: var(--accent); }
.subhead {
  font-size: 1.18cqw;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 3cqh;
  max-width: 42cqw;
}
.subhead strong { font-weight: 700; }
.subhead .accent-text { color: var(--accent); font-weight: 700; }
.body-note {
  font-size: 0.92cqw;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  max-width: 38cqw;
  margin-bottom: 1.8cqh;
}
.body-note strong { font-weight: 700; }
.body-note .accent-text { color: var(--accent); font-weight: 600; }
.social {
  display: flex; gap: 1.2cqw;
  font-size: 0.88cqw;
  font-weight: 500;
  color: var(--ink);
  margin-top: auto;
  padding-top: 2cqh;
}
.social a { color: inherit; text-decoration: none; opacity: 0.7; transition: opacity 0.2s; pointer-events: auto; }
.social a:hover { opacity: 1; }

.stat .num {
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-size: 1.85cqw;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 1cqh;
  color: var(--ink);
}
.stat .num .accent { color: var(--accent); }
.stat .note {
  font-size: 0.88cqw;
  color: var(--muted);
  line-height: 1.55;
  max-width: 26cqw;
  font-weight: 400;
}
.stat .note strong { color: var(--ink); font-weight: 600; }

/* ============ BOTTOM strip ============ */
.bottom-strip-anchor {
  position: absolute;
  left: 3cqw; right: 3cqw; bottom: 4cqh;
  z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5cqw;
  border-top: 1px solid rgba(10,10,10,0.14);
  padding-top: 2cqh;
  transition: opacity 0.4s ease;
}
.chapter-row {
  display: flex; align-items: center; gap: 1.5cqw;
  flex-wrap: wrap;
  font-family: 'Archivo Black', 'Noto Sans SC', sans-serif;
  font-size: 0.92cqw;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.chapter-row .ch {
  display: inline-flex; align-items: center; gap: 0.5cqw;
  opacity: 0.32; transition: opacity 0.3s ease;
  cursor: pointer; pointer-events: auto;
}
.chapter-row .ch.active { opacity: 1; color: var(--accent); }
.chapter-row .ch .mark {
  width: 0.85cqw; height: 0.85cqw; min-width: 9px; min-height: 9px;
  display: inline-block;
  background: currentColor;
}
.chapter-row .ch .mark.circle { border-radius: 50%; }
.chapter-row .ch .mark.square { border-radius: 1px; }
.chapter-row .ch .mark.tri {
  background: transparent;
  border-left: 0.42cqw solid transparent;
  border-right: 0.42cqw solid transparent;
  border-bottom: 0.72cqw solid currentColor;
}
.chapter-row .ch .mark.bar { height: 0.32cqw; min-height: 4px; border-radius: 1px; }
.chapter-row .ch .mark.dot { border-radius: 50%; width: 0.5cqw; height: 0.5cqw; min-width: 5px; min-height: 5px; }
.footer-meta {
  font-family: 'Inter', monospace;
  font-size: 0.82cqw;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.stage-inner[data-active="0"] .bottom-strip-anchor { opacity: 0; pointer-events: none; }

/* ============ scroll hint ============ */
.scroll-hint {
  position: absolute;
  bottom: 3cqh; left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  font-family: 'Inter', monospace;
  font-size: 0.78cqw;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 1;
  transition: opacity 0.4s ease;
  display: flex; align-items: center; gap: 0.6rem;
  pointer-events: none; font-weight: 600;
}
.scroll-hint .bar {
  display: inline-block; width: 1px; height: 1.3rem;
  background: currentColor;
  animation: drop 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.wait-corner {
  position: absolute;
  bottom: 4cqh; right: 3cqw;
  z-index: 35;
  font-family: 'Inter', monospace;
  font-size: 0.82cqw;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.4s ease;
  font-weight: 500;
}
.stage-inner[data-active="0"] .wait-corner { opacity: 0.55; }

/* ===== global timer ===== */
.global-timer {
  position: fixed;
  bottom: 1.2vh;
  left: 1.2vw;
  font-family: 'Inter', monospace;
  font-size: 1.1vw;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.45);
  z-index: 9999;
  pointer-events: none;
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .nav-menu { display: none; }
  .nav-link { display: none; }
  .chapter-row .ch:nth-child(n+5) { display: none; }
}
