:root {
  --rail: 72px;
  --glass: rgba(7, 8, 12, 0.72);
}
[hidden] {
  display: none !important;
}
.page-progress {
  position: fixed;
  z-index: 220;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #8d0d49, #ff74b2);
  box-shadow: 0 0 18px #d52778;
  transition: width 0.08s linear;
}
.route-rail {
  position: fixed;
  z-index: 110;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 5px;
  padding: 9px 7px;
  background: rgba(5, 6, 9, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}
.route-rail a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
  align-items: center;
  width: 34px;
  overflow: hidden;
  text-decoration: none;
  color: #b8b5b1;
  transition:
    width 0.25s,
    color 0.25s,
    background 0.25s;
  padding: 4px;
}
.route-rail a:hover,
.route-rail a.active {
  width: 170px;
  color: #fff;
  background: rgba(161, 14, 85, 0.28);
}
.route-rail b {
  font-size: 10px;
  color: #f075aa;
}
.route-rail span {
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}
.route-rail a:hover span,
.route-rail a.active span {
  opacity: 1;
}
.hero-depth {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #050609;
}
.hero-layer {
  position: absolute;
  inset: -5%;
  width: 110% !important;
  height: 110% !important;
  object-fit: cover;
  will-change: transform;
  transition: filter 0.3s;
}
.hero-layer.depth-back {
  filter: saturate(0.72) brightness(0.54);
  transform: scale(1.03);
}
.hero-layer.depth-mid {
  mix-blend-mode: normal;
  opacity: 0.22;
  filter: contrast(1.35) saturate(1.1);
}
.hero-layer.depth-front {
  object-position: right center;
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);
  opacity: 0.78;
  filter: saturate(1.18) contrast(1.06);
}
.depth-grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.hotspot {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hotspot::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid #ff78b5;
  border-radius: 50%;
  box-shadow:
    0 0 0 7px rgba(255, 120, 181, 0.14),
    0 0 18px #b71963;
}
.hotspot span {
  opacity: 0;
  transform: translateX(-6px);
  padding: 7px 9px;
  background: rgba(5, 6, 9, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: 0.25s;
}
.hotspot:hover span,
.hotspot:focus span {
  opacity: 1;
  transform: none;
}
.hotspot.h1 {
  right: 18%;
  top: 31%;
}
.hotspot.h2 {
  right: 33%;
  top: 58%;
}
.hotspot.h3 {
  right: 11%;
  bottom: 18%;
}
.book-intro {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 4vw, 64px);
  top: 112px;
  display: grid;
  gap: 5px;
  width: min(210px, 28vw);
}
.book-intro span {
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.book-intro span:nth-child(1) {
  width: 100%;
  background: #b71963;
}
.book-intro span:nth-child(2) {
  width: 75%;
}
.book-intro span:nth-child(3) {
  width: 48%;
}
.district-gates {
  position: relative;
  overflow: hidden;
  padding: 72px clamp(18px, 4vw, 70px);
  background: #07080b;
}
.district-gates > header {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 0.42fr 1.1fr 0.75fr;
  gap: 28px;
  align-items: end;
}
.district-gates h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.district-gates header > p:last-child {
  color: #bbb;
  line-height: 1.5;
  margin: 0;
}
.district-grid {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 8px;
}
.district-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-column: span 2;
  min-height: 340px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.district-card:nth-child(1),
.district-card:nth-child(2) {
  grid-column: span 3;
}
.district-card::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--image) center/cover no-repeat;
  transition: transform 0.65s;
}
.district-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(4, 5, 8, 0.96),
    rgba(4, 5, 8, 0.12) 72%
  );
}
.district-card:hover::before {
  transform: scale(1.045);
}
.district-card small {
  align-self: flex-start;
  padding: 7px 9px;
  background: rgba(5, 6, 9, 0.72);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.district-card h3 {
  font-size: clamp(27px, 3vw, 48px);
  line-height: 0.95;
  margin: 0 0 10px;
}
.district-card p {
  margin: 0;
  max-width: 480px;
  color: #ccc;
  line-height: 1.45;
}
.district-card i {
  display: block;
  margin-top: 17px;
  color: #ff79b5;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.page-turns {
  position: fixed;
  z-index: 105;
  left: clamp(10px, 2vw, 28px);
  bottom: 18px;
  display: flex;
  gap: 5px;
}
.page-turns a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.district-hero {
  position: relative;
  min-height: 84svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.district-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.district-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 6, 9, 0.96), transparent 62%),
    linear-gradient(90deg, rgba(5, 6, 9, 0.9), transparent 70%);
}
.district-copy {
  position: relative;
  z-index: 2;
  padding: 150px clamp(22px, 6vw, 100px) 74px;
  max-width: 1050px;
}
.district-copy h1 {
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 12px 0 18px;
  max-width: 980px;
}
.district-copy > p:last-child {
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.45;
  max-width: 760px;
  color: #ddd;
}
.district-map {
  position: sticky;
  z-index: 20;
  top: 82px;
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 10px clamp(16px, 3vw, 48px);
  background: rgba(6, 7, 10, 0.88);
  border-block: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}
.district-map a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.district-story {
  background: #07080a;
}
.district-panel {
  min-height: 72svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(26px, 6vw, 96px);
  overflow: hidden;
}
.district-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.district-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 5, 8, 0.88), rgba(4, 5, 8, 0.12) 70%),
    linear-gradient(0deg, rgba(4, 5, 8, 0.92), transparent 54%);
}
.district-panel:nth-child(even) {
  justify-content: flex-end;
  text-align: right;
}
.district-panel:nth-child(even)::after {
  background:
    linear-gradient(270deg, rgba(4, 5, 8, 0.88), rgba(4, 5, 8, 0.12) 70%),
    linear-gradient(0deg, rgba(4, 5, 8, 0.92), transparent 54%);
}
.district-panel div {
  position: relative;
  z-index: 2;
  max-width: 690px;
}
.district-panel small {
  color: #f075aa;
  letter-spacing: 0.14em;
}
.district-panel h2 {
  font-size: clamp(38px, 6vw, 92px);
  line-height: 0.9;
  margin: 10px 0;
}
.district-panel p {
  font-size: 15px;
  line-height: 1.55;
  color: #d4d0cb;
}
.district-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  padding: 1px;
}
.district-links a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0c0d11;
  text-decoration: none;
}
.district-links a::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--link-image) center / cover no-repeat;
  filter: saturate(1.12) contrast(1.06);
  transition: transform 0.6s ease;
}
.district-links a::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 9, 0.96), rgba(5, 6, 9, 0.2) 78%);
}
.district-links a:hover::before {
  transform: scale(1.045);
}
.district-links b {
  display: block;
  font-size: 24px;
  margin-bottom: 7px;
}
.district-links span {
  color: #aaa;
  font-size: 12px;
}
@media (max-width: 980px) {
  .route-rail {
    display: none;
  }
  .district-gates > header {
    grid-template-columns: 1fr;
  }
  .district-card,
  .district-card:nth-child(n) {
    grid-column: span 3;
  }
  .district-card:last-child {
    grid-column: span 6;
  }
  .district-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .hero-layer.depth-front {
    clip-path: polygon(45% 0, 100% 0, 100% 100%, 25% 100%);
  }
  .district-links {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .hero-layer.depth-mid {
    opacity: 0.13;
  }
  .hero-layer.depth-front {
    opacity: 0.52;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hotspot,
  .book-intro {
    display: none;
  }
  .district-gates {
    padding: 48px 10px;
  }
  .district-gates > header {
    padding-inline: 8px;
  }
  .district-card,
  .district-card:nth-child(n) {
    grid-column: 1/-1;
    min-height: 78vw;
  }
  .district-map {
    top: 70px;
  }
  .district-panel {
    min-height: 74svh;
    padding: 32px 18px;
  }
  .district-panel:nth-child(even) {
    justify-content: flex-start;
    text-align: left;
  }
  .page-turns {
    display: none;
  }
}

/* V29: decision routes first, supporting immersion second. */
body.home main {
  display: flex;
  flex-direction: column;
}
body.home .home-hero { order: 1; }
body.home .compact-intro { order: 2; }
body.home .district-gates { order: 3; }
body.home .section-index { order: 4; }
body.home .project-route { order: 5; }
body.home .public-boundary { order: 6; }
body.home .visual-atlas { order: 7; }
body.home .audio-lab { order: 8; }
body.home .contact-panel { order: 9; }
body.home .boundary { order: 10; }

.home-hero .hero-v29 {
  object-position: center 46%;
  filter: saturate(1.08) contrast(1.06) brightness(.72);
  transform: scale(1.015);
}
.home-hero .depth-mid {
  display: none;
}
.home-hero .depth-front {
  display: none;
}
.home-hero .hero-gradient {
  background:
    linear-gradient(90deg, rgba(4, 7, 15, .9) 0%, rgba(4, 7, 15, .52) 36%, rgba(4, 7, 15, .06) 70%),
    linear-gradient(0deg, rgba(4, 7, 15, .78) 0%, transparent 48%);
}

/* V33: full-width visual fields and a crisp dimensional RCC identity. */
.site-header .brand {
  width: clamp(159px, 16.4vw, 277px);
  overflow: visible;
  isolation: isolate;
  z-index: 3;
}
.site-header .brand img {
  mix-blend-mode: normal;
  transform: scale(1.06);
  transform-origin: left center;
  filter:
    saturate(2.05)
    contrast(1.48)
    brightness(1.06)
    drop-shadow(0 1px 0 rgba(255, 202, 226, .7))
    drop-shadow(0 5px 10px rgba(161, 14, 85, .62));
  animation: rcc-logo-lustre 5.8s ease-in-out infinite;
}

/* V34 experiment: a moving public-scale boring-shield route on the home header. */
.header-tbm-track {
  position: absolute;
  z-index: 1;
  left: clamp(42px, 4vw, 68px);
  right: clamp(18px, 3vw, 52px);
  bottom: 2px;
  height: 15px;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.11);
  background:
    linear-gradient(90deg, rgba(5,6,9,.96), rgba(24,7,17,.7) 24%, rgba(5,6,9,.84)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,255,255,.07) 35px 36px);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  opacity: .9;
}
.header-tbm-runner {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  height: 100%;
  animation: header-tbm-travel 24s linear infinite;
  will-change: transform;
}
.tbm-unit {
  position: relative;
  display: flex;
  align-items: center;
  width: 168px;
  height: 12px;
}
.tbm-unit i {
  position: relative;
  z-index: 2;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1px solid rgba(255,132,186,.96);
  border-radius: 50%;
  background:
    conic-gradient(from 22.5deg, transparent 0 10%, #ff76b2 11% 14%, transparent 15% 35%, #b81863 36% 40%, transparent 41% 60%, #ff76b2 61% 65%, transparent 66% 85%, #b81863 86% 90%, transparent 91%),
    radial-gradient(circle, #ffd0e4 0 9%, #861044 10% 25%, #120810 27% 58%, #d82777 60% 66%, #08090c 68%);
  box-shadow: 0 0 7px rgba(239,53,133,.72);
}
.tbm-unit b {
  position: relative;
  width: 156px;
  height: 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-left: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 13px, rgba(240,74,146,.38) 14px 15px),
    linear-gradient(180deg, #26272c, #090a0d);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 0 10px rgba(161,14,85,.2);
}
.tbm-unit b::after {
  content: "";
  position: absolute;
  inset: 2px 10px;
  border-top: 1px solid rgba(255,116,178,.35);
}
@keyframes header-tbm-travel {
  from { transform: translateX(-210px); }
  to { transform: translateX(-1050px); }
}
@keyframes rcc-logo-lustre {
  0%, 100% { filter: saturate(1.95) contrast(1.46) brightness(1.03) drop-shadow(0 1px 0 rgba(255,202,226,.66)) drop-shadow(0 5px 10px rgba(161,14,85,.58)); }
  42% { filter: saturate(2.28) contrast(1.58) brightness(1.16) hue-rotate(5deg) drop-shadow(0 1px 0 rgba(255,232,243,.86)) drop-shadow(0 6px 12px rgba(222,27,122,.7)); }
  64% { filter: saturate(2.12) contrast(1.52) brightness(1.08) hue-rotate(-5deg) drop-shadow(0 1px 0 rgba(255,184,217,.74)) drop-shadow(0 5px 11px rgba(126,8,69,.64)); }
}

body.home .compact-intro,
body.home .section-index {
  max-width: none;
  width: 100%;
}
body.home .compact-intro {
  padding-inline: max(clamp(18px,4vw,70px), calc((100vw - var(--max))/2 + 70px));
  background:
    linear-gradient(90deg, rgba(7,8,12,.92), rgba(7,8,12,.55), rgba(7,8,12,.9)),
    url("assets/panoramas/construction-commissioning-v1.webp") center 58% / cover no-repeat;
}
body.home .district-gates {
  background:
    linear-gradient(180deg, rgba(7,8,11,.84), rgba(7,8,11,.94)),
    url("assets/section-relations-v1.webp") center / cover no-repeat;
}
body.home .section-index {
  position: relative;
  isolation: isolate;
  padding-inline: max(clamp(14px,3vw,48px), calc((100vw - var(--max))/2 + 48px));
  background:
    linear-gradient(180deg, rgba(7,8,12,.6), rgba(7,8,12,.93)),
    url("assets/atlas/daily-operations-v1.webp") center 42% / cover no-repeat;
}
body.home .visual-atlas {
  background:
    linear-gradient(90deg, rgba(7,8,12,.9), rgba(7,8,12,.58), rgba(7,8,12,.88)),
    url("assets/atlas/generations-return-v1.webp") center / cover no-repeat;
}
body.home .audio-lab {
  background:
    linear-gradient(180deg, rgba(7,8,12,.84), rgba(7,8,12,.96)),
    url("assets/social-governance-v1/01-sector-assembly-v2.webp") center / cover no-repeat;
}

body.home .district-gates::after,
body.home .section-index::after,
body.home .audio-lab::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: saturate(1.7) contrast(1.2) brightness(1.14) drop-shadow(0 8px 26px rgba(173,18,88,.55));
  animation: rcc-logo-lustre 8s ease-in-out infinite reverse;
}
body.home .district-gates::after {
  width: clamp(74px,8vw,128px);
  height: clamp(74px,8vw,128px);
  top: 28px;
  right: clamp(18px,4vw,70px);
  background-image: url("assets/rcc-identity-04-core.webp");
}
body.home .section-index::after {
  width: clamp(170px,18vw,310px);
  height: clamp(70px,8vw,120px);
  top: 14px;
  right: clamp(16px,3vw,48px);
  background-image: url("assets/rcc-identity-01-microcell-transparent-v31.webp");
}
body.home .audio-lab {
  position: relative;
  isolation: isolate;
}
body.home .audio-lab::after {
  width: clamp(64px,7vw,110px);
  height: clamp(64px,7vw,110px);
  right: clamp(18px,4vw,70px);
  bottom: 22px;
  background-image: url("assets/rcc-identity-04-core.webp");
  opacity: .9;
}
body.home .district-gates > *,
body.home .section-index > *,
body.home .audio-lab > * {
  position: relative;
  z-index: 1;
}
footer img {
  width: 50px;
  height: 50px;
  filter: saturate(1.65) contrast(1.2) brightness(1.15) drop-shadow(0 7px 20px rgba(161,14,85,.5));
  animation: rcc-logo-lustre 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .site-header .brand img,
  body.home .district-gates::after,
  body.home .section-index::after,
  body.home .audio-lab::after,
  footer img,
  .header-tbm-runner { animation: none; }
  .header-tbm-runner { transform: translateX(-48px); }
}

@media (max-width: 980px) {
  .site-header .brand { width: 172px; }
  .header-tbm-track { left: 18px; right: 18px; opacity: .76; }
}

@media (max-width: 600px) {
  .site-header .brand { width: 130px; }
  .header-tbm-track { left: 12px; right: 12px; height: 11px; }
  .tbm-unit { width: 126px; }
  .tbm-unit b { width: 114px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-layer,
  .district-card::before {
    transform: none !important;
    transition: none !important;
  }
}

/* Main-site → 12-subsite hierarchy */
.subsite-breadcrumb {
  position: absolute;
  z-index: 4;
  left: clamp(22px, 6vw, 100px);
  top: 106px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(5, 6, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.subsite-breadcrumb a {
  text-decoration: none;
  color: #ff83b9;
}
.subsite-breadcrumb span {
  color: #777;
}
.subsite-map {
  position: sticky;
  z-index: 24;
  top: 82px;
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow: auto;
  padding: 10px 16px;
  background: rgba(6, 7, 10, 0.9);
  border-block: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}
.subsite-map a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.subsite-overview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  margin: auto;
  min-height: clamp(360px, 42vw, 620px);
  padding: 72px max(clamp(18px, 5vw, 80px), calc((100vw - var(--max)) / 2 + 80px));
  display: grid;
  grid-template-columns: 0.36fr 1.05fr 0.59fr;
  gap: 38px;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.98) 0 18%, rgba(5, 6, 9, 0.72) 54%, rgba(5, 6, 9, 0.16) 100%),
    var(--chapter-side) center / cover no-repeat;
}
.subsite-overview::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: clamp(18px, 4vw, 72px);
  top: 12%;
  width: min(31vw, 480px);
  height: 76%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(0deg, rgba(5, 6, 9, 0.58), transparent 60%),
    var(--chapter-accent) center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.subsite-overview > * {
  position: relative;
  z-index: 1;
}
.subsite-overview > div {
  grid-column: 2;
}
.subsite-overview h2 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.subsite-overview p:last-child {
  max-width: 900px;
  margin: 0;
  color: #c9c5c0;
  font-size: 18px;
  line-height: 1.6;
}
.immediate-visuals header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 138px;
  padding-inline: max(clamp(18px, 3vw, 48px), calc((100vw - var(--max)) / 2 + 48px));
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.86) 0 32%, rgba(6, 7, 10, 0.18) 82%),
    var(--chapter-next) center 42% / cover no-repeat;
}
.immediate-visuals header::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 7, 10, 0.82), transparent 64%);
}
.immediate-visuals header > * {
  position: relative;
  z-index: 1;
}
.subsite .detail-intro {
  min-height: clamp(420px, 52vw, 720px);
  align-content: end;
  padding-block: clamp(64px, 8vw, 120px);
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.94) 0 34%, rgba(8, 9, 12, 0.38) 88%),
    var(--chapter-bg) fixed center / cover no-repeat;
}
.subsite .gallery-heading {
  min-height: clamp(380px, 48vw, 680px);
  align-content: end;
  padding-block: clamp(60px, 8vw, 110px);
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.9) 0 32%, rgba(8, 9, 12, 0.24) 82%),
    var(--chapter-hero) fixed center / cover no-repeat;
}
.subsite .chapter-nav {
  grid-template-columns: 1fr 1fr 1fr;
}
.subsite .chapter-nav .home-node {
  text-align: center;
  border-inline: 1px solid rgba(255, 255, 255, 0.14);
}
.compact-intro > p b {
  display: block;
  margin-bottom: 8px;
  color: #f075aa;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.section-card .card-meta {
  width: auto;
  padding-inline: 9px;
  font-size: 9px;
  letter-spacing: 0.1em;
}
@media (max-width: 980px) {
  .subsite-overview {
    grid-template-columns: 1fr;
    min-height: 520px;
    align-content: end;
    background:
      linear-gradient(0deg, rgba(5, 6, 9, 0.98), rgba(5, 6, 9, 0.38) 78%),
      var(--chapter-side) center / cover no-repeat;
  }
  .subsite-overview > div {
    grid-column: 1;
  }
  .subsite-overview::after {
    display: none;
  }
  .subsite .chapter-nav {
    grid-template-columns: 1fr;
  }
  .subsite .chapter-nav .home-node {
    border-block: 1px solid rgba(255, 255, 255, 0.14);
    border-inline: 0;
  }
}
@media (max-width: 600px) {
  .subsite-breadcrumb {
    top: 76px;
    left: 12px;
    right: 12px;
    white-space: nowrap;
    overflow: hidden;
  }
  .subsite-map {
    top: 64px;
    justify-content: flex-start;
  }
  .subsite-overview {
    padding: 46px 18px;
    min-height: 78svh;
  }
  .subsite-overview p:last-child {
    font-size: 16px;
  }
}

.audio-lab {
  padding: 36px clamp(18px, 4vw, 70px) 76px;
  background: #090a0e;
  border-block: 1px solid rgba(255, 255, 255, 0.14);
}
.visual-atlas:has(+ .audio-lab) {
  padding-bottom: 20px;
}
.audio-lab > header {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 0.42fr 1fr 0.72fr;
  gap: 28px;
  align-items: end;
}
.audio-lab h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.93;
  letter-spacing: -0.045em;
}
.audio-lab header > p:last-child {
  margin: 0;
  color: #c8c4be;
  line-height: 1.55;
}
.audio-controls {
  max-width: var(--max);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111218;
}
.audio-controls label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.audio-controls input {
  accent-color: #c22a70;
}
.audio-controls button,
.feedback-actions button {
  padding: 10px 13px;
  color: #fff;
  background: #17181e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.audio-controls output {
  margin-left: auto;
  color: #f075aa;
  font-size: 12px;
}
.audio-grid {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.audio-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: #fff;
  background: #111218;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}
.audio-card::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--audio-image) center/cover no-repeat;
  filter: saturate(0.82) contrast(1.08);
}
.audio-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(7, 8, 12, 0.98),
    rgba(7, 8, 12, 0.54) 72%,
    rgba(7, 8, 12, 0.18)
  );
}
.audio-card:hover,
.audio-card.playing {
  border-color: #f075aa;
  background-color: #191019;
}
.audio-card.urgent {
  box-shadow: inset 0 0 0 1px rgba(212, 112, 36, 0.18);
}
.audio-card small {
  color: #f075aa;
  letter-spacing: 0.13em;
}
.audio-card b {
  margin: auto 0 12px;
  font-size: 24px;
  line-height: 1.05;
}
.audio-card span {
  color: #bbb;
  line-height: 1.45;
}
.audio-card i {
  margin-top: 20px;
  color: #ff83b9;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.audio-feedback {
  max-width: var(--max);
  margin: 10px auto 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.audio-feedback small {
  color: #f075aa;
  letter-spacing: 0.13em;
}
.audio-feedback h3 {
  margin: 7px 0 0;
  font-size: 24px;
}
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.feedback-actions button.selected {
  background: #9f1453;
  border-color: #ff83b9;
}
.audio-feedback > p {
  grid-column: 1/-1;
  margin: 0;
  color: #898991;
  font-size: 12px;
}
@media (max-width: 980px) {
  .audio-lab > header {
    grid-template-columns: 1fr;
  }
  .audio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audio-card:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .audio-lab {
    padding: 50px 10px;
  }
  .audio-grid {
    grid-template-columns: 1fr;
  }
  .audio-card:last-child {
    grid-column: auto;
  }
  .audio-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .audio-controls output {
    margin-left: 0;
  }
  .audio-feedback {
    grid-template-columns: 1fr;
  }
}
